@firebase/firestore 3.4.4-canary.222f264ff → 3.4.4-canary.2dd99ae2d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/firestore/src/api/{query.d.ts → filter.d.ts} +0 -0
- package/dist/firestore/src/api.d.ts +1 -1
- package/dist/firestore/src/core/database_info.d.ts +1 -0
- package/dist/firestore/src/core/target.d.ts +26 -1
- package/dist/firestore/src/local/local_serializer.d.ts +1 -1
- package/dist/firestore/src/local/remote_document_change_buffer.d.ts +3 -12
- package/dist/firestore/src/model/document.d.ts +7 -0
- package/dist/firestore/src/model/document_key.d.ts +1 -0
- package/dist/firestore/src/model/field_index.d.ts +87 -7
- package/dist/firestore/src/model/values.d.ts +7 -0
- package/dist/firestore/test/unit/local/test_remote_document_cache.d.ts +1 -1
- package/dist/firestore/test/unit/model/field_index.test.d.ts +17 -0
- package/dist/firestore/test/unit/model/target.test.d.ts +17 -0
- package/dist/firestore/test/util/helpers.d.ts +8 -2
- package/dist/index.esm2017.js +3300 -3205
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +3646 -3587
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +266 -150
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +266 -150
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +3299 -3246
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +12 -12
- package/dist/lite/firestore/src/api/{query.d.ts → filter.d.ts} +0 -0
- package/dist/lite/firestore/src/api.d.ts +1 -1
- package/dist/lite/firestore/src/core/database_info.d.ts +1 -0
- package/dist/lite/firestore/src/core/target.d.ts +26 -1
- package/dist/lite/firestore/src/local/local_serializer.d.ts +1 -1
- package/dist/lite/firestore/src/local/remote_document_change_buffer.d.ts +3 -12
- package/dist/lite/firestore/src/model/document.d.ts +7 -0
- package/dist/lite/firestore/src/model/document_key.d.ts +1 -0
- package/dist/lite/firestore/src/model/field_index.d.ts +87 -7
- package/dist/lite/firestore/src/model/values.d.ts +7 -0
- package/dist/lite/firestore/test/unit/local/test_remote_document_cache.d.ts +1 -1
- package/dist/lite/firestore/test/unit/model/field_index.test.d.ts +17 -0
- package/dist/lite/firestore/test/unit/model/target.test.d.ts +17 -0
- package/dist/lite/firestore/test/util/helpers.d.ts +8 -2
- package/dist/lite/index.browser.esm2017.js +20 -9
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +49 -42
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +20 -8
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +20 -8
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +20 -9
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +9 -0
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +1 -0
- package/dist/lite/packages/firestore/src/api/{query.d.ts → filter.d.ts} +0 -0
- package/dist/lite/packages/firestore/src/api.d.ts +1 -1
- package/dist/lite/packages/firestore/src/core/database_info.d.ts +1 -0
- package/dist/lite/packages/firestore/src/core/target.d.ts +26 -1
- package/dist/lite/packages/firestore/src/local/local_serializer.d.ts +1 -1
- package/dist/lite/packages/firestore/src/local/remote_document_change_buffer.d.ts +3 -12
- package/dist/lite/packages/firestore/src/model/document.d.ts +7 -0
- package/dist/lite/packages/firestore/src/model/document_key.d.ts +1 -0
- package/dist/lite/packages/firestore/src/model/field_index.d.ts +87 -7
- package/dist/lite/packages/firestore/src/model/values.d.ts +7 -0
- package/dist/lite/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +1 -1
- package/dist/lite/packages/firestore/test/unit/model/field_index.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/unit/model/target.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/util/helpers.d.ts +8 -2
- package/dist/lite/private.d.ts +7 -0
- package/dist/packages/firestore/dist/index.esm2017.d.ts +183 -181
- package/dist/packages/firestore/src/api/{query.d.ts → filter.d.ts} +0 -0
- package/dist/packages/firestore/src/api.d.ts +1 -1
- package/dist/packages/firestore/src/core/database_info.d.ts +1 -0
- package/dist/packages/firestore/src/core/target.d.ts +26 -1
- package/dist/packages/firestore/src/local/local_serializer.d.ts +1 -1
- package/dist/packages/firestore/src/local/remote_document_change_buffer.d.ts +3 -12
- package/dist/packages/firestore/src/model/document.d.ts +7 -0
- package/dist/packages/firestore/src/model/document_key.d.ts +1 -0
- package/dist/packages/firestore/src/model/field_index.d.ts +87 -7
- package/dist/packages/firestore/src/model/values.d.ts +7 -0
- package/dist/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +1 -1
- package/dist/packages/firestore/test/unit/model/field_index.test.d.ts +17 -0
- package/dist/packages/firestore/test/unit/model/target.test.d.ts +17 -0
- package/dist/packages/firestore/test/util/helpers.d.ts +8 -2
- package/dist/private.d.ts +10 -12
- package/package.json +9 -9
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
* to the user.
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
|
-
*/ declare class
|
|
22
|
+
*/ declare class hh {
|
|
23
23
|
convertValue(t: any, e?: string): any;
|
|
24
24
|
convertObject(t: any, e: any): {};
|
|
25
|
-
convertGeoPoint(t: any):
|
|
25
|
+
convertGeoPoint(t: any): au;
|
|
26
26
|
convertArray(t: any, e: any): any;
|
|
27
27
|
convertServerTimestamp(t: any, e: any): any;
|
|
28
28
|
convertTimestamp(t: any): at;
|
|
29
|
-
convertDocumentKey(t: any, e: any):
|
|
29
|
+
convertDocumentKey(t: any, e: any): Nt;
|
|
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 ou {
|
|
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): ou;
|
|
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): ou;
|
|
61
61
|
/** @hideconstructor */
|
|
62
62
|
constructor(t: any);
|
|
63
63
|
_byteString: any;
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
* See the License for the specific language governing permissions and
|
|
100
100
|
* limitations under the License.
|
|
101
101
|
*/
|
|
102
|
-
/** DOMException error code constants. */ declare const
|
|
102
|
+
/** DOMException error code constants. */ declare const Ua: -1;
|
|
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 Na extends Ca {
|
|
107
107
|
_path: any;
|
|
108
108
|
/** The collection's identifier. */ get id(): any;
|
|
109
109
|
/**
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
/**
|
|
114
114
|
* A reference to the containing `DocumentReference` if this is a
|
|
115
115
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
116
|
-
*/ get parent():
|
|
116
|
+
*/ get parent(): Da | null;
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
* @license
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
136
136
|
* and can be used to write, read, or listen to the location. The document at
|
|
137
137
|
* the referenced location may or may not exist.
|
|
138
|
-
*/ declare class
|
|
138
|
+
*/ declare class Da {
|
|
139
139
|
/** @hideconstructor */
|
|
140
140
|
constructor(t: any, e: any, n: any);
|
|
141
141
|
converter: any;
|
|
@@ -153,8 +153,8 @@
|
|
|
153
153
|
*/ get path(): any;
|
|
154
154
|
/**
|
|
155
155
|
* The collection this `DocumentReference` belongs to.
|
|
156
|
-
*/ get parent():
|
|
157
|
-
withConverter(t: any):
|
|
156
|
+
*/ get parent(): Na;
|
|
157
|
+
withConverter(t: any): Da;
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
160
160
|
* A `DocumentSnapshot` contains data read from a document in your Firestore
|
|
@@ -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 Lu extends $u {
|
|
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 iu {
|
|
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.
|
|
@@ -245,7 +245,7 @@ declare class eu {
|
|
|
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 cu {
|
|
249
249
|
/**
|
|
250
250
|
* @param _methodName - The public API endpoint that returns this class.
|
|
251
251
|
* @hideconstructor
|
|
@@ -258,8 +258,8 @@ declare class eu {
|
|
|
258
258
|
*
|
|
259
259
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
260
260
|
*/
|
|
261
|
-
declare class
|
|
262
|
-
_queue:
|
|
261
|
+
declare class qa extends Va {
|
|
262
|
+
_queue: Fa;
|
|
263
263
|
}
|
|
264
264
|
/** An error returned by a Firestore operation. */ declare class Q extends a {
|
|
265
265
|
/** @hideconstructor */
|
|
@@ -287,7 +287,7 @@ declare class La extends ba {
|
|
|
287
287
|
*
|
|
288
288
|
* Latitude values are in the range of [-90, 90].
|
|
289
289
|
* Longitude values are in the range of [-180, 180].
|
|
290
|
-
*/ declare class
|
|
290
|
+
*/ declare class au {
|
|
291
291
|
/**
|
|
292
292
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
293
293
|
* longitude values.
|
|
@@ -318,7 +318,7 @@ declare class La extends ba {
|
|
|
318
318
|
* with an underscore.
|
|
319
319
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
320
320
|
}
|
|
321
|
-
declare class
|
|
321
|
+
declare class Ba {
|
|
322
322
|
_progressObserver: {};
|
|
323
323
|
_taskCompletionResolver: W;
|
|
324
324
|
_lastProgress: {
|
|
@@ -370,7 +370,7 @@ declare class Ma {
|
|
|
370
370
|
/**
|
|
371
371
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
372
372
|
* construct refined `Query` objects by adding filters and ordering.
|
|
373
|
-
*/ declare class
|
|
373
|
+
*/ declare class Ca {
|
|
374
374
|
/** @hideconstructor protected */
|
|
375
375
|
constructor(t: any, e: any, n: any);
|
|
376
376
|
converter: any;
|
|
@@ -378,7 +378,7 @@ declare class Ma {
|
|
|
378
378
|
/** The type of this Firestore reference. */
|
|
379
379
|
type: string;
|
|
380
380
|
firestore: any;
|
|
381
|
-
withConverter(t: any):
|
|
381
|
+
withConverter(t: any): Ca;
|
|
382
382
|
}
|
|
383
383
|
/**
|
|
384
384
|
* A `QueryConstraint` is used to narrow the set of documents returned by a
|
|
@@ -387,7 +387,7 @@ declare class Ma {
|
|
|
387
387
|
* endBefore:1}, {@link (endAt:1)}, {@link limit} or {@link limitToLast} and
|
|
388
388
|
* can then be passed to {@link query} to create a new query instance that
|
|
389
389
|
* also contains this `QueryConstraint`.
|
|
390
|
-
*/ declare class
|
|
390
|
+
*/ declare class Qu {
|
|
391
391
|
}
|
|
392
392
|
/**
|
|
393
393
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -399,7 +399,7 @@ declare class Ma {
|
|
|
399
399
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
400
400
|
* `exists` property will always be true and `data()` will never return
|
|
401
401
|
* 'undefined'.
|
|
402
|
-
*/ declare class
|
|
402
|
+
*/ declare class Bu extends Lu {
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
405
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -407,13 +407,13 @@ declare class Ma {
|
|
|
407
407
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
408
408
|
* number of documents can be determined via the `empty` and `size`
|
|
409
409
|
* properties.
|
|
410
|
-
*/ declare class
|
|
410
|
+
*/ declare class Uu {
|
|
411
411
|
/** @hideconstructor */
|
|
412
412
|
constructor(t: any, e: any, n: any, s: any);
|
|
413
413
|
_firestore: any;
|
|
414
414
|
_userDataWriter: any;
|
|
415
415
|
_snapshot: any;
|
|
416
|
-
metadata:
|
|
416
|
+
metadata: Fu;
|
|
417
417
|
query: any;
|
|
418
418
|
/** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
|
|
419
419
|
/** The number of documents in the `QuerySnapshot`. */ get size(): any;
|
|
@@ -455,7 +455,7 @@ declare class Ma {
|
|
|
455
455
|
*/
|
|
456
456
|
/**
|
|
457
457
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
458
|
-
*/ declare class
|
|
458
|
+
*/ declare class Fu {
|
|
459
459
|
/** @hideconstructor */
|
|
460
460
|
constructor(t: any, e: any);
|
|
461
461
|
hasPendingWrites: any;
|
|
@@ -564,11 +564,11 @@ declare class at {
|
|
|
564
564
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
565
565
|
*/ valueOf(): string;
|
|
566
566
|
}
|
|
567
|
-
declare const
|
|
567
|
+
declare const Dh_base: {
|
|
568
568
|
new (t: any, e: any): {
|
|
569
569
|
_firestore: any;
|
|
570
570
|
_transaction: any;
|
|
571
|
-
_dataReader:
|
|
571
|
+
_dataReader: wu;
|
|
572
572
|
/**
|
|
573
573
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
574
574
|
*
|
|
@@ -607,7 +607,7 @@ declare const vh_base: {
|
|
|
607
607
|
* The `Transaction` object passed to a transaction's `updateFunction` provides
|
|
608
608
|
* the methods to read and write data within the transaction context. See
|
|
609
609
|
* {@link runTransaction}.
|
|
610
|
-
*/ declare class
|
|
610
|
+
*/ declare class Dh extends Dh_base {
|
|
611
611
|
}
|
|
612
612
|
/**
|
|
613
613
|
* @license
|
|
@@ -632,22 +632,22 @@ declare const vh_base: {
|
|
|
632
632
|
* provides methods for adding writes to the write batch. None of the writes
|
|
633
633
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
634
634
|
* called.
|
|
635
|
-
*/ declare class
|
|
635
|
+
*/ declare class dh {
|
|
636
636
|
/** @hideconstructor */
|
|
637
637
|
constructor(t: any, e: any);
|
|
638
638
|
_firestore: any;
|
|
639
639
|
_commitHandler: any;
|
|
640
640
|
_mutations: any[];
|
|
641
641
|
_committed: boolean;
|
|
642
|
-
_dataReader:
|
|
643
|
-
set(t: any, e: any, n: any):
|
|
644
|
-
update(t: any, e: any, n: any, ...s: any[]):
|
|
642
|
+
_dataReader: wu;
|
|
643
|
+
set(t: any, e: any, n: any): dh;
|
|
644
|
+
update(t: any, e: any, n: any, ...s: any[]): dh;
|
|
645
645
|
/**
|
|
646
646
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
647
647
|
*
|
|
648
648
|
* @param documentRef - A reference to the document to be deleted.
|
|
649
649
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
650
|
-
*/ delete(t: any):
|
|
650
|
+
*/ delete(t: any): dh;
|
|
651
651
|
/**
|
|
652
652
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
653
653
|
*
|
|
@@ -667,7 +667,8 @@ declare const vh_base: {
|
|
|
667
667
|
* Represents the database ID a Firestore client is associated with.
|
|
668
668
|
* @internal
|
|
669
669
|
*/
|
|
670
|
-
declare class
|
|
670
|
+
declare class Vt {
|
|
671
|
+
static empty(): Vt;
|
|
671
672
|
constructor(t: any, e: any);
|
|
672
673
|
projectId: any;
|
|
673
674
|
database: any;
|
|
@@ -692,9 +693,10 @@ declare class _a {
|
|
|
692
693
|
*/
|
|
693
694
|
/**
|
|
694
695
|
* @internal
|
|
695
|
-
*/ declare class
|
|
696
|
-
static fromPath(t: any):
|
|
697
|
-
static fromName(t: any):
|
|
696
|
+
*/ declare class Nt {
|
|
697
|
+
static fromPath(t: any): Nt;
|
|
698
|
+
static fromName(t: any): Nt;
|
|
699
|
+
static empty(): Nt;
|
|
698
700
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
699
701
|
static isDocumentKey(t: any): boolean;
|
|
700
702
|
/**
|
|
@@ -702,7 +704,7 @@ declare class _a {
|
|
|
702
704
|
*
|
|
703
705
|
* @param segments - The segments of the path to the document
|
|
704
706
|
* @returns A new instance of DocumentKey
|
|
705
|
-
*/ static fromSegments(t: any):
|
|
707
|
+
*/ static fromSegments(t: any): Nt;
|
|
706
708
|
constructor(t: any);
|
|
707
709
|
path: any;
|
|
708
710
|
/** Returns true if the document is in the specified collectionId. */ hasCollectionId(t: any): boolean;
|
|
@@ -756,7 +758,7 @@ declare class _a {
|
|
|
756
758
|
* Returns true if this field references the key of a document.
|
|
757
759
|
*/ isKeyField(): boolean;
|
|
758
760
|
}
|
|
759
|
-
declare function
|
|
761
|
+
declare function ba(t: any, e: any): any;
|
|
760
762
|
/**
|
|
761
763
|
* Fails if the given assertion condition is false, throwing an Error with the
|
|
762
764
|
* given message if it did.
|
|
@@ -804,11 +806,11 @@ declare function yt(): boolean;
|
|
|
804
806
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
805
807
|
* See the License for the specific language governing permissions and
|
|
806
808
|
* limitations under the License.
|
|
807
|
-
*/ declare function
|
|
809
|
+
*/ declare function Fh(t: any, e: any): Promise<void>;
|
|
808
810
|
/**
|
|
809
811
|
* Validates that two boolean options are not set at the same time.
|
|
810
812
|
* @internal
|
|
811
|
-
*/ declare function
|
|
813
|
+
*/ declare function Ea(t: any, e: any, n: any, s: any): void;
|
|
812
814
|
/**
|
|
813
815
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
814
816
|
* assigning it a document ID automatically.
|
|
@@ -818,7 +820,7 @@ declare function yt(): boolean;
|
|
|
818
820
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
819
821
|
* newly created document after it has been written to the backend (Note that it
|
|
820
822
|
* won't resolve while you're offline).
|
|
821
|
-
*/ declare function
|
|
823
|
+
*/ declare function bh(t: any, e: any): Promise<Da>;
|
|
822
824
|
/**
|
|
823
825
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
824
826
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -829,7 +831,7 @@ declare function yt(): boolean;
|
|
|
829
831
|
* @param elements - The elements to remove from the array.
|
|
830
832
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
831
833
|
* `updateDoc()`
|
|
832
|
-
*/ declare function
|
|
834
|
+
*/ declare function $h(...t: any[]): Eu;
|
|
833
835
|
/**
|
|
834
836
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
835
837
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -841,9 +843,9 @@ declare function yt(): boolean;
|
|
|
841
843
|
* @param elements - The elements to union into the array.
|
|
842
844
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
843
845
|
* `updateDoc()`.
|
|
844
|
-
*/ declare function
|
|
845
|
-
declare function
|
|
846
|
-
declare function
|
|
846
|
+
*/ declare function xh(...t: any[]): Tu;
|
|
847
|
+
declare function Ja(t: any): Promise<any>;
|
|
848
|
+
declare function ka(t: any, e: any, ...n: any[]): Na;
|
|
847
849
|
/**
|
|
848
850
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
849
851
|
* database that are contained in a collection or subcollection with the
|
|
@@ -854,15 +856,15 @@ declare function Da(t: any, e: any, ...n: any[]): Sa;
|
|
|
854
856
|
* collection or subcollection with this ID as the last segment of its path
|
|
855
857
|
* will be included. Cannot contain a slash.
|
|
856
858
|
* @returns The created `Query`.
|
|
857
|
-
*/ declare function
|
|
858
|
-
declare function
|
|
859
|
+
*/ declare function xa(t: any, e: any): Ca;
|
|
860
|
+
declare function Sa(t: any, e: any, n: any, s?: {}): void;
|
|
859
861
|
/**
|
|
860
862
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
861
863
|
*
|
|
862
864
|
* @param reference - A reference to the document to delete.
|
|
863
865
|
* @returns A Promise resolved once the document has been successfully
|
|
864
866
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
865
|
-
*/ declare function
|
|
867
|
+
*/ declare function Rh(t: any): Promise<any>;
|
|
866
868
|
/**
|
|
867
869
|
* @license
|
|
868
870
|
* Copyright 2020 Google LLC
|
|
@@ -882,7 +884,7 @@ declare function Pa(t: any, e: any, n: any, s?: {}): void;
|
|
|
882
884
|
/**
|
|
883
885
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
884
886
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
885
|
-
*/ declare function
|
|
887
|
+
*/ declare function Nh(): gu;
|
|
886
888
|
/**
|
|
887
889
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
888
890
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -890,12 +892,12 @@ declare function Pa(t: any, e: any, n: any, s?: {}): void;
|
|
|
890
892
|
* operations will be queued until the network is restored.
|
|
891
893
|
*
|
|
892
894
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
893
|
-
*/ declare function
|
|
894
|
-
declare function
|
|
895
|
+
*/ declare function Za(t: any): any;
|
|
896
|
+
declare function $a(t: any, e: any, ...n: any[]): Da;
|
|
895
897
|
/**
|
|
896
898
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
897
899
|
* It can be used in queries to sort or filter by the document ID.
|
|
898
|
-
*/ declare function
|
|
900
|
+
*/ declare function ru(): iu;
|
|
899
901
|
/**
|
|
900
902
|
* Attempts to enable persistent storage, if possible.
|
|
901
903
|
*
|
|
@@ -918,7 +920,7 @@ declare function Na(t: any, e: any, ...n: any[]): va;
|
|
|
918
920
|
* @param persistenceSettings - Optional settings object to configure
|
|
919
921
|
* persistence.
|
|
920
922
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
921
|
-
*/ declare function
|
|
923
|
+
*/ declare function Ga(t: any, e: any): any;
|
|
922
924
|
/**
|
|
923
925
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
924
926
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -940,22 +942,22 @@ declare function Na(t: any, e: any, ...n: any[]): va;
|
|
|
940
942
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
941
943
|
* @returns A `Promise` that represents successfully enabling persistent
|
|
942
944
|
* storage.
|
|
943
|
-
*/ declare function
|
|
945
|
+
*/ declare function za(t: any): any;
|
|
944
946
|
/**
|
|
945
947
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
946
948
|
* call to {@link disableNetwork}.
|
|
947
949
|
*
|
|
948
950
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
949
|
-
*/ declare function
|
|
950
|
-
declare function
|
|
951
|
-
declare function
|
|
951
|
+
*/ declare function Xa(t: any): any;
|
|
952
|
+
declare function rh(...t: any[]): sh;
|
|
953
|
+
declare function ih(...t: any[]): sh;
|
|
952
954
|
/**
|
|
953
955
|
* @internal
|
|
954
|
-
*/ declare function
|
|
956
|
+
*/ declare function Qa(t: any): any;
|
|
955
957
|
/**
|
|
956
958
|
* Locally writes `mutations` on the async queue.
|
|
957
959
|
* @internal
|
|
958
|
-
*/ declare function
|
|
960
|
+
*/ declare function Vh(t: any, e: any): Promise<any>;
|
|
959
961
|
/**
|
|
960
962
|
* @license
|
|
961
963
|
* Copyright 2020 Google LLC
|
|
@@ -1007,21 +1009,21 @@ declare function eh(...t: any[]): th;
|
|
|
1007
1009
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
1008
1010
|
* current document contents.
|
|
1009
1011
|
*/
|
|
1010
|
-
declare function
|
|
1012
|
+
declare function _h(t: any): Promise<Lu>;
|
|
1011
1013
|
/**
|
|
1012
1014
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
1013
1015
|
* Returns an error if the document is not currently cached.
|
|
1014
1016
|
*
|
|
1015
1017
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1016
1018
|
* current document contents.
|
|
1017
|
-
*/ declare function
|
|
1019
|
+
*/ declare function gh(t: any): Promise<Lu>;
|
|
1018
1020
|
/**
|
|
1019
1021
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
1020
1022
|
* Returns an error if the network is not available.
|
|
1021
1023
|
*
|
|
1022
1024
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1023
1025
|
* current document contents.
|
|
1024
|
-
*/ declare function
|
|
1026
|
+
*/ declare function yh(t: any): Promise<Lu>;
|
|
1025
1027
|
/**
|
|
1026
1028
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1027
1029
|
*
|
|
@@ -1031,19 +1033,19 @@ declare function fh(t: any): Promise<Ou>;
|
|
|
1031
1033
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
1032
1034
|
*
|
|
1033
1035
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1034
|
-
*/ declare function
|
|
1036
|
+
*/ declare function ph(t: any): Promise<Uu>;
|
|
1035
1037
|
/**
|
|
1036
1038
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1037
1039
|
* Returns an error if the document is not currently cached.
|
|
1038
1040
|
*
|
|
1039
1041
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1040
|
-
*/ declare function
|
|
1042
|
+
*/ declare function Th(t: any): Promise<Uu>;
|
|
1041
1043
|
/**
|
|
1042
1044
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1043
1045
|
* server. Returns an error if the network is not available.
|
|
1044
1046
|
*
|
|
1045
1047
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1046
|
-
*/ declare function
|
|
1048
|
+
*/ declare function Eh(t: any): Promise<Uu>;
|
|
1047
1049
|
/**
|
|
1048
1050
|
* Returns the existing {@link Firestore} instance that is associated with the
|
|
1049
1051
|
* provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
|
|
@@ -1052,7 +1054,7 @@ declare function fh(t: any): Promise<Ou>;
|
|
|
1052
1054
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
|
|
1053
1055
|
* instance is associated with.
|
|
1054
1056
|
* @returns The {@link Firestore} instance of the provided app.
|
|
1055
|
-
*/ declare function
|
|
1057
|
+
*/ declare function ja(e?: import("@firebase/app").FirebaseApp): import("../src").Firestore;
|
|
1056
1058
|
/**
|
|
1057
1059
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1058
1060
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1071,7 +1073,7 @@ declare function fh(t: any): Promise<Ou>;
|
|
|
1071
1073
|
* @param n - The value to increment by.
|
|
1072
1074
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1073
1075
|
* `updateDoc()`
|
|
1074
|
-
*/ declare function
|
|
1076
|
+
*/ declare function Oh(t: any): Iu;
|
|
1075
1077
|
/**
|
|
1076
1078
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1077
1079
|
* Can only be called before any other function, including
|
|
@@ -1082,13 +1084,13 @@ declare function fh(t: any): Promise<Ou>;
|
|
|
1082
1084
|
* be associated.
|
|
1083
1085
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1084
1086
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1085
|
-
*/ declare function
|
|
1087
|
+
*/ declare function Ka(t: any, e: any): import("../src").Firestore;
|
|
1086
1088
|
/**
|
|
1087
1089
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
1088
1090
|
*
|
|
1089
1091
|
* @param limit - The maximum number of items to return.
|
|
1090
1092
|
* @returns The created {@link Query}.
|
|
1091
|
-
*/ declare function
|
|
1093
|
+
*/ declare function Xu(t: any): Yu;
|
|
1092
1094
|
/**
|
|
1093
1095
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
1094
1096
|
*
|
|
@@ -1097,7 +1099,7 @@ declare function fh(t: any): Promise<Ou>;
|
|
|
1097
1099
|
*
|
|
1098
1100
|
* @param limit - The maximum number of items to return.
|
|
1099
1101
|
* @returns The created {@link Query}.
|
|
1100
|
-
*/ declare function
|
|
1102
|
+
*/ declare function Zu(t: any): Yu;
|
|
1101
1103
|
/**
|
|
1102
1104
|
* Loads a Firestore bundle into the local cache.
|
|
1103
1105
|
*
|
|
@@ -1108,7 +1110,7 @@ declare function fh(t: any): Promise<Ou>;
|
|
|
1108
1110
|
* @returns A `LoadBundleTask` object, which notifies callers with progress
|
|
1109
1111
|
* updates, and completion or error events. It can be used as a
|
|
1110
1112
|
* `Promise<LoadBundleTaskProgress>`.
|
|
1111
|
-
*/ declare function
|
|
1113
|
+
*/ declare function eu(t: any, e: any): Ba;
|
|
1112
1114
|
/**
|
|
1113
1115
|
* Reads a Firestore {@link Query} from local cache, identified by the given
|
|
1114
1116
|
* name.
|
|
@@ -1120,9 +1122,9 @@ declare function fh(t: any): Promise<Ou>;
|
|
|
1120
1122
|
* @param firestore - The {@link Firestore} instance to read the query from.
|
|
1121
1123
|
* @param name - The name of the query.
|
|
1122
1124
|
* @returns A `Promise` that is resolved with the Query or `null`.
|
|
1123
|
-
*/ declare function
|
|
1124
|
-
declare function
|
|
1125
|
-
declare function
|
|
1125
|
+
*/ declare function nu(t: any, e: any): any;
|
|
1126
|
+
declare function Ph(t: any, ...e: any[]): () => void;
|
|
1127
|
+
declare function vh(t: any, e: any): () => void;
|
|
1126
1128
|
/**
|
|
1127
1129
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
1128
1130
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1131,7 +1133,7 @@ declare function Rh(t: any, e: any): () => void;
|
|
|
1131
1133
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1132
1134
|
* not specified, order will be ascending.
|
|
1133
1135
|
* @returns The created {@link Query}.
|
|
1134
|
-
*/ declare function
|
|
1136
|
+
*/ declare function Ju(t: any, e?: string): Hu;
|
|
1135
1137
|
/**
|
|
1136
1138
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
1137
1139
|
* additional query constraints.
|
|
@@ -1140,7 +1142,7 @@ declare function Rh(t: any, e: any): () => void;
|
|
|
1140
1142
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
1141
1143
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
1142
1144
|
* existing or new constraints.
|
|
1143
|
-
*/ declare function
|
|
1145
|
+
*/ declare function Wu(t: any, ...e: any[]): any;
|
|
1144
1146
|
/**
|
|
1145
1147
|
* Returns true if the provided queries point to the same collection and apply
|
|
1146
1148
|
* the same constraints.
|
|
@@ -1149,7 +1151,7 @@ declare function Rh(t: any, e: any): () => void;
|
|
|
1149
1151
|
* @param right - A `Query` to compare.
|
|
1150
1152
|
* @returns true if the references point to the same location in the same
|
|
1151
1153
|
* Firestore database.
|
|
1152
|
-
*/ declare function
|
|
1154
|
+
*/ declare function Ma(t: any, e: any): boolean;
|
|
1153
1155
|
/**
|
|
1154
1156
|
* Returns true if the provided references are equal.
|
|
1155
1157
|
*
|
|
@@ -1157,7 +1159,7 @@ declare function Rh(t: any, e: any): () => void;
|
|
|
1157
1159
|
* @param right - A reference to compare.
|
|
1158
1160
|
* @returns true if the references point to the same location in the same
|
|
1159
1161
|
* Firestore database.
|
|
1160
|
-
*/ declare function
|
|
1162
|
+
*/ declare function Oa(t: any, e: any): boolean;
|
|
1161
1163
|
/**
|
|
1162
1164
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1163
1165
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1174,12 +1176,12 @@ declare function Rh(t: any, e: any): () => void;
|
|
|
1174
1176
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1175
1177
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1176
1178
|
* rejected promise with the corresponding failure error is returned.
|
|
1177
|
-
*/ declare function
|
|
1179
|
+
*/ declare function Ch(t: any, e: any): Promise<any>;
|
|
1178
1180
|
/**
|
|
1179
1181
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1180
1182
|
* include a server-generated timestamp in the written data.
|
|
1181
|
-
*/ declare function
|
|
1182
|
-
declare function
|
|
1183
|
+
*/ declare function kh(): pu;
|
|
1184
|
+
declare function Ih(t: any, e: any, n: any): Promise<any>;
|
|
1183
1185
|
/**
|
|
1184
1186
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1185
1187
|
*
|
|
@@ -1199,9 +1201,9 @@ declare function ph(t: any, e: any, n: any): Promise<any>;
|
|
|
1199
1201
|
* @param left - A snapshot to compare.
|
|
1200
1202
|
* @param right - A snapshot to compare.
|
|
1201
1203
|
* @returns true if the snapshots are equal.
|
|
1202
|
-
*/ declare function
|
|
1203
|
-
declare function
|
|
1204
|
-
declare function
|
|
1204
|
+
*/ declare function Ku(t: any, e: any): any;
|
|
1205
|
+
declare function nh(...t: any[]): th;
|
|
1206
|
+
declare function eh(...t: any[]): th;
|
|
1205
1207
|
/**
|
|
1206
1208
|
* Terminates the provided {@link Firestore} instance.
|
|
1207
1209
|
*
|
|
@@ -1223,8 +1225,8 @@ declare function Xu(...t: any[]): Yu;
|
|
|
1223
1225
|
*
|
|
1224
1226
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1225
1227
|
* terminated.
|
|
1226
|
-
*/ declare function
|
|
1227
|
-
declare function
|
|
1228
|
+
*/ declare function tu(t: any): any;
|
|
1229
|
+
declare function Ah(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1228
1230
|
/**
|
|
1229
1231
|
* Waits until all currently pending writes for the active user have been
|
|
1230
1232
|
* acknowledged by the backend.
|
|
@@ -1240,7 +1242,7 @@ declare function Th(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1240
1242
|
*
|
|
1241
1243
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1242
1244
|
* acknowledged by the backend.
|
|
1243
|
-
*/ declare function
|
|
1245
|
+
*/ declare function Ya(t: any): Promise<any>;
|
|
1244
1246
|
/**
|
|
1245
1247
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
1246
1248
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -1251,7 +1253,7 @@ declare function Th(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1251
1253
|
* "<=", "!=").
|
|
1252
1254
|
* @param value - The value for comparison
|
|
1253
1255
|
* @returns The created {@link Query}.
|
|
1254
|
-
*/ declare function
|
|
1256
|
+
*/ declare function zu(t: any, e: any, n: any): Gu;
|
|
1255
1257
|
/**
|
|
1256
1258
|
* @license
|
|
1257
1259
|
* Copyright 2020 Google LLC
|
|
@@ -1278,7 +1280,7 @@ declare function Th(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1278
1280
|
*
|
|
1279
1281
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1280
1282
|
* writes.
|
|
1281
|
-
*/ declare function
|
|
1283
|
+
*/ declare function Mh(t: any): dh;
|
|
1282
1284
|
/**
|
|
1283
1285
|
* @license
|
|
1284
1286
|
* Copyright 2020 Google LLC
|
|
@@ -1303,7 +1305,7 @@ declare function Th(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1303
1305
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
1304
1306
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
1305
1307
|
* explicitly verify a document's existence.
|
|
1306
|
-
*/ declare class
|
|
1308
|
+
*/ declare class $u {
|
|
1307
1309
|
/** @hideconstructor protected */
|
|
1308
1310
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1309
1311
|
_firestore: any;
|
|
@@ -1314,7 +1316,7 @@ declare function Th(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1314
1316
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1315
1317
|
/**
|
|
1316
1318
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1317
|
-
*/ get ref():
|
|
1319
|
+
*/ get ref(): Da;
|
|
1318
1320
|
/**
|
|
1319
1321
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1320
1322
|
*
|
|
@@ -1358,7 +1360,7 @@ declare function Th(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1358
1360
|
* The Cloud Firestore service interface.
|
|
1359
1361
|
*
|
|
1360
1362
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
1361
|
-
*/ declare class
|
|
1363
|
+
*/ declare class Va {
|
|
1362
1364
|
/** @hideconstructor */
|
|
1363
1365
|
constructor(t: any, e: any, n: any);
|
|
1364
1366
|
_authCredentials: any;
|
|
@@ -1368,9 +1370,9 @@ declare function Th(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1368
1370
|
*/
|
|
1369
1371
|
type: string;
|
|
1370
1372
|
_persistenceKey: string;
|
|
1371
|
-
_settings:
|
|
1373
|
+
_settings: va;
|
|
1372
1374
|
_settingsFrozen: boolean;
|
|
1373
|
-
_databaseId:
|
|
1375
|
+
_databaseId: Vt;
|
|
1374
1376
|
_app: any;
|
|
1375
1377
|
/**
|
|
1376
1378
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1379,14 +1381,14 @@ declare function Th(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1379
1381
|
get _initialized(): boolean;
|
|
1380
1382
|
get _terminated(): boolean;
|
|
1381
1383
|
_setSettings(t: any): void;
|
|
1382
|
-
_getSettings():
|
|
1383
|
-
_freezeSettings():
|
|
1384
|
+
_getSettings(): va;
|
|
1385
|
+
_freezeSettings(): va;
|
|
1384
1386
|
_delete(): Promise<void>;
|
|
1385
1387
|
_terminateTask: Promise<void> | undefined;
|
|
1386
1388
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1387
1389
|
app: any;
|
|
1388
|
-
databaseId:
|
|
1389
|
-
settings:
|
|
1390
|
+
databaseId: Vt;
|
|
1391
|
+
settings: va;
|
|
1390
1392
|
};
|
|
1391
1393
|
/**
|
|
1392
1394
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1411,17 +1413,17 @@ declare function Th(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1411
1413
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1412
1414
|
* See the License for the specific language governing permissions and
|
|
1413
1415
|
* limitations under the License.
|
|
1414
|
-
*/ declare class
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
yc: boolean;
|
|
1418
|
-
Tc: any[];
|
|
1419
|
-
Ec: any;
|
|
1420
|
-
Ic: boolean;
|
|
1416
|
+
*/ declare class Fa {
|
|
1417
|
+
Ec: Promise<void>;
|
|
1418
|
+
Ic: any[];
|
|
1421
1419
|
Ac: boolean;
|
|
1422
1420
|
Rc: any[];
|
|
1423
|
-
|
|
1424
|
-
|
|
1421
|
+
bc: any;
|
|
1422
|
+
Pc: boolean;
|
|
1423
|
+
vc: boolean;
|
|
1424
|
+
Vc: any[];
|
|
1425
|
+
wr: co;
|
|
1426
|
+
Sc: () => void;
|
|
1425
1427
|
get isShuttingDown(): boolean;
|
|
1426
1428
|
/**
|
|
1427
1429
|
* Adds a new operation to the queue without waiting for it to complete (i.e.
|
|
@@ -1434,30 +1436,30 @@ declare function Th(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1434
1436
|
/**
|
|
1435
1437
|
* Runs the next operation from the retryable queue. If the operation fails,
|
|
1436
1438
|
* reschedules with backoff.
|
|
1437
|
-
*/
|
|
1438
|
-
|
|
1439
|
-
enqueueAfterDelay(t: any, e: any, n: any):
|
|
1440
|
-
|
|
1439
|
+
*/ Nc(): Promise<void>;
|
|
1440
|
+
Cc(t: any): Promise<any>;
|
|
1441
|
+
enqueueAfterDelay(t: any, e: any, n: any): Ko;
|
|
1442
|
+
Dc(): void;
|
|
1441
1443
|
verifyOperationInProgress(): void;
|
|
1442
1444
|
/**
|
|
1443
1445
|
* Waits until all currently queued tasks are finished executing. Delayed
|
|
1444
1446
|
* operations are not run.
|
|
1445
|
-
*/
|
|
1447
|
+
*/ xc(): Promise<void>;
|
|
1446
1448
|
/**
|
|
1447
1449
|
* For Tests: Determine if a delayed operation with a particular TimerId
|
|
1448
1450
|
* exists.
|
|
1449
|
-
*/
|
|
1451
|
+
*/ $c(t: any): boolean;
|
|
1450
1452
|
/**
|
|
1451
1453
|
* For Tests: Runs some or all delayed operations early.
|
|
1452
1454
|
*
|
|
1453
1455
|
* @param lastTimerId - Delayed operations up to and including this TimerId
|
|
1454
1456
|
* will be drained. Pass TimerId.All to run all delayed operations.
|
|
1455
1457
|
* @returns a Promise that resolves once all operations have been run.
|
|
1456
|
-
*/
|
|
1458
|
+
*/ Oc(t: any): Promise<void>;
|
|
1457
1459
|
/**
|
|
1458
1460
|
* For Tests: Skip all subsequent delays for a timer id.
|
|
1459
|
-
*/
|
|
1460
|
-
/** Called once a DelayedOperation is run or canceled. */
|
|
1461
|
+
*/ Mc(t: any): void;
|
|
1462
|
+
/** Called once a DelayedOperation is run or canceled. */ kc(t: any): void;
|
|
1461
1463
|
}
|
|
1462
1464
|
import { FirebaseError as a } from "@firebase/util/dist/src/errors";
|
|
1463
1465
|
/**
|
|
@@ -1483,12 +1485,12 @@ import { FirebaseError as a } from "@firebase/util/dist/src/errors";
|
|
|
1483
1485
|
/**
|
|
1484
1486
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1485
1487
|
* classes.
|
|
1486
|
-
*/ declare class
|
|
1488
|
+
*/ declare class wu {
|
|
1487
1489
|
constructor(t: any, e: any, n: any);
|
|
1488
1490
|
databaseId: any;
|
|
1489
1491
|
ignoreUndefinedProperties: any;
|
|
1490
|
-
|
|
1491
|
-
/** Creates a new top-level parse context. */
|
|
1492
|
+
F: any;
|
|
1493
|
+
/** Creates a new top-level parse context. */ Hc(t: any, e: any, n: any, s?: boolean): du;
|
|
1492
1494
|
}
|
|
1493
1495
|
declare class Z {
|
|
1494
1496
|
constructor(t: any);
|
|
@@ -1536,67 +1538,67 @@ declare class dt {
|
|
|
1536
1538
|
forEach(t: any): void;
|
|
1537
1539
|
toArray(): any;
|
|
1538
1540
|
}
|
|
1539
|
-
declare class
|
|
1541
|
+
declare class Eu extends cu {
|
|
1540
1542
|
constructor(t: any, e: any);
|
|
1541
|
-
|
|
1542
|
-
_toFieldTransform(t: any):
|
|
1543
|
+
Jc: any;
|
|
1544
|
+
_toFieldTransform(t: any): tn;
|
|
1543
1545
|
isEqual(t: any): boolean;
|
|
1544
1546
|
}
|
|
1545
|
-
declare class
|
|
1547
|
+
declare class Tu extends cu {
|
|
1546
1548
|
constructor(t: any, e: any);
|
|
1547
|
-
|
|
1548
|
-
_toFieldTransform(t: any):
|
|
1549
|
+
Jc: any;
|
|
1550
|
+
_toFieldTransform(t: any): tn;
|
|
1549
1551
|
isEqual(t: any): boolean;
|
|
1550
1552
|
}
|
|
1551
|
-
declare class
|
|
1553
|
+
declare class gu extends cu {
|
|
1552
1554
|
_toFieldTransform(t: any): null;
|
|
1553
1555
|
isEqual(t: any): boolean;
|
|
1554
1556
|
}
|
|
1555
|
-
declare class
|
|
1557
|
+
declare class sh extends Qu {
|
|
1556
1558
|
constructor(t: any, e: any, n: any);
|
|
1557
1559
|
type: any;
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
_apply(t: any):
|
|
1560
|
+
ia: any;
|
|
1561
|
+
ra: any;
|
|
1562
|
+
_apply(t: any): Ca;
|
|
1561
1563
|
}
|
|
1562
|
-
declare class
|
|
1564
|
+
declare class Iu extends cu {
|
|
1563
1565
|
constructor(t: any, e: any);
|
|
1564
|
-
|
|
1565
|
-
_toFieldTransform(t: any):
|
|
1566
|
+
Yc: any;
|
|
1567
|
+
_toFieldTransform(t: any): tn;
|
|
1566
1568
|
isEqual(t: any): boolean;
|
|
1567
1569
|
}
|
|
1568
|
-
declare class
|
|
1570
|
+
declare class Yu extends Qu {
|
|
1569
1571
|
constructor(t: any, e: any, n: any);
|
|
1570
1572
|
type: any;
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
_apply(t: any):
|
|
1573
|
+
na: any;
|
|
1574
|
+
sa: any;
|
|
1575
|
+
_apply(t: any): Ca;
|
|
1574
1576
|
}
|
|
1575
|
-
declare class
|
|
1577
|
+
declare class Hu extends Qu {
|
|
1576
1578
|
constructor(t: any, e: any);
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
+
Xc: any;
|
|
1580
|
+
ea: any;
|
|
1579
1581
|
type: string;
|
|
1580
|
-
_apply(t: any):
|
|
1582
|
+
_apply(t: any): Ca;
|
|
1581
1583
|
}
|
|
1582
|
-
declare class
|
|
1583
|
-
_toFieldTransform(t: any):
|
|
1584
|
+
declare class pu extends cu {
|
|
1585
|
+
_toFieldTransform(t: any): tn;
|
|
1584
1586
|
isEqual(t: any): boolean;
|
|
1585
1587
|
}
|
|
1586
|
-
declare class
|
|
1588
|
+
declare class th extends Qu {
|
|
1587
1589
|
constructor(t: any, e: any, n: any);
|
|
1588
1590
|
type: any;
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
_apply(t: any):
|
|
1591
|
+
ia: any;
|
|
1592
|
+
ra: any;
|
|
1593
|
+
_apply(t: any): Ca;
|
|
1592
1594
|
}
|
|
1593
|
-
declare class
|
|
1595
|
+
declare class Gu extends Qu {
|
|
1594
1596
|
constructor(t: any, e: any, n: any);
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1597
|
+
Xc: any;
|
|
1598
|
+
Zc: any;
|
|
1599
|
+
ta: any;
|
|
1598
1600
|
type: string;
|
|
1599
|
-
_apply(t: any):
|
|
1601
|
+
_apply(t: any): Ca;
|
|
1600
1602
|
}
|
|
1601
1603
|
/**
|
|
1602
1604
|
* @license
|
|
@@ -1619,7 +1621,7 @@ declare class ju extends qu {
|
|
|
1619
1621
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1620
1622
|
* defaults can be supplied and the value can be checked for equality.
|
|
1621
1623
|
*/
|
|
1622
|
-
declare class
|
|
1624
|
+
declare class va {
|
|
1623
1625
|
constructor(t: any);
|
|
1624
1626
|
host: any;
|
|
1625
1627
|
ssl: any;
|
|
@@ -1643,17 +1645,17 @@ declare class Ra {
|
|
|
1643
1645
|
* base delay. This prevents clients from accidentally synchronizing their
|
|
1644
1646
|
* delays causing spikes of load to the backend.
|
|
1645
1647
|
*/
|
|
1646
|
-
declare class
|
|
1648
|
+
declare class co {
|
|
1647
1649
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
1648
|
-
|
|
1650
|
+
Ue: any;
|
|
1649
1651
|
timerId: any;
|
|
1650
|
-
|
|
1651
|
-
Gi: number;
|
|
1652
|
-
zi: number;
|
|
1653
|
-
Hi: number;
|
|
1654
|
-
Ji: any;
|
|
1655
|
-
/** The last backoff attempt, as epoch milliseconds. */
|
|
1652
|
+
Ji: number;
|
|
1656
1653
|
Yi: number;
|
|
1654
|
+
Xi: number;
|
|
1655
|
+
Zi: number;
|
|
1656
|
+
tr: any;
|
|
1657
|
+
/** The last backoff attempt, as epoch milliseconds. */
|
|
1658
|
+
er: number;
|
|
1657
1659
|
/**
|
|
1658
1660
|
* Resets the backoff delay.
|
|
1659
1661
|
*
|
|
@@ -1664,15 +1666,15 @@ declare class no {
|
|
|
1664
1666
|
/**
|
|
1665
1667
|
* Resets the backoff delay to the maximum delay (e.g. for use after a
|
|
1666
1668
|
* RESOURCE_EXHAUSTED error).
|
|
1667
|
-
*/
|
|
1669
|
+
*/ nr(): void;
|
|
1668
1670
|
/**
|
|
1669
1671
|
* Returns a promise that resolves after currentDelayMs, and increases the
|
|
1670
1672
|
* delay for any subsequent attempts. If there was a pending backoff operation
|
|
1671
1673
|
* already, it will be canceled.
|
|
1672
|
-
*/
|
|
1673
|
-
|
|
1674
|
+
*/ sr(t: any): void;
|
|
1675
|
+
rr(): void;
|
|
1674
1676
|
cancel(): void;
|
|
1675
|
-
/** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */
|
|
1677
|
+
/** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */ ir(): number;
|
|
1676
1678
|
}
|
|
1677
1679
|
/**
|
|
1678
1680
|
* @license
|
|
@@ -1701,7 +1703,7 @@ declare class no {
|
|
|
1701
1703
|
* in newer versions of TypeScript defines `finally`, which is not available in
|
|
1702
1704
|
* IE.
|
|
1703
1705
|
*/
|
|
1704
|
-
declare class
|
|
1706
|
+
declare class Ko {
|
|
1705
1707
|
/**
|
|
1706
1708
|
* Creates and returns a DelayedOperation that has been scheduled to be
|
|
1707
1709
|
* executed on the provided asyncQueue after the provided delayMs.
|
|
@@ -1715,7 +1717,7 @@ declare class Fo {
|
|
|
1715
1717
|
* from its delayedOperations list.
|
|
1716
1718
|
* PORTING NOTE: This exists to prevent making removeDelayedOperation() and
|
|
1717
1719
|
* the DelayedOperation class public.
|
|
1718
|
-
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any):
|
|
1720
|
+
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): Ko;
|
|
1719
1721
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1720
1722
|
asyncQueue: any;
|
|
1721
1723
|
timerId: any;
|
|
@@ -1743,7 +1745,7 @@ declare class Fo {
|
|
|
1743
1745
|
handleDelayElapsed(): void;
|
|
1744
1746
|
clearTimeout(): void;
|
|
1745
1747
|
}
|
|
1746
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1748
|
+
/** A "context" object passed around while parsing user data. */ declare class du {
|
|
1747
1749
|
/**
|
|
1748
1750
|
* Initializes a ParseContext with the given source and path.
|
|
1749
1751
|
*
|
|
@@ -1765,20 +1767,20 @@ declare class Fo {
|
|
|
1765
1767
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
1766
1768
|
settings: any;
|
|
1767
1769
|
databaseId: any;
|
|
1768
|
-
|
|
1770
|
+
F: any;
|
|
1769
1771
|
ignoreUndefinedProperties: any;
|
|
1770
1772
|
fieldTransforms: any;
|
|
1771
1773
|
fieldMask: any;
|
|
1772
1774
|
get path(): any;
|
|
1773
|
-
get
|
|
1774
|
-
/** Returns a new context with the specified settings overwritten. */
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1775
|
+
get Lc(): any;
|
|
1776
|
+
/** Returns a new context with the specified settings overwritten. */ Bc(t: any): du;
|
|
1777
|
+
Uc(t: any): du;
|
|
1778
|
+
jc(t: any): du;
|
|
1779
|
+
Qc(t: any): du;
|
|
1780
|
+
Wc(t: any): Q;
|
|
1779
1781
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
+
Fc(): void;
|
|
1783
|
+
Kc(t: any): void;
|
|
1782
1784
|
}
|
|
1783
1785
|
/**
|
|
1784
1786
|
* @license
|
|
@@ -1796,9 +1798,9 @@ declare class Fo {
|
|
|
1796
1798
|
* See the License for the specific language governing permissions and
|
|
1797
1799
|
* limitations under the License.
|
|
1798
1800
|
*/
|
|
1799
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1801
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class tn {
|
|
1800
1802
|
constructor(t: any, e: any);
|
|
1801
1803
|
field: any;
|
|
1802
1804
|
transform: any;
|
|
1803
1805
|
}
|
|
1804
|
-
export {
|
|
1806
|
+
export { hh as AbstractUserDataWriter, ou as Bytes, Ua as CACHE_SIZE_UNLIMITED, Na as CollectionReference, Da as DocumentReference, Lu as DocumentSnapshot, iu as FieldPath, cu as FieldValue, qa as Firestore, Q as FirestoreError, au as GeoPoint, Ba as LoadBundleTask, Ca as Query, Qu as QueryConstraint, Bu as QueryDocumentSnapshot, Uu as QuerySnapshot, Fu as SnapshotMetadata, at as Timestamp, Dh as Transaction, dh as WriteBatch, Vt as _DatabaseId, Nt as _DocumentKey, et as _EmptyAppCheckTokenProvider, z as _EmptyAuthCredentialsProvider, mt as _FieldPath, ba as _cast, q as _debugAssert, yt as _isBase64Available, F as _logWarn, Fh as _setIndexConfiguration, Ea as _validateIsNotUsedTogether, bh as addDoc, $h as arrayRemove, xh as arrayUnion, Ja as clearIndexedDbPersistence, ka as collection, xa as collectionGroup, Sa as connectFirestoreEmulator, Rh as deleteDoc, Nh as deleteField, Za as disableNetwork, $a as doc, ru as documentId, Ga as enableIndexedDbPersistence, za as enableMultiTabIndexedDbPersistence, Xa as enableNetwork, rh as endAt, ih as endBefore, Qa as ensureFirestoreConfigured, Vh as executeWrite, _h as getDoc, gh as getDocFromCache, yh as getDocFromServer, ph as getDocs, Th as getDocsFromCache, Eh as getDocsFromServer, ja as getFirestore, Oh as increment, Ka as initializeFirestore, Xu as limit, Zu as limitToLast, eu as loadBundle, nu as namedQuery, Ph as onSnapshot, vh as onSnapshotsInSync, Ju as orderBy, Wu as query, Ma as queryEqual, Oa as refEqual, Ch as runTransaction, kh as serverTimestamp, Ih as setDoc, $ as setLogLevel, Ku as snapshotEqual, nh as startAfter, eh as startAt, tu as terminate, Ah as updateDoc, Ya as waitForPendingWrites, zu as where, Mh as writeBatch };
|