From 3cb94623e2c6a3ac6cf6dbcd516ba23b03a7aee7 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 19 May 2022 10:58:56 -0400 Subject: [PATCH] Add `Organization_SponsorshipsSynced` event type (#809) --- common/src/enums/eventType.ts | 1 + common/src/models/export/eventExport.ts | 2 ++ common/src/models/response/eventResponse.ts | 2 ++ common/src/models/view/eventView.ts | 2 ++ 4 files changed, 7 insertions(+) diff --git a/common/src/enums/eventType.ts b/common/src/enums/eventType.ts index 236e73c0d02..d6268aea559 100644 --- a/common/src/enums/eventType.ts +++ b/common/src/enums/eventType.ts @@ -57,6 +57,7 @@ export enum EventType { Organization_DisabledSso = 1605, Organization_EnabledKeyConnector = 1606, Organization_DisabledKeyConnector = 1607, + Organization_SponsorshipsSynced = 1608, Policy_Updated = 1700, diff --git a/common/src/models/export/eventExport.ts b/common/src/models/export/eventExport.ts index 2ddba648ce8..670c1b166ad 100644 --- a/common/src/models/export/eventExport.ts +++ b/common/src/models/export/eventExport.ts @@ -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; } } diff --git a/common/src/models/response/eventResponse.ts b/common/src/models/response/eventResponse.ts index 93e3195520f..47e3d140933 100644 --- a/common/src/models/response/eventResponse.ts +++ b/common/src/models/response/eventResponse.ts @@ -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"); } } diff --git a/common/src/models/view/eventView.ts b/common/src/models/view/eventView.ts index 17339ecb68f..56bf5c309e8 100644 --- a/common/src/models/view/eventView.ts +++ b/common/src/models/view/eventView.ts @@ -11,6 +11,7 @@ export class EventView { date: string; ip: string; type: EventType; + installationId: string; constructor(data: Required) { 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; } }