@firebase/firestore 3.7.3 → 3.8.0
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/CHANGELOG.md +18 -0
- package/dist/firestore/lite/index.d.ts +1 -1
- package/dist/firestore/src/api/filter.d.ts +1 -1
- package/dist/firestore/src/api.d.ts +1 -1
- package/dist/firestore/src/core/bound.d.ts +49 -0
- package/dist/firestore/src/core/filter.d.ts +134 -0
- package/dist/firestore/src/core/order_by.d.ts +35 -0
- package/dist/firestore/src/core/query.d.ts +5 -6
- package/dist/firestore/src/core/target.d.ts +4 -120
- package/dist/firestore/src/lite-api/query.d.ts +273 -66
- package/dist/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
- package/dist/firestore/src/local/local_documents_view.d.ts +0 -2
- package/dist/firestore/src/model/document.d.ts +8 -1
- package/dist/firestore/src/protos/firestore_proto_api.d.ts +1 -1
- package/dist/firestore/src/remote/serializer.d.ts +10 -3
- package/dist/firestore/src/util/logic_utils.d.ts +52 -0
- package/dist/firestore/src/util/types.d.ts +1 -1
- package/dist/firestore/test/lite/helpers.d.ts +1 -1
- package/dist/firestore/test/unit/core/filter.test.d.ts +17 -0
- package/dist/firestore/test/unit/specs/spec_test_runner.d.ts +2 -1
- package/dist/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
- package/dist/firestore/test/util/helpers.d.ts +6 -2
- package/dist/firestore/test/util/test_platform.d.ts +2 -2
- package/dist/index.d.ts +138 -62
- package/dist/index.esm2017.js +4295 -3742
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +4981 -4410
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +1657 -889
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +1650 -890
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +4520 -3967
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +328 -68
- package/dist/lite/firestore/lite/index.d.ts +1 -1
- package/dist/lite/firestore/src/api/filter.d.ts +1 -1
- package/dist/lite/firestore/src/api.d.ts +1 -1
- package/dist/lite/firestore/src/core/bound.d.ts +49 -0
- package/dist/lite/firestore/src/core/filter.d.ts +134 -0
- package/dist/lite/firestore/src/core/order_by.d.ts +35 -0
- package/dist/lite/firestore/src/core/query.d.ts +5 -6
- package/dist/lite/firestore/src/core/target.d.ts +4 -120
- package/dist/lite/firestore/src/lite-api/query.d.ts +273 -66
- package/dist/lite/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
- package/dist/lite/firestore/src/local/local_documents_view.d.ts +0 -2
- package/dist/lite/firestore/src/model/document.d.ts +8 -1
- package/dist/lite/firestore/src/protos/firestore_proto_api.d.ts +1 -1
- package/dist/lite/firestore/src/remote/serializer.d.ts +10 -3
- package/dist/lite/firestore/src/util/logic_utils.d.ts +52 -0
- package/dist/lite/firestore/src/util/types.d.ts +1 -1
- package/dist/lite/firestore/test/lite/helpers.d.ts +1 -1
- package/dist/lite/firestore/test/unit/core/filter.test.d.ts +17 -0
- package/dist/lite/firestore/test/unit/specs/spec_test_runner.d.ts +2 -1
- package/dist/lite/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
- package/dist/lite/firestore/test/util/helpers.d.ts +6 -2
- package/dist/lite/firestore/test/util/test_platform.d.ts +2 -2
- package/dist/lite/index.browser.esm2017.js +2091 -1793
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +2239 -2000
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.d.ts +138 -62
- package/dist/lite/index.node.cjs.js +2212 -1802
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +2205 -1803
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +2077 -1778
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +328 -66
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +322 -174
- package/dist/lite/packages/firestore/lite/index.d.ts +1 -1
- package/dist/lite/packages/firestore/rollup.config.debug.d.ts +1 -1
- package/dist/lite/packages/firestore/src/api/filter.d.ts +1 -1
- package/dist/lite/packages/firestore/src/api.d.ts +1 -1
- package/dist/lite/packages/firestore/src/core/bound.d.ts +49 -0
- package/dist/lite/packages/firestore/src/core/filter.d.ts +134 -0
- package/dist/lite/packages/firestore/src/core/order_by.d.ts +35 -0
- package/dist/lite/packages/firestore/src/core/query.d.ts +5 -6
- package/dist/lite/packages/firestore/src/core/target.d.ts +4 -120
- package/dist/lite/packages/firestore/src/lite-api/query.d.ts +273 -66
- package/dist/lite/packages/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
- package/dist/lite/packages/firestore/src/local/local_documents_view.d.ts +0 -2
- package/dist/lite/packages/firestore/src/model/document.d.ts +8 -1
- package/dist/lite/packages/firestore/src/protos/firestore_proto_api.d.ts +1 -1
- package/dist/lite/packages/firestore/src/remote/serializer.d.ts +10 -3
- package/dist/lite/packages/firestore/src/util/logic_utils.d.ts +52 -0
- package/dist/lite/packages/firestore/src/util/types.d.ts +1 -1
- package/dist/lite/packages/firestore/test/lite/helpers.d.ts +1 -1
- package/dist/lite/packages/firestore/test/unit/core/filter.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/unit/specs/spec_test_runner.d.ts +2 -1
- package/dist/lite/packages/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/util/helpers.d.ts +6 -2
- package/dist/lite/packages/firestore/test/util/test_platform.d.ts +2 -2
- package/dist/lite/private.d.ts +240 -66
- package/dist/packages/firestore/dist/index.esm2017.d.ts +368 -208
- package/dist/packages/firestore/lite/index.d.ts +1 -1
- package/dist/packages/firestore/rollup.config.debug.d.ts +1 -1
- package/dist/packages/firestore/src/api/filter.d.ts +1 -1
- package/dist/packages/firestore/src/api.d.ts +1 -1
- package/dist/packages/firestore/src/core/bound.d.ts +49 -0
- package/dist/packages/firestore/src/core/filter.d.ts +134 -0
- package/dist/packages/firestore/src/core/order_by.d.ts +35 -0
- package/dist/packages/firestore/src/core/query.d.ts +5 -6
- package/dist/packages/firestore/src/core/target.d.ts +4 -120
- package/dist/packages/firestore/src/lite-api/query.d.ts +273 -66
- package/dist/packages/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
- package/dist/packages/firestore/src/local/local_documents_view.d.ts +0 -2
- package/dist/packages/firestore/src/model/document.d.ts +8 -1
- package/dist/packages/firestore/src/protos/firestore_proto_api.d.ts +1 -1
- package/dist/packages/firestore/src/remote/serializer.d.ts +10 -3
- package/dist/packages/firestore/src/util/logic_utils.d.ts +52 -0
- package/dist/packages/firestore/src/util/types.d.ts +1 -1
- package/dist/packages/firestore/test/lite/helpers.d.ts +1 -1
- package/dist/packages/firestore/test/unit/core/filter.test.d.ts +17 -0
- package/dist/packages/firestore/test/unit/specs/spec_test_runner.d.ts +2 -1
- package/dist/packages/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
- package/dist/packages/firestore/test/util/helpers.d.ts +6 -2
- package/dist/packages/firestore/test/util/test_platform.d.ts +2 -2
- package/dist/private.d.ts +240 -68
- package/package.json +13 -11
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Converts Firestore's internal types to the JavaScript types that we expose
|
|
19
|
-
* to the user.
|
|
20
|
-
*
|
|
21
|
-
* @internal
|
|
22
|
-
*/ declare class tl {
|
|
1
|
+
declare class Pl {
|
|
23
2
|
convertValue(t: any, e?: string): any;
|
|
24
3
|
convertObject(t: any, e: any): {};
|
|
25
|
-
convertGeoPoint(t: any):
|
|
4
|
+
convertGeoPoint(t: any): Rh;
|
|
26
5
|
convertArray(t: any, e: any): any;
|
|
27
6
|
convertServerTimestamp(t: any, e: any): any;
|
|
28
7
|
convertTimestamp(t: any): nt;
|
|
@@ -47,13 +26,13 @@
|
|
|
47
26
|
/**
|
|
48
27
|
* Represents an aggregation that can be performed by Firestore.
|
|
49
28
|
*/
|
|
50
|
-
declare class
|
|
29
|
+
declare class Sa {
|
|
51
30
|
/** A type string to uniquely identify instances of this class. */
|
|
52
31
|
type: string;
|
|
53
32
|
}
|
|
54
33
|
/**
|
|
55
34
|
* The results of executing an aggregation query.
|
|
56
|
-
*/ declare class
|
|
35
|
+
*/ declare class Da {
|
|
57
36
|
/** @hideconstructor */
|
|
58
37
|
constructor(t: any, e: any);
|
|
59
38
|
_data: any;
|
|
@@ -107,18 +86,18 @@ declare class aa {
|
|
|
107
86
|
/**
|
|
108
87
|
* An immutable object representing an array of bytes.
|
|
109
88
|
*/
|
|
110
|
-
declare class
|
|
89
|
+
declare class Ih {
|
|
111
90
|
/**
|
|
112
91
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
113
92
|
* bytes.
|
|
114
93
|
*
|
|
115
94
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
116
|
-
*/ static fromBase64String(t: any):
|
|
95
|
+
*/ static fromBase64String(t: any): Ih;
|
|
117
96
|
/**
|
|
118
97
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
119
98
|
*
|
|
120
99
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
121
|
-
*/ static fromUint8Array(t: any):
|
|
100
|
+
*/ static fromUint8Array(t: any): Ih;
|
|
122
101
|
/** @hideconstructor */
|
|
123
102
|
constructor(t: any);
|
|
124
103
|
_byteString: any;
|
|
@@ -160,11 +139,11 @@ declare class th {
|
|
|
160
139
|
* See the License for the specific language governing permissions and
|
|
161
140
|
* limitations under the License.
|
|
162
141
|
*/
|
|
163
|
-
/** DOMException error code constants. */ declare const
|
|
142
|
+
/** DOMException error code constants. */ declare const sh: -1;
|
|
164
143
|
/**
|
|
165
144
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
166
145
|
* document references, and querying for documents (using {@link query}).
|
|
167
|
-
*/ declare class
|
|
146
|
+
*/ declare class Ia extends pa {
|
|
168
147
|
_path: any;
|
|
169
148
|
/** The collection's identifier. */ get id(): any;
|
|
170
149
|
/**
|
|
@@ -174,7 +153,8 @@ declare class th {
|
|
|
174
153
|
/**
|
|
175
154
|
* A reference to the containing `DocumentReference` if this is a
|
|
176
155
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
177
|
-
*/ get parent():
|
|
156
|
+
*/ get parent(): ya | null;
|
|
157
|
+
withConverter(t: any): Ia;
|
|
178
158
|
}
|
|
179
159
|
/**
|
|
180
160
|
* @license
|
|
@@ -196,7 +176,7 @@ declare class th {
|
|
|
196
176
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
197
177
|
* and can be used to write, read, or listen to the location. The document at
|
|
198
178
|
* the referenced location may or may not exist.
|
|
199
|
-
*/ declare class
|
|
179
|
+
*/ declare class ya {
|
|
200
180
|
/** @hideconstructor */
|
|
201
181
|
constructor(t: any, e: any, n: any);
|
|
202
182
|
converter: any;
|
|
@@ -214,8 +194,8 @@ declare class th {
|
|
|
214
194
|
*/ get path(): any;
|
|
215
195
|
/**
|
|
216
196
|
* The collection this `DocumentReference` belongs to.
|
|
217
|
-
*/ get parent():
|
|
218
|
-
withConverter(t: any):
|
|
197
|
+
*/ get parent(): Ia;
|
|
198
|
+
withConverter(t: any): ya;
|
|
219
199
|
}
|
|
220
200
|
/**
|
|
221
201
|
* A `DocumentSnapshot` contains data read from a document in your Firestore
|
|
@@ -225,11 +205,42 @@ declare class th {
|
|
|
225
205
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
226
206
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
227
207
|
* explicitly verify a document's existence.
|
|
228
|
-
*/ declare class
|
|
208
|
+
*/ declare class Dl extends Yh {
|
|
229
209
|
/** @hideconstructor protected */
|
|
230
210
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
231
211
|
_firestoreImpl: any;
|
|
232
212
|
metadata: any;
|
|
213
|
+
/**
|
|
214
|
+
* Retrieves all fields in the document as an `Object`. Returns `undefined` if
|
|
215
|
+
* the document doesn't exist.
|
|
216
|
+
*
|
|
217
|
+
* By default, `serverTimestamp()` values that have not yet been
|
|
218
|
+
* set to their final value will be returned as `null`. You can override
|
|
219
|
+
* this by passing an options object.
|
|
220
|
+
*
|
|
221
|
+
* @param options - An options object to configure how data is retrieved from
|
|
222
|
+
* the snapshot (for example the desired behavior for server timestamps that
|
|
223
|
+
* have not yet been set to their final value).
|
|
224
|
+
* @returns An `Object` containing all fields in the document or `undefined` if
|
|
225
|
+
* the document doesn't exist.
|
|
226
|
+
*/ data(t?: {}): any;
|
|
227
|
+
/**
|
|
228
|
+
* Retrieves the field specified by `fieldPath`. Returns `undefined` if the
|
|
229
|
+
* document or field doesn't exist.
|
|
230
|
+
*
|
|
231
|
+
* By default, a `serverTimestamp()` that has not yet been set to
|
|
232
|
+
* its final value will be returned as `null`. You can override this by
|
|
233
|
+
* passing an options object.
|
|
234
|
+
*
|
|
235
|
+
* @param fieldPath - The path (for example 'foo' or 'foo.bar') to a specific
|
|
236
|
+
* field.
|
|
237
|
+
* @param options - An options object to configure how the field is retrieved
|
|
238
|
+
* from the snapshot (for example the desired behavior for server timestamps
|
|
239
|
+
* that have not yet been set to their final value).
|
|
240
|
+
* @returns The data at the specified field location or undefined if no such
|
|
241
|
+
* field exists in the document.
|
|
242
|
+
*/
|
|
243
|
+
get(t: any, e?: {}): any;
|
|
233
244
|
}
|
|
234
245
|
/**
|
|
235
246
|
* @license
|
|
@@ -254,7 +265,7 @@ declare class th {
|
|
|
254
265
|
*
|
|
255
266
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
256
267
|
* name is provided, the path will point to a nested field in a document.
|
|
257
|
-
*/ declare class
|
|
268
|
+
*/ declare class Th {
|
|
258
269
|
/**
|
|
259
270
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
260
271
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -289,7 +300,7 @@ declare class th {
|
|
|
289
300
|
/**
|
|
290
301
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
291
302
|
* or `update()`.
|
|
292
|
-
*/ declare class
|
|
303
|
+
*/ declare class Ah {
|
|
293
304
|
/**
|
|
294
305
|
* @param _methodName - The public API endpoint that returns this class.
|
|
295
306
|
* @hideconstructor
|
|
@@ -302,12 +313,16 @@ declare class th {
|
|
|
302
313
|
*
|
|
303
314
|
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
304
315
|
*/
|
|
305
|
-
declare class
|
|
306
|
-
_queue:
|
|
316
|
+
declare class ih extends ma {
|
|
317
|
+
_queue: th;
|
|
318
|
+
_persistenceKey: any;
|
|
319
|
+
_terminate(): any;
|
|
307
320
|
}
|
|
308
321
|
/** An error returned by a Firestore operation. */ declare class L extends c {
|
|
309
322
|
/** @hideconstructor */
|
|
310
323
|
constructor(t: any, e: any);
|
|
324
|
+
code: any;
|
|
325
|
+
message: any;
|
|
311
326
|
}
|
|
312
327
|
/**
|
|
313
328
|
* @license
|
|
@@ -331,7 +346,7 @@ declare class $a extends Jc {
|
|
|
331
346
|
*
|
|
332
347
|
* Latitude values are in the range of [-90, 90].
|
|
333
348
|
* Longitude values are in the range of [-180, 180].
|
|
334
|
-
*/ declare class
|
|
349
|
+
*/ declare class Rh {
|
|
335
350
|
/**
|
|
336
351
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
337
352
|
* longitude values.
|
|
@@ -362,9 +377,9 @@ declare class $a extends Jc {
|
|
|
362
377
|
* with an underscore.
|
|
363
378
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
364
379
|
}
|
|
365
|
-
declare class
|
|
380
|
+
declare class nh {
|
|
366
381
|
_progressObserver: {};
|
|
367
|
-
_taskCompletionResolver:
|
|
382
|
+
_taskCompletionResolver: q;
|
|
368
383
|
_lastProgress: {
|
|
369
384
|
taskState: string;
|
|
370
385
|
totalBytes: number;
|
|
@@ -414,7 +429,7 @@ declare class Ma {
|
|
|
414
429
|
/**
|
|
415
430
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
416
431
|
* construct refined `Query` objects by adding filters and ordering.
|
|
417
|
-
*/ declare class
|
|
432
|
+
*/ declare class pa {
|
|
418
433
|
/** @hideconstructor protected */
|
|
419
434
|
constructor(t: any, e: any, n: any);
|
|
420
435
|
converter: any;
|
|
@@ -422,16 +437,37 @@ declare class Ma {
|
|
|
422
437
|
/** The type of this Firestore reference. */
|
|
423
438
|
type: string;
|
|
424
439
|
firestore: any;
|
|
425
|
-
withConverter(t: any):
|
|
440
|
+
withConverter(t: any): pa;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* A `QueryCompositeFilterConstraint` is used to narrow the set of documents
|
|
444
|
+
* returned by a Firestore query by performing the logical OR or AND of multiple
|
|
445
|
+
* {@link QueryFieldFilterConstraint}s or {@link QueryCompositeFilterConstraint}s.
|
|
446
|
+
* `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
|
|
447
|
+
* {@link and} and can then be passed to {@link query} to create a new query
|
|
448
|
+
* instance that also contains the `QueryCompositeFilterConstraint`.
|
|
449
|
+
* @internal TODO remove this internal tag with OR Query support in the server
|
|
450
|
+
*/ declare class ol extends el {
|
|
451
|
+
static _create(t: any, e: any): ol;
|
|
452
|
+
/**
|
|
453
|
+
* @internal
|
|
454
|
+
*/
|
|
455
|
+
constructor(t: any, e: any);
|
|
456
|
+
type: any;
|
|
457
|
+
_queryConstraints: any;
|
|
458
|
+
_parse(t: any): any;
|
|
459
|
+
_apply(t: any): any;
|
|
460
|
+
_getQueryConstraints(): any;
|
|
461
|
+
_getOperator(): "and" | "or";
|
|
426
462
|
}
|
|
427
463
|
/**
|
|
428
464
|
* A `QueryConstraint` is used to narrow the set of documents returned by a
|
|
429
465
|
* Firestore query. `QueryConstraint`s are created by invoking {@link where},
|
|
430
|
-
* {@link orderBy}, {@link
|
|
431
|
-
* endBefore
|
|
466
|
+
* {@link orderBy}, {@link startAt}, {@link startAfter}, {@link
|
|
467
|
+
* endBefore}, {@link endAt}, {@link limit}, {@link limitToLast} and
|
|
432
468
|
* can then be passed to {@link query} to create a new query instance that
|
|
433
469
|
* also contains this `QueryConstraint`.
|
|
434
|
-
*/ declare class
|
|
470
|
+
*/ declare class nl extends el {
|
|
435
471
|
}
|
|
436
472
|
/**
|
|
437
473
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -443,7 +479,81 @@ declare class Ma {
|
|
|
443
479
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
444
480
|
* `exists` property will always be true and `data()` will never return
|
|
445
481
|
* 'undefined'.
|
|
446
|
-
*/ declare class
|
|
482
|
+
*/ declare class Cl extends Dl {
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* A `QueryEndAtConstraint` is used to exclude documents from the end of a
|
|
486
|
+
* result set returned by a Firestore query.
|
|
487
|
+
* `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
|
|
488
|
+
* {@link (endBefore:1)} and can then be passed to {@link query} to create a new
|
|
489
|
+
* query instance that also contains this `QueryEndAtConstraint`.
|
|
490
|
+
*/ declare class gl extends nl {
|
|
491
|
+
static _create(t: any, e: any, n: any): gl;
|
|
492
|
+
/**
|
|
493
|
+
* @internal
|
|
494
|
+
*/
|
|
495
|
+
constructor(t: any, e: any, n: any);
|
|
496
|
+
type: any;
|
|
497
|
+
_docOrFields: any;
|
|
498
|
+
_inclusive: any;
|
|
499
|
+
_apply(t: any): pa;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
|
|
503
|
+
* a Firestore query by filtering on one or more document fields.
|
|
504
|
+
* `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
|
|
505
|
+
* be passed to {@link query} to create a new query instance that also contains
|
|
506
|
+
* this `QueryFieldFilterConstraint`.
|
|
507
|
+
*/ declare class il extends nl {
|
|
508
|
+
static _create(t: any, e: any, n: any): il;
|
|
509
|
+
/**
|
|
510
|
+
* @internal
|
|
511
|
+
*/
|
|
512
|
+
constructor(t: any, e: any, n: any);
|
|
513
|
+
_field: any;
|
|
514
|
+
_op: any;
|
|
515
|
+
_value: any;
|
|
516
|
+
/** The type of this query constraint */
|
|
517
|
+
type: string;
|
|
518
|
+
_apply(t: any): pa;
|
|
519
|
+
_parse(t: any): Re | Oe | qe;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* A `QueryLimitConstraint` is used to limit the number of documents returned by
|
|
523
|
+
* a Firestore query.
|
|
524
|
+
* `QueryLimitConstraint`s are created by invoking {@link limit} or
|
|
525
|
+
* {@link limitToLast} and can then be passed to {@link query} to create a new
|
|
526
|
+
* query instance that also contains this `QueryLimitConstraint`.
|
|
527
|
+
*/ declare class ll extends nl {
|
|
528
|
+
static _create(t: any, e: any, n: any): ll;
|
|
529
|
+
/**
|
|
530
|
+
* @internal
|
|
531
|
+
*/
|
|
532
|
+
constructor(t: any, e: any, n: any);
|
|
533
|
+
type: any;
|
|
534
|
+
_limit: any;
|
|
535
|
+
_limitType: any;
|
|
536
|
+
_apply(t: any): pa;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* A `QueryOrderByConstraint` is used to sort the set of documents returned by a
|
|
540
|
+
* Firestore query. `QueryOrderByConstraint`s are created by invoking
|
|
541
|
+
* {@link orderBy} and can then be passed to {@link query} to create a new query
|
|
542
|
+
* instance that also contains this `QueryOrderByConstraint`.
|
|
543
|
+
*
|
|
544
|
+
* Note: Documents that do not contain the orderBy field will not be present in
|
|
545
|
+
* the query result.
|
|
546
|
+
*/ declare class al extends nl {
|
|
547
|
+
static _create(t: any, e: any): al;
|
|
548
|
+
/**
|
|
549
|
+
* @internal
|
|
550
|
+
*/
|
|
551
|
+
constructor(t: any, e: any);
|
|
552
|
+
_field: any;
|
|
553
|
+
_direction: any;
|
|
554
|
+
/** The type of this query constraint */
|
|
555
|
+
type: string;
|
|
556
|
+
_apply(t: any): pa;
|
|
447
557
|
}
|
|
448
558
|
/**
|
|
449
559
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -451,13 +561,13 @@ declare class Ma {
|
|
|
451
561
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
452
562
|
* number of documents can be determined via the `empty` and `size`
|
|
453
563
|
* properties.
|
|
454
|
-
*/ declare class
|
|
564
|
+
*/ declare class xl {
|
|
455
565
|
/** @hideconstructor */
|
|
456
566
|
constructor(t: any, e: any, n: any, s: any);
|
|
457
567
|
_firestore: any;
|
|
458
568
|
_userDataWriter: any;
|
|
459
569
|
_snapshot: any;
|
|
460
|
-
metadata:
|
|
570
|
+
metadata: Sl;
|
|
461
571
|
query: any;
|
|
462
572
|
/** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
|
|
463
573
|
/** The number of documents in the `QuerySnapshot`. */ get size(): any;
|
|
@@ -481,6 +591,23 @@ declare class Ma {
|
|
|
481
591
|
_cachedChanges: any;
|
|
482
592
|
_cachedChangesIncludeMetadataChanges: any;
|
|
483
593
|
}
|
|
594
|
+
/**
|
|
595
|
+
* A `QueryStartAtConstraint` is used to exclude documents from the start of a
|
|
596
|
+
* result set returned by a Firestore query.
|
|
597
|
+
* `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
|
|
598
|
+
* {@link (startAfter:1)} and can then be passed to {@link query} to create a
|
|
599
|
+
* new query instance that also contains this `QueryStartAtConstraint`.
|
|
600
|
+
*/ declare class _l extends nl {
|
|
601
|
+
static _create(t: any, e: any, n: any): _l;
|
|
602
|
+
/**
|
|
603
|
+
* @internal
|
|
604
|
+
*/
|
|
605
|
+
constructor(t: any, e: any, n: any);
|
|
606
|
+
type: any;
|
|
607
|
+
_docOrFields: any;
|
|
608
|
+
_inclusive: any;
|
|
609
|
+
_apply(t: any): pa;
|
|
610
|
+
}
|
|
484
611
|
/**
|
|
485
612
|
* @license
|
|
486
613
|
* Copyright 2020 Google LLC
|
|
@@ -499,7 +626,7 @@ declare class Ma {
|
|
|
499
626
|
*/
|
|
500
627
|
/**
|
|
501
628
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
502
|
-
*/ declare class
|
|
629
|
+
*/ declare class Sl {
|
|
503
630
|
/** @hideconstructor */
|
|
504
631
|
constructor(t: any, e: any);
|
|
505
632
|
hasPendingWrites: any;
|
|
@@ -608,11 +735,11 @@ declare class nt {
|
|
|
608
735
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
609
736
|
*/ valueOf(): string;
|
|
610
737
|
}
|
|
611
|
-
declare const
|
|
738
|
+
declare const ef_base: {
|
|
612
739
|
new (t: any, e: any): {
|
|
613
740
|
_firestore: any;
|
|
614
741
|
_transaction: any;
|
|
615
|
-
_dataReader:
|
|
742
|
+
_dataReader: Dh;
|
|
616
743
|
/**
|
|
617
744
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
618
745
|
*
|
|
@@ -675,7 +802,7 @@ declare const Sl_base: {
|
|
|
675
802
|
* the methods to read and write data within the transaction context. See
|
|
676
803
|
* {@link runTransaction}.
|
|
677
804
|
*/
|
|
678
|
-
declare class
|
|
805
|
+
declare class ef extends ef_base {
|
|
679
806
|
}
|
|
680
807
|
/**
|
|
681
808
|
* @license
|
|
@@ -701,22 +828,22 @@ declare class Sl extends Sl_base {
|
|
|
701
828
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
702
829
|
* called.
|
|
703
830
|
*/
|
|
704
|
-
declare class
|
|
831
|
+
declare class Zl {
|
|
705
832
|
/** @hideconstructor */
|
|
706
833
|
constructor(t: any, e: any);
|
|
707
834
|
_firestore: any;
|
|
708
835
|
_commitHandler: any;
|
|
709
836
|
_mutations: any[];
|
|
710
837
|
_committed: boolean;
|
|
711
|
-
_dataReader:
|
|
712
|
-
set(t: any, e: any, n: any):
|
|
713
|
-
update(t: any, e: any, n: any, ...s: any[]):
|
|
838
|
+
_dataReader: Dh;
|
|
839
|
+
set(t: any, e: any, n: any): Zl;
|
|
840
|
+
update(t: any, e: any, n: any, ...s: any[]): Zl;
|
|
714
841
|
/**
|
|
715
842
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
716
843
|
*
|
|
717
844
|
* @param documentRef - A reference to the document to be deleted.
|
|
718
845
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
719
|
-
*/ delete(t: any):
|
|
846
|
+
*/ delete(t: any): Zl;
|
|
720
847
|
/**
|
|
721
848
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
722
849
|
*
|
|
@@ -736,8 +863,8 @@ declare class vl {
|
|
|
736
863
|
* Represents the database ID a Firestore client is associated with.
|
|
737
864
|
* @internal
|
|
738
865
|
*/
|
|
739
|
-
declare class
|
|
740
|
-
static empty():
|
|
866
|
+
declare class Ft {
|
|
867
|
+
static empty(): Ft;
|
|
741
868
|
constructor(t: any, e: any);
|
|
742
869
|
projectId: any;
|
|
743
870
|
database: any;
|
|
@@ -830,7 +957,7 @@ declare class ne {
|
|
|
830
957
|
* Returns true if this field references the key of a document.
|
|
831
958
|
*/ isKeyField(): boolean;
|
|
832
959
|
}
|
|
833
|
-
declare function
|
|
960
|
+
declare function fa(t: any, e: any): any;
|
|
834
961
|
/**
|
|
835
962
|
* Fails if the given assertion condition is false, throwing an Error with the
|
|
836
963
|
* given message if it did.
|
|
@@ -859,14 +986,14 @@ declare function jc(t: any, e: any): any;
|
|
|
859
986
|
*/
|
|
860
987
|
/** Converts a Base64 encoded string to a binary string. */
|
|
861
988
|
/** True if and only if the Base64 conversion functions are available. */
|
|
862
|
-
declare function
|
|
989
|
+
declare function Gt(): boolean;
|
|
863
990
|
/**
|
|
864
991
|
* @internal
|
|
865
992
|
*/ declare function N(t: any, ...e: any[]): void;
|
|
866
993
|
/**
|
|
867
994
|
* Validates that two boolean options are not set at the same time.
|
|
868
995
|
* @internal
|
|
869
|
-
*/ declare function
|
|
996
|
+
*/ declare function ca(t: any, e: any, n: any, s: any): void;
|
|
870
997
|
/**
|
|
871
998
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
872
999
|
* assigning it a document ID automatically.
|
|
@@ -876,7 +1003,7 @@ declare function jt(): boolean;
|
|
|
876
1003
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
877
1004
|
* newly created document after it has been written to the backend (Note that it
|
|
878
1005
|
* won't resolve while you're offline).
|
|
879
|
-
*/ declare function
|
|
1006
|
+
*/ declare function Ql(t: any, e: any): Promise<ya>;
|
|
880
1007
|
/**
|
|
881
1008
|
* @license
|
|
882
1009
|
* Copyright 2022 Google LLC
|
|
@@ -904,7 +1031,17 @@ declare function jt(): boolean;
|
|
|
904
1031
|
*
|
|
905
1032
|
* @returns `true` if the objects are "equal", as defined above, or `false`
|
|
906
1033
|
* otherwise.
|
|
907
|
-
*/ declare function
|
|
1034
|
+
*/ declare function Jl(t: any, e: any): boolean;
|
|
1035
|
+
/**
|
|
1036
|
+
* Creates a {@link QueryCompositeFilterConstraint} that performs a logical AND
|
|
1037
|
+
* of all the provided {@link QueryFilterConstraint}s.
|
|
1038
|
+
*
|
|
1039
|
+
* @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
|
|
1040
|
+
* for AND operation. These must be created with calls to {@link where},
|
|
1041
|
+
* {@link or}, or {@link and}.
|
|
1042
|
+
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
1043
|
+
* @internal TODO remove this internal tag with OR Query support in the server
|
|
1044
|
+
*/ declare function cl(...t: any[]): ol;
|
|
908
1045
|
/**
|
|
909
1046
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
910
1047
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -915,7 +1052,7 @@ declare function jt(): boolean;
|
|
|
915
1052
|
* @param elements - The elements to remove from the array.
|
|
916
1053
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
917
1054
|
* `updateDoc()`
|
|
918
|
-
*/ declare function
|
|
1055
|
+
*/ declare function uf(...t: any[]): Fh;
|
|
919
1056
|
/**
|
|
920
1057
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
921
1058
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -927,9 +1064,9 @@ declare function jt(): boolean;
|
|
|
927
1064
|
* @param elements - The elements to union into the array.
|
|
928
1065
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
929
1066
|
* `updateDoc()`.
|
|
930
|
-
*/ declare function
|
|
931
|
-
declare function
|
|
932
|
-
declare function
|
|
1067
|
+
*/ declare function of(...t: any[]): Mh;
|
|
1068
|
+
declare function fh(t: any): Promise<any>;
|
|
1069
|
+
declare function Ta(t: any, e: any, ...n: any[]): Ia;
|
|
933
1070
|
/**
|
|
934
1071
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
935
1072
|
* database that are contained in a collection or subcollection with the
|
|
@@ -940,7 +1077,7 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
|
|
|
940
1077
|
* collection or subcollection with this ID as the last segment of its path
|
|
941
1078
|
* will be included. Cannot contain a slash.
|
|
942
1079
|
* @returns The created `Query`.
|
|
943
|
-
*/ declare function
|
|
1080
|
+
*/ declare function Ea(t: any, e: any): pa;
|
|
944
1081
|
/**
|
|
945
1082
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
946
1083
|
*
|
|
@@ -953,14 +1090,14 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
|
|
|
953
1090
|
* @param port - the emulator port (ex: 9000).
|
|
954
1091
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
955
1092
|
* Security Rules.
|
|
956
|
-
*/ declare function
|
|
1093
|
+
*/ declare function ga(t: any, e: any, n: any, s?: {}): void;
|
|
957
1094
|
/**
|
|
958
1095
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
959
1096
|
*
|
|
960
1097
|
* @param reference - A reference to the document to delete.
|
|
961
1098
|
* @returns A Promise resolved once the document has been successfully
|
|
962
1099
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
963
|
-
*/ declare function
|
|
1100
|
+
*/ declare function Gl(t: any): Promise<any>;
|
|
964
1101
|
/**
|
|
965
1102
|
* @license
|
|
966
1103
|
* Copyright 2020 Google LLC
|
|
@@ -980,7 +1117,7 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
|
|
|
980
1117
|
/**
|
|
981
1118
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
982
1119
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
983
|
-
*/ declare function
|
|
1120
|
+
*/ declare function sf(): Nh;
|
|
984
1121
|
/**
|
|
985
1122
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
986
1123
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -988,12 +1125,12 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
|
|
|
988
1125
|
* operations will be queued until the network is restored.
|
|
989
1126
|
*
|
|
990
1127
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
991
|
-
*/ declare function
|
|
992
|
-
declare function
|
|
1128
|
+
*/ declare function wh(t: any): any;
|
|
1129
|
+
declare function Aa(t: any, e: any, ...n: any[]): ya;
|
|
993
1130
|
/**
|
|
994
1131
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
995
1132
|
* It can be used in queries to sort or filter by the document ID.
|
|
996
|
-
*/ declare function
|
|
1133
|
+
*/ declare function Eh(): Th;
|
|
997
1134
|
/**
|
|
998
1135
|
* Attempts to enable persistent storage, if possible.
|
|
999
1136
|
*
|
|
@@ -1016,7 +1153,7 @@ declare function sa(t: any, e: any, ...n: any[]): Xc;
|
|
|
1016
1153
|
* @param persistenceSettings - Optional settings object to configure
|
|
1017
1154
|
* persistence.
|
|
1018
1155
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
1019
|
-
*/ declare function
|
|
1156
|
+
*/ declare function ah(t: any, e: any): any;
|
|
1020
1157
|
/**
|
|
1021
1158
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
1022
1159
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -1038,22 +1175,22 @@ declare function sa(t: any, e: any, ...n: any[]): Xc;
|
|
|
1038
1175
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
1039
1176
|
* @returns A `Promise` that represents successfully enabling persistent
|
|
1040
1177
|
* storage.
|
|
1041
|
-
*/ declare function
|
|
1178
|
+
*/ declare function hh(t: any): any;
|
|
1042
1179
|
/**
|
|
1043
1180
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
1044
1181
|
* call to {@link disableNetwork}.
|
|
1045
1182
|
*
|
|
1046
1183
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
1047
|
-
*/ declare function
|
|
1048
|
-
declare function
|
|
1049
|
-
declare function
|
|
1184
|
+
*/ declare function _h(t: any): any;
|
|
1185
|
+
declare function pl(...t: any[]): gl;
|
|
1186
|
+
declare function yl(...t: any[]): gl;
|
|
1050
1187
|
/**
|
|
1051
1188
|
* @internal
|
|
1052
|
-
*/ declare function
|
|
1189
|
+
*/ declare function uh(t: any): any;
|
|
1053
1190
|
/**
|
|
1054
1191
|
* Locally writes `mutations` on the async queue.
|
|
1055
1192
|
* @internal
|
|
1056
|
-
*/ declare function
|
|
1193
|
+
*/ declare function zl(t: any, e: any): Promise<any>;
|
|
1057
1194
|
/**
|
|
1058
1195
|
* @license
|
|
1059
1196
|
* Copyright 2022 Google LLC
|
|
@@ -1090,7 +1227,7 @@ declare function zh(...t: any[]): Wh;
|
|
|
1090
1227
|
* @returns A Promise that will be resolved with the count; the count can be
|
|
1091
1228
|
* retrieved from `snapshot.data().count`, where `snapshot` is the
|
|
1092
1229
|
* `AggregateQuerySnapshot` to which the returned Promise resolves.
|
|
1093
|
-
*/ declare function
|
|
1230
|
+
*/ declare function Yl(t: any): Promise<any>;
|
|
1094
1231
|
/**
|
|
1095
1232
|
* @license
|
|
1096
1233
|
* Copyright 2020 Google LLC
|
|
@@ -1118,21 +1255,21 @@ declare function zh(...t: any[]): Wh;
|
|
|
1118
1255
|
* @param reference - The reference of the document to fetch.
|
|
1119
1256
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
1120
1257
|
* current document contents.
|
|
1121
|
-
*/ declare function
|
|
1258
|
+
*/ declare function Ol(t: any): Promise<Dl>;
|
|
1122
1259
|
/**
|
|
1123
1260
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
1124
1261
|
* Returns an error if the document is not currently cached.
|
|
1125
1262
|
*
|
|
1126
1263
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1127
1264
|
* current document contents.
|
|
1128
|
-
*/ declare function
|
|
1265
|
+
*/ declare function Fl(t: any): Promise<Dl>;
|
|
1129
1266
|
/**
|
|
1130
1267
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
1131
1268
|
* Returns an error if the network is not available.
|
|
1132
1269
|
*
|
|
1133
1270
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1134
1271
|
* current document contents.
|
|
1135
|
-
*/ declare function
|
|
1272
|
+
*/ declare function $l(t: any): Promise<Dl>;
|
|
1136
1273
|
/**
|
|
1137
1274
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1138
1275
|
*
|
|
@@ -1142,20 +1279,20 @@ declare function zh(...t: any[]): Wh;
|
|
|
1142
1279
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
1143
1280
|
*
|
|
1144
1281
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1145
|
-
*/ declare function
|
|
1282
|
+
*/ declare function Bl(t: any): Promise<xl>;
|
|
1146
1283
|
/**
|
|
1147
1284
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1148
1285
|
* Returns an error if the document is not currently cached.
|
|
1149
1286
|
*
|
|
1150
1287
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1151
|
-
*/ declare function
|
|
1288
|
+
*/ declare function Ll(t: any): Promise<xl>;
|
|
1152
1289
|
/**
|
|
1153
1290
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1154
1291
|
* server. Returns an error if the network is not available.
|
|
1155
1292
|
*
|
|
1156
1293
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1157
|
-
*/ declare function
|
|
1158
|
-
declare function
|
|
1294
|
+
*/ declare function ql(t: any): Promise<xl>;
|
|
1295
|
+
declare function oh(e: any, n: any): import("../src").Firestore;
|
|
1159
1296
|
/**
|
|
1160
1297
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1161
1298
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1174,7 +1311,7 @@ declare function La(e: any, n: any): import("../src").Firestore;
|
|
|
1174
1311
|
* @param n - The value to increment by.
|
|
1175
1312
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1176
1313
|
* `updateDoc()`
|
|
1177
|
-
*/ declare function
|
|
1314
|
+
*/ declare function cf(t: any): $h;
|
|
1178
1315
|
/**
|
|
1179
1316
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1180
1317
|
* Can only be called before any other function, including
|
|
@@ -1186,22 +1323,24 @@ declare function La(e: any, n: any): import("../src").Firestore;
|
|
|
1186
1323
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1187
1324
|
* @param databaseId - The name of database.
|
|
1188
1325
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1189
|
-
*/ declare function
|
|
1326
|
+
*/ declare function rh(t: any, e: any, n: any): import("../src").Firestore;
|
|
1190
1327
|
/**
|
|
1191
|
-
* Creates a {@link
|
|
1328
|
+
* Creates a {@link QueryLimitConstraint} that only returns the first matching
|
|
1329
|
+
* documents.
|
|
1192
1330
|
*
|
|
1193
1331
|
* @param limit - The maximum number of items to return.
|
|
1194
|
-
* @returns The created {@link
|
|
1195
|
-
*/ declare function
|
|
1332
|
+
* @returns The created {@link QueryLimitConstraint}.
|
|
1333
|
+
*/ declare function fl(t: any): ll;
|
|
1196
1334
|
/**
|
|
1197
|
-
* Creates a {@link
|
|
1335
|
+
* Creates a {@link QueryLimitConstraint} that only returns the last matching
|
|
1336
|
+
* documents.
|
|
1198
1337
|
*
|
|
1199
1338
|
* You must specify at least one `orderBy` clause for `limitToLast` queries,
|
|
1200
1339
|
* otherwise an exception will be thrown during execution.
|
|
1201
1340
|
*
|
|
1202
1341
|
* @param limit - The maximum number of items to return.
|
|
1203
|
-
* @returns The created {@link
|
|
1204
|
-
*/ declare function
|
|
1342
|
+
* @returns The created {@link QueryLimitConstraint}.
|
|
1343
|
+
*/ declare function dl(t: any): ll;
|
|
1205
1344
|
/**
|
|
1206
1345
|
* Loads a Firestore bundle into the local cache.
|
|
1207
1346
|
*
|
|
@@ -1212,7 +1351,7 @@ declare function La(e: any, n: any): import("../src").Firestore;
|
|
|
1212
1351
|
* @returns A `LoadBundleTask` object, which notifies callers with progress
|
|
1213
1352
|
* updates, and completion or error events. It can be used as a
|
|
1214
1353
|
* `Promise<LoadBundleTaskProgress>`.
|
|
1215
|
-
*/ declare function
|
|
1354
|
+
*/ declare function gh(t: any, e: any): nh;
|
|
1216
1355
|
/**
|
|
1217
1356
|
* Reads a Firestore {@link Query} from local cache, identified by the given
|
|
1218
1357
|
* name.
|
|
@@ -1224,27 +1363,32 @@ declare function La(e: any, n: any): import("../src").Firestore;
|
|
|
1224
1363
|
* @param firestore - The {@link Firestore} instance to read the query from.
|
|
1225
1364
|
* @param name - The name of the query.
|
|
1226
1365
|
* @returns A `Promise` that is resolved with the Query or `null`.
|
|
1227
|
-
*/ declare function
|
|
1228
|
-
declare function
|
|
1229
|
-
declare function
|
|
1366
|
+
*/ declare function yh(t: any, e: any): any;
|
|
1367
|
+
declare function jl(t: any, ...e: any[]): () => void;
|
|
1368
|
+
declare function Wl(t: any, e: any): () => void;
|
|
1369
|
+
/**
|
|
1370
|
+
* Creates a {@link QueryCompositeFilterConstraint} that performs a logical OR
|
|
1371
|
+
* of all the provided {@link QueryFilterConstraint}s.
|
|
1372
|
+
*
|
|
1373
|
+
* @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
|
|
1374
|
+
* for OR operation. These must be created with calls to {@link where},
|
|
1375
|
+
* {@link or}, or {@link and}.
|
|
1376
|
+
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
1377
|
+
* @internal TODO remove this internal tag with OR Query support in the server
|
|
1378
|
+
*/ declare function ul(...t: any[]): ol;
|
|
1230
1379
|
/**
|
|
1231
|
-
* Creates a {@link
|
|
1380
|
+
* Creates a {@link QueryOrderByConstraint} that sorts the query result by the
|
|
1232
1381
|
* specified field, optionally in descending order instead of ascending.
|
|
1233
1382
|
*
|
|
1383
|
+
* Note: Documents that do not contain the specified field will not be present
|
|
1384
|
+
* in the query result.
|
|
1385
|
+
*
|
|
1234
1386
|
* @param fieldPath - The field to sort by.
|
|
1235
1387
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1236
1388
|
* not specified, order will be ascending.
|
|
1237
|
-
* @returns The created {@link
|
|
1238
|
-
*/ declare function
|
|
1239
|
-
|
|
1240
|
-
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
1241
|
-
* additional query constraints.
|
|
1242
|
-
*
|
|
1243
|
-
* @param query - The {@link Query} instance to use as a base for the new constraints.
|
|
1244
|
-
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
1245
|
-
* @throws if any of the provided query constraints cannot be combined with the
|
|
1246
|
-
* existing or new constraints.
|
|
1247
|
-
*/ declare function Mh(t: any, ...e: any[]): any;
|
|
1389
|
+
* @returns The created {@link QueryOrderByConstraint}.
|
|
1390
|
+
*/ declare function hl(t: any, e?: string): al;
|
|
1391
|
+
declare function sl(t: any, e: any, ...n: any[]): any;
|
|
1248
1392
|
/**
|
|
1249
1393
|
* Returns true if the provided queries point to the same collection and apply
|
|
1250
1394
|
* the same constraints.
|
|
@@ -1253,7 +1397,7 @@ declare function Tl(t: any, e: any): () => void;
|
|
|
1253
1397
|
* @param right - A `Query` to compare.
|
|
1254
1398
|
* @returns true if the references point to the same location in the same
|
|
1255
1399
|
* Firestore database.
|
|
1256
|
-
*/ declare function
|
|
1400
|
+
*/ declare function ba(t: any, e: any): boolean;
|
|
1257
1401
|
/**
|
|
1258
1402
|
* Returns true if the provided references are equal.
|
|
1259
1403
|
*
|
|
@@ -1261,7 +1405,7 @@ declare function Tl(t: any, e: any): () => void;
|
|
|
1261
1405
|
* @param right - A reference to compare.
|
|
1262
1406
|
* @returns true if the references point to the same location in the same
|
|
1263
1407
|
* Firestore database.
|
|
1264
|
-
*/ declare function
|
|
1408
|
+
*/ declare function Ra(t: any, e: any): boolean;
|
|
1265
1409
|
/**
|
|
1266
1410
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1267
1411
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1280,12 +1424,12 @@ declare function Tl(t: any, e: any): () => void;
|
|
|
1280
1424
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1281
1425
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1282
1426
|
* rejected promise with the corresponding failure error is returned.
|
|
1283
|
-
*/ declare function
|
|
1427
|
+
*/ declare function nf(t: any, e: any, n: any): Promise<any>;
|
|
1284
1428
|
/**
|
|
1285
1429
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1286
1430
|
* include a server-generated timestamp in the written data.
|
|
1287
|
-
*/ declare function
|
|
1288
|
-
declare function
|
|
1431
|
+
*/ declare function rf(): Oh;
|
|
1432
|
+
declare function Ul(t: any, e: any, n: any): Promise<any>;
|
|
1289
1433
|
/**
|
|
1290
1434
|
* @license
|
|
1291
1435
|
* Copyright 2021 Google LLC
|
|
@@ -1301,7 +1445,7 @@ declare function ml(t: any, e: any, n: any): Promise<any>;
|
|
|
1301
1445
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1302
1446
|
* See the License for the specific language governing permissions and
|
|
1303
1447
|
* limitations under the License.
|
|
1304
|
-
*/ declare function
|
|
1448
|
+
*/ declare function hf(t: any, e: any): Promise<any>;
|
|
1305
1449
|
/**
|
|
1306
1450
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1307
1451
|
*
|
|
@@ -1321,9 +1465,9 @@ declare function ml(t: any, e: any, n: any): Promise<any>;
|
|
|
1321
1465
|
* @param left - A snapshot to compare.
|
|
1322
1466
|
* @param right - A snapshot to compare.
|
|
1323
1467
|
* @returns true if the snapshots are equal.
|
|
1324
|
-
*/ declare function
|
|
1325
|
-
declare function
|
|
1326
|
-
declare function
|
|
1468
|
+
*/ declare function kl(t: any, e: any): any;
|
|
1469
|
+
declare function ml(...t: any[]): _l;
|
|
1470
|
+
declare function wl(...t: any[]): _l;
|
|
1327
1471
|
/**
|
|
1328
1472
|
* Terminates the provided {@link Firestore} instance.
|
|
1329
1473
|
*
|
|
@@ -1345,8 +1489,8 @@ declare function Qh(...t: any[]): Gh;
|
|
|
1345
1489
|
*
|
|
1346
1490
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1347
1491
|
* terminated.
|
|
1348
|
-
*/ declare function
|
|
1349
|
-
declare function
|
|
1492
|
+
*/ declare function mh(t: any): any;
|
|
1493
|
+
declare function Kl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1350
1494
|
/**
|
|
1351
1495
|
* Waits until all currently pending writes for the active user have been
|
|
1352
1496
|
* acknowledged by the backend.
|
|
@@ -1362,18 +1506,18 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1362
1506
|
*
|
|
1363
1507
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1364
1508
|
* acknowledged by the backend.
|
|
1365
|
-
*/ declare function
|
|
1509
|
+
*/ declare function dh(t: any): Promise<any>;
|
|
1366
1510
|
/**
|
|
1367
|
-
* Creates a {@link
|
|
1368
|
-
* specified field and that the value should satisfy the
|
|
1369
|
-
* provided.
|
|
1511
|
+
* Creates a {@link QueryFieldFilterConstraint} that enforces that documents
|
|
1512
|
+
* must contain the specified field and that the value should satisfy the
|
|
1513
|
+
* relation constraint provided.
|
|
1370
1514
|
*
|
|
1371
1515
|
* @param fieldPath - The path to compare
|
|
1372
1516
|
* @param opStr - The operation string (e.g "<", "<=", "==", "<",
|
|
1373
1517
|
* "<=", "!=").
|
|
1374
1518
|
* @param value - The value for comparison
|
|
1375
|
-
* @returns The created {@link
|
|
1376
|
-
*/ declare function
|
|
1519
|
+
* @returns The created {@link QueryFieldFilterConstraint}.
|
|
1520
|
+
*/ declare function rl(t: any, e: any, n: any): il;
|
|
1377
1521
|
/**
|
|
1378
1522
|
* @license
|
|
1379
1523
|
* Copyright 2020 Google LLC
|
|
@@ -1400,7 +1544,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1400
1544
|
*
|
|
1401
1545
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1402
1546
|
* writes.
|
|
1403
|
-
*/ declare function
|
|
1547
|
+
*/ declare function af(t: any): Zl;
|
|
1404
1548
|
/**
|
|
1405
1549
|
* @license
|
|
1406
1550
|
* Copyright 2020 Google LLC
|
|
@@ -1425,7 +1569,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1425
1569
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
1426
1570
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
1427
1571
|
* explicitly verify a document's existence.
|
|
1428
|
-
*/ declare class
|
|
1572
|
+
*/ declare class Yh {
|
|
1429
1573
|
/** @hideconstructor protected */
|
|
1430
1574
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1431
1575
|
_firestore: any;
|
|
@@ -1436,7 +1580,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1436
1580
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1437
1581
|
/**
|
|
1438
1582
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1439
|
-
*/ get ref():
|
|
1583
|
+
*/ get ref(): ya;
|
|
1440
1584
|
/**
|
|
1441
1585
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1442
1586
|
*
|
|
@@ -1480,7 +1624,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1480
1624
|
* The Cloud Firestore service interface.
|
|
1481
1625
|
*
|
|
1482
1626
|
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
1483
|
-
*/ declare class
|
|
1627
|
+
*/ declare class ma {
|
|
1484
1628
|
/** @hideconstructor */
|
|
1485
1629
|
constructor(t: any, e: any, n: any, s: any);
|
|
1486
1630
|
_authCredentials: any;
|
|
@@ -1492,7 +1636,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1492
1636
|
*/
|
|
1493
1637
|
type: string;
|
|
1494
1638
|
_persistenceKey: string;
|
|
1495
|
-
_settings:
|
|
1639
|
+
_settings: wa;
|
|
1496
1640
|
_settingsFrozen: boolean;
|
|
1497
1641
|
/**
|
|
1498
1642
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1501,14 +1645,14 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1501
1645
|
get _initialized(): boolean;
|
|
1502
1646
|
get _terminated(): boolean;
|
|
1503
1647
|
_setSettings(t: any): void;
|
|
1504
|
-
_getSettings():
|
|
1505
|
-
_freezeSettings():
|
|
1648
|
+
_getSettings(): wa;
|
|
1649
|
+
_freezeSettings(): wa;
|
|
1506
1650
|
_delete(): Promise<void>;
|
|
1507
1651
|
_terminateTask: Promise<void> | undefined;
|
|
1508
1652
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1509
1653
|
app: any;
|
|
1510
1654
|
databaseId: any;
|
|
1511
|
-
settings:
|
|
1655
|
+
settings: wa;
|
|
1512
1656
|
};
|
|
1513
1657
|
/**
|
|
1514
1658
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1518,16 +1662,16 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1518
1662
|
* Only ever called once.
|
|
1519
1663
|
*/ _terminate(): Promise<void>;
|
|
1520
1664
|
}
|
|
1521
|
-
declare class
|
|
1665
|
+
declare class th {
|
|
1522
1666
|
Bc: Promise<void>;
|
|
1523
1667
|
Lc: any[];
|
|
1524
|
-
|
|
1525
|
-
|
|
1668
|
+
qc: boolean;
|
|
1669
|
+
Uc: any[];
|
|
1526
1670
|
Kc: any;
|
|
1527
1671
|
Gc: boolean;
|
|
1528
1672
|
Qc: boolean;
|
|
1529
1673
|
jc: any[];
|
|
1530
|
-
xo:
|
|
1674
|
+
xo: Iu;
|
|
1531
1675
|
Wc: () => void;
|
|
1532
1676
|
get isShuttingDown(): boolean;
|
|
1533
1677
|
/**
|
|
@@ -1543,7 +1687,7 @@ declare class ka {
|
|
|
1543
1687
|
* reschedules with backoff.
|
|
1544
1688
|
*/ Jc(): Promise<void>;
|
|
1545
1689
|
Hc(t: any): Promise<any>;
|
|
1546
|
-
enqueueAfterDelay(t: any, e: any, n: any):
|
|
1690
|
+
enqueueAfterDelay(t: any, e: any, n: any): nc;
|
|
1547
1691
|
zc(): void;
|
|
1548
1692
|
verifyOperationInProgress(): void;
|
|
1549
1693
|
/**
|
|
@@ -1582,20 +1726,50 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
1582
1726
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1583
1727
|
* See the License for the specific language governing permissions and
|
|
1584
1728
|
* limitations under the License.
|
|
1585
|
-
*/ declare class
|
|
1729
|
+
*/ declare class q {
|
|
1586
1730
|
promise: Promise<any>;
|
|
1587
1731
|
resolve: (value: any) => void;
|
|
1588
1732
|
reject: (reason?: any) => void;
|
|
1589
1733
|
}
|
|
1734
|
+
/**
|
|
1735
|
+
* An `AppliableConstraint` is an abstraction of a constraint that can be applied
|
|
1736
|
+
* to a Firestore query.
|
|
1737
|
+
*/ declare class el {
|
|
1738
|
+
}
|
|
1739
|
+
declare class Re extends Ae {
|
|
1740
|
+
/**
|
|
1741
|
+
* Creates a filter based on the provided arguments.
|
|
1742
|
+
*/ static create(t: any, e: any, n: any): Re | Oe | qe;
|
|
1743
|
+
static createKeyFieldInFilter(t: any, e: any, n: any): Oe | Me;
|
|
1744
|
+
constructor(t: any, e: any, n: any);
|
|
1745
|
+
field: any;
|
|
1746
|
+
op: any;
|
|
1747
|
+
value: any;
|
|
1748
|
+
matches(t: any): boolean | void;
|
|
1749
|
+
matchesComparison(t: any): boolean | void;
|
|
1750
|
+
isInequality(): boolean;
|
|
1751
|
+
getFlattenedFilters(): Re[];
|
|
1752
|
+
getFilters(): Re[];
|
|
1753
|
+
getFirstInequalityField(): any;
|
|
1754
|
+
}
|
|
1755
|
+
/** Filter that matches on key fields within an array. */ declare class Oe extends Re {
|
|
1756
|
+
constructor(t: any, e: any);
|
|
1757
|
+
keys: any;
|
|
1758
|
+
matches(t: any): any;
|
|
1759
|
+
}
|
|
1760
|
+
/** A Filter that implements the array-contains-any operator. */ declare class qe extends Re {
|
|
1761
|
+
constructor(t: any, e: any);
|
|
1762
|
+
matches(t: any): any;
|
|
1763
|
+
}
|
|
1590
1764
|
/**
|
|
1591
1765
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1592
1766
|
* classes.
|
|
1593
|
-
*/ declare class
|
|
1767
|
+
*/ declare class Dh {
|
|
1594
1768
|
constructor(t: any, e: any, n: any);
|
|
1595
1769
|
databaseId: any;
|
|
1596
1770
|
ignoreUndefinedProperties: any;
|
|
1597
|
-
|
|
1598
|
-
/** Creates a new top-level parse context. */ da(t: any, e: any, n: any, s?: boolean):
|
|
1771
|
+
yt: any;
|
|
1772
|
+
/** Creates a new top-level parse context. */ da(t: any, e: any, n: any, s?: boolean): Sh;
|
|
1599
1773
|
}
|
|
1600
1774
|
declare class z {
|
|
1601
1775
|
constructor(t: any);
|
|
@@ -1643,68 +1817,32 @@ declare class it {
|
|
|
1643
1817
|
forEach(t: any): void;
|
|
1644
1818
|
toArray(): any;
|
|
1645
1819
|
}
|
|
1646
|
-
declare class
|
|
1820
|
+
declare class Fh extends Ah {
|
|
1647
1821
|
constructor(t: any, e: any);
|
|
1648
1822
|
_a: any;
|
|
1649
|
-
_toFieldTransform(t: any):
|
|
1823
|
+
_toFieldTransform(t: any): Un;
|
|
1650
1824
|
isEqual(t: any): boolean;
|
|
1651
1825
|
}
|
|
1652
|
-
declare class
|
|
1826
|
+
declare class Mh extends Ah {
|
|
1653
1827
|
constructor(t: any, e: any);
|
|
1654
1828
|
_a: any;
|
|
1655
|
-
_toFieldTransform(t: any):
|
|
1829
|
+
_toFieldTransform(t: any): Un;
|
|
1656
1830
|
isEqual(t: any): boolean;
|
|
1657
1831
|
}
|
|
1658
|
-
declare class
|
|
1832
|
+
declare class Nh extends Ah {
|
|
1659
1833
|
_toFieldTransform(t: any): null;
|
|
1660
1834
|
isEqual(t: any): boolean;
|
|
1661
1835
|
}
|
|
1662
|
-
declare class
|
|
1663
|
-
constructor(t: any, e: any, n: any);
|
|
1664
|
-
type: any;
|
|
1665
|
-
Ea: any;
|
|
1666
|
-
Aa: any;
|
|
1667
|
-
_apply(t: any): Zc;
|
|
1668
|
-
}
|
|
1669
|
-
declare class yh extends sh {
|
|
1836
|
+
declare class $h extends Ah {
|
|
1670
1837
|
constructor(t: any, e: any);
|
|
1671
1838
|
wa: any;
|
|
1672
|
-
_toFieldTransform(t: any):
|
|
1839
|
+
_toFieldTransform(t: any): Un;
|
|
1673
1840
|
isEqual(t: any): boolean;
|
|
1674
1841
|
}
|
|
1675
|
-
declare class
|
|
1676
|
-
|
|
1677
|
-
type: any;
|
|
1678
|
-
Ia: any;
|
|
1679
|
-
Ta: any;
|
|
1680
|
-
_apply(t: any): Zc;
|
|
1681
|
-
}
|
|
1682
|
-
declare class Bh extends Oh {
|
|
1683
|
-
constructor(t: any, e: any);
|
|
1684
|
-
ma: any;
|
|
1685
|
-
pa: any;
|
|
1686
|
-
type: string;
|
|
1687
|
-
_apply(t: any): Zc;
|
|
1688
|
-
}
|
|
1689
|
-
declare class wh extends sh {
|
|
1690
|
-
_toFieldTransform(t: any): xn;
|
|
1842
|
+
declare class Oh extends Ah {
|
|
1843
|
+
_toFieldTransform(t: any): Un;
|
|
1691
1844
|
isEqual(t: any): boolean;
|
|
1692
1845
|
}
|
|
1693
|
-
declare class Gh extends Oh {
|
|
1694
|
-
constructor(t: any, e: any, n: any);
|
|
1695
|
-
type: any;
|
|
1696
|
-
Ea: any;
|
|
1697
|
-
Aa: any;
|
|
1698
|
-
_apply(t: any): Zc;
|
|
1699
|
-
}
|
|
1700
|
-
declare class Fh extends Oh {
|
|
1701
|
-
constructor(t: any, e: any, n: any);
|
|
1702
|
-
ma: any;
|
|
1703
|
-
ga: any;
|
|
1704
|
-
ya: any;
|
|
1705
|
-
type: string;
|
|
1706
|
-
_apply(t: any): Zc;
|
|
1707
|
-
}
|
|
1708
1846
|
/**
|
|
1709
1847
|
* An instance map that ensures only one Datastore exists per Firestore
|
|
1710
1848
|
* instance.
|
|
@@ -1714,7 +1852,7 @@ declare class Fh extends Oh {
|
|
|
1714
1852
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1715
1853
|
* defaults can be supplied and the value can be checked for equality.
|
|
1716
1854
|
*/
|
|
1717
|
-
declare class
|
|
1855
|
+
declare class wa {
|
|
1718
1856
|
constructor(t: any);
|
|
1719
1857
|
host: any;
|
|
1720
1858
|
ssl: any;
|
|
@@ -1738,7 +1876,7 @@ declare class Hc {
|
|
|
1738
1876
|
* base delay. This prevents clients from accidentally synchronizing their
|
|
1739
1877
|
* delays causing spikes of load to the backend.
|
|
1740
1878
|
*/
|
|
1741
|
-
declare class
|
|
1879
|
+
declare class Iu {
|
|
1742
1880
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
1743
1881
|
Hs: any;
|
|
1744
1882
|
timerId: any;
|
|
@@ -1796,7 +1934,7 @@ declare class tu {
|
|
|
1796
1934
|
* in newer versions of TypeScript defines `finally`, which is not available in
|
|
1797
1935
|
* IE.
|
|
1798
1936
|
*/
|
|
1799
|
-
declare class
|
|
1937
|
+
declare class nc {
|
|
1800
1938
|
/**
|
|
1801
1939
|
* Creates and returns a DelayedOperation that has been scheduled to be
|
|
1802
1940
|
* executed on the provided asyncQueue after the provided delayMs.
|
|
@@ -1810,14 +1948,14 @@ declare class Mu {
|
|
|
1810
1948
|
* from its delayedOperations list.
|
|
1811
1949
|
* PORTING NOTE: This exists to prevent making removeDelayedOperation() and
|
|
1812
1950
|
* the DelayedOperation class public.
|
|
1813
|
-
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any):
|
|
1951
|
+
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): nc;
|
|
1814
1952
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1815
1953
|
asyncQueue: any;
|
|
1816
1954
|
timerId: any;
|
|
1817
1955
|
targetTimeMs: any;
|
|
1818
1956
|
op: any;
|
|
1819
1957
|
removalCallback: any;
|
|
1820
|
-
deferred:
|
|
1958
|
+
deferred: q;
|
|
1821
1959
|
then: <TResult1 = any, TResult2 = never>(onfulfilled?: ((value: any) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
|
|
1822
1960
|
/**
|
|
1823
1961
|
* Starts the timer. This is called immediately after construction by
|
|
@@ -1838,7 +1976,29 @@ declare class Mu {
|
|
|
1838
1976
|
handleDelayElapsed(): void;
|
|
1839
1977
|
clearTimeout(): void;
|
|
1840
1978
|
}
|
|
1841
|
-
/**
|
|
1979
|
+
/**
|
|
1980
|
+
* @license
|
|
1981
|
+
* Copyright 2022 Google LLC
|
|
1982
|
+
*
|
|
1983
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1984
|
+
* you may not use this file except in compliance with the License.
|
|
1985
|
+
* You may obtain a copy of the License at
|
|
1986
|
+
*
|
|
1987
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1988
|
+
*
|
|
1989
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1990
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1991
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1992
|
+
* See the License for the specific language governing permissions and
|
|
1993
|
+
* limitations under the License.
|
|
1994
|
+
*/ declare class Ae {
|
|
1995
|
+
}
|
|
1996
|
+
/** Filter that matches on key fields not present within an array. */ declare class Me extends Re {
|
|
1997
|
+
constructor(t: any, e: any);
|
|
1998
|
+
keys: any;
|
|
1999
|
+
matches(t: any): boolean;
|
|
2000
|
+
}
|
|
2001
|
+
/** A "context" object passed around while parsing user data. */ declare class Sh {
|
|
1842
2002
|
/**
|
|
1843
2003
|
* Initializes a ParseContext with the given source and path.
|
|
1844
2004
|
*
|
|
@@ -1860,16 +2020,16 @@ declare class Mu {
|
|
|
1860
2020
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
1861
2021
|
settings: any;
|
|
1862
2022
|
databaseId: any;
|
|
1863
|
-
|
|
2023
|
+
yt: any;
|
|
1864
2024
|
ignoreUndefinedProperties: any;
|
|
1865
2025
|
fieldTransforms: any;
|
|
1866
2026
|
fieldMask: any;
|
|
1867
2027
|
get path(): any;
|
|
1868
2028
|
get sa(): any;
|
|
1869
|
-
/** Returns a new context with the specified settings overwritten. */ ia(t: any):
|
|
1870
|
-
ra(t: any):
|
|
1871
|
-
ca(t: any):
|
|
1872
|
-
aa(t: any):
|
|
2029
|
+
/** Returns a new context with the specified settings overwritten. */ ia(t: any): Sh;
|
|
2030
|
+
ra(t: any): Sh;
|
|
2031
|
+
ca(t: any): Sh;
|
|
2032
|
+
aa(t: any): Sh;
|
|
1873
2033
|
ha(t: any): L;
|
|
1874
2034
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1875
2035
|
na(): void;
|
|
@@ -1891,9 +2051,9 @@ declare class Mu {
|
|
|
1891
2051
|
* See the License for the specific language governing permissions and
|
|
1892
2052
|
* limitations under the License.
|
|
1893
2053
|
*/
|
|
1894
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
2054
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class Un {
|
|
1895
2055
|
constructor(t: any, e: any);
|
|
1896
2056
|
field: any;
|
|
1897
2057
|
transform: any;
|
|
1898
2058
|
}
|
|
1899
|
-
export {
|
|
2059
|
+
export { Pl as AbstractUserDataWriter, Sa as AggregateField, Da as AggregateQuerySnapshot, Ih as Bytes, sh as CACHE_SIZE_UNLIMITED, Ia as CollectionReference, ya as DocumentReference, Dl as DocumentSnapshot, Th as FieldPath, Ah as FieldValue, ih as Firestore, L as FirestoreError, Rh as GeoPoint, nh as LoadBundleTask, pa as Query, ol as QueryCompositeFilterConstraint, nl as QueryConstraint, Cl as QueryDocumentSnapshot, gl as QueryEndAtConstraint, il as QueryFieldFilterConstraint, ll as QueryLimitConstraint, al as QueryOrderByConstraint, xl as QuerySnapshot, _l as QueryStartAtConstraint, Sl as SnapshotMetadata, nt as Timestamp, ef as Transaction, Zl as WriteBatch, Ft as _DatabaseId, ct as _DocumentKey, J as _EmptyAppCheckTokenProvider, K as _EmptyAuthCredentialsProvider, ut as _FieldPath, fa as _cast, F as _debugAssert, Gt as _isBase64Available, N as _logWarn, ca as _validateIsNotUsedTogether, Ql as addDoc, Jl as aggregateQuerySnapshotEqual, cl as and, uf as arrayRemove, of as arrayUnion, fh as clearIndexedDbPersistence, Ta as collection, Ea as collectionGroup, ga as connectFirestoreEmulator, Gl as deleteDoc, sf as deleteField, wh as disableNetwork, Aa as doc, Eh as documentId, ah as enableIndexedDbPersistence, hh as enableMultiTabIndexedDbPersistence, _h as enableNetwork, pl as endAt, yl as endBefore, uh as ensureFirestoreConfigured, zl as executeWrite, Yl as getCountFromServer, Ol as getDoc, Fl as getDocFromCache, $l as getDocFromServer, Bl as getDocs, Ll as getDocsFromCache, ql as getDocsFromServer, oh as getFirestore, cf as increment, rh as initializeFirestore, fl as limit, dl as limitToLast, gh as loadBundle, yh as namedQuery, jl as onSnapshot, Wl as onSnapshotsInSync, ul as or, hl as orderBy, sl as query, ba as queryEqual, Ra as refEqual, nf as runTransaction, rf as serverTimestamp, Ul as setDoc, hf as setIndexConfiguration, D as setLogLevel, kl as snapshotEqual, ml as startAfter, wl as startAt, mh as terminate, Kl as updateDoc, dh as waitForPendingWrites, rl as where, af as writeBatch };
|