@firebase/firestore 3.4.1 → 3.4.2-202205224240
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/index/directional_index_byte_encoder.d.ts +24 -0
- package/dist/firestore/src/index/firestore_index_value_writer.d.ts +33 -0
- package/dist/firestore/src/index/index_byte_encoder.d.ts +14 -0
- package/dist/firestore/src/index/ordered_code_writer.d.ts +60 -0
- package/dist/firestore/src/lite-api/reference.d.ts +4 -2
- package/dist/firestore/src/lite-api/reference_impl.d.ts +5 -0
- package/dist/firestore/src/lite-api/transaction.d.ts +4 -0
- package/dist/firestore/src/lite-api/write_batch.d.ts +3 -0
- package/dist/firestore/src/local/indexeddb_remote_document_cache.d.ts +5 -0
- package/dist/firestore/src/model/collections.d.ts +0 -4
- package/dist/firestore/src/model/document.d.ts +3 -1
- package/dist/firestore/src/model/values.d.ts +3 -0
- package/dist/firestore/src/util/byte_string.d.ts +1 -0
- package/dist/firestore/src/util/error.d.ts +2 -3
- package/dist/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -0
- package/dist/firestore/test/util/helpers.d.ts +1 -0
- package/dist/index.d.ts +13 -21
- package/dist/index.esm2017.js +2649 -2640
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +2640 -2630
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +42 -24
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +43 -25
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +2839 -2830
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +18 -22
- package/dist/lite/firestore/src/index/directional_index_byte_encoder.d.ts +24 -0
- package/dist/lite/firestore/src/index/firestore_index_value_writer.d.ts +33 -0
- package/dist/lite/firestore/src/index/index_byte_encoder.d.ts +14 -0
- package/dist/lite/firestore/src/index/ordered_code_writer.d.ts +60 -0
- package/dist/lite/firestore/src/lite-api/reference.d.ts +4 -2
- package/dist/lite/firestore/src/lite-api/reference_impl.d.ts +5 -0
- package/dist/lite/firestore/src/lite-api/transaction.d.ts +4 -0
- package/dist/lite/firestore/src/lite-api/write_batch.d.ts +3 -0
- package/dist/lite/firestore/src/local/indexeddb_remote_document_cache.d.ts +5 -0
- package/dist/lite/firestore/src/model/collections.d.ts +0 -4
- package/dist/lite/firestore/src/model/document.d.ts +3 -1
- package/dist/lite/firestore/src/model/values.d.ts +3 -0
- package/dist/lite/firestore/src/util/byte_string.d.ts +1 -0
- package/dist/lite/firestore/src/util/error.d.ts +2 -3
- package/dist/lite/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -0
- package/dist/lite/firestore/test/util/helpers.d.ts +1 -0
- package/dist/lite/index.browser.esm2017.js +1378 -1365
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +842 -828
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.d.ts +18 -21
- package/dist/lite/index.node.cjs.js +25 -7
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +26 -8
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +849 -836
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +86 -21
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +142 -141
- package/dist/lite/packages/firestore/src/index/directional_index_byte_encoder.d.ts +24 -0
- package/dist/lite/packages/firestore/src/index/firestore_index_value_writer.d.ts +33 -0
- package/dist/lite/packages/firestore/src/index/index_byte_encoder.d.ts +14 -0
- package/dist/lite/packages/firestore/src/index/ordered_code_writer.d.ts +60 -0
- package/dist/lite/packages/firestore/src/lite-api/reference.d.ts +4 -2
- package/dist/lite/packages/firestore/src/lite-api/reference_impl.d.ts +5 -0
- package/dist/lite/packages/firestore/src/lite-api/transaction.d.ts +4 -0
- package/dist/lite/packages/firestore/src/lite-api/write_batch.d.ts +3 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_remote_document_cache.d.ts +5 -0
- package/dist/lite/packages/firestore/src/model/collections.d.ts +0 -4
- package/dist/lite/packages/firestore/src/model/document.d.ts +3 -1
- package/dist/lite/packages/firestore/src/model/values.d.ts +3 -0
- package/dist/lite/packages/firestore/src/util/byte_string.d.ts +1 -0
- package/dist/lite/packages/firestore/src/util/error.d.ts +2 -3
- package/dist/lite/packages/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -0
- package/dist/lite/packages/firestore/test/util/helpers.d.ts +1 -0
- package/dist/lite/private.d.ts +85 -21
- package/dist/packages/firestore/dist/index.esm2017.d.ts +152 -152
- package/dist/packages/firestore/src/index/directional_index_byte_encoder.d.ts +24 -0
- package/dist/packages/firestore/src/index/firestore_index_value_writer.d.ts +33 -0
- package/dist/packages/firestore/src/index/index_byte_encoder.d.ts +14 -0
- package/dist/packages/firestore/src/index/ordered_code_writer.d.ts +60 -0
- package/dist/packages/firestore/src/lite-api/reference.d.ts +4 -2
- package/dist/packages/firestore/src/lite-api/reference_impl.d.ts +5 -0
- package/dist/packages/firestore/src/lite-api/transaction.d.ts +4 -0
- package/dist/packages/firestore/src/lite-api/write_batch.d.ts +3 -0
- package/dist/packages/firestore/src/local/indexeddb_remote_document_cache.d.ts +5 -0
- package/dist/packages/firestore/src/model/collections.d.ts +0 -4
- package/dist/packages/firestore/src/model/document.d.ts +3 -1
- package/dist/packages/firestore/src/model/values.d.ts +3 -0
- package/dist/packages/firestore/src/util/byte_string.d.ts +1 -0
- package/dist/packages/firestore/src/util/error.d.ts +2 -3
- package/dist/packages/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -0
- package/dist/packages/firestore/test/util/helpers.d.ts +1 -0
- package/dist/private.d.ts +17 -22
- package/package.json +7 -7
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
* to the user.
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
|
-
*/ declare class
|
|
22
|
+
*/ declare class oh {
|
|
23
23
|
convertValue(t: any, e?: string): any;
|
|
24
24
|
convertObject(t: any, e: any): {};
|
|
25
|
-
convertGeoPoint(t: any):
|
|
25
|
+
convertGeoPoint(t: any): iu;
|
|
26
26
|
convertArray(t: any, e: any): any;
|
|
27
27
|
convertServerTimestamp(t: any, e: any): any;
|
|
28
|
-
convertTimestamp(t: any):
|
|
29
|
-
convertDocumentKey(t: any, e: any):
|
|
28
|
+
convertTimestamp(t: any): ct;
|
|
29
|
+
convertDocumentKey(t: any, e: any): Dt;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* @license
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
*/
|
|
47
47
|
/**
|
|
48
48
|
* An immutable object representing an array of bytes.
|
|
49
|
-
*/ declare class
|
|
49
|
+
*/ declare class nu {
|
|
50
50
|
/**
|
|
51
51
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
52
52
|
* bytes.
|
|
53
53
|
*
|
|
54
54
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
55
|
-
*/ static fromBase64String(t: any):
|
|
55
|
+
*/ static fromBase64String(t: any): nu;
|
|
56
56
|
/**
|
|
57
57
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
58
58
|
*
|
|
59
59
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
60
|
-
*/ static fromUint8Array(t: any):
|
|
60
|
+
*/ static fromUint8Array(t: any): nu;
|
|
61
61
|
/** @hideconstructor */
|
|
62
62
|
constructor(t: any);
|
|
63
63
|
_byteString: any;
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
/**
|
|
104
104
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
105
105
|
* document references, and querying for documents (using {@link query}).
|
|
106
|
-
*/ declare class
|
|
106
|
+
*/ declare class Vc extends vc {
|
|
107
107
|
_path: any;
|
|
108
108
|
/** The collection's identifier. */ get id(): any;
|
|
109
109
|
/**
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
*/ get path(): any;
|
|
154
154
|
/**
|
|
155
155
|
* The collection this `DocumentReference` belongs to.
|
|
156
|
-
*/ get parent():
|
|
156
|
+
*/ get parent(): Vc;
|
|
157
157
|
withConverter(t: any): Pc;
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
165
165
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
166
166
|
* explicitly verify a document's existence.
|
|
167
|
-
*/ declare class
|
|
167
|
+
*/ declare class $u extends Cu {
|
|
168
168
|
/** @hideconstructor protected */
|
|
169
169
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
170
170
|
_firestoreImpl: any;
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
211
211
|
* name is provided, the path will point to a nested field in a document.
|
|
212
212
|
*/
|
|
213
|
-
declare class
|
|
213
|
+
declare class tu {
|
|
214
214
|
/**
|
|
215
215
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
216
216
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -218,7 +218,7 @@ declare class Zc {
|
|
|
218
218
|
* @param fieldNames - A list of field names.
|
|
219
219
|
*/
|
|
220
220
|
constructor(...t: any[]);
|
|
221
|
-
_internalPath:
|
|
221
|
+
_internalPath: mt;
|
|
222
222
|
/**
|
|
223
223
|
* Returns true if this `FieldPath` is equal to the provided one.
|
|
224
224
|
*
|
|
@@ -245,7 +245,7 @@ declare class Zc {
|
|
|
245
245
|
/**
|
|
246
246
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
247
247
|
* or `update()`.
|
|
248
|
-
*/ declare class
|
|
248
|
+
*/ declare class su {
|
|
249
249
|
/**
|
|
250
250
|
* @param _methodName - The public API endpoint that returns this class.
|
|
251
251
|
* @hideconstructor
|
|
@@ -258,13 +258,12 @@ declare class Zc {
|
|
|
258
258
|
*
|
|
259
259
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
260
260
|
*/
|
|
261
|
-
declare class
|
|
262
|
-
_queue:
|
|
261
|
+
declare class Mc extends Rc {
|
|
262
|
+
_queue: xc;
|
|
263
263
|
}
|
|
264
|
-
/** An error returned by a Firestore operation. */ declare class
|
|
264
|
+
/** An error returned by a Firestore operation. */ declare class Q extends c {
|
|
265
265
|
/** @hideconstructor */
|
|
266
266
|
constructor(t: any, e: any);
|
|
267
|
-
code: any;
|
|
268
267
|
}
|
|
269
268
|
/**
|
|
270
269
|
* @license
|
|
@@ -288,7 +287,7 @@ declare class Oc extends Ac {
|
|
|
288
287
|
*
|
|
289
288
|
* Latitude values are in the range of [-90, 90].
|
|
290
289
|
* Longitude values are in the range of [-180, 180].
|
|
291
|
-
*/ declare class
|
|
290
|
+
*/ declare class iu {
|
|
292
291
|
/**
|
|
293
292
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
294
293
|
* longitude values.
|
|
@@ -319,9 +318,9 @@ declare class Oc extends Ac {
|
|
|
319
318
|
* with an underscore.
|
|
320
319
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
321
320
|
}
|
|
322
|
-
declare class
|
|
321
|
+
declare class Oc {
|
|
323
322
|
_progressObserver: {};
|
|
324
|
-
_taskCompletionResolver:
|
|
323
|
+
_taskCompletionResolver: W;
|
|
325
324
|
_lastProgress: {
|
|
326
325
|
taskState: string;
|
|
327
326
|
totalBytes: number;
|
|
@@ -371,7 +370,7 @@ declare class $c {
|
|
|
371
370
|
/**
|
|
372
371
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
373
372
|
* construct refined `Query` objects by adding filters and ordering.
|
|
374
|
-
*/ declare class
|
|
373
|
+
*/ declare class vc {
|
|
375
374
|
/** @hideconstructor protected */
|
|
376
375
|
constructor(t: any, e: any, n: any);
|
|
377
376
|
converter: any;
|
|
@@ -379,7 +378,7 @@ declare class $c {
|
|
|
379
378
|
/** The type of this Firestore reference. */
|
|
380
379
|
type: string;
|
|
381
380
|
firestore: any;
|
|
382
|
-
withConverter(t: any):
|
|
381
|
+
withConverter(t: any): vc;
|
|
383
382
|
}
|
|
384
383
|
/**
|
|
385
384
|
* A `QueryConstraint` is used to narrow the set of documents returned by a
|
|
@@ -388,7 +387,7 @@ declare class $c {
|
|
|
388
387
|
* endBefore:1}, {@link (endAt:1)}, {@link limit} or {@link limitToLast} and
|
|
389
388
|
* can then be passed to {@link query} to create a new query instance that
|
|
390
389
|
* also contains this `QueryConstraint`.
|
|
391
|
-
*/ declare class
|
|
390
|
+
*/ declare class Uu {
|
|
392
391
|
}
|
|
393
392
|
/**
|
|
394
393
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -400,7 +399,7 @@ declare class $c {
|
|
|
400
399
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
401
400
|
* `exists` property will always be true and `data()` will never return
|
|
402
401
|
* 'undefined'.
|
|
403
|
-
*/ declare class
|
|
402
|
+
*/ declare class Ou extends $u {
|
|
404
403
|
}
|
|
405
404
|
/**
|
|
406
405
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -414,7 +413,7 @@ declare class $c {
|
|
|
414
413
|
_firestore: any;
|
|
415
414
|
_userDataWriter: any;
|
|
416
415
|
_snapshot: any;
|
|
417
|
-
metadata:
|
|
416
|
+
metadata: xu;
|
|
418
417
|
query: any;
|
|
419
418
|
/** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
|
|
420
419
|
/** The number of documents in the `QuerySnapshot`. */ get size(): any;
|
|
@@ -456,7 +455,7 @@ declare class $c {
|
|
|
456
455
|
*/
|
|
457
456
|
/**
|
|
458
457
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
459
|
-
*/ declare class
|
|
458
|
+
*/ declare class xu {
|
|
460
459
|
/** @hideconstructor */
|
|
461
460
|
constructor(t: any, e: any);
|
|
462
461
|
hasPendingWrites: any;
|
|
@@ -498,19 +497,19 @@ declare class $c {
|
|
|
498
497
|
* For examples and further specifications, refer to the
|
|
499
498
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
500
499
|
*/
|
|
501
|
-
declare class
|
|
500
|
+
declare class ct {
|
|
502
501
|
/**
|
|
503
502
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
504
503
|
*
|
|
505
504
|
* @returns a new timestamp representing the current date.
|
|
506
|
-
*/ static now():
|
|
505
|
+
*/ static now(): ct;
|
|
507
506
|
/**
|
|
508
507
|
* Creates a new timestamp from the given date.
|
|
509
508
|
*
|
|
510
509
|
* @param date - The date to initialize the `Timestamp` from.
|
|
511
510
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
512
511
|
* date.
|
|
513
|
-
*/ static fromDate(t: any):
|
|
512
|
+
*/ static fromDate(t: any): ct;
|
|
514
513
|
/**
|
|
515
514
|
* Creates a new timestamp from the given number of milliseconds.
|
|
516
515
|
*
|
|
@@ -518,7 +517,7 @@ declare class at {
|
|
|
518
517
|
* 1970-01-01T00:00:00Z.
|
|
519
518
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
520
519
|
* number of milliseconds.
|
|
521
|
-
*/ static fromMillis(t: any):
|
|
520
|
+
*/ static fromMillis(t: any): ct;
|
|
522
521
|
/**
|
|
523
522
|
* Creates a new timestamp.
|
|
524
523
|
*
|
|
@@ -569,7 +568,7 @@ declare const Ph_base: {
|
|
|
569
568
|
new (t: any, e: any): {
|
|
570
569
|
_firestore: any;
|
|
571
570
|
_transaction: any;
|
|
572
|
-
_dataReader:
|
|
571
|
+
_dataReader: hu;
|
|
573
572
|
/**
|
|
574
573
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
575
574
|
*
|
|
@@ -633,22 +632,22 @@ declare const Ph_base: {
|
|
|
633
632
|
* provides methods for adding writes to the write batch. None of the writes
|
|
634
633
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
635
634
|
* called.
|
|
636
|
-
*/ declare class
|
|
635
|
+
*/ declare class uh {
|
|
637
636
|
/** @hideconstructor */
|
|
638
637
|
constructor(t: any, e: any);
|
|
639
638
|
_firestore: any;
|
|
640
639
|
_commitHandler: any;
|
|
641
640
|
_mutations: any[];
|
|
642
641
|
_committed: boolean;
|
|
643
|
-
_dataReader:
|
|
644
|
-
set(t: any, e: any, n: any):
|
|
645
|
-
update(t: any, e: any, n: any, ...s: any[]):
|
|
642
|
+
_dataReader: hu;
|
|
643
|
+
set(t: any, e: any, n: any): uh;
|
|
644
|
+
update(t: any, e: any, n: any, ...s: any[]): uh;
|
|
646
645
|
/**
|
|
647
646
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
648
647
|
*
|
|
649
648
|
* @param documentRef - A reference to the document to be deleted.
|
|
650
649
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
651
|
-
*/ delete(t: any):
|
|
650
|
+
*/ delete(t: any): uh;
|
|
652
651
|
/**
|
|
653
652
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
654
653
|
*
|
|
@@ -668,7 +667,7 @@ declare const Ph_base: {
|
|
|
668
667
|
* Represents the database ID a Firestore client is associated with.
|
|
669
668
|
* @internal
|
|
670
669
|
*/
|
|
671
|
-
declare class
|
|
670
|
+
declare class wc {
|
|
672
671
|
constructor(t: any, e: any);
|
|
673
672
|
projectId: any;
|
|
674
673
|
database: any;
|
|
@@ -693,9 +692,9 @@ declare class dc {
|
|
|
693
692
|
*/
|
|
694
693
|
/**
|
|
695
694
|
* @internal
|
|
696
|
-
*/ declare class
|
|
697
|
-
static fromPath(t: any):
|
|
698
|
-
static fromName(t: any):
|
|
695
|
+
*/ declare class Dt {
|
|
696
|
+
static fromPath(t: any): Dt;
|
|
697
|
+
static fromName(t: any): Dt;
|
|
699
698
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
700
699
|
static isDocumentKey(t: any): boolean;
|
|
701
700
|
/**
|
|
@@ -703,7 +702,7 @@ declare class dc {
|
|
|
703
702
|
*
|
|
704
703
|
* @param segments - The segments of the path to the document
|
|
705
704
|
* @returns A new instance of DocumentKey
|
|
706
|
-
*/ static fromSegments(t: any):
|
|
705
|
+
*/ static fromSegments(t: any): Dt;
|
|
707
706
|
constructor(t: any);
|
|
708
707
|
path: any;
|
|
709
708
|
/** Returns true if the document is in the specified collectionId. */ hasCollectionId(t: any): boolean;
|
|
@@ -713,8 +712,8 @@ declare class dc {
|
|
|
713
712
|
/**
|
|
714
713
|
* An AppCheck token provider that always yields an empty token.
|
|
715
714
|
* @internal
|
|
716
|
-
*/ declare class
|
|
717
|
-
getToken(): Promise<
|
|
715
|
+
*/ declare class et {
|
|
716
|
+
getToken(): Promise<Z>;
|
|
718
717
|
invalidateToken(): void;
|
|
719
718
|
start(t: any, e: any): void;
|
|
720
719
|
shutdown(): void;
|
|
@@ -722,7 +721,7 @@ declare class dc {
|
|
|
722
721
|
/**
|
|
723
722
|
* A CredentialsProvider that always yields an empty token.
|
|
724
723
|
* @internal
|
|
725
|
-
*/ declare class
|
|
724
|
+
*/ declare class z {
|
|
726
725
|
getToken(): Promise<null>;
|
|
727
726
|
invalidateToken(): void;
|
|
728
727
|
start(t: any, e: any): void;
|
|
@@ -731,14 +730,14 @@ declare class dc {
|
|
|
731
730
|
/**
|
|
732
731
|
* A dot-separated path for navigating sub-objects within a document.
|
|
733
732
|
* @internal
|
|
734
|
-
*/ declare class
|
|
733
|
+
*/ declare class mt extends dt {
|
|
735
734
|
/**
|
|
736
735
|
* Returns true if the string could be used as a segment in a field path
|
|
737
736
|
* without escaping.
|
|
738
737
|
*/ static isValidIdentifier(t: any): boolean;
|
|
739
738
|
/**
|
|
740
739
|
* The field designating the key of a document.
|
|
741
|
-
*/ static keyField():
|
|
740
|
+
*/ static keyField(): mt;
|
|
742
741
|
/**
|
|
743
742
|
* Parses a field string from the given server-formatted string.
|
|
744
743
|
*
|
|
@@ -748,16 +747,16 @@ declare class dc {
|
|
|
748
747
|
*
|
|
749
748
|
* TODO(b/37244157): we should make this more strict. Right now, it allows
|
|
750
749
|
* non-identifier path components, even if they aren't escaped.
|
|
751
|
-
*/ static fromServerFormat(t: any):
|
|
752
|
-
static emptyPath():
|
|
753
|
-
construct(t: any, e: any, n: any):
|
|
750
|
+
*/ static fromServerFormat(t: any): mt;
|
|
751
|
+
static emptyPath(): mt;
|
|
752
|
+
construct(t: any, e: any, n: any): mt;
|
|
754
753
|
canonicalString(): any;
|
|
755
754
|
toString(): any;
|
|
756
755
|
/**
|
|
757
756
|
* Returns true if this field references the key of a document.
|
|
758
757
|
*/ isKeyField(): boolean;
|
|
759
758
|
}
|
|
760
|
-
declare function
|
|
759
|
+
declare function Ec(t: any, e: any): any;
|
|
761
760
|
/**
|
|
762
761
|
* Fails if the given assertion condition is false, throwing an Error with the
|
|
763
762
|
* given message if it did.
|
|
@@ -767,7 +766,7 @@ declare function Tc(t: any, e: any): any;
|
|
|
767
766
|
* happen in this case.
|
|
768
767
|
*
|
|
769
768
|
* @internal
|
|
770
|
-
*/ declare function
|
|
769
|
+
*/ declare function q(t: any, e: any): void;
|
|
771
770
|
/**
|
|
772
771
|
* @license
|
|
773
772
|
* Copyright 2020 Google LLC
|
|
@@ -786,14 +785,14 @@ declare function Tc(t: any, e: any): any;
|
|
|
786
785
|
*/
|
|
787
786
|
/** Converts a Base64 encoded string to a binary string. */
|
|
788
787
|
/** True if and only if the Base64 conversion functions are available. */
|
|
789
|
-
declare function
|
|
788
|
+
declare function yt(): boolean;
|
|
790
789
|
/**
|
|
791
790
|
* @internal
|
|
792
|
-
*/ declare function
|
|
791
|
+
*/ declare function M(t: any, ...e: any[]): void;
|
|
793
792
|
/**
|
|
794
793
|
* Validates that two boolean options are not set at the same time.
|
|
795
794
|
* @internal
|
|
796
|
-
*/ declare function
|
|
795
|
+
*/ declare function gc(t: any, e: any, n: any, s: any): void;
|
|
797
796
|
/**
|
|
798
797
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
799
798
|
* assigning it a document ID automatically.
|
|
@@ -803,7 +802,7 @@ declare function gt(): boolean;
|
|
|
803
802
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
804
803
|
* newly created document after it has been written to the backend (Note that it
|
|
805
804
|
* won't resolve while you're offline).
|
|
806
|
-
*/ declare function
|
|
805
|
+
*/ declare function Eh(t: any, e: any): Promise<Pc>;
|
|
807
806
|
/**
|
|
808
807
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
809
808
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -814,7 +813,7 @@ declare function gt(): boolean;
|
|
|
814
813
|
* @param elements - The elements to remove from the array.
|
|
815
814
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
816
815
|
* `updateDoc()`
|
|
817
|
-
*/ declare function
|
|
816
|
+
*/ declare function Ch(...t: any[]): gu;
|
|
818
817
|
/**
|
|
819
818
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
820
819
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -826,9 +825,9 @@ declare function gt(): boolean;
|
|
|
826
825
|
* @param elements - The elements to union into the array.
|
|
827
826
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
828
827
|
* `updateDoc()`.
|
|
829
|
-
*/ declare function
|
|
830
|
-
declare function
|
|
831
|
-
declare function
|
|
828
|
+
*/ declare function Dh(...t: any[]): mu;
|
|
829
|
+
declare function Wc(t: any): Promise<any>;
|
|
830
|
+
declare function Sc(t: any, e: any, ...n: any[]): Vc;
|
|
832
831
|
/**
|
|
833
832
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
834
833
|
* database that are contained in a collection or subcollection with the
|
|
@@ -839,15 +838,15 @@ declare function Vc(t: any, e: any, ...n: any[]): vc;
|
|
|
839
838
|
* collection or subcollection with this ID as the last segment of its path
|
|
840
839
|
* will be included. Cannot contain a slash.
|
|
841
840
|
* @returns The created `Query`.
|
|
842
|
-
*/ declare function
|
|
843
|
-
declare function
|
|
841
|
+
*/ declare function Dc(t: any, e: any): vc;
|
|
842
|
+
declare function bc(t: any, e: any, n: any, s?: {}): void;
|
|
844
843
|
/**
|
|
845
844
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
846
845
|
*
|
|
847
846
|
* @param reference - A reference to the document to delete.
|
|
848
847
|
* @returns A Promise resolved once the document has been successfully
|
|
849
848
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
850
|
-
*/ declare function
|
|
849
|
+
*/ declare function Th(t: any): Promise<any>;
|
|
851
850
|
/**
|
|
852
851
|
* @license
|
|
853
852
|
* Copyright 2020 Google LLC
|
|
@@ -867,7 +866,7 @@ declare function Rc(t: any, e: any, n: any, s?: {}): void;
|
|
|
867
866
|
/**
|
|
868
867
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
869
868
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
870
|
-
*/ declare function
|
|
869
|
+
*/ declare function Vh(): du;
|
|
871
870
|
/**
|
|
872
871
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
873
872
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -875,12 +874,12 @@ declare function Rc(t: any, e: any, n: any, s?: {}): void;
|
|
|
875
874
|
* operations will be queued until the network is restored.
|
|
876
875
|
*
|
|
877
876
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
878
|
-
*/ declare function
|
|
879
|
-
declare function
|
|
877
|
+
*/ declare function Hc(t: any): any;
|
|
878
|
+
declare function Cc(t: any, e: any, ...n: any[]): Pc;
|
|
880
879
|
/**
|
|
881
880
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
882
881
|
* It can be used in queries to sort or filter by the document ID.
|
|
883
|
-
*/ declare function
|
|
882
|
+
*/ declare function eu(): tu;
|
|
884
883
|
/**
|
|
885
884
|
* Attempts to enable persistent storage, if possible.
|
|
886
885
|
*
|
|
@@ -903,7 +902,7 @@ declare function Dc(t: any, e: any, ...n: any[]): Pc;
|
|
|
903
902
|
* @param persistenceSettings - Optional settings object to configure
|
|
904
903
|
* persistence.
|
|
905
904
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
906
|
-
*/ declare function
|
|
905
|
+
*/ declare function Kc(t: any, e: any): any;
|
|
907
906
|
/**
|
|
908
907
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
909
908
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -925,22 +924,22 @@ declare function Dc(t: any, e: any, ...n: any[]): Pc;
|
|
|
925
924
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
926
925
|
* @returns A `Promise` that represents successfully enabling persistent
|
|
927
926
|
* storage.
|
|
928
|
-
*/ declare function
|
|
927
|
+
*/ declare function jc(t: any): any;
|
|
929
928
|
/**
|
|
930
929
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
931
930
|
* call to {@link disableNetwork}.
|
|
932
931
|
*
|
|
933
932
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
934
|
-
*/ declare function
|
|
935
|
-
declare function
|
|
936
|
-
declare function
|
|
933
|
+
*/ declare function zc(t: any): any;
|
|
934
|
+
declare function eh(...t: any[]): Zu;
|
|
935
|
+
declare function th(...t: any[]): Zu;
|
|
937
936
|
/**
|
|
938
937
|
* @internal
|
|
939
|
-
*/ declare function
|
|
938
|
+
*/ declare function Uc(t: any): any;
|
|
940
939
|
/**
|
|
941
940
|
* Locally writes `mutations` on the async queue.
|
|
942
941
|
* @internal
|
|
943
|
-
*/ declare function
|
|
942
|
+
*/ declare function Rh(t: any, e: any): Promise<any>;
|
|
944
943
|
/**
|
|
945
944
|
* @license
|
|
946
945
|
* Copyright 2020 Google LLC
|
|
@@ -992,21 +991,21 @@ declare function Zu(...t: any[]): Xu;
|
|
|
992
991
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
993
992
|
* current document contents.
|
|
994
993
|
*/
|
|
995
|
-
declare function
|
|
994
|
+
declare function lh(t: any): Promise<$u>;
|
|
996
995
|
/**
|
|
997
996
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
998
997
|
* Returns an error if the document is not currently cached.
|
|
999
998
|
*
|
|
1000
999
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1001
1000
|
* current document contents.
|
|
1002
|
-
*/ declare function
|
|
1001
|
+
*/ declare function dh(t: any): Promise<$u>;
|
|
1003
1002
|
/**
|
|
1004
1003
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
1005
1004
|
* Returns an error if the network is not available.
|
|
1006
1005
|
*
|
|
1007
1006
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1008
1007
|
* current document contents.
|
|
1009
|
-
*/ declare function
|
|
1008
|
+
*/ declare function wh(t: any): Promise<$u>;
|
|
1010
1009
|
/**
|
|
1011
1010
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1012
1011
|
*
|
|
@@ -1016,19 +1015,19 @@ declare function hh(t: any): Promise<xu>;
|
|
|
1016
1015
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
1017
1016
|
*
|
|
1018
1017
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1019
|
-
*/ declare function
|
|
1018
|
+
*/ declare function _h(t: any): Promise<Fu>;
|
|
1020
1019
|
/**
|
|
1021
1020
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1022
1021
|
* Returns an error if the document is not currently cached.
|
|
1023
1022
|
*
|
|
1024
1023
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1025
|
-
*/ declare function
|
|
1024
|
+
*/ declare function mh(t: any): Promise<Fu>;
|
|
1026
1025
|
/**
|
|
1027
1026
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1028
1027
|
* server. Returns an error if the network is not available.
|
|
1029
1028
|
*
|
|
1030
1029
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1031
|
-
*/ declare function
|
|
1030
|
+
*/ declare function gh(t: any): Promise<Fu>;
|
|
1032
1031
|
/**
|
|
1033
1032
|
* Returns the existing {@link Firestore} instance that is associated with the
|
|
1034
1033
|
* provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
|
|
@@ -1037,7 +1036,7 @@ declare function hh(t: any): Promise<xu>;
|
|
|
1037
1036
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
|
|
1038
1037
|
* instance is associated with.
|
|
1039
1038
|
* @returns The {@link Firestore} instance of the provided app.
|
|
1040
|
-
*/ declare function
|
|
1039
|
+
*/ declare function Bc(e?: import("@firebase/app").FirebaseApp): import("../src").Firestore;
|
|
1041
1040
|
/**
|
|
1042
1041
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1043
1042
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1056,7 +1055,7 @@ declare function hh(t: any): Promise<xu>;
|
|
|
1056
1055
|
* @param n - The value to increment by.
|
|
1057
1056
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1058
1057
|
* `updateDoc()`
|
|
1059
|
-
*/ declare function
|
|
1058
|
+
*/ declare function Nh(t: any): yu;
|
|
1060
1059
|
/**
|
|
1061
1060
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1062
1061
|
* Can only be called before any other function, including
|
|
@@ -1067,13 +1066,13 @@ declare function hh(t: any): Promise<xu>;
|
|
|
1067
1066
|
* be associated.
|
|
1068
1067
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1069
1068
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1070
|
-
*/ declare function
|
|
1069
|
+
*/ declare function Lc(t: any, e: any): import("../src").Firestore;
|
|
1071
1070
|
/**
|
|
1072
1071
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
1073
1072
|
*
|
|
1074
1073
|
* @param limit - The maximum number of items to return.
|
|
1075
1074
|
* @returns The created {@link Query}.
|
|
1076
|
-
*/ declare function
|
|
1075
|
+
*/ declare function zu(t: any): Gu;
|
|
1077
1076
|
/**
|
|
1078
1077
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
1079
1078
|
*
|
|
@@ -1082,7 +1081,7 @@ declare function hh(t: any): Promise<xu>;
|
|
|
1082
1081
|
*
|
|
1083
1082
|
* @param limit - The maximum number of items to return.
|
|
1084
1083
|
* @returns The created {@link Query}.
|
|
1085
|
-
*/ declare function
|
|
1084
|
+
*/ declare function Hu(t: any): Gu;
|
|
1086
1085
|
/**
|
|
1087
1086
|
* Loads a Firestore bundle into the local cache.
|
|
1088
1087
|
*
|
|
@@ -1093,16 +1092,16 @@ declare function hh(t: any): Promise<xu>;
|
|
|
1093
1092
|
* @returns
|
|
1094
1093
|
* A `LoadBundleTask` object, which notifies callers with progress updates, and completion
|
|
1095
1094
|
* or error events. It can be used as a `Promise<LoadBundleTaskProgress>`.
|
|
1096
|
-
*/ declare function
|
|
1095
|
+
*/ declare function Yc(t: any, e: any): Oc;
|
|
1097
1096
|
/**
|
|
1098
1097
|
* Reads a Firestore {@link Query} from local cache, identified by the given name.
|
|
1099
1098
|
*
|
|
1100
1099
|
* The named queries are packaged into bundles on the server side (along
|
|
1101
1100
|
* with resulting documents), and loaded to local cache using `loadBundle`. Once in local
|
|
1102
1101
|
* cache, use this method to extract a {@link Query} by name.
|
|
1103
|
-
*/ declare function
|
|
1104
|
-
declare function
|
|
1105
|
-
declare function
|
|
1102
|
+
*/ declare function Xc(t: any, e: any): any;
|
|
1103
|
+
declare function Ih(t: any, ...e: any[]): () => void;
|
|
1104
|
+
declare function Ah(t: any, e: any): () => void;
|
|
1106
1105
|
/**
|
|
1107
1106
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
1108
1107
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1111,7 +1110,7 @@ declare function Ih(t: any, e: any): () => void;
|
|
|
1111
1110
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1112
1111
|
* not specified, order will be ascending.
|
|
1113
1112
|
* @returns The created {@link Query}.
|
|
1114
|
-
*/ declare function
|
|
1113
|
+
*/ declare function Wu(t: any, e?: string): Qu;
|
|
1115
1114
|
/**
|
|
1116
1115
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
1117
1116
|
* additional query constraints.
|
|
@@ -1120,7 +1119,7 @@ declare function Ih(t: any, e: any): () => void;
|
|
|
1120
1119
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
1121
1120
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
1122
1121
|
* existing or new constraints.
|
|
1123
|
-
*/ declare function
|
|
1122
|
+
*/ declare function qu(t: any, ...e: any[]): any;
|
|
1124
1123
|
/**
|
|
1125
1124
|
* Returns true if the provided queries point to the same collection and apply
|
|
1126
1125
|
* the same constraints.
|
|
@@ -1129,7 +1128,7 @@ declare function Ih(t: any, e: any): () => void;
|
|
|
1129
1128
|
* @param right - A `Query` to compare.
|
|
1130
1129
|
* @returns true if the references point to the same location in the same
|
|
1131
1130
|
* Firestore database.
|
|
1132
|
-
*/ declare function
|
|
1131
|
+
*/ declare function kc(t: any, e: any): boolean;
|
|
1133
1132
|
/**
|
|
1134
1133
|
* Returns true if the provided references are equal.
|
|
1135
1134
|
*
|
|
@@ -1137,7 +1136,7 @@ declare function Ih(t: any, e: any): () => void;
|
|
|
1137
1136
|
* @param right - A reference to compare.
|
|
1138
1137
|
* @returns true if the references point to the same location in the same
|
|
1139
1138
|
* Firestore database.
|
|
1140
|
-
*/ declare function
|
|
1139
|
+
*/ declare function Nc(t: any, e: any): boolean;
|
|
1141
1140
|
/**
|
|
1142
1141
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1143
1142
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1154,12 +1153,12 @@ declare function Ih(t: any, e: any): () => void;
|
|
|
1154
1153
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1155
1154
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1156
1155
|
* rejected promise with the corresponding failure error is returned.
|
|
1157
|
-
*/ declare function
|
|
1156
|
+
*/ declare function vh(t: any, e: any): Promise<any>;
|
|
1158
1157
|
/**
|
|
1159
1158
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1160
1159
|
* include a server-generated timestamp in the written data.
|
|
1161
|
-
*/ declare function
|
|
1162
|
-
declare function
|
|
1160
|
+
*/ declare function Sh(): _u;
|
|
1161
|
+
declare function yh(t: any, e: any, n: any): Promise<any>;
|
|
1163
1162
|
/**
|
|
1164
1163
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1165
1164
|
*
|
|
@@ -1172,16 +1171,16 @@ declare function gh(t: any, e: any, n: any): Promise<any>;
|
|
|
1172
1171
|
* <li>`error` to log errors only.</li>
|
|
1173
1172
|
* <li><code>`silent` to turn off logging.</li>
|
|
1174
1173
|
* </ul>
|
|
1175
|
-
*/ declare function
|
|
1174
|
+
*/ declare function $(t: any): void;
|
|
1176
1175
|
/**
|
|
1177
1176
|
* Returns true if the provided snapshots are equal.
|
|
1178
1177
|
*
|
|
1179
1178
|
* @param left - A snapshot to compare.
|
|
1180
1179
|
* @param right - A snapshot to compare.
|
|
1181
1180
|
* @returns true if the snapshots are equal.
|
|
1182
|
-
*/ declare function
|
|
1183
|
-
declare function
|
|
1184
|
-
declare function
|
|
1181
|
+
*/ declare function Lu(t: any, e: any): any;
|
|
1182
|
+
declare function Xu(...t: any[]): Ju;
|
|
1183
|
+
declare function Yu(...t: any[]): Ju;
|
|
1185
1184
|
/**
|
|
1186
1185
|
* Terminates the provided {@link Firestore} instance.
|
|
1187
1186
|
*
|
|
@@ -1203,8 +1202,8 @@ declare function Ju(...t: any[]): Hu;
|
|
|
1203
1202
|
*
|
|
1204
1203
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1205
1204
|
* terminated.
|
|
1206
|
-
*/ declare function
|
|
1207
|
-
declare function
|
|
1205
|
+
*/ declare function Jc(t: any): any;
|
|
1206
|
+
declare function ph(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1208
1207
|
/**
|
|
1209
1208
|
* Waits until all currently pending writes for the active user have been
|
|
1210
1209
|
* acknowledged by the backend.
|
|
@@ -1220,7 +1219,7 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1220
1219
|
*
|
|
1221
1220
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1222
1221
|
* acknowledged by the backend.
|
|
1223
|
-
*/ declare function
|
|
1222
|
+
*/ declare function Gc(t: any): Promise<any>;
|
|
1224
1223
|
/**
|
|
1225
1224
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
1226
1225
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -1231,7 +1230,7 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1231
1230
|
* "<=", "!=").
|
|
1232
1231
|
* @param value - The value for comparison
|
|
1233
1232
|
* @returns The created {@link Query}.
|
|
1234
|
-
*/ declare function
|
|
1233
|
+
*/ declare function ju(t: any, e: any, n: any): Ku;
|
|
1235
1234
|
/**
|
|
1236
1235
|
* @license
|
|
1237
1236
|
* Copyright 2020 Google LLC
|
|
@@ -1258,7 +1257,7 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1258
1257
|
*
|
|
1259
1258
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1260
1259
|
* writes.
|
|
1261
|
-
*/ declare function
|
|
1260
|
+
*/ declare function kh(t: any): uh;
|
|
1262
1261
|
/**
|
|
1263
1262
|
* @license
|
|
1264
1263
|
* Copyright 2020 Google LLC
|
|
@@ -1283,7 +1282,7 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1283
1282
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
1284
1283
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
1285
1284
|
* explicitly verify a document's existence.
|
|
1286
|
-
*/ declare class
|
|
1285
|
+
*/ declare class Cu {
|
|
1287
1286
|
/** @hideconstructor protected */
|
|
1288
1287
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1289
1288
|
_firestore: any;
|
|
@@ -1338,7 +1337,7 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1338
1337
|
* The Cloud Firestore service interface.
|
|
1339
1338
|
*
|
|
1340
1339
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
1341
|
-
*/ declare class
|
|
1340
|
+
*/ declare class Rc {
|
|
1342
1341
|
/** @hideconstructor */
|
|
1343
1342
|
constructor(t: any, e: any, n: any);
|
|
1344
1343
|
_authCredentials: any;
|
|
@@ -1348,9 +1347,9 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1348
1347
|
*/
|
|
1349
1348
|
type: string;
|
|
1350
1349
|
_persistenceKey: string;
|
|
1351
|
-
_settings:
|
|
1350
|
+
_settings: Ac;
|
|
1352
1351
|
_settingsFrozen: boolean;
|
|
1353
|
-
_databaseId:
|
|
1352
|
+
_databaseId: wc;
|
|
1354
1353
|
_app: any;
|
|
1355
1354
|
/**
|
|
1356
1355
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1359,14 +1358,14 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1359
1358
|
get _initialized(): boolean;
|
|
1360
1359
|
get _terminated(): boolean;
|
|
1361
1360
|
_setSettings(t: any): void;
|
|
1362
|
-
_getSettings():
|
|
1363
|
-
_freezeSettings():
|
|
1361
|
+
_getSettings(): Ac;
|
|
1362
|
+
_freezeSettings(): Ac;
|
|
1364
1363
|
_delete(): Promise<void>;
|
|
1365
1364
|
_terminateTask: Promise<void> | undefined;
|
|
1366
1365
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1367
1366
|
app: any;
|
|
1368
|
-
databaseId:
|
|
1369
|
-
settings:
|
|
1367
|
+
databaseId: wc;
|
|
1368
|
+
settings: Ac;
|
|
1370
1369
|
};
|
|
1371
1370
|
/**
|
|
1372
1371
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1391,7 +1390,7 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1391
1390
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1392
1391
|
* See the License for the specific language governing permissions and
|
|
1393
1392
|
* limitations under the License.
|
|
1394
|
-
*/ declare class
|
|
1393
|
+
*/ declare class xc {
|
|
1395
1394
|
ma: Promise<void>;
|
|
1396
1395
|
ga: any[];
|
|
1397
1396
|
ya: boolean;
|
|
@@ -1400,7 +1399,7 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1400
1399
|
Ea: boolean;
|
|
1401
1400
|
Ia: boolean;
|
|
1402
1401
|
Aa: any[];
|
|
1403
|
-
ur:
|
|
1402
|
+
ur: no;
|
|
1404
1403
|
Ra: () => void;
|
|
1405
1404
|
get isShuttingDown(): boolean;
|
|
1406
1405
|
/**
|
|
@@ -1415,9 +1414,9 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1415
1414
|
* Runs the next operation from the retryable queue. If the operation fails,
|
|
1416
1415
|
* reschedules with backoff.
|
|
1417
1416
|
*/ va(): Promise<void>;
|
|
1418
|
-
|
|
1417
|
+
Pa(t: any): Promise<any>;
|
|
1419
1418
|
enqueueAfterDelay(t: any, e: any, n: any): Fo;
|
|
1420
|
-
|
|
1419
|
+
ba(): void;
|
|
1421
1420
|
verifyOperationInProgress(): void;
|
|
1422
1421
|
/**
|
|
1423
1422
|
* Waits until all currently queued tasks are finished executing. Delayed
|
|
@@ -1439,6 +1438,7 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1439
1438
|
*/ Na(t: any): void;
|
|
1440
1439
|
/** Called once a DelayedOperation is run or canceled. */ Va(t: any): void;
|
|
1441
1440
|
}
|
|
1441
|
+
import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
1442
1442
|
/**
|
|
1443
1443
|
* @license
|
|
1444
1444
|
* Copyright 2017 Google LLC
|
|
@@ -1454,7 +1454,7 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1454
1454
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1455
1455
|
* See the License for the specific language governing permissions and
|
|
1456
1456
|
* limitations under the License.
|
|
1457
|
-
*/ declare class
|
|
1457
|
+
*/ declare class W {
|
|
1458
1458
|
promise: Promise<any>;
|
|
1459
1459
|
resolve: (value: any) => void;
|
|
1460
1460
|
reject: (reason?: any) => void;
|
|
@@ -1462,14 +1462,14 @@ declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1462
1462
|
/**
|
|
1463
1463
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1464
1464
|
* classes.
|
|
1465
|
-
*/ declare class
|
|
1465
|
+
*/ declare class hu {
|
|
1466
1466
|
constructor(t: any, e: any, n: any);
|
|
1467
1467
|
databaseId: any;
|
|
1468
1468
|
ignoreUndefinedProperties: any;
|
|
1469
1469
|
k: any;
|
|
1470
|
-
/** Creates a new top-level parse context. */ ja(t: any, e: any, n: any, s?: boolean):
|
|
1470
|
+
/** Creates a new top-level parse context. */ ja(t: any, e: any, n: any, s?: boolean): uu;
|
|
1471
1471
|
}
|
|
1472
|
-
declare class
|
|
1472
|
+
declare class Z {
|
|
1473
1473
|
constructor(t: any);
|
|
1474
1474
|
value: any;
|
|
1475
1475
|
type: string;
|
|
@@ -1494,7 +1494,7 @@ declare class X {
|
|
|
1494
1494
|
/**
|
|
1495
1495
|
* Path represents an ordered sequence of string segments.
|
|
1496
1496
|
*/
|
|
1497
|
-
declare class
|
|
1497
|
+
declare class dt {
|
|
1498
1498
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
1499
1499
|
constructor(t: any, e: any, n: any);
|
|
1500
1500
|
segments: any;
|
|
@@ -1515,67 +1515,67 @@ declare class ft {
|
|
|
1515
1515
|
forEach(t: any): void;
|
|
1516
1516
|
toArray(): any;
|
|
1517
1517
|
}
|
|
1518
|
-
declare class
|
|
1518
|
+
declare class gu extends su {
|
|
1519
1519
|
constructor(t: any, e: any);
|
|
1520
1520
|
Qa: any;
|
|
1521
|
-
_toFieldTransform(t: any):
|
|
1521
|
+
_toFieldTransform(t: any): ze;
|
|
1522
1522
|
isEqual(t: any): boolean;
|
|
1523
1523
|
}
|
|
1524
|
-
declare class
|
|
1524
|
+
declare class mu extends su {
|
|
1525
1525
|
constructor(t: any, e: any);
|
|
1526
1526
|
Qa: any;
|
|
1527
|
-
_toFieldTransform(t: any):
|
|
1527
|
+
_toFieldTransform(t: any): ze;
|
|
1528
1528
|
isEqual(t: any): boolean;
|
|
1529
1529
|
}
|
|
1530
|
-
declare class
|
|
1530
|
+
declare class du extends su {
|
|
1531
1531
|
_toFieldTransform(t: any): null;
|
|
1532
1532
|
isEqual(t: any): boolean;
|
|
1533
1533
|
}
|
|
1534
|
-
declare class
|
|
1534
|
+
declare class Zu extends Uu {
|
|
1535
1535
|
constructor(t: any, e: any, n: any);
|
|
1536
1536
|
type: any;
|
|
1537
1537
|
Za: any;
|
|
1538
1538
|
tc: any;
|
|
1539
|
-
_apply(t: any):
|
|
1539
|
+
_apply(t: any): vc;
|
|
1540
1540
|
}
|
|
1541
|
-
declare class
|
|
1541
|
+
declare class yu extends su {
|
|
1542
1542
|
constructor(t: any, e: any);
|
|
1543
1543
|
Wa: any;
|
|
1544
|
-
_toFieldTransform(t: any):
|
|
1544
|
+
_toFieldTransform(t: any): ze;
|
|
1545
1545
|
isEqual(t: any): boolean;
|
|
1546
1546
|
}
|
|
1547
|
-
declare class
|
|
1547
|
+
declare class Gu extends Uu {
|
|
1548
1548
|
constructor(t: any, e: any, n: any);
|
|
1549
1549
|
type: any;
|
|
1550
1550
|
Ya: any;
|
|
1551
1551
|
Xa: any;
|
|
1552
|
-
_apply(t: any):
|
|
1552
|
+
_apply(t: any): vc;
|
|
1553
1553
|
}
|
|
1554
|
-
declare class
|
|
1554
|
+
declare class Qu extends Uu {
|
|
1555
1555
|
constructor(t: any, e: any);
|
|
1556
1556
|
Ga: any;
|
|
1557
1557
|
Ja: any;
|
|
1558
1558
|
type: string;
|
|
1559
|
-
_apply(t: any):
|
|
1559
|
+
_apply(t: any): vc;
|
|
1560
1560
|
}
|
|
1561
|
-
declare class
|
|
1562
|
-
_toFieldTransform(t: any):
|
|
1561
|
+
declare class _u extends su {
|
|
1562
|
+
_toFieldTransform(t: any): ze;
|
|
1563
1563
|
isEqual(t: any): boolean;
|
|
1564
1564
|
}
|
|
1565
|
-
declare class
|
|
1565
|
+
declare class Ju extends Uu {
|
|
1566
1566
|
constructor(t: any, e: any, n: any);
|
|
1567
1567
|
type: any;
|
|
1568
1568
|
Za: any;
|
|
1569
1569
|
tc: any;
|
|
1570
|
-
_apply(t: any):
|
|
1570
|
+
_apply(t: any): vc;
|
|
1571
1571
|
}
|
|
1572
|
-
declare class
|
|
1572
|
+
declare class Ku extends Uu {
|
|
1573
1573
|
constructor(t: any, e: any, n: any);
|
|
1574
1574
|
Ga: any;
|
|
1575
1575
|
za: any;
|
|
1576
1576
|
Ha: any;
|
|
1577
1577
|
type: string;
|
|
1578
|
-
_apply(t: any):
|
|
1578
|
+
_apply(t: any): vc;
|
|
1579
1579
|
}
|
|
1580
1580
|
/**
|
|
1581
1581
|
* @license
|
|
@@ -1598,7 +1598,7 @@ declare class qu extends Bu {
|
|
|
1598
1598
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1599
1599
|
* defaults can be supplied and the value can be checked for equality.
|
|
1600
1600
|
*/
|
|
1601
|
-
declare class
|
|
1601
|
+
declare class Ac {
|
|
1602
1602
|
constructor(t: any);
|
|
1603
1603
|
host: any;
|
|
1604
1604
|
ssl: any;
|
|
@@ -1622,9 +1622,9 @@ declare class Ic {
|
|
|
1622
1622
|
* base delay. This prevents clients from accidentally synchronizing their
|
|
1623
1623
|
* delays causing spikes of load to the backend.
|
|
1624
1624
|
*/
|
|
1625
|
-
declare class
|
|
1625
|
+
declare class no {
|
|
1626
1626
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
1627
|
-
|
|
1627
|
+
Fe: any;
|
|
1628
1628
|
timerId: any;
|
|
1629
1629
|
Wi: number;
|
|
1630
1630
|
Gi: number;
|
|
@@ -1701,7 +1701,7 @@ declare class Fo {
|
|
|
1701
1701
|
targetTimeMs: any;
|
|
1702
1702
|
op: any;
|
|
1703
1703
|
removalCallback: any;
|
|
1704
|
-
deferred:
|
|
1704
|
+
deferred: W;
|
|
1705
1705
|
then: <TResult1 = any, TResult2 = never>(onfulfilled?: ((value: any) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Starts the timer. This is called immediately after construction by
|
|
@@ -1722,7 +1722,7 @@ declare class Fo {
|
|
|
1722
1722
|
handleDelayElapsed(): void;
|
|
1723
1723
|
clearTimeout(): void;
|
|
1724
1724
|
}
|
|
1725
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1725
|
+
/** A "context" object passed around while parsing user data. */ declare class uu {
|
|
1726
1726
|
/**
|
|
1727
1727
|
* Initializes a ParseContext with the given source and path.
|
|
1728
1728
|
*
|
|
@@ -1750,11 +1750,11 @@ declare class Fo {
|
|
|
1750
1750
|
fieldMask: any;
|
|
1751
1751
|
get path(): any;
|
|
1752
1752
|
get xa(): any;
|
|
1753
|
-
/** Returns a new context with the specified settings overwritten. */ $a(t: any):
|
|
1754
|
-
|
|
1755
|
-
La(t: any):
|
|
1756
|
-
Ba(t: any):
|
|
1757
|
-
Ua(t: any):
|
|
1753
|
+
/** Returns a new context with the specified settings overwritten. */ $a(t: any): uu;
|
|
1754
|
+
Oa(t: any): uu;
|
|
1755
|
+
La(t: any): uu;
|
|
1756
|
+
Ba(t: any): uu;
|
|
1757
|
+
Ua(t: any): Q;
|
|
1758
1758
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1759
1759
|
ka(): void;
|
|
1760
1760
|
Ma(t: any): void;
|
|
@@ -1775,9 +1775,9 @@ declare class Fo {
|
|
|
1775
1775
|
* See the License for the specific language governing permissions and
|
|
1776
1776
|
* limitations under the License.
|
|
1777
1777
|
*/
|
|
1778
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1778
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class ze {
|
|
1779
1779
|
constructor(t: any, e: any);
|
|
1780
1780
|
field: any;
|
|
1781
1781
|
transform: any;
|
|
1782
1782
|
}
|
|
1783
|
-
export {
|
|
1783
|
+
export { oh as AbstractUserDataWriter, nu as Bytes, Fc as CACHE_SIZE_UNLIMITED, Vc as CollectionReference, Pc as DocumentReference, $u as DocumentSnapshot, tu as FieldPath, su as FieldValue, Mc as Firestore, Q as FirestoreError, iu as GeoPoint, Oc as LoadBundleTask, vc as Query, Uu as QueryConstraint, Ou as QueryDocumentSnapshot, Fu as QuerySnapshot, xu as SnapshotMetadata, ct as Timestamp, Ph as Transaction, uh as WriteBatch, wc as _DatabaseId, Dt as _DocumentKey, et as _EmptyAppCheckTokenProvider, z as _EmptyAuthCredentialsProvider, mt as _FieldPath, Ec as _cast, q as _debugAssert, yt as _isBase64Available, M as _logWarn, gc as _validateIsNotUsedTogether, Eh as addDoc, Ch as arrayRemove, Dh as arrayUnion, Wc as clearIndexedDbPersistence, Sc as collection, Dc as collectionGroup, bc as connectFirestoreEmulator, Th as deleteDoc, Vh as deleteField, Hc as disableNetwork, Cc as doc, eu as documentId, Kc as enableIndexedDbPersistence, jc as enableMultiTabIndexedDbPersistence, zc as enableNetwork, eh as endAt, th as endBefore, Uc as ensureFirestoreConfigured, Rh as executeWrite, lh as getDoc, dh as getDocFromCache, wh as getDocFromServer, _h as getDocs, mh as getDocsFromCache, gh as getDocsFromServer, Bc as getFirestore, Nh as increment, Lc as initializeFirestore, zu as limit, Hu as limitToLast, Yc as loadBundle, Xc as namedQuery, Ih as onSnapshot, Ah as onSnapshotsInSync, Wu as orderBy, qu as query, kc as queryEqual, Nc as refEqual, vh as runTransaction, Sh as serverTimestamp, yh as setDoc, $ as setLogLevel, Lu as snapshotEqual, Xu as startAfter, Yu as startAt, Jc as terminate, ph as updateDoc, Gc as waitForPendingWrites, ju as where, kh as writeBatch };
|