@squidcloud/client 1.0.97 → 1.0.99
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/cjs/index.js +2 -2
- package/dist/common/src/query/base-query-builder.d.ts +8 -0
- package/dist/esm/index.js +2 -2
- package/dist/typescript-client/src/document-reference.d.ts +15 -9
- package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +12 -0
- package/dist/typescript-client/src/query/query-builder.factory.d.ts +1 -5
- package/package.json +1 -1
|
@@ -33,21 +33,27 @@ export declare class DocumentReference<T extends DocumentData = any> {
|
|
|
33
33
|
*/
|
|
34
34
|
get hasData(): boolean;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
36
|
+
* A promise that resolves with the latest data from the server or undefined if the document does not exist on the
|
|
37
|
+
* server.
|
|
38
38
|
*
|
|
39
|
-
* @returns A
|
|
39
|
+
* @returns A promise that resolves with latest data from the server or undefined if the document does not exist on
|
|
40
40
|
* the server.
|
|
41
41
|
*/
|
|
42
|
-
snapshot(): Promise<
|
|
42
|
+
snapshot(): Promise<T | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns an observable that emits the latest data from the server or undefined if the document is deleted or does
|
|
45
|
+
* not exist on the server.
|
|
46
|
+
*
|
|
47
|
+
* @returns An observable that emits the latest data from the server or undefined if the document is deleted or does
|
|
48
|
+
* not exist on the server.
|
|
49
|
+
*/
|
|
50
|
+
snapshots(): Observable<T | undefined>;
|
|
43
51
|
/**
|
|
44
|
-
* Returns
|
|
45
|
-
* document is deleted or does not exist on the server.
|
|
52
|
+
* Returns the data that is currently available on the client or undefined if data has not yet been populated.
|
|
46
53
|
*
|
|
47
|
-
* @returns
|
|
48
|
-
* document is deleted or does not exist on the server.
|
|
54
|
+
* @returns The data that is currently available on the client or undefined if data has not yet been populated.
|
|
49
55
|
*/
|
|
50
|
-
|
|
56
|
+
peek(): T | undefined;
|
|
51
57
|
/**
|
|
52
58
|
* Returns whether the locally available version of the document may not be the latest version on the server.
|
|
53
59
|
*
|
|
@@ -94,6 +94,10 @@ export declare class JoinQueryBuilder<Aliases extends Record<Alias, Alias[]>, Re
|
|
|
94
94
|
snapshot(): Promise<Array<WithDocumentReferences<ReturnType>>>;
|
|
95
95
|
/** @inheritDoc */
|
|
96
96
|
snapshots(subscribe?: boolean): Observable<Array<WithDocumentReferences<ReturnType>>>;
|
|
97
|
+
/**
|
|
98
|
+
* @inheritDoc
|
|
99
|
+
*/
|
|
100
|
+
peek(): Array<WithDocumentReferences<ReturnType>>;
|
|
97
101
|
/** @inheritDoc */
|
|
98
102
|
grouped(): GroupedJoin<Aliases, ReturnType, RootAlias, LatestAlias>;
|
|
99
103
|
/** @inheritDoc */
|
|
@@ -115,6 +119,10 @@ declare class DereferencedJoin<Aliases extends Record<Alias, Alias[]>, ReturnTyp
|
|
|
115
119
|
snapshot(): Promise<Array<ReturnType>>;
|
|
116
120
|
/** @inheritDoc */
|
|
117
121
|
snapshots(subscribe?: boolean): Observable<Array<ReturnType>>;
|
|
122
|
+
/**
|
|
123
|
+
* @inheritDoc
|
|
124
|
+
*/
|
|
125
|
+
peek(): Array<ReturnType>;
|
|
118
126
|
getSortOrders(): Array<FieldSort<any>>;
|
|
119
127
|
clone(): DereferencedJoin<Aliases, ReturnType, RootAlias, LatestAlias>;
|
|
120
128
|
addCompositeCondition(conditions: Array<SimpleCondition>): DereferencedJoin<Aliases, ReturnType, RootAlias, LatestAlias>;
|
|
@@ -133,6 +141,10 @@ declare class GroupedJoin<Aliases extends Record<Alias, Alias[]>, ReturnType ext
|
|
|
133
141
|
snapshot(): Promise<Array<Grouped<Aliases, WithDocumentReferences<ReturnType>, RootAlias>>>;
|
|
134
142
|
/** @inheritDoc */
|
|
135
143
|
snapshots(subscribe?: boolean): Observable<Array<Grouped<Aliases, WithDocumentReferences<ReturnType>, RootAlias>>>;
|
|
144
|
+
/**
|
|
145
|
+
* @inheritDoc
|
|
146
|
+
*/
|
|
147
|
+
peek(): Array<Grouped<Aliases, WithDocumentReferences<ReturnType>, RootAlias>>;
|
|
136
148
|
/** @inheritDoc */
|
|
137
149
|
dereference(): SnapshotEmitter<Grouped<Aliases, ReturnType, RootAlias>>;
|
|
138
150
|
private groupData;
|
|
@@ -30,11 +30,7 @@ export declare class QueryBuilder<DocumentType extends DocumentData> extends Bas
|
|
|
30
30
|
*/
|
|
31
31
|
setForceFetchFromServer(): this;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* for synchronously accessing data that has already been fetched by another query. The method will return an empty
|
|
35
|
-
* array if data has not yet been populated.
|
|
36
|
-
*
|
|
37
|
-
* @returns An array of query results.
|
|
33
|
+
* @inheritDoc
|
|
38
34
|
*/
|
|
39
35
|
peek(): Array<DocumentReference<DocumentType>>;
|
|
40
36
|
/**
|