@firebase/firestore 3.11.0 → 3.12.0-20230511201449
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/firestore/src/api/long_polling_options.d.ts +55 -0
- package/dist/firestore/src/api/settings.d.ts +16 -2
- package/dist/firestore/src/api.d.ts +1 -0
- package/dist/firestore/src/core/database_info.d.ts +4 -1
- package/dist/firestore/src/lite-api/settings.d.ts +3 -0
- package/dist/firestore/src/platform/browser/webchannel_connection.d.ts +1 -0
- package/dist/firestore/test/unit/api/long_polling_options.test.d.ts +17 -0
- package/dist/index.cjs.js +1222 -1181
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +61 -2
- package/dist/index.esm2017.js +1137 -1096
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1041 -1021
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +71 -6
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +71 -6
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +868 -827
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +67 -3
- package/dist/lite/firestore/src/api/long_polling_options.d.ts +55 -0
- package/dist/lite/firestore/src/api/settings.d.ts +16 -2
- package/dist/lite/firestore/src/api.d.ts +1 -0
- package/dist/lite/firestore/src/core/database_info.d.ts +4 -1
- package/dist/lite/firestore/src/lite-api/settings.d.ts +3 -0
- package/dist/lite/firestore/src/platform/browser/webchannel_connection.d.ts +1 -0
- package/dist/lite/firestore/test/unit/api/long_polling_options.test.d.ts +17 -0
- package/dist/lite/index.browser.esm2017.js +756 -716
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +764 -745
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.cjs.js +756 -716
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.node.cjs.js +71 -6
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +71 -6
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +763 -723
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +52 -1
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +127 -144
- package/dist/lite/packages/firestore/src/api/long_polling_options.d.ts +55 -0
- package/dist/lite/packages/firestore/src/api/settings.d.ts +16 -2
- package/dist/lite/packages/firestore/src/api.d.ts +1 -0
- package/dist/lite/packages/firestore/src/core/database_info.d.ts +4 -1
- package/dist/lite/packages/firestore/src/lite-api/settings.d.ts +3 -0
- package/dist/lite/packages/firestore/src/platform/browser/webchannel_connection.d.ts +1 -0
- package/dist/lite/packages/firestore/test/unit/api/long_polling_options.test.d.ts +17 -0
- package/dist/lite/private.d.ts +52 -1
- package/dist/packages/firestore/dist/index.esm2017.d.ts +275 -292
- package/dist/packages/firestore/src/api/long_polling_options.d.ts +55 -0
- package/dist/packages/firestore/src/api/settings.d.ts +16 -2
- package/dist/packages/firestore/src/api.d.ts +1 -0
- package/dist/packages/firestore/src/core/database_info.d.ts +4 -1
- package/dist/packages/firestore/src/lite-api/settings.d.ts +3 -0
- package/dist/packages/firestore/src/platform/browser/webchannel_connection.d.ts +1 -0
- package/dist/packages/firestore/test/unit/api/long_polling_options.test.d.ts +17 -0
- package/dist/private.d.ts +67 -3
- package/package.json +5 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare class
|
|
1
|
+
declare class Wl {
|
|
2
2
|
convertValue(t: any, e?: string): any;
|
|
3
3
|
convertObject(t: any, e: any): {};
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/ convertObjectMap(t: any, e?: string): {};
|
|
7
|
-
convertGeoPoint(t: any):
|
|
7
|
+
convertGeoPoint(t: any): jh;
|
|
8
8
|
convertArray(t: any, e: any): any;
|
|
9
9
|
convertServerTimestamp(t: any, e: any): any;
|
|
10
10
|
convertTimestamp(t: any): it;
|
|
@@ -45,7 +45,7 @@ declare class zl {
|
|
|
45
45
|
/**
|
|
46
46
|
* Represents an aggregation that can be performed by Firestore.
|
|
47
47
|
*/
|
|
48
|
-
declare class
|
|
48
|
+
declare class Lh {
|
|
49
49
|
/**
|
|
50
50
|
* Create a new AggregateField<T>
|
|
51
51
|
* @param _aggregateType Specifies the type of aggregation operation to perform.
|
|
@@ -60,7 +60,7 @@ declare class Bh {
|
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* The results of executing an aggregation query.
|
|
63
|
-
*/ declare class
|
|
63
|
+
*/ declare class qh {
|
|
64
64
|
/** @hideconstructor */
|
|
65
65
|
constructor(t: any, e: any, n: any);
|
|
66
66
|
_userDataWriter: any;
|
|
@@ -98,18 +98,18 @@ declare class Bh {
|
|
|
98
98
|
*/
|
|
99
99
|
/**
|
|
100
100
|
* An immutable object representing an array of bytes.
|
|
101
|
-
*/ declare class
|
|
101
|
+
*/ declare class Uh {
|
|
102
102
|
/**
|
|
103
103
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
104
104
|
* bytes.
|
|
105
105
|
*
|
|
106
106
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
107
|
-
*/ static fromBase64String(t: any):
|
|
107
|
+
*/ static fromBase64String(t: any): Uh;
|
|
108
108
|
/**
|
|
109
109
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
110
110
|
*
|
|
111
111
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
112
|
-
*/ static fromUint8Array(t: any):
|
|
112
|
+
*/ static fromUint8Array(t: any): Uh;
|
|
113
113
|
/** @hideconstructor */
|
|
114
114
|
constructor(t: any);
|
|
115
115
|
_byteString: any;
|
|
@@ -155,11 +155,11 @@ declare class Bh {
|
|
|
155
155
|
* Constant used to indicate the LRU garbage collection should be disabled.
|
|
156
156
|
* Set this value as the `cacheSizeBytes` on the settings passed to the
|
|
157
157
|
* {@link Firestore} instance.
|
|
158
|
-
*/ declare const
|
|
158
|
+
*/ declare const Ah: -1;
|
|
159
159
|
/**
|
|
160
160
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
161
161
|
* document references, and querying for documents (using {@link (query:1)}).
|
|
162
|
-
*/ declare class
|
|
162
|
+
*/ declare class wh extends dh {
|
|
163
163
|
_path: any;
|
|
164
164
|
/** The collection's identifier. */ get id(): any;
|
|
165
165
|
/**
|
|
@@ -169,8 +169,8 @@ declare class Bh {
|
|
|
169
169
|
/**
|
|
170
170
|
* A reference to the containing `DocumentReference` if this is a
|
|
171
171
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
172
|
-
*/ get parent():
|
|
173
|
-
withConverter(t: any):
|
|
172
|
+
*/ get parent(): fh | null;
|
|
173
|
+
withConverter(t: any): wh;
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
176
|
* @license
|
|
@@ -192,7 +192,7 @@ declare class Bh {
|
|
|
192
192
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
193
193
|
* and can be used to write, read, or listen to the location. The document at
|
|
194
194
|
* the referenced location may or may not exist.
|
|
195
|
-
*/ declare class
|
|
195
|
+
*/ declare class fh {
|
|
196
196
|
/** @hideconstructor */
|
|
197
197
|
constructor(t: any, e: any, n: any);
|
|
198
198
|
converter: any;
|
|
@@ -210,8 +210,8 @@ declare class Bh {
|
|
|
210
210
|
*/ get path(): any;
|
|
211
211
|
/**
|
|
212
212
|
* The collection this `DocumentReference` belongs to.
|
|
213
|
-
*/ get parent():
|
|
214
|
-
withConverter(t: any):
|
|
213
|
+
*/ get parent(): wh;
|
|
214
|
+
withConverter(t: any): fh;
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
217
217
|
* A `DocumentSnapshot` contains data read from a document in your Firestore
|
|
@@ -221,7 +221,7 @@ declare class Bh {
|
|
|
221
221
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
222
222
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
223
223
|
* explicitly verify a document's existence.
|
|
224
|
-
*/ declare class
|
|
224
|
+
*/ declare class sf extends pl {
|
|
225
225
|
/** @hideconstructor protected */
|
|
226
226
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
227
227
|
_firestoreImpl: any;
|
|
@@ -281,7 +281,7 @@ declare class Bh {
|
|
|
281
281
|
*
|
|
282
282
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
283
283
|
* name is provided, the path will point to a nested field in a document.
|
|
284
|
-
*/ declare class
|
|
284
|
+
*/ declare class Kh {
|
|
285
285
|
/**
|
|
286
286
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
287
287
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -316,7 +316,7 @@ declare class Bh {
|
|
|
316
316
|
/**
|
|
317
317
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
318
318
|
* or `update()`.
|
|
319
|
-
*/ declare class
|
|
319
|
+
*/ declare class Qh {
|
|
320
320
|
/**
|
|
321
321
|
* @param _methodName - The public API endpoint that returns this class.
|
|
322
322
|
* @hideconstructor
|
|
@@ -328,8 +328,8 @@ declare class Bh {
|
|
|
328
328
|
* The Cloud Firestore service interface.
|
|
329
329
|
*
|
|
330
330
|
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
331
|
-
*/ declare class
|
|
332
|
-
_queue:
|
|
331
|
+
*/ declare class vh extends hh {
|
|
332
|
+
_queue: Ih;
|
|
333
333
|
_persistenceKey: any;
|
|
334
334
|
_terminate(): any;
|
|
335
335
|
}
|
|
@@ -361,7 +361,7 @@ declare class Bh {
|
|
|
361
361
|
*
|
|
362
362
|
* Latitude values are in the range of [-90, 90].
|
|
363
363
|
* Longitude values are in the range of [-180, 180].
|
|
364
|
-
*/ declare class
|
|
364
|
+
*/ declare class jh {
|
|
365
365
|
/**
|
|
366
366
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
367
367
|
* longitude values.
|
|
@@ -392,7 +392,7 @@ declare class Bh {
|
|
|
392
392
|
* with an underscore.
|
|
393
393
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
394
394
|
}
|
|
395
|
-
declare class
|
|
395
|
+
declare class Eh {
|
|
396
396
|
_progressObserver: {};
|
|
397
397
|
_taskCompletionResolver: K;
|
|
398
398
|
_lastProgress: {
|
|
@@ -444,7 +444,7 @@ declare class Th {
|
|
|
444
444
|
/**
|
|
445
445
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
446
446
|
* construct refined `Query` objects by adding filters and ordering.
|
|
447
|
-
*/ declare class
|
|
447
|
+
*/ declare class dh {
|
|
448
448
|
/** @hideconstructor protected */
|
|
449
449
|
constructor(t: any, e: any, n: any);
|
|
450
450
|
converter: any;
|
|
@@ -452,7 +452,7 @@ declare class Th {
|
|
|
452
452
|
/** The type of this Firestore reference. */
|
|
453
453
|
type: string;
|
|
454
454
|
firestore: any;
|
|
455
|
-
withConverter(t: any):
|
|
455
|
+
withConverter(t: any): dh;
|
|
456
456
|
}
|
|
457
457
|
/**
|
|
458
458
|
* A `QueryCompositeFilterConstraint` is used to narrow the set of documents
|
|
@@ -461,8 +461,8 @@ declare class Th {
|
|
|
461
461
|
* `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
|
|
462
462
|
* {@link and} and can then be passed to {@link (query:1)} to create a new query
|
|
463
463
|
* instance that also contains the `QueryCompositeFilterConstraint`.
|
|
464
|
-
*/ declare class
|
|
465
|
-
static _create(t: any, e: any):
|
|
464
|
+
*/ declare class Vl extends Al {
|
|
465
|
+
static _create(t: any, e: any): Vl;
|
|
466
466
|
/**
|
|
467
467
|
* @internal
|
|
468
468
|
*/
|
|
@@ -481,7 +481,7 @@ declare class Th {
|
|
|
481
481
|
* (endBefore:1)}, {@link (endAt:1)}, {@link limit}, {@link limitToLast} and
|
|
482
482
|
* can then be passed to {@link (query:1)} to create a new query instance that
|
|
483
483
|
* also contains this `QueryConstraint`.
|
|
484
|
-
*/ declare class
|
|
484
|
+
*/ declare class vl extends Al {
|
|
485
485
|
}
|
|
486
486
|
/**
|
|
487
487
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -493,7 +493,7 @@ declare class Th {
|
|
|
493
493
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
494
494
|
* `exists` property will always be true and `data()` will never return
|
|
495
495
|
* 'undefined'.
|
|
496
|
-
*/ declare class
|
|
496
|
+
*/ declare class rf extends sf {
|
|
497
497
|
}
|
|
498
498
|
/**
|
|
499
499
|
* A `QueryEndAtConstraint` is used to exclude documents from the end of a
|
|
@@ -501,8 +501,8 @@ declare class Th {
|
|
|
501
501
|
* `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
|
|
502
502
|
* {@link (endBefore:1)} and can then be passed to {@link (query:1)} to create a new
|
|
503
503
|
* query instance that also contains this `QueryEndAtConstraint`.
|
|
504
|
-
*/ declare class
|
|
505
|
-
static _create(t: any, e: any, n: any):
|
|
504
|
+
*/ declare class Bl extends vl {
|
|
505
|
+
static _create(t: any, e: any, n: any): Bl;
|
|
506
506
|
/**
|
|
507
507
|
* @internal
|
|
508
508
|
*/
|
|
@@ -510,7 +510,7 @@ declare class Th {
|
|
|
510
510
|
type: any;
|
|
511
511
|
_docOrFields: any;
|
|
512
512
|
_inclusive: any;
|
|
513
|
-
_apply(t: any):
|
|
513
|
+
_apply(t: any): dh;
|
|
514
514
|
}
|
|
515
515
|
/**
|
|
516
516
|
* A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
|
|
@@ -518,8 +518,8 @@ declare class Th {
|
|
|
518
518
|
* `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
|
|
519
519
|
* be passed to {@link (query:1)} to create a new query instance that also contains
|
|
520
520
|
* this `QueryFieldFilterConstraint`.
|
|
521
|
-
*/ declare class
|
|
522
|
-
static _create(t: any, e: any, n: any):
|
|
521
|
+
*/ declare class Pl extends vl {
|
|
522
|
+
static _create(t: any, e: any, n: any): Pl;
|
|
523
523
|
/**
|
|
524
524
|
* @internal
|
|
525
525
|
*/
|
|
@@ -529,7 +529,7 @@ declare class Th {
|
|
|
529
529
|
_value: any;
|
|
530
530
|
/** The type of this query constraint */
|
|
531
531
|
type: string;
|
|
532
|
-
_apply(t: any):
|
|
532
|
+
_apply(t: any): dh;
|
|
533
533
|
_parse(t: any): mn | bn | Nn;
|
|
534
534
|
}
|
|
535
535
|
/**
|
|
@@ -538,8 +538,8 @@ declare class Th {
|
|
|
538
538
|
* `QueryLimitConstraint`s are created by invoking {@link limit} or
|
|
539
539
|
* {@link limitToLast} and can then be passed to {@link (query:1)} to create a new
|
|
540
540
|
* query instance that also contains this `QueryLimitConstraint`.
|
|
541
|
-
*/ declare class
|
|
542
|
-
static _create(t: any, e: any, n: any):
|
|
541
|
+
*/ declare class Nl extends vl {
|
|
542
|
+
static _create(t: any, e: any, n: any): Nl;
|
|
543
543
|
/**
|
|
544
544
|
* @internal
|
|
545
545
|
*/
|
|
@@ -547,7 +547,7 @@ declare class Th {
|
|
|
547
547
|
type: any;
|
|
548
548
|
_limit: any;
|
|
549
549
|
_limitType: any;
|
|
550
|
-
_apply(t: any):
|
|
550
|
+
_apply(t: any): dh;
|
|
551
551
|
}
|
|
552
552
|
/**
|
|
553
553
|
* A `QueryOrderByConstraint` is used to sort the set of documents returned by a
|
|
@@ -557,8 +557,8 @@ declare class Th {
|
|
|
557
557
|
*
|
|
558
558
|
* Note: Documents that do not contain the orderBy field will not be present in
|
|
559
559
|
* the query result.
|
|
560
|
-
*/ declare class
|
|
561
|
-
static _create(t: any, e: any):
|
|
560
|
+
*/ declare class Cl extends vl {
|
|
561
|
+
static _create(t: any, e: any): Cl;
|
|
562
562
|
/**
|
|
563
563
|
* @internal
|
|
564
564
|
*/
|
|
@@ -567,7 +567,7 @@ declare class Th {
|
|
|
567
567
|
_direction: any;
|
|
568
568
|
/** The type of this query constraint */
|
|
569
569
|
type: string;
|
|
570
|
-
_apply(t: any):
|
|
570
|
+
_apply(t: any): dh;
|
|
571
571
|
}
|
|
572
572
|
/**
|
|
573
573
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -575,13 +575,13 @@ declare class Th {
|
|
|
575
575
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
576
576
|
* number of documents can be determined via the `empty` and `size`
|
|
577
577
|
* properties.
|
|
578
|
-
*/ declare class
|
|
578
|
+
*/ declare class of {
|
|
579
579
|
/** @hideconstructor */
|
|
580
580
|
constructor(t: any, e: any, n: any, s: any);
|
|
581
581
|
_firestore: any;
|
|
582
582
|
_userDataWriter: any;
|
|
583
583
|
_snapshot: any;
|
|
584
|
-
metadata:
|
|
584
|
+
metadata: nf;
|
|
585
585
|
query: any;
|
|
586
586
|
/** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
|
|
587
587
|
/** The number of documents in the `QuerySnapshot`. */ get size(): any;
|
|
@@ -611,8 +611,8 @@ declare class Th {
|
|
|
611
611
|
* `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
|
|
612
612
|
* {@link (startAfter:1)} and can then be passed to {@link (query:1)} to create a
|
|
613
613
|
* new query instance that also contains this `QueryStartAtConstraint`.
|
|
614
|
-
*/ declare class
|
|
615
|
-
static _create(t: any, e: any, n: any):
|
|
614
|
+
*/ declare class $l extends vl {
|
|
615
|
+
static _create(t: any, e: any, n: any): $l;
|
|
616
616
|
/**
|
|
617
617
|
* @internal
|
|
618
618
|
*/
|
|
@@ -620,7 +620,7 @@ declare class Th {
|
|
|
620
620
|
type: any;
|
|
621
621
|
_docOrFields: any;
|
|
622
622
|
_inclusive: any;
|
|
623
|
-
_apply(t: any):
|
|
623
|
+
_apply(t: any): dh;
|
|
624
624
|
}
|
|
625
625
|
/**
|
|
626
626
|
* @license
|
|
@@ -640,7 +640,7 @@ declare class Th {
|
|
|
640
640
|
*/
|
|
641
641
|
/**
|
|
642
642
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
643
|
-
*/ declare class
|
|
643
|
+
*/ declare class nf {
|
|
644
644
|
/** @hideconstructor */
|
|
645
645
|
constructor(t: any, e: any);
|
|
646
646
|
hasPendingWrites: any;
|
|
@@ -749,11 +749,11 @@ declare class it {
|
|
|
749
749
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
750
750
|
*/ valueOf(): string;
|
|
751
751
|
}
|
|
752
|
-
declare const
|
|
752
|
+
declare const qf_base: {
|
|
753
753
|
new (t: any, e: any): {
|
|
754
754
|
_firestore: any;
|
|
755
755
|
_transaction: any;
|
|
756
|
-
_dataReader:
|
|
756
|
+
_dataReader: Xh;
|
|
757
757
|
/**
|
|
758
758
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
759
759
|
*
|
|
@@ -816,7 +816,7 @@ declare const Lf_base: {
|
|
|
816
816
|
* the methods to read and write data within the transaction context. See
|
|
817
817
|
* {@link runTransaction}.
|
|
818
818
|
*/
|
|
819
|
-
declare class
|
|
819
|
+
declare class qf extends qf_base {
|
|
820
820
|
}
|
|
821
821
|
/**
|
|
822
822
|
* @license
|
|
@@ -842,22 +842,22 @@ declare class Lf extends Lf_base {
|
|
|
842
842
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
843
843
|
* called.
|
|
844
844
|
*/
|
|
845
|
-
declare class
|
|
845
|
+
declare class Bf {
|
|
846
846
|
/** @hideconstructor */
|
|
847
847
|
constructor(t: any, e: any);
|
|
848
848
|
_firestore: any;
|
|
849
849
|
_commitHandler: any;
|
|
850
850
|
_mutations: any[];
|
|
851
851
|
_committed: boolean;
|
|
852
|
-
_dataReader:
|
|
853
|
-
set(t: any, e: any, n: any):
|
|
854
|
-
update(t: any, e: any, n: any, ...s: any[]):
|
|
852
|
+
_dataReader: Xh;
|
|
853
|
+
set(t: any, e: any, n: any): Bf;
|
|
854
|
+
update(t: any, e: any, n: any, ...s: any[]): Bf;
|
|
855
855
|
/**
|
|
856
856
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
857
857
|
*
|
|
858
858
|
* @param documentRef - A reference to the document to be deleted.
|
|
859
859
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
860
|
-
*/ delete(t: any):
|
|
860
|
+
*/ delete(t: any): Bf;
|
|
861
861
|
/**
|
|
862
862
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
863
863
|
*
|
|
@@ -877,8 +877,8 @@ declare class Ff {
|
|
|
877
877
|
* Represents the database ID a Firestore client is associated with.
|
|
878
878
|
* @internal
|
|
879
879
|
*/
|
|
880
|
-
declare class
|
|
881
|
-
static empty():
|
|
880
|
+
declare class Oe {
|
|
881
|
+
static empty(): Oe;
|
|
882
882
|
constructor(t: any, e: any);
|
|
883
883
|
projectId: any;
|
|
884
884
|
database: any;
|
|
@@ -1032,7 +1032,7 @@ declare class ci {
|
|
|
1032
1032
|
* @param info Information about the existence filter mismatch.
|
|
1033
1033
|
*/ notifyOnExistenceFilterMismatch(t: any): void;
|
|
1034
1034
|
}
|
|
1035
|
-
declare function
|
|
1035
|
+
declare function uh(t: any, e: any): any;
|
|
1036
1036
|
/**
|
|
1037
1037
|
* Fails if the given assertion condition is false, throwing an Error with the
|
|
1038
1038
|
* given message if it did.
|
|
@@ -1068,7 +1068,7 @@ declare function be(): boolean;
|
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Validates that two boolean options are not set at the same time.
|
|
1070
1070
|
* @internal
|
|
1071
|
-
*/ declare function
|
|
1071
|
+
*/ declare function sh(t: any, e: any, n: any, s: any): void;
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
1074
1074
|
* assigning it a document ID automatically.
|
|
@@ -1078,14 +1078,14 @@ declare function be(): boolean;
|
|
|
1078
1078
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
1079
1079
|
* newly created document after it has been written to the backend (Note that it
|
|
1080
1080
|
* won't resolve while you're offline).
|
|
1081
|
-
*/ declare function
|
|
1081
|
+
*/ declare function pf(t: any, e: any): Promise<fh>;
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Compares two 'AggregateField` instances for equality.
|
|
1084
1084
|
*
|
|
1085
1085
|
* @param left Compare this AggregateField to the `right`.
|
|
1086
1086
|
* @param right Compare this AggregateField to the `left`.
|
|
1087
1087
|
* @internal TODO (sum/avg) remove when public
|
|
1088
|
-
*/ declare function
|
|
1088
|
+
*/ declare function tf(t: any, e: any): boolean;
|
|
1089
1089
|
/**
|
|
1090
1090
|
* Compares two `AggregateQuerySnapshot` instances for equality.
|
|
1091
1091
|
*
|
|
@@ -1097,7 +1097,7 @@ declare function be(): boolean;
|
|
|
1097
1097
|
*
|
|
1098
1098
|
* @returns `true` if the objects are "equal", as defined above, or `false`
|
|
1099
1099
|
* otherwise.
|
|
1100
|
-
*/ declare function
|
|
1100
|
+
*/ declare function ef(t: any, e: any): boolean;
|
|
1101
1101
|
/**
|
|
1102
1102
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
1103
1103
|
* the given filter constraints. A conjunction filter includes a document if it
|
|
@@ -1107,7 +1107,7 @@ declare function be(): boolean;
|
|
|
1107
1107
|
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
1108
1108
|
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
1109
1109
|
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
1110
|
-
*/ declare function
|
|
1110
|
+
*/ declare function Dl(...t: any[]): Vl;
|
|
1111
1111
|
/**
|
|
1112
1112
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
1113
1113
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -1118,7 +1118,7 @@ declare function be(): boolean;
|
|
|
1118
1118
|
* @param elements - The elements to remove from the array.
|
|
1119
1119
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1120
1120
|
* `updateDoc()`
|
|
1121
|
-
*/ declare function
|
|
1121
|
+
*/ declare function jf(...t: any[]): rl;
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1124
1124
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -1130,13 +1130,13 @@ declare function be(): boolean;
|
|
|
1130
1130
|
* @param elements - The elements to union into the array.
|
|
1131
1131
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1132
1132
|
* `updateDoc()`.
|
|
1133
|
-
*/ declare function
|
|
1133
|
+
*/ declare function Qf(...t: any[]): il;
|
|
1134
1134
|
/**
|
|
1135
1135
|
* Create an AggregateField object that can be used to compute the average of
|
|
1136
1136
|
* a specified field over a range of documents in the result set of a query.
|
|
1137
1137
|
* @param field Specifies the field to average across the result set.
|
|
1138
1138
|
* @internal TODO (sum/avg) remove when public
|
|
1139
|
-
*/ declare function
|
|
1139
|
+
*/ declare function Xl(t: any): Lh;
|
|
1140
1140
|
/**
|
|
1141
1141
|
* Clears the persistent storage. This includes pending writes and cached
|
|
1142
1142
|
* documents.
|
|
@@ -1158,8 +1158,8 @@ declare function be(): boolean;
|
|
|
1158
1158
|
* @param firestore - The {@link Firestore} instance to clear persistence for.
|
|
1159
1159
|
* @returns A `Promise` that is resolved when the persistent storage is
|
|
1160
1160
|
* cleared. Otherwise, the promise is rejected with an error.
|
|
1161
|
-
*/ declare function
|
|
1162
|
-
declare function _h(t: any, e: any, ...n: any[]):
|
|
1161
|
+
*/ declare function xh(t: any): Promise<any>;
|
|
1162
|
+
declare function _h(t: any, e: any, ...n: any[]): wh;
|
|
1163
1163
|
/**
|
|
1164
1164
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
1165
1165
|
* database that are contained in a collection or subcollection with the
|
|
@@ -1170,7 +1170,7 @@ declare function _h(t: any, e: any, ...n: any[]): dh;
|
|
|
1170
1170
|
* collection or subcollection with this ID as the last segment of its path
|
|
1171
1171
|
* will be included. Cannot contain a slash.
|
|
1172
1172
|
* @returns The created `Query`.
|
|
1173
|
-
*/ declare function
|
|
1173
|
+
*/ declare function mh(t: any, e: any): dh;
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
1176
1176
|
*
|
|
@@ -1183,19 +1183,19 @@ declare function _h(t: any, e: any, ...n: any[]): dh;
|
|
|
1183
1183
|
* @param port - the emulator port (ex: 9000).
|
|
1184
1184
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
1185
1185
|
* Security Rules.
|
|
1186
|
-
*/ declare function
|
|
1186
|
+
*/ declare function lh(t: any, e: any, n: any, s?: {}): void;
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Create an AggregateField object that can be used to compute the count of
|
|
1189
1189
|
* documents in the result set of a query.
|
|
1190
1190
|
* @internal TODO (sum/avg) remove when public
|
|
1191
|
-
*/ declare function
|
|
1191
|
+
*/ declare function Zl(): Lh;
|
|
1192
1192
|
/**
|
|
1193
1193
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
1194
1194
|
*
|
|
1195
1195
|
* @param reference - A reference to the document to delete.
|
|
1196
1196
|
* @returns A Promise resolved once the document has been successfully
|
|
1197
1197
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
1198
|
-
*/ declare function
|
|
1198
|
+
*/ declare function yf(t: any): Promise<any>;
|
|
1199
1199
|
/**
|
|
1200
1200
|
* @license
|
|
1201
1201
|
* Copyright 2020 Google LLC
|
|
@@ -1215,7 +1215,7 @@ declare function _h(t: any, e: any, ...n: any[]): dh;
|
|
|
1215
1215
|
/**
|
|
1216
1216
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
1217
1217
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
1218
|
-
*/ declare function
|
|
1218
|
+
*/ declare function Kf(): el;
|
|
1219
1219
|
/**
|
|
1220
1220
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
1221
1221
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -1223,12 +1223,12 @@ declare function _h(t: any, e: any, ...n: any[]): dh;
|
|
|
1223
1223
|
* operations will be queued until the network is restored.
|
|
1224
1224
|
*
|
|
1225
1225
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
1226
|
-
*/ declare function
|
|
1227
|
-
declare function
|
|
1226
|
+
*/ declare function Mh(t: any): any;
|
|
1227
|
+
declare function gh(t: any, e: any, ...n: any[]): fh;
|
|
1228
1228
|
/**
|
|
1229
1229
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
1230
1230
|
* It can be used in queries to sort or filter by the document ID.
|
|
1231
|
-
*/ declare function
|
|
1231
|
+
*/ declare function Gh(): Kh;
|
|
1232
1232
|
/**
|
|
1233
1233
|
* Attempts to enable persistent storage, if possible.
|
|
1234
1234
|
*
|
|
@@ -1255,7 +1255,7 @@ declare function mh(t: any, e: any, ...n: any[]): lh;
|
|
|
1255
1255
|
* `FirestoreSettings.cache` to an instance of `IndexedDbLocalCache` to
|
|
1256
1256
|
* turn on IndexedDb cache. Calling this function when `FirestoreSettings.cache`
|
|
1257
1257
|
* is already specified will throw an exception.
|
|
1258
|
-
*/ declare function
|
|
1258
|
+
*/ declare function Sh(t: any, e: any): any;
|
|
1259
1259
|
/**
|
|
1260
1260
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
1261
1261
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -1281,22 +1281,22 @@ declare function mh(t: any, e: any, ...n: any[]): lh;
|
|
|
1281
1281
|
* `FirestoreSettings.cache` to an instance of `IndexedDbLocalCache` to
|
|
1282
1282
|
* turn on indexeddb cache. Calling this function when `FirestoreSettings.cache`
|
|
1283
1283
|
* is already specified will throw an exception.
|
|
1284
|
-
*/ declare function
|
|
1284
|
+
*/ declare function Dh(t: any): any;
|
|
1285
1285
|
/**
|
|
1286
1286
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
1287
1287
|
* call to {@link disableNetwork}.
|
|
1288
1288
|
*
|
|
1289
1289
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
1290
|
-
*/ declare function
|
|
1291
|
-
declare function
|
|
1292
|
-
declare function
|
|
1290
|
+
*/ declare function kh(t: any): any;
|
|
1291
|
+
declare function ql(...t: any[]): Bl;
|
|
1292
|
+
declare function Ll(...t: any[]): Bl;
|
|
1293
1293
|
/**
|
|
1294
1294
|
* @internal
|
|
1295
|
-
*/ declare function
|
|
1295
|
+
*/ declare function bh(t: any): any;
|
|
1296
1296
|
/**
|
|
1297
1297
|
* Locally writes `mutations` on the async queue.
|
|
1298
1298
|
* @internal
|
|
1299
|
-
*/ declare function
|
|
1299
|
+
*/ declare function Ef(t: any, e: any): Promise<any>;
|
|
1300
1300
|
/**
|
|
1301
1301
|
* Calculates the specified aggregations over the documents in the result
|
|
1302
1302
|
* set of the given query, without actually downloading the documents.
|
|
@@ -1330,7 +1330,7 @@ declare function Bl(...t: any[]): Fl;
|
|
|
1330
1330
|
* const averageScore: number | null = aggregateSnapshot.data().averageScore;
|
|
1331
1331
|
* ```
|
|
1332
1332
|
* @internal TODO (sum/avg) remove when public
|
|
1333
|
-
*/ declare function Rf(t: any, e: any): Promise<
|
|
1333
|
+
*/ declare function Rf(t: any, e: any): Promise<qh>;
|
|
1334
1334
|
/**
|
|
1335
1335
|
* @license
|
|
1336
1336
|
* Copyright 2022 Google LLC
|
|
@@ -1367,7 +1367,7 @@ declare function Bl(...t: any[]): Fl;
|
|
|
1367
1367
|
* @returns A Promise that will be resolved with the count; the count can be
|
|
1368
1368
|
* retrieved from `snapshot.data().count`, where `snapshot` is the
|
|
1369
1369
|
* `AggregateQuerySnapshot` to which the returned Promise resolves.
|
|
1370
|
-
*/ declare function
|
|
1370
|
+
*/ declare function vf(t: any): Promise<qh>;
|
|
1371
1371
|
/**
|
|
1372
1372
|
* @license
|
|
1373
1373
|
* Copyright 2020 Google LLC
|
|
@@ -1395,21 +1395,21 @@ declare function Bl(...t: any[]): Fl;
|
|
|
1395
1395
|
* @param reference - The reference of the document to fetch.
|
|
1396
1396
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
1397
1397
|
* current document contents.
|
|
1398
|
-
*/ declare function
|
|
1398
|
+
*/ declare function af(t: any): Promise<sf>;
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
1401
1401
|
* Returns an error if the document is not currently cached.
|
|
1402
1402
|
*
|
|
1403
1403
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1404
1404
|
* current document contents.
|
|
1405
|
-
*/ declare function
|
|
1405
|
+
*/ declare function lf(t: any): Promise<sf>;
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
1408
1408
|
* Returns an error if the network is not available.
|
|
1409
1409
|
*
|
|
1410
1410
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1411
1411
|
* current document contents.
|
|
1412
|
-
*/ declare function
|
|
1412
|
+
*/ declare function ff(t: any): Promise<sf>;
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1415
1415
|
*
|
|
@@ -1419,21 +1419,21 @@ declare function Bl(...t: any[]): Fl;
|
|
|
1419
1419
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
1420
1420
|
*
|
|
1421
1421
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1422
|
-
*/ declare function
|
|
1422
|
+
*/ declare function df(t: any): Promise<of>;
|
|
1423
1423
|
/**
|
|
1424
1424
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1425
1425
|
* Returns an empty result set if no documents matching the query are currently
|
|
1426
1426
|
* cached.
|
|
1427
1427
|
*
|
|
1428
1428
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1429
|
-
*/ declare function
|
|
1429
|
+
*/ declare function wf(t: any): Promise<of>;
|
|
1430
1430
|
/**
|
|
1431
1431
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1432
1432
|
* server. Returns an error if the network is not available.
|
|
1433
1433
|
*
|
|
1434
1434
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1435
|
-
*/ declare function _f(t: any): Promise<
|
|
1436
|
-
declare function
|
|
1435
|
+
*/ declare function _f(t: any): Promise<of>;
|
|
1436
|
+
declare function Ph(e: any, n: any): import("../src").Firestore;
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1439
1439
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1452,7 +1452,7 @@ declare function vh(e: any, n: any): import("../src").Firestore;
|
|
|
1452
1452
|
* @param n - The value to increment by.
|
|
1453
1453
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1454
1454
|
* `updateDoc()`
|
|
1455
|
-
*/ declare function
|
|
1455
|
+
*/ declare function zf(t: any): ol;
|
|
1456
1456
|
/**
|
|
1457
1457
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1458
1458
|
* Can only be called before any other function, including
|
|
@@ -1471,7 +1471,7 @@ declare function vh(e: any, n: any): import("../src").Firestore;
|
|
|
1471
1471
|
*
|
|
1472
1472
|
* @param limit - The maximum number of items to return.
|
|
1473
1473
|
* @returns The created {@link QueryLimitConstraint}.
|
|
1474
|
-
*/ declare function
|
|
1474
|
+
*/ declare function kl(t: any): Nl;
|
|
1475
1475
|
/**
|
|
1476
1476
|
* Creates a {@link QueryLimitConstraint} that only returns the last matching
|
|
1477
1477
|
* documents.
|
|
@@ -1481,7 +1481,7 @@ declare function vh(e: any, n: any): import("../src").Firestore;
|
|
|
1481
1481
|
*
|
|
1482
1482
|
* @param limit - The maximum number of items to return.
|
|
1483
1483
|
* @returns The created {@link QueryLimitConstraint}.
|
|
1484
|
-
*/ declare function
|
|
1484
|
+
*/ declare function Ml(t: any): Nl;
|
|
1485
1485
|
/**
|
|
1486
1486
|
* Loads a Firestore bundle into the local cache.
|
|
1487
1487
|
*
|
|
@@ -1492,22 +1492,22 @@ declare function vh(e: any, n: any): import("../src").Firestore;
|
|
|
1492
1492
|
* @returns A `LoadBundleTask` object, which notifies callers with progress
|
|
1493
1493
|
* updates, and completion or error events. It can be used as a
|
|
1494
1494
|
* `Promise<LoadBundleTaskProgress>`.
|
|
1495
|
-
*/ declare function Oh(t: any, e: any):
|
|
1495
|
+
*/ declare function Oh(t: any, e: any): Eh;
|
|
1496
1496
|
/**
|
|
1497
1497
|
* Creates an instance of `MemoryEagerGarbageCollector`. This is also the
|
|
1498
1498
|
* default garbage collector unless it is explicitly specified otherwise.
|
|
1499
|
-
*/ declare function
|
|
1499
|
+
*/ declare function Df(): Vf;
|
|
1500
1500
|
/**
|
|
1501
1501
|
* Creates an instance of `MemoryLocalCache`. The instance can be set to
|
|
1502
1502
|
* `FirestoreSettings.cache` to tell the SDK which cache layer to use.
|
|
1503
|
-
*/ declare function
|
|
1503
|
+
*/ declare function xf(t: any): Pf;
|
|
1504
1504
|
/**
|
|
1505
1505
|
* Creates an instance of `MemoryLruGarbageCollector`.
|
|
1506
1506
|
*
|
|
1507
1507
|
* A target size can be specified as part of the setting parameter. The
|
|
1508
1508
|
* collector will start deleting documents once the cache size exceeds
|
|
1509
1509
|
* the given size. The default cache size is 40MB (40 * 1024 * 1024 bytes).
|
|
1510
|
-
*/ declare function
|
|
1510
|
+
*/ declare function Cf(t: any): Sf;
|
|
1511
1511
|
/**
|
|
1512
1512
|
* Reads a Firestore {@link Query} from local cache, identified by the given
|
|
1513
1513
|
* name.
|
|
@@ -1519,9 +1519,9 @@ declare function vh(e: any, n: any): import("../src").Firestore;
|
|
|
1519
1519
|
* @param firestore - The {@link Firestore} instance to read the query from.
|
|
1520
1520
|
* @param name - The name of the query.
|
|
1521
1521
|
* @returns A `Promise` that is resolved with the Query or `null`.
|
|
1522
|
-
*/ declare function
|
|
1523
|
-
declare function
|
|
1524
|
-
declare function
|
|
1522
|
+
*/ declare function Fh(t: any, e: any): any;
|
|
1523
|
+
declare function If(t: any, ...e: any[]): () => void;
|
|
1524
|
+
declare function Tf(t: any, e: any): () => void;
|
|
1525
1525
|
/**
|
|
1526
1526
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
1527
1527
|
* the given filter constraints. A disjunction filter includes a document if it
|
|
@@ -1531,7 +1531,7 @@ declare function If(t: any, e: any): () => void;
|
|
|
1531
1531
|
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
1532
1532
|
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
1533
1533
|
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
1534
|
-
*/ declare function
|
|
1534
|
+
*/ declare function Sl(...t: any[]): Vl;
|
|
1535
1535
|
/**
|
|
1536
1536
|
* Creates a {@link QueryOrderByConstraint} that sorts the query result by the
|
|
1537
1537
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1543,19 +1543,19 @@ declare function If(t: any, e: any): () => void;
|
|
|
1543
1543
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1544
1544
|
* not specified, order will be ascending.
|
|
1545
1545
|
* @returns The created {@link QueryOrderByConstraint}.
|
|
1546
|
-
*/ declare function
|
|
1546
|
+
*/ declare function xl(t: any, e?: string): Cl;
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Creates an instance of `PersistentLocalCache`. The instance can be set to
|
|
1549
1549
|
* `FirestoreSettings.cache` to tell the SDK which cache layer to use.
|
|
1550
|
-
*/ declare function
|
|
1550
|
+
*/ declare function Nf(t: any): bf;
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Creates an instance of `PersistentMultipleTabManager`.
|
|
1553
|
-
*/ declare function Of():
|
|
1553
|
+
*/ declare function Of(): Mf;
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Creates an instance of `PersistentSingleTabManager`.
|
|
1556
1556
|
*
|
|
1557
1557
|
* @param settings Configures the created tab manager.
|
|
1558
|
-
*/ declare function
|
|
1558
|
+
*/ declare function $f(t: any): kf;
|
|
1559
1559
|
declare function Rl(t: any, e: any, ...n: any[]): any;
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Returns true if the provided queries point to the same collection and apply
|
|
@@ -1565,7 +1565,7 @@ declare function Rl(t: any, e: any, ...n: any[]): any;
|
|
|
1565
1565
|
* @param right - A `Query` to compare.
|
|
1566
1566
|
* @returns true if the references point to the same location in the same
|
|
1567
1567
|
* Firestore database.
|
|
1568
|
-
*/ declare function
|
|
1568
|
+
*/ declare function ph(t: any, e: any): boolean;
|
|
1569
1569
|
/**
|
|
1570
1570
|
* Returns true if the provided references are equal.
|
|
1571
1571
|
*
|
|
@@ -1573,7 +1573,7 @@ declare function Rl(t: any, e: any, ...n: any[]): any;
|
|
|
1573
1573
|
* @param right - A reference to compare.
|
|
1574
1574
|
* @returns true if the references point to the same location in the same
|
|
1575
1575
|
* Firestore database.
|
|
1576
|
-
*/ declare function
|
|
1576
|
+
*/ declare function yh(t: any, e: any): boolean;
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1579
1579
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1592,12 +1592,12 @@ declare function Rl(t: any, e: any, ...n: any[]): any;
|
|
|
1592
1592
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1593
1593
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1594
1594
|
* rejected promise with the corresponding failure error is returned.
|
|
1595
|
-
*/ declare function
|
|
1595
|
+
*/ declare function Uf(t: any, e: any, n: any): Promise<any>;
|
|
1596
1596
|
/**
|
|
1597
1597
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1598
1598
|
* include a server-generated timestamp in the written data.
|
|
1599
|
-
*/ declare function
|
|
1600
|
-
declare function
|
|
1599
|
+
*/ declare function Gf(): sl;
|
|
1600
|
+
declare function mf(t: any, e: any, n: any): Promise<any>;
|
|
1601
1601
|
/**
|
|
1602
1602
|
* @license
|
|
1603
1603
|
* Copyright 2021 Google LLC
|
|
@@ -1613,7 +1613,7 @@ declare function wf(t: any, e: any, n: any): Promise<any>;
|
|
|
1613
1613
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1614
1614
|
* See the License for the specific language governing permissions and
|
|
1615
1615
|
* limitations under the License.
|
|
1616
|
-
*/ declare function
|
|
1616
|
+
*/ declare function Hf(t: any, e: any): any;
|
|
1617
1617
|
/**
|
|
1618
1618
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1619
1619
|
*
|
|
@@ -1633,9 +1633,9 @@ declare function wf(t: any, e: any, n: any): Promise<any>;
|
|
|
1633
1633
|
* @param left - A snapshot to compare.
|
|
1634
1634
|
* @param right - A snapshot to compare.
|
|
1635
1635
|
* @returns true if the snapshots are equal.
|
|
1636
|
-
*/ declare function
|
|
1637
|
-
declare function
|
|
1638
|
-
declare function Ol(...t: any[]):
|
|
1636
|
+
*/ declare function cf(t: any, e: any): any;
|
|
1637
|
+
declare function Fl(...t: any[]): $l;
|
|
1638
|
+
declare function Ol(...t: any[]): $l;
|
|
1639
1639
|
/**
|
|
1640
1640
|
* @license
|
|
1641
1641
|
* Copyright 2022 Google LLC
|
|
@@ -1657,7 +1657,7 @@ declare function Ol(...t: any[]): Ml;
|
|
|
1657
1657
|
* a specified field over a range of documents in the result set of a query.
|
|
1658
1658
|
* @param field Specifies the field to sum across the result set.
|
|
1659
1659
|
* @internal TODO (sum/avg) remove when public
|
|
1660
|
-
*/ declare function
|
|
1660
|
+
*/ declare function Yl(t: any): Lh;
|
|
1661
1661
|
/**
|
|
1662
1662
|
* Terminates the provided {@link Firestore} instance.
|
|
1663
1663
|
*
|
|
@@ -1679,8 +1679,8 @@ declare function Ol(...t: any[]): Ml;
|
|
|
1679
1679
|
*
|
|
1680
1680
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1681
1681
|
* terminated.
|
|
1682
|
-
*/ declare function
|
|
1683
|
-
declare function
|
|
1682
|
+
*/ declare function $h(t: any): any;
|
|
1683
|
+
declare function gf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1684
1684
|
/**
|
|
1685
1685
|
* Waits until all currently pending writes for the active user have been
|
|
1686
1686
|
* acknowledged by the backend.
|
|
@@ -1696,7 +1696,7 @@ declare function mf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1696
1696
|
*
|
|
1697
1697
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1698
1698
|
* acknowledged by the backend.
|
|
1699
|
-
*/ declare function
|
|
1699
|
+
*/ declare function Nh(t: any): Promise<any>;
|
|
1700
1700
|
/**
|
|
1701
1701
|
* Creates a {@link QueryFieldFilterConstraint} that enforces that documents
|
|
1702
1702
|
* must contain the specified field and that the value should satisfy the
|
|
@@ -1707,7 +1707,7 @@ declare function mf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1707
1707
|
* "<=", "!=").
|
|
1708
1708
|
* @param value - The value for comparison
|
|
1709
1709
|
* @returns The created {@link QueryFieldFilterConstraint}.
|
|
1710
|
-
*/ declare function
|
|
1710
|
+
*/ declare function bl(t: any, e: any, n: any): Pl;
|
|
1711
1711
|
/**
|
|
1712
1712
|
* @license
|
|
1713
1713
|
* Copyright 2020 Google LLC
|
|
@@ -1734,7 +1734,7 @@ declare function mf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1734
1734
|
*
|
|
1735
1735
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1736
1736
|
* writes.
|
|
1737
|
-
*/ declare function
|
|
1737
|
+
*/ declare function Wf(t: any): Bf;
|
|
1738
1738
|
/**
|
|
1739
1739
|
* @license
|
|
1740
1740
|
* Copyright 2020 Google LLC
|
|
@@ -1759,7 +1759,7 @@ declare function mf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1759
1759
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
1760
1760
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
1761
1761
|
* explicitly verify a document's existence.
|
|
1762
|
-
*/ declare class
|
|
1762
|
+
*/ declare class pl {
|
|
1763
1763
|
/** @hideconstructor protected */
|
|
1764
1764
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1765
1765
|
_firestore: any;
|
|
@@ -1770,7 +1770,7 @@ declare function mf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1770
1770
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1771
1771
|
/**
|
|
1772
1772
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1773
|
-
*/ get ref():
|
|
1773
|
+
*/ get ref(): fh;
|
|
1774
1774
|
/**
|
|
1775
1775
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1776
1776
|
*
|
|
@@ -1794,27 +1794,7 @@ declare function mf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1794
1794
|
*/
|
|
1795
1795
|
get(t: any): any;
|
|
1796
1796
|
}
|
|
1797
|
-
|
|
1798
|
-
* @license
|
|
1799
|
-
* Copyright 2020 Google LLC
|
|
1800
|
-
*
|
|
1801
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1802
|
-
* you may not use this file except in compliance with the License.
|
|
1803
|
-
* You may obtain a copy of the License at
|
|
1804
|
-
*
|
|
1805
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1806
|
-
*
|
|
1807
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1808
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1809
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1810
|
-
* See the License for the specific language governing permissions and
|
|
1811
|
-
* limitations under the License.
|
|
1812
|
-
*/
|
|
1813
|
-
/**
|
|
1814
|
-
* The Cloud Firestore service interface.
|
|
1815
|
-
*
|
|
1816
|
-
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
1817
|
-
*/ declare class ah {
|
|
1797
|
+
declare class hh {
|
|
1818
1798
|
/** @hideconstructor */
|
|
1819
1799
|
constructor(t: any, e: any, n: any, s: any);
|
|
1820
1800
|
_authCredentials: any;
|
|
@@ -1826,7 +1806,7 @@ declare function mf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1826
1806
|
*/
|
|
1827
1807
|
type: string;
|
|
1828
1808
|
_persistenceKey: string;
|
|
1829
|
-
_settings:
|
|
1809
|
+
_settings: ah;
|
|
1830
1810
|
_settingsFrozen: boolean;
|
|
1831
1811
|
/**
|
|
1832
1812
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1835,14 +1815,14 @@ declare function mf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1835
1815
|
get _initialized(): boolean;
|
|
1836
1816
|
get _terminated(): boolean;
|
|
1837
1817
|
_setSettings(t: any): void;
|
|
1838
|
-
_getSettings():
|
|
1839
|
-
_freezeSettings():
|
|
1818
|
+
_getSettings(): ah;
|
|
1819
|
+
_freezeSettings(): ah;
|
|
1840
1820
|
_delete(): Promise<void>;
|
|
1841
1821
|
_terminateTask: Promise<void> | undefined;
|
|
1842
1822
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1843
1823
|
app: any;
|
|
1844
1824
|
databaseId: any;
|
|
1845
|
-
settings:
|
|
1825
|
+
settings: ah;
|
|
1846
1826
|
};
|
|
1847
1827
|
/**
|
|
1848
1828
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1867,7 +1847,7 @@ declare function mf(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1867
1847
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1868
1848
|
* See the License for the specific language governing permissions and
|
|
1869
1849
|
* limitations under the License.
|
|
1870
|
-
*/ declare class
|
|
1850
|
+
*/ declare class Ih {
|
|
1871
1851
|
Kc: Promise<void>;
|
|
1872
1852
|
Gc: any[];
|
|
1873
1853
|
Qc: boolean;
|
|
@@ -1939,9 +1919,9 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
1939
1919
|
/**
|
|
1940
1920
|
* An `AppliableConstraint` is an abstraction of a constraint that can be applied
|
|
1941
1921
|
* to a Firestore query.
|
|
1942
|
-
*/ declare class
|
|
1922
|
+
*/ declare class Al {
|
|
1943
1923
|
}
|
|
1944
|
-
declare class mn extends
|
|
1924
|
+
declare class mn extends _n {
|
|
1945
1925
|
/**
|
|
1946
1926
|
* Creates a filter based on the provided arguments.
|
|
1947
1927
|
*/ static create(t: any, e: any, n: any): mn | bn | Nn;
|
|
@@ -1969,12 +1949,12 @@ declare class mn extends wn {
|
|
|
1969
1949
|
/**
|
|
1970
1950
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1971
1951
|
* classes.
|
|
1972
|
-
*/ declare class
|
|
1952
|
+
*/ declare class Xh {
|
|
1973
1953
|
constructor(t: any, e: any, n: any);
|
|
1974
1954
|
databaseId: any;
|
|
1975
1955
|
ignoreUndefinedProperties: any;
|
|
1976
1956
|
serializer: any;
|
|
1977
|
-
/** Creates a new top-level parse context. */ ga(t: any, e: any, n: any, s?: boolean):
|
|
1957
|
+
/** Creates a new top-level parse context. */ ga(t: any, e: any, n: any, s?: boolean): Yh;
|
|
1978
1958
|
}
|
|
1979
1959
|
declare class J {
|
|
1980
1960
|
constructor(t: any);
|
|
@@ -2022,36 +2002,36 @@ declare class ot {
|
|
|
2022
2002
|
forEach(t: any): void;
|
|
2023
2003
|
toArray(): any;
|
|
2024
2004
|
}
|
|
2025
|
-
declare class
|
|
2005
|
+
declare class rl extends Qh {
|
|
2026
2006
|
constructor(t: any, e: any);
|
|
2027
2007
|
ya: any;
|
|
2028
2008
|
_toFieldTransform(t: any): Ms;
|
|
2029
2009
|
isEqual(t: any): boolean;
|
|
2030
2010
|
}
|
|
2031
|
-
declare class
|
|
2011
|
+
declare class il extends Qh {
|
|
2032
2012
|
constructor(t: any, e: any);
|
|
2033
2013
|
ya: any;
|
|
2034
2014
|
_toFieldTransform(t: any): Ms;
|
|
2035
2015
|
isEqual(t: any): boolean;
|
|
2036
2016
|
}
|
|
2037
|
-
declare class
|
|
2017
|
+
declare class el extends Qh {
|
|
2038
2018
|
_toFieldTransform(t: any): null;
|
|
2039
2019
|
isEqual(t: any): boolean;
|
|
2040
2020
|
}
|
|
2041
|
-
declare class
|
|
2021
|
+
declare class ol extends Qh {
|
|
2042
2022
|
constructor(t: any, e: any);
|
|
2043
2023
|
pa: any;
|
|
2044
2024
|
_toFieldTransform(t: any): Ms;
|
|
2045
2025
|
isEqual(t: any): boolean;
|
|
2046
2026
|
}
|
|
2047
|
-
declare class
|
|
2027
|
+
declare class Vf {
|
|
2048
2028
|
kind: string;
|
|
2049
2029
|
_offlineComponentProvider: Ea;
|
|
2050
2030
|
toJSON(): {
|
|
2051
2031
|
kind: string;
|
|
2052
2032
|
};
|
|
2053
2033
|
}
|
|
2054
|
-
declare class
|
|
2034
|
+
declare class Pf {
|
|
2055
2035
|
constructor(t: any);
|
|
2056
2036
|
kind: string;
|
|
2057
2037
|
_onlineComponentProvider: Pa;
|
|
@@ -2060,7 +2040,7 @@ declare class vf {
|
|
|
2060
2040
|
kind: string;
|
|
2061
2041
|
};
|
|
2062
2042
|
}
|
|
2063
|
-
declare class
|
|
2043
|
+
declare class Sf {
|
|
2064
2044
|
constructor(t: any);
|
|
2065
2045
|
kind: string;
|
|
2066
2046
|
_offlineComponentProvider: Aa;
|
|
@@ -2068,7 +2048,7 @@ declare class Vf {
|
|
|
2068
2048
|
kind: string;
|
|
2069
2049
|
};
|
|
2070
2050
|
}
|
|
2071
|
-
declare class
|
|
2051
|
+
declare class bf {
|
|
2072
2052
|
constructor(t: any);
|
|
2073
2053
|
kind: string;
|
|
2074
2054
|
_onlineComponentProvider: any;
|
|
@@ -2077,7 +2057,7 @@ declare class Pf {
|
|
|
2077
2057
|
kind: string;
|
|
2078
2058
|
};
|
|
2079
2059
|
}
|
|
2080
|
-
declare class
|
|
2060
|
+
declare class Mf {
|
|
2081
2061
|
kind: string;
|
|
2082
2062
|
toJSON(): {
|
|
2083
2063
|
kind: string;
|
|
@@ -2086,9 +2066,9 @@ declare class kf {
|
|
|
2086
2066
|
* @internal
|
|
2087
2067
|
*/ _initialize(t: any): void;
|
|
2088
2068
|
_onlineComponentProvider: Pa | undefined;
|
|
2089
|
-
_offlineComponentProvider:
|
|
2069
|
+
_offlineComponentProvider: Ra | undefined;
|
|
2090
2070
|
}
|
|
2091
|
-
declare class
|
|
2071
|
+
declare class kf {
|
|
2092
2072
|
constructor(t: any);
|
|
2093
2073
|
forceOwnership: any;
|
|
2094
2074
|
kind: string;
|
|
@@ -2099,9 +2079,9 @@ declare class Nf {
|
|
|
2099
2079
|
* @internal
|
|
2100
2080
|
*/ _initialize(t: any): void;
|
|
2101
2081
|
_onlineComponentProvider: Pa | undefined;
|
|
2102
|
-
_offlineComponentProvider:
|
|
2082
|
+
_offlineComponentProvider: va | undefined;
|
|
2103
2083
|
}
|
|
2104
|
-
declare class
|
|
2084
|
+
declare class sl extends Qh {
|
|
2105
2085
|
_toFieldTransform(t: any): Ms;
|
|
2106
2086
|
isEqual(t: any): boolean;
|
|
2107
2087
|
}
|
|
@@ -2126,7 +2106,7 @@ declare class nl extends Gh {
|
|
|
2126
2106
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
2127
2107
|
* defaults can be supplied and the value can be checked for equality.
|
|
2128
2108
|
*/
|
|
2129
|
-
declare class
|
|
2109
|
+
declare class ah {
|
|
2130
2110
|
constructor(t: any);
|
|
2131
2111
|
host: any;
|
|
2132
2112
|
ssl: any;
|
|
@@ -2136,6 +2116,9 @@ declare class ch {
|
|
|
2136
2116
|
cacheSizeBytes: any;
|
|
2137
2117
|
experimentalForceLongPolling: boolean;
|
|
2138
2118
|
experimentalAutoDetectLongPolling: boolean;
|
|
2119
|
+
experimentalLongPollingOptions: {
|
|
2120
|
+
timeoutSeconds: any;
|
|
2121
|
+
};
|
|
2139
2122
|
useFetchStreams: boolean;
|
|
2140
2123
|
isEqual(t: any): boolean;
|
|
2141
2124
|
}
|
|
@@ -2168,7 +2151,7 @@ declare class Bu {
|
|
|
2168
2151
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
2169
2152
|
si: any;
|
|
2170
2153
|
timerId: any;
|
|
2171
|
-
|
|
2154
|
+
Ro: number;
|
|
2172
2155
|
Po: number;
|
|
2173
2156
|
bo: number;
|
|
2174
2157
|
Vo: number;
|
|
@@ -2279,14 +2262,14 @@ declare class Tc {
|
|
|
2279
2262
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2280
2263
|
* See the License for the specific language governing permissions and
|
|
2281
2264
|
* limitations under the License.
|
|
2282
|
-
*/ declare class
|
|
2265
|
+
*/ declare class _n {
|
|
2283
2266
|
}
|
|
2284
2267
|
/** Filter that matches on key fields not present within an array. */ declare class Vn extends mn {
|
|
2285
2268
|
constructor(t: any, e: any);
|
|
2286
2269
|
keys: any;
|
|
2287
2270
|
matches(t: any): boolean;
|
|
2288
2271
|
}
|
|
2289
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
2272
|
+
/** A "context" object passed around while parsing user data. */ declare class Yh {
|
|
2290
2273
|
/**
|
|
2291
2274
|
* Initializes a ParseContext with the given source and path.
|
|
2292
2275
|
*
|
|
@@ -2314,11 +2297,11 @@ declare class Tc {
|
|
|
2314
2297
|
fieldMask: any;
|
|
2315
2298
|
get path(): any;
|
|
2316
2299
|
get ua(): any;
|
|
2317
|
-
/** Returns a new context with the specified settings overwritten. */ ca(t: any):
|
|
2318
|
-
aa(t: any):
|
|
2319
|
-
fa(t: any):
|
|
2320
|
-
da(t: any):
|
|
2321
|
-
|
|
2300
|
+
/** Returns a new context with the specified settings overwritten. */ ca(t: any): Yh;
|
|
2301
|
+
aa(t: any): Yh;
|
|
2302
|
+
fa(t: any): Yh;
|
|
2303
|
+
da(t: any): Yh;
|
|
2304
|
+
wa(t: any): U;
|
|
2322
2305
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
2323
2306
|
oa(): void;
|
|
2324
2307
|
la(t: any): void;
|
|
@@ -2389,13 +2372,13 @@ declare class Aa extends Ea {
|
|
|
2389
2372
|
* In the legacy client, this provider is used to provide both multi-tab and
|
|
2390
2373
|
* non-multi-tab persistence since we cannot tell at build time whether
|
|
2391
2374
|
* `synchronizeTabs` will be enabled.
|
|
2392
|
-
*/ declare class
|
|
2375
|
+
*/ declare class Ra extends va {
|
|
2393
2376
|
constructor(t: any, e: any);
|
|
2394
2377
|
createSharedClientState(t: any): Pu;
|
|
2395
2378
|
}
|
|
2396
2379
|
/**
|
|
2397
2380
|
* Provides all components needed for Firestore with IndexedDB persistence.
|
|
2398
|
-
*/ declare class
|
|
2381
|
+
*/ declare class va extends Ea {
|
|
2399
2382
|
constructor(t: any, e: any, n: any);
|
|
2400
2383
|
bc: any;
|
|
2401
2384
|
cacheSizeBytes: any;
|
|
@@ -2424,7 +2407,7 @@ declare class Vi {
|
|
|
2424
2407
|
useProto3Json: any;
|
|
2425
2408
|
}
|
|
2426
2409
|
declare class bu {
|
|
2427
|
-
Wr:
|
|
2410
|
+
Wr: Ru;
|
|
2428
2411
|
Hr: {};
|
|
2429
2412
|
onlineStateHandler: any;
|
|
2430
2413
|
sequenceNumberHandler: any;
|
|
@@ -2474,8 +2457,8 @@ declare class Ko {
|
|
|
2474
2457
|
constructor(t: any, e: any);
|
|
2475
2458
|
Ms: {};
|
|
2476
2459
|
overlays: {};
|
|
2477
|
-
|
|
2478
|
-
|
|
2460
|
+
$s: Ot;
|
|
2461
|
+
Os: boolean;
|
|
2479
2462
|
referenceDelegate: any;
|
|
2480
2463
|
Fs: Uo;
|
|
2481
2464
|
indexManager: zr;
|
|
@@ -2494,7 +2477,7 @@ declare class Ko {
|
|
|
2494
2477
|
getRemoteDocumentCache(): Lo;
|
|
2495
2478
|
getBundleCache(): Mo;
|
|
2496
2479
|
runTransaction(t: any, e: any, n: any): any;
|
|
2497
|
-
Ks(t: any, e: any):
|
|
2480
|
+
Ks(t: any, e: any): Rt;
|
|
2498
2481
|
}
|
|
2499
2482
|
/**
|
|
2500
2483
|
* @license
|
|
@@ -2652,8 +2635,8 @@ declare class Ku extends Ku_base {
|
|
|
2652
2635
|
* underlying streams (to support tree-shakeable streams). On Android and iOS,
|
|
2653
2636
|
* the streams are created during construction of RemoteStore.
|
|
2654
2637
|
*/
|
|
2655
|
-
|
|
2656
|
-
|
|
2638
|
+
vu: any[];
|
|
2639
|
+
Ru: any;
|
|
2657
2640
|
Pu: Qu;
|
|
2658
2641
|
}
|
|
2659
2642
|
declare class bc {
|
|
@@ -2683,7 +2666,7 @@ declare class bc {
|
|
|
2683
2666
|
maxConcurrentLimboResolutions: any;
|
|
2684
2667
|
fc: {};
|
|
2685
2668
|
dc: os;
|
|
2686
|
-
|
|
2669
|
+
wc: Map<any, any>;
|
|
2687
2670
|
/**
|
|
2688
2671
|
* The keys of documents that are in limbo for which we haven't yet started a
|
|
2689
2672
|
* limbo resolution query. The strings in this set are the result of calling
|
|
@@ -2693,7 +2676,7 @@ declare class bc {
|
|
|
2693
2676
|
* of arbitrary elements and it also maintains insertion order, providing the
|
|
2694
2677
|
* desired queue-like FIFO semantics.
|
|
2695
2678
|
*/
|
|
2696
|
-
|
|
2679
|
+
_c: Set<any>;
|
|
2697
2680
|
/**
|
|
2698
2681
|
* Keeps track of the target ID for each document that is in limbo with an
|
|
2699
2682
|
* active target.
|
|
@@ -2704,7 +2687,7 @@ declare class bc {
|
|
|
2704
2687
|
* active target ID that was started for the purpose of limbo resolution.
|
|
2705
2688
|
*/
|
|
2706
2689
|
gc: Map<any, any>;
|
|
2707
|
-
yc:
|
|
2690
|
+
yc: Oo;
|
|
2708
2691
|
/** Stores user completion handlers, indexed by User and BatchId. */
|
|
2709
2692
|
Ic: {};
|
|
2710
2693
|
/** Stores user callbacks waiting for all pending writes to be acknowledged. */
|
|
@@ -2741,7 +2724,7 @@ declare class bc {
|
|
|
2741
2724
|
syncEngine: any;
|
|
2742
2725
|
onlineStateHandler: any;
|
|
2743
2726
|
sequenceNumberHandler: any;
|
|
2744
|
-
|
|
2727
|
+
wr: (t: any) => undefined;
|
|
2745
2728
|
mr: pe;
|
|
2746
2729
|
started: boolean;
|
|
2747
2730
|
/**
|
|
@@ -2757,7 +2740,7 @@ declare class bc {
|
|
|
2757
2740
|
Tr: RegExp;
|
|
2758
2741
|
Er: RegExp;
|
|
2759
2742
|
Ar: string;
|
|
2760
|
-
|
|
2743
|
+
vr: string;
|
|
2761
2744
|
start(): Promise<void>;
|
|
2762
2745
|
writeSequenceNumber(t: any): void;
|
|
2763
2746
|
getAllActiveQueryTargets(): Ee;
|
|
@@ -2776,9 +2759,9 @@ declare class bc {
|
|
|
2776
2759
|
getItem(t: any): any;
|
|
2777
2760
|
setItem(t: any, e: any): void;
|
|
2778
2761
|
removeItem(t: any): void;
|
|
2779
|
-
|
|
2762
|
+
_r(t: any): undefined;
|
|
2780
2763
|
get Cr(): any;
|
|
2781
|
-
|
|
2764
|
+
Rr(): void;
|
|
2782
2765
|
Sr(t: any, e: any, n: any): void;
|
|
2783
2766
|
Dr(t: any): void;
|
|
2784
2767
|
kr(t: any): void;
|
|
@@ -2787,7 +2770,7 @@ declare class bc {
|
|
|
2787
2770
|
/**
|
|
2788
2771
|
* Parses a client state key in WebStorage. Returns null if the key does not
|
|
2789
2772
|
* match the expected key format.
|
|
2790
|
-
*/
|
|
2773
|
+
*/ $r(t: any): string | null;
|
|
2791
2774
|
/**
|
|
2792
2775
|
* Parses a client state in WebStorage. Returns 'null' if the value could not
|
|
2793
2776
|
* be parsed.
|
|
@@ -2803,11 +2786,11 @@ declare class bc {
|
|
|
2803
2786
|
/**
|
|
2804
2787
|
* Parses an online state from WebStorage. Returns 'null' if the value
|
|
2805
2788
|
* could not be parsed.
|
|
2806
|
-
*/ Pr(t: any):
|
|
2789
|
+
*/ Pr(t: any): vu | null;
|
|
2807
2790
|
Kr(t: any): any;
|
|
2808
2791
|
Lr(t: any): Promise<any>;
|
|
2809
2792
|
Ur(t: any): any;
|
|
2810
|
-
|
|
2793
|
+
Or(t: any, e: any): any;
|
|
2811
2794
|
br(t: any): void;
|
|
2812
2795
|
Vr(t: any): Ee;
|
|
2813
2796
|
}
|
|
@@ -2884,8 +2867,8 @@ declare class Jo {
|
|
|
2884
2867
|
ii: any;
|
|
2885
2868
|
ri: any;
|
|
2886
2869
|
oi: number;
|
|
2887
|
-
|
|
2888
|
-
|
|
2870
|
+
$s: Ot | null;
|
|
2871
|
+
Os: boolean;
|
|
2889
2872
|
isPrimary: boolean;
|
|
2890
2873
|
networkEnabled: boolean;
|
|
2891
2874
|
/** Our window.unload handler, if registered. */
|
|
@@ -2904,9 +2887,9 @@ declare class Jo {
|
|
|
2904
2887
|
serializer: ar;
|
|
2905
2888
|
di: bt;
|
|
2906
2889
|
Fs: fo;
|
|
2907
|
-
remoteDocumentCache:
|
|
2890
|
+
remoteDocumentCache: Ro;
|
|
2908
2891
|
Ls: Er;
|
|
2909
|
-
|
|
2892
|
+
wi: any;
|
|
2910
2893
|
/**
|
|
2911
2894
|
* Attempt to start IndexedDb persistence.
|
|
2912
2895
|
*
|
|
@@ -2936,9 +2919,9 @@ declare class Jo {
|
|
|
2936
2919
|
* extend the primary lease for the local client. Asynchronously notifies the
|
|
2937
2920
|
* primary state listener if the client either newly obtained or released its
|
|
2938
2921
|
* primary lease.
|
|
2939
|
-
*/
|
|
2922
|
+
*/ _i(): Promise<void>;
|
|
2940
2923
|
Ii(t: any): any;
|
|
2941
|
-
|
|
2924
|
+
Ri(t: any): any;
|
|
2942
2925
|
/**
|
|
2943
2926
|
* If the garbage collection threshold has passed, prunes the
|
|
2944
2927
|
* RemoteDocumentChanges and the ClientMetadata store based on the last update
|
|
@@ -2948,7 +2931,7 @@ declare class Jo {
|
|
|
2948
2931
|
* Schedules a recurring timer to update the client metadata and to either
|
|
2949
2932
|
* extend or acquire the primary lease if the client is eligible.
|
|
2950
2933
|
*/ yi(): void;
|
|
2951
|
-
/** Checks whether `client` is the local client. */
|
|
2934
|
+
/** Checks whether `client` is the local client. */ vi(t: any): boolean;
|
|
2952
2935
|
/**
|
|
2953
2936
|
* Evaluate the state of all active clients and determine whether the local
|
|
2954
2937
|
* client is or can act as the holder of the primary lease. Returns whether
|
|
@@ -2971,16 +2954,16 @@ declare class Jo {
|
|
|
2971
2954
|
get started(): boolean;
|
|
2972
2955
|
getMutationQueue(t: any, e: any): oo;
|
|
2973
2956
|
getTargetCache(): fo;
|
|
2974
|
-
getRemoteDocumentCache():
|
|
2957
|
+
getRemoteDocumentCache(): Ro;
|
|
2975
2958
|
getIndexManager(t: any): Jr;
|
|
2976
|
-
getDocumentOverlayCache(t: any):
|
|
2959
|
+
getDocumentOverlayCache(t: any): Rr;
|
|
2977
2960
|
getBundleCache(): Er;
|
|
2978
2961
|
runTransaction(t: any, e: any, n: any): Promise<any>;
|
|
2979
2962
|
/**
|
|
2980
2963
|
* Verifies that the current tab is the primary leaseholder or alternatively
|
|
2981
2964
|
* that the leaseholder has opted into multi-tab synchronization.
|
|
2982
2965
|
*/
|
|
2983
|
-
|
|
2966
|
+
$i(t: any): any;
|
|
2984
2967
|
/**
|
|
2985
2968
|
* Obtains or extends the new primary lease for the local client. This
|
|
2986
2969
|
* method does not verify that the client is eligible for this lease.
|
|
@@ -3022,7 +3005,7 @@ declare class Jo {
|
|
|
3022
3005
|
* updated via its instance methods. The updated state can be serialized via
|
|
3023
3006
|
* `toWebStorageJSON()`.
|
|
3024
3007
|
*/
|
|
3025
|
-
declare class
|
|
3008
|
+
declare class Ru {
|
|
3026
3009
|
activeTargetIds: Ee;
|
|
3027
3010
|
hr(t: any): void;
|
|
3028
3011
|
lr(t: any): void;
|
|
@@ -3101,14 +3084,14 @@ declare class Ee {
|
|
|
3101
3084
|
* exceed. All subsequent calls to next will return increasing values. If provided with a
|
|
3102
3085
|
* `SequenceNumberSyncer`, it will additionally bump its next value when told of a new value, as
|
|
3103
3086
|
* well as write out sequence numbers that it produces via `next()`.
|
|
3104
|
-
*/ declare class
|
|
3087
|
+
*/ declare class Ot {
|
|
3105
3088
|
constructor(t: any, e: any);
|
|
3106
3089
|
previousValue: any;
|
|
3107
3090
|
ut: ((t: any) => any) | undefined;
|
|
3108
3091
|
ot(t: any): any;
|
|
3109
3092
|
next(): number;
|
|
3110
3093
|
}
|
|
3111
|
-
declare namespace
|
|
3094
|
+
declare namespace Ot {
|
|
3112
3095
|
const ct: number;
|
|
3113
3096
|
}
|
|
3114
3097
|
/**
|
|
@@ -3143,26 +3126,26 @@ declare namespace $t {
|
|
|
3143
3126
|
* A ordered bidirectional mapping between documents and the remote target
|
|
3144
3127
|
* IDs.
|
|
3145
3128
|
*/
|
|
3146
|
-
Ns:
|
|
3129
|
+
Ns: Oo;
|
|
3147
3130
|
targetCount: number;
|
|
3148
3131
|
ks: lo;
|
|
3149
|
-
forEachTarget(t: any, e: any):
|
|
3150
|
-
getLastRemoteSnapshotVersion(t: any):
|
|
3151
|
-
getHighestSequenceNumber(t: any):
|
|
3152
|
-
allocateTargetId(t: any):
|
|
3153
|
-
setTargetsMetadata(t: any, e: any, n: any):
|
|
3154
|
-
|
|
3155
|
-
addTargetData(t: any, e: any):
|
|
3156
|
-
updateTargetData(t: any, e: any):
|
|
3157
|
-
removeTargetData(t: any, e: any):
|
|
3158
|
-
removeTargets(t: any, e: any, n: any):
|
|
3159
|
-
getTargetCount(t: any):
|
|
3160
|
-
getTargetData(t: any, e: any):
|
|
3161
|
-
addMatchingKeys(t: any, e: any, n: any):
|
|
3162
|
-
removeMatchingKeys(t: any, e: any, n: any):
|
|
3163
|
-
removeMatchingKeysForTargetId(t: any, e: any):
|
|
3164
|
-
getMatchingKeysForTargetId(t: any, e: any):
|
|
3165
|
-
containsKey(t: any, e: any):
|
|
3132
|
+
forEachTarget(t: any, e: any): Rt;
|
|
3133
|
+
getLastRemoteSnapshotVersion(t: any): Rt;
|
|
3134
|
+
getHighestSequenceNumber(t: any): Rt;
|
|
3135
|
+
allocateTargetId(t: any): Rt;
|
|
3136
|
+
setTargetsMetadata(t: any, e: any, n: any): Rt;
|
|
3137
|
+
On(t: any): void;
|
|
3138
|
+
addTargetData(t: any, e: any): Rt;
|
|
3139
|
+
updateTargetData(t: any, e: any): Rt;
|
|
3140
|
+
removeTargetData(t: any, e: any): Rt;
|
|
3141
|
+
removeTargets(t: any, e: any, n: any): Rt;
|
|
3142
|
+
getTargetCount(t: any): Rt;
|
|
3143
|
+
getTargetData(t: any, e: any): Rt;
|
|
3144
|
+
addMatchingKeys(t: any, e: any, n: any): Rt;
|
|
3145
|
+
removeMatchingKeys(t: any, e: any, n: any): Rt;
|
|
3146
|
+
removeMatchingKeysForTargetId(t: any, e: any): Rt;
|
|
3147
|
+
getMatchingKeysForTargetId(t: any, e: any): Rt;
|
|
3148
|
+
containsKey(t: any, e: any): Rt;
|
|
3166
3149
|
}
|
|
3167
3150
|
/**
|
|
3168
3151
|
* @license
|
|
@@ -3184,18 +3167,18 @@ declare namespace $t {
|
|
|
3184
3167
|
* An in-memory implementation of IndexManager.
|
|
3185
3168
|
*/ declare class zr {
|
|
3186
3169
|
sn: Wr;
|
|
3187
|
-
addToCollectionParentIndex(t: any, e: any):
|
|
3188
|
-
getCollectionParents(t: any, e: any):
|
|
3189
|
-
addFieldIndex(t: any, e: any):
|
|
3190
|
-
deleteFieldIndex(t: any, e: any):
|
|
3191
|
-
getDocumentsMatchingTarget(t: any, e: any):
|
|
3192
|
-
getIndexType(t: any, e: any):
|
|
3193
|
-
getFieldIndexes(t: any, e: any):
|
|
3194
|
-
getNextCollectionGroupToUpdate(t: any):
|
|
3195
|
-
getMinOffset(t: any, e: any):
|
|
3196
|
-
getMinOffsetFromCollectionGroup(t: any, e: any):
|
|
3197
|
-
updateCollectionGroup(t: any, e: any, n: any):
|
|
3198
|
-
updateIndexEntries(t: any, e: any):
|
|
3170
|
+
addToCollectionParentIndex(t: any, e: any): Rt;
|
|
3171
|
+
getCollectionParents(t: any, e: any): Rt;
|
|
3172
|
+
addFieldIndex(t: any, e: any): Rt;
|
|
3173
|
+
deleteFieldIndex(t: any, e: any): Rt;
|
|
3174
|
+
getDocumentsMatchingTarget(t: any, e: any): Rt;
|
|
3175
|
+
getIndexType(t: any, e: any): Rt;
|
|
3176
|
+
getFieldIndexes(t: any, e: any): Rt;
|
|
3177
|
+
getNextCollectionGroupToUpdate(t: any): Rt;
|
|
3178
|
+
getMinOffset(t: any, e: any): Rt;
|
|
3179
|
+
getMinOffsetFromCollectionGroup(t: any, e: any): Rt;
|
|
3180
|
+
updateCollectionGroup(t: any, e: any, n: any): Rt;
|
|
3181
|
+
updateIndexEntries(t: any, e: any): Rt;
|
|
3199
3182
|
}
|
|
3200
3183
|
/**
|
|
3201
3184
|
* @license
|
|
@@ -3243,13 +3226,13 @@ declare class Lo {
|
|
|
3243
3226
|
* All calls of `removeEntry` are required to go through the RemoteDocumentChangeBuffer
|
|
3244
3227
|
* returned by `newChangeBuffer()`.
|
|
3245
3228
|
*/ removeEntry(t: any): void;
|
|
3246
|
-
getEntry(t: any, e: any):
|
|
3247
|
-
getEntries(t: any, e: any):
|
|
3248
|
-
getDocumentsMatchingQuery(t: any, e: any, n: any, s: any):
|
|
3229
|
+
getEntry(t: any, e: any): Rt;
|
|
3230
|
+
getEntries(t: any, e: any): Rt;
|
|
3231
|
+
getDocumentsMatchingQuery(t: any, e: any, n: any, s: any): Rt;
|
|
3249
3232
|
getAllFromCollectionGroup(t: any, e: any, n: any, s: any): void;
|
|
3250
|
-
Ds(t: any, e: any):
|
|
3233
|
+
Ds(t: any, e: any): Rt;
|
|
3251
3234
|
newChangeBuffer(t: any): qo;
|
|
3252
|
-
getSize(t: any):
|
|
3235
|
+
getSize(t: any): Rt;
|
|
3253
3236
|
}
|
|
3254
3237
|
/**
|
|
3255
3238
|
* @license
|
|
@@ -3291,10 +3274,10 @@ declare class Lo {
|
|
|
3291
3274
|
serializer: any;
|
|
3292
3275
|
us: Map<any, any>;
|
|
3293
3276
|
cs: Map<any, any>;
|
|
3294
|
-
getBundleMetadata(t: any, e: any):
|
|
3295
|
-
saveBundleMetadata(t: any, e: any):
|
|
3296
|
-
getNamedQuery(t: any, e: any):
|
|
3297
|
-
saveNamedQuery(t: any, e: any):
|
|
3277
|
+
getBundleMetadata(t: any, e: any): Rt;
|
|
3278
|
+
saveBundleMetadata(t: any, e: any): Rt;
|
|
3279
|
+
getNamedQuery(t: any, e: any): Rt;
|
|
3280
|
+
saveNamedQuery(t: any, e: any): Rt;
|
|
3298
3281
|
}
|
|
3299
3282
|
/**
|
|
3300
3283
|
* @license
|
|
@@ -3324,26 +3307,26 @@ declare class Lo {
|
|
|
3324
3307
|
*
|
|
3325
3308
|
* NOTE: .then() and .catch() only allow a single consumer, unlike normal
|
|
3326
3309
|
* Promises.
|
|
3327
|
-
*/ declare class
|
|
3328
|
-
static resolve(t: any):
|
|
3329
|
-
static reject(t: any):
|
|
3330
|
-
static waitFor(t: any):
|
|
3310
|
+
*/ declare class Rt {
|
|
3311
|
+
static resolve(t: any): Rt;
|
|
3312
|
+
static reject(t: any): Rt;
|
|
3313
|
+
static waitFor(t: any): Rt;
|
|
3331
3314
|
/**
|
|
3332
3315
|
* Given an array of predicate functions that asynchronously evaluate to a
|
|
3333
3316
|
* boolean, implements a short-circuiting `or` between the results. Predicates
|
|
3334
3317
|
* will be evaluated until one of them returns `true`, then stop. The final
|
|
3335
3318
|
* result will be whether any of them returned `true`.
|
|
3336
|
-
*/ static or(t: any):
|
|
3337
|
-
static forEach(t: any, e: any):
|
|
3319
|
+
*/ static or(t: any): Rt;
|
|
3320
|
+
static forEach(t: any, e: any): Rt;
|
|
3338
3321
|
/**
|
|
3339
3322
|
* Concurrently map all array elements through asynchronous function.
|
|
3340
|
-
*/ static mapArray(t: any, e: any):
|
|
3323
|
+
*/ static mapArray(t: any, e: any): Rt;
|
|
3341
3324
|
/**
|
|
3342
3325
|
* An alternative to recursive PersistencePromise calls, that avoids
|
|
3343
3326
|
* potential memory problems from unbounded chains of promises.
|
|
3344
3327
|
*
|
|
3345
3328
|
* The `action` will be called repeatedly while `condition` is true.
|
|
3346
|
-
*/ static doWhile(t: any, e: any):
|
|
3329
|
+
*/ static doWhile(t: any, e: any): Rt;
|
|
3347
3330
|
constructor(t: any);
|
|
3348
3331
|
nextCallback: ((e: any) => void) | null;
|
|
3349
3332
|
catchCallback: ((t: any) => void) | null;
|
|
@@ -3351,12 +3334,12 @@ declare class Lo {
|
|
|
3351
3334
|
callbackAttached: boolean;
|
|
3352
3335
|
result: any;
|
|
3353
3336
|
error: any;
|
|
3354
|
-
catch(t: any):
|
|
3355
|
-
next(t: any, e: any):
|
|
3337
|
+
catch(t: any): Rt;
|
|
3338
|
+
next(t: any, e: any): Rt;
|
|
3356
3339
|
toPromise(): Promise<any>;
|
|
3357
|
-
wrapUserFunction(t: any):
|
|
3358
|
-
wrapSuccess(t: any, e: any):
|
|
3359
|
-
wrapFailure(t: any, e: any):
|
|
3340
|
+
wrapUserFunction(t: any): Rt;
|
|
3341
|
+
wrapSuccess(t: any, e: any): Rt;
|
|
3342
|
+
wrapFailure(t: any, e: any): Rt;
|
|
3360
3343
|
}
|
|
3361
3344
|
/**
|
|
3362
3345
|
* @license
|
|
@@ -3568,13 +3551,13 @@ declare class Qu {
|
|
|
3568
3551
|
* transition from OnlineState.Unknown to OnlineState.Offline without waiting
|
|
3569
3552
|
* for the stream to actually fail (MAX_WATCH_STREAM_FAILURES times).
|
|
3570
3553
|
*/
|
|
3571
|
-
|
|
3554
|
+
wu: any;
|
|
3572
3555
|
/**
|
|
3573
3556
|
* Whether the client should log a warning message if it fails to connect to
|
|
3574
3557
|
* the backend (initially true, cleared after a successful stream, or if we've
|
|
3575
3558
|
* logged the message already).
|
|
3576
3559
|
*/
|
|
3577
|
-
|
|
3560
|
+
_u: boolean;
|
|
3578
3561
|
/**
|
|
3579
3562
|
* Called by RemoteStore when a watch stream is started (including on each
|
|
3580
3563
|
* backoff attempt).
|
|
@@ -3629,12 +3612,12 @@ declare class Qu {
|
|
|
3629
3612
|
* ReferenceSet also keeps a secondary set that contains references sorted by
|
|
3630
3613
|
* IDs. This one is used to efficiently implement removal of all references by
|
|
3631
3614
|
* some target ID.
|
|
3632
|
-
*/ declare class
|
|
3615
|
+
*/ declare class Oo {
|
|
3633
3616
|
ls: Ee;
|
|
3634
3617
|
ds: Ee;
|
|
3635
3618
|
/** Returns true if the reference set contains no references. */ isEmpty(): any;
|
|
3636
3619
|
/** Adds a reference to the given document key for the given ID. */ addReference(t: any, e: any): void;
|
|
3637
|
-
/** Add references to the given document keys for the given ID. */
|
|
3620
|
+
/** Add references to the given document keys for the given ID. */ _s(t: any, e: any): void;
|
|
3638
3621
|
/**
|
|
3639
3622
|
* Removes a reference to the given document key for the given
|
|
3640
3623
|
* ID.
|
|
@@ -3734,11 +3717,11 @@ declare class Eu {
|
|
|
3734
3717
|
* This class represents the online state for all clients participating in
|
|
3735
3718
|
* multi-tab. The online state is only written to by the primary client, and
|
|
3736
3719
|
* used in secondary clients to update their query views.
|
|
3737
|
-
*/ declare class
|
|
3720
|
+
*/ declare class vu {
|
|
3738
3721
|
/**
|
|
3739
3722
|
* Parses a SharedOnlineState from its JSON representation in WebStorage.
|
|
3740
3723
|
* Logs a warning and returns null if the format of the data is not valid.
|
|
3741
|
-
*/ static cr(t: any):
|
|
3724
|
+
*/ static cr(t: any): vu | null;
|
|
3742
3725
|
constructor(t: any, e: any);
|
|
3743
3726
|
clientId: any;
|
|
3744
3727
|
onlineState: any;
|
|
@@ -3812,7 +3795,7 @@ declare class Eu {
|
|
|
3812
3795
|
V: any;
|
|
3813
3796
|
/**
|
|
3814
3797
|
* Opens the specified database, creating or upgrading it if necessary.
|
|
3815
|
-
*/
|
|
3798
|
+
*/ $(t: any): any;
|
|
3816
3799
|
db: any;
|
|
3817
3800
|
B(t: any): void;
|
|
3818
3801
|
F: any;
|
|
@@ -3854,8 +3837,8 @@ declare class Eu {
|
|
|
3854
3837
|
* Call provided function with each `TargetData` that we have cached.
|
|
3855
3838
|
*/ forEachTarget(t: any, e: any): any;
|
|
3856
3839
|
Mn(t: any): any;
|
|
3857
|
-
On(t: any, e: any): any;
|
|
3858
3840
|
$n(t: any, e: any): any;
|
|
3841
|
+
On(t: any, e: any): any;
|
|
3859
3842
|
/**
|
|
3860
3843
|
* In-place updates the provided metadata to account for values in the given
|
|
3861
3844
|
* TargetData. Saving is done separately. Returns true if there were any
|
|
@@ -3863,8 +3846,8 @@ declare class Eu {
|
|
|
3863
3846
|
*/ Fn(t: any, e: any): boolean;
|
|
3864
3847
|
getTargetCount(t: any): any;
|
|
3865
3848
|
getTargetData(t: any, e: any): any;
|
|
3866
|
-
addMatchingKeys(t: any, e: any, n: any):
|
|
3867
|
-
removeMatchingKeys(t: any, e: any, n: any):
|
|
3849
|
+
addMatchingKeys(t: any, e: any, n: any): Rt;
|
|
3850
|
+
removeMatchingKeys(t: any, e: any, n: any): Rt;
|
|
3868
3851
|
removeMatchingKeysForTargetId(t: any, e: any): any;
|
|
3869
3852
|
getMatchingKeysForTargetId(t: any, e: any): any;
|
|
3870
3853
|
containsKey(t: any, e: any): any;
|
|
@@ -3896,7 +3879,7 @@ declare class Eu {
|
|
|
3896
3879
|
/**
|
|
3897
3880
|
* The RemoteDocumentCache for IndexedDb. To construct, invoke
|
|
3898
3881
|
* `newIndexedDbRemoteDocumentCache()`.
|
|
3899
|
-
*/ declare class
|
|
3882
|
+
*/ declare class Ro {
|
|
3900
3883
|
constructor(t: any);
|
|
3901
3884
|
serializer: any;
|
|
3902
3885
|
setIndexManager(t: any): void;
|
|
@@ -4004,10 +3987,10 @@ declare class oo {
|
|
|
4004
3987
|
getHighestUnacknowledgedBatchId(t: any): any;
|
|
4005
3988
|
getAllMutationBatches(t: any): any;
|
|
4006
3989
|
getAllMutationBatchesAffectingDocumentKey(t: any, e: any): any;
|
|
4007
|
-
getAllMutationBatchesAffectingDocumentKeys(t: any, e: any):
|
|
3990
|
+
getAllMutationBatchesAffectingDocumentKeys(t: any, e: any): Rt;
|
|
4008
3991
|
getAllMutationBatchesAffectingQuery(t: any, e: any): any;
|
|
4009
|
-
Sn(t: any, e: any):
|
|
4010
|
-
removeMutationBatch(t: any, e: any):
|
|
3992
|
+
Sn(t: any, e: any): Rt;
|
|
3993
|
+
removeMutationBatch(t: any, e: any): Rt;
|
|
4011
3994
|
/**
|
|
4012
3995
|
* Clears the cached keys for a mutation batch. This method should be
|
|
4013
3996
|
* called by secondary clients after they process mutation updates.
|
|
@@ -4056,21 +4039,21 @@ declare class Jr {
|
|
|
4056
4039
|
getCollectionParents(t: any, e: any): any;
|
|
4057
4040
|
addFieldIndex(t: any, e: any): any;
|
|
4058
4041
|
deleteFieldIndex(t: any, e: any): any;
|
|
4059
|
-
getDocumentsMatchingTarget(t: any, e: any):
|
|
4042
|
+
getDocumentsMatchingTarget(t: any, e: any): Rt;
|
|
4060
4043
|
un(t: any): any;
|
|
4061
4044
|
/**
|
|
4062
4045
|
* Constructs a key range query on `DbIndexEntryStore` that unions all
|
|
4063
4046
|
* bounds.
|
|
4064
4047
|
*/ ln(t: any, e: any, n: any, s: any, i: any, r: any, o: any): IDBKeyRange[];
|
|
4065
4048
|
/** Generates the lower bound for `arrayValue` and `directionalValue`. */ dn(t: any, e: any, n: any, s: any): kr;
|
|
4066
|
-
/** Generates the upper bound for `arrayValue` and `directionalValue`. */
|
|
4049
|
+
/** Generates the upper bound for `arrayValue` and `directionalValue`. */ wn(t: any, e: any, n: any, s: any): kr;
|
|
4067
4050
|
cn(t: any, e: any): any;
|
|
4068
|
-
getIndexType(t: any, e: any):
|
|
4051
|
+
getIndexType(t: any, e: any): Rt;
|
|
4069
4052
|
/**
|
|
4070
4053
|
* Returns the byte encoded form of the directional values in the field index.
|
|
4071
4054
|
* Returns `null` if the document does not have all fields specified in the
|
|
4072
4055
|
* index.
|
|
4073
|
-
*/
|
|
4056
|
+
*/ _n(t: any, e: any): Uint8Array | null;
|
|
4074
4057
|
/** Encodes a single value to the ascending index format. */ fn(t: any): Uint8Array;
|
|
4075
4058
|
/**
|
|
4076
4059
|
* Returns an encoded form of the document key that sorts based on the key
|
|
@@ -4096,16 +4079,16 @@ declare class Jr {
|
|
|
4096
4079
|
getFieldIndexes(t: any, e: any): any;
|
|
4097
4080
|
getNextCollectionGroupToUpdate(t: any): any;
|
|
4098
4081
|
updateCollectionGroup(t: any, e: any, n: any): any;
|
|
4099
|
-
updateIndexEntries(t: any, e: any):
|
|
4100
|
-
Rn(t: any, e: any, n: any, s: any): any;
|
|
4082
|
+
updateIndexEntries(t: any, e: any): Rt;
|
|
4101
4083
|
vn(t: any, e: any, n: any, s: any): any;
|
|
4084
|
+
Rn(t: any, e: any, n: any, s: any): any;
|
|
4102
4085
|
Tn(t: any, e: any, n: any): any;
|
|
4103
4086
|
/** Creates the index entries for the given document. */ En(t: any, e: any): Ee;
|
|
4104
4087
|
/**
|
|
4105
4088
|
* Updates the index entries for the provided document by deleting entries
|
|
4106
4089
|
* that are no longer referenced in `newEntries` and adding all newly added
|
|
4107
4090
|
* entries.
|
|
4108
|
-
*/ An(t: any, e: any, n: any, s: any, i: any):
|
|
4091
|
+
*/ An(t: any, e: any, n: any, s: any, i: any): Rt;
|
|
4109
4092
|
In(t: any): any;
|
|
4110
4093
|
/**
|
|
4111
4094
|
* Returns a new set of IDB ranges that splits the existing range and excludes
|
|
@@ -4114,7 +4097,7 @@ declare class Jr {
|
|
|
4114
4097
|
*/ createRange(t: any, e: any, n: any): IDBKeyRange[];
|
|
4115
4098
|
Pn(t: any, e: any): boolean;
|
|
4116
4099
|
getMinOffsetFromCollectionGroup(t: any, e: any): any;
|
|
4117
|
-
getMinOffset(t: any, e: any):
|
|
4100
|
+
getMinOffset(t: any, e: any): Rt;
|
|
4118
4101
|
}
|
|
4119
4102
|
/**
|
|
4120
4103
|
* @license
|
|
@@ -4134,8 +4117,8 @@ declare class Jr {
|
|
|
4134
4117
|
*/
|
|
4135
4118
|
/**
|
|
4136
4119
|
* Implementation of DocumentOverlayCache using IndexedDb.
|
|
4137
|
-
*/ declare class
|
|
4138
|
-
static fe(t: any, e: any):
|
|
4120
|
+
*/ declare class Rr {
|
|
4121
|
+
static fe(t: any, e: any): Rr;
|
|
4139
4122
|
/**
|
|
4140
4123
|
* @param serializer - The document serializer.
|
|
4141
4124
|
* @param userId - The userId for which we are accessing overlays.
|
|
@@ -4144,9 +4127,9 @@ declare class Jr {
|
|
|
4144
4127
|
serializer: any;
|
|
4145
4128
|
userId: any;
|
|
4146
4129
|
getOverlay(t: any, e: any): any;
|
|
4147
|
-
getOverlays(t: any, e: any):
|
|
4148
|
-
saveOverlays(t: any, e: any, n: any):
|
|
4149
|
-
removeOverlaysForBatchId(t: any, e: any, n: any):
|
|
4130
|
+
getOverlays(t: any, e: any): Rt;
|
|
4131
|
+
saveOverlays(t: any, e: any, n: any): Rt;
|
|
4132
|
+
removeOverlaysForBatchId(t: any, e: any, n: any): Rt;
|
|
4150
4133
|
getOverlaysForCollection(t: any, e: any, n: any): any;
|
|
4151
4134
|
getOverlaysForCollectionGroup(t: any, e: any, n: any, s: any): any;
|
|
4152
4135
|
de(t: any, e: any): any;
|
|
@@ -4208,10 +4191,10 @@ declare class Ae {
|
|
|
4208
4191
|
/**
|
|
4209
4192
|
* Handles the details of adding and updating documents in the MemoryRemoteDocumentCache.
|
|
4210
4193
|
*/
|
|
4211
|
-
declare class qo extends
|
|
4194
|
+
declare class qo extends vo {
|
|
4212
4195
|
constructor(t: any);
|
|
4213
4196
|
rs: any;
|
|
4214
|
-
applyChanges(t: any):
|
|
4197
|
+
applyChanges(t: any): Rt;
|
|
4215
4198
|
getFromCache(t: any, e: any): any;
|
|
4216
4199
|
getAllFromCache(t: any, e: any): any;
|
|
4217
4200
|
}
|
|
@@ -4249,7 +4232,7 @@ declare class Ie {
|
|
|
4249
4232
|
* Unlike the MemoryRemoteDocumentChangeBuffer, the IndexedDb implementation computes the size
|
|
4250
4233
|
* delta for all submitted changes. This avoids having to re-read all documents from IndexedDb
|
|
4251
4234
|
* when we apply the changes.
|
|
4252
|
-
*/ declare class bo extends
|
|
4235
|
+
*/ declare class bo extends vo {
|
|
4253
4236
|
/**
|
|
4254
4237
|
* @param documentCache - The IndexedDbRemoteDocumentCache to apply the changes to.
|
|
4255
4238
|
* @param trackRemovals - Whether to create sentinel deletes that can be tracked by
|
|
@@ -4259,7 +4242,7 @@ declare class Ie {
|
|
|
4259
4242
|
rs: any;
|
|
4260
4243
|
trackRemovals: any;
|
|
4261
4244
|
os: os;
|
|
4262
|
-
applyChanges(t: any):
|
|
4245
|
+
applyChanges(t: any): Rt;
|
|
4263
4246
|
getFromCache(t: any, e: any): any;
|
|
4264
4247
|
getAllFromCache(t: any, e: any): any;
|
|
4265
4248
|
}
|
|
@@ -4406,7 +4389,7 @@ declare class Ie {
|
|
|
4406
4389
|
* PORTING NOTE: This class was implemented then removed from other platforms.
|
|
4407
4390
|
* If byte-counting ends up being needed on the other platforms, consider
|
|
4408
4391
|
* porting this class as part of that implementation work.
|
|
4409
|
-
*/ declare class
|
|
4392
|
+
*/ declare class vo {
|
|
4410
4393
|
changes: os;
|
|
4411
4394
|
changesApplied: boolean;
|
|
4412
4395
|
/**
|
|
@@ -4460,7 +4443,7 @@ declare class Ie {
|
|
|
4460
4443
|
Ce(t: any): void;
|
|
4461
4444
|
/** Writes utf8 bytes into this byte sequence, ascending. */ ke(t: any): void;
|
|
4462
4445
|
/** Writes utf8 bytes into this byte sequence, descending */ Me(t: any): void;
|
|
4463
|
-
|
|
4446
|
+
$e(t: any): void;
|
|
4464
4447
|
Be(t: any): void;
|
|
4465
4448
|
/**
|
|
4466
4449
|
* Writes the "infinity" byte sequence that sorts after all other byte
|
|
@@ -4482,7 +4465,7 @@ declare class Ie {
|
|
|
4482
4465
|
* -0.0 < 0.0
|
|
4483
4466
|
* all non-NaN < NaN
|
|
4484
4467
|
* NaN = NaN
|
|
4485
|
-
*/
|
|
4468
|
+
*/ Oe(t: any): Uint8Array;
|
|
4486
4469
|
/** Writes a single byte ascending to the buffer. */ Se(t: any): void;
|
|
4487
4470
|
/** Writes a single byte descending to the buffer. */ xe(t: any): void;
|
|
4488
4471
|
De(): void;
|
|
@@ -4507,4 +4490,4 @@ declare class xr {
|
|
|
4507
4490
|
ye(t: any): void;
|
|
4508
4491
|
me(): void;
|
|
4509
4492
|
}
|
|
4510
|
-
export {
|
|
4493
|
+
export { Wl as AbstractUserDataWriter, Lh as AggregateField, qh as AggregateQuerySnapshot, Uh as Bytes, Ah as CACHE_SIZE_UNLIMITED, wh as CollectionReference, fh as DocumentReference, sf as DocumentSnapshot, Kh as FieldPath, Qh as FieldValue, vh as Firestore, U as FirestoreError, jh as GeoPoint, Eh as LoadBundleTask, dh as Query, Vl as QueryCompositeFilterConstraint, vl as QueryConstraint, rf as QueryDocumentSnapshot, Bl as QueryEndAtConstraint, Pl as QueryFieldFilterConstraint, Nl as QueryLimitConstraint, Cl as QueryOrderByConstraint, of as QuerySnapshot, $l as QueryStartAtConstraint, nf as SnapshotMetadata, it as Timestamp, qf as Transaction, Bf as WriteBatch, Oe as _DatabaseId, ht as _DocumentKey, X as _EmptyAppCheckTokenProvider, Q as _EmptyAuthCredentialsProvider, at as _FieldPath, ci as _TestingHooks, uh as _cast, B as _debugAssert, be as _isBase64Available, M as _logWarn, sh as _validateIsNotUsedTogether, pf as addDoc, tf as aggregateFieldEqual, ef as aggregateQuerySnapshotEqual, Dl as and, jf as arrayRemove, Qf as arrayUnion, Xl as average, xh as clearIndexedDbPersistence, _h as collection, mh as collectionGroup, lh as connectFirestoreEmulator, Zl as count, yf as deleteDoc, Kf as deleteField, Mh as disableNetwork, gh as doc, Gh as documentId, Sh as enableIndexedDbPersistence, Dh as enableMultiTabIndexedDbPersistence, kh as enableNetwork, ql as endAt, Ll as endBefore, bh as ensureFirestoreConfigured, Ef as executeWrite, Rf as getAggregateFromServer, vf as getCountFromServer, af as getDoc, lf as getDocFromCache, ff as getDocFromServer, df as getDocs, wf as getDocsFromCache, _f as getDocsFromServer, Ph as getFirestore, zf as increment, Rh as initializeFirestore, kl as limit, Ml as limitToLast, Oh as loadBundle, Df as memoryEagerGarbageCollector, xf as memoryLocalCache, Cf as memoryLruGarbageCollector, Fh as namedQuery, If as onSnapshot, Tf as onSnapshotsInSync, Sl as or, xl as orderBy, Nf as persistentLocalCache, Of as persistentMultipleTabManager, $f as persistentSingleTabManager, Rl as query, ph as queryEqual, yh as refEqual, Uf as runTransaction, Gf as serverTimestamp, mf as setDoc, Hf as setIndexConfiguration, x as setLogLevel, cf as snapshotEqual, Fl as startAfter, Ol as startAt, Yl as sum, $h as terminate, gf as updateDoc, Nh as waitForPendingWrites, bl as where, Wf as writeBatch };
|