mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
* Initial checking of collect many * should update to better handle parameters * cleaning up event collection params * Adding documentation * Removing commented out code saved for testing * Adding pr changes and using the account service for event collection user id * browser main.background event collection service needed the account service
17 lines
426 B
TypeScript
17 lines
426 B
TypeScript
import { EventType } from "../../enums";
|
|
import { CipherView } from "../../vault/models/view/cipher.view";
|
|
|
|
export abstract class EventCollectionService {
|
|
collectMany: (
|
|
eventType: EventType,
|
|
ciphers: CipherView[],
|
|
uploadImmediately?: boolean,
|
|
) => Promise<any>;
|
|
collect: (
|
|
eventType: EventType,
|
|
cipherId?: string,
|
|
uploadImmediately?: boolean,
|
|
organizationId?: string,
|
|
) => Promise<any>;
|
|
}
|