mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Add Organization_SponsorshipsSynced event type (#809)
This commit is contained in:
@@ -57,6 +57,7 @@ export enum EventType {
|
|||||||
Organization_DisabledSso = 1605,
|
Organization_DisabledSso = 1605,
|
||||||
Organization_EnabledKeyConnector = 1606,
|
Organization_EnabledKeyConnector = 1606,
|
||||||
Organization_DisabledKeyConnector = 1607,
|
Organization_DisabledKeyConnector = 1607,
|
||||||
|
Organization_SponsorshipsSynced = 1608,
|
||||||
|
|
||||||
Policy_Updated = 1700,
|
Policy_Updated = 1700,
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export class EventExport {
|
|||||||
date: string;
|
date: string;
|
||||||
ip: string;
|
ip: string;
|
||||||
type: string;
|
type: string;
|
||||||
|
installationId: string;
|
||||||
|
|
||||||
constructor(event: EventView) {
|
constructor(event: EventView) {
|
||||||
this.message = event.humanReadableMessage;
|
this.message = event.humanReadableMessage;
|
||||||
@@ -22,5 +23,6 @@ export class EventExport {
|
|||||||
this.date = event.date;
|
this.date = event.date;
|
||||||
this.ip = event.ip;
|
this.ip = event.ip;
|
||||||
this.type = EventType[event.type];
|
this.type = EventType[event.type];
|
||||||
|
this.installationId = event.installationId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export class EventResponse extends BaseResponse {
|
|||||||
date: string;
|
date: string;
|
||||||
deviceType: DeviceType;
|
deviceType: DeviceType;
|
||||||
ipAddress: string;
|
ipAddress: string;
|
||||||
|
installationId: string;
|
||||||
|
|
||||||
constructor(response: any) {
|
constructor(response: any) {
|
||||||
super(response);
|
super(response);
|
||||||
@@ -37,5 +38,6 @@ export class EventResponse extends BaseResponse {
|
|||||||
this.date = this.getResponseProperty("Date");
|
this.date = this.getResponseProperty("Date");
|
||||||
this.deviceType = this.getResponseProperty("DeviceType");
|
this.deviceType = this.getResponseProperty("DeviceType");
|
||||||
this.ipAddress = this.getResponseProperty("IpAddress");
|
this.ipAddress = this.getResponseProperty("IpAddress");
|
||||||
|
this.installationId = this.getResponseProperty("InstallationId");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export class EventView {
|
|||||||
date: string;
|
date: string;
|
||||||
ip: string;
|
ip: string;
|
||||||
type: EventType;
|
type: EventType;
|
||||||
|
installationId: string;
|
||||||
|
|
||||||
constructor(data: Required<EventView>) {
|
constructor(data: Required<EventView>) {
|
||||||
this.message = data.message;
|
this.message = data.message;
|
||||||
@@ -23,5 +24,6 @@ export class EventView {
|
|||||||
this.date = data.date;
|
this.date = data.date;
|
||||||
this.ip = data.ip;
|
this.ip = data.ip;
|
||||||
this.type = data.type;
|
this.type = data.type;
|
||||||
|
this.installationId = data.installationId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user