@firebase/firestore 3.4.15 → 3.5.0-20220914164443
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/index.esm2017.js +2818 -2824
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +2773 -2779
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +4 -4
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +4 -4
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +2835 -2841
- package/dist/index.rn.js.map +1 -1
- 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.browser.esm5.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/index.rn.esm2017.js.map +1 -1
- package/dist/packages/firestore/dist/index.esm2017.d.ts +160 -160
- package/package.json +3 -3
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
22
|
*/
|
|
23
|
-
declare class
|
|
23
|
+
declare class nl {
|
|
24
24
|
convertValue(t: any, e?: string): any;
|
|
25
25
|
convertObject(t: any, e: any): {};
|
|
26
|
-
convertGeoPoint(t: any):
|
|
26
|
+
convertGeoPoint(t: any): Za;
|
|
27
27
|
convertArray(t: any, e: any): any;
|
|
28
28
|
convertServerTimestamp(t: any, e: any): any;
|
|
29
|
-
convertTimestamp(t: any):
|
|
30
|
-
convertDocumentKey(t: any, e: any):
|
|
29
|
+
convertTimestamp(t: any): et;
|
|
30
|
+
convertDocumentKey(t: any, e: any): ut;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* @license
|
|
@@ -47,18 +47,18 @@ declare class cl {
|
|
|
47
47
|
*/
|
|
48
48
|
/**
|
|
49
49
|
* An immutable object representing an array of bytes.
|
|
50
|
-
*/ declare class
|
|
50
|
+
*/ declare class Ya {
|
|
51
51
|
/**
|
|
52
52
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
53
53
|
* bytes.
|
|
54
54
|
*
|
|
55
55
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
56
|
-
*/ static fromBase64String(t: any):
|
|
56
|
+
*/ static fromBase64String(t: any): Ya;
|
|
57
57
|
/**
|
|
58
58
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
59
59
|
*
|
|
60
60
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
61
|
-
*/ static fromUint8Array(t: any):
|
|
61
|
+
*/ static fromUint8Array(t: any): Ya;
|
|
62
62
|
/** @hideconstructor */
|
|
63
63
|
constructor(t: any);
|
|
64
64
|
_byteString: any;
|
|
@@ -100,11 +100,11 @@ declare class cl {
|
|
|
100
100
|
* See the License for the specific language governing permissions and
|
|
101
101
|
* limitations under the License.
|
|
102
102
|
*/
|
|
103
|
-
/** DOMException error code constants. */ declare const
|
|
103
|
+
/** DOMException error code constants. */ declare const xa: -1;
|
|
104
104
|
/**
|
|
105
105
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
106
106
|
* document references, and querying for documents (using {@link query}).
|
|
107
|
-
*/ declare class
|
|
107
|
+
*/ declare class Aa extends Ea {
|
|
108
108
|
_path: any;
|
|
109
109
|
/** The collection's identifier. */ get id(): any;
|
|
110
110
|
/**
|
|
@@ -114,7 +114,7 @@ declare class cl {
|
|
|
114
114
|
/**
|
|
115
115
|
* A reference to the containing `DocumentReference` if this is a
|
|
116
116
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
117
|
-
*/ get parent():
|
|
117
|
+
*/ get parent(): Ta | null;
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
120
120
|
* @license
|
|
@@ -136,7 +136,7 @@ declare class cl {
|
|
|
136
136
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
137
137
|
* and can be used to write, read, or listen to the location. The document at
|
|
138
138
|
* the referenced location may or may not exist.
|
|
139
|
-
*/ declare class
|
|
139
|
+
*/ declare class Ta {
|
|
140
140
|
/** @hideconstructor */
|
|
141
141
|
constructor(t: any, e: any, n: any);
|
|
142
142
|
converter: any;
|
|
@@ -154,8 +154,8 @@ declare class cl {
|
|
|
154
154
|
*/ get path(): any;
|
|
155
155
|
/**
|
|
156
156
|
* The collection this `DocumentReference` belongs to.
|
|
157
|
-
*/ get parent():
|
|
158
|
-
withConverter(t: any):
|
|
157
|
+
*/ get parent(): Aa;
|
|
158
|
+
withConverter(t: any): Ta;
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
161
|
* A `DocumentSnapshot` contains data read from a document in your Firestore
|
|
@@ -165,7 +165,7 @@ declare class cl {
|
|
|
165
165
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
166
166
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
167
167
|
* explicitly verify a document's existence.
|
|
168
|
-
*/ declare class
|
|
168
|
+
*/ declare class Dh extends Ph {
|
|
169
169
|
/** @hideconstructor protected */
|
|
170
170
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
171
171
|
_firestoreImpl: any;
|
|
@@ -211,7 +211,7 @@ declare class cl {
|
|
|
211
211
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
212
212
|
* name is provided, the path will point to a nested field in a document.
|
|
213
213
|
*/
|
|
214
|
-
declare class
|
|
214
|
+
declare class Ha {
|
|
215
215
|
/**
|
|
216
216
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
217
217
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -219,7 +219,7 @@ declare class eh {
|
|
|
219
219
|
* @param fieldNames - A list of field names.
|
|
220
220
|
*/
|
|
221
221
|
constructor(...t: any[]);
|
|
222
|
-
_internalPath:
|
|
222
|
+
_internalPath: ot;
|
|
223
223
|
/**
|
|
224
224
|
* Returns true if this `FieldPath` is equal to the provided one.
|
|
225
225
|
*
|
|
@@ -246,7 +246,7 @@ declare class eh {
|
|
|
246
246
|
/**
|
|
247
247
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
248
248
|
* or `update()`.
|
|
249
|
-
*/ declare class
|
|
249
|
+
*/ declare class Xa {
|
|
250
250
|
/**
|
|
251
251
|
* @param _methodName - The public API endpoint that returns this class.
|
|
252
252
|
* @hideconstructor
|
|
@@ -259,10 +259,10 @@ declare class eh {
|
|
|
259
259
|
*
|
|
260
260
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
261
261
|
*/
|
|
262
|
-
declare class
|
|
263
|
-
_queue:
|
|
262
|
+
declare class Na extends pa {
|
|
263
|
+
_queue: Sa;
|
|
264
264
|
}
|
|
265
|
-
/** An error returned by a Firestore operation. */ declare class
|
|
265
|
+
/** An error returned by a Firestore operation. */ declare class B extends c {
|
|
266
266
|
/** @hideconstructor */
|
|
267
267
|
constructor(t: any, e: any);
|
|
268
268
|
}
|
|
@@ -288,7 +288,7 @@ declare class Ba extends ba {
|
|
|
288
288
|
*
|
|
289
289
|
* Latitude values are in the range of [-90, 90].
|
|
290
290
|
* Longitude values are in the range of [-180, 180].
|
|
291
|
-
*/ declare class
|
|
291
|
+
*/ declare class Za {
|
|
292
292
|
/**
|
|
293
293
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
294
294
|
* longitude values.
|
|
@@ -319,9 +319,9 @@ declare class Ba extends ba {
|
|
|
319
319
|
* with an underscore.
|
|
320
320
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
321
321
|
}
|
|
322
|
-
declare class
|
|
322
|
+
declare class Ca {
|
|
323
323
|
_progressObserver: {};
|
|
324
|
-
_taskCompletionResolver:
|
|
324
|
+
_taskCompletionResolver: L;
|
|
325
325
|
_lastProgress: {
|
|
326
326
|
taskState: string;
|
|
327
327
|
totalBytes: number;
|
|
@@ -371,7 +371,7 @@ declare class Fa {
|
|
|
371
371
|
/**
|
|
372
372
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
373
373
|
* construct refined `Query` objects by adding filters and ordering.
|
|
374
|
-
*/ declare class
|
|
374
|
+
*/ declare class Ea {
|
|
375
375
|
/** @hideconstructor protected */
|
|
376
376
|
constructor(t: any, e: any, n: any);
|
|
377
377
|
converter: any;
|
|
@@ -379,7 +379,7 @@ declare class Fa {
|
|
|
379
379
|
/** The type of this Firestore reference. */
|
|
380
380
|
type: string;
|
|
381
381
|
firestore: any;
|
|
382
|
-
withConverter(t: any):
|
|
382
|
+
withConverter(t: any): Ea;
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
385
385
|
* A `QueryConstraint` is used to narrow the set of documents returned by a
|
|
@@ -388,7 +388,7 @@ declare class Fa {
|
|
|
388
388
|
* endBefore:1}, {@link (endAt:1)}, {@link limit} or {@link limitToLast} and
|
|
389
389
|
* can then be passed to {@link query} to create a new query instance that
|
|
390
390
|
* also contains this `QueryConstraint`.
|
|
391
|
-
*/ declare class
|
|
391
|
+
*/ declare class Oh {
|
|
392
392
|
}
|
|
393
393
|
/**
|
|
394
394
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -400,7 +400,7 @@ declare class Fa {
|
|
|
400
400
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
401
401
|
* `exists` property will always be true and `data()` will never return
|
|
402
402
|
* 'undefined'.
|
|
403
|
-
*/ declare class
|
|
403
|
+
*/ declare class Ch extends Dh {
|
|
404
404
|
}
|
|
405
405
|
/**
|
|
406
406
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -408,13 +408,13 @@ declare class Fa {
|
|
|
408
408
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
409
409
|
* number of documents can be determined via the `empty` and `size`
|
|
410
410
|
* properties.
|
|
411
|
-
*/ declare class
|
|
411
|
+
*/ declare class xh {
|
|
412
412
|
/** @hideconstructor */
|
|
413
413
|
constructor(t: any, e: any, n: any, s: any);
|
|
414
414
|
_firestore: any;
|
|
415
415
|
_userDataWriter: any;
|
|
416
416
|
_snapshot: any;
|
|
417
|
-
metadata:
|
|
417
|
+
metadata: Sh;
|
|
418
418
|
query: any;
|
|
419
419
|
/** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
|
|
420
420
|
/** The number of documents in the `QuerySnapshot`. */ get size(): any;
|
|
@@ -456,7 +456,7 @@ declare class Fa {
|
|
|
456
456
|
*/
|
|
457
457
|
/**
|
|
458
458
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
459
|
-
*/ declare class
|
|
459
|
+
*/ declare class Sh {
|
|
460
460
|
/** @hideconstructor */
|
|
461
461
|
constructor(t: any, e: any);
|
|
462
462
|
hasPendingWrites: any;
|
|
@@ -498,19 +498,19 @@ declare class Fa {
|
|
|
498
498
|
* For examples and further specifications, refer to the
|
|
499
499
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
500
500
|
*/
|
|
501
|
-
declare class
|
|
501
|
+
declare class et {
|
|
502
502
|
/**
|
|
503
503
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
504
504
|
*
|
|
505
505
|
* @returns a new timestamp representing the current date.
|
|
506
|
-
*/ static now():
|
|
506
|
+
*/ static now(): et;
|
|
507
507
|
/**
|
|
508
508
|
* Creates a new timestamp from the given date.
|
|
509
509
|
*
|
|
510
510
|
* @param date - The date to initialize the `Timestamp` from.
|
|
511
511
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
512
512
|
* date.
|
|
513
|
-
*/ static fromDate(t: any):
|
|
513
|
+
*/ static fromDate(t: any): et;
|
|
514
514
|
/**
|
|
515
515
|
* Creates a new timestamp from the given number of milliseconds.
|
|
516
516
|
*
|
|
@@ -518,7 +518,7 @@ declare class ut {
|
|
|
518
518
|
* 1970-01-01T00:00:00Z.
|
|
519
519
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
520
520
|
* number of milliseconds.
|
|
521
|
-
*/ static fromMillis(t: any):
|
|
521
|
+
*/ static fromMillis(t: any): et;
|
|
522
522
|
/**
|
|
523
523
|
* Creates a new timestamp.
|
|
524
524
|
*
|
|
@@ -565,11 +565,11 @@ declare class ut {
|
|
|
565
565
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
566
566
|
*/ valueOf(): string;
|
|
567
567
|
}
|
|
568
|
-
declare const
|
|
568
|
+
declare const El_base: {
|
|
569
569
|
new (t: any, e: any): {
|
|
570
570
|
_firestore: any;
|
|
571
571
|
_transaction: any;
|
|
572
|
-
_dataReader:
|
|
572
|
+
_dataReader: rh;
|
|
573
573
|
/**
|
|
574
574
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
575
575
|
*
|
|
@@ -608,7 +608,7 @@ declare const Vl_base: {
|
|
|
608
608
|
* The `Transaction` object passed to a transaction's `updateFunction` provides
|
|
609
609
|
* the methods to read and write data within the transaction context. See
|
|
610
610
|
* {@link runTransaction}.
|
|
611
|
-
*/ declare class
|
|
611
|
+
*/ declare class El extends El_base {
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
614
|
* @license
|
|
@@ -633,22 +633,22 @@ declare const Vl_base: {
|
|
|
633
633
|
* provides methods for adding writes to the write batch. None of the writes
|
|
634
634
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
635
635
|
* called.
|
|
636
|
-
*/ declare class
|
|
636
|
+
*/ declare class rl {
|
|
637
637
|
/** @hideconstructor */
|
|
638
638
|
constructor(t: any, e: any);
|
|
639
639
|
_firestore: any;
|
|
640
640
|
_commitHandler: any;
|
|
641
641
|
_mutations: any[];
|
|
642
642
|
_committed: boolean;
|
|
643
|
-
_dataReader:
|
|
644
|
-
set(t: any, e: any, n: any):
|
|
645
|
-
update(t: any, e: any, n: any, ...s: any[]):
|
|
643
|
+
_dataReader: rh;
|
|
644
|
+
set(t: any, e: any, n: any): rl;
|
|
645
|
+
update(t: any, e: any, n: any, ...s: any[]): rl;
|
|
646
646
|
/**
|
|
647
647
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
648
648
|
*
|
|
649
649
|
* @param documentRef - A reference to the document to be deleted.
|
|
650
650
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
651
|
-
*/ delete(t: any):
|
|
651
|
+
*/ delete(t: any): rl;
|
|
652
652
|
/**
|
|
653
653
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
654
654
|
*
|
|
@@ -668,8 +668,8 @@ declare const Vl_base: {
|
|
|
668
668
|
* Represents the database ID a Firestore client is associated with.
|
|
669
669
|
* @internal
|
|
670
670
|
*/
|
|
671
|
-
declare class
|
|
672
|
-
static empty():
|
|
671
|
+
declare class ee {
|
|
672
|
+
static empty(): ee;
|
|
673
673
|
constructor(t: any, e: any);
|
|
674
674
|
projectId: any;
|
|
675
675
|
database: any;
|
|
@@ -694,10 +694,10 @@ declare class ue {
|
|
|
694
694
|
*/
|
|
695
695
|
/**
|
|
696
696
|
* @internal
|
|
697
|
-
*/ declare class
|
|
698
|
-
static fromPath(t: any):
|
|
699
|
-
static fromName(t: any):
|
|
700
|
-
static empty():
|
|
697
|
+
*/ declare class ut {
|
|
698
|
+
static fromPath(t: any): ut;
|
|
699
|
+
static fromName(t: any): ut;
|
|
700
|
+
static empty(): ut;
|
|
701
701
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
702
702
|
static isDocumentKey(t: any): boolean;
|
|
703
703
|
/**
|
|
@@ -705,7 +705,7 @@ declare class ue {
|
|
|
705
705
|
*
|
|
706
706
|
* @param segments - The segments of the path to the document
|
|
707
707
|
* @returns A new instance of DocumentKey
|
|
708
|
-
*/ static fromSegments(t: any):
|
|
708
|
+
*/ static fromSegments(t: any): ut;
|
|
709
709
|
constructor(t: any);
|
|
710
710
|
path: any;
|
|
711
711
|
get collectionGroup(): any;
|
|
@@ -718,8 +718,8 @@ declare class ue {
|
|
|
718
718
|
/**
|
|
719
719
|
* An AppCheck token provider that always yields an empty token.
|
|
720
720
|
* @internal
|
|
721
|
-
*/ declare class
|
|
722
|
-
getToken(): Promise<
|
|
721
|
+
*/ declare class H {
|
|
722
|
+
getToken(): Promise<W>;
|
|
723
723
|
invalidateToken(): void;
|
|
724
724
|
start(t: any, e: any): void;
|
|
725
725
|
shutdown(): void;
|
|
@@ -727,7 +727,7 @@ declare class ue {
|
|
|
727
727
|
/**
|
|
728
728
|
* A CredentialsProvider that always yields an empty token.
|
|
729
729
|
* @internal
|
|
730
|
-
*/ declare class
|
|
730
|
+
*/ declare class q {
|
|
731
731
|
getToken(): Promise<null>;
|
|
732
732
|
invalidateToken(): void;
|
|
733
733
|
start(t: any, e: any): void;
|
|
@@ -736,14 +736,14 @@ declare class ue {
|
|
|
736
736
|
/**
|
|
737
737
|
* A dot-separated path for navigating sub-objects within a document.
|
|
738
738
|
* @internal
|
|
739
|
-
*/ declare class
|
|
739
|
+
*/ declare class ot extends st {
|
|
740
740
|
/**
|
|
741
741
|
* Returns true if the string could be used as a segment in a field path
|
|
742
742
|
* without escaping.
|
|
743
743
|
*/ static isValidIdentifier(t: any): boolean;
|
|
744
744
|
/**
|
|
745
745
|
* The field designating the key of a document.
|
|
746
|
-
*/ static keyField():
|
|
746
|
+
*/ static keyField(): ot;
|
|
747
747
|
/**
|
|
748
748
|
* Parses a field string from the given server-formatted string.
|
|
749
749
|
*
|
|
@@ -753,16 +753,16 @@ declare class ue {
|
|
|
753
753
|
*
|
|
754
754
|
* TODO(b/37244157): we should make this more strict. Right now, it allows
|
|
755
755
|
* non-identifier path components, even if they aren't escaped.
|
|
756
|
-
*/ static fromServerFormat(t: any):
|
|
757
|
-
static emptyPath():
|
|
758
|
-
construct(t: any, e: any, n: any):
|
|
756
|
+
*/ static fromServerFormat(t: any): ot;
|
|
757
|
+
static emptyPath(): ot;
|
|
758
|
+
construct(t: any, e: any, n: any): ot;
|
|
759
759
|
canonicalString(): any;
|
|
760
760
|
toString(): any;
|
|
761
761
|
/**
|
|
762
762
|
* Returns true if this field references the key of a document.
|
|
763
763
|
*/ isKeyField(): boolean;
|
|
764
764
|
}
|
|
765
|
-
declare function
|
|
765
|
+
declare function ma(t: any, e: any): any;
|
|
766
766
|
/**
|
|
767
767
|
* Fails if the given assertion condition is false, throwing an Error with the
|
|
768
768
|
* given message if it did.
|
|
@@ -772,7 +772,7 @@ declare function Ea(t: any, e: any): any;
|
|
|
772
772
|
* happen in this case.
|
|
773
773
|
*
|
|
774
774
|
* @internal
|
|
775
|
-
*/ declare function
|
|
775
|
+
*/ declare function O(t: any, e: any): void;
|
|
776
776
|
/**
|
|
777
777
|
* @license
|
|
778
778
|
* Copyright 2020 Google LLC
|
|
@@ -791,14 +791,14 @@ declare function Ea(t: any, e: any): any;
|
|
|
791
791
|
*/
|
|
792
792
|
/** Converts a Base64 encoded string to a binary string. */
|
|
793
793
|
/** True if and only if the Base64 conversion functions are available. */
|
|
794
|
-
declare function
|
|
794
|
+
declare function Qt(): boolean;
|
|
795
795
|
/**
|
|
796
796
|
* @internal
|
|
797
|
-
*/ declare function
|
|
797
|
+
*/ declare function x(t: any, ...e: any[]): void;
|
|
798
798
|
/**
|
|
799
799
|
* Validates that two boolean options are not set at the same time.
|
|
800
800
|
* @internal
|
|
801
|
-
*/ declare function
|
|
801
|
+
*/ declare function fa(t: any, e: any, n: any, s: any): void;
|
|
802
802
|
/**
|
|
803
803
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
804
804
|
* assigning it a document ID automatically.
|
|
@@ -808,7 +808,7 @@ declare function Yt(): boolean;
|
|
|
808
808
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
809
809
|
* newly created document after it has been written to the backend (Note that it
|
|
810
810
|
* won't resolve while you're offline).
|
|
811
|
-
*/ declare function
|
|
811
|
+
*/ declare function gl(t: any, e: any): Promise<Ta>;
|
|
812
812
|
/**
|
|
813
813
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
814
814
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -819,7 +819,7 @@ declare function Yt(): boolean;
|
|
|
819
819
|
* @param elements - The elements to remove from the array.
|
|
820
820
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
821
821
|
* `updateDoc()`
|
|
822
|
-
*/ declare function
|
|
822
|
+
*/ declare function vl(...t: any[]): fh;
|
|
823
823
|
/**
|
|
824
824
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
825
825
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -831,9 +831,9 @@ declare function Yt(): boolean;
|
|
|
831
831
|
* @param elements - The elements to union into the array.
|
|
832
832
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
833
833
|
* `updateDoc()`.
|
|
834
|
-
*/ declare function
|
|
835
|
-
declare function
|
|
836
|
-
declare function
|
|
834
|
+
*/ declare function Pl(...t: any[]): lh;
|
|
835
|
+
declare function Ua(t: any): Promise<any>;
|
|
836
|
+
declare function Ra(t: any, e: any, ...n: any[]): Aa;
|
|
837
837
|
/**
|
|
838
838
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
839
839
|
* database that are contained in a collection or subcollection with the
|
|
@@ -844,7 +844,7 @@ declare function Da(t: any, e: any, ...n: any[]): Sa;
|
|
|
844
844
|
* collection or subcollection with this ID as the last segment of its path
|
|
845
845
|
* will be included. Cannot contain a slash.
|
|
846
846
|
* @returns The created `Query`.
|
|
847
|
-
*/ declare function
|
|
847
|
+
*/ declare function ba(t: any, e: any): Ea;
|
|
848
848
|
/**
|
|
849
849
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
850
850
|
*
|
|
@@ -857,14 +857,14 @@ declare function Da(t: any, e: any, ...n: any[]): Sa;
|
|
|
857
857
|
* @param port - the emulator port (ex: 9000).
|
|
858
858
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
859
859
|
* Security Rules.
|
|
860
|
-
*/ declare function
|
|
860
|
+
*/ declare function Ia(t: any, e: any, n: any, s?: {}): void;
|
|
861
861
|
/**
|
|
862
862
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
863
863
|
*
|
|
864
864
|
* @param reference - A reference to the document to delete.
|
|
865
865
|
* @returns A Promise resolved once the document has been successfully
|
|
866
866
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
867
|
-
*/ declare function
|
|
867
|
+
*/ declare function ml(t: any): Promise<any>;
|
|
868
868
|
/**
|
|
869
869
|
* @license
|
|
870
870
|
* Copyright 2020 Google LLC
|
|
@@ -884,7 +884,7 @@ declare function Da(t: any, e: any, ...n: any[]): Sa;
|
|
|
884
884
|
/**
|
|
885
885
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
886
886
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
887
|
-
*/ declare function
|
|
887
|
+
*/ declare function Rl(): ch;
|
|
888
888
|
/**
|
|
889
889
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
890
890
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -892,12 +892,12 @@ declare function Da(t: any, e: any, ...n: any[]): Sa;
|
|
|
892
892
|
* operations will be queued until the network is restored.
|
|
893
893
|
*
|
|
894
894
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
895
|
-
*/ declare function
|
|
896
|
-
declare function
|
|
895
|
+
*/ declare function Ga(t: any): any;
|
|
896
|
+
declare function Pa(t: any, e: any, ...n: any[]): Ta;
|
|
897
897
|
/**
|
|
898
898
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
899
899
|
* It can be used in queries to sort or filter by the document ID.
|
|
900
|
-
*/ declare function
|
|
900
|
+
*/ declare function Ja(): Ha;
|
|
901
901
|
/**
|
|
902
902
|
* Attempts to enable persistent storage, if possible.
|
|
903
903
|
*
|
|
@@ -920,7 +920,7 @@ declare function xa(t: any, e: any, ...n: any[]): va;
|
|
|
920
920
|
* @param persistenceSettings - Optional settings object to configure
|
|
921
921
|
* persistence.
|
|
922
922
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
923
|
-
*/ declare function
|
|
923
|
+
*/ declare function $a(t: any, e: any): any;
|
|
924
924
|
/**
|
|
925
925
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
926
926
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -942,22 +942,22 @@ declare function xa(t: any, e: any, ...n: any[]): va;
|
|
|
942
942
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
943
943
|
* @returns A `Promise` that represents successfully enabling persistent
|
|
944
944
|
* storage.
|
|
945
|
-
*/ declare function
|
|
945
|
+
*/ declare function Ba(t: any): any;
|
|
946
946
|
/**
|
|
947
947
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
948
948
|
* call to {@link disableNetwork}.
|
|
949
949
|
*
|
|
950
950
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
951
|
-
*/ declare function
|
|
952
|
-
declare function
|
|
953
|
-
declare function
|
|
951
|
+
*/ declare function Ka(t: any): any;
|
|
952
|
+
declare function Jh(...t: any[]): zh;
|
|
953
|
+
declare function Hh(...t: any[]): zh;
|
|
954
954
|
/**
|
|
955
955
|
* @internal
|
|
956
|
-
*/ declare function
|
|
956
|
+
*/ declare function Oa(t: any): any;
|
|
957
957
|
/**
|
|
958
958
|
* Locally writes `mutations` on the async queue.
|
|
959
959
|
* @internal
|
|
960
|
-
*/ declare function
|
|
960
|
+
*/ declare function Il(t: any, e: any): Promise<any>;
|
|
961
961
|
/**
|
|
962
962
|
* @license
|
|
963
963
|
* Copyright 2020 Google LLC
|
|
@@ -1009,21 +1009,21 @@ declare function el(...t: any[]): tl;
|
|
|
1009
1009
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
1010
1010
|
* current document contents.
|
|
1011
1011
|
*/
|
|
1012
|
-
declare function
|
|
1012
|
+
declare function ul(t: any): Promise<Dh>;
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
1015
1015
|
* Returns an error if the document is not currently cached.
|
|
1016
1016
|
*
|
|
1017
1017
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1018
1018
|
* current document contents.
|
|
1019
|
-
*/ declare function
|
|
1019
|
+
*/ declare function al(t: any): Promise<Dh>;
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
1022
1022
|
* Returns an error if the network is not available.
|
|
1023
1023
|
*
|
|
1024
1024
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1025
1025
|
* current document contents.
|
|
1026
|
-
*/ declare function
|
|
1026
|
+
*/ declare function hl(t: any): Promise<Dh>;
|
|
1027
1027
|
/**
|
|
1028
1028
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1029
1029
|
*
|
|
@@ -1033,20 +1033,20 @@ declare function dl(t: any): Promise<Oh>;
|
|
|
1033
1033
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
1034
1034
|
*
|
|
1035
1035
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1036
|
-
*/ declare function
|
|
1036
|
+
*/ declare function ll(t: any): Promise<xh>;
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1039
1039
|
* Returns an error if the document is not currently cached.
|
|
1040
1040
|
*
|
|
1041
1041
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1042
|
-
*/ declare function
|
|
1042
|
+
*/ declare function fl(t: any): Promise<xh>;
|
|
1043
1043
|
/**
|
|
1044
1044
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1045
1045
|
* server. Returns an error if the network is not available.
|
|
1046
1046
|
*
|
|
1047
1047
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1048
|
-
*/ declare function
|
|
1049
|
-
declare function
|
|
1048
|
+
*/ declare function dl(t: any): Promise<xh>;
|
|
1049
|
+
declare function Ma(e: any, n: any): import("../src").Firestore;
|
|
1050
1050
|
/**
|
|
1051
1051
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1052
1052
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1065,7 +1065,7 @@ declare function Ua(e: any, n: any): import("../src").Firestore;
|
|
|
1065
1065
|
* @param n - The value to increment by.
|
|
1066
1066
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1067
1067
|
* `updateDoc()`
|
|
1068
|
-
*/ declare function
|
|
1068
|
+
*/ declare function Vl(t: any): dh;
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1071
1071
|
* Can only be called before any other function, including
|
|
@@ -1077,13 +1077,13 @@ declare function Ua(e: any, n: any): import("../src").Firestore;
|
|
|
1077
1077
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1078
1078
|
* @param databaseId - The name of database.
|
|
1079
1079
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1080
|
-
*/ declare function
|
|
1080
|
+
*/ declare function ka(t: any, e: any, n: any): import("../src").Firestore;
|
|
1081
1081
|
/**
|
|
1082
1082
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
1083
1083
|
*
|
|
1084
1084
|
* @param limit - The maximum number of items to return.
|
|
1085
1085
|
* @returns The created {@link Query}.
|
|
1086
|
-
*/ declare function
|
|
1086
|
+
*/ declare function Kh(t: any): qh;
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
1089
1089
|
*
|
|
@@ -1092,7 +1092,7 @@ declare function Ua(e: any, n: any): import("../src").Firestore;
|
|
|
1092
1092
|
*
|
|
1093
1093
|
* @param limit - The maximum number of items to return.
|
|
1094
1094
|
* @returns The created {@link Query}.
|
|
1095
|
-
*/ declare function
|
|
1095
|
+
*/ declare function Gh(t: any): qh;
|
|
1096
1096
|
/**
|
|
1097
1097
|
* Loads a Firestore bundle into the local cache.
|
|
1098
1098
|
*
|
|
@@ -1103,7 +1103,7 @@ declare function Ua(e: any, n: any): import("../src").Firestore;
|
|
|
1103
1103
|
* @returns A `LoadBundleTask` object, which notifies callers with progress
|
|
1104
1104
|
* updates, and completion or error events. It can be used as a
|
|
1105
1105
|
* `Promise<LoadBundleTaskProgress>`.
|
|
1106
|
-
*/ declare function
|
|
1106
|
+
*/ declare function ja(t: any, e: any): Ca;
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Reads a Firestore {@link Query} from local cache, identified by the given
|
|
1109
1109
|
* name.
|
|
@@ -1115,9 +1115,9 @@ declare function Ua(e: any, n: any): import("../src").Firestore;
|
|
|
1115
1115
|
* @param firestore - The {@link Firestore} instance to read the query from.
|
|
1116
1116
|
* @param name - The name of the query.
|
|
1117
1117
|
* @returns A `Promise` that is resolved with the Query or `null`.
|
|
1118
|
-
*/ declare function
|
|
1119
|
-
declare function
|
|
1120
|
-
declare function
|
|
1118
|
+
*/ declare function Wa(t: any, e: any): any;
|
|
1119
|
+
declare function yl(t: any, ...e: any[]): () => void;
|
|
1120
|
+
declare function pl(t: any, e: any): () => void;
|
|
1121
1121
|
/**
|
|
1122
1122
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
1123
1123
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1126,7 +1126,7 @@ declare function bl(t: any, e: any): () => void;
|
|
|
1126
1126
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1127
1127
|
* not specified, order will be ascending.
|
|
1128
1128
|
* @returns The created {@link Query}.
|
|
1129
|
-
*/ declare function
|
|
1129
|
+
*/ declare function Uh(t: any, e?: string): Lh;
|
|
1130
1130
|
/**
|
|
1131
1131
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
1132
1132
|
* additional query constraints.
|
|
@@ -1135,7 +1135,7 @@ declare function bl(t: any, e: any): () => void;
|
|
|
1135
1135
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
1136
1136
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
1137
1137
|
* existing or new constraints.
|
|
1138
|
-
*/ declare function
|
|
1138
|
+
*/ declare function Fh(t: any, ...e: any[]): any;
|
|
1139
1139
|
/**
|
|
1140
1140
|
* Returns true if the provided queries point to the same collection and apply
|
|
1141
1141
|
* the same constraints.
|
|
@@ -1144,7 +1144,7 @@ declare function bl(t: any, e: any): () => void;
|
|
|
1144
1144
|
* @param right - A `Query` to compare.
|
|
1145
1145
|
* @returns true if the references point to the same location in the same
|
|
1146
1146
|
* Firestore database.
|
|
1147
|
-
*/ declare function
|
|
1147
|
+
*/ declare function Va(t: any, e: any): boolean;
|
|
1148
1148
|
/**
|
|
1149
1149
|
* Returns true if the provided references are equal.
|
|
1150
1150
|
*
|
|
@@ -1152,7 +1152,7 @@ declare function bl(t: any, e: any): () => void;
|
|
|
1152
1152
|
* @param right - A reference to compare.
|
|
1153
1153
|
* @returns true if the references point to the same location in the same
|
|
1154
1154
|
* Firestore database.
|
|
1155
|
-
*/ declare function
|
|
1155
|
+
*/ declare function va(t: any, e: any): boolean;
|
|
1156
1156
|
/**
|
|
1157
1157
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1158
1158
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1171,12 +1171,12 @@ declare function bl(t: any, e: any): () => void;
|
|
|
1171
1171
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1172
1172
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1173
1173
|
* rejected promise with the corresponding failure error is returned.
|
|
1174
|
-
*/ declare function
|
|
1174
|
+
*/ declare function Al(t: any, e: any, n: any): Promise<any>;
|
|
1175
1175
|
/**
|
|
1176
1176
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1177
1177
|
* include a server-generated timestamp in the written data.
|
|
1178
|
-
*/ declare function
|
|
1179
|
-
declare function
|
|
1178
|
+
*/ declare function bl(): hh;
|
|
1179
|
+
declare function _l(t: any, e: any, n: any): Promise<any>;
|
|
1180
1180
|
/**
|
|
1181
1181
|
* @license
|
|
1182
1182
|
* Copyright 2021 Google LLC
|
|
@@ -1192,7 +1192,7 @@ declare function Il(t: any, e: any, n: any): Promise<any>;
|
|
|
1192
1192
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1193
1193
|
* See the License for the specific language governing permissions and
|
|
1194
1194
|
* limitations under the License.
|
|
1195
|
-
*/ declare function
|
|
1195
|
+
*/ declare function Dl(t: any, e: any): Promise<any>;
|
|
1196
1196
|
/**
|
|
1197
1197
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1198
1198
|
*
|
|
@@ -1205,16 +1205,16 @@ declare function Il(t: any, e: any, n: any): Promise<any>;
|
|
|
1205
1205
|
* <li>`error` to log errors only.</li>
|
|
1206
1206
|
* <li><code>`silent` to turn off logging.</li>
|
|
1207
1207
|
* </ul>
|
|
1208
|
-
*/ declare function
|
|
1208
|
+
*/ declare function S(t: any): void;
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Returns true if the provided snapshots are equal.
|
|
1211
1211
|
*
|
|
1212
1212
|
* @param left - A snapshot to compare.
|
|
1213
1213
|
* @param right - A snapshot to compare.
|
|
1214
1214
|
* @returns true if the snapshots are equal.
|
|
1215
|
-
*/ declare function
|
|
1216
|
-
declare function
|
|
1217
|
-
declare function
|
|
1215
|
+
*/ declare function kh(t: any, e: any): any;
|
|
1216
|
+
declare function Wh(...t: any[]): Qh;
|
|
1217
|
+
declare function jh(...t: any[]): Qh;
|
|
1218
1218
|
/**
|
|
1219
1219
|
* Terminates the provided {@link Firestore} instance.
|
|
1220
1220
|
*
|
|
@@ -1236,8 +1236,8 @@ declare function Xh(...t: any[]): Yh;
|
|
|
1236
1236
|
*
|
|
1237
1237
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1238
1238
|
* terminated.
|
|
1239
|
-
*/ declare function
|
|
1240
|
-
declare function
|
|
1239
|
+
*/ declare function Qa(t: any): any;
|
|
1240
|
+
declare function wl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1241
1241
|
/**
|
|
1242
1242
|
* Waits until all currently pending writes for the active user have been
|
|
1243
1243
|
* acknowledged by the backend.
|
|
@@ -1253,7 +1253,7 @@ declare function Tl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1253
1253
|
*
|
|
1254
1254
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1255
1255
|
* acknowledged by the backend.
|
|
1256
|
-
*/ declare function
|
|
1256
|
+
*/ declare function qa(t: any): Promise<any>;
|
|
1257
1257
|
/**
|
|
1258
1258
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
1259
1259
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -1264,7 +1264,7 @@ declare function Tl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1264
1264
|
* "<=", "!=").
|
|
1265
1265
|
* @param value - The value for comparison
|
|
1266
1266
|
* @returns The created {@link Query}.
|
|
1267
|
-
*/ declare function
|
|
1267
|
+
*/ declare function Bh(t: any, e: any, n: any): $h;
|
|
1268
1268
|
/**
|
|
1269
1269
|
* @license
|
|
1270
1270
|
* Copyright 2020 Google LLC
|
|
@@ -1291,7 +1291,7 @@ declare function Tl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1291
1291
|
*
|
|
1292
1292
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1293
1293
|
* writes.
|
|
1294
|
-
*/ declare function
|
|
1294
|
+
*/ declare function Sl(t: any): rl;
|
|
1295
1295
|
/**
|
|
1296
1296
|
* @license
|
|
1297
1297
|
* Copyright 2020 Google LLC
|
|
@@ -1316,7 +1316,7 @@ declare function Tl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1316
1316
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
1317
1317
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
1318
1318
|
* explicitly verify a document's existence.
|
|
1319
|
-
*/ declare class
|
|
1319
|
+
*/ declare class Ph {
|
|
1320
1320
|
/** @hideconstructor protected */
|
|
1321
1321
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1322
1322
|
_firestore: any;
|
|
@@ -1327,7 +1327,7 @@ declare function Tl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1327
1327
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1328
1328
|
/**
|
|
1329
1329
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1330
|
-
*/ get ref():
|
|
1330
|
+
*/ get ref(): Ta;
|
|
1331
1331
|
/**
|
|
1332
1332
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1333
1333
|
*
|
|
@@ -1371,7 +1371,7 @@ declare function Tl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1371
1371
|
* The Cloud Firestore service interface.
|
|
1372
1372
|
*
|
|
1373
1373
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
1374
|
-
*/ declare class
|
|
1374
|
+
*/ declare class pa {
|
|
1375
1375
|
/** @hideconstructor */
|
|
1376
1376
|
constructor(t: any, e: any, n: any, s: any);
|
|
1377
1377
|
_authCredentials: any;
|
|
@@ -1383,7 +1383,7 @@ declare function Tl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1383
1383
|
*/
|
|
1384
1384
|
type: string;
|
|
1385
1385
|
_persistenceKey: string;
|
|
1386
|
-
_settings:
|
|
1386
|
+
_settings: ya;
|
|
1387
1387
|
_settingsFrozen: boolean;
|
|
1388
1388
|
/**
|
|
1389
1389
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1392,14 +1392,14 @@ declare function Tl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1392
1392
|
get _initialized(): boolean;
|
|
1393
1393
|
get _terminated(): boolean;
|
|
1394
1394
|
_setSettings(t: any): void;
|
|
1395
|
-
_getSettings():
|
|
1396
|
-
_freezeSettings():
|
|
1395
|
+
_getSettings(): ya;
|
|
1396
|
+
_freezeSettings(): ya;
|
|
1397
1397
|
_delete(): Promise<void>;
|
|
1398
1398
|
_terminateTask: Promise<void> | undefined;
|
|
1399
1399
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1400
1400
|
app: any;
|
|
1401
1401
|
databaseId: any;
|
|
1402
|
-
settings:
|
|
1402
|
+
settings: ya;
|
|
1403
1403
|
};
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1424,7 +1424,7 @@ declare function Tl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1424
1424
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1425
1425
|
* See the License for the specific language governing permissions and
|
|
1426
1426
|
* limitations under the License.
|
|
1427
|
-
*/ declare class
|
|
1427
|
+
*/ declare class Sa {
|
|
1428
1428
|
$c: Promise<void>;
|
|
1429
1429
|
Bc: any[];
|
|
1430
1430
|
Lc: boolean;
|
|
@@ -1433,7 +1433,7 @@ declare function Tl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1433
1433
|
Kc: boolean;
|
|
1434
1434
|
Gc: boolean;
|
|
1435
1435
|
Qc: any[];
|
|
1436
|
-
xo:
|
|
1436
|
+
xo: Zo;
|
|
1437
1437
|
jc: () => void;
|
|
1438
1438
|
get isShuttingDown(): boolean;
|
|
1439
1439
|
/**
|
|
@@ -1449,7 +1449,7 @@ declare function Tl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1449
1449
|
* reschedules with backoff.
|
|
1450
1450
|
*/ Hc(): Promise<void>;
|
|
1451
1451
|
zc(t: any): Promise<any>;
|
|
1452
|
-
enqueueAfterDelay(t: any, e: any, n: any):
|
|
1452
|
+
enqueueAfterDelay(t: any, e: any, n: any): ku;
|
|
1453
1453
|
Wc(): void;
|
|
1454
1454
|
verifyOperationInProgress(): void;
|
|
1455
1455
|
/**
|
|
@@ -1488,7 +1488,7 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
1488
1488
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1489
1489
|
* See the License for the specific language governing permissions and
|
|
1490
1490
|
* limitations under the License.
|
|
1491
|
-
*/ declare class
|
|
1491
|
+
*/ declare class L {
|
|
1492
1492
|
promise: Promise<any>;
|
|
1493
1493
|
resolve: (value: any) => void;
|
|
1494
1494
|
reject: (reason?: any) => void;
|
|
@@ -1496,14 +1496,14 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
1496
1496
|
/**
|
|
1497
1497
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1498
1498
|
* classes.
|
|
1499
|
-
*/ declare class
|
|
1499
|
+
*/ declare class rh {
|
|
1500
1500
|
constructor(t: any, e: any, n: any);
|
|
1501
1501
|
databaseId: any;
|
|
1502
1502
|
ignoreUndefinedProperties: any;
|
|
1503
1503
|
It: any;
|
|
1504
|
-
/** Creates a new top-level parse context. */ fa(t: any, e: any, n: any, s?: boolean):
|
|
1504
|
+
/** Creates a new top-level parse context. */ fa(t: any, e: any, n: any, s?: boolean): ih;
|
|
1505
1505
|
}
|
|
1506
|
-
declare class
|
|
1506
|
+
declare class W {
|
|
1507
1507
|
constructor(t: any);
|
|
1508
1508
|
value: any;
|
|
1509
1509
|
type: string;
|
|
@@ -1528,7 +1528,7 @@ declare class Z {
|
|
|
1528
1528
|
/**
|
|
1529
1529
|
* Path represents an ordered sequence of string segments.
|
|
1530
1530
|
*/
|
|
1531
|
-
declare class
|
|
1531
|
+
declare class st {
|
|
1532
1532
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
1533
1533
|
constructor(t: any, e: any, n: any);
|
|
1534
1534
|
segments: any;
|
|
@@ -1549,67 +1549,67 @@ declare class at {
|
|
|
1549
1549
|
forEach(t: any): void;
|
|
1550
1550
|
toArray(): any;
|
|
1551
1551
|
}
|
|
1552
|
-
declare class
|
|
1552
|
+
declare class fh extends Xa {
|
|
1553
1553
|
constructor(t: any, e: any);
|
|
1554
1554
|
da: any;
|
|
1555
|
-
_toFieldTransform(t: any):
|
|
1555
|
+
_toFieldTransform(t: any): Cn;
|
|
1556
1556
|
isEqual(t: any): boolean;
|
|
1557
1557
|
}
|
|
1558
|
-
declare class
|
|
1558
|
+
declare class lh extends Xa {
|
|
1559
1559
|
constructor(t: any, e: any);
|
|
1560
1560
|
da: any;
|
|
1561
|
-
_toFieldTransform(t: any):
|
|
1561
|
+
_toFieldTransform(t: any): Cn;
|
|
1562
1562
|
isEqual(t: any): boolean;
|
|
1563
1563
|
}
|
|
1564
|
-
declare class
|
|
1564
|
+
declare class ch extends Xa {
|
|
1565
1565
|
_toFieldTransform(t: any): null;
|
|
1566
1566
|
isEqual(t: any): boolean;
|
|
1567
1567
|
}
|
|
1568
|
-
declare class
|
|
1568
|
+
declare class zh extends Oh {
|
|
1569
1569
|
constructor(t: any, e: any, n: any);
|
|
1570
1570
|
type: any;
|
|
1571
1571
|
Ta: any;
|
|
1572
1572
|
Ea: any;
|
|
1573
|
-
_apply(t: any):
|
|
1573
|
+
_apply(t: any): Ea;
|
|
1574
1574
|
}
|
|
1575
|
-
declare class
|
|
1575
|
+
declare class dh extends Xa {
|
|
1576
1576
|
constructor(t: any, e: any);
|
|
1577
1577
|
_a: any;
|
|
1578
|
-
_toFieldTransform(t: any):
|
|
1578
|
+
_toFieldTransform(t: any): Cn;
|
|
1579
1579
|
isEqual(t: any): boolean;
|
|
1580
1580
|
}
|
|
1581
|
-
declare class
|
|
1581
|
+
declare class qh extends Oh {
|
|
1582
1582
|
constructor(t: any, e: any, n: any);
|
|
1583
1583
|
type: any;
|
|
1584
1584
|
pa: any;
|
|
1585
1585
|
Ia: any;
|
|
1586
|
-
_apply(t: any):
|
|
1586
|
+
_apply(t: any): Ea;
|
|
1587
1587
|
}
|
|
1588
|
-
declare class
|
|
1588
|
+
declare class Lh extends Oh {
|
|
1589
1589
|
constructor(t: any, e: any);
|
|
1590
1590
|
wa: any;
|
|
1591
1591
|
ya: any;
|
|
1592
1592
|
type: string;
|
|
1593
|
-
_apply(t: any):
|
|
1593
|
+
_apply(t: any): Ea;
|
|
1594
1594
|
}
|
|
1595
|
-
declare class
|
|
1596
|
-
_toFieldTransform(t: any):
|
|
1595
|
+
declare class hh extends Xa {
|
|
1596
|
+
_toFieldTransform(t: any): Cn;
|
|
1597
1597
|
isEqual(t: any): boolean;
|
|
1598
1598
|
}
|
|
1599
|
-
declare class
|
|
1599
|
+
declare class Qh extends Oh {
|
|
1600
1600
|
constructor(t: any, e: any, n: any);
|
|
1601
1601
|
type: any;
|
|
1602
1602
|
Ta: any;
|
|
1603
1603
|
Ea: any;
|
|
1604
|
-
_apply(t: any):
|
|
1604
|
+
_apply(t: any): Ea;
|
|
1605
1605
|
}
|
|
1606
|
-
declare class
|
|
1606
|
+
declare class $h extends Oh {
|
|
1607
1607
|
constructor(t: any, e: any, n: any);
|
|
1608
1608
|
wa: any;
|
|
1609
1609
|
ma: any;
|
|
1610
1610
|
ga: any;
|
|
1611
1611
|
type: string;
|
|
1612
|
-
_apply(t: any):
|
|
1612
|
+
_apply(t: any): Ea;
|
|
1613
1613
|
}
|
|
1614
1614
|
/**
|
|
1615
1615
|
* @license
|
|
@@ -1632,7 +1632,7 @@ declare class Gh extends qh {
|
|
|
1632
1632
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1633
1633
|
* defaults can be supplied and the value can be checked for equality.
|
|
1634
1634
|
*/
|
|
1635
|
-
declare class
|
|
1635
|
+
declare class ya {
|
|
1636
1636
|
constructor(t: any);
|
|
1637
1637
|
host: any;
|
|
1638
1638
|
ssl: any;
|
|
@@ -1656,7 +1656,7 @@ declare class Ra {
|
|
|
1656
1656
|
* base delay. This prevents clients from accidentally synchronizing their
|
|
1657
1657
|
* delays causing spikes of load to the backend.
|
|
1658
1658
|
*/
|
|
1659
|
-
declare class
|
|
1659
|
+
declare class Zo {
|
|
1660
1660
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
1661
1661
|
Hs: any;
|
|
1662
1662
|
timerId: any;
|
|
@@ -1714,7 +1714,7 @@ declare class ru {
|
|
|
1714
1714
|
* in newer versions of TypeScript defines `finally`, which is not available in
|
|
1715
1715
|
* IE.
|
|
1716
1716
|
*/
|
|
1717
|
-
declare class
|
|
1717
|
+
declare class ku {
|
|
1718
1718
|
/**
|
|
1719
1719
|
* Creates and returns a DelayedOperation that has been scheduled to be
|
|
1720
1720
|
* executed on the provided asyncQueue after the provided delayMs.
|
|
@@ -1728,14 +1728,14 @@ declare class Lu {
|
|
|
1728
1728
|
* from its delayedOperations list.
|
|
1729
1729
|
* PORTING NOTE: This exists to prevent making removeDelayedOperation() and
|
|
1730
1730
|
* the DelayedOperation class public.
|
|
1731
|
-
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any):
|
|
1731
|
+
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): ku;
|
|
1732
1732
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1733
1733
|
asyncQueue: any;
|
|
1734
1734
|
timerId: any;
|
|
1735
1735
|
targetTimeMs: any;
|
|
1736
1736
|
op: any;
|
|
1737
1737
|
removalCallback: any;
|
|
1738
|
-
deferred:
|
|
1738
|
+
deferred: L;
|
|
1739
1739
|
then: <TResult1 = any, TResult2 = never>(onfulfilled?: ((value: any) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
|
|
1740
1740
|
/**
|
|
1741
1741
|
* Starts the timer. This is called immediately after construction by
|
|
@@ -1756,7 +1756,7 @@ declare class Lu {
|
|
|
1756
1756
|
handleDelayElapsed(): void;
|
|
1757
1757
|
clearTimeout(): void;
|
|
1758
1758
|
}
|
|
1759
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1759
|
+
/** A "context" object passed around while parsing user data. */ declare class ih {
|
|
1760
1760
|
/**
|
|
1761
1761
|
* Initializes a ParseContext with the given source and path.
|
|
1762
1762
|
*
|
|
@@ -1784,11 +1784,11 @@ declare class Lu {
|
|
|
1784
1784
|
fieldMask: any;
|
|
1785
1785
|
get path(): any;
|
|
1786
1786
|
get na(): any;
|
|
1787
|
-
/** Returns a new context with the specified settings overwritten. */ sa(t: any):
|
|
1788
|
-
ia(t: any):
|
|
1789
|
-
ua(t: any):
|
|
1790
|
-
ca(t: any):
|
|
1791
|
-
aa(t: any):
|
|
1787
|
+
/** Returns a new context with the specified settings overwritten. */ sa(t: any): ih;
|
|
1788
|
+
ia(t: any): ih;
|
|
1789
|
+
ua(t: any): ih;
|
|
1790
|
+
ca(t: any): ih;
|
|
1791
|
+
aa(t: any): B;
|
|
1792
1792
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1793
1793
|
ea(): void;
|
|
1794
1794
|
oa(t: any): void;
|
|
@@ -1809,9 +1809,9 @@ declare class Lu {
|
|
|
1809
1809
|
* See the License for the specific language governing permissions and
|
|
1810
1810
|
* limitations under the License.
|
|
1811
1811
|
*/
|
|
1812
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1812
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class Cn {
|
|
1813
1813
|
constructor(t: any, e: any);
|
|
1814
1814
|
field: any;
|
|
1815
1815
|
transform: any;
|
|
1816
1816
|
}
|
|
1817
|
-
export {
|
|
1817
|
+
export { nl as AbstractUserDataWriter, Ya as Bytes, xa as CACHE_SIZE_UNLIMITED, Aa as CollectionReference, Ta as DocumentReference, Dh as DocumentSnapshot, Ha as FieldPath, Xa as FieldValue, Na as Firestore, B as FirestoreError, Za as GeoPoint, Ca as LoadBundleTask, Ea as Query, Oh as QueryConstraint, Ch as QueryDocumentSnapshot, xh as QuerySnapshot, Sh as SnapshotMetadata, et as Timestamp, El as Transaction, rl as WriteBatch, ee as _DatabaseId, ut as _DocumentKey, H as _EmptyAppCheckTokenProvider, q as _EmptyAuthCredentialsProvider, ot as _FieldPath, ma as _cast, O as _debugAssert, Qt as _isBase64Available, x as _logWarn, fa as _validateIsNotUsedTogether, gl as addDoc, vl as arrayRemove, Pl as arrayUnion, Ua as clearIndexedDbPersistence, Ra as collection, ba as collectionGroup, Ia as connectFirestoreEmulator, ml as deleteDoc, Rl as deleteField, Ga as disableNetwork, Pa as doc, Ja as documentId, $a as enableIndexedDbPersistence, Ba as enableMultiTabIndexedDbPersistence, Ka as enableNetwork, Jh as endAt, Hh as endBefore, Oa as ensureFirestoreConfigured, Il as executeWrite, ul as getDoc, al as getDocFromCache, hl as getDocFromServer, ll as getDocs, fl as getDocsFromCache, dl as getDocsFromServer, Ma as getFirestore, Vl as increment, ka as initializeFirestore, Kh as limit, Gh as limitToLast, ja as loadBundle, Wa as namedQuery, yl as onSnapshot, pl as onSnapshotsInSync, Uh as orderBy, Fh as query, Va as queryEqual, va as refEqual, Al as runTransaction, bl as serverTimestamp, _l as setDoc, Dl as setIndexConfiguration, S as setLogLevel, kh as snapshotEqual, Wh as startAfter, jh as startAt, Qa as terminate, wl as updateDoc, qa as waitForPendingWrites, Bh as where, Sl as writeBatch };
|