Add `Organization_SponsorshipsSynced` event type (#809)

This commit is contained in:
Matt Gibson 2022-05-19 10:58:56 -04:00 committed by GitHub
parent 9a933640dc
commit 3cb94623e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 0 deletions

View File

@ -57,6 +57,7 @@ export enum EventType {
Organization_DisabledSso = 1605,
Organization_EnabledKeyConnector = 1606,
Organization_DisabledKeyConnector = 1607,
Organization_SponsorshipsSynced = 1608,
Policy_Updated = 1700,

View File

@ -11,6 +11,7 @@ export class EventExport {
date: string;
ip: string;
type: string;
installationId: string;
constructor(event: EventView) {
this.message = event.humanReadableMessage;
@ -22,5 +23,6 @@ export class EventExport {
this.date = event.date;
this.ip = event.ip;
this.type = EventType[event.type];
this.installationId = event.installationId;
}
}

View File

@ -19,6 +19,7 @@ export class EventResponse extends BaseResponse {
date: string;
deviceType: DeviceType;
ipAddress: string;
installationId: string;
constructor(response: any) {
super(response);
@ -37,5 +38,6 @@ export class EventResponse extends BaseResponse {
this.date = this.getResponseProperty("Date");
this.deviceType = this.getResponseProperty("DeviceType");
this.ipAddress = this.getResponseProperty("IpAddress");
this.installationId = this.getResponseProperty("InstallationId");
}
}

View File

@ -11,6 +11,7 @@ export class EventView {
date: string;
ip: string;
type: EventType;
installationId: string;
constructor(data: Required<EventView>) {
this.message = data.message;
@ -23,5 +24,6 @@ export class EventView {
this.date = data.date;
this.ip = data.ip;
this.type = data.type;
this.installationId = data.installationId;
}
}