UNPKG

cosmos-db-repositories

Version:
17 lines (16 loc) 538 B
interface DocumentKey { name: string; rowId: string; partitionKey: string; } export declare const AuditOperation: { readonly INSERT: "insert"; readonly UPDATE: "update"; readonly DELETE: "delete"; readonly SOFT_DELETE: "soft-delete"; }; export type AuditOperationType = typeof AuditOperation[keyof typeof AuditOperation]; declare const _default: { publishEvent: (eventType: AuditOperationType, userId: string, document: DocumentKey, before?: any, after?: any) => Promise<void>; }; export default _default;