@firebase/firestore 3.7.3 → 3.8.0-canary.06dc1364d
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/reference_impl.d.ts +2 -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 +275 -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 +140 -63
- package/dist/index.esm2017.js +4307 -3743
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +4994 -4410
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +1670 -890
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +1663 -891
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +4532 -3968
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +332 -69
- 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/reference_impl.d.ts +2 -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 +275 -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 +2093 -1793
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +2241 -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 +2214 -1802
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +2207 -1803
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +2079 -1778
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +330 -66
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +324 -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/reference_impl.d.ts +2 -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 +275 -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 +373 -210
- 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/reference_impl.d.ts +2 -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 +275 -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 +242 -69
- package/package.json +14 -12
|
@@ -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,18 @@ 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 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}.
|
|
1044
|
+
* @internal TODO remove this internal tag with OR Query support in the server
|
|
1045
|
+
*/ declare function cl(...t: any[]): ol;
|
|
908
1046
|
/**
|
|
909
1047
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
910
1048
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -915,7 +1053,7 @@ declare function jt(): boolean;
|
|
|
915
1053
|
* @param elements - The elements to remove from the array.
|
|
916
1054
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
917
1055
|
* `updateDoc()`
|
|
918
|
-
*/ declare function
|
|
1056
|
+
*/ declare function uf(...t: any[]): Fh;
|
|
919
1057
|
/**
|
|
920
1058
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
921
1059
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -927,9 +1065,9 @@ declare function jt(): boolean;
|
|
|
927
1065
|
* @param elements - The elements to union into the array.
|
|
928
1066
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
929
1067
|
* `updateDoc()`.
|
|
930
|
-
*/ declare function
|
|
931
|
-
declare function
|
|
932
|
-
declare function
|
|
1068
|
+
*/ declare function of(...t: any[]): Mh;
|
|
1069
|
+
declare function fh(t: any): Promise<any>;
|
|
1070
|
+
declare function Ta(t: any, e: any, ...n: any[]): Ia;
|
|
933
1071
|
/**
|
|
934
1072
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
935
1073
|
* database that are contained in a collection or subcollection with the
|
|
@@ -940,7 +1078,7 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
|
|
|
940
1078
|
* collection or subcollection with this ID as the last segment of its path
|
|
941
1079
|
* will be included. Cannot contain a slash.
|
|
942
1080
|
* @returns The created `Query`.
|
|
943
|
-
*/ declare function
|
|
1081
|
+
*/ declare function Ea(t: any, e: any): pa;
|
|
944
1082
|
/**
|
|
945
1083
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
946
1084
|
*
|
|
@@ -953,14 +1091,14 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
|
|
|
953
1091
|
* @param port - the emulator port (ex: 9000).
|
|
954
1092
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
955
1093
|
* Security Rules.
|
|
956
|
-
*/ declare function
|
|
1094
|
+
*/ declare function ga(t: any, e: any, n: any, s?: {}): void;
|
|
957
1095
|
/**
|
|
958
1096
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
959
1097
|
*
|
|
960
1098
|
* @param reference - A reference to the document to delete.
|
|
961
1099
|
* @returns A Promise resolved once the document has been successfully
|
|
962
1100
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
963
|
-
*/ declare function
|
|
1101
|
+
*/ declare function Gl(t: any): Promise<any>;
|
|
964
1102
|
/**
|
|
965
1103
|
* @license
|
|
966
1104
|
* Copyright 2020 Google LLC
|
|
@@ -980,7 +1118,7 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
|
|
|
980
1118
|
/**
|
|
981
1119
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
982
1120
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
983
|
-
*/ declare function
|
|
1121
|
+
*/ declare function sf(): Nh;
|
|
984
1122
|
/**
|
|
985
1123
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
986
1124
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -988,12 +1126,12 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
|
|
|
988
1126
|
* operations will be queued until the network is restored.
|
|
989
1127
|
*
|
|
990
1128
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
991
|
-
*/ declare function
|
|
992
|
-
declare function
|
|
1129
|
+
*/ declare function wh(t: any): any;
|
|
1130
|
+
declare function Aa(t: any, e: any, ...n: any[]): ya;
|
|
993
1131
|
/**
|
|
994
1132
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
995
1133
|
* It can be used in queries to sort or filter by the document ID.
|
|
996
|
-
*/ declare function
|
|
1134
|
+
*/ declare function Eh(): Th;
|
|
997
1135
|
/**
|
|
998
1136
|
* Attempts to enable persistent storage, if possible.
|
|
999
1137
|
*
|
|
@@ -1016,7 +1154,7 @@ declare function sa(t: any, e: any, ...n: any[]): Xc;
|
|
|
1016
1154
|
* @param persistenceSettings - Optional settings object to configure
|
|
1017
1155
|
* persistence.
|
|
1018
1156
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
1019
|
-
*/ declare function
|
|
1157
|
+
*/ declare function ah(t: any, e: any): any;
|
|
1020
1158
|
/**
|
|
1021
1159
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
1022
1160
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -1038,22 +1176,22 @@ declare function sa(t: any, e: any, ...n: any[]): Xc;
|
|
|
1038
1176
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
1039
1177
|
* @returns A `Promise` that represents successfully enabling persistent
|
|
1040
1178
|
* storage.
|
|
1041
|
-
*/ declare function
|
|
1179
|
+
*/ declare function hh(t: any): any;
|
|
1042
1180
|
/**
|
|
1043
1181
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
1044
1182
|
* call to {@link disableNetwork}.
|
|
1045
1183
|
*
|
|
1046
1184
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
1047
|
-
*/ declare function
|
|
1048
|
-
declare function
|
|
1049
|
-
declare function
|
|
1185
|
+
*/ declare function _h(t: any): any;
|
|
1186
|
+
declare function pl(...t: any[]): gl;
|
|
1187
|
+
declare function yl(...t: any[]): gl;
|
|
1050
1188
|
/**
|
|
1051
1189
|
* @internal
|
|
1052
|
-
*/ declare function
|
|
1190
|
+
*/ declare function uh(t: any): any;
|
|
1053
1191
|
/**
|
|
1054
1192
|
* Locally writes `mutations` on the async queue.
|
|
1055
1193
|
* @internal
|
|
1056
|
-
*/ declare function
|
|
1194
|
+
*/ declare function zl(t: any, e: any): Promise<any>;
|
|
1057
1195
|
/**
|
|
1058
1196
|
* @license
|
|
1059
1197
|
* Copyright 2022 Google LLC
|
|
@@ -1090,7 +1228,7 @@ declare function zh(...t: any[]): Wh;
|
|
|
1090
1228
|
* @returns A Promise that will be resolved with the count; the count can be
|
|
1091
1229
|
* retrieved from `snapshot.data().count`, where `snapshot` is the
|
|
1092
1230
|
* `AggregateQuerySnapshot` to which the returned Promise resolves.
|
|
1093
|
-
*/ declare function
|
|
1231
|
+
*/ declare function Yl(t: any): Promise<any>;
|
|
1094
1232
|
/**
|
|
1095
1233
|
* @license
|
|
1096
1234
|
* Copyright 2020 Google LLC
|
|
@@ -1118,21 +1256,21 @@ declare function zh(...t: any[]): Wh;
|
|
|
1118
1256
|
* @param reference - The reference of the document to fetch.
|
|
1119
1257
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
1120
1258
|
* current document contents.
|
|
1121
|
-
*/ declare function
|
|
1259
|
+
*/ declare function Ol(t: any): Promise<Dl>;
|
|
1122
1260
|
/**
|
|
1123
1261
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
1124
1262
|
* Returns an error if the document is not currently cached.
|
|
1125
1263
|
*
|
|
1126
1264
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1127
1265
|
* current document contents.
|
|
1128
|
-
*/ declare function
|
|
1266
|
+
*/ declare function Fl(t: any): Promise<Dl>;
|
|
1129
1267
|
/**
|
|
1130
1268
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
1131
1269
|
* Returns an error if the network is not available.
|
|
1132
1270
|
*
|
|
1133
1271
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1134
1272
|
* current document contents.
|
|
1135
|
-
*/ declare function
|
|
1273
|
+
*/ declare function $l(t: any): Promise<Dl>;
|
|
1136
1274
|
/**
|
|
1137
1275
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1138
1276
|
*
|
|
@@ -1142,20 +1280,21 @@ declare function zh(...t: any[]): Wh;
|
|
|
1142
1280
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
1143
1281
|
*
|
|
1144
1282
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1145
|
-
*/ declare function
|
|
1283
|
+
*/ declare function Bl(t: any): Promise<xl>;
|
|
1146
1284
|
/**
|
|
1147
1285
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1148
|
-
* Returns an
|
|
1286
|
+
* Returns an empty result set if no documents matching the query are currently
|
|
1287
|
+
* cached.
|
|
1149
1288
|
*
|
|
1150
1289
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1151
|
-
*/ declare function
|
|
1290
|
+
*/ declare function Ll(t: any): Promise<xl>;
|
|
1152
1291
|
/**
|
|
1153
1292
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1154
1293
|
* server. Returns an error if the network is not available.
|
|
1155
1294
|
*
|
|
1156
1295
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1157
|
-
*/ declare function
|
|
1158
|
-
declare function
|
|
1296
|
+
*/ declare function ql(t: any): Promise<xl>;
|
|
1297
|
+
declare function oh(e: any, n: any): import("../src").Firestore;
|
|
1159
1298
|
/**
|
|
1160
1299
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1161
1300
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1174,7 +1313,7 @@ declare function La(e: any, n: any): import("../src").Firestore;
|
|
|
1174
1313
|
* @param n - The value to increment by.
|
|
1175
1314
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1176
1315
|
* `updateDoc()`
|
|
1177
|
-
*/ declare function
|
|
1316
|
+
*/ declare function cf(t: any): $h;
|
|
1178
1317
|
/**
|
|
1179
1318
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1180
1319
|
* Can only be called before any other function, including
|
|
@@ -1186,22 +1325,24 @@ declare function La(e: any, n: any): import("../src").Firestore;
|
|
|
1186
1325
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1187
1326
|
* @param databaseId - The name of database.
|
|
1188
1327
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1189
|
-
*/ declare function
|
|
1328
|
+
*/ declare function rh(t: any, e: any, n: any): import("../src").Firestore;
|
|
1190
1329
|
/**
|
|
1191
|
-
* Creates a {@link
|
|
1330
|
+
* Creates a {@link QueryLimitConstraint} that only returns the first matching
|
|
1331
|
+
* documents.
|
|
1192
1332
|
*
|
|
1193
1333
|
* @param limit - The maximum number of items to return.
|
|
1194
|
-
* @returns The created {@link
|
|
1195
|
-
*/ declare function
|
|
1334
|
+
* @returns The created {@link QueryLimitConstraint}.
|
|
1335
|
+
*/ declare function fl(t: any): ll;
|
|
1196
1336
|
/**
|
|
1197
|
-
* Creates a {@link
|
|
1337
|
+
* Creates a {@link QueryLimitConstraint} that only returns the last matching
|
|
1338
|
+
* documents.
|
|
1198
1339
|
*
|
|
1199
1340
|
* You must specify at least one `orderBy` clause for `limitToLast` queries,
|
|
1200
1341
|
* otherwise an exception will be thrown during execution.
|
|
1201
1342
|
*
|
|
1202
1343
|
* @param limit - The maximum number of items to return.
|
|
1203
|
-
* @returns The created {@link
|
|
1204
|
-
*/ declare function
|
|
1344
|
+
* @returns The created {@link QueryLimitConstraint}.
|
|
1345
|
+
*/ declare function dl(t: any): ll;
|
|
1205
1346
|
/**
|
|
1206
1347
|
* Loads a Firestore bundle into the local cache.
|
|
1207
1348
|
*
|
|
@@ -1212,7 +1353,7 @@ declare function La(e: any, n: any): import("../src").Firestore;
|
|
|
1212
1353
|
* @returns A `LoadBundleTask` object, which notifies callers with progress
|
|
1213
1354
|
* updates, and completion or error events. It can be used as a
|
|
1214
1355
|
* `Promise<LoadBundleTaskProgress>`.
|
|
1215
|
-
*/ declare function
|
|
1356
|
+
*/ declare function gh(t: any, e: any): nh;
|
|
1216
1357
|
/**
|
|
1217
1358
|
* Reads a Firestore {@link Query} from local cache, identified by the given
|
|
1218
1359
|
* name.
|
|
@@ -1224,27 +1365,33 @@ declare function La(e: any, n: any): import("../src").Firestore;
|
|
|
1224
1365
|
* @param firestore - The {@link Firestore} instance to read the query from.
|
|
1225
1366
|
* @param name - The name of the query.
|
|
1226
1367
|
* @returns A `Promise` that is resolved with the Query or `null`.
|
|
1227
|
-
*/ declare function
|
|
1228
|
-
declare function
|
|
1229
|
-
declare function
|
|
1230
|
-
/**
|
|
1231
|
-
* Creates a {@link
|
|
1368
|
+
*/ declare function yh(t: any, e: any): any;
|
|
1369
|
+
declare function jl(t: any, ...e: any[]): () => void;
|
|
1370
|
+
declare function Wl(t: any, e: any): () => void;
|
|
1371
|
+
/**
|
|
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.
|
|
1375
|
+
*
|
|
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}.
|
|
1380
|
+
* @internal TODO remove this internal tag with OR Query support in the server
|
|
1381
|
+
*/ declare function ul(...t: any[]): ol;
|
|
1382
|
+
/**
|
|
1383
|
+
* Creates a {@link QueryOrderByConstraint} that sorts the query result by the
|
|
1232
1384
|
* specified field, optionally in descending order instead of ascending.
|
|
1233
1385
|
*
|
|
1386
|
+
* Note: Documents that do not contain the specified field will not be present
|
|
1387
|
+
* in the query result.
|
|
1388
|
+
*
|
|
1234
1389
|
* @param fieldPath - The field to sort by.
|
|
1235
1390
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1236
1391
|
* 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;
|
|
1392
|
+
* @returns The created {@link QueryOrderByConstraint}.
|
|
1393
|
+
*/ declare function hl(t: any, e?: string): al;
|
|
1394
|
+
declare function sl(t: any, e: any, ...n: any[]): any;
|
|
1248
1395
|
/**
|
|
1249
1396
|
* Returns true if the provided queries point to the same collection and apply
|
|
1250
1397
|
* the same constraints.
|
|
@@ -1253,7 +1400,7 @@ declare function Tl(t: any, e: any): () => void;
|
|
|
1253
1400
|
* @param right - A `Query` to compare.
|
|
1254
1401
|
* @returns true if the references point to the same location in the same
|
|
1255
1402
|
* Firestore database.
|
|
1256
|
-
*/ declare function
|
|
1403
|
+
*/ declare function ba(t: any, e: any): boolean;
|
|
1257
1404
|
/**
|
|
1258
1405
|
* Returns true if the provided references are equal.
|
|
1259
1406
|
*
|
|
@@ -1261,7 +1408,7 @@ declare function Tl(t: any, e: any): () => void;
|
|
|
1261
1408
|
* @param right - A reference to compare.
|
|
1262
1409
|
* @returns true if the references point to the same location in the same
|
|
1263
1410
|
* Firestore database.
|
|
1264
|
-
*/ declare function
|
|
1411
|
+
*/ declare function Ra(t: any, e: any): boolean;
|
|
1265
1412
|
/**
|
|
1266
1413
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1267
1414
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1280,12 +1427,12 @@ declare function Tl(t: any, e: any): () => void;
|
|
|
1280
1427
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1281
1428
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1282
1429
|
* rejected promise with the corresponding failure error is returned.
|
|
1283
|
-
*/ declare function
|
|
1430
|
+
*/ declare function nf(t: any, e: any, n: any): Promise<any>;
|
|
1284
1431
|
/**
|
|
1285
1432
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1286
1433
|
* include a server-generated timestamp in the written data.
|
|
1287
|
-
*/ declare function
|
|
1288
|
-
declare function
|
|
1434
|
+
*/ declare function rf(): Oh;
|
|
1435
|
+
declare function Ul(t: any, e: any, n: any): Promise<any>;
|
|
1289
1436
|
/**
|
|
1290
1437
|
* @license
|
|
1291
1438
|
* Copyright 2021 Google LLC
|
|
@@ -1301,7 +1448,7 @@ declare function ml(t: any, e: any, n: any): Promise<any>;
|
|
|
1301
1448
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1302
1449
|
* See the License for the specific language governing permissions and
|
|
1303
1450
|
* limitations under the License.
|
|
1304
|
-
*/ declare function
|
|
1451
|
+
*/ declare function hf(t: any, e: any): Promise<any>;
|
|
1305
1452
|
/**
|
|
1306
1453
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1307
1454
|
*
|
|
@@ -1321,9 +1468,9 @@ declare function ml(t: any, e: any, n: any): Promise<any>;
|
|
|
1321
1468
|
* @param left - A snapshot to compare.
|
|
1322
1469
|
* @param right - A snapshot to compare.
|
|
1323
1470
|
* @returns true if the snapshots are equal.
|
|
1324
|
-
*/ declare function
|
|
1325
|
-
declare function
|
|
1326
|
-
declare function
|
|
1471
|
+
*/ declare function kl(t: any, e: any): any;
|
|
1472
|
+
declare function ml(...t: any[]): _l;
|
|
1473
|
+
declare function wl(...t: any[]): _l;
|
|
1327
1474
|
/**
|
|
1328
1475
|
* Terminates the provided {@link Firestore} instance.
|
|
1329
1476
|
*
|
|
@@ -1345,8 +1492,8 @@ declare function Qh(...t: any[]): Gh;
|
|
|
1345
1492
|
*
|
|
1346
1493
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1347
1494
|
* terminated.
|
|
1348
|
-
*/ declare function
|
|
1349
|
-
declare function
|
|
1495
|
+
*/ declare function mh(t: any): any;
|
|
1496
|
+
declare function Kl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1350
1497
|
/**
|
|
1351
1498
|
* Waits until all currently pending writes for the active user have been
|
|
1352
1499
|
* acknowledged by the backend.
|
|
@@ -1362,18 +1509,18 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1362
1509
|
*
|
|
1363
1510
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1364
1511
|
* acknowledged by the backend.
|
|
1365
|
-
*/ declare function
|
|
1512
|
+
*/ declare function dh(t: any): Promise<any>;
|
|
1366
1513
|
/**
|
|
1367
|
-
* Creates a {@link
|
|
1368
|
-
* specified field and that the value should satisfy the
|
|
1369
|
-
* provided.
|
|
1514
|
+
* Creates a {@link QueryFieldFilterConstraint} that enforces that documents
|
|
1515
|
+
* must contain the specified field and that the value should satisfy the
|
|
1516
|
+
* relation constraint provided.
|
|
1370
1517
|
*
|
|
1371
1518
|
* @param fieldPath - The path to compare
|
|
1372
1519
|
* @param opStr - The operation string (e.g "<", "<=", "==", "<",
|
|
1373
1520
|
* "<=", "!=").
|
|
1374
1521
|
* @param value - The value for comparison
|
|
1375
|
-
* @returns The created {@link
|
|
1376
|
-
*/ declare function
|
|
1522
|
+
* @returns The created {@link QueryFieldFilterConstraint}.
|
|
1523
|
+
*/ declare function rl(t: any, e: any, n: any): il;
|
|
1377
1524
|
/**
|
|
1378
1525
|
* @license
|
|
1379
1526
|
* Copyright 2020 Google LLC
|
|
@@ -1400,7 +1547,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1400
1547
|
*
|
|
1401
1548
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1402
1549
|
* writes.
|
|
1403
|
-
*/ declare function
|
|
1550
|
+
*/ declare function af(t: any): Zl;
|
|
1404
1551
|
/**
|
|
1405
1552
|
* @license
|
|
1406
1553
|
* Copyright 2020 Google LLC
|
|
@@ -1425,7 +1572,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1425
1572
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
1426
1573
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
1427
1574
|
* explicitly verify a document's existence.
|
|
1428
|
-
*/ declare class
|
|
1575
|
+
*/ declare class Yh {
|
|
1429
1576
|
/** @hideconstructor protected */
|
|
1430
1577
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1431
1578
|
_firestore: any;
|
|
@@ -1436,7 +1583,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1436
1583
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1437
1584
|
/**
|
|
1438
1585
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1439
|
-
*/ get ref():
|
|
1586
|
+
*/ get ref(): ya;
|
|
1440
1587
|
/**
|
|
1441
1588
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1442
1589
|
*
|
|
@@ -1480,7 +1627,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1480
1627
|
* The Cloud Firestore service interface.
|
|
1481
1628
|
*
|
|
1482
1629
|
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
1483
|
-
*/ declare class
|
|
1630
|
+
*/ declare class ma {
|
|
1484
1631
|
/** @hideconstructor */
|
|
1485
1632
|
constructor(t: any, e: any, n: any, s: any);
|
|
1486
1633
|
_authCredentials: any;
|
|
@@ -1492,7 +1639,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1492
1639
|
*/
|
|
1493
1640
|
type: string;
|
|
1494
1641
|
_persistenceKey: string;
|
|
1495
|
-
_settings:
|
|
1642
|
+
_settings: wa;
|
|
1496
1643
|
_settingsFrozen: boolean;
|
|
1497
1644
|
/**
|
|
1498
1645
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1501,14 +1648,14 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1501
1648
|
get _initialized(): boolean;
|
|
1502
1649
|
get _terminated(): boolean;
|
|
1503
1650
|
_setSettings(t: any): void;
|
|
1504
|
-
_getSettings():
|
|
1505
|
-
_freezeSettings():
|
|
1651
|
+
_getSettings(): wa;
|
|
1652
|
+
_freezeSettings(): wa;
|
|
1506
1653
|
_delete(): Promise<void>;
|
|
1507
1654
|
_terminateTask: Promise<void> | undefined;
|
|
1508
1655
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1509
1656
|
app: any;
|
|
1510
1657
|
databaseId: any;
|
|
1511
|
-
settings:
|
|
1658
|
+
settings: wa;
|
|
1512
1659
|
};
|
|
1513
1660
|
/**
|
|
1514
1661
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1518,16 +1665,16 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1518
1665
|
* Only ever called once.
|
|
1519
1666
|
*/ _terminate(): Promise<void>;
|
|
1520
1667
|
}
|
|
1521
|
-
declare class
|
|
1668
|
+
declare class th {
|
|
1522
1669
|
Bc: Promise<void>;
|
|
1523
1670
|
Lc: any[];
|
|
1524
|
-
|
|
1525
|
-
|
|
1671
|
+
qc: boolean;
|
|
1672
|
+
Uc: any[];
|
|
1526
1673
|
Kc: any;
|
|
1527
1674
|
Gc: boolean;
|
|
1528
1675
|
Qc: boolean;
|
|
1529
1676
|
jc: any[];
|
|
1530
|
-
xo:
|
|
1677
|
+
xo: Iu;
|
|
1531
1678
|
Wc: () => void;
|
|
1532
1679
|
get isShuttingDown(): boolean;
|
|
1533
1680
|
/**
|
|
@@ -1543,7 +1690,7 @@ declare class ka {
|
|
|
1543
1690
|
* reschedules with backoff.
|
|
1544
1691
|
*/ Jc(): Promise<void>;
|
|
1545
1692
|
Hc(t: any): Promise<any>;
|
|
1546
|
-
enqueueAfterDelay(t: any, e: any, n: any):
|
|
1693
|
+
enqueueAfterDelay(t: any, e: any, n: any): nc;
|
|
1547
1694
|
zc(): void;
|
|
1548
1695
|
verifyOperationInProgress(): void;
|
|
1549
1696
|
/**
|
|
@@ -1582,20 +1729,50 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
1582
1729
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1583
1730
|
* See the License for the specific language governing permissions and
|
|
1584
1731
|
* limitations under the License.
|
|
1585
|
-
*/ declare class
|
|
1732
|
+
*/ declare class q {
|
|
1586
1733
|
promise: Promise<any>;
|
|
1587
1734
|
resolve: (value: any) => void;
|
|
1588
1735
|
reject: (reason?: any) => void;
|
|
1589
1736
|
}
|
|
1737
|
+
/**
|
|
1738
|
+
* An `AppliableConstraint` is an abstraction of a constraint that can be applied
|
|
1739
|
+
* to a Firestore query.
|
|
1740
|
+
*/ declare class el {
|
|
1741
|
+
}
|
|
1742
|
+
declare class Re extends Ae {
|
|
1743
|
+
/**
|
|
1744
|
+
* Creates a filter based on the provided arguments.
|
|
1745
|
+
*/ static create(t: any, e: any, n: any): Re | Oe | qe;
|
|
1746
|
+
static createKeyFieldInFilter(t: any, e: any, n: any): Oe | Me;
|
|
1747
|
+
constructor(t: any, e: any, n: any);
|
|
1748
|
+
field: any;
|
|
1749
|
+
op: any;
|
|
1750
|
+
value: any;
|
|
1751
|
+
matches(t: any): boolean | void;
|
|
1752
|
+
matchesComparison(t: any): boolean | void;
|
|
1753
|
+
isInequality(): boolean;
|
|
1754
|
+
getFlattenedFilters(): Re[];
|
|
1755
|
+
getFilters(): Re[];
|
|
1756
|
+
getFirstInequalityField(): any;
|
|
1757
|
+
}
|
|
1758
|
+
/** Filter that matches on key fields within an array. */ declare class Oe extends Re {
|
|
1759
|
+
constructor(t: any, e: any);
|
|
1760
|
+
keys: any;
|
|
1761
|
+
matches(t: any): any;
|
|
1762
|
+
}
|
|
1763
|
+
/** A Filter that implements the array-contains-any operator. */ declare class qe extends Re {
|
|
1764
|
+
constructor(t: any, e: any);
|
|
1765
|
+
matches(t: any): any;
|
|
1766
|
+
}
|
|
1590
1767
|
/**
|
|
1591
1768
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1592
1769
|
* classes.
|
|
1593
|
-
*/ declare class
|
|
1770
|
+
*/ declare class Dh {
|
|
1594
1771
|
constructor(t: any, e: any, n: any);
|
|
1595
1772
|
databaseId: any;
|
|
1596
1773
|
ignoreUndefinedProperties: any;
|
|
1597
|
-
|
|
1598
|
-
/** Creates a new top-level parse context. */ da(t: any, e: any, n: any, s?: boolean):
|
|
1774
|
+
yt: any;
|
|
1775
|
+
/** Creates a new top-level parse context. */ da(t: any, e: any, n: any, s?: boolean): Sh;
|
|
1599
1776
|
}
|
|
1600
1777
|
declare class z {
|
|
1601
1778
|
constructor(t: any);
|
|
@@ -1643,68 +1820,32 @@ declare class it {
|
|
|
1643
1820
|
forEach(t: any): void;
|
|
1644
1821
|
toArray(): any;
|
|
1645
1822
|
}
|
|
1646
|
-
declare class
|
|
1823
|
+
declare class Fh extends Ah {
|
|
1647
1824
|
constructor(t: any, e: any);
|
|
1648
1825
|
_a: any;
|
|
1649
|
-
_toFieldTransform(t: any):
|
|
1826
|
+
_toFieldTransform(t: any): Un;
|
|
1650
1827
|
isEqual(t: any): boolean;
|
|
1651
1828
|
}
|
|
1652
|
-
declare class
|
|
1829
|
+
declare class Mh extends Ah {
|
|
1653
1830
|
constructor(t: any, e: any);
|
|
1654
1831
|
_a: any;
|
|
1655
|
-
_toFieldTransform(t: any):
|
|
1832
|
+
_toFieldTransform(t: any): Un;
|
|
1656
1833
|
isEqual(t: any): boolean;
|
|
1657
1834
|
}
|
|
1658
|
-
declare class
|
|
1835
|
+
declare class Nh extends Ah {
|
|
1659
1836
|
_toFieldTransform(t: any): null;
|
|
1660
1837
|
isEqual(t: any): boolean;
|
|
1661
1838
|
}
|
|
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 {
|
|
1839
|
+
declare class $h extends Ah {
|
|
1670
1840
|
constructor(t: any, e: any);
|
|
1671
1841
|
wa: any;
|
|
1672
|
-
_toFieldTransform(t: any):
|
|
1842
|
+
_toFieldTransform(t: any): Un;
|
|
1673
1843
|
isEqual(t: any): boolean;
|
|
1674
1844
|
}
|
|
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;
|
|
1845
|
+
declare class Oh extends Ah {
|
|
1846
|
+
_toFieldTransform(t: any): Un;
|
|
1691
1847
|
isEqual(t: any): boolean;
|
|
1692
1848
|
}
|
|
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
1849
|
/**
|
|
1709
1850
|
* An instance map that ensures only one Datastore exists per Firestore
|
|
1710
1851
|
* instance.
|
|
@@ -1714,7 +1855,7 @@ declare class Fh extends Oh {
|
|
|
1714
1855
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1715
1856
|
* defaults can be supplied and the value can be checked for equality.
|
|
1716
1857
|
*/
|
|
1717
|
-
declare class
|
|
1858
|
+
declare class wa {
|
|
1718
1859
|
constructor(t: any);
|
|
1719
1860
|
host: any;
|
|
1720
1861
|
ssl: any;
|
|
@@ -1738,7 +1879,7 @@ declare class Hc {
|
|
|
1738
1879
|
* base delay. This prevents clients from accidentally synchronizing their
|
|
1739
1880
|
* delays causing spikes of load to the backend.
|
|
1740
1881
|
*/
|
|
1741
|
-
declare class
|
|
1882
|
+
declare class Iu {
|
|
1742
1883
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
1743
1884
|
Hs: any;
|
|
1744
1885
|
timerId: any;
|
|
@@ -1796,7 +1937,7 @@ declare class tu {
|
|
|
1796
1937
|
* in newer versions of TypeScript defines `finally`, which is not available in
|
|
1797
1938
|
* IE.
|
|
1798
1939
|
*/
|
|
1799
|
-
declare class
|
|
1940
|
+
declare class nc {
|
|
1800
1941
|
/**
|
|
1801
1942
|
* Creates and returns a DelayedOperation that has been scheduled to be
|
|
1802
1943
|
* executed on the provided asyncQueue after the provided delayMs.
|
|
@@ -1810,14 +1951,14 @@ declare class Mu {
|
|
|
1810
1951
|
* from its delayedOperations list.
|
|
1811
1952
|
* PORTING NOTE: This exists to prevent making removeDelayedOperation() and
|
|
1812
1953
|
* the DelayedOperation class public.
|
|
1813
|
-
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any):
|
|
1954
|
+
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): nc;
|
|
1814
1955
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1815
1956
|
asyncQueue: any;
|
|
1816
1957
|
timerId: any;
|
|
1817
1958
|
targetTimeMs: any;
|
|
1818
1959
|
op: any;
|
|
1819
1960
|
removalCallback: any;
|
|
1820
|
-
deferred:
|
|
1961
|
+
deferred: q;
|
|
1821
1962
|
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
1963
|
/**
|
|
1823
1964
|
* Starts the timer. This is called immediately after construction by
|
|
@@ -1838,7 +1979,29 @@ declare class Mu {
|
|
|
1838
1979
|
handleDelayElapsed(): void;
|
|
1839
1980
|
clearTimeout(): void;
|
|
1840
1981
|
}
|
|
1841
|
-
/**
|
|
1982
|
+
/**
|
|
1983
|
+
* @license
|
|
1984
|
+
* Copyright 2022 Google LLC
|
|
1985
|
+
*
|
|
1986
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1987
|
+
* you may not use this file except in compliance with the License.
|
|
1988
|
+
* You may obtain a copy of the License at
|
|
1989
|
+
*
|
|
1990
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1991
|
+
*
|
|
1992
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1993
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1994
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1995
|
+
* See the License for the specific language governing permissions and
|
|
1996
|
+
* limitations under the License.
|
|
1997
|
+
*/ declare class Ae {
|
|
1998
|
+
}
|
|
1999
|
+
/** Filter that matches on key fields not present within an array. */ declare class Me extends Re {
|
|
2000
|
+
constructor(t: any, e: any);
|
|
2001
|
+
keys: any;
|
|
2002
|
+
matches(t: any): boolean;
|
|
2003
|
+
}
|
|
2004
|
+
/** A "context" object passed around while parsing user data. */ declare class Sh {
|
|
1842
2005
|
/**
|
|
1843
2006
|
* Initializes a ParseContext with the given source and path.
|
|
1844
2007
|
*
|
|
@@ -1860,16 +2023,16 @@ declare class Mu {
|
|
|
1860
2023
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
1861
2024
|
settings: any;
|
|
1862
2025
|
databaseId: any;
|
|
1863
|
-
|
|
2026
|
+
yt: any;
|
|
1864
2027
|
ignoreUndefinedProperties: any;
|
|
1865
2028
|
fieldTransforms: any;
|
|
1866
2029
|
fieldMask: any;
|
|
1867
2030
|
get path(): any;
|
|
1868
2031
|
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):
|
|
2032
|
+
/** Returns a new context with the specified settings overwritten. */ ia(t: any): Sh;
|
|
2033
|
+
ra(t: any): Sh;
|
|
2034
|
+
ca(t: any): Sh;
|
|
2035
|
+
aa(t: any): Sh;
|
|
1873
2036
|
ha(t: any): L;
|
|
1874
2037
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1875
2038
|
na(): void;
|
|
@@ -1891,9 +2054,9 @@ declare class Mu {
|
|
|
1891
2054
|
* See the License for the specific language governing permissions and
|
|
1892
2055
|
* limitations under the License.
|
|
1893
2056
|
*/
|
|
1894
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
2057
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class Un {
|
|
1895
2058
|
constructor(t: any, e: any);
|
|
1896
2059
|
field: any;
|
|
1897
2060
|
transform: any;
|
|
1898
2061
|
}
|
|
1899
|
-
export {
|
|
2062
|
+
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 };
|