@firebase/firestore 3.8.0-canary.20e5ef7fb → 3.8.0-canary.3ee35f9ae
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/firestore/src/lite-api/query.d.ts +14 -12
- package/dist/firestore/src/local/overlayed_document.d.ts +8 -4
- package/dist/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
- package/dist/index.esm2017.js +34 -19
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +36 -19
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +34 -16
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +34 -16
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +34 -19
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +23 -17
- package/dist/lite/firestore/src/lite-api/query.d.ts +14 -12
- package/dist/lite/firestore/src/local/overlayed_document.d.ts +8 -4
- package/dist/lite/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
- package/dist/lite/index.browser.esm2017.js +16 -14
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +62 -60
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +16 -14
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +16 -14
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +16 -14
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +15 -13
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +15 -13
- package/dist/lite/packages/firestore/src/lite-api/query.d.ts +14 -12
- package/dist/lite/packages/firestore/src/local/overlayed_document.d.ts +8 -4
- package/dist/lite/packages/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
- package/dist/packages/firestore/dist/index.esm2017.d.ts +15 -13
- package/dist/packages/firestore/src/lite-api/query.d.ts +14 -12
- package/dist/packages/firestore/src/local/overlayed_document.d.ts +8 -4
- package/dist/packages/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
- package/dist/private.d.ts +8 -4
- package/package.json +9 -9
package/dist/lite/internal.d.ts
CHANGED
|
@@ -130,13 +130,14 @@ export declare type AggregateSpecData<T extends AggregateSpec> = {
|
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* {@link
|
|
139
|
-
* @
|
|
133
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
134
|
+
* the given filter constraints. A conjunction filter includes a document if it
|
|
135
|
+
* satisfies all of the given filters.
|
|
136
|
+
*
|
|
137
|
+
* @param queryConstraints - Optional. The list of
|
|
138
|
+
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
139
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
140
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
140
141
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
141
142
|
*/
|
|
142
143
|
export declare function and(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
|
|
@@ -2059,13 +2060,14 @@ declare const enum Operator {
|
|
|
2059
2060
|
}
|
|
2060
2061
|
|
|
2061
2062
|
/**
|
|
2062
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
2063
|
-
*
|
|
2063
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
2064
|
+
* the given filter constraints. A disjunction filter includes a document if it
|
|
2065
|
+
* satisfies any of the given filters.
|
|
2064
2066
|
*
|
|
2065
|
-
* @param queryConstraints - Optional. The
|
|
2066
|
-
*
|
|
2067
|
-
* {@link or}, or {@link and}.
|
|
2068
|
-
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
2067
|
+
* @param queryConstraints - Optional. The list of
|
|
2068
|
+
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
2069
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
2070
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
2069
2071
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
2070
2072
|
*/
|
|
2071
2073
|
export declare function or(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
|
|
@@ -779,13 +779,14 @@ declare class fs {
|
|
|
779
779
|
* otherwise.
|
|
780
780
|
*/ declare function Jr(t: any, e: any): boolean;
|
|
781
781
|
/**
|
|
782
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
783
|
-
*
|
|
784
|
-
*
|
|
785
|
-
*
|
|
786
|
-
*
|
|
787
|
-
* {@link
|
|
788
|
-
* @
|
|
782
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
783
|
+
* the given filter constraints. A conjunction filter includes a document if it
|
|
784
|
+
* satisfies all of the given filters.
|
|
785
|
+
*
|
|
786
|
+
* @param queryConstraints - Optional. The list of
|
|
787
|
+
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
788
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
789
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
789
790
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
790
791
|
*/ declare function Tr(...t: any[]): Er;
|
|
791
792
|
/**
|
|
@@ -969,13 +970,14 @@ declare function vn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
969
970
|
* @returns The created {@link QueryLimitConstraint}.
|
|
970
971
|
*/ declare function $r(t: any): Pr;
|
|
971
972
|
/**
|
|
972
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
973
|
-
*
|
|
973
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
974
|
+
* the given filter constraints. A disjunction filter includes a document if it
|
|
975
|
+
* satisfies any of the given filters.
|
|
974
976
|
*
|
|
975
|
-
* @param queryConstraints - Optional. The
|
|
976
|
-
*
|
|
977
|
-
* {@link or}, or {@link and}.
|
|
978
|
-
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
977
|
+
* @param queryConstraints - Optional. The list of
|
|
978
|
+
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
979
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
980
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
979
981
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
980
982
|
*/ declare function Ir(...t: any[]): Er;
|
|
981
983
|
/**
|
|
@@ -167,24 +167,26 @@ export declare type QueryNonFilterConstraint = QueryOrderByConstraint | QueryLim
|
|
|
167
167
|
*/
|
|
168
168
|
export declare type QueryFilterConstraint = QueryFieldFilterConstraint | QueryCompositeFilterConstraint;
|
|
169
169
|
/**
|
|
170
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
171
|
-
*
|
|
170
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
171
|
+
* the given filter constraints. A disjunction filter includes a document if it
|
|
172
|
+
* satisfies any of the given filters.
|
|
172
173
|
*
|
|
173
|
-
* @param queryConstraints - Optional. The
|
|
174
|
-
*
|
|
175
|
-
* {@link or}, or {@link and}.
|
|
176
|
-
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
174
|
+
* @param queryConstraints - Optional. The list of
|
|
175
|
+
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
176
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
177
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
177
178
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
178
179
|
*/
|
|
179
180
|
export declare function or(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
|
|
180
181
|
/**
|
|
181
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
182
|
-
*
|
|
182
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
183
|
+
* the given filter constraints. A conjunction filter includes a document if it
|
|
184
|
+
* satisfies all of the given filters.
|
|
183
185
|
*
|
|
184
|
-
* @param queryConstraints - Optional. The
|
|
185
|
-
*
|
|
186
|
-
* {@link or}, or {@link and}.
|
|
187
|
-
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
186
|
+
* @param queryConstraints - Optional. The list of
|
|
187
|
+
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
188
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
189
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
188
190
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
189
191
|
*/
|
|
190
192
|
export declare function and(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
|
|
@@ -23,14 +23,18 @@ import { FieldMask } from '../model/field_mask';
|
|
|
23
23
|
export declare class OverlayedDocument {
|
|
24
24
|
readonly overlayedDocument: Document;
|
|
25
25
|
/**
|
|
26
|
-
* The fields that are locally mutated by patch mutations.
|
|
27
|
-
*
|
|
26
|
+
* The fields that are locally mutated by patch mutations.
|
|
27
|
+
*
|
|
28
|
+
* If the overlayed document is from set or delete mutations, this is `null`.
|
|
29
|
+
* If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
|
|
28
30
|
*/
|
|
29
31
|
readonly mutatedFields: FieldMask | null;
|
|
30
32
|
constructor(overlayedDocument: Document,
|
|
31
33
|
/**
|
|
32
|
-
* The fields that are locally mutated by patch mutations.
|
|
33
|
-
*
|
|
34
|
+
* The fields that are locally mutated by patch mutations.
|
|
35
|
+
*
|
|
36
|
+
* If the overlayed document is from set or delete mutations, this is `null`.
|
|
37
|
+
* If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
|
|
34
38
|
*/
|
|
35
39
|
mutatedFields: FieldMask | null);
|
|
36
40
|
}
|
|
@@ -22,27 +22,29 @@ import { PersistencePromise } from '../../../src/local/persistence_promise';
|
|
|
22
22
|
import { PersistenceTransaction } from '../../../src/local/persistence_transaction';
|
|
23
23
|
import { QueryEngine } from '../../../src/local/query_engine';
|
|
24
24
|
import { DocumentKeySet, DocumentMap } from '../../../src/model/collections';
|
|
25
|
+
import { MutationType } from '../../../src/model/mutation';
|
|
25
26
|
/**
|
|
26
27
|
* A test-only query engine that forwards all API calls and exposes the number
|
|
27
28
|
* of documents and mutations read.
|
|
28
29
|
*/
|
|
29
30
|
export declare class CountingQueryEngine extends QueryEngine {
|
|
30
31
|
/**
|
|
31
|
-
* The number of
|
|
32
|
-
* `
|
|
32
|
+
* The number of overlays returned by the DocumentOverlayCache's
|
|
33
|
+
* `getOverlaysByCollection(Group)` API (since the last call to
|
|
33
34
|
* `resetCounts()`)
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
+
overlaysReadByCollection: number;
|
|
36
37
|
/**
|
|
37
|
-
* The number of
|
|
38
|
-
* `
|
|
39
|
-
* `getAllMutationBatchesAffectingDocumentKeys()` APIs (since the last call
|
|
40
|
-
* to `resetCounts()`)
|
|
38
|
+
* The number of overlays returned by the DocumentOverlayCache's
|
|
39
|
+
* `getOverlay(s)` APIs (since the last call to `resetCounts()`)
|
|
41
40
|
*/
|
|
42
|
-
|
|
41
|
+
overlaysReadByKey: number;
|
|
42
|
+
overlayTypes: {
|
|
43
|
+
[k: string]: MutationType;
|
|
44
|
+
};
|
|
43
45
|
/**
|
|
44
46
|
* The number of documents returned by the RemoteDocumentCache's
|
|
45
|
-
* `getAll()` API (since the last call to `resetCounts()`)
|
|
47
|
+
* `getAll()` API (since the last call to `resetCounts()`).
|
|
46
48
|
*/
|
|
47
49
|
documentsReadByCollection: number;
|
|
48
50
|
/**
|
|
@@ -50,20 +52,9 @@ export declare class CountingQueryEngine extends QueryEngine {
|
|
|
50
52
|
* and `getEntries()` APIs (since the last call to `resetCounts()`)
|
|
51
53
|
*/
|
|
52
54
|
documentsReadByKey: number;
|
|
53
|
-
/**
|
|
54
|
-
* The number of documents returned by the OverlayCache's `getOverlays()`
|
|
55
|
-
* API (since the last call to `resetCounts()`)
|
|
56
|
-
*/
|
|
57
|
-
overlaysReadByCollection: number;
|
|
58
|
-
/**
|
|
59
|
-
* The number of documents returned by the OverlayCache's `getOverlay()`
|
|
60
|
-
* APIs (since the last call to `resetCounts()`)
|
|
61
|
-
*/
|
|
62
|
-
overlaysReadByKey: number;
|
|
63
55
|
resetCounts(): void;
|
|
64
56
|
getDocumentsMatchingQuery(transaction: PersistenceTransaction, query: Query, lastLimboFreeSnapshotVersion: SnapshotVersion, remoteKeys: DocumentKeySet): PersistencePromise<DocumentMap>;
|
|
65
57
|
initialize(localDocuments: LocalDocumentsView, indexManager: IndexManager): void;
|
|
66
58
|
private wrapRemoteDocumentCache;
|
|
67
|
-
private
|
|
68
|
-
private wrapDocumentOverlayCache;
|
|
59
|
+
private wrapOverlayCache;
|
|
69
60
|
}
|
|
@@ -1033,13 +1033,14 @@ declare function Gt(): boolean;
|
|
|
1033
1033
|
* otherwise.
|
|
1034
1034
|
*/ declare function Jl(t: any, e: any): boolean;
|
|
1035
1035
|
/**
|
|
1036
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
1037
|
-
*
|
|
1038
|
-
*
|
|
1039
|
-
*
|
|
1040
|
-
*
|
|
1041
|
-
* {@link
|
|
1042
|
-
* @
|
|
1036
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
1037
|
+
* the given filter constraints. A conjunction filter includes a document if it
|
|
1038
|
+
* satisfies all of the given filters.
|
|
1039
|
+
*
|
|
1040
|
+
* @param queryConstraints - Optional. The list of
|
|
1041
|
+
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
1042
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
1043
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
1043
1044
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
1044
1045
|
*/ declare function cl(...t: any[]): ol;
|
|
1045
1046
|
/**
|
|
@@ -1368,13 +1369,14 @@ declare function oh(e: any, n: any): import("../src").Firestore;
|
|
|
1368
1369
|
declare function jl(t: any, ...e: any[]): () => void;
|
|
1369
1370
|
declare function Wl(t: any, e: any): () => void;
|
|
1370
1371
|
/**
|
|
1371
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
1372
|
-
*
|
|
1372
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
1373
|
+
* the given filter constraints. A disjunction filter includes a document if it
|
|
1374
|
+
* satisfies any of the given filters.
|
|
1373
1375
|
*
|
|
1374
|
-
* @param queryConstraints - Optional. The
|
|
1375
|
-
*
|
|
1376
|
-
* {@link or}, or {@link and}.
|
|
1377
|
-
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
1376
|
+
* @param queryConstraints - Optional. The list of
|
|
1377
|
+
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
1378
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
1379
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
1378
1380
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
1379
1381
|
*/ declare function ul(...t: any[]): ol;
|
|
1380
1382
|
/**
|
|
@@ -167,24 +167,26 @@ export declare type QueryNonFilterConstraint = QueryOrderByConstraint | QueryLim
|
|
|
167
167
|
*/
|
|
168
168
|
export declare type QueryFilterConstraint = QueryFieldFilterConstraint | QueryCompositeFilterConstraint;
|
|
169
169
|
/**
|
|
170
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
171
|
-
*
|
|
170
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
171
|
+
* the given filter constraints. A disjunction filter includes a document if it
|
|
172
|
+
* satisfies any of the given filters.
|
|
172
173
|
*
|
|
173
|
-
* @param queryConstraints - Optional. The
|
|
174
|
-
*
|
|
175
|
-
* {@link or}, or {@link and}.
|
|
176
|
-
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
174
|
+
* @param queryConstraints - Optional. The list of
|
|
175
|
+
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
176
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
177
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
177
178
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
178
179
|
*/
|
|
179
180
|
export declare function or(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
|
|
180
181
|
/**
|
|
181
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
182
|
-
*
|
|
182
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
183
|
+
* the given filter constraints. A conjunction filter includes a document if it
|
|
184
|
+
* satisfies all of the given filters.
|
|
183
185
|
*
|
|
184
|
-
* @param queryConstraints - Optional. The
|
|
185
|
-
*
|
|
186
|
-
* {@link or}, or {@link and}.
|
|
187
|
-
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
186
|
+
* @param queryConstraints - Optional. The list of
|
|
187
|
+
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
188
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
189
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
188
190
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
189
191
|
*/
|
|
190
192
|
export declare function and(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
|
|
@@ -23,14 +23,18 @@ import { FieldMask } from '../model/field_mask';
|
|
|
23
23
|
export declare class OverlayedDocument {
|
|
24
24
|
readonly overlayedDocument: Document;
|
|
25
25
|
/**
|
|
26
|
-
* The fields that are locally mutated by patch mutations.
|
|
27
|
-
*
|
|
26
|
+
* The fields that are locally mutated by patch mutations.
|
|
27
|
+
*
|
|
28
|
+
* If the overlayed document is from set or delete mutations, this is `null`.
|
|
29
|
+
* If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
|
|
28
30
|
*/
|
|
29
31
|
readonly mutatedFields: FieldMask | null;
|
|
30
32
|
constructor(overlayedDocument: Document,
|
|
31
33
|
/**
|
|
32
|
-
* The fields that are locally mutated by patch mutations.
|
|
33
|
-
*
|
|
34
|
+
* The fields that are locally mutated by patch mutations.
|
|
35
|
+
*
|
|
36
|
+
* If the overlayed document is from set or delete mutations, this is `null`.
|
|
37
|
+
* If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
|
|
34
38
|
*/
|
|
35
39
|
mutatedFields: FieldMask | null);
|
|
36
40
|
}
|
|
@@ -22,27 +22,29 @@ import { PersistencePromise } from '../../../src/local/persistence_promise';
|
|
|
22
22
|
import { PersistenceTransaction } from '../../../src/local/persistence_transaction';
|
|
23
23
|
import { QueryEngine } from '../../../src/local/query_engine';
|
|
24
24
|
import { DocumentKeySet, DocumentMap } from '../../../src/model/collections';
|
|
25
|
+
import { MutationType } from '../../../src/model/mutation';
|
|
25
26
|
/**
|
|
26
27
|
* A test-only query engine that forwards all API calls and exposes the number
|
|
27
28
|
* of documents and mutations read.
|
|
28
29
|
*/
|
|
29
30
|
export declare class CountingQueryEngine extends QueryEngine {
|
|
30
31
|
/**
|
|
31
|
-
* The number of
|
|
32
|
-
* `
|
|
32
|
+
* The number of overlays returned by the DocumentOverlayCache's
|
|
33
|
+
* `getOverlaysByCollection(Group)` API (since the last call to
|
|
33
34
|
* `resetCounts()`)
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
+
overlaysReadByCollection: number;
|
|
36
37
|
/**
|
|
37
|
-
* The number of
|
|
38
|
-
* `
|
|
39
|
-
* `getAllMutationBatchesAffectingDocumentKeys()` APIs (since the last call
|
|
40
|
-
* to `resetCounts()`)
|
|
38
|
+
* The number of overlays returned by the DocumentOverlayCache's
|
|
39
|
+
* `getOverlay(s)` APIs (since the last call to `resetCounts()`)
|
|
41
40
|
*/
|
|
42
|
-
|
|
41
|
+
overlaysReadByKey: number;
|
|
42
|
+
overlayTypes: {
|
|
43
|
+
[k: string]: MutationType;
|
|
44
|
+
};
|
|
43
45
|
/**
|
|
44
46
|
* The number of documents returned by the RemoteDocumentCache's
|
|
45
|
-
* `getAll()` API (since the last call to `resetCounts()`)
|
|
47
|
+
* `getAll()` API (since the last call to `resetCounts()`).
|
|
46
48
|
*/
|
|
47
49
|
documentsReadByCollection: number;
|
|
48
50
|
/**
|
|
@@ -50,20 +52,9 @@ export declare class CountingQueryEngine extends QueryEngine {
|
|
|
50
52
|
* and `getEntries()` APIs (since the last call to `resetCounts()`)
|
|
51
53
|
*/
|
|
52
54
|
documentsReadByKey: number;
|
|
53
|
-
/**
|
|
54
|
-
* The number of documents returned by the OverlayCache's `getOverlays()`
|
|
55
|
-
* API (since the last call to `resetCounts()`)
|
|
56
|
-
*/
|
|
57
|
-
overlaysReadByCollection: number;
|
|
58
|
-
/**
|
|
59
|
-
* The number of documents returned by the OverlayCache's `getOverlay()`
|
|
60
|
-
* APIs (since the last call to `resetCounts()`)
|
|
61
|
-
*/
|
|
62
|
-
overlaysReadByKey: number;
|
|
63
55
|
resetCounts(): void;
|
|
64
56
|
getDocumentsMatchingQuery(transaction: PersistenceTransaction, query: Query, lastLimboFreeSnapshotVersion: SnapshotVersion, remoteKeys: DocumentKeySet): PersistencePromise<DocumentMap>;
|
|
65
57
|
initialize(localDocuments: LocalDocumentsView, indexManager: IndexManager): void;
|
|
66
58
|
private wrapRemoteDocumentCache;
|
|
67
|
-
private
|
|
68
|
-
private wrapDocumentOverlayCache;
|
|
59
|
+
private wrapOverlayCache;
|
|
69
60
|
}
|
package/dist/private.d.ts
CHANGED
|
@@ -3832,14 +3832,18 @@ declare class Overlay {
|
|
|
3832
3832
|
declare class OverlayedDocument {
|
|
3833
3833
|
readonly overlayedDocument: Document_2;
|
|
3834
3834
|
/**
|
|
3835
|
-
* The fields that are locally mutated by patch mutations.
|
|
3836
|
-
*
|
|
3835
|
+
* The fields that are locally mutated by patch mutations.
|
|
3836
|
+
*
|
|
3837
|
+
* If the overlayed document is from set or delete mutations, this is `null`.
|
|
3838
|
+
* If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
|
|
3837
3839
|
*/
|
|
3838
3840
|
readonly mutatedFields: FieldMask | null;
|
|
3839
3841
|
constructor(overlayedDocument: Document_2,
|
|
3840
3842
|
/**
|
|
3841
|
-
* The fields that are locally mutated by patch mutations.
|
|
3842
|
-
*
|
|
3843
|
+
* The fields that are locally mutated by patch mutations.
|
|
3844
|
+
*
|
|
3845
|
+
* If the overlayed document is from set or delete mutations, this is `null`.
|
|
3846
|
+
* If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
|
|
3843
3847
|
*/
|
|
3844
3848
|
mutatedFields: FieldMask | null);
|
|
3845
3849
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/firestore",
|
|
3
|
-
"version": "3.8.0-canary.
|
|
3
|
+
"version": "3.8.0-canary.3ee35f9ae",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=10.10.0"
|
|
6
6
|
},
|
|
@@ -82,22 +82,22 @@
|
|
|
82
82
|
"lite/package.json"
|
|
83
83
|
],
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@firebase/component": "0.6.0-canary.
|
|
86
|
-
"@firebase/logger": "0.4.0-canary.
|
|
87
|
-
"@firebase/util": "1.8.0-canary.
|
|
88
|
-
"@firebase/webchannel-wrapper": "0.9.0-canary.
|
|
85
|
+
"@firebase/component": "0.6.0-canary.3ee35f9ae",
|
|
86
|
+
"@firebase/logger": "0.4.0-canary.3ee35f9ae",
|
|
87
|
+
"@firebase/util": "1.8.0-canary.3ee35f9ae",
|
|
88
|
+
"@firebase/webchannel-wrapper": "0.9.0-canary.3ee35f9ae",
|
|
89
89
|
"@grpc/grpc-js": "~1.7.0",
|
|
90
90
|
"@grpc/proto-loader": "^0.6.13",
|
|
91
91
|
"node-fetch": "2.6.7",
|
|
92
92
|
"tslib": "^2.1.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@firebase/app": "0.9.0-canary.
|
|
95
|
+
"@firebase/app": "0.9.0-canary.3ee35f9ae"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@firebase/app": "0.9.0-canary.
|
|
99
|
-
"@firebase/app-compat": "0.2.0-canary.
|
|
100
|
-
"@firebase/auth": "0.21.0-canary.
|
|
98
|
+
"@firebase/app": "0.9.0-canary.3ee35f9ae",
|
|
99
|
+
"@firebase/app-compat": "0.2.0-canary.3ee35f9ae",
|
|
100
|
+
"@firebase/auth": "0.21.0-canary.3ee35f9ae",
|
|
101
101
|
"@rollup/plugin-alias": "3.1.9",
|
|
102
102
|
"@rollup/plugin-json": "4.1.0",
|
|
103
103
|
"@types/eslint": "7.29.0",
|