@firebase/firestore 3.1.0 → 3.1.1-canary.4594d3fd6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/firestore/src/register.d.ts +1 -1
- package/dist/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/firestore/src/util/async_queue.d.ts +4 -2
- package/dist/index.esm2017.js +2997 -2993
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +2861 -2851
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +7051 -9102
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/{index.node.cjs.esm2017.js → index.node.mjs} +56 -23
- package/dist/index.node.mjs.map +1 -0
- package/dist/index.rn.js +2973 -2965
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +4 -2
- package/dist/lite/firestore/src/register.d.ts +1 -1
- package/dist/lite/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/lite/firestore/src/util/async_queue.d.ts +4 -2
- package/dist/lite/index.browser.esm2017.js +1188 -1191
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +797 -796
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +1807 -2262
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/{index.node.esm2017.js → index.node.mjs} +6 -4
- package/dist/lite/index.node.mjs.map +1 -0
- package/dist/lite/index.rn.esm2017.js +11 -11
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +4 -2
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +115 -115
- package/dist/lite/packages/firestore/src/register.d.ts +1 -1
- package/dist/lite/packages/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/lite/packages/firestore/src/util/async_queue.d.ts +4 -2
- package/dist/lite/private.d.ts +4 -2
- package/dist/packages/firestore/dist/index.esm2017.d.ts +187 -187
- package/dist/packages/firestore/src/register.d.ts +1 -1
- package/dist/packages/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/packages/firestore/src/util/async_queue.d.ts +4 -2
- package/dist/private.d.ts +4 -2
- package/lite/package.json +1 -1
- package/package.json +22 -16
- package/dist/index.node.cjs.esm2017.js.map +0 -1
- package/dist/lite/firestore/dist/lite/index.node.esm2017.d.ts +0 -1195
- package/dist/lite/index.node.esm2017.js.map +0 -1
- package/dist/packages/firestore/dist/index.node.cjs.esm2017.d.ts +0 -1844
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
* to the user.
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
|
-
*/ declare class
|
|
22
|
+
*/ declare class nh {
|
|
23
23
|
convertValue(t: any, e?: string): any;
|
|
24
24
|
convertObject(t: any, e: any): {};
|
|
25
|
-
convertGeoPoint(t: any):
|
|
25
|
+
convertGeoPoint(t: any): tu;
|
|
26
26
|
convertArray(t: any, e: any): any;
|
|
27
27
|
convertServerTimestamp(t: any, e: any): any;
|
|
28
|
-
convertTimestamp(t: any):
|
|
29
|
-
convertDocumentKey(t: any, e: any):
|
|
28
|
+
convertTimestamp(t: any): it;
|
|
29
|
+
convertDocumentKey(t: any, e: any): Pt;
|
|
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 Xc {
|
|
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): Xc;
|
|
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): Xc;
|
|
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 xc: -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 Rc extends Ac {
|
|
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(): Ic | 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 Ic {
|
|
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(): Rc;
|
|
157
|
+
withConverter(t: any): Ic;
|
|
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 Cu extends vu {
|
|
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 Jc {
|
|
214
214
|
/**
|
|
215
215
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
216
216
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -218,7 +218,7 @@ declare class Hc {
|
|
|
218
218
|
* @param fieldNames - A list of field names.
|
|
219
219
|
*/
|
|
220
220
|
constructor(...t: any[]);
|
|
221
|
-
_internalPath:
|
|
221
|
+
_internalPath: ft;
|
|
222
222
|
/**
|
|
223
223
|
* Returns true if this `FieldPath` is equal to the provided one.
|
|
224
224
|
*
|
|
@@ -245,7 +245,7 @@ declare class Hc {
|
|
|
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 Zc {
|
|
249
249
|
/**
|
|
250
250
|
* @param _methodName - The public API endpoint that returns this class.
|
|
251
251
|
* @hideconstructor
|
|
@@ -258,10 +258,10 @@ declare class Hc {
|
|
|
258
258
|
*
|
|
259
259
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
260
260
|
*/
|
|
261
|
-
declare class
|
|
262
|
-
_queue:
|
|
261
|
+
declare class kc extends Tc {
|
|
262
|
+
_queue: Dc;
|
|
263
263
|
}
|
|
264
|
-
/** An error returned by a Firestore operation. */ declare class
|
|
264
|
+
/** An error returned by a Firestore operation. */ declare class j extends Error {
|
|
265
265
|
/** @hideconstructor */
|
|
266
266
|
constructor(t: any, e: any);
|
|
267
267
|
code: any;
|
|
@@ -288,7 +288,7 @@ declare class xc extends pc {
|
|
|
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 tu {
|
|
292
292
|
/**
|
|
293
293
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
294
294
|
* longitude values.
|
|
@@ -319,9 +319,9 @@ declare class xc extends pc {
|
|
|
319
319
|
* with an underscore.
|
|
320
320
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
321
321
|
}
|
|
322
|
-
declare class
|
|
322
|
+
declare class Nc {
|
|
323
323
|
_progressObserver: {};
|
|
324
|
-
_taskCompletionResolver:
|
|
324
|
+
_taskCompletionResolver: Q;
|
|
325
325
|
_lastProgress: {
|
|
326
326
|
taskState: string;
|
|
327
327
|
totalBytes: number;
|
|
@@ -371,7 +371,7 @@ declare class Cc {
|
|
|
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 Ac {
|
|
375
375
|
/** @hideconstructor protected */
|
|
376
376
|
constructor(t: any, e: any, n: any);
|
|
377
377
|
converter: any;
|
|
@@ -379,7 +379,7 @@ declare class Cc {
|
|
|
379
379
|
/** The type of this Firestore reference. */
|
|
380
380
|
type: string;
|
|
381
381
|
firestore: any;
|
|
382
|
-
withConverter(t: any):
|
|
382
|
+
withConverter(t: any): Ac;
|
|
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 Cc {
|
|
|
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 Fu {
|
|
392
392
|
}
|
|
393
393
|
/**
|
|
394
394
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -400,7 +400,7 @@ declare class Cc {
|
|
|
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 Nu extends Cu {
|
|
404
404
|
}
|
|
405
405
|
/**
|
|
406
406
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -408,13 +408,13 @@ declare class Cc {
|
|
|
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 xu {
|
|
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: Du;
|
|
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 Cc {
|
|
|
456
456
|
*/
|
|
457
457
|
/**
|
|
458
458
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
459
|
-
*/ declare class
|
|
459
|
+
*/ declare class Du {
|
|
460
460
|
/** @hideconstructor */
|
|
461
461
|
constructor(t: any, e: any);
|
|
462
462
|
hasPendingWrites: any;
|
|
@@ -498,19 +498,19 @@ declare class Cc {
|
|
|
498
498
|
* For examples and further specifications, refer to the
|
|
499
499
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
500
500
|
*/
|
|
501
|
-
declare class
|
|
501
|
+
declare class it {
|
|
502
502
|
/**
|
|
503
503
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
504
504
|
*
|
|
505
505
|
* @returns a new timestamp representing the current date.
|
|
506
|
-
*/ static now():
|
|
506
|
+
*/ static now(): it;
|
|
507
507
|
/**
|
|
508
508
|
* Creates a new timestamp from the given date.
|
|
509
509
|
*
|
|
510
510
|
* @param date - The date to initialize the `Timestamp` from.
|
|
511
511
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
512
512
|
* date.
|
|
513
|
-
*/ static fromDate(t: any):
|
|
513
|
+
*/ static fromDate(t: any): it;
|
|
514
514
|
/**
|
|
515
515
|
* Creates a new timestamp from the given number of milliseconds.
|
|
516
516
|
*
|
|
@@ -518,7 +518,7 @@ declare class st {
|
|
|
518
518
|
* 1970-01-01T00:00:00Z.
|
|
519
519
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
520
520
|
* number of milliseconds.
|
|
521
|
-
*/ static fromMillis(t: any):
|
|
521
|
+
*/ static fromMillis(t: any): it;
|
|
522
522
|
/**
|
|
523
523
|
* Creates a new timestamp.
|
|
524
524
|
*
|
|
@@ -565,11 +565,11 @@ declare class st {
|
|
|
565
565
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
566
566
|
*/ valueOf(): string;
|
|
567
567
|
}
|
|
568
|
-
declare const
|
|
568
|
+
declare const Ih_base: {
|
|
569
569
|
new (t: any, e: any): {
|
|
570
570
|
_firestore: any;
|
|
571
571
|
_transaction: any;
|
|
572
|
-
_dataReader:
|
|
572
|
+
_dataReader: ou;
|
|
573
573
|
/**
|
|
574
574
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
575
575
|
*
|
|
@@ -608,7 +608,7 @@ declare const Th_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 Ih extends Ih_base {
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
614
|
* @license
|
|
@@ -633,22 +633,22 @@ declare const Th_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 rh {
|
|
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: ou;
|
|
644
|
+
set(t: any, e: any, n: any): rh;
|
|
645
|
+
update(t: any, e: any, n: any, ...s: any[]): rh;
|
|
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): rh;
|
|
652
652
|
/**
|
|
653
653
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
654
654
|
*
|
|
@@ -668,7 +668,7 @@ declare const Th_base: {
|
|
|
668
668
|
* Represents the database ID a Firestore client is associated with.
|
|
669
669
|
* @internal
|
|
670
670
|
*/
|
|
671
|
-
declare class
|
|
671
|
+
declare class hc {
|
|
672
672
|
constructor(t: any, e: any);
|
|
673
673
|
projectId: any;
|
|
674
674
|
database: any;
|
|
@@ -693,9 +693,9 @@ declare class uc {
|
|
|
693
693
|
*/
|
|
694
694
|
/**
|
|
695
695
|
* @internal
|
|
696
|
-
*/ declare class
|
|
697
|
-
static fromPath(t: any):
|
|
698
|
-
static fromName(t: any):
|
|
696
|
+
*/ declare class Pt {
|
|
697
|
+
static fromPath(t: any): Pt;
|
|
698
|
+
static fromName(t: any): Pt;
|
|
699
699
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
700
700
|
static isDocumentKey(t: any): boolean;
|
|
701
701
|
/**
|
|
@@ -703,7 +703,7 @@ declare class uc {
|
|
|
703
703
|
*
|
|
704
704
|
* @param segments - The segments of the path to the document
|
|
705
705
|
* @returns A new instance of DocumentKey
|
|
706
|
-
*/ static fromSegments(t: any):
|
|
706
|
+
*/ static fromSegments(t: any): Pt;
|
|
707
707
|
constructor(t: any);
|
|
708
708
|
path: any;
|
|
709
709
|
/** Returns true if the document is in the specified collectionId. */ hasCollectionId(t: any): boolean;
|
|
@@ -713,7 +713,7 @@ declare class uc {
|
|
|
713
713
|
/**
|
|
714
714
|
* A CredentialsProvider that always yields an empty token.
|
|
715
715
|
* @internal
|
|
716
|
-
*/ declare class
|
|
716
|
+
*/ declare class G {
|
|
717
717
|
getToken(): Promise<null>;
|
|
718
718
|
invalidateToken(): void;
|
|
719
719
|
start(t: any, e: any): void;
|
|
@@ -722,14 +722,14 @@ declare class uc {
|
|
|
722
722
|
/**
|
|
723
723
|
* A dot-separated path for navigating sub-objects within a document.
|
|
724
724
|
* @internal
|
|
725
|
-
*/ declare class
|
|
725
|
+
*/ declare class ft extends ut {
|
|
726
726
|
/**
|
|
727
727
|
* Returns true if the string could be used as a segment in a field path
|
|
728
728
|
* without escaping.
|
|
729
729
|
*/ static isValidIdentifier(t: any): boolean;
|
|
730
730
|
/**
|
|
731
731
|
* The field designating the key of a document.
|
|
732
|
-
*/ static keyField():
|
|
732
|
+
*/ static keyField(): ft;
|
|
733
733
|
/**
|
|
734
734
|
* Parses a field string from the given server-formatted string.
|
|
735
735
|
*
|
|
@@ -739,16 +739,16 @@ declare class uc {
|
|
|
739
739
|
*
|
|
740
740
|
* TODO(b/37244157): we should make this more strict. Right now, it allows
|
|
741
741
|
* non-identifier path components, even if they aren't escaped.
|
|
742
|
-
*/ static fromServerFormat(t: any):
|
|
743
|
-
static emptyPath():
|
|
744
|
-
construct(t: any, e: any, n: any):
|
|
742
|
+
*/ static fromServerFormat(t: any): ft;
|
|
743
|
+
static emptyPath(): ft;
|
|
744
|
+
construct(t: any, e: any, n: any): ft;
|
|
745
745
|
canonicalString(): any;
|
|
746
746
|
toString(): any;
|
|
747
747
|
/**
|
|
748
748
|
* Returns true if this field references the key of a document.
|
|
749
749
|
*/ isKeyField(): boolean;
|
|
750
750
|
}
|
|
751
|
-
declare function
|
|
751
|
+
declare function gc(t: any, e: any): any;
|
|
752
752
|
/**
|
|
753
753
|
* Fails if the given assertion condition is false, throwing an Error with the
|
|
754
754
|
* given message if it did.
|
|
@@ -758,7 +758,7 @@ declare function mc(t: any, e: any): any;
|
|
|
758
758
|
* happen in this case.
|
|
759
759
|
*
|
|
760
760
|
* @internal
|
|
761
|
-
*/ declare function
|
|
761
|
+
*/ declare function U(t: any, e: any): void;
|
|
762
762
|
/**
|
|
763
763
|
* @license
|
|
764
764
|
* Copyright 2020 Google LLC
|
|
@@ -777,14 +777,14 @@ declare function mc(t: any, e: any): any;
|
|
|
777
777
|
*/
|
|
778
778
|
/** Converts a Base64 encoded string to a binary string. */
|
|
779
779
|
/** True if and only if the Base64 conversion functions are available. */
|
|
780
|
-
declare function
|
|
780
|
+
declare function wt(): boolean;
|
|
781
781
|
/**
|
|
782
782
|
* @internal
|
|
783
|
-
*/ declare function
|
|
783
|
+
*/ declare function F(t: any, ...e: any[]): void;
|
|
784
784
|
/**
|
|
785
785
|
* Validates that two boolean options are not set at the same time.
|
|
786
786
|
* @internal
|
|
787
|
-
*/ declare function
|
|
787
|
+
*/ declare function dc(t: any, e: any, n: any, s: any): void;
|
|
788
788
|
/**
|
|
789
789
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
790
790
|
* assigning it a document ID automatically.
|
|
@@ -794,7 +794,7 @@ declare function dt(): boolean;
|
|
|
794
794
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
795
795
|
* newly created document after it has been written to the backend (Note that it
|
|
796
796
|
* won't resolve while you're offline).
|
|
797
|
-
*/ declare function
|
|
797
|
+
*/ declare function gh(t: any, e: any): Promise<Ic>;
|
|
798
798
|
/**
|
|
799
799
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
800
800
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -805,7 +805,7 @@ declare function dt(): boolean;
|
|
|
805
805
|
* @param elements - The elements to remove from the array.
|
|
806
806
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
807
807
|
* `updateDoc()`
|
|
808
|
-
*/ declare function
|
|
808
|
+
*/ declare function vh(...t: any[]): du;
|
|
809
809
|
/**
|
|
810
810
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
811
811
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -817,9 +817,9 @@ declare function dt(): boolean;
|
|
|
817
817
|
* @param elements - The elements to union into the array.
|
|
818
818
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
819
819
|
* `updateDoc()`.
|
|
820
|
-
*/ declare function
|
|
821
|
-
declare function
|
|
822
|
-
declare function
|
|
820
|
+
*/ declare function Ph(...t: any[]): fu;
|
|
821
|
+
declare function qc(t: any): Promise<any>;
|
|
822
|
+
declare function bc(t: any, e: any, ...n: any[]): Rc;
|
|
823
823
|
/**
|
|
824
824
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
825
825
|
* database that are contained in a collection or subcollection with the
|
|
@@ -830,7 +830,7 @@ declare function Rc(t: any, e: any, ...n: any[]): Ac;
|
|
|
830
830
|
* collection or subcollection with this ID as the last segment of its path
|
|
831
831
|
* will be included. Cannot contain a slash.
|
|
832
832
|
* @returns The created `Query`.
|
|
833
|
-
*/ declare function
|
|
833
|
+
*/ declare function Pc(t: any, e: any): Ac;
|
|
834
834
|
declare function Ec(t: any, e: any, n: any, s?: {}): void;
|
|
835
835
|
/**
|
|
836
836
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
@@ -838,7 +838,7 @@ declare function Ec(t: any, e: any, n: any, s?: {}): void;
|
|
|
838
838
|
* @param reference - A reference to the document to delete.
|
|
839
839
|
* @returns A Promise resolved once the document has been successfully
|
|
840
840
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
841
|
-
*/ declare function
|
|
841
|
+
*/ declare function mh(t: any): Promise<any>;
|
|
842
842
|
/**
|
|
843
843
|
* @license
|
|
844
844
|
* Copyright 2020 Google LLC
|
|
@@ -858,7 +858,7 @@ declare function Ec(t: any, e: any, n: any, s?: {}): void;
|
|
|
858
858
|
/**
|
|
859
859
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
860
860
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
861
|
-
*/ declare function
|
|
861
|
+
*/ declare function Rh(): uu;
|
|
862
862
|
/**
|
|
863
863
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
864
864
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -866,12 +866,12 @@ declare function Ec(t: any, e: any, n: any, s?: {}): void;
|
|
|
866
866
|
* operations will be queued until the network is restored.
|
|
867
867
|
*
|
|
868
868
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
869
|
-
*/ declare function
|
|
870
|
-
declare function
|
|
869
|
+
*/ declare function Qc(t: any): any;
|
|
870
|
+
declare function vc(t: any, e: any, ...n: any[]): Ic;
|
|
871
871
|
/**
|
|
872
872
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
873
873
|
* It can be used in queries to sort or filter by the document ID.
|
|
874
|
-
*/ declare function
|
|
874
|
+
*/ declare function Yc(): Jc;
|
|
875
875
|
/**
|
|
876
876
|
* Attempts to enable persistent storage, if possible.
|
|
877
877
|
*
|
|
@@ -894,7 +894,7 @@ declare function Pc(t: any, e: any, ...n: any[]): Tc;
|
|
|
894
894
|
* @param persistenceSettings - Optional settings object to configure
|
|
895
895
|
* persistence.
|
|
896
896
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
897
|
-
*/ declare function
|
|
897
|
+
*/ declare function Lc(t: any, e: any): any;
|
|
898
898
|
/**
|
|
899
899
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
900
900
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -916,22 +916,22 @@ declare function Pc(t: any, e: any, ...n: any[]): Tc;
|
|
|
916
916
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
917
917
|
* @returns A `Promise` that represents successfully enabling persistent
|
|
918
918
|
* storage.
|
|
919
|
-
*/ declare function
|
|
919
|
+
*/ declare function Bc(t: any): any;
|
|
920
920
|
/**
|
|
921
921
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
922
922
|
* call to {@link disableNetwork}.
|
|
923
923
|
*
|
|
924
924
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
925
|
-
*/ declare function
|
|
926
|
-
declare function
|
|
927
|
-
declare function
|
|
925
|
+
*/ declare function jc(t: any): any;
|
|
926
|
+
declare function Yu(...t: any[]): Hu;
|
|
927
|
+
declare function Ju(...t: any[]): Hu;
|
|
928
928
|
/**
|
|
929
929
|
* @internal
|
|
930
|
-
*/ declare function
|
|
930
|
+
*/ declare function Fc(t: any): any;
|
|
931
931
|
/**
|
|
932
932
|
* Locally writes `mutations` on the async queue.
|
|
933
933
|
* @internal
|
|
934
|
-
*/ declare function
|
|
934
|
+
*/ declare function Th(t: any, e: any): Promise<any>;
|
|
935
935
|
/**
|
|
936
936
|
* @license
|
|
937
937
|
* Copyright 2020 Google LLC
|
|
@@ -983,21 +983,21 @@ declare function Hu(...t: any[]): zu;
|
|
|
983
983
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
984
984
|
* current document contents.
|
|
985
985
|
*/
|
|
986
|
-
declare function
|
|
986
|
+
declare function ah(t: any): Promise<Cu>;
|
|
987
987
|
/**
|
|
988
988
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
989
989
|
* Returns an error if the document is not currently cached.
|
|
990
990
|
*
|
|
991
991
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
992
992
|
* current document contents.
|
|
993
|
-
*/ declare function
|
|
993
|
+
*/ declare function uh(t: any): Promise<Cu>;
|
|
994
994
|
/**
|
|
995
995
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
996
996
|
* Returns an error if the network is not available.
|
|
997
997
|
*
|
|
998
998
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
999
999
|
* current document contents.
|
|
1000
|
-
*/ declare function
|
|
1000
|
+
*/ declare function hh(t: any): Promise<Cu>;
|
|
1001
1001
|
/**
|
|
1002
1002
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1003
1003
|
*
|
|
@@ -1007,19 +1007,19 @@ declare function oh(t: any): Promise<Du>;
|
|
|
1007
1007
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
1008
1008
|
*
|
|
1009
1009
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1010
|
-
*/ declare function
|
|
1010
|
+
*/ declare function lh(t: any): Promise<xu>;
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1013
1013
|
* Returns an error if the document is not currently cached.
|
|
1014
1014
|
*
|
|
1015
1015
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1016
|
-
*/ declare function
|
|
1016
|
+
*/ declare function fh(t: any): Promise<xu>;
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1019
1019
|
* server. Returns an error if the network is not available.
|
|
1020
1020
|
*
|
|
1021
1021
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1022
|
-
*/ declare function
|
|
1022
|
+
*/ declare function dh(t: any): Promise<xu>;
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Returns the existing {@link Firestore} instance that is associated with the
|
|
1025
1025
|
* provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
|
|
@@ -1028,7 +1028,7 @@ declare function oh(t: any): Promise<Du>;
|
|
|
1028
1028
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
|
|
1029
1029
|
* instance is associated with.
|
|
1030
1030
|
* @returns The {@link Firestore} instance of the provided app.
|
|
1031
|
-
*/ declare function
|
|
1031
|
+
*/ declare function Oc(e?: import("@firebase/app").FirebaseApp): import("../src").Firestore;
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1034
1034
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1047,7 +1047,7 @@ declare function oh(t: any): Promise<Du>;
|
|
|
1047
1047
|
* @param n - The value to increment by.
|
|
1048
1048
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1049
1049
|
* `updateDoc()`
|
|
1050
|
-
*/ declare function
|
|
1050
|
+
*/ declare function Vh(t: any): wu;
|
|
1051
1051
|
/**
|
|
1052
1052
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1053
1053
|
* Can only be called before any other function, including
|
|
@@ -1058,13 +1058,13 @@ declare function oh(t: any): Promise<Du>;
|
|
|
1058
1058
|
* be associated.
|
|
1059
1059
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1060
1060
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1061
|
-
*/ declare function
|
|
1061
|
+
*/ declare function $c(t: any, e: any): import("../src").Firestore;
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
1064
1064
|
*
|
|
1065
1065
|
* @param limit - The maximum number of items to return.
|
|
1066
1066
|
* @returns The created {@link Query}.
|
|
1067
|
-
*/ declare function
|
|
1067
|
+
*/ declare function ju(t: any): Ku;
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
1070
1070
|
*
|
|
@@ -1073,7 +1073,7 @@ declare function oh(t: any): Promise<Du>;
|
|
|
1073
1073
|
*
|
|
1074
1074
|
* @param limit - The maximum number of items to return.
|
|
1075
1075
|
* @returns The created {@link Query}.
|
|
1076
|
-
*/ declare function
|
|
1076
|
+
*/ declare function Qu(t: any): Ku;
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Loads a Firestore bundle into the local cache.
|
|
1079
1079
|
*
|
|
@@ -1084,16 +1084,16 @@ declare function oh(t: any): Promise<Du>;
|
|
|
1084
1084
|
* @returns
|
|
1085
1085
|
* A `LoadBundleTask` object, which notifies callers with progress updates, and completion
|
|
1086
1086
|
* or error events. It can be used as a `Promise<LoadBundleTaskProgress>`.
|
|
1087
|
-
*/ declare function
|
|
1087
|
+
*/ declare function Gc(t: any, e: any): Nc;
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Reads a Firestore {@link Query} from local cache, identified by the given name.
|
|
1090
1090
|
*
|
|
1091
1091
|
* The named queries are packaged into bundles on the server side (along
|
|
1092
1092
|
* with resulting documents), and loaded to local cache using `loadBundle`. Once in local
|
|
1093
1093
|
* cache, use this method to extract a {@link Query} by name.
|
|
1094
|
-
*/ declare function
|
|
1095
|
-
declare function
|
|
1096
|
-
declare function
|
|
1094
|
+
*/ declare function zc(t: any, e: any): any;
|
|
1095
|
+
declare function yh(t: any, ...e: any[]): () => void;
|
|
1096
|
+
declare function ph(t: any, e: any): () => void;
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
1099
1099
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1102,7 +1102,7 @@ declare function yh(t: any, e: any): () => void;
|
|
|
1102
1102
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1103
1103
|
* not specified, order will be ascending.
|
|
1104
1104
|
* @returns The created {@link Query}.
|
|
1105
|
-
*/ declare function
|
|
1105
|
+
*/ declare function qu(t: any, e?: string): Uu;
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
1108
1108
|
* additional query constraints.
|
|
@@ -1111,7 +1111,7 @@ declare function yh(t: any, e: any): () => void;
|
|
|
1111
1111
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
1112
1112
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
1113
1113
|
* existing or new constraints.
|
|
1114
|
-
*/ declare function
|
|
1114
|
+
*/ declare function Mu(t: any, ...e: any[]): any;
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Returns true if the provided queries point to the same collection and apply
|
|
1117
1117
|
* the same constraints.
|
|
@@ -1120,7 +1120,7 @@ declare function yh(t: any, e: any): () => void;
|
|
|
1120
1120
|
* @param right - A `Query` to compare.
|
|
1121
1121
|
* @returns true if the references point to the same location in the same
|
|
1122
1122
|
* Firestore database.
|
|
1123
|
-
*/ declare function
|
|
1123
|
+
*/ declare function Sc(t: any, e: any): boolean;
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Returns true if the provided references are equal.
|
|
1126
1126
|
*
|
|
@@ -1128,7 +1128,7 @@ declare function yh(t: any, e: any): () => void;
|
|
|
1128
1128
|
* @param right - A reference to compare.
|
|
1129
1129
|
* @returns true if the references point to the same location in the same
|
|
1130
1130
|
* Firestore database.
|
|
1131
|
-
*/ declare function
|
|
1131
|
+
*/ declare function Vc(t: any, e: any): boolean;
|
|
1132
1132
|
/**
|
|
1133
1133
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1134
1134
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1145,12 +1145,12 @@ declare function yh(t: any, e: any): () => void;
|
|
|
1145
1145
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1146
1146
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1147
1147
|
* rejected promise with the corresponding failure error is returned.
|
|
1148
|
-
*/ declare function
|
|
1148
|
+
*/ declare function Ah(t: any, e: any): Promise<any>;
|
|
1149
1149
|
/**
|
|
1150
1150
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1151
1151
|
* include a server-generated timestamp in the written data.
|
|
1152
|
-
*/ declare function
|
|
1153
|
-
declare function
|
|
1152
|
+
*/ declare function bh(): lu;
|
|
1153
|
+
declare function wh(t: any, e: any, n: any): Promise<any>;
|
|
1154
1154
|
/**
|
|
1155
1155
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1156
1156
|
*
|
|
@@ -1163,16 +1163,16 @@ declare function dh(t: any, e: any, n: any): Promise<any>;
|
|
|
1163
1163
|
* <li>`error` to log errors only.</li>
|
|
1164
1164
|
* <li><code>`silent` to turn off logging.</li>
|
|
1165
1165
|
* </ul>
|
|
1166
|
-
*/ declare function
|
|
1166
|
+
*/ declare function k(t: any): void;
|
|
1167
1167
|
/**
|
|
1168
1168
|
* Returns true if the provided snapshots are equal.
|
|
1169
1169
|
*
|
|
1170
1170
|
* @param left - A snapshot to compare.
|
|
1171
1171
|
* @param right - A snapshot to compare.
|
|
1172
1172
|
* @returns true if the snapshots are equal.
|
|
1173
|
-
*/ declare function
|
|
1174
|
-
declare function
|
|
1175
|
-
declare function
|
|
1173
|
+
*/ declare function $u(t: any, e: any): any;
|
|
1174
|
+
declare function zu(...t: any[]): Wu;
|
|
1175
|
+
declare function Gu(...t: any[]): Wu;
|
|
1176
1176
|
/**
|
|
1177
1177
|
* Terminates the provided {@link Firestore} instance.
|
|
1178
1178
|
*
|
|
@@ -1194,8 +1194,8 @@ declare function Wu(...t: any[]): Qu;
|
|
|
1194
1194
|
*
|
|
1195
1195
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1196
1196
|
* terminated.
|
|
1197
|
-
*/ declare function
|
|
1198
|
-
declare function
|
|
1197
|
+
*/ declare function Wc(t: any): any;
|
|
1198
|
+
declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Waits until all currently pending writes for the active user have been
|
|
1201
1201
|
* acknowledged by the backend.
|
|
@@ -1211,7 +1211,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1211
1211
|
*
|
|
1212
1212
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1213
1213
|
* acknowledged by the backend.
|
|
1214
|
-
*/ declare function
|
|
1214
|
+
*/ declare function Kc(t: any): Promise<any>;
|
|
1215
1215
|
/**
|
|
1216
1216
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
1217
1217
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -1222,7 +1222,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1222
1222
|
* "<=", "!=").
|
|
1223
1223
|
* @param value - The value for comparison
|
|
1224
1224
|
* @returns The created {@link Query}.
|
|
1225
|
-
*/ declare function
|
|
1225
|
+
*/ declare function Bu(t: any, e: any, n: any): Lu;
|
|
1226
1226
|
/**
|
|
1227
1227
|
* @license
|
|
1228
1228
|
* Copyright 2020 Google LLC
|
|
@@ -1249,7 +1249,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1249
1249
|
*
|
|
1250
1250
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1251
1251
|
* writes.
|
|
1252
|
-
*/ declare function
|
|
1252
|
+
*/ declare function Sh(t: any): rh;
|
|
1253
1253
|
/**
|
|
1254
1254
|
* @license
|
|
1255
1255
|
* Copyright 2020 Google LLC
|
|
@@ -1274,7 +1274,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1274
1274
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
1275
1275
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
1276
1276
|
* explicitly verify a document's existence.
|
|
1277
|
-
*/ declare class
|
|
1277
|
+
*/ declare class vu {
|
|
1278
1278
|
/** @hideconstructor protected */
|
|
1279
1279
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1280
1280
|
_firestore: any;
|
|
@@ -1285,7 +1285,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1285
1285
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1286
1286
|
/**
|
|
1287
1287
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1288
|
-
*/ get ref():
|
|
1288
|
+
*/ get ref(): Ic;
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1291
1291
|
*
|
|
@@ -1329,7 +1329,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1329
1329
|
* The Cloud Firestore service interface.
|
|
1330
1330
|
*
|
|
1331
1331
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
1332
|
-
*/ declare class
|
|
1332
|
+
*/ declare class Tc {
|
|
1333
1333
|
/** @hideconstructor */
|
|
1334
1334
|
constructor(t: any, e: any);
|
|
1335
1335
|
_credentials: any;
|
|
@@ -1338,9 +1338,9 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1338
1338
|
*/
|
|
1339
1339
|
type: string;
|
|
1340
1340
|
_persistenceKey: string;
|
|
1341
|
-
_settings:
|
|
1341
|
+
_settings: pc;
|
|
1342
1342
|
_settingsFrozen: boolean;
|
|
1343
|
-
_databaseId:
|
|
1343
|
+
_databaseId: hc;
|
|
1344
1344
|
_app: any;
|
|
1345
1345
|
/**
|
|
1346
1346
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1349,14 +1349,14 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1349
1349
|
get _initialized(): boolean;
|
|
1350
1350
|
get _terminated(): boolean;
|
|
1351
1351
|
_setSettings(t: any): void;
|
|
1352
|
-
_getSettings():
|
|
1353
|
-
_freezeSettings():
|
|
1352
|
+
_getSettings(): pc;
|
|
1353
|
+
_freezeSettings(): pc;
|
|
1354
1354
|
_delete(): Promise<void>;
|
|
1355
1355
|
_terminateTask: Promise<void> | undefined;
|
|
1356
1356
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1357
1357
|
app: any;
|
|
1358
|
-
databaseId:
|
|
1359
|
-
settings:
|
|
1358
|
+
databaseId: hc;
|
|
1359
|
+
settings: pc;
|
|
1360
1360
|
};
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1381,17 +1381,17 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1381
1381
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1382
1382
|
* See the License for the specific language governing permissions and
|
|
1383
1383
|
* limitations under the License.
|
|
1384
|
-
*/ declare class
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
wa: boolean;
|
|
1388
|
-
_a: any[];
|
|
1389
|
-
ma: any;
|
|
1384
|
+
*/ declare class Dc {
|
|
1385
|
+
_a: Promise<void>;
|
|
1386
|
+
ma: any[];
|
|
1390
1387
|
ga: boolean;
|
|
1391
|
-
ya:
|
|
1392
|
-
pa: any
|
|
1393
|
-
|
|
1394
|
-
Ea:
|
|
1388
|
+
ya: any[];
|
|
1389
|
+
pa: any;
|
|
1390
|
+
Ta: boolean;
|
|
1391
|
+
Ea: boolean;
|
|
1392
|
+
Ia: any[];
|
|
1393
|
+
cr: Xr;
|
|
1394
|
+
Aa: () => void;
|
|
1395
1395
|
get isShuttingDown(): boolean;
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Adds a new operation to the queue without waiting for it to complete (i.e.
|
|
@@ -1404,30 +1404,30 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Runs the next operation from the retryable queue. If the operation fails,
|
|
1406
1406
|
* reschedules with backoff.
|
|
1407
|
-
*/
|
|
1408
|
-
|
|
1409
|
-
enqueueAfterDelay(t: any, e: any, n: any):
|
|
1410
|
-
|
|
1407
|
+
*/ Pa(): Promise<void>;
|
|
1408
|
+
ba(t: any): Promise<any>;
|
|
1409
|
+
enqueueAfterDelay(t: any, e: any, n: any): xo;
|
|
1410
|
+
Ra(): void;
|
|
1411
1411
|
verifyOperationInProgress(): void;
|
|
1412
1412
|
/**
|
|
1413
1413
|
* Waits until all currently queued tasks are finished executing. Delayed
|
|
1414
1414
|
* operations are not run.
|
|
1415
|
-
*/
|
|
1415
|
+
*/ Va(): Promise<void>;
|
|
1416
1416
|
/**
|
|
1417
1417
|
* For Tests: Determine if a delayed operation with a particular TimerId
|
|
1418
1418
|
* exists.
|
|
1419
|
-
*/
|
|
1419
|
+
*/ Sa(t: any): boolean;
|
|
1420
1420
|
/**
|
|
1421
1421
|
* For Tests: Runs some or all delayed operations early.
|
|
1422
1422
|
*
|
|
1423
1423
|
* @param lastTimerId - Delayed operations up to and including this TimerId
|
|
1424
1424
|
* will be drained. Pass TimerId.All to run all delayed operations.
|
|
1425
1425
|
* @returns a Promise that resolves once all operations have been run.
|
|
1426
|
-
*/
|
|
1426
|
+
*/ Da(t: any): Promise<void>;
|
|
1427
1427
|
/**
|
|
1428
1428
|
* For Tests: Skip all subsequent delays for a timer id.
|
|
1429
|
-
*/
|
|
1430
|
-
/** Called once a DelayedOperation is run or canceled. */
|
|
1429
|
+
*/ Ca(t: any): void;
|
|
1430
|
+
/** Called once a DelayedOperation is run or canceled. */ va(t: any): void;
|
|
1431
1431
|
}
|
|
1432
1432
|
/**
|
|
1433
1433
|
* @license
|
|
@@ -1444,7 +1444,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1444
1444
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1445
1445
|
* See the License for the specific language governing permissions and
|
|
1446
1446
|
* limitations under the License.
|
|
1447
|
-
*/ declare class
|
|
1447
|
+
*/ declare class Q {
|
|
1448
1448
|
promise: Promise<any>;
|
|
1449
1449
|
resolve: (value: any) => void;
|
|
1450
1450
|
reject: (reason?: any) => void;
|
|
@@ -1452,12 +1452,12 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1454
1454
|
* classes.
|
|
1455
|
-
*/ declare class
|
|
1455
|
+
*/ declare class ou {
|
|
1456
1456
|
constructor(t: any, e: any, n: any);
|
|
1457
1457
|
databaseId: any;
|
|
1458
1458
|
ignoreUndefinedProperties: any;
|
|
1459
1459
|
N: any;
|
|
1460
|
-
/** Creates a new top-level parse context. */
|
|
1460
|
+
/** Creates a new top-level parse context. */ Ka(t: any, e: any, n: any, s?: boolean): ru;
|
|
1461
1461
|
}
|
|
1462
1462
|
/**
|
|
1463
1463
|
* @license
|
|
@@ -1478,7 +1478,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1478
1478
|
/**
|
|
1479
1479
|
* Path represents an ordered sequence of string segments.
|
|
1480
1480
|
*/
|
|
1481
|
-
declare class
|
|
1481
|
+
declare class ut {
|
|
1482
1482
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
1483
1483
|
constructor(t: any, e: any, n: any);
|
|
1484
1484
|
segments: any;
|
|
@@ -1499,67 +1499,67 @@ declare class ct {
|
|
|
1499
1499
|
forEach(t: any): void;
|
|
1500
1500
|
toArray(): any;
|
|
1501
1501
|
}
|
|
1502
|
-
declare class
|
|
1502
|
+
declare class du extends Zc {
|
|
1503
1503
|
constructor(t: any, e: any);
|
|
1504
|
-
|
|
1505
|
-
_toFieldTransform(t: any):
|
|
1504
|
+
ja: any;
|
|
1505
|
+
_toFieldTransform(t: any): je;
|
|
1506
1506
|
isEqual(t: any): boolean;
|
|
1507
1507
|
}
|
|
1508
|
-
declare class
|
|
1508
|
+
declare class fu extends Zc {
|
|
1509
1509
|
constructor(t: any, e: any);
|
|
1510
|
-
|
|
1511
|
-
_toFieldTransform(t: any):
|
|
1510
|
+
ja: any;
|
|
1511
|
+
_toFieldTransform(t: any): je;
|
|
1512
1512
|
isEqual(t: any): boolean;
|
|
1513
1513
|
}
|
|
1514
|
-
declare class
|
|
1514
|
+
declare class uu extends Zc {
|
|
1515
1515
|
_toFieldTransform(t: any): null;
|
|
1516
1516
|
isEqual(t: any): boolean;
|
|
1517
1517
|
}
|
|
1518
|
-
declare class
|
|
1518
|
+
declare class Hu extends Fu {
|
|
1519
1519
|
constructor(t: any, e: any, n: any);
|
|
1520
1520
|
type: any;
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
_apply(t: any):
|
|
1521
|
+
Xa: any;
|
|
1522
|
+
Za: any;
|
|
1523
|
+
_apply(t: any): Ac;
|
|
1524
1524
|
}
|
|
1525
|
-
declare class
|
|
1525
|
+
declare class wu extends Zc {
|
|
1526
1526
|
constructor(t: any, e: any);
|
|
1527
|
-
|
|
1528
|
-
_toFieldTransform(t: any):
|
|
1527
|
+
Qa: any;
|
|
1528
|
+
_toFieldTransform(t: any): je;
|
|
1529
1529
|
isEqual(t: any): boolean;
|
|
1530
1530
|
}
|
|
1531
|
-
declare class
|
|
1531
|
+
declare class Ku extends Fu {
|
|
1532
1532
|
constructor(t: any, e: any, n: any);
|
|
1533
1533
|
type: any;
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
_apply(t: any):
|
|
1534
|
+
Ja: any;
|
|
1535
|
+
Ya: any;
|
|
1536
|
+
_apply(t: any): Ac;
|
|
1537
1537
|
}
|
|
1538
|
-
declare class
|
|
1538
|
+
declare class Uu extends Fu {
|
|
1539
1539
|
constructor(t: any, e: any);
|
|
1540
|
-
Ka: any;
|
|
1541
1540
|
Wa: any;
|
|
1541
|
+
Ha: any;
|
|
1542
1542
|
type: string;
|
|
1543
|
-
_apply(t: any):
|
|
1543
|
+
_apply(t: any): Ac;
|
|
1544
1544
|
}
|
|
1545
|
-
declare class
|
|
1546
|
-
_toFieldTransform(t: any):
|
|
1545
|
+
declare class lu extends Zc {
|
|
1546
|
+
_toFieldTransform(t: any): je;
|
|
1547
1547
|
isEqual(t: any): boolean;
|
|
1548
1548
|
}
|
|
1549
|
-
declare class
|
|
1549
|
+
declare class Wu extends Fu {
|
|
1550
1550
|
constructor(t: any, e: any, n: any);
|
|
1551
1551
|
type: any;
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
_apply(t: any):
|
|
1552
|
+
Xa: any;
|
|
1553
|
+
Za: any;
|
|
1554
|
+
_apply(t: any): Ac;
|
|
1555
1555
|
}
|
|
1556
|
-
declare class
|
|
1556
|
+
declare class Lu extends Fu {
|
|
1557
1557
|
constructor(t: any, e: any, n: any);
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1558
|
+
Wa: any;
|
|
1559
|
+
Ga: any;
|
|
1560
|
+
za: any;
|
|
1561
1561
|
type: string;
|
|
1562
|
-
_apply(t: any):
|
|
1562
|
+
_apply(t: any): Ac;
|
|
1563
1563
|
}
|
|
1564
1564
|
/**
|
|
1565
1565
|
* @license
|
|
@@ -1582,7 +1582,7 @@ declare class Mu extends Ou {
|
|
|
1582
1582
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1583
1583
|
* defaults can be supplied and the value can be checked for equality.
|
|
1584
1584
|
*/
|
|
1585
|
-
declare class
|
|
1585
|
+
declare class pc {
|
|
1586
1586
|
constructor(t: any);
|
|
1587
1587
|
host: any;
|
|
1588
1588
|
ssl: any;
|
|
@@ -1606,7 +1606,7 @@ declare class yc {
|
|
|
1606
1606
|
* base delay. This prevents clients from accidentally synchronizing their
|
|
1607
1607
|
* delays causing spikes of load to the backend.
|
|
1608
1608
|
*/
|
|
1609
|
-
declare class
|
|
1609
|
+
declare class Xr {
|
|
1610
1610
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
1611
1611
|
Oe: any;
|
|
1612
1612
|
timerId: any;
|
|
@@ -1664,7 +1664,7 @@ declare class Yr {
|
|
|
1664
1664
|
* in newer versions of TypeScript defines `finally`, which is not available in
|
|
1665
1665
|
* IE.
|
|
1666
1666
|
*/
|
|
1667
|
-
declare class
|
|
1667
|
+
declare class xo {
|
|
1668
1668
|
/**
|
|
1669
1669
|
* Creates and returns a DelayedOperation that has been scheduled to be
|
|
1670
1670
|
* executed on the provided asyncQueue after the provided delayMs.
|
|
@@ -1678,14 +1678,14 @@ declare class No {
|
|
|
1678
1678
|
* from its delayedOperations list.
|
|
1679
1679
|
* PORTING NOTE: This exists to prevent making removeDelayedOperation() and
|
|
1680
1680
|
* the DelayedOperation class public.
|
|
1681
|
-
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any):
|
|
1681
|
+
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): xo;
|
|
1682
1682
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1683
1683
|
asyncQueue: any;
|
|
1684
1684
|
timerId: any;
|
|
1685
1685
|
targetTimeMs: any;
|
|
1686
1686
|
op: any;
|
|
1687
1687
|
removalCallback: any;
|
|
1688
|
-
deferred:
|
|
1688
|
+
deferred: Q;
|
|
1689
1689
|
then: <TResult1 = any, TResult2 = never>(onfulfilled?: ((value: any) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
|
|
1690
1690
|
/**
|
|
1691
1691
|
* Starts the timer. This is called immediately after construction by
|
|
@@ -1706,7 +1706,7 @@ declare class No {
|
|
|
1706
1706
|
handleDelayElapsed(): void;
|
|
1707
1707
|
clearTimeout(): void;
|
|
1708
1708
|
}
|
|
1709
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1709
|
+
/** A "context" object passed around while parsing user data. */ declare class ru {
|
|
1710
1710
|
/**
|
|
1711
1711
|
* Initializes a ParseContext with the given source and path.
|
|
1712
1712
|
*
|
|
@@ -1733,15 +1733,15 @@ declare class No {
|
|
|
1733
1733
|
fieldTransforms: any;
|
|
1734
1734
|
fieldMask: any;
|
|
1735
1735
|
get path(): any;
|
|
1736
|
-
get
|
|
1737
|
-
/** Returns a new context with the specified settings overwritten. */
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1736
|
+
get xa(): any;
|
|
1737
|
+
/** Returns a new context with the specified settings overwritten. */ ka(t: any): ru;
|
|
1738
|
+
$a(t: any): ru;
|
|
1739
|
+
Ma(t: any): ru;
|
|
1740
|
+
La(t: any): ru;
|
|
1741
|
+
Ba(t: any): j;
|
|
1742
1742
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1743
|
-
|
|
1744
|
-
|
|
1743
|
+
Na(): void;
|
|
1744
|
+
Fa(t: any): void;
|
|
1745
1745
|
}
|
|
1746
1746
|
/**
|
|
1747
1747
|
* @license
|
|
@@ -1759,9 +1759,9 @@ declare class No {
|
|
|
1759
1759
|
* See the License for the specific language governing permissions and
|
|
1760
1760
|
* limitations under the License.
|
|
1761
1761
|
*/
|
|
1762
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1762
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class je {
|
|
1763
1763
|
constructor(t: any, e: any);
|
|
1764
1764
|
field: any;
|
|
1765
1765
|
transform: any;
|
|
1766
1766
|
}
|
|
1767
|
-
export {
|
|
1767
|
+
export { nh as AbstractUserDataWriter, Xc as Bytes, xc as CACHE_SIZE_UNLIMITED, Rc as CollectionReference, Ic as DocumentReference, Cu as DocumentSnapshot, Jc as FieldPath, Zc as FieldValue, kc as Firestore, j as FirestoreError, tu as GeoPoint, Nc as LoadBundleTask, Ac as Query, Fu as QueryConstraint, Nu as QueryDocumentSnapshot, xu as QuerySnapshot, Du as SnapshotMetadata, it as Timestamp, Ih as Transaction, rh as WriteBatch, hc as _DatabaseId, Pt as _DocumentKey, G as _EmptyCredentialsProvider, ft as _FieldPath, gc as _cast, U as _debugAssert, wt as _isBase64Available, F as _logWarn, dc as _validateIsNotUsedTogether, gh as addDoc, vh as arrayRemove, Ph as arrayUnion, qc as clearIndexedDbPersistence, bc as collection, Pc as collectionGroup, Ec as connectFirestoreEmulator, mh as deleteDoc, Rh as deleteField, Qc as disableNetwork, vc as doc, Yc as documentId, Lc as enableIndexedDbPersistence, Bc as enableMultiTabIndexedDbPersistence, jc as enableNetwork, Yu as endAt, Ju as endBefore, Fc as ensureFirestoreConfigured, Th as executeWrite, ah as getDoc, uh as getDocFromCache, hh as getDocFromServer, lh as getDocs, fh as getDocsFromCache, dh as getDocsFromServer, Oc as getFirestore, Vh as increment, $c as initializeFirestore, ju as limit, Qu as limitToLast, Gc as loadBundle, zc as namedQuery, yh as onSnapshot, ph as onSnapshotsInSync, qu as orderBy, Mu as query, Sc as queryEqual, Vc as refEqual, Ah as runTransaction, bh as serverTimestamp, wh as setDoc, k as setLogLevel, $u as snapshotEqual, zu as startAfter, Gu as startAt, Wc as terminate, _h as updateDoc, Kc as waitForPendingWrites, Bu as where, Sh as writeBatch };
|