Add `Organization_SponsorshipsSynced` event type (#809)
This commit is contained in:
parent
9a933640dc
commit
3cb94623e2
|
@ -57,6 +57,7 @@ export enum EventType {
|
|||
Organization_DisabledSso = 1605,
|
||||
Organization_EnabledKeyConnector = 1606,
|
||||
Organization_DisabledKeyConnector = 1607,
|
||||
Organization_SponsorshipsSynced = 1608,
|
||||
|
||||
Policy_Updated = 1700,
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue