@firebase/firestore 3.4.9-canary.d38eced3b → 3.4.9-canary.dbf623ffe
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/firestore/src/local/document_overlay_cache.d.ts +5 -0
- package/dist/firestore/src/local/indexeddb_document_overlay_cache.d.ts +1 -0
- package/dist/firestore/src/local/indexeddb_schema.d.ts +3 -2
- package/dist/firestore/src/local/indexeddb_schema_converter.d.ts +1 -0
- package/dist/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
- package/dist/firestore/src/local/local_documents_view.d.ts +48 -9
- package/dist/firestore/src/local/memory_document_overlay_cache.d.ts +1 -0
- package/dist/firestore/src/local/overlayed_document.d.ts +36 -0
- package/dist/firestore/src/model/collections.d.ts +2 -0
- package/dist/firestore/src/model/field_mask.d.ts +6 -0
- package/dist/firestore/src/model/mutation.d.ts +19 -1
- package/dist/firestore/src/model/mutation_batch.d.ts +9 -4
- package/dist/firestore/test/unit/local/test_document_overlay_cache.d.ts +1 -0
- package/dist/firestore/test/util/helpers.d.ts +12 -0
- package/dist/index.esm2017.js +10630 -10387
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +10793 -10516
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +10955 -10585
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +10955 -10585
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +10565 -10322
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +44 -3
- package/dist/lite/firestore/src/local/document_overlay_cache.d.ts +5 -0
- package/dist/lite/firestore/src/local/indexeddb_document_overlay_cache.d.ts +1 -0
- package/dist/lite/firestore/src/local/indexeddb_schema.d.ts +3 -2
- package/dist/lite/firestore/src/local/indexeddb_schema_converter.d.ts +1 -0
- package/dist/lite/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
- package/dist/lite/firestore/src/local/local_documents_view.d.ts +48 -9
- package/dist/lite/firestore/src/local/memory_document_overlay_cache.d.ts +1 -0
- package/dist/lite/firestore/src/local/overlayed_document.d.ts +36 -0
- package/dist/lite/firestore/src/model/collections.d.ts +2 -0
- package/dist/lite/firestore/src/model/field_mask.d.ts +6 -0
- package/dist/lite/firestore/src/model/mutation.d.ts +19 -1
- package/dist/lite/firestore/src/model/mutation_batch.d.ts +9 -4
- package/dist/lite/firestore/test/unit/local/test_document_overlay_cache.d.ts +1 -0
- package/dist/lite/firestore/test/util/helpers.d.ts +12 -0
- package/dist/lite/index.browser.esm2017.js +1218 -738
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +1154 -764
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +653 -2
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +653 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +1231 -751
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +12 -0
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +104 -104
- package/dist/lite/packages/firestore/src/local/document_overlay_cache.d.ts +5 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_document_overlay_cache.d.ts +1 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_schema.d.ts +3 -2
- package/dist/lite/packages/firestore/src/local/indexeddb_schema_converter.d.ts +1 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
- package/dist/lite/packages/firestore/src/local/local_documents_view.d.ts +48 -9
- package/dist/lite/packages/firestore/src/local/memory_document_overlay_cache.d.ts +1 -0
- package/dist/lite/packages/firestore/src/local/overlayed_document.d.ts +36 -0
- package/dist/lite/packages/firestore/src/model/collections.d.ts +2 -0
- package/dist/lite/packages/firestore/src/model/field_mask.d.ts +6 -0
- package/dist/lite/packages/firestore/src/model/mutation.d.ts +19 -1
- package/dist/lite/packages/firestore/src/model/mutation_batch.d.ts +9 -4
- package/dist/lite/packages/firestore/test/unit/local/test_document_overlay_cache.d.ts +1 -0
- package/dist/lite/packages/firestore/test/util/helpers.d.ts +12 -0
- package/dist/lite/private.d.ts +12 -0
- package/dist/packages/firestore/dist/index.esm2017.d.ts +189 -189
- package/dist/packages/firestore/src/local/document_overlay_cache.d.ts +5 -0
- package/dist/packages/firestore/src/local/indexeddb_document_overlay_cache.d.ts +1 -0
- package/dist/packages/firestore/src/local/indexeddb_schema.d.ts +3 -2
- package/dist/packages/firestore/src/local/indexeddb_schema_converter.d.ts +1 -0
- package/dist/packages/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
- package/dist/packages/firestore/src/local/local_documents_view.d.ts +48 -9
- package/dist/packages/firestore/src/local/memory_document_overlay_cache.d.ts +1 -0
- package/dist/packages/firestore/src/local/overlayed_document.d.ts +36 -0
- package/dist/packages/firestore/src/model/collections.d.ts +2 -0
- package/dist/packages/firestore/src/model/field_mask.d.ts +6 -0
- package/dist/packages/firestore/src/model/mutation.d.ts +19 -1
- package/dist/packages/firestore/src/model/mutation_batch.d.ts +9 -4
- package/dist/packages/firestore/test/unit/local/test_document_overlay_cache.d.ts +1 -0
- package/dist/packages/firestore/test/util/helpers.d.ts +12 -0
- package/dist/private.d.ts +44 -3
- package/package.json +13 -13
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
22
|
*/
|
|
23
|
-
declare class
|
|
23
|
+
declare class el {
|
|
24
24
|
convertValue(t: any, e?: string): any;
|
|
25
25
|
convertObject(t: any, e: any): {};
|
|
26
|
-
convertGeoPoint(t: any):
|
|
26
|
+
convertGeoPoint(t: any): Xc;
|
|
27
27
|
convertArray(t: any, e: any): any;
|
|
28
28
|
convertServerTimestamp(t: any, e: any): any;
|
|
29
29
|
convertTimestamp(t: any): at;
|
|
30
|
-
convertDocumentKey(t: any, e: any):
|
|
30
|
+
convertDocumentKey(t: any, e: any): $t;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* @license
|
|
@@ -47,18 +47,18 @@ declare class Jh {
|
|
|
47
47
|
*/
|
|
48
48
|
/**
|
|
49
49
|
* An immutable object representing an array of bytes.
|
|
50
|
-
*/ declare class
|
|
50
|
+
*/ declare class Jc {
|
|
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): Jc;
|
|
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): Jc;
|
|
62
62
|
/** @hideconstructor */
|
|
63
63
|
constructor(t: any);
|
|
64
64
|
_byteString: any;
|
|
@@ -100,11 +100,11 @@ declare class Jh {
|
|
|
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 Cc: -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 Ec extends Tc {
|
|
108
108
|
_path: any;
|
|
109
109
|
/** The collection's identifier. */ get id(): any;
|
|
110
110
|
/**
|
|
@@ -114,7 +114,7 @@ declare class Jh {
|
|
|
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(): Ic | null;
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
120
120
|
* @license
|
|
@@ -136,7 +136,7 @@ declare class Jh {
|
|
|
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 Ic {
|
|
140
140
|
/** @hideconstructor */
|
|
141
141
|
constructor(t: any, e: any, n: any);
|
|
142
142
|
converter: any;
|
|
@@ -154,8 +154,8 @@ declare class Jh {
|
|
|
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(): Ec;
|
|
158
|
+
withConverter(t: any): Ic;
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
161
|
* A `DocumentSnapshot` contains data read from a document in your Firestore
|
|
@@ -165,7 +165,7 @@ declare class Jh {
|
|
|
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 Sh 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 Jh {
|
|
|
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 zc {
|
|
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 Kc {
|
|
|
219
219
|
* @param fieldNames - A list of field names.
|
|
220
220
|
*/
|
|
221
221
|
constructor(...t: any[]);
|
|
222
|
-
_internalPath:
|
|
222
|
+
_internalPath: Et;
|
|
223
223
|
/**
|
|
224
224
|
* Returns true if this `FieldPath` is equal to the provided one.
|
|
225
225
|
*
|
|
@@ -246,7 +246,7 @@ declare class Kc {
|
|
|
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 Yc {
|
|
250
250
|
/**
|
|
251
251
|
* @param _methodName - The public API endpoint that returns this class.
|
|
252
252
|
* @hideconstructor
|
|
@@ -259,8 +259,8 @@ declare class Kc {
|
|
|
259
259
|
*
|
|
260
260
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
261
261
|
*/
|
|
262
|
-
declare class
|
|
263
|
-
_queue:
|
|
262
|
+
declare class xc extends yc {
|
|
263
|
+
_queue: vc;
|
|
264
264
|
}
|
|
265
265
|
/** An error returned by a Firestore operation. */ declare class Q extends a {
|
|
266
266
|
/** @hideconstructor */
|
|
@@ -288,7 +288,7 @@ declare class Vc extends dc {
|
|
|
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 Xc {
|
|
292
292
|
/**
|
|
293
293
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
294
294
|
* longitude values.
|
|
@@ -319,7 +319,7 @@ declare class Vc extends dc {
|
|
|
319
319
|
* with an underscore.
|
|
320
320
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
321
321
|
}
|
|
322
|
-
declare class
|
|
322
|
+
declare class Dc {
|
|
323
323
|
_progressObserver: {};
|
|
324
324
|
_taskCompletionResolver: j;
|
|
325
325
|
_lastProgress: {
|
|
@@ -371,7 +371,7 @@ declare class bc {
|
|
|
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 Tc {
|
|
375
375
|
/** @hideconstructor protected */
|
|
376
376
|
constructor(t: any, e: any, n: any);
|
|
377
377
|
converter: any;
|
|
@@ -379,7 +379,7 @@ declare class bc {
|
|
|
379
379
|
/** The type of this Firestore reference. */
|
|
380
380
|
type: string;
|
|
381
381
|
firestore: any;
|
|
382
|
-
withConverter(t: any):
|
|
382
|
+
withConverter(t: any): Tc;
|
|
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 bc {
|
|
|
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 bc {
|
|
|
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 Dh extends Sh {
|
|
404
404
|
}
|
|
405
405
|
/**
|
|
406
406
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -408,13 +408,13 @@ declare class bc {
|
|
|
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 Ch {
|
|
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: vh;
|
|
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 bc {
|
|
|
456
456
|
*/
|
|
457
457
|
/**
|
|
458
458
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
459
|
-
*/ declare class
|
|
459
|
+
*/ declare class vh {
|
|
460
460
|
/** @hideconstructor */
|
|
461
461
|
constructor(t: any, e: any);
|
|
462
462
|
hasPendingWrites: any;
|
|
@@ -565,11 +565,11 @@ declare class at {
|
|
|
565
565
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
566
566
|
*/ valueOf(): string;
|
|
567
567
|
}
|
|
568
|
-
declare const
|
|
568
|
+
declare const Tl_base: {
|
|
569
569
|
new (t: any, e: any): {
|
|
570
570
|
_firestore: any;
|
|
571
571
|
_transaction: any;
|
|
572
|
-
_dataReader:
|
|
572
|
+
_dataReader: ih;
|
|
573
573
|
/**
|
|
574
574
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
575
575
|
*
|
|
@@ -608,7 +608,7 @@ declare const ml_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 Tl extends Tl_base {
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
614
|
* @license
|
|
@@ -633,22 +633,22 @@ declare const ml_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 il {
|
|
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: ih;
|
|
644
|
+
set(t: any, e: any, n: any): il;
|
|
645
|
+
update(t: any, e: any, n: any, ...s: any[]): il;
|
|
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): il;
|
|
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 ml_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 kt {
|
|
672
|
+
static empty(): kt;
|
|
673
673
|
constructor(t: any, e: any);
|
|
674
674
|
projectId: any;
|
|
675
675
|
database: any;
|
|
@@ -694,10 +694,10 @@ declare class vt {
|
|
|
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 $t {
|
|
698
|
+
static fromPath(t: any): $t;
|
|
699
|
+
static fromName(t: any): $t;
|
|
700
|
+
static empty(): $t;
|
|
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 vt {
|
|
|
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): $t;
|
|
709
709
|
constructor(t: any);
|
|
710
710
|
path: any;
|
|
711
711
|
get collectionGroup(): any;
|
|
@@ -736,14 +736,14 @@ declare class vt {
|
|
|
736
736
|
/**
|
|
737
737
|
* A dot-separated path for navigating sub-objects within a document.
|
|
738
738
|
* @internal
|
|
739
|
-
*/ declare class
|
|
739
|
+
*/ declare class Et extends pt {
|
|
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(): Et;
|
|
747
747
|
/**
|
|
748
748
|
* Parses a field string from the given server-formatted string.
|
|
749
749
|
*
|
|
@@ -753,16 +753,16 @@ declare class vt {
|
|
|
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): Et;
|
|
757
|
+
static emptyPath(): Et;
|
|
758
|
+
construct(t: any, e: any, n: any): Et;
|
|
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 wc(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.
|
|
@@ -791,7 +791,7 @@ declare function hc(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 Rt(): boolean;
|
|
795
795
|
/**
|
|
796
796
|
* @internal
|
|
797
797
|
*/ declare function $(t: any, ...e: any[]): void;
|
|
@@ -810,11 +810,11 @@ declare function yt(): boolean;
|
|
|
810
810
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
811
811
|
* See the License for the specific language governing permissions and
|
|
812
812
|
* limitations under the License.
|
|
813
|
-
*/ declare function
|
|
813
|
+
*/ declare function Sl(t: any, e: any): Promise<void>;
|
|
814
814
|
/**
|
|
815
815
|
* Validates that two boolean options are not set at the same time.
|
|
816
816
|
* @internal
|
|
817
|
-
*/ declare function
|
|
817
|
+
*/ declare function lc(t: any, e: any, n: any, s: any): void;
|
|
818
818
|
/**
|
|
819
819
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
820
820
|
* assigning it a document ID automatically.
|
|
@@ -824,7 +824,7 @@ declare function yt(): boolean;
|
|
|
824
824
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
825
825
|
* newly created document after it has been written to the backend (Note that it
|
|
826
826
|
* won't resolve while you're offline).
|
|
827
|
-
*/ declare function
|
|
827
|
+
*/ declare function ml(t: any, e: any): Promise<Ic>;
|
|
828
828
|
/**
|
|
829
829
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
830
830
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -835,7 +835,7 @@ declare function yt(): boolean;
|
|
|
835
835
|
* @param elements - The elements to remove from the array.
|
|
836
836
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
837
837
|
* `updateDoc()`
|
|
838
|
-
*/ declare function
|
|
838
|
+
*/ declare function bl(...t: any[]): lh;
|
|
839
839
|
/**
|
|
840
840
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
841
841
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -847,9 +847,9 @@ declare function yt(): boolean;
|
|
|
847
847
|
* @param elements - The elements to union into the array.
|
|
848
848
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
849
849
|
* `updateDoc()`.
|
|
850
|
-
*/ declare function
|
|
851
|
-
declare function
|
|
852
|
-
declare function
|
|
850
|
+
*/ declare function Pl(...t: any[]): hh;
|
|
851
|
+
declare function Lc(t: any): Promise<any>;
|
|
852
|
+
declare function Ac(t: any, e: any, ...n: any[]): Ec;
|
|
853
853
|
/**
|
|
854
854
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
855
855
|
* database that are contained in a collection or subcollection with the
|
|
@@ -860,15 +860,15 @@ declare function yc(t: any, e: any, ...n: any[]): gc;
|
|
|
860
860
|
* collection or subcollection with this ID as the last segment of its path
|
|
861
861
|
* will be included. Cannot contain a slash.
|
|
862
862
|
* @returns The created `Query`.
|
|
863
|
-
*/ declare function
|
|
864
|
-
declare function
|
|
863
|
+
*/ declare function Rc(t: any, e: any): Tc;
|
|
864
|
+
declare function pc(t: any, e: any, n: any, s?: {}): void;
|
|
865
865
|
/**
|
|
866
866
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
867
867
|
*
|
|
868
868
|
* @param reference - A reference to the document to delete.
|
|
869
869
|
* @returns A Promise resolved once the document has been successfully
|
|
870
870
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
871
|
-
*/ declare function
|
|
871
|
+
*/ declare function wl(t: any): Promise<any>;
|
|
872
872
|
/**
|
|
873
873
|
* @license
|
|
874
874
|
* Copyright 2020 Google LLC
|
|
@@ -888,7 +888,7 @@ declare function _c(t: any, e: any, n: any, s?: {}): void;
|
|
|
888
888
|
/**
|
|
889
889
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
890
890
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
891
|
-
*/ declare function
|
|
891
|
+
*/ declare function Al(): uh;
|
|
892
892
|
/**
|
|
893
893
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
894
894
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -896,12 +896,12 @@ declare function _c(t: any, e: any, n: any, s?: {}): void;
|
|
|
896
896
|
* operations will be queued until the network is restored.
|
|
897
897
|
*
|
|
898
898
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
899
|
-
*/ declare function
|
|
900
|
-
declare function
|
|
899
|
+
*/ declare function Kc(t: any): any;
|
|
900
|
+
declare function Pc(t: any, e: any, ...n: any[]): Ic;
|
|
901
901
|
/**
|
|
902
902
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
903
903
|
* It can be used in queries to sort or filter by the document ID.
|
|
904
|
-
*/ declare function
|
|
904
|
+
*/ declare function Hc(): zc;
|
|
905
905
|
/**
|
|
906
906
|
* Attempts to enable persistent storage, if possible.
|
|
907
907
|
*
|
|
@@ -924,7 +924,7 @@ declare function Ic(t: any, e: any, ...n: any[]): wc;
|
|
|
924
924
|
* @param persistenceSettings - Optional settings object to configure
|
|
925
925
|
* persistence.
|
|
926
926
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
927
|
-
*/ declare function
|
|
927
|
+
*/ declare function Fc(t: any, e: any): any;
|
|
928
928
|
/**
|
|
929
929
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
930
930
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -946,22 +946,22 @@ declare function Ic(t: any, e: any, ...n: any[]): wc;
|
|
|
946
946
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
947
947
|
* @returns A `Promise` that represents successfully enabling persistent
|
|
948
948
|
* storage.
|
|
949
|
-
*/ declare function
|
|
949
|
+
*/ declare function $c(t: any): any;
|
|
950
950
|
/**
|
|
951
951
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
952
952
|
* call to {@link disableNetwork}.
|
|
953
953
|
*
|
|
954
954
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
955
|
-
*/ declare function
|
|
956
|
-
declare function
|
|
957
|
-
declare function
|
|
955
|
+
*/ declare function qc(t: any): any;
|
|
956
|
+
declare function Hh(...t: any[]): Wh;
|
|
957
|
+
declare function zh(...t: any[]): Wh;
|
|
958
958
|
/**
|
|
959
959
|
* @internal
|
|
960
|
-
*/ declare function
|
|
960
|
+
*/ declare function Oc(t: any): any;
|
|
961
961
|
/**
|
|
962
962
|
* Locally writes `mutations` on the async queue.
|
|
963
963
|
* @internal
|
|
964
|
-
*/ declare function
|
|
964
|
+
*/ declare function pl(t: any, e: any): Promise<any>;
|
|
965
965
|
/**
|
|
966
966
|
* @license
|
|
967
967
|
* Copyright 2020 Google LLC
|
|
@@ -1013,21 +1013,21 @@ declare function Kh(...t: any[]): qh;
|
|
|
1013
1013
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
1014
1014
|
* current document contents.
|
|
1015
1015
|
*/
|
|
1016
|
-
declare function
|
|
1016
|
+
declare function ol(t: any): Promise<Sh>;
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
1019
1019
|
* Returns an error if the document is not currently cached.
|
|
1020
1020
|
*
|
|
1021
1021
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1022
1022
|
* current document contents.
|
|
1023
|
-
*/ declare function
|
|
1023
|
+
*/ declare function al(t: any): Promise<Sh>;
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
1026
1026
|
* Returns an error if the network is not available.
|
|
1027
1027
|
*
|
|
1028
1028
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1029
1029
|
* current document contents.
|
|
1030
|
-
*/ declare function
|
|
1030
|
+
*/ declare function cl(t: any): Promise<Sh>;
|
|
1031
1031
|
/**
|
|
1032
1032
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1033
1033
|
*
|
|
@@ -1037,19 +1037,19 @@ declare function el(t: any): Promise<Rh>;
|
|
|
1037
1037
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
1038
1038
|
*
|
|
1039
1039
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1040
|
-
*/ declare function
|
|
1040
|
+
*/ declare function hl(t: any): Promise<Ch>;
|
|
1041
1041
|
/**
|
|
1042
1042
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1043
1043
|
* Returns an error if the document is not currently cached.
|
|
1044
1044
|
*
|
|
1045
1045
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1046
|
-
*/ declare function
|
|
1046
|
+
*/ declare function ll(t: any): Promise<Ch>;
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1049
1049
|
* server. Returns an error if the network is not available.
|
|
1050
1050
|
*
|
|
1051
1051
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1052
|
-
*/ declare function
|
|
1052
|
+
*/ declare function fl(t: any): Promise<Ch>;
|
|
1053
1053
|
/**
|
|
1054
1054
|
* Returns the existing {@link Firestore} instance that is associated with the
|
|
1055
1055
|
* provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
|
|
@@ -1058,7 +1058,7 @@ declare function el(t: any): Promise<Rh>;
|
|
|
1058
1058
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
|
|
1059
1059
|
* instance is associated with.
|
|
1060
1060
|
* @returns The {@link Firestore} instance of the provided app.
|
|
1061
|
-
*/ declare function
|
|
1061
|
+
*/ declare function kc(e?: import("@firebase/app").FirebaseApp): import("../src").Firestore;
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1064
1064
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1077,7 +1077,7 @@ declare function el(t: any): Promise<Rh>;
|
|
|
1077
1077
|
* @param n - The value to increment by.
|
|
1078
1078
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1079
1079
|
* `updateDoc()`
|
|
1080
|
-
*/ declare function
|
|
1080
|
+
*/ declare function Vl(t: any): fh;
|
|
1081
1081
|
/**
|
|
1082
1082
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1083
1083
|
* Can only be called before any other function, including
|
|
@@ -1088,13 +1088,13 @@ declare function el(t: any): Promise<Rh>;
|
|
|
1088
1088
|
* be associated.
|
|
1089
1089
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1090
1090
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1091
|
-
*/ declare function
|
|
1091
|
+
*/ declare function Nc(t: any, e: any): import("../src").Firestore;
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
1094
1094
|
*
|
|
1095
1095
|
* @param limit - The maximum number of items to return.
|
|
1096
1096
|
* @returns The created {@link Query}.
|
|
1097
|
-
*/ declare function
|
|
1097
|
+
*/ declare function qh(t: any): Uh;
|
|
1098
1098
|
/**
|
|
1099
1099
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
1100
1100
|
*
|
|
@@ -1103,7 +1103,7 @@ declare function el(t: any): Promise<Rh>;
|
|
|
1103
1103
|
*
|
|
1104
1104
|
* @param limit - The maximum number of items to return.
|
|
1105
1105
|
* @returns The created {@link Query}.
|
|
1106
|
-
*/ declare function
|
|
1106
|
+
*/ declare function Kh(t: any): Uh;
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Loads a Firestore bundle into the local cache.
|
|
1109
1109
|
*
|
|
@@ -1114,7 +1114,7 @@ declare function el(t: any): Promise<Rh>;
|
|
|
1114
1114
|
* @returns A `LoadBundleTask` object, which notifies callers with progress
|
|
1115
1115
|
* updates, and completion or error events. It can be used as a
|
|
1116
1116
|
* `Promise<LoadBundleTaskProgress>`.
|
|
1117
|
-
*/ declare function
|
|
1117
|
+
*/ declare function Qc(t: any, e: any): Dc;
|
|
1118
1118
|
/**
|
|
1119
1119
|
* Reads a Firestore {@link Query} from local cache, identified by the given
|
|
1120
1120
|
* name.
|
|
@@ -1126,9 +1126,9 @@ declare function el(t: any): Promise<Rh>;
|
|
|
1126
1126
|
* @param firestore - The {@link Firestore} instance to read the query from.
|
|
1127
1127
|
* @param name - The name of the query.
|
|
1128
1128
|
* @returns A `Promise` that is resolved with the Query or `null`.
|
|
1129
|
-
*/ declare function
|
|
1130
|
-
declare function
|
|
1131
|
-
declare function
|
|
1129
|
+
*/ declare function jc(t: any, e: any): any;
|
|
1130
|
+
declare function gl(t: any, ...e: any[]): () => void;
|
|
1131
|
+
declare function yl(t: any, e: any): () => void;
|
|
1132
1132
|
/**
|
|
1133
1133
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
1134
1134
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1137,7 +1137,7 @@ declare function dl(t: any, e: any): () => void;
|
|
|
1137
1137
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1138
1138
|
* not specified, order will be ascending.
|
|
1139
1139
|
* @returns The created {@link Query}.
|
|
1140
|
-
*/ declare function
|
|
1140
|
+
*/ declare function Lh(t: any, e?: string): Bh;
|
|
1141
1141
|
/**
|
|
1142
1142
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
1143
1143
|
* additional query constraints.
|
|
@@ -1146,7 +1146,7 @@ declare function dl(t: any, e: any): () => void;
|
|
|
1146
1146
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
1147
1147
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
1148
1148
|
* existing or new constraints.
|
|
1149
|
-
*/ declare function
|
|
1149
|
+
*/ declare function Mh(t: any, ...e: any[]): any;
|
|
1150
1150
|
/**
|
|
1151
1151
|
* Returns true if the provided queries point to the same collection and apply
|
|
1152
1152
|
* the same constraints.
|
|
@@ -1155,7 +1155,7 @@ declare function dl(t: any, e: any): () => void;
|
|
|
1155
1155
|
* @param right - A `Query` to compare.
|
|
1156
1156
|
* @returns true if the references point to the same location in the same
|
|
1157
1157
|
* Firestore database.
|
|
1158
|
-
*/ declare function
|
|
1158
|
+
*/ declare function Vc(t: any, e: any): boolean;
|
|
1159
1159
|
/**
|
|
1160
1160
|
* Returns true if the provided references are equal.
|
|
1161
1161
|
*
|
|
@@ -1163,7 +1163,7 @@ declare function dl(t: any, e: any): () => void;
|
|
|
1163
1163
|
* @param right - A reference to compare.
|
|
1164
1164
|
* @returns true if the references point to the same location in the same
|
|
1165
1165
|
* Firestore database.
|
|
1166
|
-
*/ declare function
|
|
1166
|
+
*/ declare function bc(t: any, e: any): boolean;
|
|
1167
1167
|
/**
|
|
1168
1168
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1169
1169
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1180,12 +1180,12 @@ declare function dl(t: any, e: any): () => void;
|
|
|
1180
1180
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1181
1181
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1182
1182
|
* rejected promise with the corresponding failure error is returned.
|
|
1183
|
-
*/ declare function
|
|
1183
|
+
*/ declare function El(t: any, e: any, n: any): Promise<any>;
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1186
1186
|
* include a server-generated timestamp in the written data.
|
|
1187
|
-
*/ declare function
|
|
1188
|
-
declare function
|
|
1187
|
+
*/ declare function Rl(): ch;
|
|
1188
|
+
declare function dl(t: any, e: any, n: any): Promise<any>;
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1191
1191
|
*
|
|
@@ -1198,16 +1198,16 @@ declare function al(t: any, e: any, n: any): Promise<any>;
|
|
|
1198
1198
|
* <li>`error` to log errors only.</li>
|
|
1199
1199
|
* <li><code>`silent` to turn off logging.</li>
|
|
1200
1200
|
* </ul>
|
|
1201
|
-
*/ declare function
|
|
1201
|
+
*/ declare function O(t: any): void;
|
|
1202
1202
|
/**
|
|
1203
1203
|
* Returns true if the provided snapshots are equal.
|
|
1204
1204
|
*
|
|
1205
1205
|
* @param left - A snapshot to compare.
|
|
1206
1206
|
* @param right - A snapshot to compare.
|
|
1207
1207
|
* @returns true if the snapshots are equal.
|
|
1208
|
-
*/ declare function
|
|
1209
|
-
declare function
|
|
1210
|
-
declare function
|
|
1208
|
+
*/ declare function Nh(t: any, e: any): any;
|
|
1209
|
+
declare function jh(...t: any[]): Gh;
|
|
1210
|
+
declare function Qh(...t: any[]): Gh;
|
|
1211
1211
|
/**
|
|
1212
1212
|
* Terminates the provided {@link Firestore} instance.
|
|
1213
1213
|
*
|
|
@@ -1229,8 +1229,8 @@ declare function Lh(...t: any[]): Bh;
|
|
|
1229
1229
|
*
|
|
1230
1230
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1231
1231
|
* terminated.
|
|
1232
|
-
*/ declare function
|
|
1233
|
-
declare function
|
|
1232
|
+
*/ declare function Gc(t: any): any;
|
|
1233
|
+
declare function _l(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1234
1234
|
/**
|
|
1235
1235
|
* Waits until all currently pending writes for the active user have been
|
|
1236
1236
|
* acknowledged by the backend.
|
|
@@ -1246,7 +1246,7 @@ declare function cl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1246
1246
|
*
|
|
1247
1247
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1248
1248
|
* acknowledged by the backend.
|
|
1249
|
-
*/ declare function
|
|
1249
|
+
*/ declare function Uc(t: any): Promise<any>;
|
|
1250
1250
|
/**
|
|
1251
1251
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
1252
1252
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -1257,7 +1257,7 @@ declare function cl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1257
1257
|
* "<=", "!=").
|
|
1258
1258
|
* @param value - The value for comparison
|
|
1259
1259
|
* @returns The created {@link Query}.
|
|
1260
|
-
*/ declare function
|
|
1260
|
+
*/ declare function $h(t: any, e: any, n: any): Fh;
|
|
1261
1261
|
/**
|
|
1262
1262
|
* @license
|
|
1263
1263
|
* Copyright 2020 Google LLC
|
|
@@ -1284,7 +1284,7 @@ declare function cl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1284
1284
|
*
|
|
1285
1285
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1286
1286
|
* writes.
|
|
1287
|
-
*/ declare function
|
|
1287
|
+
*/ declare function vl(t: any): il;
|
|
1288
1288
|
/**
|
|
1289
1289
|
* @license
|
|
1290
1290
|
* Copyright 2020 Google LLC
|
|
@@ -1309,7 +1309,7 @@ declare function cl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1309
1309
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
1310
1310
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
1311
1311
|
* explicitly verify a document's existence.
|
|
1312
|
-
*/ declare class
|
|
1312
|
+
*/ declare class Ph {
|
|
1313
1313
|
/** @hideconstructor protected */
|
|
1314
1314
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1315
1315
|
_firestore: any;
|
|
@@ -1320,7 +1320,7 @@ declare function cl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1320
1320
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1321
1321
|
/**
|
|
1322
1322
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1323
|
-
*/ get ref():
|
|
1323
|
+
*/ get ref(): Ic;
|
|
1324
1324
|
/**
|
|
1325
1325
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1326
1326
|
*
|
|
@@ -1364,7 +1364,7 @@ declare function cl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1364
1364
|
* The Cloud Firestore service interface.
|
|
1365
1365
|
*
|
|
1366
1366
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
1367
|
-
*/ declare class
|
|
1367
|
+
*/ declare class yc {
|
|
1368
1368
|
/** @hideconstructor */
|
|
1369
1369
|
constructor(t: any, e: any, n: any);
|
|
1370
1370
|
_authCredentials: any;
|
|
@@ -1374,9 +1374,9 @@ declare function cl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1374
1374
|
*/
|
|
1375
1375
|
type: string;
|
|
1376
1376
|
_persistenceKey: string;
|
|
1377
|
-
_settings:
|
|
1377
|
+
_settings: gc;
|
|
1378
1378
|
_settingsFrozen: boolean;
|
|
1379
|
-
_databaseId:
|
|
1379
|
+
_databaseId: kt;
|
|
1380
1380
|
_app: any;
|
|
1381
1381
|
/**
|
|
1382
1382
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1385,14 +1385,14 @@ declare function cl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1385
1385
|
get _initialized(): boolean;
|
|
1386
1386
|
get _terminated(): boolean;
|
|
1387
1387
|
_setSettings(t: any): void;
|
|
1388
|
-
_getSettings():
|
|
1389
|
-
_freezeSettings():
|
|
1388
|
+
_getSettings(): gc;
|
|
1389
|
+
_freezeSettings(): gc;
|
|
1390
1390
|
_delete(): Promise<void>;
|
|
1391
1391
|
_terminateTask: Promise<void> | undefined;
|
|
1392
1392
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1393
1393
|
app: any;
|
|
1394
|
-
databaseId:
|
|
1395
|
-
settings:
|
|
1394
|
+
databaseId: kt;
|
|
1395
|
+
settings: gc;
|
|
1396
1396
|
};
|
|
1397
1397
|
/**
|
|
1398
1398
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1417,17 +1417,17 @@ declare function cl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1417
1417
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1418
1418
|
* See the License for the specific language governing permissions and
|
|
1419
1419
|
* limitations under the License.
|
|
1420
|
-
*/ declare class
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1420
|
+
*/ declare class vc {
|
|
1421
|
+
Qa: Promise<void>;
|
|
1422
|
+
ja: any[];
|
|
1423
|
+
Wa: boolean;
|
|
1424
|
+
za: any[];
|
|
1425
|
+
Ha: any;
|
|
1426
|
+
Ja: boolean;
|
|
1427
|
+
Ya: boolean;
|
|
1428
|
+
Xa: any[];
|
|
1429
|
+
Uo: Xo;
|
|
1430
|
+
Za: () => void;
|
|
1431
1431
|
get isShuttingDown(): boolean;
|
|
1432
1432
|
/**
|
|
1433
1433
|
* Adds a new operation to the queue without waiting for it to complete (i.e.
|
|
@@ -1440,30 +1440,30 @@ declare function cl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Runs the next operation from the retryable queue. If the operation fails,
|
|
1442
1442
|
* reschedules with backoff.
|
|
1443
|
-
*/
|
|
1444
|
-
|
|
1445
|
-
enqueueAfterDelay(t: any, e: any, n: any):
|
|
1446
|
-
|
|
1443
|
+
*/ nc(): Promise<void>;
|
|
1444
|
+
ec(t: any): Promise<any>;
|
|
1445
|
+
enqueueAfterDelay(t: any, e: any, n: any): Nu;
|
|
1446
|
+
tc(): void;
|
|
1447
1447
|
verifyOperationInProgress(): void;
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Waits until all currently queued tasks are finished executing. Delayed
|
|
1450
1450
|
* operations are not run.
|
|
1451
|
-
*/
|
|
1451
|
+
*/ ic(): Promise<void>;
|
|
1452
1452
|
/**
|
|
1453
1453
|
* For Tests: Determine if a delayed operation with a particular TimerId
|
|
1454
1454
|
* exists.
|
|
1455
|
-
*/
|
|
1455
|
+
*/ rc(t: any): boolean;
|
|
1456
1456
|
/**
|
|
1457
1457
|
* For Tests: Runs some or all delayed operations early.
|
|
1458
1458
|
*
|
|
1459
1459
|
* @param lastTimerId - Delayed operations up to and including this TimerId
|
|
1460
1460
|
* will be drained. Pass TimerId.All to run all delayed operations.
|
|
1461
1461
|
* @returns a Promise that resolves once all operations have been run.
|
|
1462
|
-
*/
|
|
1462
|
+
*/ oc(t: any): Promise<void>;
|
|
1463
1463
|
/**
|
|
1464
1464
|
* For Tests: Skip all subsequent delays for a timer id.
|
|
1465
|
-
*/
|
|
1466
|
-
/** Called once a DelayedOperation is run or canceled. */
|
|
1465
|
+
*/ uc(t: any): void;
|
|
1466
|
+
/** Called once a DelayedOperation is run or canceled. */ sc(t: any): void;
|
|
1467
1467
|
}
|
|
1468
1468
|
import { FirebaseError as a } from "@firebase/util/dist/src/errors";
|
|
1469
1469
|
/**
|
|
@@ -1489,12 +1489,12 @@ import { FirebaseError as a } from "@firebase/util/dist/src/errors";
|
|
|
1489
1489
|
/**
|
|
1490
1490
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1491
1491
|
* classes.
|
|
1492
|
-
*/ declare class
|
|
1492
|
+
*/ declare class ih {
|
|
1493
1493
|
constructor(t: any, e: any, n: any);
|
|
1494
1494
|
databaseId: any;
|
|
1495
1495
|
ignoreUndefinedProperties: any;
|
|
1496
|
-
|
|
1497
|
-
/** Creates a new top-level parse context. */
|
|
1496
|
+
O: any;
|
|
1497
|
+
/** Creates a new top-level parse context. */ Ic(t: any, e: any, n: any, s?: boolean): sh;
|
|
1498
1498
|
}
|
|
1499
1499
|
declare class Z {
|
|
1500
1500
|
constructor(t: any);
|
|
@@ -1521,7 +1521,7 @@ declare class Z {
|
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Path represents an ordered sequence of string segments.
|
|
1523
1523
|
*/
|
|
1524
|
-
declare class
|
|
1524
|
+
declare class pt {
|
|
1525
1525
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
1526
1526
|
constructor(t: any, e: any, n: any);
|
|
1527
1527
|
segments: any;
|
|
@@ -1542,67 +1542,67 @@ declare class dt {
|
|
|
1542
1542
|
forEach(t: any): void;
|
|
1543
1543
|
toArray(): any;
|
|
1544
1544
|
}
|
|
1545
|
-
declare class
|
|
1545
|
+
declare class lh extends Yc {
|
|
1546
1546
|
constructor(t: any, e: any);
|
|
1547
|
-
|
|
1547
|
+
Tc: any;
|
|
1548
1548
|
_toFieldTransform(t: any): In;
|
|
1549
1549
|
isEqual(t: any): boolean;
|
|
1550
1550
|
}
|
|
1551
|
-
declare class
|
|
1551
|
+
declare class hh extends Yc {
|
|
1552
1552
|
constructor(t: any, e: any);
|
|
1553
|
-
|
|
1553
|
+
Tc: any;
|
|
1554
1554
|
_toFieldTransform(t: any): In;
|
|
1555
1555
|
isEqual(t: any): boolean;
|
|
1556
1556
|
}
|
|
1557
|
-
declare class
|
|
1557
|
+
declare class uh extends Yc {
|
|
1558
1558
|
_toFieldTransform(t: any): null;
|
|
1559
1559
|
isEqual(t: any): boolean;
|
|
1560
1560
|
}
|
|
1561
|
-
declare class
|
|
1561
|
+
declare class Wh extends Oh {
|
|
1562
1562
|
constructor(t: any, e: any, n: any);
|
|
1563
1563
|
type: any;
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
_apply(t: any):
|
|
1564
|
+
Sc: any;
|
|
1565
|
+
Dc: any;
|
|
1566
|
+
_apply(t: any): Tc;
|
|
1567
1567
|
}
|
|
1568
|
-
declare class
|
|
1568
|
+
declare class fh extends Yc {
|
|
1569
1569
|
constructor(t: any, e: any);
|
|
1570
|
-
|
|
1570
|
+
Ec: any;
|
|
1571
1571
|
_toFieldTransform(t: any): In;
|
|
1572
1572
|
isEqual(t: any): boolean;
|
|
1573
1573
|
}
|
|
1574
|
-
declare class
|
|
1574
|
+
declare class Uh extends Oh {
|
|
1575
1575
|
constructor(t: any, e: any, n: any);
|
|
1576
1576
|
type: any;
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
_apply(t: any):
|
|
1577
|
+
Vc: any;
|
|
1578
|
+
vc: any;
|
|
1579
|
+
_apply(t: any): Tc;
|
|
1580
1580
|
}
|
|
1581
|
-
declare class
|
|
1581
|
+
declare class Bh extends Oh {
|
|
1582
1582
|
constructor(t: any, e: any);
|
|
1583
|
-
|
|
1584
|
-
|
|
1583
|
+
Ac: any;
|
|
1584
|
+
bc: any;
|
|
1585
1585
|
type: string;
|
|
1586
|
-
_apply(t: any):
|
|
1586
|
+
_apply(t: any): Tc;
|
|
1587
1587
|
}
|
|
1588
|
-
declare class
|
|
1588
|
+
declare class ch extends Yc {
|
|
1589
1589
|
_toFieldTransform(t: any): In;
|
|
1590
1590
|
isEqual(t: any): boolean;
|
|
1591
1591
|
}
|
|
1592
|
-
declare class
|
|
1592
|
+
declare class Gh extends Oh {
|
|
1593
1593
|
constructor(t: any, e: any, n: any);
|
|
1594
1594
|
type: any;
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
_apply(t: any):
|
|
1595
|
+
Sc: any;
|
|
1596
|
+
Dc: any;
|
|
1597
|
+
_apply(t: any): Tc;
|
|
1598
1598
|
}
|
|
1599
|
-
declare class
|
|
1599
|
+
declare class Fh extends Oh {
|
|
1600
1600
|
constructor(t: any, e: any, n: any);
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1601
|
+
Ac: any;
|
|
1602
|
+
Rc: any;
|
|
1603
|
+
Pc: any;
|
|
1604
1604
|
type: string;
|
|
1605
|
-
_apply(t: any):
|
|
1605
|
+
_apply(t: any): Tc;
|
|
1606
1606
|
}
|
|
1607
1607
|
/**
|
|
1608
1608
|
* @license
|
|
@@ -1625,7 +1625,7 @@ declare class xh extends Dh {
|
|
|
1625
1625
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1626
1626
|
* defaults can be supplied and the value can be checked for equality.
|
|
1627
1627
|
*/
|
|
1628
|
-
declare class
|
|
1628
|
+
declare class gc {
|
|
1629
1629
|
constructor(t: any);
|
|
1630
1630
|
host: any;
|
|
1631
1631
|
ssl: any;
|
|
@@ -1649,17 +1649,17 @@ declare class fc {
|
|
|
1649
1649
|
* base delay. This prevents clients from accidentally synchronizing their
|
|
1650
1650
|
* delays causing spikes of load to the backend.
|
|
1651
1651
|
*/
|
|
1652
|
-
declare class
|
|
1652
|
+
declare class Xo {
|
|
1653
1653
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
1654
|
-
|
|
1654
|
+
si: any;
|
|
1655
1655
|
timerId: any;
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1656
|
+
Po: number;
|
|
1657
|
+
bo: number;
|
|
1658
|
+
Vo: number;
|
|
1659
|
+
vo: number;
|
|
1660
|
+
So: any;
|
|
1661
1661
|
/** The last backoff attempt, as epoch milliseconds. */
|
|
1662
|
-
|
|
1662
|
+
Do: number;
|
|
1663
1663
|
/**
|
|
1664
1664
|
* Resets the backoff delay.
|
|
1665
1665
|
*
|
|
@@ -1670,15 +1670,15 @@ declare class Wo {
|
|
|
1670
1670
|
/**
|
|
1671
1671
|
* Resets the backoff delay to the maximum delay (e.g. for use after a
|
|
1672
1672
|
* RESOURCE_EXHAUSTED error).
|
|
1673
|
-
*/
|
|
1673
|
+
*/ Co(): void;
|
|
1674
1674
|
/**
|
|
1675
1675
|
* Returns a promise that resolves after currentDelayMs, and increases the
|
|
1676
1676
|
* delay for any subsequent attempts. If there was a pending backoff operation
|
|
1677
1677
|
* already, it will be canceled.
|
|
1678
|
-
*/
|
|
1679
|
-
|
|
1678
|
+
*/ xo(t: any): void;
|
|
1679
|
+
ko(): void;
|
|
1680
1680
|
cancel(): void;
|
|
1681
|
-
/** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */
|
|
1681
|
+
/** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */ No(): number;
|
|
1682
1682
|
}
|
|
1683
1683
|
/**
|
|
1684
1684
|
* @license
|
|
@@ -1707,7 +1707,7 @@ declare class Wo {
|
|
|
1707
1707
|
* in newer versions of TypeScript defines `finally`, which is not available in
|
|
1708
1708
|
* IE.
|
|
1709
1709
|
*/
|
|
1710
|
-
declare class
|
|
1710
|
+
declare class Nu {
|
|
1711
1711
|
/**
|
|
1712
1712
|
* Creates and returns a DelayedOperation that has been scheduled to be
|
|
1713
1713
|
* executed on the provided asyncQueue after the provided delayMs.
|
|
@@ -1721,7 +1721,7 @@ declare class vu {
|
|
|
1721
1721
|
* from its delayedOperations list.
|
|
1722
1722
|
* PORTING NOTE: This exists to prevent making removeDelayedOperation() and
|
|
1723
1723
|
* the DelayedOperation class public.
|
|
1724
|
-
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any):
|
|
1724
|
+
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): Nu;
|
|
1725
1725
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1726
1726
|
asyncQueue: any;
|
|
1727
1727
|
timerId: any;
|
|
@@ -1749,7 +1749,7 @@ declare class vu {
|
|
|
1749
1749
|
handleDelayElapsed(): void;
|
|
1750
1750
|
clearTimeout(): void;
|
|
1751
1751
|
}
|
|
1752
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1752
|
+
/** A "context" object passed around while parsing user data. */ declare class sh {
|
|
1753
1753
|
/**
|
|
1754
1754
|
* Initializes a ParseContext with the given source and path.
|
|
1755
1755
|
*
|
|
@@ -1771,20 +1771,20 @@ declare class vu {
|
|
|
1771
1771
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
1772
1772
|
settings: any;
|
|
1773
1773
|
databaseId: any;
|
|
1774
|
-
|
|
1774
|
+
O: any;
|
|
1775
1775
|
ignoreUndefinedProperties: any;
|
|
1776
1776
|
fieldTransforms: any;
|
|
1777
1777
|
fieldMask: any;
|
|
1778
1778
|
get path(): any;
|
|
1779
|
-
get
|
|
1780
|
-
/** Returns a new context with the specified settings overwritten. */
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1779
|
+
get cc(): any;
|
|
1780
|
+
/** Returns a new context with the specified settings overwritten. */ hc(t: any): sh;
|
|
1781
|
+
lc(t: any): sh;
|
|
1782
|
+
_c(t: any): sh;
|
|
1783
|
+
wc(t: any): sh;
|
|
1784
|
+
mc(t: any): Q;
|
|
1785
1785
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1786
|
-
|
|
1787
|
-
|
|
1786
|
+
ac(): void;
|
|
1787
|
+
dc(t: any): void;
|
|
1788
1788
|
}
|
|
1789
1789
|
/**
|
|
1790
1790
|
* @license
|
|
@@ -1807,4 +1807,4 @@ declare class vu {
|
|
|
1807
1807
|
field: any;
|
|
1808
1808
|
transform: any;
|
|
1809
1809
|
}
|
|
1810
|
-
export {
|
|
1810
|
+
export { el as AbstractUserDataWriter, Jc as Bytes, Cc as CACHE_SIZE_UNLIMITED, Ec as CollectionReference, Ic as DocumentReference, Sh as DocumentSnapshot, zc as FieldPath, Yc as FieldValue, xc as Firestore, Q as FirestoreError, Xc as GeoPoint, Dc as LoadBundleTask, Tc as Query, Oh as QueryConstraint, Dh as QueryDocumentSnapshot, Ch as QuerySnapshot, vh as SnapshotMetadata, at as Timestamp, Tl as Transaction, il as WriteBatch, kt as _DatabaseId, $t as _DocumentKey, et as _EmptyAppCheckTokenProvider, z as _EmptyAuthCredentialsProvider, Et as _FieldPath, wc as _cast, q as _debugAssert, Rt as _isBase64Available, $ as _logWarn, Sl as _setIndexConfiguration, lc as _validateIsNotUsedTogether, ml as addDoc, bl as arrayRemove, Pl as arrayUnion, Lc as clearIndexedDbPersistence, Ac as collection, Rc as collectionGroup, pc as connectFirestoreEmulator, wl as deleteDoc, Al as deleteField, Kc as disableNetwork, Pc as doc, Hc as documentId, Fc as enableIndexedDbPersistence, $c as enableMultiTabIndexedDbPersistence, qc as enableNetwork, Hh as endAt, zh as endBefore, Oc as ensureFirestoreConfigured, pl as executeWrite, ol as getDoc, al as getDocFromCache, cl as getDocFromServer, hl as getDocs, ll as getDocsFromCache, fl as getDocsFromServer, kc as getFirestore, Vl as increment, Nc as initializeFirestore, qh as limit, Kh as limitToLast, Qc as loadBundle, jc as namedQuery, gl as onSnapshot, yl as onSnapshotsInSync, Lh as orderBy, Mh as query, Vc as queryEqual, bc as refEqual, El as runTransaction, Rl as serverTimestamp, dl as setDoc, O as setLogLevel, Nh as snapshotEqual, jh as startAfter, Qh as startAt, Gc as terminate, _l as updateDoc, Uc as waitForPendingWrites, $h as where, vl as writeBatch };
|