Browse Source
* Added organizationId to EventData and EventRequest * Added EventType Organization_ClientExportedVault * Sending organizationId on Organization Export event * Checking that the user belongs to the organization * Added organizationExportResponse model * Added API method to get Organization vault export data * Updated getOrganizationDecryptedExport to use new API methodpull/3171/head
11 changed files with 88 additions and 38 deletions
@ -1,7 +1,12 @@
@@ -1,7 +1,12 @@
|
||||
import { EventType } from "../enums/eventType"; |
||||
|
||||
export abstract class EventService { |
||||
collect: (eventType: EventType, cipherId?: string, uploadImmediately?: boolean) => Promise<any>; |
||||
collect: ( |
||||
eventType: EventType, |
||||
cipherId?: string, |
||||
uploadImmediately?: boolean, |
||||
organizationId?: string |
||||
) => Promise<any>; |
||||
uploadEvents: (userId?: string) => Promise<any>; |
||||
clearEvents: (userId?: string) => Promise<any>; |
||||
} |
||||
|
||||
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
import { BaseResponse } from "./baseResponse"; |
||||
import { CipherResponse } from "./cipherResponse"; |
||||
import { CollectionResponse } from "./collectionResponse"; |
||||
import { ListResponse } from "./listResponse"; |
||||
|
||||
export class OrganizationExportResponse extends BaseResponse { |
||||
collections: ListResponse<CollectionResponse>; |
||||
ciphers: ListResponse<CipherResponse>; |
||||
|
||||
constructor(response: any) { |
||||
super(response); |
||||
this.collections = this.getResponseProperty("Collections"); |
||||
this.ciphers = this.getResponseProperty("Ciphers"); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue