@firebase/firestore 3.9.0-canary.ce79f7fe2 → 3.9.0-canary.f8a2c5865
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/firestore/src/api.d.ts +1 -0
- package/dist/firestore/src/util/testing_hooks.d.ts +84 -0
- package/dist/firestore/test/integration/util/testing_hooks_util.d.ts +40 -0
- package/dist/index.cjs.js +1797 -1717
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +1705 -1626
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1532 -1471
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +91 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +91 -3
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +1477 -1398
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +87 -0
- package/dist/lite/firestore/src/api.d.ts +1 -0
- package/dist/lite/firestore/src/util/testing_hooks.d.ts +84 -0
- package/dist/lite/firestore/test/integration/util/testing_hooks_util.d.ts +40 -0
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +2 -2
- package/dist/lite/index.cjs.js +2 -2
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/lite/packages/firestore/src/api.d.ts +1 -0
- package/dist/lite/packages/firestore/src/util/testing_hooks.d.ts +84 -0
- package/dist/lite/packages/firestore/test/integration/util/testing_hooks_util.d.ts +40 -0
- package/dist/packages/firestore/dist/index.esm2017.d.ts +350 -289
- package/dist/packages/firestore/src/api.d.ts +1 -0
- package/dist/packages/firestore/src/util/testing_hooks.d.ts +84 -0
- package/dist/packages/firestore/test/integration/util/testing_hooks_util.d.ts +40 -0
- package/dist/private.d.ts +22 -0
- package/package.json +9 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare class
|
|
1
|
+
declare class $l {
|
|
2
2
|
convertValue(t: any, e?: string): any;
|
|
3
3
|
convertObject(t: any, e: any): {};
|
|
4
|
-
convertGeoPoint(t: any):
|
|
4
|
+
convertGeoPoint(t: any): kh;
|
|
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 kl {
|
|
|
42
42
|
/**
|
|
43
43
|
* Represents an aggregation that can be performed by Firestore.
|
|
44
44
|
*/
|
|
45
|
-
declare class
|
|
45
|
+
declare class Vh {
|
|
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 bh {
|
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* The results of executing an aggregation query.
|
|
60
|
-
*/ declare class
|
|
60
|
+
*/ declare class Sh {
|
|
61
61
|
/** @hideconstructor */
|
|
62
62
|
constructor(t: any, e: any, n: any);
|
|
63
63
|
_userDataWriter: any;
|
|
@@ -95,18 +95,18 @@ declare class bh {
|
|
|
95
95
|
*/
|
|
96
96
|
/**
|
|
97
97
|
* An immutable object representing an array of bytes.
|
|
98
|
-
*/ declare class
|
|
98
|
+
*/ declare class Dh {
|
|
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): Dh;
|
|
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): Dh;
|
|
110
110
|
/** @hideconstructor */
|
|
111
111
|
constructor(t: any);
|
|
112
112
|
_byteString: any;
|
|
@@ -152,11 +152,11 @@ declare class bh {
|
|
|
152
152
|
* Constant used to indicate the LRU garbage collection should be disabled.
|
|
153
153
|
* Set this value as the `cacheSizeBytes` on the settings passed to the
|
|
154
154
|
* {@link Firestore} instance.
|
|
155
|
-
*/ declare const
|
|
155
|
+
*/ declare const lh: -1;
|
|
156
156
|
/**
|
|
157
157
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
158
158
|
* document references, and querying for documents (using {@link (query:1)}).
|
|
159
|
-
*/ declare class
|
|
159
|
+
*/ declare class nh extends eh {
|
|
160
160
|
_path: any;
|
|
161
161
|
/** The collection's identifier. */ get id(): any;
|
|
162
162
|
/**
|
|
@@ -166,8 +166,8 @@ declare class bh {
|
|
|
166
166
|
/**
|
|
167
167
|
* A reference to the containing `DocumentReference` if this is a
|
|
168
168
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
169
|
-
*/ get parent():
|
|
170
|
-
withConverter(t: any):
|
|
169
|
+
*/ get parent(): th | null;
|
|
170
|
+
withConverter(t: any): nh;
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* @license
|
|
@@ -189,7 +189,7 @@ declare class bh {
|
|
|
189
189
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
190
190
|
* and can be used to write, read, or listen to the location. The document at
|
|
191
191
|
* the referenced location may or may not exist.
|
|
192
|
-
*/ declare class
|
|
192
|
+
*/ declare class th {
|
|
193
193
|
/** @hideconstructor */
|
|
194
194
|
constructor(t: any, e: any, n: any);
|
|
195
195
|
converter: any;
|
|
@@ -207,8 +207,8 @@ declare class bh {
|
|
|
207
207
|
*/ get path(): any;
|
|
208
208
|
/**
|
|
209
209
|
* The collection this `DocumentReference` belongs to.
|
|
210
|
-
*/ get parent():
|
|
211
|
-
withConverter(t: any):
|
|
210
|
+
*/ get parent(): nh;
|
|
211
|
+
withConverter(t: any): th;
|
|
212
212
|
}
|
|
213
213
|
/**
|
|
214
214
|
* A `DocumentSnapshot` contains data read from a document in your Firestore
|
|
@@ -218,7 +218,7 @@ declare class bh {
|
|
|
218
218
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
219
219
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
220
220
|
* explicitly verify a document's existence.
|
|
221
|
-
*/ declare class
|
|
221
|
+
*/ declare class Ql extends ul {
|
|
222
222
|
/** @hideconstructor protected */
|
|
223
223
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
224
224
|
_firestoreImpl: any;
|
|
@@ -278,7 +278,7 @@ declare class bh {
|
|
|
278
278
|
*
|
|
279
279
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
280
280
|
* name is provided, the path will point to a nested field in a document.
|
|
281
|
-
*/ declare class
|
|
281
|
+
*/ declare class Ch {
|
|
282
282
|
/**
|
|
283
283
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
284
284
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -313,7 +313,7 @@ declare class bh {
|
|
|
313
313
|
/**
|
|
314
314
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
315
315
|
* or `update()`.
|
|
316
|
-
*/ declare class
|
|
316
|
+
*/ declare class Nh {
|
|
317
317
|
/**
|
|
318
318
|
* @param _methodName - The public API endpoint that returns this class.
|
|
319
319
|
* @hideconstructor
|
|
@@ -325,8 +325,8 @@ declare class bh {
|
|
|
325
325
|
* The Cloud Firestore service interface.
|
|
326
326
|
*
|
|
327
327
|
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
328
|
-
*/ declare class
|
|
329
|
-
_queue:
|
|
328
|
+
*/ declare class fh extends Za {
|
|
329
|
+
_queue: ch;
|
|
330
330
|
_persistenceKey: any;
|
|
331
331
|
_terminate(): any;
|
|
332
332
|
}
|
|
@@ -358,7 +358,7 @@ declare class bh {
|
|
|
358
358
|
*
|
|
359
359
|
* Latitude values are in the range of [-90, 90].
|
|
360
360
|
* Longitude values are in the range of [-180, 180].
|
|
361
|
-
*/ declare class
|
|
361
|
+
*/ declare class kh {
|
|
362
362
|
/**
|
|
363
363
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
364
364
|
* longitude values.
|
|
@@ -389,7 +389,7 @@ declare class bh {
|
|
|
389
389
|
* with an underscore.
|
|
390
390
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
391
391
|
}
|
|
392
|
-
declare class
|
|
392
|
+
declare class hh {
|
|
393
393
|
_progressObserver: {};
|
|
394
394
|
_taskCompletionResolver: q;
|
|
395
395
|
_lastProgress: {
|
|
@@ -441,7 +441,7 @@ declare class ch {
|
|
|
441
441
|
/**
|
|
442
442
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
443
443
|
* construct refined `Query` objects by adding filters and ordering.
|
|
444
|
-
*/ declare class
|
|
444
|
+
*/ declare class eh {
|
|
445
445
|
/** @hideconstructor protected */
|
|
446
446
|
constructor(t: any, e: any, n: any);
|
|
447
447
|
converter: any;
|
|
@@ -449,7 +449,7 @@ declare class ch {
|
|
|
449
449
|
/** The type of this Firestore reference. */
|
|
450
450
|
type: string;
|
|
451
451
|
firestore: any;
|
|
452
|
-
withConverter(t: any):
|
|
452
|
+
withConverter(t: any): eh;
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* A `QueryCompositeFilterConstraint` is used to narrow the set of documents
|
|
@@ -458,8 +458,8 @@ declare class ch {
|
|
|
458
458
|
* `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
|
|
459
459
|
* {@link and} and can then be passed to {@link (query:1)} to create a new query
|
|
460
460
|
* instance that also contains the `QueryCompositeFilterConstraint`.
|
|
461
|
-
*/ declare class
|
|
462
|
-
static _create(t: any, e: any):
|
|
461
|
+
*/ declare class ml extends ll {
|
|
462
|
+
static _create(t: any, e: any): ml;
|
|
463
463
|
/**
|
|
464
464
|
* @internal
|
|
465
465
|
*/
|
|
@@ -478,7 +478,7 @@ declare class ch {
|
|
|
478
478
|
* (endBefore:1)}, {@link (endAt:1)}, {@link limit}, {@link limitToLast} and
|
|
479
479
|
* can then be passed to {@link (query:1)} to create a new query instance that
|
|
480
480
|
* also contains this `QueryConstraint`.
|
|
481
|
-
*/ declare class
|
|
481
|
+
*/ declare class fl extends ll {
|
|
482
482
|
}
|
|
483
483
|
/**
|
|
484
484
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -490,7 +490,7 @@ declare class ch {
|
|
|
490
490
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
491
491
|
* `exists` property will always be true and `data()` will never return
|
|
492
492
|
* 'undefined'.
|
|
493
|
-
*/ declare class
|
|
493
|
+
*/ declare class zl extends Ql {
|
|
494
494
|
}
|
|
495
495
|
/**
|
|
496
496
|
* A `QueryEndAtConstraint` is used to exclude documents from the end of a
|
|
@@ -498,8 +498,8 @@ declare class ch {
|
|
|
498
498
|
* `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
|
|
499
499
|
* {@link (endBefore:1)} and can then be passed to {@link (query:1)} to create a new
|
|
500
500
|
* query instance that also contains this `QueryEndAtConstraint`.
|
|
501
|
-
*/ declare class
|
|
502
|
-
static _create(t: any, e: any, n: any):
|
|
501
|
+
*/ declare class Pl extends fl {
|
|
502
|
+
static _create(t: any, e: any, n: any): Pl;
|
|
503
503
|
/**
|
|
504
504
|
* @internal
|
|
505
505
|
*/
|
|
@@ -507,7 +507,7 @@ declare class ch {
|
|
|
507
507
|
type: any;
|
|
508
508
|
_docOrFields: any;
|
|
509
509
|
_inclusive: any;
|
|
510
|
-
_apply(t: any):
|
|
510
|
+
_apply(t: any): eh;
|
|
511
511
|
}
|
|
512
512
|
/**
|
|
513
513
|
* A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
|
|
@@ -515,8 +515,8 @@ declare class ch {
|
|
|
515
515
|
* `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
|
|
516
516
|
* be passed to {@link (query:1)} to create a new query instance that also contains
|
|
517
517
|
* this `QueryFieldFilterConstraint`.
|
|
518
|
-
*/ declare class
|
|
519
|
-
static _create(t: any, e: any, n: any):
|
|
518
|
+
*/ declare class wl extends fl {
|
|
519
|
+
static _create(t: any, e: any, n: any): wl;
|
|
520
520
|
/**
|
|
521
521
|
* @internal
|
|
522
522
|
*/
|
|
@@ -526,7 +526,7 @@ declare class ch {
|
|
|
526
526
|
_value: any;
|
|
527
527
|
/** The type of this query constraint */
|
|
528
528
|
type: string;
|
|
529
|
-
_apply(t: any):
|
|
529
|
+
_apply(t: any): eh;
|
|
530
530
|
_parse(t: any): dn | Rn | Dn;
|
|
531
531
|
}
|
|
532
532
|
/**
|
|
@@ -535,8 +535,8 @@ declare class ch {
|
|
|
535
535
|
* `QueryLimitConstraint`s are created by invoking {@link limit} or
|
|
536
536
|
* {@link limitToLast} and can then be passed to {@link (query:1)} to create a new
|
|
537
537
|
* query instance that also contains this `QueryLimitConstraint`.
|
|
538
|
-
*/ declare class
|
|
539
|
-
static _create(t: any, e: any, n: any):
|
|
538
|
+
*/ declare class Tl extends fl {
|
|
539
|
+
static _create(t: any, e: any, n: any): Tl;
|
|
540
540
|
/**
|
|
541
541
|
* @internal
|
|
542
542
|
*/
|
|
@@ -544,7 +544,7 @@ declare class ch {
|
|
|
544
544
|
type: any;
|
|
545
545
|
_limit: any;
|
|
546
546
|
_limitType: any;
|
|
547
|
-
_apply(t: any):
|
|
547
|
+
_apply(t: any): eh;
|
|
548
548
|
}
|
|
549
549
|
/**
|
|
550
550
|
* A `QueryOrderByConstraint` is used to sort the set of documents returned by a
|
|
@@ -554,8 +554,8 @@ declare class ch {
|
|
|
554
554
|
*
|
|
555
555
|
* Note: Documents that do not contain the orderBy field will not be present in
|
|
556
556
|
* the query result.
|
|
557
|
-
*/ declare class
|
|
558
|
-
static _create(t: any, e: any):
|
|
557
|
+
*/ declare class pl extends fl {
|
|
558
|
+
static _create(t: any, e: any): pl;
|
|
559
559
|
/**
|
|
560
560
|
* @internal
|
|
561
561
|
*/
|
|
@@ -564,7 +564,7 @@ declare class ch {
|
|
|
564
564
|
_direction: any;
|
|
565
565
|
/** The type of this query constraint */
|
|
566
566
|
type: string;
|
|
567
|
-
_apply(t: any):
|
|
567
|
+
_apply(t: any): eh;
|
|
568
568
|
}
|
|
569
569
|
/**
|
|
570
570
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -572,13 +572,13 @@ declare class ch {
|
|
|
572
572
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
573
573
|
* number of documents can be determined via the `empty` and `size`
|
|
574
574
|
* properties.
|
|
575
|
-
*/ declare class
|
|
575
|
+
*/ declare class jl {
|
|
576
576
|
/** @hideconstructor */
|
|
577
577
|
constructor(t: any, e: any, n: any, s: any);
|
|
578
578
|
_firestore: any;
|
|
579
579
|
_userDataWriter: any;
|
|
580
580
|
_snapshot: any;
|
|
581
|
-
metadata:
|
|
581
|
+
metadata: Gl;
|
|
582
582
|
query: any;
|
|
583
583
|
/** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
|
|
584
584
|
/** The number of documents in the `QuerySnapshot`. */ get size(): any;
|
|
@@ -608,8 +608,8 @@ declare class ch {
|
|
|
608
608
|
* `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
|
|
609
609
|
* {@link (startAfter:1)} and can then be passed to {@link (query:1)} to create a
|
|
610
610
|
* new query instance that also contains this `QueryStartAtConstraint`.
|
|
611
|
-
*/ declare class
|
|
612
|
-
static _create(t: any, e: any, n: any):
|
|
611
|
+
*/ declare class Rl extends fl {
|
|
612
|
+
static _create(t: any, e: any, n: any): Rl;
|
|
613
613
|
/**
|
|
614
614
|
* @internal
|
|
615
615
|
*/
|
|
@@ -617,7 +617,7 @@ declare class ch {
|
|
|
617
617
|
type: any;
|
|
618
618
|
_docOrFields: any;
|
|
619
619
|
_inclusive: any;
|
|
620
|
-
_apply(t: any):
|
|
620
|
+
_apply(t: any): eh;
|
|
621
621
|
}
|
|
622
622
|
/**
|
|
623
623
|
* @license
|
|
@@ -637,7 +637,7 @@ declare class ch {
|
|
|
637
637
|
*/
|
|
638
638
|
/**
|
|
639
639
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
640
|
-
*/ declare class
|
|
640
|
+
*/ declare class Gl {
|
|
641
641
|
/** @hideconstructor */
|
|
642
642
|
constructor(t: any, e: any);
|
|
643
643
|
hasPendingWrites: any;
|
|
@@ -746,11 +746,11 @@ declare class nt {
|
|
|
746
746
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
747
747
|
*/ valueOf(): string;
|
|
748
748
|
}
|
|
749
|
-
declare const
|
|
749
|
+
declare const vf_base: {
|
|
750
750
|
new (t: any, e: any): {
|
|
751
751
|
_firestore: any;
|
|
752
752
|
_transaction: any;
|
|
753
|
-
_dataReader:
|
|
753
|
+
_dataReader: Lh;
|
|
754
754
|
/**
|
|
755
755
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
756
756
|
*
|
|
@@ -813,7 +813,7 @@ declare const Af_base: {
|
|
|
813
813
|
* the methods to read and write data within the transaction context. See
|
|
814
814
|
* {@link runTransaction}.
|
|
815
815
|
*/
|
|
816
|
-
declare class
|
|
816
|
+
declare class vf extends vf_base {
|
|
817
817
|
}
|
|
818
818
|
/**
|
|
819
819
|
* @license
|
|
@@ -839,22 +839,22 @@ declare class Af extends Af_base {
|
|
|
839
839
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
840
840
|
* called.
|
|
841
841
|
*/
|
|
842
|
-
declare class
|
|
842
|
+
declare class Af {
|
|
843
843
|
/** @hideconstructor */
|
|
844
844
|
constructor(t: any, e: any);
|
|
845
845
|
_firestore: any;
|
|
846
846
|
_commitHandler: any;
|
|
847
847
|
_mutations: any[];
|
|
848
848
|
_committed: boolean;
|
|
849
|
-
_dataReader:
|
|
850
|
-
set(t: any, e: any, n: any):
|
|
851
|
-
update(t: any, e: any, n: any, ...s: any[]):
|
|
849
|
+
_dataReader: Lh;
|
|
850
|
+
set(t: any, e: any, n: any): Af;
|
|
851
|
+
update(t: any, e: any, n: any, ...s: any[]): Af;
|
|
852
852
|
/**
|
|
853
853
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
854
854
|
*
|
|
855
855
|
* @param documentRef - A reference to the document to be deleted.
|
|
856
856
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
857
|
-
*/ delete(t: any):
|
|
857
|
+
*/ delete(t: any): Af;
|
|
858
858
|
/**
|
|
859
859
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
860
860
|
*
|
|
@@ -874,8 +874,8 @@ declare class Tf {
|
|
|
874
874
|
* Represents the database ID a Firestore client is associated with.
|
|
875
875
|
* @internal
|
|
876
876
|
*/
|
|
877
|
-
declare class
|
|
878
|
-
static empty():
|
|
877
|
+
declare class Oe {
|
|
878
|
+
static empty(): Oe;
|
|
879
879
|
constructor(t: any, e: any);
|
|
880
880
|
projectId: any;
|
|
881
881
|
database: any;
|
|
@@ -968,7 +968,68 @@ declare class $e {
|
|
|
968
968
|
* Returns true if this field references the key of a document.
|
|
969
969
|
*/ isKeyField(): boolean;
|
|
970
970
|
}
|
|
971
|
-
|
|
971
|
+
/**
|
|
972
|
+
* @license
|
|
973
|
+
* Copyright 2023 Google LLC
|
|
974
|
+
*
|
|
975
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
976
|
+
* you may not use this file except in compliance with the License.
|
|
977
|
+
* You may obtain a copy of the License at
|
|
978
|
+
*
|
|
979
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
980
|
+
*
|
|
981
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
982
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
983
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
984
|
+
* See the License for the specific language governing permissions and
|
|
985
|
+
* limitations under the License.
|
|
986
|
+
*/
|
|
987
|
+
/**
|
|
988
|
+
* Manages "testing hooks", hooks into the internals of the SDK to verify
|
|
989
|
+
* internal state and events during integration tests. Do not use this class
|
|
990
|
+
* except for testing purposes.
|
|
991
|
+
*
|
|
992
|
+
* There are two ways to retrieve the global singleton instance of this class:
|
|
993
|
+
* 1. The `instance` property, which returns null if the global singleton
|
|
994
|
+
* instance has not been created. Use this property if the caller should
|
|
995
|
+
* "do nothing" if there are no testing hooks registered, such as when
|
|
996
|
+
* delivering an event to notify registered callbacks.
|
|
997
|
+
* 2. The `getOrCreateInstance()` method, which creates the global singleton
|
|
998
|
+
* instance if it has not been created. Use this method if the instance is
|
|
999
|
+
* needed to, for example, register a callback.
|
|
1000
|
+
*
|
|
1001
|
+
* @internal
|
|
1002
|
+
*/
|
|
1003
|
+
declare class ui {
|
|
1004
|
+
/**
|
|
1005
|
+
* Returns the singleton instance of this class, or null if it has not been
|
|
1006
|
+
* initialized.
|
|
1007
|
+
*/ static get instance(): any;
|
|
1008
|
+
/**
|
|
1009
|
+
* Returns the singleton instance of this class, creating it if is has never
|
|
1010
|
+
* been created before.
|
|
1011
|
+
*/ static getOrCreateInstance(): any;
|
|
1012
|
+
onExistenceFilterMismatchCallbacks: Map<any, any>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Registers a callback to be notified when an existence filter mismatch
|
|
1015
|
+
* occurs in the Watch listen stream.
|
|
1016
|
+
*
|
|
1017
|
+
* The relative order in which callbacks are notified is unspecified; do not
|
|
1018
|
+
* rely on any particular ordering. If a given callback is registered multiple
|
|
1019
|
+
* times then it will be notified multiple times, once per registration.
|
|
1020
|
+
*
|
|
1021
|
+
* @param callback the callback to invoke upon existence filter mismatch.
|
|
1022
|
+
*
|
|
1023
|
+
* @return a function that, when called, unregisters the given callback; only
|
|
1024
|
+
* the first invocation of the returned function does anything; all subsequent
|
|
1025
|
+
* invocations do nothing.
|
|
1026
|
+
*/ onExistenceFilterMismatch(t: any): () => boolean;
|
|
1027
|
+
/**
|
|
1028
|
+
* Invokes all currently-registered `onExistenceFilterMismatch` callbacks.
|
|
1029
|
+
* @param info Information about the existence filter mismatch.
|
|
1030
|
+
*/ notifyOnExistenceFilterMismatch(t: any): void;
|
|
1031
|
+
}
|
|
1032
|
+
declare function Ha(t: any, e: any): any;
|
|
972
1033
|
/**
|
|
973
1034
|
* Fails if the given assertion condition is false, throwing an Error with the
|
|
974
1035
|
* given message if it did.
|
|
@@ -1004,7 +1065,7 @@ declare function ve(): boolean;
|
|
|
1004
1065
|
/**
|
|
1005
1066
|
* Validates that two boolean options are not set at the same time.
|
|
1006
1067
|
* @internal
|
|
1007
|
-
*/ declare function
|
|
1068
|
+
*/ declare function Qa(t: any, e: any, n: any, s: any): void;
|
|
1008
1069
|
/**
|
|
1009
1070
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
1010
1071
|
* assigning it a document ID automatically.
|
|
@@ -1014,14 +1075,14 @@ declare function ve(): boolean;
|
|
|
1014
1075
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
1015
1076
|
* newly created document after it has been written to the backend (Note that it
|
|
1016
1077
|
* won't resolve while you're offline).
|
|
1017
|
-
*/ declare function
|
|
1078
|
+
*/ declare function uf(t: any, e: any): Promise<th>;
|
|
1018
1079
|
/**
|
|
1019
1080
|
* Compares two 'AggregateField` instances for equality.
|
|
1020
1081
|
*
|
|
1021
1082
|
* @param left Compare this AggregateField to the `right`.
|
|
1022
1083
|
* @param right Compare this AggregateField to the `left`.
|
|
1023
1084
|
* @internal TODO (sum/avg) remove when public
|
|
1024
|
-
*/ declare function
|
|
1085
|
+
*/ declare function Ul(t: any, e: any): boolean;
|
|
1025
1086
|
/**
|
|
1026
1087
|
* Compares two `AggregateQuerySnapshot` instances for equality.
|
|
1027
1088
|
*
|
|
@@ -1033,7 +1094,7 @@ declare function ve(): boolean;
|
|
|
1033
1094
|
*
|
|
1034
1095
|
* @returns `true` if the objects are "equal", as defined above, or `false`
|
|
1035
1096
|
* otherwise.
|
|
1036
|
-
*/ declare function
|
|
1097
|
+
*/ declare function Kl(t: any, e: any): boolean;
|
|
1037
1098
|
/**
|
|
1038
1099
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
1039
1100
|
* the given filter constraints. A conjunction filter includes a document if it
|
|
@@ -1043,7 +1104,7 @@ declare function ve(): boolean;
|
|
|
1043
1104
|
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
1044
1105
|
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
1045
1106
|
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
1046
|
-
*/ declare function
|
|
1107
|
+
*/ declare function yl(...t: any[]): ml;
|
|
1047
1108
|
/**
|
|
1048
1109
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
1049
1110
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -1054,7 +1115,7 @@ declare function ve(): boolean;
|
|
|
1054
1115
|
* @param elements - The elements to remove from the array.
|
|
1055
1116
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1056
1117
|
* `updateDoc()`
|
|
1057
|
-
*/ declare function
|
|
1118
|
+
*/ declare function Df(...t: any[]): jh;
|
|
1058
1119
|
/**
|
|
1059
1120
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1060
1121
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -1066,13 +1127,13 @@ declare function ve(): boolean;
|
|
|
1066
1127
|
* @param elements - The elements to union into the array.
|
|
1067
1128
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1068
1129
|
* `updateDoc()`.
|
|
1069
|
-
*/ declare function
|
|
1130
|
+
*/ declare function Sf(...t: any[]): zh;
|
|
1070
1131
|
/**
|
|
1071
1132
|
* Create an AggregateField object that can be used to compute the average of
|
|
1072
1133
|
* a specified field over a range of documents in the result set of a query.
|
|
1073
1134
|
* @param field Specifies the field to average across the result set.
|
|
1074
1135
|
* @internal TODO (sum/avg) remove when public
|
|
1075
|
-
*/ declare function
|
|
1136
|
+
*/ declare function Ll(t: any): Vh;
|
|
1076
1137
|
/**
|
|
1077
1138
|
* Clears the persistent storage. This includes pending writes and cached
|
|
1078
1139
|
* documents.
|
|
@@ -1094,8 +1155,8 @@ declare function ve(): boolean;
|
|
|
1094
1155
|
* @param firestore - The {@link Firestore} instance to clear persistence for.
|
|
1095
1156
|
* @returns A `Promise` that is resolved when the persistent storage is
|
|
1096
1157
|
* cleared. Otherwise, the promise is rejected with an error.
|
|
1097
|
-
*/ declare function
|
|
1098
|
-
declare function
|
|
1158
|
+
*/ declare function Ih(t: any): Promise<any>;
|
|
1159
|
+
declare function sh(t: any, e: any, ...n: any[]): nh;
|
|
1099
1160
|
/**
|
|
1100
1161
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
1101
1162
|
* database that are contained in a collection or subcollection with the
|
|
@@ -1106,7 +1167,7 @@ declare function eh(t: any, e: any, ...n: any[]): th;
|
|
|
1106
1167
|
* collection or subcollection with this ID as the last segment of its path
|
|
1107
1168
|
* will be included. Cannot contain a slash.
|
|
1108
1169
|
* @returns The created `Query`.
|
|
1109
|
-
*/ declare function
|
|
1170
|
+
*/ declare function ih(t: any, e: any): eh;
|
|
1110
1171
|
/**
|
|
1111
1172
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
1112
1173
|
*
|
|
@@ -1119,19 +1180,19 @@ declare function eh(t: any, e: any, ...n: any[]): th;
|
|
|
1119
1180
|
* @param port - the emulator port (ex: 9000).
|
|
1120
1181
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
1121
1182
|
* Security Rules.
|
|
1122
|
-
*/ declare function
|
|
1183
|
+
*/ declare function Xa(t: any, e: any, n: any, s?: {}): void;
|
|
1123
1184
|
/**
|
|
1124
1185
|
* Create an AggregateField object that can be used to compute the count of
|
|
1125
1186
|
* documents in the result set of a query.
|
|
1126
1187
|
* @internal TODO (sum/avg) remove when public
|
|
1127
|
-
*/ declare function
|
|
1188
|
+
*/ declare function ql(): Vh;
|
|
1128
1189
|
/**
|
|
1129
1190
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
1130
1191
|
*
|
|
1131
1192
|
* @param reference - A reference to the document to delete.
|
|
1132
1193
|
* @returns A Promise resolved once the document has been successfully
|
|
1133
1194
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
1134
|
-
*/ declare function
|
|
1195
|
+
*/ declare function of(t: any): Promise<any>;
|
|
1135
1196
|
/**
|
|
1136
1197
|
* @license
|
|
1137
1198
|
* Copyright 2020 Google LLC
|
|
@@ -1151,7 +1212,7 @@ declare function eh(t: any, e: any, ...n: any[]): th;
|
|
|
1151
1212
|
/**
|
|
1152
1213
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
1153
1214
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
1154
|
-
*/ declare function
|
|
1215
|
+
*/ declare function Pf(): Kh;
|
|
1155
1216
|
/**
|
|
1156
1217
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
1157
1218
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -1159,12 +1220,12 @@ declare function eh(t: any, e: any, ...n: any[]): th;
|
|
|
1159
1220
|
* operations will be queued until the network is restored.
|
|
1160
1221
|
*
|
|
1161
1222
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
1162
|
-
*/ declare function
|
|
1163
|
-
declare function
|
|
1223
|
+
*/ declare function Ah(t: any): any;
|
|
1224
|
+
declare function rh(t: any, e: any, ...n: any[]): th;
|
|
1164
1225
|
/**
|
|
1165
1226
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
1166
1227
|
* It can be used in queries to sort or filter by the document ID.
|
|
1167
|
-
*/ declare function
|
|
1228
|
+
*/ declare function xh(): Ch;
|
|
1168
1229
|
/**
|
|
1169
1230
|
* Attempts to enable persistent storage, if possible.
|
|
1170
1231
|
*
|
|
@@ -1191,7 +1252,7 @@ declare function sh(t: any, e: any, ...n: any[]): Za;
|
|
|
1191
1252
|
* `FirestoreSettings.cache` to an instance of `IndexedDbLocalCache` to
|
|
1192
1253
|
* turn on IndexedDb cache. Calling this function when `FirestoreSettings.cache`
|
|
1193
1254
|
* is already specified will throw an exception.
|
|
1194
|
-
*/ declare function
|
|
1255
|
+
*/ declare function gh(t: any, e: any): any;
|
|
1195
1256
|
/**
|
|
1196
1257
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
1197
1258
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -1217,22 +1278,22 @@ declare function sh(t: any, e: any, ...n: any[]): Za;
|
|
|
1217
1278
|
* `FirestoreSettings.cache` to an instance of `IndexedDbLocalCache` to
|
|
1218
1279
|
* turn on indexeddb cache. Calling this function when `FirestoreSettings.cache`
|
|
1219
1280
|
* is already specified will throw an exception.
|
|
1220
|
-
*/ declare function
|
|
1281
|
+
*/ declare function yh(t: any): any;
|
|
1221
1282
|
/**
|
|
1222
1283
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
1223
1284
|
* call to {@link disableNetwork}.
|
|
1224
1285
|
*
|
|
1225
1286
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
1226
|
-
*/ declare function
|
|
1227
|
-
declare function
|
|
1228
|
-
declare function
|
|
1287
|
+
*/ declare function Eh(t: any): any;
|
|
1288
|
+
declare function Sl(...t: any[]): Pl;
|
|
1289
|
+
declare function Vl(...t: any[]): Pl;
|
|
1229
1290
|
/**
|
|
1230
1291
|
* @internal
|
|
1231
|
-
*/ declare function
|
|
1292
|
+
*/ declare function _h(t: any): any;
|
|
1232
1293
|
/**
|
|
1233
1294
|
* Locally writes `mutations` on the async queue.
|
|
1234
1295
|
* @internal
|
|
1235
|
-
*/ declare function
|
|
1296
|
+
*/ declare function hf(t: any, e: any): Promise<any>;
|
|
1236
1297
|
/**
|
|
1237
1298
|
* Calculates the specified aggregations over the documents in the result
|
|
1238
1299
|
* set of the given query, without actually downloading the documents.
|
|
@@ -1266,7 +1327,7 @@ declare function bl(...t: any[]): vl;
|
|
|
1266
1327
|
* const averageScore: number | null = aggregateSnapshot.data().averageScore;
|
|
1267
1328
|
* ```
|
|
1268
1329
|
* @internal TODO (sum/avg) remove when public
|
|
1269
|
-
*/ declare function
|
|
1330
|
+
*/ declare function df(t: any, e: any): Promise<Sh>;
|
|
1270
1331
|
/**
|
|
1271
1332
|
* @license
|
|
1272
1333
|
* Copyright 2022 Google LLC
|
|
@@ -1303,7 +1364,7 @@ declare function bl(...t: any[]): vl;
|
|
|
1303
1364
|
* @returns A Promise that will be resolved with the count; the count can be
|
|
1304
1365
|
* retrieved from `snapshot.data().count`, where `snapshot` is the
|
|
1305
1366
|
* `AggregateQuerySnapshot` to which the returned Promise resolves.
|
|
1306
|
-
*/ declare function
|
|
1367
|
+
*/ declare function ff(t: any): Promise<Sh>;
|
|
1307
1368
|
/**
|
|
1308
1369
|
* @license
|
|
1309
1370
|
* Copyright 2020 Google LLC
|
|
@@ -1331,21 +1392,21 @@ declare function bl(...t: any[]): vl;
|
|
|
1331
1392
|
* @param reference - The reference of the document to fetch.
|
|
1332
1393
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
1333
1394
|
* current document contents.
|
|
1334
|
-
*/ declare function
|
|
1395
|
+
*/ declare function Jl(t: any): Promise<Ql>;
|
|
1335
1396
|
/**
|
|
1336
1397
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
1337
1398
|
* Returns an error if the document is not currently cached.
|
|
1338
1399
|
*
|
|
1339
1400
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1340
1401
|
* current document contents.
|
|
1341
|
-
*/ declare function
|
|
1402
|
+
*/ declare function Zl(t: any): Promise<Ql>;
|
|
1342
1403
|
/**
|
|
1343
1404
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
1344
1405
|
* Returns an error if the network is not available.
|
|
1345
1406
|
*
|
|
1346
1407
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1347
1408
|
* current document contents.
|
|
1348
|
-
*/ declare function
|
|
1409
|
+
*/ declare function Xl(t: any): Promise<Ql>;
|
|
1349
1410
|
/**
|
|
1350
1411
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1351
1412
|
*
|
|
@@ -1355,21 +1416,21 @@ declare function bl(...t: any[]): vl;
|
|
|
1355
1416
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
1356
1417
|
*
|
|
1357
1418
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1358
|
-
*/ declare function
|
|
1419
|
+
*/ declare function tf(t: any): Promise<jl>;
|
|
1359
1420
|
/**
|
|
1360
1421
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1361
1422
|
* Returns an empty result set if no documents matching the query are currently
|
|
1362
1423
|
* cached.
|
|
1363
1424
|
*
|
|
1364
1425
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1365
|
-
*/ declare function
|
|
1426
|
+
*/ declare function ef(t: any): Promise<jl>;
|
|
1366
1427
|
/**
|
|
1367
1428
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1368
1429
|
* server. Returns an error if the network is not available.
|
|
1369
1430
|
*
|
|
1370
1431
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1371
|
-
*/ declare function
|
|
1372
|
-
declare function
|
|
1432
|
+
*/ declare function nf(t: any): Promise<jl>;
|
|
1433
|
+
declare function wh(e: any, n: any): import("../src").Firestore;
|
|
1373
1434
|
/**
|
|
1374
1435
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1375
1436
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1388,7 +1449,7 @@ declare function fh(e: any, n: any): import("../src").Firestore;
|
|
|
1388
1449
|
* @param n - The value to increment by.
|
|
1389
1450
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1390
1451
|
* `updateDoc()`
|
|
1391
|
-
*/ declare function
|
|
1452
|
+
*/ declare function Cf(t: any): Wh;
|
|
1392
1453
|
/**
|
|
1393
1454
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1394
1455
|
* Can only be called before any other function, including
|
|
@@ -1400,14 +1461,14 @@ declare function fh(e: any, n: any): import("../src").Firestore;
|
|
|
1400
1461
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1401
1462
|
* @param databaseId - The name of database.
|
|
1402
1463
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1403
|
-
*/ declare function
|
|
1464
|
+
*/ declare function dh(t: any, e: any, n: any): import("../src").Firestore;
|
|
1404
1465
|
/**
|
|
1405
1466
|
* Creates a {@link QueryLimitConstraint} that only returns the first matching
|
|
1406
1467
|
* documents.
|
|
1407
1468
|
*
|
|
1408
1469
|
* @param limit - The maximum number of items to return.
|
|
1409
1470
|
* @returns The created {@link QueryLimitConstraint}.
|
|
1410
|
-
*/ declare function
|
|
1471
|
+
*/ declare function El(t: any): Tl;
|
|
1411
1472
|
/**
|
|
1412
1473
|
* Creates a {@link QueryLimitConstraint} that only returns the last matching
|
|
1413
1474
|
* documents.
|
|
@@ -1417,7 +1478,7 @@ declare function fh(e: any, n: any): import("../src").Firestore;
|
|
|
1417
1478
|
*
|
|
1418
1479
|
* @param limit - The maximum number of items to return.
|
|
1419
1480
|
* @returns The created {@link QueryLimitConstraint}.
|
|
1420
|
-
*/ declare function
|
|
1481
|
+
*/ declare function Al(t: any): Tl;
|
|
1421
1482
|
/**
|
|
1422
1483
|
* Loads a Firestore bundle into the local cache.
|
|
1423
1484
|
*
|
|
@@ -1428,11 +1489,11 @@ declare function fh(e: any, n: any): import("../src").Firestore;
|
|
|
1428
1489
|
* @returns A `LoadBundleTask` object, which notifies callers with progress
|
|
1429
1490
|
* updates, and completion or error events. It can be used as a
|
|
1430
1491
|
* `Promise<LoadBundleTaskProgress>`.
|
|
1431
|
-
*/ declare function
|
|
1492
|
+
*/ declare function vh(t: any, e: any): hh;
|
|
1432
1493
|
/**
|
|
1433
1494
|
* Creates an instance of `MemoryLocalCache`. The instance can be set to
|
|
1434
1495
|
* `FirestoreSettings.cache` to tell the SDK which cache layer to use.
|
|
1435
|
-
*/ declare function
|
|
1496
|
+
*/ declare function mf(): wf;
|
|
1436
1497
|
/**
|
|
1437
1498
|
* Reads a Firestore {@link Query} from local cache, identified by the given
|
|
1438
1499
|
* name.
|
|
@@ -1444,9 +1505,9 @@ declare function fh(e: any, n: any): import("../src").Firestore;
|
|
|
1444
1505
|
* @param firestore - The {@link Firestore} instance to read the query from.
|
|
1445
1506
|
* @param name - The name of the query.
|
|
1446
1507
|
* @returns A `Promise` that is resolved with the Query or `null`.
|
|
1447
|
-
*/ declare function
|
|
1448
|
-
declare function
|
|
1449
|
-
declare function
|
|
1508
|
+
*/ declare function bh(t: any, e: any): any;
|
|
1509
|
+
declare function cf(t: any, ...e: any[]): () => void;
|
|
1510
|
+
declare function af(t: any, e: any): () => void;
|
|
1450
1511
|
/**
|
|
1451
1512
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
1452
1513
|
* the given filter constraints. A disjunction filter includes a document if it
|
|
@@ -1456,7 +1517,7 @@ declare function uf(t: any, e: any): () => void;
|
|
|
1456
1517
|
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
1457
1518
|
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
1458
1519
|
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
1459
|
-
*/ declare function
|
|
1520
|
+
*/ declare function gl(...t: any[]): ml;
|
|
1460
1521
|
/**
|
|
1461
1522
|
* Creates a {@link QueryOrderByConstraint} that sorts the query result by the
|
|
1462
1523
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1468,20 +1529,20 @@ declare function uf(t: any, e: any): () => void;
|
|
|
1468
1529
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1469
1530
|
* not specified, order will be ascending.
|
|
1470
1531
|
* @returns The created {@link QueryOrderByConstraint}.
|
|
1471
|
-
*/ declare function
|
|
1532
|
+
*/ declare function Il(t: any, e?: string): pl;
|
|
1472
1533
|
/**
|
|
1473
1534
|
* Creates an instance of `PersistentLocalCache`. The instance can be set to
|
|
1474
1535
|
* `FirestoreSettings.cache` to tell the SDK which cache layer to use.
|
|
1475
|
-
*/ declare function
|
|
1536
|
+
*/ declare function gf(t: any): _f;
|
|
1476
1537
|
/**
|
|
1477
1538
|
* Creates an instance of `PersistentMultipleTabManager`.
|
|
1478
|
-
*/ declare function
|
|
1539
|
+
*/ declare function Tf(): pf;
|
|
1479
1540
|
/**
|
|
1480
1541
|
* Creates an instance of `PersistentSingleTabManager`.
|
|
1481
1542
|
*
|
|
1482
1543
|
* @param settings Configures the created tab manager.
|
|
1483
|
-
*/ declare function
|
|
1484
|
-
declare function
|
|
1544
|
+
*/ declare function If(t: any): yf;
|
|
1545
|
+
declare function dl(t: any, e: any, ...n: any[]): any;
|
|
1485
1546
|
/**
|
|
1486
1547
|
* Returns true if the provided queries point to the same collection and apply
|
|
1487
1548
|
* the same constraints.
|
|
@@ -1490,7 +1551,7 @@ declare function ll(t: any, e: any, ...n: any[]): any;
|
|
|
1490
1551
|
* @param right - A `Query` to compare.
|
|
1491
1552
|
* @returns true if the references point to the same location in the same
|
|
1492
1553
|
* Firestore database.
|
|
1493
|
-
*/ declare function
|
|
1554
|
+
*/ declare function uh(t: any, e: any): boolean;
|
|
1494
1555
|
/**
|
|
1495
1556
|
* Returns true if the provided references are equal.
|
|
1496
1557
|
*
|
|
@@ -1498,7 +1559,7 @@ declare function ll(t: any, e: any, ...n: any[]): any;
|
|
|
1498
1559
|
* @param right - A reference to compare.
|
|
1499
1560
|
* @returns true if the references point to the same location in the same
|
|
1500
1561
|
* Firestore database.
|
|
1501
|
-
*/ declare function
|
|
1562
|
+
*/ declare function oh(t: any, e: any): boolean;
|
|
1502
1563
|
/**
|
|
1503
1564
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1504
1565
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1517,12 +1578,12 @@ declare function ll(t: any, e: any, ...n: any[]): any;
|
|
|
1517
1578
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1518
1579
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1519
1580
|
* rejected promise with the corresponding failure error is returned.
|
|
1520
|
-
*/ declare function
|
|
1581
|
+
*/ declare function bf(t: any, e: any, n: any): Promise<any>;
|
|
1521
1582
|
/**
|
|
1522
1583
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1523
1584
|
* include a server-generated timestamp in the written data.
|
|
1524
|
-
*/ declare function
|
|
1525
|
-
declare function
|
|
1585
|
+
*/ declare function Vf(): Qh;
|
|
1586
|
+
declare function sf(t: any, e: any, n: any): Promise<any>;
|
|
1526
1587
|
/**
|
|
1527
1588
|
* @license
|
|
1528
1589
|
* Copyright 2021 Google LLC
|
|
@@ -1538,7 +1599,7 @@ declare function ef(t: any, e: any, n: any): Promise<any>;
|
|
|
1538
1599
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1539
1600
|
* See the License for the specific language governing permissions and
|
|
1540
1601
|
* limitations under the License.
|
|
1541
|
-
*/ declare function
|
|
1602
|
+
*/ declare function Nf(t: any, e: any): any;
|
|
1542
1603
|
/**
|
|
1543
1604
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1544
1605
|
*
|
|
@@ -1558,9 +1619,9 @@ declare function ef(t: any, e: any, n: any): Promise<any>;
|
|
|
1558
1619
|
* @param left - A snapshot to compare.
|
|
1559
1620
|
* @param right - A snapshot to compare.
|
|
1560
1621
|
* @returns true if the snapshots are equal.
|
|
1561
|
-
*/ declare function
|
|
1562
|
-
declare function
|
|
1563
|
-
declare function
|
|
1622
|
+
*/ declare function Hl(t: any, e: any): any;
|
|
1623
|
+
declare function bl(...t: any[]): Rl;
|
|
1624
|
+
declare function vl(...t: any[]): Rl;
|
|
1564
1625
|
/**
|
|
1565
1626
|
* @license
|
|
1566
1627
|
* Copyright 2022 Google LLC
|
|
@@ -1582,7 +1643,7 @@ declare function Al(...t: any[]): El;
|
|
|
1582
1643
|
* a specified field over a range of documents in the result set of a query.
|
|
1583
1644
|
* @param field Specifies the field to sum across the result set.
|
|
1584
1645
|
* @internal TODO (sum/avg) remove when public
|
|
1585
|
-
*/ declare function
|
|
1646
|
+
*/ declare function Bl(t: any): Vh;
|
|
1586
1647
|
/**
|
|
1587
1648
|
* Terminates the provided {@link Firestore} instance.
|
|
1588
1649
|
*
|
|
@@ -1604,8 +1665,8 @@ declare function Al(...t: any[]): El;
|
|
|
1604
1665
|
*
|
|
1605
1666
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1606
1667
|
* terminated.
|
|
1607
|
-
*/ declare function
|
|
1608
|
-
declare function
|
|
1668
|
+
*/ declare function Rh(t: any): any;
|
|
1669
|
+
declare function rf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1609
1670
|
/**
|
|
1610
1671
|
* Waits until all currently pending writes for the active user have been
|
|
1611
1672
|
* acknowledged by the backend.
|
|
@@ -1621,7 +1682,7 @@ declare function nf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1621
1682
|
*
|
|
1622
1683
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1623
1684
|
* acknowledged by the backend.
|
|
1624
|
-
*/ declare function
|
|
1685
|
+
*/ declare function Th(t: any): Promise<any>;
|
|
1625
1686
|
/**
|
|
1626
1687
|
* Creates a {@link QueryFieldFilterConstraint} that enforces that documents
|
|
1627
1688
|
* must contain the specified field and that the value should satisfy the
|
|
@@ -1632,7 +1693,7 @@ declare function nf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1632
1693
|
* "<=", "!=").
|
|
1633
1694
|
* @param value - The value for comparison
|
|
1634
1695
|
* @returns The created {@link QueryFieldFilterConstraint}.
|
|
1635
|
-
*/ declare function
|
|
1696
|
+
*/ declare function _l(t: any, e: any, n: any): wl;
|
|
1636
1697
|
/**
|
|
1637
1698
|
* @license
|
|
1638
1699
|
* Copyright 2020 Google LLC
|
|
@@ -1659,7 +1720,7 @@ declare function nf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1659
1720
|
*
|
|
1660
1721
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1661
1722
|
* writes.
|
|
1662
|
-
*/ declare function
|
|
1723
|
+
*/ declare function xf(t: any): Af;
|
|
1663
1724
|
/**
|
|
1664
1725
|
* @license
|
|
1665
1726
|
* Copyright 2020 Google LLC
|
|
@@ -1684,7 +1745,7 @@ declare function nf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1684
1745
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
1685
1746
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
1686
1747
|
* explicitly verify a document's existence.
|
|
1687
|
-
*/ declare class
|
|
1748
|
+
*/ declare class ul {
|
|
1688
1749
|
/** @hideconstructor protected */
|
|
1689
1750
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1690
1751
|
_firestore: any;
|
|
@@ -1695,7 +1756,7 @@ declare function nf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1695
1756
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1696
1757
|
/**
|
|
1697
1758
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1698
|
-
*/ get ref():
|
|
1759
|
+
*/ get ref(): th;
|
|
1699
1760
|
/**
|
|
1700
1761
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1701
1762
|
*
|
|
@@ -1739,7 +1800,7 @@ declare function nf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1739
1800
|
* The Cloud Firestore service interface.
|
|
1740
1801
|
*
|
|
1741
1802
|
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
1742
|
-
*/ declare class
|
|
1803
|
+
*/ declare class Za {
|
|
1743
1804
|
/** @hideconstructor */
|
|
1744
1805
|
constructor(t: any, e: any, n: any, s: any);
|
|
1745
1806
|
_authCredentials: any;
|
|
@@ -1751,7 +1812,7 @@ declare function nf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1751
1812
|
*/
|
|
1752
1813
|
type: string;
|
|
1753
1814
|
_persistenceKey: string;
|
|
1754
|
-
_settings:
|
|
1815
|
+
_settings: Ya;
|
|
1755
1816
|
_settingsFrozen: boolean;
|
|
1756
1817
|
/**
|
|
1757
1818
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1760,14 +1821,14 @@ declare function nf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1760
1821
|
get _initialized(): boolean;
|
|
1761
1822
|
get _terminated(): boolean;
|
|
1762
1823
|
_setSettings(t: any): void;
|
|
1763
|
-
_getSettings():
|
|
1764
|
-
_freezeSettings():
|
|
1824
|
+
_getSettings(): Ya;
|
|
1825
|
+
_freezeSettings(): Ya;
|
|
1765
1826
|
_delete(): Promise<void>;
|
|
1766
1827
|
_terminateTask: Promise<void> | undefined;
|
|
1767
1828
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1768
1829
|
app: any;
|
|
1769
1830
|
databaseId: any;
|
|
1770
|
-
settings:
|
|
1831
|
+
settings: Ya;
|
|
1771
1832
|
};
|
|
1772
1833
|
/**
|
|
1773
1834
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1792,16 +1853,16 @@ declare function nf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1792
1853
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1793
1854
|
* See the License for the specific language governing permissions and
|
|
1794
1855
|
* limitations under the License.
|
|
1795
|
-
*/ declare class
|
|
1856
|
+
*/ declare class ch {
|
|
1796
1857
|
Nc: Promise<void>;
|
|
1797
1858
|
kc: any[];
|
|
1798
|
-
|
|
1799
|
-
|
|
1859
|
+
Oc: boolean;
|
|
1860
|
+
$c: any[];
|
|
1800
1861
|
Mc: any;
|
|
1801
1862
|
Fc: boolean;
|
|
1802
1863
|
Bc: boolean;
|
|
1803
1864
|
Lc: any[];
|
|
1804
|
-
Co:
|
|
1865
|
+
Co: Su;
|
|
1805
1866
|
qc: () => void;
|
|
1806
1867
|
get isShuttingDown(): boolean;
|
|
1807
1868
|
/**
|
|
@@ -1817,7 +1878,7 @@ declare function nf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1817
1878
|
* reschedules with backoff.
|
|
1818
1879
|
*/ Gc(): Promise<void>;
|
|
1819
1880
|
Kc(t: any): Promise<any>;
|
|
1820
|
-
enqueueAfterDelay(t: any, e: any, n: any):
|
|
1881
|
+
enqueueAfterDelay(t: any, e: any, n: any): lc;
|
|
1821
1882
|
Uc(): void;
|
|
1822
1883
|
verifyOperationInProgress(): void;
|
|
1823
1884
|
/**
|
|
@@ -1864,7 +1925,7 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
1864
1925
|
/**
|
|
1865
1926
|
* An `AppliableConstraint` is an abstraction of a constraint that can be applied
|
|
1866
1927
|
* to a Firestore query.
|
|
1867
|
-
*/ declare class
|
|
1928
|
+
*/ declare class ll {
|
|
1868
1929
|
}
|
|
1869
1930
|
declare class dn extends fn {
|
|
1870
1931
|
/**
|
|
@@ -1894,12 +1955,12 @@ declare class dn extends fn {
|
|
|
1894
1955
|
/**
|
|
1895
1956
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1896
1957
|
* classes.
|
|
1897
|
-
*/ declare class
|
|
1958
|
+
*/ declare class Lh {
|
|
1898
1959
|
constructor(t: any, e: any, n: any);
|
|
1899
1960
|
databaseId: any;
|
|
1900
1961
|
ignoreUndefinedProperties: any;
|
|
1901
1962
|
serializer: any;
|
|
1902
|
-
/** Creates a new top-level parse context. */ ua(t: any, e: any, n: any, s?: boolean):
|
|
1963
|
+
/** Creates a new top-level parse context. */ ua(t: any, e: any, n: any, s?: boolean): Bh;
|
|
1903
1964
|
}
|
|
1904
1965
|
declare class W {
|
|
1905
1966
|
constructor(t: any);
|
|
@@ -1947,37 +2008,37 @@ declare class it {
|
|
|
1947
2008
|
forEach(t: any): void;
|
|
1948
2009
|
toArray(): any;
|
|
1949
2010
|
}
|
|
1950
|
-
declare class
|
|
2011
|
+
declare class jh extends Nh {
|
|
1951
2012
|
constructor(t: any, e: any);
|
|
1952
2013
|
ca: any;
|
|
1953
2014
|
_toFieldTransform(t: any): xs;
|
|
1954
2015
|
isEqual(t: any): boolean;
|
|
1955
2016
|
}
|
|
1956
|
-
declare class
|
|
2017
|
+
declare class zh extends Nh {
|
|
1957
2018
|
constructor(t: any, e: any);
|
|
1958
2019
|
ca: any;
|
|
1959
2020
|
_toFieldTransform(t: any): xs;
|
|
1960
2021
|
isEqual(t: any): boolean;
|
|
1961
2022
|
}
|
|
1962
|
-
declare class
|
|
2023
|
+
declare class Kh extends Nh {
|
|
1963
2024
|
_toFieldTransform(t: any): null;
|
|
1964
2025
|
isEqual(t: any): boolean;
|
|
1965
2026
|
}
|
|
1966
|
-
declare class
|
|
2027
|
+
declare class Wh extends Nh {
|
|
1967
2028
|
constructor(t: any, e: any);
|
|
1968
2029
|
aa: any;
|
|
1969
2030
|
_toFieldTransform(t: any): xs;
|
|
1970
2031
|
isEqual(t: any): boolean;
|
|
1971
2032
|
}
|
|
1972
|
-
declare class
|
|
2033
|
+
declare class wf {
|
|
1973
2034
|
kind: string;
|
|
1974
|
-
_onlineComponentProvider:
|
|
1975
|
-
_offlineComponentProvider:
|
|
2035
|
+
_onlineComponentProvider: _a;
|
|
2036
|
+
_offlineComponentProvider: fa;
|
|
1976
2037
|
toJSON(): {
|
|
1977
2038
|
kind: string;
|
|
1978
2039
|
};
|
|
1979
2040
|
}
|
|
1980
|
-
declare class
|
|
2041
|
+
declare class _f {
|
|
1981
2042
|
constructor(t: any);
|
|
1982
2043
|
kind: string;
|
|
1983
2044
|
_onlineComponentProvider: any;
|
|
@@ -1986,7 +2047,7 @@ declare class df {
|
|
|
1986
2047
|
kind: string;
|
|
1987
2048
|
};
|
|
1988
2049
|
}
|
|
1989
|
-
declare class
|
|
2050
|
+
declare class pf {
|
|
1990
2051
|
kind: string;
|
|
1991
2052
|
toJSON(): {
|
|
1992
2053
|
kind: string;
|
|
@@ -1994,10 +2055,10 @@ declare class gf {
|
|
|
1994
2055
|
/**
|
|
1995
2056
|
* @internal
|
|
1996
2057
|
*/ _initialize(t: any): void;
|
|
1997
|
-
_onlineComponentProvider:
|
|
1998
|
-
_offlineComponentProvider:
|
|
2058
|
+
_onlineComponentProvider: _a | undefined;
|
|
2059
|
+
_offlineComponentProvider: wa | undefined;
|
|
1999
2060
|
}
|
|
2000
|
-
declare class
|
|
2061
|
+
declare class yf {
|
|
2001
2062
|
constructor(t: any);
|
|
2002
2063
|
forceOwnership: any;
|
|
2003
2064
|
kind: string;
|
|
@@ -2007,10 +2068,10 @@ declare class mf {
|
|
|
2007
2068
|
/**
|
|
2008
2069
|
* @internal
|
|
2009
2070
|
*/ _initialize(t: any): void;
|
|
2010
|
-
_onlineComponentProvider:
|
|
2011
|
-
_offlineComponentProvider:
|
|
2071
|
+
_onlineComponentProvider: _a | undefined;
|
|
2072
|
+
_offlineComponentProvider: da | undefined;
|
|
2012
2073
|
}
|
|
2013
|
-
declare class
|
|
2074
|
+
declare class Qh extends Nh {
|
|
2014
2075
|
_toFieldTransform(t: any): xs;
|
|
2015
2076
|
isEqual(t: any): boolean;
|
|
2016
2077
|
}
|
|
@@ -2035,7 +2096,7 @@ declare class Kh extends Ch {
|
|
|
2035
2096
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
2036
2097
|
* defaults can be supplied and the value can be checked for equality.
|
|
2037
2098
|
*/
|
|
2038
|
-
declare class
|
|
2099
|
+
declare class Ya {
|
|
2039
2100
|
constructor(t: any);
|
|
2040
2101
|
host: any;
|
|
2041
2102
|
ssl: any;
|
|
@@ -2073,7 +2134,7 @@ declare class Ha {
|
|
|
2073
2134
|
* base delay. This prevents clients from accidentally synchronizing their
|
|
2074
2135
|
* delays causing spikes of load to the backend.
|
|
2075
2136
|
*/
|
|
2076
|
-
declare class
|
|
2137
|
+
declare class Su {
|
|
2077
2138
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
2078
2139
|
Ws: any;
|
|
2079
2140
|
timerId: any;
|
|
@@ -2131,7 +2192,7 @@ declare class Pu {
|
|
|
2131
2192
|
* in newer versions of TypeScript defines `finally`, which is not available in
|
|
2132
2193
|
* IE.
|
|
2133
2194
|
*/
|
|
2134
|
-
declare class
|
|
2195
|
+
declare class lc {
|
|
2135
2196
|
/**
|
|
2136
2197
|
* Creates and returns a DelayedOperation that has been scheduled to be
|
|
2137
2198
|
* executed on the provided asyncQueue after the provided delayMs.
|
|
@@ -2145,7 +2206,7 @@ declare class ac {
|
|
|
2145
2206
|
* from its delayedOperations list.
|
|
2146
2207
|
* PORTING NOTE: This exists to prevent making removeDelayedOperation() and
|
|
2147
2208
|
* the DelayedOperation class public.
|
|
2148
|
-
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any):
|
|
2209
|
+
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): lc;
|
|
2149
2210
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
2150
2211
|
asyncQueue: any;
|
|
2151
2212
|
timerId: any;
|
|
@@ -2195,7 +2256,7 @@ declare class ac {
|
|
|
2195
2256
|
keys: any;
|
|
2196
2257
|
matches(t: any): boolean;
|
|
2197
2258
|
}
|
|
2198
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
2259
|
+
/** A "context" object passed around while parsing user data. */ declare class Bh {
|
|
2199
2260
|
/**
|
|
2200
2261
|
* Initializes a ParseContext with the given source and path.
|
|
2201
2262
|
*
|
|
@@ -2223,10 +2284,10 @@ declare class ac {
|
|
|
2223
2284
|
fieldMask: any;
|
|
2224
2285
|
get path(): any;
|
|
2225
2286
|
get Yc(): any;
|
|
2226
|
-
/** Returns a new context with the specified settings overwritten. */ Zc(t: any):
|
|
2227
|
-
Xc(t: any):
|
|
2228
|
-
na(t: any):
|
|
2229
|
-
sa(t: any):
|
|
2287
|
+
/** Returns a new context with the specified settings overwritten. */ Zc(t: any): Bh;
|
|
2288
|
+
Xc(t: any): Bh;
|
|
2289
|
+
na(t: any): Bh;
|
|
2290
|
+
sa(t: any): Bh;
|
|
2230
2291
|
ia(t: any): L;
|
|
2231
2292
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
2232
2293
|
Jc(): void;
|
|
@@ -2256,34 +2317,34 @@ declare class ac {
|
|
|
2256
2317
|
/**
|
|
2257
2318
|
* Initializes and wires the components that are needed to interface with the
|
|
2258
2319
|
* network.
|
|
2259
|
-
*/ declare class
|
|
2320
|
+
*/ declare class _a {
|
|
2260
2321
|
initialize(t: any, e: any): Promise<void>;
|
|
2261
2322
|
localStore: any;
|
|
2262
2323
|
sharedClientState: any;
|
|
2263
|
-
datastore:
|
|
2264
|
-
remoteStore:
|
|
2265
|
-
eventManager:
|
|
2266
|
-
syncEngine:
|
|
2267
|
-
createEventManager(t: any):
|
|
2268
|
-
createDatastore(t: any):
|
|
2269
|
-
createRemoteStore(t: any):
|
|
2270
|
-
createSyncEngine(t: any, e: any):
|
|
2324
|
+
datastore: Nu | undefined;
|
|
2325
|
+
remoteStore: $u | undefined;
|
|
2326
|
+
eventManager: gc | undefined;
|
|
2327
|
+
syncEngine: Nc | undefined;
|
|
2328
|
+
createEventManager(t: any): gc;
|
|
2329
|
+
createDatastore(t: any): Nu;
|
|
2330
|
+
createRemoteStore(t: any): $u;
|
|
2331
|
+
createSyncEngine(t: any, e: any): Nc;
|
|
2271
2332
|
terminate(): Promise<void>;
|
|
2272
2333
|
}
|
|
2273
|
-
declare class
|
|
2334
|
+
declare class fa {
|
|
2274
2335
|
synchronizeTabs: boolean;
|
|
2275
2336
|
initialize(t: any): Promise<void>;
|
|
2276
|
-
serializer:
|
|
2277
|
-
sharedClientState:
|
|
2278
|
-
persistence:
|
|
2279
|
-
localStore:
|
|
2337
|
+
serializer: Ti | undefined;
|
|
2338
|
+
sharedClientState: gu | undefined;
|
|
2339
|
+
persistence: ko | undefined;
|
|
2340
|
+
localStore: zo | undefined;
|
|
2280
2341
|
gcScheduler: any;
|
|
2281
2342
|
indexBackfillerScheduler: any;
|
|
2282
2343
|
createGarbageCollectionScheduler(t: any, e: any): null;
|
|
2283
2344
|
createIndexBackfillerScheduler(t: any, e: any): null;
|
|
2284
|
-
createLocalStore(t: any):
|
|
2285
|
-
createPersistence(t: any):
|
|
2286
|
-
createSharedClientState(t: any):
|
|
2345
|
+
createLocalStore(t: any): zo;
|
|
2346
|
+
createPersistence(t: any): ko;
|
|
2347
|
+
createSharedClientState(t: any): gu;
|
|
2287
2348
|
terminate(): Promise<void>;
|
|
2288
2349
|
}
|
|
2289
2350
|
/**
|
|
@@ -2293,22 +2354,22 @@ declare class ha {
|
|
|
2293
2354
|
* In the legacy client, this provider is used to provide both multi-tab and
|
|
2294
2355
|
* non-multi-tab persistence since we cannot tell at build time whether
|
|
2295
2356
|
* `synchronizeTabs` will be enabled.
|
|
2296
|
-
*/ declare class
|
|
2357
|
+
*/ declare class wa extends da {
|
|
2297
2358
|
constructor(t: any, e: any);
|
|
2298
|
-
createSharedClientState(t: any):
|
|
2359
|
+
createSharedClientState(t: any): mu;
|
|
2299
2360
|
}
|
|
2300
2361
|
/**
|
|
2301
2362
|
* Provides all components needed for Firestore with IndexedDB persistence.
|
|
2302
|
-
*/ declare class
|
|
2363
|
+
*/ declare class da extends fa {
|
|
2303
2364
|
constructor(t: any, e: any, n: any);
|
|
2304
2365
|
mc: any;
|
|
2305
2366
|
cacheSizeBytes: any;
|
|
2306
2367
|
forceOwnership: any;
|
|
2307
|
-
createGarbageCollectionScheduler(t: any, e: any):
|
|
2368
|
+
createGarbageCollectionScheduler(t: any, e: any): ho;
|
|
2308
2369
|
createIndexBackfillerScheduler(t: any, e: any): Nt;
|
|
2309
|
-
createPersistence(t: any):
|
|
2370
|
+
createPersistence(t: any): Lo;
|
|
2310
2371
|
}
|
|
2311
|
-
declare const
|
|
2372
|
+
declare const Nu_base: {
|
|
2312
2373
|
new (): {};
|
|
2313
2374
|
};
|
|
2314
2375
|
/**
|
|
@@ -2336,7 +2397,7 @@ declare const Cu_base: {
|
|
|
2336
2397
|
* An implementation of Datastore that exposes additional state for internal
|
|
2337
2398
|
* consumption.
|
|
2338
2399
|
*/
|
|
2339
|
-
declare class
|
|
2400
|
+
declare class Nu extends Nu_base {
|
|
2340
2401
|
constructor(t: any, e: any, n: any, s: any);
|
|
2341
2402
|
authCredentials: any;
|
|
2342
2403
|
appCheckCredentials: any;
|
|
@@ -2363,7 +2424,7 @@ declare class Cu extends Cu_base {
|
|
|
2363
2424
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2364
2425
|
* See the License for the specific language governing permissions and
|
|
2365
2426
|
* limitations under the License.
|
|
2366
|
-
*/ declare class
|
|
2427
|
+
*/ declare class $u {
|
|
2367
2428
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
2368
2429
|
localStore: any;
|
|
2369
2430
|
datastore: any;
|
|
@@ -2411,9 +2472,9 @@ declare class Cu extends Cu_base {
|
|
|
2411
2472
|
*/
|
|
2412
2473
|
wu: any[];
|
|
2413
2474
|
_u: any;
|
|
2414
|
-
mu:
|
|
2475
|
+
mu: Ou;
|
|
2415
2476
|
}
|
|
2416
|
-
declare class
|
|
2477
|
+
declare class gc {
|
|
2417
2478
|
queries: ss;
|
|
2418
2479
|
onlineState: string;
|
|
2419
2480
|
Au: Set<any>;
|
|
@@ -2430,7 +2491,7 @@ declare class _c {
|
|
|
2430
2491
|
* the class is not exported so they are only accessible from this module.
|
|
2431
2492
|
* This is useful to implement optional features (like bundles) in free
|
|
2432
2493
|
* functions, such that they are tree-shakeable.
|
|
2433
|
-
*/ declare class
|
|
2494
|
+
*/ declare class Nc {
|
|
2434
2495
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
2435
2496
|
localStore: any;
|
|
2436
2497
|
remoteStore: any;
|
|
@@ -2461,12 +2522,12 @@ declare class _c {
|
|
|
2461
2522
|
* active target ID that was started for the purpose of limbo resolution.
|
|
2462
2523
|
*/
|
|
2463
2524
|
uc: Map<any, any>;
|
|
2464
|
-
cc:
|
|
2525
|
+
cc: Vo;
|
|
2465
2526
|
/** Stores user completion handlers, indexed by User and BatchId. */
|
|
2466
2527
|
ac: {};
|
|
2467
2528
|
/** Stores user callbacks waiting for all pending writes to be acknowledged. */
|
|
2468
2529
|
hc: Map<any, any>;
|
|
2469
|
-
lc:
|
|
2530
|
+
lc: so;
|
|
2470
2531
|
onlineState: string;
|
|
2471
2532
|
get isPrimaryClient(): boolean;
|
|
2472
2533
|
}
|
|
@@ -2484,13 +2545,13 @@ declare class _c {
|
|
|
2484
2545
|
* TODO(klimt): We can remove the databaseId argument if we keep the full
|
|
2485
2546
|
* resource name in documents.
|
|
2486
2547
|
*/
|
|
2487
|
-
declare class
|
|
2548
|
+
declare class Ti {
|
|
2488
2549
|
constructor(t: any, e: any);
|
|
2489
2550
|
databaseId: any;
|
|
2490
2551
|
useProto3Json: any;
|
|
2491
2552
|
}
|
|
2492
|
-
declare class
|
|
2493
|
-
Br:
|
|
2553
|
+
declare class gu {
|
|
2554
|
+
Br: _u;
|
|
2494
2555
|
Lr: {};
|
|
2495
2556
|
onlineStateHandler: any;
|
|
2496
2557
|
sequenceNumberHandler: any;
|
|
@@ -2530,7 +2591,7 @@ declare class _u {
|
|
|
2530
2591
|
* A memory-backed instance of Persistence. Data is stored only in RAM and
|
|
2531
2592
|
* not persisted across sessions.
|
|
2532
2593
|
*/
|
|
2533
|
-
declare class
|
|
2594
|
+
declare class ko {
|
|
2534
2595
|
/**
|
|
2535
2596
|
* The constructor accepts a factory for creating a reference delegate. This
|
|
2536
2597
|
* allows both the delegate and this instance to have strong references to
|
|
@@ -2540,27 +2601,27 @@ declare class xo {
|
|
|
2540
2601
|
constructor(t: any, e: any);
|
|
2541
2602
|
Ps: {};
|
|
2542
2603
|
overlays: {};
|
|
2543
|
-
Vs:
|
|
2604
|
+
Vs: Ot;
|
|
2544
2605
|
Ss: boolean;
|
|
2545
2606
|
referenceDelegate: any;
|
|
2546
|
-
Ds:
|
|
2547
|
-
indexManager:
|
|
2548
|
-
remoteDocumentCache:
|
|
2549
|
-
serializer:
|
|
2550
|
-
xs:
|
|
2607
|
+
Ds: No;
|
|
2608
|
+
indexManager: Br;
|
|
2609
|
+
remoteDocumentCache: Co;
|
|
2610
|
+
serializer: er;
|
|
2611
|
+
xs: bo;
|
|
2551
2612
|
start(): Promise<void>;
|
|
2552
2613
|
shutdown(): Promise<void>;
|
|
2553
2614
|
get started(): boolean;
|
|
2554
2615
|
setDatabaseDeletedListener(): void;
|
|
2555
2616
|
setNetworkEnabled(): void;
|
|
2556
|
-
getIndexManager(t: any):
|
|
2617
|
+
getIndexManager(t: any): Br;
|
|
2557
2618
|
getDocumentOverlayCache(t: any): any;
|
|
2558
2619
|
getMutationQueue(t: any, e: any): any;
|
|
2559
|
-
getTargetCache():
|
|
2560
|
-
getRemoteDocumentCache():
|
|
2561
|
-
getBundleCache():
|
|
2620
|
+
getTargetCache(): No;
|
|
2621
|
+
getRemoteDocumentCache(): Co;
|
|
2622
|
+
getBundleCache(): bo;
|
|
2562
2623
|
runTransaction(t: any, e: any, n: any): any;
|
|
2563
|
-
|
|
2624
|
+
Os(t: any, e: any): At;
|
|
2564
2625
|
}
|
|
2565
2626
|
/**
|
|
2566
2627
|
* @license
|
|
@@ -2586,7 +2647,7 @@ declare class xo {
|
|
|
2586
2647
|
* This is useful to implement optional features (like bundles) in free
|
|
2587
2648
|
* functions, such that they are tree-shakeable.
|
|
2588
2649
|
*/
|
|
2589
|
-
declare class
|
|
2650
|
+
declare class zo {
|
|
2590
2651
|
constructor(t: any, e: any, n: any, s: any);
|
|
2591
2652
|
persistence: any;
|
|
2592
2653
|
Bi: any;
|
|
@@ -2614,14 +2675,14 @@ declare class Go {
|
|
|
2614
2675
|
documentOverlayCache: any;
|
|
2615
2676
|
indexManager: any;
|
|
2616
2677
|
mutationQueue: any;
|
|
2617
|
-
localDocuments:
|
|
2678
|
+
localDocuments: vo | undefined;
|
|
2618
2679
|
collectGarbage(t: any): any;
|
|
2619
2680
|
}
|
|
2620
2681
|
/**
|
|
2621
2682
|
* `WebStorageSharedClientState` uses WebStorage (window.localStorage) as the
|
|
2622
2683
|
* backing store for the SharedClientState. It keeps track of all active
|
|
2623
2684
|
* clients and supports modifications of the local client's data.
|
|
2624
|
-
*/ declare class
|
|
2685
|
+
*/ declare class mu {
|
|
2625
2686
|
/** Returns 'true' if WebStorage is available in the current environment. */ static D(t: any): boolean;
|
|
2626
2687
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
2627
2688
|
window: any;
|
|
@@ -2681,19 +2742,19 @@ declare class Go {
|
|
|
2681
2742
|
/**
|
|
2682
2743
|
* Parses a client state in WebStorage. Returns 'null' if the value could not
|
|
2683
2744
|
* be parsed.
|
|
2684
|
-
*/ Vr(t: any, e: any):
|
|
2745
|
+
*/ Vr(t: any, e: any): du | null;
|
|
2685
2746
|
/**
|
|
2686
2747
|
* Parses a mutation batch state in WebStorage. Returns 'null' if the value
|
|
2687
2748
|
* could not be parsed.
|
|
2688
|
-
*/ Sr(t: any, e: any):
|
|
2749
|
+
*/ Sr(t: any, e: any): lu | null;
|
|
2689
2750
|
/**
|
|
2690
2751
|
* Parses a query target state from WebStorage. Returns 'null' if the value
|
|
2691
2752
|
* could not be parsed.
|
|
2692
|
-
*/ Cr(t: any, e: any):
|
|
2753
|
+
*/ Cr(t: any, e: any): fu | null;
|
|
2693
2754
|
/**
|
|
2694
2755
|
* Parses an online state from WebStorage. Returns 'null' if the value
|
|
2695
2756
|
* could not be parsed.
|
|
2696
|
-
*/ gr(t: any):
|
|
2757
|
+
*/ gr(t: any): wu | null;
|
|
2697
2758
|
kr(t: any): any;
|
|
2698
2759
|
Dr(t: any): Promise<any>;
|
|
2699
2760
|
Nr(t: any): any;
|
|
@@ -2704,16 +2765,16 @@ declare class Go {
|
|
|
2704
2765
|
/**
|
|
2705
2766
|
* This class is responsible for the scheduling of LRU garbage collection. It handles checking
|
|
2706
2767
|
* whether or not GC is enabled, as well as which delay to use before the next run.
|
|
2707
|
-
*/ declare class
|
|
2768
|
+
*/ declare class ho {
|
|
2708
2769
|
constructor(t: any, e: any, n: any);
|
|
2709
2770
|
garbageCollector: any;
|
|
2710
2771
|
asyncQueue: any;
|
|
2711
2772
|
localStore: any;
|
|
2712
|
-
|
|
2773
|
+
On: any;
|
|
2713
2774
|
start(): void;
|
|
2714
2775
|
stop(): void;
|
|
2715
2776
|
get started(): boolean;
|
|
2716
|
-
|
|
2777
|
+
$n(t: any): void;
|
|
2717
2778
|
}
|
|
2718
2779
|
/** This class is responsible for the scheduling of Index Backfiller. */
|
|
2719
2780
|
declare class Nt {
|
|
@@ -2776,7 +2837,7 @@ declare class Nt {
|
|
|
2776
2837
|
* TODO(b/114226234): Remove `synchronizeTabs` section when multi-tab is no
|
|
2777
2838
|
* longer optional.
|
|
2778
2839
|
*/
|
|
2779
|
-
declare class
|
|
2840
|
+
declare class Lo {
|
|
2780
2841
|
static D(): boolean;
|
|
2781
2842
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any, o: any, u: any, c: any, a: any, h?: number);
|
|
2782
2843
|
allowTabSynchronization: any;
|
|
@@ -2788,7 +2849,7 @@ declare class Fo {
|
|
|
2788
2849
|
Hs: any;
|
|
2789
2850
|
Js: any;
|
|
2790
2851
|
Ys: number;
|
|
2791
|
-
Vs:
|
|
2852
|
+
Vs: Ot | null;
|
|
2792
2853
|
Ss: boolean;
|
|
2793
2854
|
isPrimary: boolean;
|
|
2794
2855
|
networkEnabled: boolean;
|
|
@@ -2803,13 +2864,13 @@ declare class Fo {
|
|
|
2803
2864
|
ei: number;
|
|
2804
2865
|
/** A listener to notify on primary state changes. */
|
|
2805
2866
|
ni: (t: any) => Promise<void>;
|
|
2806
|
-
referenceDelegate:
|
|
2867
|
+
referenceDelegate: fo;
|
|
2807
2868
|
si: string;
|
|
2808
|
-
serializer:
|
|
2869
|
+
serializer: er;
|
|
2809
2870
|
ii: vt;
|
|
2810
|
-
Ds:
|
|
2811
|
-
remoteDocumentCache:
|
|
2812
|
-
xs:
|
|
2871
|
+
Ds: io;
|
|
2872
|
+
remoteDocumentCache: mo;
|
|
2873
|
+
xs: wr;
|
|
2813
2874
|
ri: any;
|
|
2814
2875
|
/**
|
|
2815
2876
|
* Attempt to start IndexedDb persistence.
|
|
@@ -2873,12 +2934,12 @@ declare class Fo {
|
|
|
2873
2934
|
* PORTING NOTE: This is only used for Web multi-tab.
|
|
2874
2935
|
*/ bi(): Promise<any>;
|
|
2875
2936
|
get started(): boolean;
|
|
2876
|
-
getMutationQueue(t: any, e: any):
|
|
2877
|
-
getTargetCache():
|
|
2878
|
-
getRemoteDocumentCache():
|
|
2879
|
-
getIndexManager(t: any):
|
|
2880
|
-
getDocumentOverlayCache(t: any):
|
|
2881
|
-
getBundleCache():
|
|
2937
|
+
getMutationQueue(t: any, e: any): Zr;
|
|
2938
|
+
getTargetCache(): io;
|
|
2939
|
+
getRemoteDocumentCache(): mo;
|
|
2940
|
+
getIndexManager(t: any): Ur;
|
|
2941
|
+
getDocumentOverlayCache(t: any): gr;
|
|
2942
|
+
getBundleCache(): wr;
|
|
2882
2943
|
runTransaction(t: any, e: any, n: any): Promise<any>;
|
|
2883
2944
|
/**
|
|
2884
2945
|
* Verifies that the current tab is the primary leaseholder or alternatively
|
|
@@ -2927,7 +2988,7 @@ declare class Fo {
|
|
|
2927
2988
|
* then we set the OnlineState to Offline, and the client will behave as if
|
|
2928
2989
|
* it is offline (get()s will return cached data, etc.).
|
|
2929
2990
|
*/
|
|
2930
|
-
declare class
|
|
2991
|
+
declare class Ou {
|
|
2931
2992
|
constructor(t: any, e: any);
|
|
2932
2993
|
asyncQueue: any;
|
|
2933
2994
|
onlineStateHandler: any;
|
|
@@ -3086,7 +3147,7 @@ declare class ge {
|
|
|
3086
3147
|
* ReferenceSet also keeps a secondary set that contains references sorted by
|
|
3087
3148
|
* IDs. This one is used to efficiently implement removal of all references by
|
|
3088
3149
|
* some target ID.
|
|
3089
|
-
*/ declare class
|
|
3150
|
+
*/ declare class Vo {
|
|
3090
3151
|
es: Ie;
|
|
3091
3152
|
ss: Ie;
|
|
3092
3153
|
/** Returns true if the reference set contains no references. */ isEmpty(): any;
|
|
@@ -3137,9 +3198,9 @@ declare class ge {
|
|
|
3137
3198
|
* generate in-memory target IDs that are transient and can be reused after a
|
|
3138
3199
|
* restart.
|
|
3139
3200
|
*/
|
|
3140
|
-
declare class
|
|
3141
|
-
static vn():
|
|
3142
|
-
static bn():
|
|
3201
|
+
declare class so {
|
|
3202
|
+
static vn(): so;
|
|
3203
|
+
static bn(): so;
|
|
3143
3204
|
constructor(t: any);
|
|
3144
3205
|
Rn: any;
|
|
3145
3206
|
next(): any;
|
|
@@ -3154,7 +3215,7 @@ declare class eo {
|
|
|
3154
3215
|
* updated via its instance methods. The updated state can be serialized via
|
|
3155
3216
|
* `toWebStorageJSON()`.
|
|
3156
3217
|
*/
|
|
3157
|
-
declare class
|
|
3218
|
+
declare class _u {
|
|
3158
3219
|
activeTargetIds: Ie;
|
|
3159
3220
|
tr(t: any): void;
|
|
3160
3221
|
er(t: any): void;
|
|
@@ -3233,14 +3294,14 @@ declare class Ie {
|
|
|
3233
3294
|
* exceed. All subsequent calls to next will return increasing values. If provided with a
|
|
3234
3295
|
* `SequenceNumberSyncer`, it will additionally bump its next value when told of a new value, as
|
|
3235
3296
|
* well as write out sequence numbers that it produces via `next()`.
|
|
3236
|
-
*/ declare class
|
|
3297
|
+
*/ declare class Ot {
|
|
3237
3298
|
constructor(t: any, e: any);
|
|
3238
3299
|
previousValue: any;
|
|
3239
3300
|
ut: ((t: any) => any) | undefined;
|
|
3240
3301
|
ot(t: any): any;
|
|
3241
3302
|
next(): number;
|
|
3242
3303
|
}
|
|
3243
|
-
declare namespace
|
|
3304
|
+
declare namespace Ot {
|
|
3244
3305
|
const ct: number;
|
|
3245
3306
|
}
|
|
3246
3307
|
/**
|
|
@@ -3258,7 +3319,7 @@ declare namespace $t {
|
|
|
3258
3319
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3259
3320
|
* See the License for the specific language governing permissions and
|
|
3260
3321
|
* limitations under the License.
|
|
3261
|
-
*/ declare class
|
|
3322
|
+
*/ declare class No {
|
|
3262
3323
|
constructor(t: any);
|
|
3263
3324
|
persistence: any;
|
|
3264
3325
|
/**
|
|
@@ -3275,9 +3336,9 @@ declare namespace $t {
|
|
|
3275
3336
|
* A ordered bidirectional mapping between documents and the remote target
|
|
3276
3337
|
* IDs.
|
|
3277
3338
|
*/
|
|
3278
|
-
vs:
|
|
3339
|
+
vs: Vo;
|
|
3279
3340
|
targetCount: number;
|
|
3280
|
-
bs:
|
|
3341
|
+
bs: so;
|
|
3281
3342
|
forEachTarget(t: any, e: any): At;
|
|
3282
3343
|
getLastRemoteSnapshotVersion(t: any): At;
|
|
3283
3344
|
getHighestSequenceNumber(t: any): At;
|
|
@@ -3314,8 +3375,8 @@ declare namespace $t {
|
|
|
3314
3375
|
*/
|
|
3315
3376
|
/**
|
|
3316
3377
|
* An in-memory implementation of IndexManager.
|
|
3317
|
-
*/ declare class
|
|
3318
|
-
He:
|
|
3378
|
+
*/ declare class Br {
|
|
3379
|
+
He: Lr;
|
|
3319
3380
|
addToCollectionParentIndex(t: any, e: any): At;
|
|
3320
3381
|
getCollectionParents(t: any, e: any): At;
|
|
3321
3382
|
addFieldIndex(t: any, e: any): At;
|
|
@@ -3349,7 +3410,7 @@ declare namespace $t {
|
|
|
3349
3410
|
* The memory-only RemoteDocumentCache for IndexedDb. To construct, invoke
|
|
3350
3411
|
* `newMemoryRemoteDocumentCache()`.
|
|
3351
3412
|
*/
|
|
3352
|
-
declare class
|
|
3413
|
+
declare class Co {
|
|
3353
3414
|
/**
|
|
3354
3415
|
* @param sizer - Used to assess the size of a document. For eager GC, this is
|
|
3355
3416
|
* expected to just return 0 to avoid unnecessarily doing the work of
|
|
@@ -3380,7 +3441,7 @@ declare class So {
|
|
|
3380
3441
|
getDocumentsMatchingQuery(t: any, e: any, n: any, s: any): At;
|
|
3381
3442
|
getAllFromCollectionGroup(t: any, e: any, n: any, s: any): void;
|
|
3382
3443
|
Es(t: any, e: any): At;
|
|
3383
|
-
newChangeBuffer(t: any):
|
|
3444
|
+
newChangeBuffer(t: any): xo;
|
|
3384
3445
|
getSize(t: any): At;
|
|
3385
3446
|
}
|
|
3386
3447
|
/**
|
|
@@ -3399,7 +3460,7 @@ declare class So {
|
|
|
3399
3460
|
* See the License for the specific language governing permissions and
|
|
3400
3461
|
* limitations under the License.
|
|
3401
3462
|
*/
|
|
3402
|
-
/** Serializer for values stored in the LocalStore. */ declare class
|
|
3463
|
+
/** Serializer for values stored in the LocalStore. */ declare class er {
|
|
3403
3464
|
constructor(t: any);
|
|
3404
3465
|
se: any;
|
|
3405
3466
|
}
|
|
@@ -3418,7 +3479,7 @@ declare class So {
|
|
|
3418
3479
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3419
3480
|
* See the License for the specific language governing permissions and
|
|
3420
3481
|
* limitations under the License.
|
|
3421
|
-
*/ declare class
|
|
3482
|
+
*/ declare class bo {
|
|
3422
3483
|
constructor(t: any);
|
|
3423
3484
|
serializer: any;
|
|
3424
3485
|
Zn: Map<any, any>;
|
|
@@ -3511,7 +3572,7 @@ declare class So {
|
|
|
3511
3572
|
* have a cached version in remoteDocumentCache or local mutations for the
|
|
3512
3573
|
* document). The view is computed by applying the mutations in the
|
|
3513
3574
|
* MutationQueue to the RemoteDocumentCache.
|
|
3514
|
-
*/ declare class
|
|
3575
|
+
*/ declare class vo {
|
|
3515
3576
|
constructor(t: any, e: any, n: any, s: any);
|
|
3516
3577
|
remoteDocumentCache: any;
|
|
3517
3578
|
mutationQueue: any;
|
|
@@ -3594,11 +3655,11 @@ declare class So {
|
|
|
3594
3655
|
/**
|
|
3595
3656
|
* This class represents the immutable ClientState for a client read from
|
|
3596
3657
|
* WebStorage, containing the list of active query targets.
|
|
3597
|
-
*/ declare class
|
|
3658
|
+
*/ declare class du {
|
|
3598
3659
|
/**
|
|
3599
3660
|
* Parses a RemoteClientState from the JSON representation in WebStorage.
|
|
3600
3661
|
* Logs a warning and returns null if the format of the data is not valid.
|
|
3601
|
-
*/ static Zi(t: any, e: any):
|
|
3662
|
+
*/ static Zi(t: any, e: any): du | null;
|
|
3602
3663
|
constructor(t: any, e: any);
|
|
3603
3664
|
clientId: any;
|
|
3604
3665
|
activeTargetIds: any;
|
|
@@ -3607,11 +3668,11 @@ declare class So {
|
|
|
3607
3668
|
* Holds the state of a mutation batch, including its user ID, batch ID and
|
|
3608
3669
|
* whether the batch is 'pending', 'acknowledged' or 'rejected'.
|
|
3609
3670
|
*/
|
|
3610
|
-
declare class
|
|
3671
|
+
declare class lu {
|
|
3611
3672
|
/**
|
|
3612
3673
|
* Parses a MutationMetadata from its JSON representation in WebStorage.
|
|
3613
3674
|
* Logs a warning and returns null if the format of the data is not valid.
|
|
3614
|
-
*/ static Zi(t: any, e: any, n: any):
|
|
3675
|
+
*/ static Zi(t: any, e: any, n: any): lu | null;
|
|
3615
3676
|
constructor(t: any, e: any, n: any, s: any);
|
|
3616
3677
|
user: any;
|
|
3617
3678
|
batchId: any;
|
|
@@ -3623,11 +3684,11 @@ declare class au {
|
|
|
3623
3684
|
* Holds the state of a query target, including its target ID and whether the
|
|
3624
3685
|
* target is 'not-current', 'current' or 'rejected'.
|
|
3625
3686
|
*/
|
|
3626
|
-
declare class
|
|
3687
|
+
declare class fu {
|
|
3627
3688
|
/**
|
|
3628
3689
|
* Parses a QueryTargetMetadata from its JSON representation in WebStorage.
|
|
3629
3690
|
* Logs a warning and returns null if the format of the data is not valid.
|
|
3630
|
-
*/ static Zi(t: any, e: any):
|
|
3691
|
+
*/ static Zi(t: any, e: any): fu | null;
|
|
3631
3692
|
constructor(t: any, e: any, n: any);
|
|
3632
3693
|
targetId: any;
|
|
3633
3694
|
state: any;
|
|
@@ -3638,11 +3699,11 @@ declare class hu {
|
|
|
3638
3699
|
* This class represents the online state for all clients participating in
|
|
3639
3700
|
* multi-tab. The online state is only written to by the primary client, and
|
|
3640
3701
|
* used in secondary clients to update their query views.
|
|
3641
|
-
*/ declare class
|
|
3702
|
+
*/ declare class wu {
|
|
3642
3703
|
/**
|
|
3643
3704
|
* Parses a SharedOnlineState from its JSON representation in WebStorage.
|
|
3644
3705
|
* Logs a warning and returns null if the format of the data is not valid.
|
|
3645
|
-
*/ static Zi(t: any):
|
|
3706
|
+
*/ static Zi(t: any): wu | null;
|
|
3646
3707
|
constructor(t: any, e: any);
|
|
3647
3708
|
clientId: any;
|
|
3648
3709
|
onlineState: any;
|
|
@@ -3664,10 +3725,10 @@ declare class hu {
|
|
|
3664
3725
|
* limitations under the License.
|
|
3665
3726
|
*/
|
|
3666
3727
|
/** Provides LRU functionality for IndexedDB persistence. */
|
|
3667
|
-
declare class
|
|
3728
|
+
declare class fo {
|
|
3668
3729
|
constructor(t: any, e: any);
|
|
3669
3730
|
db: any;
|
|
3670
|
-
garbageCollector:
|
|
3731
|
+
garbageCollector: lo;
|
|
3671
3732
|
Fn(t: any): any;
|
|
3672
3733
|
qn(t: any): any;
|
|
3673
3734
|
forEachTarget(t: any, e: any): any;
|
|
@@ -3706,7 +3767,7 @@ declare class ho {
|
|
|
3706
3767
|
* Returns true if the backing IndexedDB store is the Node IndexedDBShim
|
|
3707
3768
|
* (see https://github.com/axemclion/IndexedDBShim).
|
|
3708
3769
|
*/ static C(): boolean;
|
|
3709
|
-
/** Helper to get a typed SimpleDbStore from a transaction. */ static
|
|
3770
|
+
/** Helper to get a typed SimpleDbStore from a transaction. */ static O(t: any, e: any): any;
|
|
3710
3771
|
/** Parse User Agent to determine iOS version. Returns -1 if not found. */
|
|
3711
3772
|
static S(t: any): number;
|
|
3712
3773
|
/** Parse User Agent to determine Android version. Returns -1 if not found. */
|
|
@@ -3717,7 +3778,7 @@ declare class ho {
|
|
|
3717
3778
|
V: any;
|
|
3718
3779
|
/**
|
|
3719
3780
|
* Opens the specified database, creating or upgrading it if necessary.
|
|
3720
|
-
*/
|
|
3781
|
+
*/ $(t: any): any;
|
|
3721
3782
|
db: any;
|
|
3722
3783
|
B(t: any): void;
|
|
3723
3784
|
F: any;
|
|
@@ -3739,7 +3800,7 @@ declare class ho {
|
|
|
3739
3800
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3740
3801
|
* See the License for the specific language governing permissions and
|
|
3741
3802
|
* limitations under the License.
|
|
3742
|
-
*/ declare class
|
|
3803
|
+
*/ declare class io {
|
|
3743
3804
|
constructor(t: any, e: any);
|
|
3744
3805
|
referenceDelegate: any;
|
|
3745
3806
|
serializer: any;
|
|
@@ -3801,7 +3862,7 @@ declare class ho {
|
|
|
3801
3862
|
/**
|
|
3802
3863
|
* The RemoteDocumentCache for IndexedDb. To construct, invoke
|
|
3803
3864
|
* `newIndexedDbRemoteDocumentCache()`.
|
|
3804
|
-
*/ declare class
|
|
3865
|
+
*/ declare class mo {
|
|
3805
3866
|
constructor(t: any);
|
|
3806
3867
|
serializer: any;
|
|
3807
3868
|
setIndexManager(t: any): void;
|
|
@@ -3842,7 +3903,7 @@ declare class ho {
|
|
|
3842
3903
|
jn(t: any, e: any, n: any): any;
|
|
3843
3904
|
getDocumentsMatchingQuery(t: any, e: any, n: any, s: any): any;
|
|
3844
3905
|
getAllFromCollectionGroup(t: any, e: any, n: any, s: any): any;
|
|
3845
|
-
newChangeBuffer(t: any):
|
|
3906
|
+
newChangeBuffer(t: any): yo;
|
|
3846
3907
|
getSize(t: any): any;
|
|
3847
3908
|
getMetadata(t: any): any;
|
|
3848
3909
|
Gn(t: any, e: any): any;
|
|
@@ -3866,18 +3927,18 @@ declare class ho {
|
|
|
3866
3927
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3867
3928
|
* See the License for the specific language governing permissions and
|
|
3868
3929
|
* limitations under the License.
|
|
3869
|
-
*/ declare class
|
|
3930
|
+
*/ declare class wr {
|
|
3870
3931
|
getBundleMetadata(t: any, e: any): any;
|
|
3871
3932
|
saveBundleMetadata(t: any, e: any): any;
|
|
3872
3933
|
getNamedQuery(t: any, e: any): any;
|
|
3873
3934
|
saveNamedQuery(t: any, e: any): any;
|
|
3874
3935
|
}
|
|
3875
|
-
declare class
|
|
3936
|
+
declare class Zr {
|
|
3876
3937
|
/**
|
|
3877
3938
|
* Creates a new mutation queue for the given user.
|
|
3878
3939
|
* @param user - The user for which to create a mutation queue.
|
|
3879
3940
|
* @param serializer - The serializer to use when persisting to IndexedDb.
|
|
3880
|
-
*/ static ie(t: any, e: any, n: any, s: any):
|
|
3941
|
+
*/ static ie(t: any, e: any, n: any, s: any): Zr;
|
|
3881
3942
|
constructor(t: any, e: any, n: any, s: any);
|
|
3882
3943
|
userId: any;
|
|
3883
3944
|
serializer: any;
|
|
@@ -3933,7 +3994,7 @@ declare class Jr {
|
|
|
3933
3994
|
* PORTING NOTE: Unlike iOS and Android, the Web SDK does not memoize index
|
|
3934
3995
|
* data as it supports multi-tab access.
|
|
3935
3996
|
*/
|
|
3936
|
-
declare class
|
|
3997
|
+
declare class Ur {
|
|
3937
3998
|
constructor(t: any, e: any);
|
|
3938
3999
|
user: any;
|
|
3939
4000
|
databaseId: any;
|
|
@@ -3944,7 +4005,7 @@ declare class Lr {
|
|
|
3944
4005
|
* This is *NOT* a complete cache of what's in persistence and so can never be
|
|
3945
4006
|
* used to satisfy reads.
|
|
3946
4007
|
*/
|
|
3947
|
-
Je:
|
|
4008
|
+
Je: Lr;
|
|
3948
4009
|
/**
|
|
3949
4010
|
* Maps from a target to its equivalent list of sub-targets. Each sub-target
|
|
3950
4011
|
* contains only one term from the target's disjunctive normal form (DNF).
|
|
@@ -3967,8 +4028,8 @@ declare class Lr {
|
|
|
3967
4028
|
* Constructs a key range query on `DbIndexEntryStore` that unions all
|
|
3968
4029
|
* bounds.
|
|
3969
4030
|
*/ nn(t: any, e: any, n: any, s: any, i: any, r: any, o: any): IDBKeyRange[];
|
|
3970
|
-
/** Generates the lower bound for `arrayValue` and `directionalValue`. */ rn(t: any, e: any, n: any, s: any):
|
|
3971
|
-
/** Generates the upper bound for `arrayValue` and `directionalValue`. */ on(t: any, e: any, n: any, s: any):
|
|
4031
|
+
/** Generates the lower bound for `arrayValue` and `directionalValue`. */ rn(t: any, e: any, n: any, s: any): br;
|
|
4032
|
+
/** Generates the upper bound for `arrayValue` and `directionalValue`. */ on(t: any, e: any, n: any, s: any): br;
|
|
3972
4033
|
Xe(t: any, e: any): any;
|
|
3973
4034
|
getIndexType(t: any, e: any): At;
|
|
3974
4035
|
/**
|
|
@@ -3996,7 +4057,7 @@ declare class Lr {
|
|
|
3996
4057
|
* The method appends each value to all existing encoders (e.g. filter("a",
|
|
3997
4058
|
* "==", "a1").filter("b", "in", ["b1", "b2"]) becomes ["a1,b1", "a1,b2"]). A
|
|
3998
4059
|
* list of new encoders is returned.
|
|
3999
|
-
*/ hn(t: any, e: any, n: any):
|
|
4060
|
+
*/ hn(t: any, e: any, n: any): vr[];
|
|
4000
4061
|
an(t: any, e: any): boolean;
|
|
4001
4062
|
getFieldIndexes(t: any, e: any): any;
|
|
4002
4063
|
getNextCollectionGroupToUpdate(t: any): any;
|
|
@@ -4039,8 +4100,8 @@ declare class Lr {
|
|
|
4039
4100
|
*/
|
|
4040
4101
|
/**
|
|
4041
4102
|
* Implementation of DocumentOverlayCache using IndexedDb.
|
|
4042
|
-
*/ declare class
|
|
4043
|
-
static ie(t: any, e: any):
|
|
4103
|
+
*/ declare class gr {
|
|
4104
|
+
static ie(t: any, e: any): gr;
|
|
4044
4105
|
/**
|
|
4045
4106
|
* @param serializer - The document serializer.
|
|
4046
4107
|
* @param userId - The userId for which we are accessing overlays.
|
|
@@ -4111,7 +4172,7 @@ declare class Te {
|
|
|
4111
4172
|
* Internal implementation of the collection-parent index exposed by MemoryIndexManager.
|
|
4112
4173
|
* Also used for in-memory caching by IndexedDbIndexManager and initial index population
|
|
4113
4174
|
* in indexeddb_schema.ts
|
|
4114
|
-
*/ declare class
|
|
4175
|
+
*/ declare class Lr {
|
|
4115
4176
|
index: {};
|
|
4116
4177
|
add(t: any): boolean;
|
|
4117
4178
|
has(t: any): any;
|
|
@@ -4127,14 +4188,14 @@ declare class Te {
|
|
|
4127
4188
|
/**
|
|
4128
4189
|
* Handles the details of adding and updating documents in the MemoryRemoteDocumentCache.
|
|
4129
4190
|
*/
|
|
4130
|
-
declare class
|
|
4191
|
+
declare class xo extends _o {
|
|
4131
4192
|
constructor(t: any);
|
|
4132
4193
|
Jn: any;
|
|
4133
4194
|
applyChanges(t: any): At;
|
|
4134
4195
|
getFromCache(t: any, e: any): any;
|
|
4135
4196
|
getAllFromCache(t: any, e: any): any;
|
|
4136
4197
|
}
|
|
4137
|
-
/** Implements the steps for LRU garbage collection. */ declare class
|
|
4198
|
+
/** Implements the steps for LRU garbage collection. */ declare class lo {
|
|
4138
4199
|
constructor(t: any, e: any);
|
|
4139
4200
|
Mn: any;
|
|
4140
4201
|
params: any;
|
|
@@ -4152,7 +4213,7 @@ declare class Do extends fo {
|
|
|
4152
4213
|
* Unlike the MemoryRemoteDocumentChangeBuffer, the IndexedDb implementation computes the size
|
|
4153
4214
|
* delta for all submitted changes. This avoids having to re-read all documents from IndexedDb
|
|
4154
4215
|
* when we apply the changes.
|
|
4155
|
-
*/ declare class
|
|
4216
|
+
*/ declare class yo extends _o {
|
|
4156
4217
|
/**
|
|
4157
4218
|
* @param documentCache - The IndexedDbRemoteDocumentCache to apply the changes to.
|
|
4158
4219
|
* @param trackRemovals - Whether to create sentinel deletes that can be tracked by
|
|
@@ -4257,7 +4318,7 @@ declare class Do extends fo {
|
|
|
4257
4318
|
* See the License for the specific language governing permissions and
|
|
4258
4319
|
* limitations under the License.
|
|
4259
4320
|
*/
|
|
4260
|
-
/** Represents an index entry saved by the SDK in persisted storage. */ declare class
|
|
4321
|
+
/** Represents an index entry saved by the SDK in persisted storage. */ declare class br {
|
|
4261
4322
|
constructor(t: any, e: any, n: any, s: any);
|
|
4262
4323
|
indexId: any;
|
|
4263
4324
|
documentKey: any;
|
|
@@ -4266,18 +4327,18 @@ declare class Do extends fo {
|
|
|
4266
4327
|
/**
|
|
4267
4328
|
* Returns an IndexEntry entry that sorts immediately after the current
|
|
4268
4329
|
* directional value.
|
|
4269
|
-
*/ qe():
|
|
4330
|
+
*/ qe(): br;
|
|
4270
4331
|
}
|
|
4271
4332
|
/**
|
|
4272
4333
|
* Implements `DirectionalIndexByteEncoder` using `OrderedCodeWriter` for the
|
|
4273
4334
|
* actual encoding.
|
|
4274
|
-
*/ declare class
|
|
4275
|
-
Me:
|
|
4276
|
-
Fe:
|
|
4277
|
-
Be:
|
|
4335
|
+
*/ declare class vr {
|
|
4336
|
+
Me: Er;
|
|
4337
|
+
Fe: Ar;
|
|
4338
|
+
Be: Rr;
|
|
4278
4339
|
seed(t: any): void;
|
|
4279
|
-
Le(t: any):
|
|
4280
|
-
|
|
4340
|
+
Le(t: any): Ar | Rr;
|
|
4341
|
+
$e(): Uint8Array;
|
|
4281
4342
|
reset(): void;
|
|
4282
4343
|
}
|
|
4283
4344
|
/**
|
|
@@ -4309,7 +4370,7 @@ declare class Do extends fo {
|
|
|
4309
4370
|
* PORTING NOTE: This class was implemented then removed from other platforms.
|
|
4310
4371
|
* If byte-counting ends up being needed on the other platforms, consider
|
|
4311
4372
|
* porting this class as part of that implementation work.
|
|
4312
|
-
*/ declare class
|
|
4373
|
+
*/ declare class _o {
|
|
4313
4374
|
changes: ss;
|
|
4314
4375
|
changesApplied: boolean;
|
|
4315
4376
|
/**
|
|
@@ -4356,7 +4417,7 @@ declare class Do extends fo {
|
|
|
4356
4417
|
* behavior defined by the backend.
|
|
4357
4418
|
*
|
|
4358
4419
|
* The code is ported from its Java counterpart.
|
|
4359
|
-
*/ declare class
|
|
4420
|
+
*/ declare class Er {
|
|
4360
4421
|
buffer: Uint8Array;
|
|
4361
4422
|
position: number;
|
|
4362
4423
|
Ie(t: any): void;
|
|
@@ -4378,7 +4439,7 @@ declare class Do extends fo {
|
|
|
4378
4439
|
* constructed.
|
|
4379
4440
|
*/ reset(): void;
|
|
4380
4441
|
seed(t: any): void;
|
|
4381
|
-
/** Makes a copy of the encoded bytes in this buffer. */
|
|
4442
|
+
/** Makes a copy of the encoded bytes in this buffer. */ $e(): Uint8Array;
|
|
4382
4443
|
/**
|
|
4383
4444
|
* Encodes `val` into an encoding so that the order matches the IEEE 754
|
|
4384
4445
|
* floating-point comparison results with the following exceptions:
|
|
@@ -4391,10 +4452,10 @@ declare class Do extends fo {
|
|
|
4391
4452
|
Ee(): void;
|
|
4392
4453
|
ve(): void;
|
|
4393
4454
|
Ne(t: any): void;
|
|
4394
|
-
|
|
4455
|
+
Oe(t: any): void;
|
|
4395
4456
|
De(t: any): void;
|
|
4396
4457
|
}
|
|
4397
|
-
declare class
|
|
4458
|
+
declare class Ar {
|
|
4398
4459
|
constructor(t: any);
|
|
4399
4460
|
Me: any;
|
|
4400
4461
|
we(t: any): void;
|
|
@@ -4402,7 +4463,7 @@ declare class Tr {
|
|
|
4402
4463
|
he(t: any): void;
|
|
4403
4464
|
ce(): void;
|
|
4404
4465
|
}
|
|
4405
|
-
declare class
|
|
4466
|
+
declare class Rr {
|
|
4406
4467
|
constructor(t: any);
|
|
4407
4468
|
Me: any;
|
|
4408
4469
|
we(t: any): void;
|
|
@@ -4410,4 +4471,4 @@ declare class Er {
|
|
|
4410
4471
|
he(t: any): void;
|
|
4411
4472
|
ce(): void;
|
|
4412
4473
|
}
|
|
4413
|
-
export {
|
|
4474
|
+
export { $l as AbstractUserDataWriter, Vh as AggregateField, Sh as AggregateQuerySnapshot, Dh as Bytes, lh as CACHE_SIZE_UNLIMITED, nh as CollectionReference, th as DocumentReference, Ql as DocumentSnapshot, Ch as FieldPath, Nh as FieldValue, fh as Firestore, L as FirestoreError, kh as GeoPoint, hh as LoadBundleTask, eh as Query, ml as QueryCompositeFilterConstraint, fl as QueryConstraint, zl as QueryDocumentSnapshot, Pl as QueryEndAtConstraint, wl as QueryFieldFilterConstraint, Tl as QueryLimitConstraint, pl as QueryOrderByConstraint, jl as QuerySnapshot, Rl as QueryStartAtConstraint, Gl as SnapshotMetadata, nt as Timestamp, vf as Transaction, Af as WriteBatch, Oe as _DatabaseId, ct as _DocumentKey, J as _EmptyAppCheckTokenProvider, K as _EmptyAuthCredentialsProvider, ut as _FieldPath, ui as _TestingHooks, Ha as _cast, M as _debugAssert, ve as _isBase64Available, N as _logWarn, Qa as _validateIsNotUsedTogether, uf as addDoc, Ul as aggregateFieldEqual, Kl as aggregateQuerySnapshotEqual, yl as and, Df as arrayRemove, Sf as arrayUnion, Ll as average, Ih as clearIndexedDbPersistence, sh as collection, ih as collectionGroup, Xa as connectFirestoreEmulator, ql as count, of as deleteDoc, Pf as deleteField, Ah as disableNetwork, rh as doc, xh as documentId, gh as enableIndexedDbPersistence, yh as enableMultiTabIndexedDbPersistence, Eh as enableNetwork, Sl as endAt, Vl as endBefore, _h as ensureFirestoreConfigured, hf as executeWrite, df as getAggregateFromServer, ff as getCountFromServer, Jl as getDoc, Zl as getDocFromCache, Xl as getDocFromServer, tf as getDocs, ef as getDocsFromCache, nf as getDocsFromServer, wh as getFirestore, Cf as increment, dh as initializeFirestore, El as limit, Al as limitToLast, vh as loadBundle, mf as memoryLocalCache, bh as namedQuery, cf as onSnapshot, af as onSnapshotsInSync, gl as or, Il as orderBy, gf as persistentLocalCache, Tf as persistentMultipleTabManager, If as persistentSingleTabManager, dl as query, uh as queryEqual, oh as refEqual, bf as runTransaction, Vf as serverTimestamp, sf as setDoc, Nf as setIndexConfiguration, D as setLogLevel, Hl as snapshotEqual, bl as startAfter, vl as startAt, Bl as sum, Rh as terminate, rf as updateDoc, Th as waitForPendingWrites, _l as where, xf as writeBatch };
|