@firebase/firestore 3.8.4 → 3.9.0-20230314181055
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 +12 -0
- package/dist/firestore/src/lite-api/query.d.ts +11 -19
- package/dist/firestore/src/lite-api/reference.d.ts +1 -1
- package/dist/firestore/src/util/debug_uid.d.ts +28 -0
- package/dist/firestore/test/unit/specs/spec_builder.d.ts +3 -0
- package/dist/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
- package/dist/index.cjs.js +1359 -1309
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +66 -14
- package/dist/index.esm2017.js +1272 -1222
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1335 -1259
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +97 -32
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +97 -32
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +1380 -1330
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +12 -20
- package/dist/lite/firestore/src/lite-api/query.d.ts +11 -19
- package/dist/lite/firestore/src/lite-api/reference.d.ts +1 -1
- package/dist/lite/firestore/src/util/debug_uid.d.ts +28 -0
- package/dist/lite/firestore/test/unit/specs/spec_builder.d.ts +3 -0
- package/dist/lite/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
- package/dist/lite/index.browser.esm2017.js +775 -730
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +736 -693
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.cjs.js +775 -730
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.d.ts +66 -14
- package/dist/lite/index.node.cjs.js +76 -18
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +76 -18
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +777 -732
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +12 -20
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +139 -142
- package/dist/lite/packages/firestore/src/lite-api/query.d.ts +11 -19
- package/dist/lite/packages/firestore/src/lite-api/reference.d.ts +1 -1
- package/dist/lite/packages/firestore/src/util/debug_uid.d.ts +28 -0
- package/dist/lite/packages/firestore/test/unit/specs/spec_builder.d.ts +3 -0
- package/dist/lite/packages/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
- package/dist/lite/private.d.ts +72 -16
- package/dist/packages/firestore/dist/index.esm2017.d.ts +157 -160
- package/dist/packages/firestore/src/lite-api/query.d.ts +11 -19
- package/dist/packages/firestore/src/lite-api/reference.d.ts +1 -1
- package/dist/packages/firestore/src/util/debug_uid.d.ts +28 -0
- package/dist/packages/firestore/test/unit/specs/spec_builder.d.ts +3 -0
- package/dist/packages/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
- package/dist/private.d.ts +72 -16
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare class
|
|
1
|
+
declare class xl {
|
|
2
2
|
convertValue(t: any, e?: string): any;
|
|
3
3
|
convertObject(t: any, e: any): {};
|
|
4
|
-
convertGeoPoint(t: any):
|
|
4
|
+
convertGeoPoint(t: any): Dh;
|
|
5
5
|
convertArray(t: any, e: any): any;
|
|
6
6
|
convertServerTimestamp(t: any, e: any): any;
|
|
7
7
|
convertTimestamp(t: any): nt;
|
|
@@ -42,7 +42,7 @@ declare class Sl {
|
|
|
42
42
|
/**
|
|
43
43
|
* Represents an aggregation that can be performed by Firestore.
|
|
44
44
|
*/
|
|
45
|
-
declare class
|
|
45
|
+
declare class Rh {
|
|
46
46
|
/**
|
|
47
47
|
* Create a new AggregateField<T>
|
|
48
48
|
* @param _aggregateType Specifies the type of aggregation operation to perform.
|
|
@@ -57,7 +57,7 @@ declare class Th {
|
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* The results of executing an aggregation query.
|
|
60
|
-
*/ declare class
|
|
60
|
+
*/ declare class Ph {
|
|
61
61
|
/** @hideconstructor */
|
|
62
62
|
constructor(t: any, e: any, n: any);
|
|
63
63
|
_userDataWriter: any;
|
|
@@ -95,18 +95,18 @@ declare class Th {
|
|
|
95
95
|
*/
|
|
96
96
|
/**
|
|
97
97
|
* An immutable object representing an array of bytes.
|
|
98
|
-
*/ declare class
|
|
98
|
+
*/ declare class vh {
|
|
99
99
|
/**
|
|
100
100
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
101
101
|
* bytes.
|
|
102
102
|
*
|
|
103
103
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
104
|
-
*/ static fromBase64String(t: any):
|
|
104
|
+
*/ static fromBase64String(t: any): vh;
|
|
105
105
|
/**
|
|
106
106
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
107
107
|
*
|
|
108
108
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
109
|
-
*/ static fromUint8Array(t: any):
|
|
109
|
+
*/ static fromUint8Array(t: any): vh;
|
|
110
110
|
/** @hideconstructor */
|
|
111
111
|
constructor(t: any);
|
|
112
112
|
_byteString: any;
|
|
@@ -148,11 +148,11 @@ declare class Th {
|
|
|
148
148
|
* See the License for the specific language governing permissions and
|
|
149
149
|
* limitations under the License.
|
|
150
150
|
*/
|
|
151
|
-
/** DOMException error code constants. */ declare const
|
|
151
|
+
/** DOMException error code constants. */ declare const uh: -1;
|
|
152
152
|
/**
|
|
153
153
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
154
|
-
* document references, and querying for documents (using {@link query}).
|
|
155
|
-
*/ declare class
|
|
154
|
+
* document references, and querying for documents (using {@link (query:1)}).
|
|
155
|
+
*/ declare class Za extends Ya {
|
|
156
156
|
_path: any;
|
|
157
157
|
/** The collection's identifier. */ get id(): any;
|
|
158
158
|
/**
|
|
@@ -162,8 +162,8 @@ declare class Th {
|
|
|
162
162
|
/**
|
|
163
163
|
* A reference to the containing `DocumentReference` if this is a
|
|
164
164
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
165
|
-
*/ get parent():
|
|
166
|
-
withConverter(t: any):
|
|
165
|
+
*/ get parent(): Ja | null;
|
|
166
|
+
withConverter(t: any): Za;
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
169
|
* @license
|
|
@@ -185,7 +185,7 @@ declare class Th {
|
|
|
185
185
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
186
186
|
* and can be used to write, read, or listen to the location. The document at
|
|
187
187
|
* the referenced location may or may not exist.
|
|
188
|
-
*/ declare class
|
|
188
|
+
*/ declare class Ja {
|
|
189
189
|
/** @hideconstructor */
|
|
190
190
|
constructor(t: any, e: any, n: any);
|
|
191
191
|
converter: any;
|
|
@@ -203,8 +203,8 @@ declare class Th {
|
|
|
203
203
|
*/ get path(): any;
|
|
204
204
|
/**
|
|
205
205
|
* The collection this `DocumentReference` belongs to.
|
|
206
|
-
*/ get parent():
|
|
207
|
-
withConverter(t: any):
|
|
206
|
+
*/ get parent(): Za;
|
|
207
|
+
withConverter(t: any): Ja;
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
210
|
* A `DocumentSnapshot` contains data read from a document in your Firestore
|
|
@@ -214,7 +214,7 @@ declare class Th {
|
|
|
214
214
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
215
215
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
216
216
|
* explicitly verify a document's existence.
|
|
217
|
-
*/ declare class
|
|
217
|
+
*/ declare class ql extends sl {
|
|
218
218
|
/** @hideconstructor protected */
|
|
219
219
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
220
220
|
_firestoreImpl: any;
|
|
@@ -274,7 +274,7 @@ declare class Th {
|
|
|
274
274
|
*
|
|
275
275
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
276
276
|
* name is provided, the path will point to a nested field in a document.
|
|
277
|
-
*/ declare class
|
|
277
|
+
*/ declare class bh {
|
|
278
278
|
/**
|
|
279
279
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
280
280
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -309,7 +309,7 @@ declare class Th {
|
|
|
309
309
|
/**
|
|
310
310
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
311
311
|
* or `update()`.
|
|
312
|
-
*/ declare class
|
|
312
|
+
*/ declare class Sh {
|
|
313
313
|
/**
|
|
314
314
|
* @param _methodName - The public API endpoint that returns this class.
|
|
315
315
|
* @hideconstructor
|
|
@@ -322,8 +322,8 @@ declare class Th {
|
|
|
322
322
|
*
|
|
323
323
|
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
324
324
|
*/
|
|
325
|
-
declare class
|
|
326
|
-
_queue:
|
|
325
|
+
declare class ch extends Wa {
|
|
326
|
+
_queue: ih;
|
|
327
327
|
_persistenceKey: any;
|
|
328
328
|
_terminate(): any;
|
|
329
329
|
}
|
|
@@ -355,7 +355,7 @@ declare class rh extends Qa {
|
|
|
355
355
|
*
|
|
356
356
|
* Latitude values are in the range of [-90, 90].
|
|
357
357
|
* Longitude values are in the range of [-180, 180].
|
|
358
|
-
*/ declare class
|
|
358
|
+
*/ declare class Dh {
|
|
359
359
|
/**
|
|
360
360
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
361
361
|
* longitude values.
|
|
@@ -386,7 +386,7 @@ declare class rh extends Qa {
|
|
|
386
386
|
* with an underscore.
|
|
387
387
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
388
388
|
}
|
|
389
|
-
declare class
|
|
389
|
+
declare class oh {
|
|
390
390
|
_progressObserver: {};
|
|
391
391
|
_taskCompletionResolver: q;
|
|
392
392
|
_lastProgress: {
|
|
@@ -438,7 +438,7 @@ declare class sh {
|
|
|
438
438
|
/**
|
|
439
439
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
440
440
|
* construct refined `Query` objects by adding filters and ordering.
|
|
441
|
-
*/ declare class
|
|
441
|
+
*/ declare class Ya {
|
|
442
442
|
/** @hideconstructor protected */
|
|
443
443
|
constructor(t: any, e: any, n: any);
|
|
444
444
|
converter: any;
|
|
@@ -446,18 +446,17 @@ declare class sh {
|
|
|
446
446
|
/** The type of this Firestore reference. */
|
|
447
447
|
type: string;
|
|
448
448
|
firestore: any;
|
|
449
|
-
withConverter(t: any):
|
|
449
|
+
withConverter(t: any): Ya;
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* A `QueryCompositeFilterConstraint` is used to narrow the set of documents
|
|
453
453
|
* returned by a Firestore query by performing the logical OR or AND of multiple
|
|
454
454
|
* {@link QueryFieldFilterConstraint}s or {@link QueryCompositeFilterConstraint}s.
|
|
455
455
|
* `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
|
|
456
|
-
* {@link and} and can then be passed to {@link query} to create a new query
|
|
456
|
+
* {@link and} and can then be passed to {@link (query:1)} to create a new query
|
|
457
457
|
* instance that also contains the `QueryCompositeFilterConstraint`.
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
static _create(t: any, e: any): al;
|
|
458
|
+
*/ declare class fl extends ul {
|
|
459
|
+
static _create(t: any, e: any): fl;
|
|
461
460
|
/**
|
|
462
461
|
* @internal
|
|
463
462
|
*/
|
|
@@ -472,11 +471,11 @@ declare class sh {
|
|
|
472
471
|
/**
|
|
473
472
|
* A `QueryConstraint` is used to narrow the set of documents returned by a
|
|
474
473
|
* Firestore query. `QueryConstraint`s are created by invoking {@link where},
|
|
475
|
-
* {@link orderBy}, {@link startAt}, {@link startAfter}, {@link
|
|
476
|
-
* endBefore}, {@link endAt}, {@link limit}, {@link limitToLast} and
|
|
477
|
-
* can then be passed to {@link query} to create a new query instance that
|
|
474
|
+
* {@link orderBy}, {@link (startAt:1)}, {@link (startAfter:1)}, {@link
|
|
475
|
+
* (endBefore:1)}, {@link (endAt:1)}, {@link limit}, {@link limitToLast} and
|
|
476
|
+
* can then be passed to {@link (query:1)} to create a new query instance that
|
|
478
477
|
* also contains this `QueryConstraint`.
|
|
479
|
-
*/ declare class
|
|
478
|
+
*/ declare class cl extends ul {
|
|
480
479
|
}
|
|
481
480
|
/**
|
|
482
481
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -488,16 +487,16 @@ declare class sh {
|
|
|
488
487
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
489
488
|
* `exists` property will always be true and `data()` will never return
|
|
490
489
|
* 'undefined'.
|
|
491
|
-
*/ declare class
|
|
490
|
+
*/ declare class Ul extends ql {
|
|
492
491
|
}
|
|
493
492
|
/**
|
|
494
493
|
* A `QueryEndAtConstraint` is used to exclude documents from the end of a
|
|
495
494
|
* result set returned by a Firestore query.
|
|
496
495
|
* `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
|
|
497
|
-
* {@link (endBefore:1)} and can then be passed to {@link query} to create a new
|
|
496
|
+
* {@link (endBefore:1)} and can then be passed to {@link (query:1)} to create a new
|
|
498
497
|
* query instance that also contains this `QueryEndAtConstraint`.
|
|
499
|
-
*/ declare class
|
|
500
|
-
static _create(t: any, e: any, n: any):
|
|
498
|
+
*/ declare class Al extends cl {
|
|
499
|
+
static _create(t: any, e: any, n: any): Al;
|
|
501
500
|
/**
|
|
502
501
|
* @internal
|
|
503
502
|
*/
|
|
@@ -505,16 +504,16 @@ declare class sh {
|
|
|
505
504
|
type: any;
|
|
506
505
|
_docOrFields: any;
|
|
507
506
|
_inclusive: any;
|
|
508
|
-
_apply(t: any):
|
|
507
|
+
_apply(t: any): Ya;
|
|
509
508
|
}
|
|
510
509
|
/**
|
|
511
510
|
* A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
|
|
512
511
|
* a Firestore query by filtering on one or more document fields.
|
|
513
512
|
* `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
|
|
514
|
-
* be passed to {@link query} to create a new query instance that also contains
|
|
513
|
+
* be passed to {@link (query:1)} to create a new query instance that also contains
|
|
515
514
|
* this `QueryFieldFilterConstraint`.
|
|
516
|
-
*/ declare class
|
|
517
|
-
static _create(t: any, e: any, n: any):
|
|
515
|
+
*/ declare class hl extends cl {
|
|
516
|
+
static _create(t: any, e: any, n: any): hl;
|
|
518
517
|
/**
|
|
519
518
|
* @internal
|
|
520
519
|
*/
|
|
@@ -524,17 +523,17 @@ declare class sh {
|
|
|
524
523
|
_value: any;
|
|
525
524
|
/** The type of this query constraint */
|
|
526
525
|
type: string;
|
|
527
|
-
_apply(t: any):
|
|
526
|
+
_apply(t: any): Ya;
|
|
528
527
|
_parse(t: any): Ve | Be | Qe;
|
|
529
528
|
}
|
|
530
529
|
/**
|
|
531
530
|
* A `QueryLimitConstraint` is used to limit the number of documents returned by
|
|
532
531
|
* a Firestore query.
|
|
533
532
|
* `QueryLimitConstraint`s are created by invoking {@link limit} or
|
|
534
|
-
* {@link limitToLast} and can then be passed to {@link query} to create a new
|
|
533
|
+
* {@link limitToLast} and can then be passed to {@link (query:1)} to create a new
|
|
535
534
|
* query instance that also contains this `QueryLimitConstraint`.
|
|
536
|
-
*/ declare class
|
|
537
|
-
static _create(t: any, e: any, n: any):
|
|
535
|
+
*/ declare class gl extends cl {
|
|
536
|
+
static _create(t: any, e: any, n: any): gl;
|
|
538
537
|
/**
|
|
539
538
|
* @internal
|
|
540
539
|
*/
|
|
@@ -542,18 +541,18 @@ declare class sh {
|
|
|
542
541
|
type: any;
|
|
543
542
|
_limit: any;
|
|
544
543
|
_limitType: any;
|
|
545
|
-
_apply(t: any):
|
|
544
|
+
_apply(t: any): Ya;
|
|
546
545
|
}
|
|
547
546
|
/**
|
|
548
547
|
* A `QueryOrderByConstraint` is used to sort the set of documents returned by a
|
|
549
548
|
* Firestore query. `QueryOrderByConstraint`s are created by invoking
|
|
550
|
-
* {@link orderBy} and can then be passed to {@link query} to create a new query
|
|
549
|
+
* {@link orderBy} and can then be passed to {@link (query:1)} to create a new query
|
|
551
550
|
* instance that also contains this `QueryOrderByConstraint`.
|
|
552
551
|
*
|
|
553
552
|
* Note: Documents that do not contain the orderBy field will not be present in
|
|
554
553
|
* the query result.
|
|
555
|
-
*/ declare class
|
|
556
|
-
static _create(t: any, e: any):
|
|
554
|
+
*/ declare class wl extends cl {
|
|
555
|
+
static _create(t: any, e: any): wl;
|
|
557
556
|
/**
|
|
558
557
|
* @internal
|
|
559
558
|
*/
|
|
@@ -562,7 +561,7 @@ declare class sh {
|
|
|
562
561
|
_direction: any;
|
|
563
562
|
/** The type of this query constraint */
|
|
564
563
|
type: string;
|
|
565
|
-
_apply(t: any):
|
|
564
|
+
_apply(t: any): Ya;
|
|
566
565
|
}
|
|
567
566
|
/**
|
|
568
567
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -570,13 +569,13 @@ declare class sh {
|
|
|
570
569
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
571
570
|
* number of documents can be determined via the `empty` and `size`
|
|
572
571
|
* properties.
|
|
573
|
-
*/ declare class
|
|
572
|
+
*/ declare class Kl {
|
|
574
573
|
/** @hideconstructor */
|
|
575
574
|
constructor(t: any, e: any, n: any, s: any);
|
|
576
575
|
_firestore: any;
|
|
577
576
|
_userDataWriter: any;
|
|
578
577
|
_snapshot: any;
|
|
579
|
-
metadata:
|
|
578
|
+
metadata: Ll;
|
|
580
579
|
query: any;
|
|
581
580
|
/** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
|
|
582
581
|
/** The number of documents in the `QuerySnapshot`. */ get size(): any;
|
|
@@ -604,10 +603,10 @@ declare class sh {
|
|
|
604
603
|
* A `QueryStartAtConstraint` is used to exclude documents from the start of a
|
|
605
604
|
* result set returned by a Firestore query.
|
|
606
605
|
* `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
|
|
607
|
-
* {@link (startAfter:1)} and can then be passed to {@link query} to create a
|
|
606
|
+
* {@link (startAfter:1)} and can then be passed to {@link (query:1)} to create a
|
|
608
607
|
* new query instance that also contains this `QueryStartAtConstraint`.
|
|
609
|
-
*/ declare class
|
|
610
|
-
static _create(t: any, e: any, n: any):
|
|
608
|
+
*/ declare class Il extends cl {
|
|
609
|
+
static _create(t: any, e: any, n: any): Il;
|
|
611
610
|
/**
|
|
612
611
|
* @internal
|
|
613
612
|
*/
|
|
@@ -615,7 +614,7 @@ declare class sh {
|
|
|
615
614
|
type: any;
|
|
616
615
|
_docOrFields: any;
|
|
617
616
|
_inclusive: any;
|
|
618
|
-
_apply(t: any):
|
|
617
|
+
_apply(t: any): Ya;
|
|
619
618
|
}
|
|
620
619
|
/**
|
|
621
620
|
* @license
|
|
@@ -635,7 +634,7 @@ declare class sh {
|
|
|
635
634
|
*/
|
|
636
635
|
/**
|
|
637
636
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
638
|
-
*/ declare class
|
|
637
|
+
*/ declare class Ll {
|
|
639
638
|
/** @hideconstructor */
|
|
640
639
|
constructor(t: any, e: any);
|
|
641
640
|
hasPendingWrites: any;
|
|
@@ -744,11 +743,11 @@ declare class nt {
|
|
|
744
743
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
745
744
|
*/ valueOf(): string;
|
|
746
745
|
}
|
|
747
|
-
declare const
|
|
746
|
+
declare const df_base: {
|
|
748
747
|
new (t: any, e: any): {
|
|
749
748
|
_firestore: any;
|
|
750
749
|
_transaction: any;
|
|
751
|
-
_dataReader:
|
|
750
|
+
_dataReader: Mh;
|
|
752
751
|
/**
|
|
753
752
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
754
753
|
*
|
|
@@ -811,7 +810,7 @@ declare const hf_base: {
|
|
|
811
810
|
* the methods to read and write data within the transaction context. See
|
|
812
811
|
* {@link runTransaction}.
|
|
813
812
|
*/
|
|
814
|
-
declare class
|
|
813
|
+
declare class df extends df_base {
|
|
815
814
|
}
|
|
816
815
|
/**
|
|
817
816
|
* @license
|
|
@@ -837,22 +836,22 @@ declare class hf extends hf_base {
|
|
|
837
836
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
838
837
|
* called.
|
|
839
838
|
*/
|
|
840
|
-
declare class
|
|
839
|
+
declare class lf {
|
|
841
840
|
/** @hideconstructor */
|
|
842
841
|
constructor(t: any, e: any);
|
|
843
842
|
_firestore: any;
|
|
844
843
|
_commitHandler: any;
|
|
845
844
|
_mutations: any[];
|
|
846
845
|
_committed: boolean;
|
|
847
|
-
_dataReader:
|
|
848
|
-
set(t: any, e: any, n: any):
|
|
849
|
-
update(t: any, e: any, n: any, ...s: any[]):
|
|
846
|
+
_dataReader: Mh;
|
|
847
|
+
set(t: any, e: any, n: any): lf;
|
|
848
|
+
update(t: any, e: any, n: any, ...s: any[]): lf;
|
|
850
849
|
/**
|
|
851
850
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
852
851
|
*
|
|
853
852
|
* @param documentRef - A reference to the document to be deleted.
|
|
854
853
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
855
|
-
*/ delete(t: any):
|
|
854
|
+
*/ delete(t: any): lf;
|
|
856
855
|
/**
|
|
857
856
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
858
857
|
*
|
|
@@ -966,7 +965,7 @@ declare class Lt {
|
|
|
966
965
|
* Returns true if this field references the key of a document.
|
|
967
966
|
*/ isKeyField(): boolean;
|
|
968
967
|
}
|
|
969
|
-
declare function
|
|
968
|
+
declare function Qa(t: any, e: any): any;
|
|
970
969
|
/**
|
|
971
970
|
* Fails if the given assertion condition is false, throwing an Error with the
|
|
972
971
|
* given message if it did.
|
|
@@ -976,7 +975,7 @@ declare function Ua(t: any, e: any): any;
|
|
|
976
975
|
* happen in this case.
|
|
977
976
|
*
|
|
978
977
|
* @internal
|
|
979
|
-
*/ declare function
|
|
978
|
+
*/ declare function O(t: any, e: any): void;
|
|
980
979
|
/**
|
|
981
980
|
* @license
|
|
982
981
|
* Copyright 2020 Google LLC
|
|
@@ -1002,7 +1001,7 @@ declare function Wt(): boolean;
|
|
|
1002
1001
|
/**
|
|
1003
1002
|
* Validates that two boolean options are not set at the same time.
|
|
1004
1003
|
* @internal
|
|
1005
|
-
*/ declare function
|
|
1004
|
+
*/ declare function qa(t: any, e: any, n: any, s: any): void;
|
|
1006
1005
|
/**
|
|
1007
1006
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
1008
1007
|
* assigning it a document ID automatically.
|
|
@@ -1012,14 +1011,14 @@ declare function Wt(): boolean;
|
|
|
1012
1011
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
1013
1012
|
* newly created document after it has been written to the backend (Note that it
|
|
1014
1013
|
* won't resolve while you're offline).
|
|
1015
|
-
*/ declare function
|
|
1014
|
+
*/ declare function nf(t: any, e: any): Promise<Ja>;
|
|
1016
1015
|
/**
|
|
1017
1016
|
* Compares two 'AggregateField` instances for equality.
|
|
1018
1017
|
*
|
|
1019
1018
|
* @param left Compare this AggregateField to the `right`.
|
|
1020
1019
|
* @param right Compare this AggregateField to the `left`.
|
|
1021
1020
|
* @internal TODO (sum/avg) remove when public
|
|
1022
|
-
*/ declare function
|
|
1021
|
+
*/ declare function Fl(t: any, e: any): boolean;
|
|
1023
1022
|
/**
|
|
1024
1023
|
* Compares two `AggregateQuerySnapshot` instances for equality.
|
|
1025
1024
|
*
|
|
@@ -1031,7 +1030,7 @@ declare function Wt(): boolean;
|
|
|
1031
1030
|
*
|
|
1032
1031
|
* @returns `true` if the objects are "equal", as defined above, or `false`
|
|
1033
1032
|
* otherwise.
|
|
1034
|
-
*/ declare function
|
|
1033
|
+
*/ declare function Bl(t: any, e: any): boolean;
|
|
1035
1034
|
/**
|
|
1036
1035
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
1037
1036
|
* the given filter constraints. A conjunction filter includes a document if it
|
|
@@ -1041,8 +1040,7 @@ declare function Wt(): boolean;
|
|
|
1041
1040
|
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
1042
1041
|
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
1043
1042
|
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
1044
|
-
|
|
1045
|
-
*/ declare function ll(...t: any[]): al;
|
|
1043
|
+
*/ declare function _l(...t: any[]): fl;
|
|
1046
1044
|
/**
|
|
1047
1045
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
1048
1046
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -1053,7 +1051,7 @@ declare function Wt(): boolean;
|
|
|
1053
1051
|
* @param elements - The elements to remove from the array.
|
|
1054
1052
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1055
1053
|
* `updateDoc()`
|
|
1056
|
-
*/ declare function
|
|
1054
|
+
*/ declare function yf(...t: any[]): Kh;
|
|
1057
1055
|
/**
|
|
1058
1056
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1059
1057
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -1065,15 +1063,15 @@ declare function Wt(): boolean;
|
|
|
1065
1063
|
* @param elements - The elements to union into the array.
|
|
1066
1064
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1067
1065
|
* `updateDoc()`.
|
|
1068
|
-
*/ declare function
|
|
1066
|
+
*/ declare function gf(...t: any[]): Uh;
|
|
1069
1067
|
/**
|
|
1070
1068
|
* Create an AggregateField object that can be used to compute the average of
|
|
1071
1069
|
* a specified field over a range of documents in the result set of a query.
|
|
1072
1070
|
* @param field Specifies the field to average across the result set.
|
|
1073
1071
|
* @internal TODO (sum/avg) remove when public
|
|
1074
|
-
*/ declare function
|
|
1075
|
-
declare function
|
|
1076
|
-
declare function
|
|
1072
|
+
*/ declare function Ml(t: any): Rh;
|
|
1073
|
+
declare function mh(t: any): Promise<any>;
|
|
1074
|
+
declare function Xa(t: any, e: any, ...n: any[]): Za;
|
|
1077
1075
|
/**
|
|
1078
1076
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
1079
1077
|
* database that are contained in a collection or subcollection with the
|
|
@@ -1084,7 +1082,7 @@ declare function Ja(t: any, e: any, ...n: any[]): Ha;
|
|
|
1084
1082
|
* collection or subcollection with this ID as the last segment of its path
|
|
1085
1083
|
* will be included. Cannot contain a slash.
|
|
1086
1084
|
* @returns The created `Query`.
|
|
1087
|
-
*/ declare function
|
|
1085
|
+
*/ declare function th(t: any, e: any): Ya;
|
|
1088
1086
|
/**
|
|
1089
1087
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
1090
1088
|
*
|
|
@@ -1097,19 +1095,19 @@ declare function Ja(t: any, e: any, ...n: any[]): Ha;
|
|
|
1097
1095
|
* @param port - the emulator port (ex: 9000).
|
|
1098
1096
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
1099
1097
|
* Security Rules.
|
|
1100
|
-
*/ declare function
|
|
1098
|
+
*/ declare function Ha(t: any, e: any, n: any, s?: {}): void;
|
|
1101
1099
|
/**
|
|
1102
1100
|
* Create an AggregateField object that can be used to compute the count of
|
|
1103
1101
|
* documents in the result set of a query.
|
|
1104
1102
|
* @internal TODO (sum/avg) remove when public
|
|
1105
|
-
*/ declare function
|
|
1103
|
+
*/ declare function Ol(): Rh;
|
|
1106
1104
|
/**
|
|
1107
1105
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
1108
1106
|
*
|
|
1109
1107
|
* @param reference - A reference to the document to delete.
|
|
1110
1108
|
* @returns A Promise resolved once the document has been successfully
|
|
1111
1109
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
1112
|
-
*/ declare function
|
|
1110
|
+
*/ declare function ef(t: any): Promise<any>;
|
|
1113
1111
|
/**
|
|
1114
1112
|
* @license
|
|
1115
1113
|
* Copyright 2020 Google LLC
|
|
@@ -1129,7 +1127,7 @@ declare function Ja(t: any, e: any, ...n: any[]): Ha;
|
|
|
1129
1127
|
/**
|
|
1130
1128
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
1131
1129
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
1132
|
-
*/ declare function
|
|
1130
|
+
*/ declare function wf(): Bh;
|
|
1133
1131
|
/**
|
|
1134
1132
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
1135
1133
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -1137,12 +1135,12 @@ declare function Ja(t: any, e: any, ...n: any[]): Ha;
|
|
|
1137
1135
|
* operations will be queued until the network is restored.
|
|
1138
1136
|
*
|
|
1139
1137
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
1140
|
-
*/ declare function
|
|
1141
|
-
declare function
|
|
1138
|
+
*/ declare function ph(t: any): any;
|
|
1139
|
+
declare function eh(t: any, e: any, ...n: any[]): Ja;
|
|
1142
1140
|
/**
|
|
1143
1141
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
1144
1142
|
* It can be used in queries to sort or filter by the document ID.
|
|
1145
|
-
*/ declare function
|
|
1143
|
+
*/ declare function Vh(): bh;
|
|
1146
1144
|
/**
|
|
1147
1145
|
* Attempts to enable persistent storage, if possible.
|
|
1148
1146
|
*
|
|
@@ -1165,7 +1163,7 @@ declare function Za(t: any, e: any, ...n: any[]): za;
|
|
|
1165
1163
|
* @param persistenceSettings - Optional settings object to configure
|
|
1166
1164
|
* persistence.
|
|
1167
1165
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
1168
|
-
*/ declare function
|
|
1166
|
+
*/ declare function dh(t: any, e: any): any;
|
|
1169
1167
|
/**
|
|
1170
1168
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
1171
1169
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -1187,22 +1185,22 @@ declare function Za(t: any, e: any, ...n: any[]): za;
|
|
|
1187
1185
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
1188
1186
|
* @returns A `Promise` that represents successfully enabling persistent
|
|
1189
1187
|
* storage.
|
|
1190
|
-
*/ declare function
|
|
1188
|
+
*/ declare function _h(t: any): any;
|
|
1191
1189
|
/**
|
|
1192
1190
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
1193
1191
|
* call to {@link disableNetwork}.
|
|
1194
1192
|
*
|
|
1195
1193
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
1196
|
-
*/ declare function
|
|
1197
|
-
declare function
|
|
1198
|
-
declare function
|
|
1194
|
+
*/ declare function yh(t: any): any;
|
|
1195
|
+
declare function Pl(...t: any[]): Al;
|
|
1196
|
+
declare function Rl(...t: any[]): Al;
|
|
1199
1197
|
/**
|
|
1200
1198
|
* @internal
|
|
1201
|
-
*/ declare function
|
|
1199
|
+
*/ declare function lh(t: any): any;
|
|
1202
1200
|
/**
|
|
1203
1201
|
* Locally writes `mutations` on the async queue.
|
|
1204
1202
|
* @internal
|
|
1205
|
-
*/ declare function
|
|
1203
|
+
*/ declare function of(t: any, e: any): Promise<any>;
|
|
1206
1204
|
/**
|
|
1207
1205
|
* Calculates the specified aggregations over the documents in the result
|
|
1208
1206
|
* set of the given query, without actually downloading the documents.
|
|
@@ -1236,7 +1234,7 @@ declare function Tl(...t: any[]): Il;
|
|
|
1236
1234
|
* const averageScore: number | null = aggregateSnapshot.data().averageScore;
|
|
1237
1235
|
* ```
|
|
1238
1236
|
* @internal TODO (sum/avg) remove when public
|
|
1239
|
-
*/ declare function
|
|
1237
|
+
*/ declare function af(t: any, e: any): Promise<Ph>;
|
|
1240
1238
|
/**
|
|
1241
1239
|
* @license
|
|
1242
1240
|
* Copyright 2022 Google LLC
|
|
@@ -1273,7 +1271,7 @@ declare function Tl(...t: any[]): Il;
|
|
|
1273
1271
|
* @returns A Promise that will be resolved with the count; the count can be
|
|
1274
1272
|
* retrieved from `snapshot.data().count`, where `snapshot` is the
|
|
1275
1273
|
* `AggregateQuerySnapshot` to which the returned Promise resolves.
|
|
1276
|
-
*/ declare function
|
|
1274
|
+
*/ declare function cf(t: any): Promise<Ph>;
|
|
1277
1275
|
/**
|
|
1278
1276
|
* @license
|
|
1279
1277
|
* Copyright 2020 Google LLC
|
|
@@ -1301,21 +1299,21 @@ declare function Tl(...t: any[]): Il;
|
|
|
1301
1299
|
* @param reference - The reference of the document to fetch.
|
|
1302
1300
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
1303
1301
|
* current document contents.
|
|
1304
|
-
*/ declare function
|
|
1302
|
+
*/ declare function jl(t: any): Promise<ql>;
|
|
1305
1303
|
/**
|
|
1306
1304
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
1307
1305
|
* Returns an error if the document is not currently cached.
|
|
1308
1306
|
*
|
|
1309
1307
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1310
1308
|
* current document contents.
|
|
1311
|
-
*/ declare function
|
|
1309
|
+
*/ declare function Wl(t: any): Promise<ql>;
|
|
1312
1310
|
/**
|
|
1313
1311
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
1314
1312
|
* Returns an error if the network is not available.
|
|
1315
1313
|
*
|
|
1316
1314
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1317
1315
|
* current document contents.
|
|
1318
|
-
*/ declare function
|
|
1316
|
+
*/ declare function Hl(t: any): Promise<ql>;
|
|
1319
1317
|
/**
|
|
1320
1318
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1321
1319
|
*
|
|
@@ -1325,21 +1323,21 @@ declare function Tl(...t: any[]): Il;
|
|
|
1325
1323
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
1326
1324
|
*
|
|
1327
1325
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1328
|
-
*/ declare function
|
|
1326
|
+
*/ declare function Jl(t: any): Promise<Kl>;
|
|
1329
1327
|
/**
|
|
1330
1328
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1331
1329
|
* Returns an empty result set if no documents matching the query are currently
|
|
1332
1330
|
* cached.
|
|
1333
1331
|
*
|
|
1334
1332
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1335
|
-
*/ declare function
|
|
1333
|
+
*/ declare function Yl(t: any): Promise<Kl>;
|
|
1336
1334
|
/**
|
|
1337
1335
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1338
1336
|
* server. Returns an error if the network is not available.
|
|
1339
1337
|
*
|
|
1340
1338
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1341
|
-
*/ declare function
|
|
1342
|
-
declare function
|
|
1339
|
+
*/ declare function Zl(t: any): Promise<Kl>;
|
|
1340
|
+
declare function hh(e: any, n: any): import("../src").Firestore;
|
|
1343
1341
|
/**
|
|
1344
1342
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1345
1343
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1358,7 +1356,7 @@ declare function uh(e: any, n: any): import("../src").Firestore;
|
|
|
1358
1356
|
* @param n - The value to increment by.
|
|
1359
1357
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1360
1358
|
* `updateDoc()`
|
|
1361
|
-
*/ declare function
|
|
1359
|
+
*/ declare function pf(t: any): Gh;
|
|
1362
1360
|
/**
|
|
1363
1361
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1364
1362
|
* Can only be called before any other function, including
|
|
@@ -1370,14 +1368,14 @@ declare function uh(e: any, n: any): import("../src").Firestore;
|
|
|
1370
1368
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1371
1369
|
* @param databaseId - The name of database.
|
|
1372
1370
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1373
|
-
*/ declare function
|
|
1371
|
+
*/ declare function ah(t: any, e: any, n: any): import("../src").Firestore;
|
|
1374
1372
|
/**
|
|
1375
1373
|
* Creates a {@link QueryLimitConstraint} that only returns the first matching
|
|
1376
1374
|
* documents.
|
|
1377
1375
|
*
|
|
1378
1376
|
* @param limit - The maximum number of items to return.
|
|
1379
1377
|
* @returns The created {@link QueryLimitConstraint}.
|
|
1380
|
-
*/ declare function
|
|
1378
|
+
*/ declare function yl(t: any): gl;
|
|
1381
1379
|
/**
|
|
1382
1380
|
* Creates a {@link QueryLimitConstraint} that only returns the last matching
|
|
1383
1381
|
* documents.
|
|
@@ -1387,7 +1385,7 @@ declare function uh(e: any, n: any): import("../src").Firestore;
|
|
|
1387
1385
|
*
|
|
1388
1386
|
* @param limit - The maximum number of items to return.
|
|
1389
1387
|
* @returns The created {@link QueryLimitConstraint}.
|
|
1390
|
-
*/ declare function
|
|
1388
|
+
*/ declare function pl(t: any): gl;
|
|
1391
1389
|
/**
|
|
1392
1390
|
* Loads a Firestore bundle into the local cache.
|
|
1393
1391
|
*
|
|
@@ -1398,7 +1396,7 @@ declare function uh(e: any, n: any): import("../src").Firestore;
|
|
|
1398
1396
|
* @returns A `LoadBundleTask` object, which notifies callers with progress
|
|
1399
1397
|
* updates, and completion or error events. It can be used as a
|
|
1400
1398
|
* `Promise<LoadBundleTaskProgress>`.
|
|
1401
|
-
*/ declare function
|
|
1399
|
+
*/ declare function Th(t: any, e: any): oh;
|
|
1402
1400
|
/**
|
|
1403
1401
|
* Reads a Firestore {@link Query} from local cache, identified by the given
|
|
1404
1402
|
* name.
|
|
@@ -1410,9 +1408,9 @@ declare function uh(e: any, n: any): import("../src").Firestore;
|
|
|
1410
1408
|
* @param firestore - The {@link Firestore} instance to read the query from.
|
|
1411
1409
|
* @param name - The name of the query.
|
|
1412
1410
|
* @returns A `Promise` that is resolved with the Query or `null`.
|
|
1413
|
-
*/ declare function
|
|
1414
|
-
declare function
|
|
1415
|
-
declare function
|
|
1411
|
+
*/ declare function Eh(t: any, e: any): any;
|
|
1412
|
+
declare function sf(t: any, ...e: any[]): () => void;
|
|
1413
|
+
declare function rf(t: any, e: any): () => void;
|
|
1416
1414
|
/**
|
|
1417
1415
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
1418
1416
|
* the given filter constraints. A disjunction filter includes a document if it
|
|
@@ -1422,8 +1420,7 @@ declare function ef(t: any, e: any): () => void;
|
|
|
1422
1420
|
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
1423
1421
|
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
1424
1422
|
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
1425
|
-
|
|
1426
|
-
*/ declare function hl(...t: any[]): al;
|
|
1423
|
+
*/ declare function dl(...t: any[]): fl;
|
|
1427
1424
|
/**
|
|
1428
1425
|
* Creates a {@link QueryOrderByConstraint} that sorts the query result by the
|
|
1429
1426
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1435,8 +1432,8 @@ declare function ef(t: any, e: any): () => void;
|
|
|
1435
1432
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1436
1433
|
* not specified, order will be ascending.
|
|
1437
1434
|
* @returns The created {@link QueryOrderByConstraint}.
|
|
1438
|
-
*/ declare function
|
|
1439
|
-
declare function
|
|
1435
|
+
*/ declare function ml(t: any, e?: string): wl;
|
|
1436
|
+
declare function al(t: any, e: any, ...n: any[]): any;
|
|
1440
1437
|
/**
|
|
1441
1438
|
* Returns true if the provided queries point to the same collection and apply
|
|
1442
1439
|
* the same constraints.
|
|
@@ -1445,7 +1442,7 @@ declare function ol(t: any, e: any, ...n: any[]): any;
|
|
|
1445
1442
|
* @param right - A `Query` to compare.
|
|
1446
1443
|
* @returns true if the references point to the same location in the same
|
|
1447
1444
|
* Firestore database.
|
|
1448
|
-
*/ declare function
|
|
1445
|
+
*/ declare function sh(t: any, e: any): boolean;
|
|
1449
1446
|
/**
|
|
1450
1447
|
* Returns true if the provided references are equal.
|
|
1451
1448
|
*
|
|
@@ -1453,7 +1450,7 @@ declare function ol(t: any, e: any, ...n: any[]): any;
|
|
|
1453
1450
|
* @param right - A reference to compare.
|
|
1454
1451
|
* @returns true if the references point to the same location in the same
|
|
1455
1452
|
* Firestore database.
|
|
1456
|
-
*/ declare function
|
|
1453
|
+
*/ declare function nh(t: any, e: any): boolean;
|
|
1457
1454
|
/**
|
|
1458
1455
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1459
1456
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1472,12 +1469,12 @@ declare function ol(t: any, e: any, ...n: any[]): any;
|
|
|
1472
1469
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1473
1470
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1474
1471
|
* rejected promise with the corresponding failure error is returned.
|
|
1475
|
-
*/ declare function
|
|
1472
|
+
*/ declare function _f(t: any, e: any, n: any): Promise<any>;
|
|
1476
1473
|
/**
|
|
1477
1474
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1478
1475
|
* include a server-generated timestamp in the written data.
|
|
1479
|
-
*/ declare function
|
|
1480
|
-
declare function
|
|
1476
|
+
*/ declare function mf(): qh;
|
|
1477
|
+
declare function Xl(t: any, e: any, n: any): Promise<any>;
|
|
1481
1478
|
/**
|
|
1482
1479
|
* @license
|
|
1483
1480
|
* Copyright 2021 Google LLC
|
|
@@ -1493,7 +1490,7 @@ declare function Jl(t: any, e: any, n: any): Promise<any>;
|
|
|
1493
1490
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1494
1491
|
* See the License for the specific language governing permissions and
|
|
1495
1492
|
* limitations under the License.
|
|
1496
|
-
*/ declare function
|
|
1493
|
+
*/ declare function Tf(t: any, e: any): Promise<any>;
|
|
1497
1494
|
/**
|
|
1498
1495
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1499
1496
|
*
|
|
@@ -1513,9 +1510,9 @@ declare function Jl(t: any, e: any, n: any): Promise<any>;
|
|
|
1513
1510
|
* @param left - A snapshot to compare.
|
|
1514
1511
|
* @param right - A snapshot to compare.
|
|
1515
1512
|
* @returns true if the snapshots are equal.
|
|
1516
|
-
*/ declare function
|
|
1517
|
-
declare function
|
|
1518
|
-
declare function
|
|
1513
|
+
*/ declare function Ql(t: any, e: any): any;
|
|
1514
|
+
declare function El(...t: any[]): Il;
|
|
1515
|
+
declare function Tl(...t: any[]): Il;
|
|
1519
1516
|
/**
|
|
1520
1517
|
* @license
|
|
1521
1518
|
* Copyright 2022 Google LLC
|
|
@@ -1537,7 +1534,7 @@ declare function yl(...t: any[]): gl;
|
|
|
1537
1534
|
* a specified field over a range of documents in the result set of a query.
|
|
1538
1535
|
* @param field Specifies the field to sum across the result set.
|
|
1539
1536
|
* @internal TODO (sum/avg) remove when public
|
|
1540
|
-
*/ declare function
|
|
1537
|
+
*/ declare function $l(t: any): Rh;
|
|
1541
1538
|
/**
|
|
1542
1539
|
* Terminates the provided {@link Firestore} instance.
|
|
1543
1540
|
*
|
|
@@ -1559,8 +1556,8 @@ declare function yl(...t: any[]): gl;
|
|
|
1559
1556
|
*
|
|
1560
1557
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1561
1558
|
* terminated.
|
|
1562
|
-
*/ declare function
|
|
1563
|
-
declare function
|
|
1559
|
+
*/ declare function Ih(t: any): any;
|
|
1560
|
+
declare function tf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1564
1561
|
/**
|
|
1565
1562
|
* Waits until all currently pending writes for the active user have been
|
|
1566
1563
|
* acknowledged by the backend.
|
|
@@ -1576,7 +1573,7 @@ declare function Yl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1576
1573
|
*
|
|
1577
1574
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1578
1575
|
* acknowledged by the backend.
|
|
1579
|
-
*/ declare function
|
|
1576
|
+
*/ declare function gh(t: any): Promise<any>;
|
|
1580
1577
|
/**
|
|
1581
1578
|
* Creates a {@link QueryFieldFilterConstraint} that enforces that documents
|
|
1582
1579
|
* must contain the specified field and that the value should satisfy the
|
|
@@ -1587,7 +1584,7 @@ declare function Yl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1587
1584
|
* "<=", "!=").
|
|
1588
1585
|
* @param value - The value for comparison
|
|
1589
1586
|
* @returns The created {@link QueryFieldFilterConstraint}.
|
|
1590
|
-
*/ declare function
|
|
1587
|
+
*/ declare function ll(t: any, e: any, n: any): hl;
|
|
1591
1588
|
/**
|
|
1592
1589
|
* @license
|
|
1593
1590
|
* Copyright 2020 Google LLC
|
|
@@ -1614,7 +1611,7 @@ declare function Yl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1614
1611
|
*
|
|
1615
1612
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1616
1613
|
* writes.
|
|
1617
|
-
*/ declare function
|
|
1614
|
+
*/ declare function If(t: any): lf;
|
|
1618
1615
|
/**
|
|
1619
1616
|
* @license
|
|
1620
1617
|
* Copyright 2020 Google LLC
|
|
@@ -1639,7 +1636,7 @@ declare function Yl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1639
1636
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
1640
1637
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
1641
1638
|
* explicitly verify a document's existence.
|
|
1642
|
-
*/ declare class
|
|
1639
|
+
*/ declare class sl {
|
|
1643
1640
|
/** @hideconstructor protected */
|
|
1644
1641
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1645
1642
|
_firestore: any;
|
|
@@ -1650,7 +1647,7 @@ declare function Yl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1650
1647
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1651
1648
|
/**
|
|
1652
1649
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1653
|
-
*/ get ref():
|
|
1650
|
+
*/ get ref(): Ja;
|
|
1654
1651
|
/**
|
|
1655
1652
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1656
1653
|
*
|
|
@@ -1694,7 +1691,7 @@ declare function Yl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1694
1691
|
* The Cloud Firestore service interface.
|
|
1695
1692
|
*
|
|
1696
1693
|
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
1697
|
-
*/ declare class
|
|
1694
|
+
*/ declare class Wa {
|
|
1698
1695
|
/** @hideconstructor */
|
|
1699
1696
|
constructor(t: any, e: any, n: any, s: any);
|
|
1700
1697
|
_authCredentials: any;
|
|
@@ -1706,7 +1703,7 @@ declare function Yl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1706
1703
|
*/
|
|
1707
1704
|
type: string;
|
|
1708
1705
|
_persistenceKey: string;
|
|
1709
|
-
_settings:
|
|
1706
|
+
_settings: za;
|
|
1710
1707
|
_settingsFrozen: boolean;
|
|
1711
1708
|
/**
|
|
1712
1709
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1715,14 +1712,14 @@ declare function Yl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1715
1712
|
get _initialized(): boolean;
|
|
1716
1713
|
get _terminated(): boolean;
|
|
1717
1714
|
_setSettings(t: any): void;
|
|
1718
|
-
_getSettings():
|
|
1719
|
-
_freezeSettings():
|
|
1715
|
+
_getSettings(): za;
|
|
1716
|
+
_freezeSettings(): za;
|
|
1720
1717
|
_delete(): Promise<void>;
|
|
1721
1718
|
_terminateTask: Promise<void> | undefined;
|
|
1722
1719
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1723
1720
|
app: any;
|
|
1724
1721
|
databaseId: any;
|
|
1725
|
-
settings:
|
|
1722
|
+
settings: za;
|
|
1726
1723
|
};
|
|
1727
1724
|
/**
|
|
1728
1725
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1747,7 +1744,7 @@ declare function Yl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1747
1744
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1748
1745
|
* See the License for the specific language governing permissions and
|
|
1749
1746
|
* limitations under the License.
|
|
1750
|
-
*/ declare class
|
|
1747
|
+
*/ declare class ih {
|
|
1751
1748
|
qc: Promise<void>;
|
|
1752
1749
|
Uc: any[];
|
|
1753
1750
|
Kc: boolean;
|
|
@@ -1756,7 +1753,7 @@ declare function Yl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1756
1753
|
jc: boolean;
|
|
1757
1754
|
zc: boolean;
|
|
1758
1755
|
Wc: any[];
|
|
1759
|
-
ko:
|
|
1756
|
+
ko: bu;
|
|
1760
1757
|
Hc: () => void;
|
|
1761
1758
|
get isShuttingDown(): boolean;
|
|
1762
1759
|
/**
|
|
@@ -1772,7 +1769,7 @@ declare function Yl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1772
1769
|
* reschedules with backoff.
|
|
1773
1770
|
*/ Zc(): Promise<void>;
|
|
1774
1771
|
Yc(t: any): Promise<any>;
|
|
1775
|
-
enqueueAfterDelay(t: any, e: any, n: any):
|
|
1772
|
+
enqueueAfterDelay(t: any, e: any, n: any): ac;
|
|
1776
1773
|
Jc(): void;
|
|
1777
1774
|
verifyOperationInProgress(): void;
|
|
1778
1775
|
/**
|
|
@@ -1819,9 +1816,9 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
1819
1816
|
/**
|
|
1820
1817
|
* An `AppliableConstraint` is an abstraction of a constraint that can be applied
|
|
1821
1818
|
* to a Firestore query.
|
|
1822
|
-
*/ declare class
|
|
1819
|
+
*/ declare class ul {
|
|
1823
1820
|
}
|
|
1824
|
-
declare class Ve extends
|
|
1821
|
+
declare class Ve extends be {
|
|
1825
1822
|
/**
|
|
1826
1823
|
* Creates a filter based on the provided arguments.
|
|
1827
1824
|
*/ static create(t: any, e: any, n: any): Ve | Be | Qe;
|
|
@@ -1849,12 +1846,12 @@ declare class Ve extends Pe {
|
|
|
1849
1846
|
/**
|
|
1850
1847
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1851
1848
|
* classes.
|
|
1852
|
-
*/ declare class
|
|
1849
|
+
*/ declare class Mh {
|
|
1853
1850
|
constructor(t: any, e: any, n: any);
|
|
1854
1851
|
databaseId: any;
|
|
1855
1852
|
ignoreUndefinedProperties: any;
|
|
1856
1853
|
Tt: any;
|
|
1857
|
-
/** Creates a new top-level parse context. */ wa(t: any, e: any, n: any, s?: boolean):
|
|
1854
|
+
/** Creates a new top-level parse context. */ wa(t: any, e: any, n: any, s?: boolean): $h;
|
|
1858
1855
|
}
|
|
1859
1856
|
declare class W {
|
|
1860
1857
|
constructor(t: any);
|
|
@@ -1902,29 +1899,29 @@ declare class it {
|
|
|
1902
1899
|
forEach(t: any): void;
|
|
1903
1900
|
toArray(): any;
|
|
1904
1901
|
}
|
|
1905
|
-
declare class
|
|
1902
|
+
declare class Kh extends Sh {
|
|
1906
1903
|
constructor(t: any, e: any);
|
|
1907
1904
|
ma: any;
|
|
1908
1905
|
_toFieldTransform(t: any): jn;
|
|
1909
1906
|
isEqual(t: any): boolean;
|
|
1910
1907
|
}
|
|
1911
|
-
declare class
|
|
1908
|
+
declare class Uh extends Sh {
|
|
1912
1909
|
constructor(t: any, e: any);
|
|
1913
1910
|
ma: any;
|
|
1914
1911
|
_toFieldTransform(t: any): jn;
|
|
1915
1912
|
isEqual(t: any): boolean;
|
|
1916
1913
|
}
|
|
1917
|
-
declare class
|
|
1914
|
+
declare class Bh extends Sh {
|
|
1918
1915
|
_toFieldTransform(t: any): null;
|
|
1919
1916
|
isEqual(t: any): boolean;
|
|
1920
1917
|
}
|
|
1921
|
-
declare class
|
|
1918
|
+
declare class Gh extends Sh {
|
|
1922
1919
|
constructor(t: any, e: any);
|
|
1923
1920
|
ga: any;
|
|
1924
1921
|
_toFieldTransform(t: any): jn;
|
|
1925
1922
|
isEqual(t: any): boolean;
|
|
1926
1923
|
}
|
|
1927
|
-
declare class
|
|
1924
|
+
declare class qh extends Sh {
|
|
1928
1925
|
_toFieldTransform(t: any): jn;
|
|
1929
1926
|
isEqual(t: any): boolean;
|
|
1930
1927
|
}
|
|
@@ -1949,7 +1946,7 @@ declare class $h extends vh {
|
|
|
1949
1946
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1950
1947
|
* defaults can be supplied and the value can be checked for equality.
|
|
1951
1948
|
*/
|
|
1952
|
-
declare class
|
|
1949
|
+
declare class za {
|
|
1953
1950
|
constructor(t: any);
|
|
1954
1951
|
host: any;
|
|
1955
1952
|
ssl: any;
|
|
@@ -1986,7 +1983,7 @@ declare class Ga {
|
|
|
1986
1983
|
* base delay. This prevents clients from accidentally synchronizing their
|
|
1987
1984
|
* delays causing spikes of load to the backend.
|
|
1988
1985
|
*/
|
|
1989
|
-
declare class
|
|
1986
|
+
declare class bu {
|
|
1990
1987
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
1991
1988
|
Ys: any;
|
|
1992
1989
|
timerId: any;
|
|
@@ -2007,7 +2004,7 @@ declare class Ru {
|
|
|
2007
2004
|
/**
|
|
2008
2005
|
* Resets the backoff delay to the maximum delay (e.g. for use after a
|
|
2009
2006
|
* RESOURCE_EXHAUSTED error).
|
|
2010
|
-
*/
|
|
2007
|
+
*/ Po(): void;
|
|
2011
2008
|
/**
|
|
2012
2009
|
* Returns a promise that resolves after currentDelayMs, and increases the
|
|
2013
2010
|
* delay for any subsequent attempts. If there was a pending backoff operation
|
|
@@ -2015,7 +2012,7 @@ declare class Ru {
|
|
|
2015
2012
|
*/ vo(t: any): void;
|
|
2016
2013
|
Vo(): void;
|
|
2017
2014
|
cancel(): void;
|
|
2018
|
-
/** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */
|
|
2015
|
+
/** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */ bo(): number;
|
|
2019
2016
|
}
|
|
2020
2017
|
/**
|
|
2021
2018
|
* @license
|
|
@@ -2044,7 +2041,7 @@ declare class Ru {
|
|
|
2044
2041
|
* in newer versions of TypeScript defines `finally`, which is not available in
|
|
2045
2042
|
* IE.
|
|
2046
2043
|
*/
|
|
2047
|
-
declare class
|
|
2044
|
+
declare class ac {
|
|
2048
2045
|
/**
|
|
2049
2046
|
* Creates and returns a DelayedOperation that has been scheduled to be
|
|
2050
2047
|
* executed on the provided asyncQueue after the provided delayMs.
|
|
@@ -2058,7 +2055,7 @@ declare class oc {
|
|
|
2058
2055
|
* from its delayedOperations list.
|
|
2059
2056
|
* PORTING NOTE: This exists to prevent making removeDelayedOperation() and
|
|
2060
2057
|
* the DelayedOperation class public.
|
|
2061
|
-
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any):
|
|
2058
|
+
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): ac;
|
|
2062
2059
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
2063
2060
|
asyncQueue: any;
|
|
2064
2061
|
timerId: any;
|
|
@@ -2101,14 +2098,14 @@ declare class oc {
|
|
|
2101
2098
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2102
2099
|
* See the License for the specific language governing permissions and
|
|
2103
2100
|
* limitations under the License.
|
|
2104
|
-
*/ declare class
|
|
2101
|
+
*/ declare class be {
|
|
2105
2102
|
}
|
|
2106
2103
|
/** Filter that matches on key fields not present within an array. */ declare class Le extends Ve {
|
|
2107
2104
|
constructor(t: any, e: any);
|
|
2108
2105
|
keys: any;
|
|
2109
2106
|
matches(t: any): boolean;
|
|
2110
2107
|
}
|
|
2111
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
2108
|
+
/** A "context" object passed around while parsing user data. */ declare class $h {
|
|
2112
2109
|
/**
|
|
2113
2110
|
* Initializes a ParseContext with the given source and path.
|
|
2114
2111
|
*
|
|
@@ -2136,10 +2133,10 @@ declare class oc {
|
|
|
2136
2133
|
fieldMask: any;
|
|
2137
2134
|
get path(): any;
|
|
2138
2135
|
get ra(): any;
|
|
2139
|
-
/** Returns a new context with the specified settings overwritten. */ oa(t: any):
|
|
2140
|
-
ua(t: any):
|
|
2141
|
-
ha(t: any):
|
|
2142
|
-
la(t: any):
|
|
2136
|
+
/** Returns a new context with the specified settings overwritten. */ oa(t: any): $h;
|
|
2137
|
+
ua(t: any): $h;
|
|
2138
|
+
ha(t: any): $h;
|
|
2139
|
+
la(t: any): $h;
|
|
2143
2140
|
fa(t: any): L;
|
|
2144
2141
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
2145
2142
|
ia(): void;
|
|
@@ -2166,4 +2163,4 @@ declare class oc {
|
|
|
2166
2163
|
field: any;
|
|
2167
2164
|
transform: any;
|
|
2168
2165
|
}
|
|
2169
|
-
export {
|
|
2166
|
+
export { xl as AbstractUserDataWriter, Rh as AggregateField, Ph as AggregateQuerySnapshot, vh as Bytes, uh as CACHE_SIZE_UNLIMITED, Za as CollectionReference, Ja as DocumentReference, ql as DocumentSnapshot, bh as FieldPath, Sh as FieldValue, ch as Firestore, L as FirestoreError, Dh as GeoPoint, oh as LoadBundleTask, Ya as Query, fl as QueryCompositeFilterConstraint, cl as QueryConstraint, Ul as QueryDocumentSnapshot, Al as QueryEndAtConstraint, hl as QueryFieldFilterConstraint, gl as QueryLimitConstraint, wl as QueryOrderByConstraint, Kl as QuerySnapshot, Il as QueryStartAtConstraint, Ll as SnapshotMetadata, nt as Timestamp, df as Transaction, lf as WriteBatch, Lt as _DatabaseId, ct as _DocumentKey, J as _EmptyAppCheckTokenProvider, K as _EmptyAuthCredentialsProvider, ut as _FieldPath, Qa as _cast, O as _debugAssert, Wt as _isBase64Available, N as _logWarn, qa as _validateIsNotUsedTogether, nf as addDoc, Fl as aggregateFieldEqual, Bl as aggregateQuerySnapshotEqual, _l as and, yf as arrayRemove, gf as arrayUnion, Ml as average, mh as clearIndexedDbPersistence, Xa as collection, th as collectionGroup, Ha as connectFirestoreEmulator, Ol as count, ef as deleteDoc, wf as deleteField, ph as disableNetwork, eh as doc, Vh as documentId, dh as enableIndexedDbPersistence, _h as enableMultiTabIndexedDbPersistence, yh as enableNetwork, Pl as endAt, Rl as endBefore, lh as ensureFirestoreConfigured, of as executeWrite, af as getAggregateFromServer, cf as getCountFromServer, jl as getDoc, Wl as getDocFromCache, Hl as getDocFromServer, Jl as getDocs, Yl as getDocsFromCache, Zl as getDocsFromServer, hh as getFirestore, pf as increment, ah as initializeFirestore, yl as limit, pl as limitToLast, Th as loadBundle, Eh as namedQuery, sf as onSnapshot, rf as onSnapshotsInSync, dl as or, ml as orderBy, al as query, sh as queryEqual, nh as refEqual, _f as runTransaction, mf as serverTimestamp, Xl as setDoc, Tf as setIndexConfiguration, D as setLogLevel, Ql as snapshotEqual, El as startAfter, Tl as startAt, $l as sum, Ih as terminate, tf as updateDoc, gh as waitForPendingWrites, ll as where, If as writeBatch };
|