@stoker-platform/node-client 0.5.86 → 0.5.88
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.
- package/dist/bundle.cjs +6 -6
- package/dist/bundle.js +3192 -3070
- package/dist/types/read/getCollectionRefs.d.ts +1 -1
- package/dist/types/read/getDocumentRefs.d.ts +1 -1
- package/dist/types/write/validateRelations.d.ts +1 -1
- package/package.json +3 -3
- package/dist/types/write/uniqueValidation.d.ts +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CollectionsSchema, StokerPermissions } from "@stoker-platform/types";
|
|
2
2
|
import { Query } from "firebase-admin/firestore";
|
|
3
|
-
export declare const getCollectionRefs: (tenantId: string, path: string[], schema: CollectionsSchema, userId?: string, permissions?: StokerPermissions) => Query[];
|
|
3
|
+
export declare const getCollectionRefs: (tenantId: string, path: string[], schema: CollectionsSchema, userId?: string, permissions?: StokerPermissions, claims?: Record<string, unknown>) => Query[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CollectionsSchema, StokerPermissions } from "@stoker-platform/types";
|
|
2
2
|
import { DocumentReference } from "firebase-admin/firestore";
|
|
3
|
-
export declare const getDocumentRefs: (tenantId: string, path: string[], recordId: string, schema: CollectionsSchema, permissions?: StokerPermissions) => DocumentReference[];
|
|
3
|
+
export declare const getDocumentRefs: (tenantId: string, path: string[], recordId: string, schema: CollectionsSchema, permissions?: StokerPermissions, claims?: Record<string, unknown>) => DocumentReference[];
|
|
@@ -5,4 +5,4 @@ export declare const validateRelationHierarchy: (tenantId: string, collection: C
|
|
|
5
5
|
}, isRelationCheck?: boolean) => Promise<void>;
|
|
6
6
|
export declare const validateRelations: (operation: "Create" | "Update", tenantId: string, docId: string, record: StokerRecord, partial: Partial<StokerRecord>, collectionSchema: CollectionSchema, schema: CollectionsSchema, transaction: Transaction, batchSize: {
|
|
7
7
|
size: number;
|
|
8
|
-
}, userId?: string, permissions?: StokerPermissions, originalRecord?: StokerRecord) => Promise<Map<string, string[]>>;
|
|
8
|
+
}, userId?: string, permissions?: StokerPermissions, originalRecord?: StokerRecord, claims?: Record<string, unknown>) => Promise<Map<string, string[]>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/node-client",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.88",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"files": [
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@google-cloud/storage": "^7.19.0",
|
|
27
|
-
"@stoker-platform/types": "0.5.
|
|
28
|
-
"@stoker-platform/utils": "0.5.
|
|
27
|
+
"@stoker-platform/types": "0.5.65",
|
|
28
|
+
"@stoker-platform/utils": "0.5.79",
|
|
29
29
|
"@types/luxon": "^3.7.1",
|
|
30
30
|
"cross-spawn": "^7.0.6",
|
|
31
31
|
"firebase-admin": "^13.10.0",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { CollectionSchema, CollectionsSchema, StokerPermissions, StokerRecord } from "@stoker-platform/types";
|
|
2
|
-
export declare const uniqueValidation: (operation: "create" | "update", tenantId: string, docId: string, data: StokerRecord, collectionSchema: CollectionSchema, schema: CollectionsSchema, user?: string, permissions?: StokerPermissions) => Promise<void>;
|