akeyless-server-commons 1.0.136-test.5 → 1.0.136-test.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,19 @@ interface ExtraSnapshotConfig {
23
23
  cache_name?: string;
24
24
  parse_as?: "object" | "array";
25
25
  doc_key_property?: string;
26
+ subscription_type?: "redis" | "firebase";
27
+ debug?: {
28
+ on_first_time?: boolean;
29
+ on_add?: boolean;
30
+ on_modify?: boolean;
31
+ on_remove?: boolean;
32
+ extra_parsers?: {
33
+ on_first_time?: boolean;
34
+ on_add?: boolean;
35
+ on_modify?: boolean;
36
+ on_remove?: boolean;
37
+ };
38
+ };
26
39
  }
27
40
  export type OnSnapshotConfig = OnSnapshotParsers & ExtraSnapshotConfig;
28
41
  export type Snapshot = (config: OnSnapshotConfig) => Promise<void>;
@@ -31,5 +44,8 @@ export type SnapshotBulkByNamesParamObject = Omit<ExtraSnapshotConfig, "extra_pa
31
44
  extra_parsers: OnSnapshotParsers[];
32
45
  };
33
46
  export type SnapshotBulkByNamesParam = string | SnapshotBulkByNamesParamObject;
34
- export type SnapshotBulkByNames = (params: SnapshotBulkByNamesParam[]) => Promise<void>;
47
+ export type SnapshotBulkByNames = (params: SnapshotBulkByNamesParam[], options?: {
48
+ label?: string;
49
+ subscription_type?: "redis" | "firebase";
50
+ }) => Promise<void>;
35
51
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-server-commons",
3
- "version": "1.0.136-test.5",
3
+ "version": "1.0.136-test.6",
4
4
  "scripts": {
5
5
  "build:cjs": "tsc --project tsconfig.cjs.json",
6
6
  "build:esm": "tsc --project tsconfig.esm.json",