@nu-art/firebase-shared 0.401.8 → 0.401.9
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/package.json +2 -2
- package/types.d.ts +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nu-art/firebase-shared",
|
|
3
|
-
"version": "0.401.
|
|
3
|
+
"version": "0.401.9",
|
|
4
4
|
"description": "Storm - Express & Typescript based backend framework Shared",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TacB0sS",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test-v2": "ts-mocha -w -p src/test/tsconfig.json --timeout 0 --inspect=8107 --watch-files '**/*.ts' src/test/firestore-v2/__test.ts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@nu-art/ts-common": "0.401.
|
|
38
|
+
"@nu-art/ts-common": "0.401.9",
|
|
39
39
|
"@google-cloud/common": "^5.0.2",
|
|
40
40
|
"@google-cloud/storage": "^7.15.0",
|
|
41
41
|
"@google-cloud/firestore": "^7.11.0",
|
package/types.d.ts
CHANGED
|
@@ -58,16 +58,17 @@ export type Clause_OrderBy<T extends TS_Object> = [{
|
|
|
58
58
|
order: FirestoreType_OrderByDirection;
|
|
59
59
|
}];
|
|
60
60
|
export type Clause_Select<T extends TS_Object, K extends keyof T = keyof T> = K[];
|
|
61
|
+
export type Clause_Limit = number | {
|
|
62
|
+
page?: number;
|
|
63
|
+
itemsCount: number;
|
|
64
|
+
};
|
|
61
65
|
export type FirestoreQuery<T extends TS_Object> = RequireOptionals<FirestoreQueryImpl<T>>;
|
|
62
66
|
export type FirestoreQueryImpl<T extends TS_Object> = {
|
|
63
67
|
select?: Clause_Select<T>;
|
|
64
68
|
orderBy?: Clause_OrderBy<T>;
|
|
65
69
|
where?: Clause_Where<T>;
|
|
66
70
|
withDeleted?: boolean;
|
|
67
|
-
limit?:
|
|
68
|
-
page?: number;
|
|
69
|
-
itemsCount: number;
|
|
70
|
-
};
|
|
71
|
+
limit?: Clause_Limit;
|
|
71
72
|
};
|
|
72
73
|
export type FirebaseProjectCollections = {
|
|
73
74
|
projectId: string;
|