@firebase/firestore 3.5.0-canary.ee871fc0b → 3.5.0-canary.fdd4ab464
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/database.d.ts +9 -9
- package/dist/firestore/src/lite-api/database.d.ts +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.esm2017.js +2830 -2823
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +2785 -2778
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +11 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +12 -4
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +2845 -2838
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +10 -10
- package/dist/lite/firestore/src/api/database.d.ts +9 -9
- package/dist/lite/firestore/src/lite-api/database.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +898 -891
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +854 -847
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +11 -3
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +12 -4
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +905 -898
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +113 -113
- package/dist/lite/packages/firestore/src/api/database.d.ts +9 -9
- package/dist/lite/packages/firestore/src/lite-api/database.d.ts +1 -1
- package/dist/packages/firestore/dist/index.esm2017.d.ts +164 -164
- package/dist/packages/firestore/src/api/database.d.ts +9 -9
- package/dist/packages/firestore/src/lite-api/database.d.ts +1 -1
- package/dist/private.d.ts +8 -8
- package/package.json +9 -9
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
/**
|
|
34
34
|
* Represents an aggregation that can be performed by Firestore.
|
|
35
35
|
*/
|
|
36
|
-
declare class
|
|
36
|
+
declare class yn {
|
|
37
37
|
/** A type string to uniquely identify instances of this class. */
|
|
38
38
|
type: string;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* The results of executing an aggregation query.
|
|
42
|
-
*/ declare class
|
|
42
|
+
*/ declare class _n {
|
|
43
43
|
/** @hideconstructor */
|
|
44
44
|
constructor(t: any, e: any);
|
|
45
45
|
_data: any;
|
|
@@ -76,18 +76,18 @@ declare class pn {
|
|
|
76
76
|
*/
|
|
77
77
|
/**
|
|
78
78
|
* An immutable object representing an array of bytes.
|
|
79
|
-
*/ declare class
|
|
79
|
+
*/ declare class Vn {
|
|
80
80
|
/**
|
|
81
81
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
82
82
|
* bytes.
|
|
83
83
|
*
|
|
84
84
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
85
|
-
*/ static fromBase64String(t: any):
|
|
85
|
+
*/ static fromBase64String(t: any): Vn;
|
|
86
86
|
/**
|
|
87
87
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
88
88
|
*
|
|
89
89
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
90
|
-
*/ static fromUint8Array(t: any):
|
|
90
|
+
*/ static fromUint8Array(t: any): Vn;
|
|
91
91
|
/** @hideconstructor */
|
|
92
92
|
constructor(t: any);
|
|
93
93
|
_byteString: any;
|
|
@@ -116,7 +116,7 @@ declare class pn {
|
|
|
116
116
|
/**
|
|
117
117
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
118
118
|
* document references, and querying for documents (using {@link query}).
|
|
119
|
-
*/ declare class
|
|
119
|
+
*/ declare class En extends bn {
|
|
120
120
|
_path: any;
|
|
121
121
|
/** The collection's identifier. */ get id(): any;
|
|
122
122
|
/**
|
|
@@ -126,7 +126,7 @@ declare class pn {
|
|
|
126
126
|
/**
|
|
127
127
|
* A reference to the containing `DocumentReference` if this is a
|
|
128
128
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
129
|
-
*/ get parent():
|
|
129
|
+
*/ get parent(): vn | null;
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
132
|
* @license
|
|
@@ -148,7 +148,7 @@ declare class pn {
|
|
|
148
148
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
149
149
|
* and can be used to write, read, or listen to the location. The document at
|
|
150
150
|
* the referenced location may or may not exist.
|
|
151
|
-
*/ declare class
|
|
151
|
+
*/ declare class vn {
|
|
152
152
|
/** @hideconstructor */
|
|
153
153
|
constructor(t: any, e: any, n: any);
|
|
154
154
|
converter: any;
|
|
@@ -166,8 +166,8 @@ declare class pn {
|
|
|
166
166
|
*/ get path(): any;
|
|
167
167
|
/**
|
|
168
168
|
* The collection this `DocumentReference` belongs to.
|
|
169
|
-
*/ get parent():
|
|
170
|
-
withConverter(t: any):
|
|
169
|
+
*/ get parent(): En;
|
|
170
|
+
withConverter(t: any): vn;
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* @license
|
|
@@ -193,7 +193,7 @@ declare class pn {
|
|
|
193
193
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
194
194
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
195
195
|
* explicitly verify a document's existence.
|
|
196
|
-
*/ declare class
|
|
196
|
+
*/ declare class ir {
|
|
197
197
|
/** @hideconstructor protected */
|
|
198
198
|
constructor(t: any, e: any, n: any, r: any, s: any);
|
|
199
199
|
_firestore: any;
|
|
@@ -204,7 +204,7 @@ declare class pn {
|
|
|
204
204
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
205
205
|
/**
|
|
206
206
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
207
|
-
*/ get ref():
|
|
207
|
+
*/ get ref(): vn;
|
|
208
208
|
/**
|
|
209
209
|
* Signals whether or not the document at the snapshot's location exists.
|
|
210
210
|
*
|
|
@@ -251,7 +251,7 @@ declare class pn {
|
|
|
251
251
|
*
|
|
252
252
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
253
253
|
* name is provided, the path will point to a nested field in a document.
|
|
254
|
-
*/ declare class
|
|
254
|
+
*/ declare class Nn {
|
|
255
255
|
/**
|
|
256
256
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
257
257
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -259,7 +259,7 @@ declare class pn {
|
|
|
259
259
|
* @param fieldNames - A list of field names.
|
|
260
260
|
*/
|
|
261
261
|
constructor(...t: any[]);
|
|
262
|
-
_internalPath:
|
|
262
|
+
_internalPath: nt;
|
|
263
263
|
/**
|
|
264
264
|
* Returns true if this `FieldPath` is equal to the provided one.
|
|
265
265
|
*
|
|
@@ -286,7 +286,7 @@ declare class pn {
|
|
|
286
286
|
/**
|
|
287
287
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
288
288
|
* or `update()`.
|
|
289
|
-
*/ declare class
|
|
289
|
+
*/ declare class $n {
|
|
290
290
|
/**
|
|
291
291
|
* @param _methodName - The public API endpoint that returns this class.
|
|
292
292
|
* @hideconstructor
|
|
@@ -314,7 +314,7 @@ declare class pn {
|
|
|
314
314
|
* The Cloud Firestore service interface.
|
|
315
315
|
*
|
|
316
316
|
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
317
|
-
*/ declare class
|
|
317
|
+
*/ declare class fn {
|
|
318
318
|
/** @hideconstructor */
|
|
319
319
|
constructor(t: any, e: any, n: any, r: any);
|
|
320
320
|
_authCredentials: any;
|
|
@@ -326,7 +326,7 @@ declare class pn {
|
|
|
326
326
|
*/
|
|
327
327
|
type: string;
|
|
328
328
|
_persistenceKey: string;
|
|
329
|
-
_settings:
|
|
329
|
+
_settings: ln;
|
|
330
330
|
_settingsFrozen: boolean;
|
|
331
331
|
/**
|
|
332
332
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -335,14 +335,14 @@ declare class pn {
|
|
|
335
335
|
get _initialized(): boolean;
|
|
336
336
|
get _terminated(): boolean;
|
|
337
337
|
_setSettings(t: any): void;
|
|
338
|
-
_getSettings():
|
|
339
|
-
_freezeSettings():
|
|
338
|
+
_getSettings(): ln;
|
|
339
|
+
_freezeSettings(): ln;
|
|
340
340
|
_delete(): Promise<void>;
|
|
341
341
|
_terminateTask: Promise<void> | undefined;
|
|
342
342
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
343
343
|
app: any;
|
|
344
344
|
databaseId: any;
|
|
345
|
-
settings:
|
|
345
|
+
settings: ln;
|
|
346
346
|
};
|
|
347
347
|
/**
|
|
348
348
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -352,7 +352,7 @@ declare class pn {
|
|
|
352
352
|
* Only ever called once.
|
|
353
353
|
*/ _terminate(): Promise<void>;
|
|
354
354
|
}
|
|
355
|
-
/** An error returned by a Firestore operation. */ declare class
|
|
355
|
+
/** An error returned by a Firestore operation. */ declare class U extends c {
|
|
356
356
|
/** @hideconstructor */
|
|
357
357
|
constructor(t: any, e: any);
|
|
358
358
|
}
|
|
@@ -378,7 +378,7 @@ declare class pn {
|
|
|
378
378
|
*
|
|
379
379
|
* Latitude values are in the range of [-90, 90].
|
|
380
380
|
* Longitude values are in the range of [-180, 180].
|
|
381
|
-
*/ declare class
|
|
381
|
+
*/ declare class xn {
|
|
382
382
|
/**
|
|
383
383
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
384
384
|
* longitude values.
|
|
@@ -412,7 +412,7 @@ declare class pn {
|
|
|
412
412
|
/**
|
|
413
413
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
414
414
|
* construct refined `Query` objects by adding filters and ordering.
|
|
415
|
-
*/ declare class
|
|
415
|
+
*/ declare class bn {
|
|
416
416
|
/** @hideconstructor protected */
|
|
417
417
|
constructor(t: any, e: any, n: any);
|
|
418
418
|
converter: any;
|
|
@@ -420,7 +420,7 @@ declare class pn {
|
|
|
420
420
|
/** The type of this Firestore reference. */
|
|
421
421
|
type: string;
|
|
422
422
|
firestore: any;
|
|
423
|
-
withConverter(t: any):
|
|
423
|
+
withConverter(t: any): bn;
|
|
424
424
|
}
|
|
425
425
|
/**
|
|
426
426
|
* @license
|
|
@@ -446,7 +446,7 @@ declare class pn {
|
|
|
446
446
|
* can then be passed to {@link query} to create a new query instance that
|
|
447
447
|
* also contains this `QueryConstraint`.
|
|
448
448
|
*/
|
|
449
|
-
declare class
|
|
449
|
+
declare class hr {
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -458,7 +458,7 @@ declare class ar {
|
|
|
458
458
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
459
459
|
* `exists` property will always be true and `data()` will never return
|
|
460
460
|
* 'undefined'.
|
|
461
|
-
*/ declare class
|
|
461
|
+
*/ declare class or extends ir {
|
|
462
462
|
}
|
|
463
463
|
/**
|
|
464
464
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -466,7 +466,7 @@ declare class ar {
|
|
|
466
466
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
467
467
|
* number of documents can be determined via the `empty` and `size`
|
|
468
468
|
* properties.
|
|
469
|
-
*/ declare class
|
|
469
|
+
*/ declare class ur {
|
|
470
470
|
/** @hideconstructor */
|
|
471
471
|
constructor(t: any, e: any);
|
|
472
472
|
_docs: any;
|
|
@@ -512,19 +512,19 @@ declare class ar {
|
|
|
512
512
|
* For examples and further specifications, refer to the
|
|
513
513
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
514
514
|
*/
|
|
515
|
-
declare class
|
|
515
|
+
declare class bt {
|
|
516
516
|
/**
|
|
517
517
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
518
518
|
*
|
|
519
519
|
* @returns a new timestamp representing the current date.
|
|
520
|
-
*/ static now():
|
|
520
|
+
*/ static now(): bt;
|
|
521
521
|
/**
|
|
522
522
|
* Creates a new timestamp from the given date.
|
|
523
523
|
*
|
|
524
524
|
* @param date - The date to initialize the `Timestamp` from.
|
|
525
525
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
526
526
|
* date.
|
|
527
|
-
*/ static fromDate(t: any):
|
|
527
|
+
*/ static fromDate(t: any): bt;
|
|
528
528
|
/**
|
|
529
529
|
* Creates a new timestamp from the given number of milliseconds.
|
|
530
530
|
*
|
|
@@ -532,7 +532,7 @@ declare class vt {
|
|
|
532
532
|
* 1970-01-01T00:00:00Z.
|
|
533
533
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
534
534
|
* number of milliseconds.
|
|
535
|
-
*/ static fromMillis(t: any):
|
|
535
|
+
*/ static fromMillis(t: any): bt;
|
|
536
536
|
/**
|
|
537
537
|
* Creates a new timestamp.
|
|
538
538
|
*
|
|
@@ -579,26 +579,26 @@ declare class vt {
|
|
|
579
579
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
580
580
|
*/ valueOf(): string;
|
|
581
581
|
}
|
|
582
|
-
declare class
|
|
582
|
+
declare class Zr {
|
|
583
583
|
/** @hideconstructor */
|
|
584
584
|
constructor(t: any, e: any);
|
|
585
585
|
_firestore: any;
|
|
586
586
|
_transaction: any;
|
|
587
|
-
_dataReader:
|
|
587
|
+
_dataReader: Cn;
|
|
588
588
|
/**
|
|
589
589
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
590
590
|
*
|
|
591
591
|
* @param documentRef - A reference to the document to be read.
|
|
592
592
|
* @returns A `DocumentSnapshot` with the read data.
|
|
593
593
|
*/ get(t: any): any;
|
|
594
|
-
set(t: any, e: any, n: any):
|
|
595
|
-
update(t: any, e: any, n: any, ...r: any[]):
|
|
594
|
+
set(t: any, e: any, n: any): Zr;
|
|
595
|
+
update(t: any, e: any, n: any, ...r: any[]): Zr;
|
|
596
596
|
/**
|
|
597
597
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
598
598
|
*
|
|
599
599
|
* @param documentRef - A reference to the document to be deleted.
|
|
600
600
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
601
|
-
*/ delete(t: any):
|
|
601
|
+
*/ delete(t: any): Zr;
|
|
602
602
|
}
|
|
603
603
|
/**
|
|
604
604
|
* @license
|
|
@@ -623,22 +623,22 @@ declare class Xr {
|
|
|
623
623
|
* provides methods for adding writes to the write batch. None of the writes
|
|
624
624
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
625
625
|
* called.
|
|
626
|
-
*/ declare class
|
|
626
|
+
*/ declare class Qr {
|
|
627
627
|
/** @hideconstructor */
|
|
628
628
|
constructor(t: any, e: any);
|
|
629
629
|
_firestore: any;
|
|
630
630
|
_commitHandler: any;
|
|
631
631
|
_mutations: any[];
|
|
632
632
|
_committed: boolean;
|
|
633
|
-
_dataReader:
|
|
634
|
-
set(t: any, e: any, n: any):
|
|
635
|
-
update(t: any, e: any, n: any, ...r: any[]):
|
|
633
|
+
_dataReader: Cn;
|
|
634
|
+
set(t: any, e: any, n: any): Qr;
|
|
635
|
+
update(t: any, e: any, n: any, ...r: any[]): Qr;
|
|
636
636
|
/**
|
|
637
637
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
638
638
|
*
|
|
639
639
|
* @param documentRef - A reference to the document to be deleted.
|
|
640
640
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
641
|
-
*/ delete(t: any):
|
|
641
|
+
*/ delete(t: any): Qr;
|
|
642
642
|
/**
|
|
643
643
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
644
644
|
*
|
|
@@ -667,7 +667,7 @@ declare class Xr {
|
|
|
667
667
|
* @throws Error - If the provided input is not a valid Firestore document.
|
|
668
668
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
669
669
|
* newly created document after it has been written to the backend.
|
|
670
|
-
*/ declare function
|
|
670
|
+
*/ declare function Or(t: any, e: any): Promise<vn>;
|
|
671
671
|
/**
|
|
672
672
|
* Compares two `AggregateQuerySnapshot` instances for equality.
|
|
673
673
|
*
|
|
@@ -679,7 +679,7 @@ declare class Xr {
|
|
|
679
679
|
*
|
|
680
680
|
* @returns `true` if the objects are "equal", as defined above, or `false`
|
|
681
681
|
* otherwise.
|
|
682
|
-
*/ declare function
|
|
682
|
+
*/ declare function Cr(t: any, e: any): boolean;
|
|
683
683
|
/**
|
|
684
684
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
685
685
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -690,7 +690,7 @@ declare class Xr {
|
|
|
690
690
|
* @param elements - The elements to remove from the array.
|
|
691
691
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
692
692
|
* `updateDoc()`
|
|
693
|
-
*/ declare function
|
|
693
|
+
*/ declare function jr(...t: any[]): zn;
|
|
694
694
|
/**
|
|
695
695
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
696
696
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -702,8 +702,8 @@ declare class Xr {
|
|
|
702
702
|
* @param elements - The elements to union into the array.
|
|
703
703
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
704
704
|
* `updateDoc()`.
|
|
705
|
-
*/ declare function
|
|
706
|
-
declare function
|
|
705
|
+
*/ declare function Ur(...t: any[]): Qn;
|
|
706
|
+
declare function In(t: any, e: any, ...n: any[]): En;
|
|
707
707
|
/**
|
|
708
708
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
709
709
|
* database that are contained in a collection or subcollection with the
|
|
@@ -714,7 +714,7 @@ declare function En(t: any, e: any, ...n: any[]): bn;
|
|
|
714
714
|
* collection or subcollection with this ID as the last segment of its path
|
|
715
715
|
* will be included. Cannot contain a slash.
|
|
716
716
|
* @returns The created `Query`.
|
|
717
|
-
*/ declare function
|
|
717
|
+
*/ declare function Tn(t: any, e: any): bn;
|
|
718
718
|
/**
|
|
719
719
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
720
720
|
*
|
|
@@ -727,7 +727,7 @@ declare function En(t: any, e: any, ...n: any[]): bn;
|
|
|
727
727
|
* @param port - the emulator port (ex: 9000).
|
|
728
728
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
729
729
|
* Security Rules.
|
|
730
|
-
*/ declare function
|
|
730
|
+
*/ declare function mn(t: any, e: any, n: any, r?: {}): void;
|
|
731
731
|
/**
|
|
732
732
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
733
733
|
*
|
|
@@ -739,7 +739,7 @@ declare function En(t: any, e: any, ...n: any[]): bn;
|
|
|
739
739
|
* @param reference - A reference to the document to delete.
|
|
740
740
|
* @returns A `Promise` resolved once the document has been successfully
|
|
741
741
|
* deleted from the backend.
|
|
742
|
-
*/ declare function
|
|
742
|
+
*/ declare function qr(t: any): Promise<void>;
|
|
743
743
|
/**
|
|
744
744
|
* @license
|
|
745
745
|
* Copyright 2020 Google LLC
|
|
@@ -759,14 +759,14 @@ declare function En(t: any, e: any, ...n: any[]): bn;
|
|
|
759
759
|
/**
|
|
760
760
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
761
761
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
762
|
-
*/ declare function
|
|
763
|
-
declare function
|
|
762
|
+
*/ declare function Lr(): Un;
|
|
763
|
+
declare function An(t: any, e: any, ...n: any[]): vn;
|
|
764
764
|
/**
|
|
765
765
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
766
766
|
* It can be used in queries to sort or filter by the document ID.
|
|
767
|
-
*/ declare function
|
|
768
|
-
declare function
|
|
769
|
-
declare function
|
|
767
|
+
*/ declare function Dn(): Nn;
|
|
768
|
+
declare function Tr(...t: any[]): Er;
|
|
769
|
+
declare function Ir(...t: any[]): Er;
|
|
770
770
|
/**
|
|
771
771
|
* @license
|
|
772
772
|
* Copyright 2022 Google LLC
|
|
@@ -796,7 +796,7 @@ declare function Er(...t: any[]): br;
|
|
|
796
796
|
* @returns A Promise that will be resolved with the count; the count can be
|
|
797
797
|
* retrieved from `snapshot.data().count`, where `snapshot` is the
|
|
798
798
|
* `AggregateQuerySnapshot` to which the returned Promise resolves.
|
|
799
|
-
*/ declare function
|
|
799
|
+
*/ declare function kr(t: any): Promise<_n>;
|
|
800
800
|
/**
|
|
801
801
|
* Reads the document referred to by the specified document reference.
|
|
802
802
|
*
|
|
@@ -809,7 +809,7 @@ declare function Er(...t: any[]): br;
|
|
|
809
809
|
* @param reference - The reference of the document to fetch.
|
|
810
810
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the current
|
|
811
811
|
* document contents.
|
|
812
|
-
*/ declare function
|
|
812
|
+
*/ declare function $r(t: any): Promise<ir>;
|
|
813
813
|
/**
|
|
814
814
|
* Executes the query and returns the results as a {@link QuerySnapshot}.
|
|
815
815
|
*
|
|
@@ -821,8 +821,8 @@ declare function Er(...t: any[]): br;
|
|
|
821
821
|
*
|
|
822
822
|
* @param query - The `Query` to execute.
|
|
823
823
|
* @returns A Promise that will be resolved with the results of the query.
|
|
824
|
-
*/ declare function
|
|
825
|
-
declare function
|
|
824
|
+
*/ declare function xr(t: any): Promise<ur>;
|
|
825
|
+
declare function wn(e: any, n: any): import("../../lite").Firestore;
|
|
826
826
|
/**
|
|
827
827
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
828
828
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -841,14 +841,14 @@ declare function dn(e: any, n: any): import("../../lite").Firestore;
|
|
|
841
841
|
* @param n - The value to increment by.
|
|
842
842
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
843
843
|
* `updateDoc()`
|
|
844
|
-
*/ declare function
|
|
845
|
-
declare function
|
|
844
|
+
*/ declare function Br(t: any): Gn;
|
|
845
|
+
declare function dn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
846
846
|
/**
|
|
847
847
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
848
848
|
*
|
|
849
849
|
* @param limit - The maximum number of items to return.
|
|
850
850
|
* @returns The created {@link Query}.
|
|
851
|
-
*/ declare function
|
|
851
|
+
*/ declare function yr(t: any): pr;
|
|
852
852
|
/**
|
|
853
853
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
854
854
|
*
|
|
@@ -857,7 +857,7 @@ declare function fn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
857
857
|
*
|
|
858
858
|
* @param limit - The maximum number of items to return.
|
|
859
859
|
* @returns The created {@link Query}.
|
|
860
|
-
*/ declare function
|
|
860
|
+
*/ declare function _r(t: any): pr;
|
|
861
861
|
/**
|
|
862
862
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
863
863
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -866,7 +866,7 @@ declare function fn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
866
866
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
867
867
|
* not specified, order will be ascending.
|
|
868
868
|
* @returns The created {@link Query}.
|
|
869
|
-
*/ declare function
|
|
869
|
+
*/ declare function mr(t: any, e?: string): wr;
|
|
870
870
|
/**
|
|
871
871
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
872
872
|
* additional query constraints.
|
|
@@ -875,7 +875,7 @@ declare function fn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
875
875
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
876
876
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
877
877
|
* existing or new constraints.
|
|
878
|
-
*/ declare function
|
|
878
|
+
*/ declare function lr(t: any, ...e: any[]): any;
|
|
879
879
|
/**
|
|
880
880
|
* Returns true if the provided queries point to the same collection and apply
|
|
881
881
|
* the same constraints.
|
|
@@ -884,7 +884,7 @@ declare function fn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
884
884
|
* @param right - A `Query` to compare.
|
|
885
885
|
* @returns true if the references point to the same location in the same
|
|
886
886
|
* Firestore database.
|
|
887
|
-
*/ declare function
|
|
887
|
+
*/ declare function Pn(t: any, e: any): boolean;
|
|
888
888
|
/**
|
|
889
889
|
* Returns true if the provided references are equal.
|
|
890
890
|
*
|
|
@@ -892,7 +892,7 @@ declare function fn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
892
892
|
* @param right - A reference to compare.
|
|
893
893
|
* @returns true if the references point to the same location in the same
|
|
894
894
|
* Firestore database.
|
|
895
|
-
*/ declare function
|
|
895
|
+
*/ declare function Rn(t: any, e: any): boolean;
|
|
896
896
|
/**
|
|
897
897
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
898
898
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -911,12 +911,12 @@ declare function fn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
911
911
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
912
912
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
913
913
|
* rejected promise with the corresponding failure error is returned.
|
|
914
|
-
*/ declare function
|
|
914
|
+
*/ declare function ts(t: any, e: any, n: any): Promise<any>;
|
|
915
915
|
/**
|
|
916
916
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
917
917
|
* include a server-generated timestamp in the written data.
|
|
918
|
-
*/ declare function
|
|
919
|
-
declare function
|
|
918
|
+
*/ declare function Mr(): Bn;
|
|
919
|
+
declare function Fr(t: any, e: any, n: any): Promise<void>;
|
|
920
920
|
/**
|
|
921
921
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
922
922
|
*
|
|
@@ -929,16 +929,16 @@ declare function xr(t: any, e: any, n: any): Promise<void>;
|
|
|
929
929
|
* <li>`error` to log errors only.</li>
|
|
930
930
|
* <li><code>`silent` to turn off logging.</li>
|
|
931
931
|
* </ul>
|
|
932
|
-
*/ declare function
|
|
932
|
+
*/ declare function p(t: any): void;
|
|
933
933
|
/**
|
|
934
934
|
* Returns true if the provided snapshots are equal.
|
|
935
935
|
*
|
|
936
936
|
* @param left - A snapshot to compare.
|
|
937
937
|
* @param right - A snapshot to compare.
|
|
938
938
|
* @returns true if the snapshots are equal.
|
|
939
|
-
*/ declare function
|
|
940
|
-
declare function
|
|
941
|
-
declare function
|
|
939
|
+
*/ declare function cr(t: any, e: any): any;
|
|
940
|
+
declare function br(...t: any[]): gr;
|
|
941
|
+
declare function vr(...t: any[]): gr;
|
|
942
942
|
/**
|
|
943
943
|
* Terminates the provided `Firestore` instance.
|
|
944
944
|
*
|
|
@@ -958,8 +958,8 @@ declare function gr(...t: any[]): _r;
|
|
|
958
958
|
* @param firestore - The `Firestore` instance to terminate.
|
|
959
959
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
960
960
|
* terminated.
|
|
961
|
-
*/ declare function
|
|
962
|
-
declare function
|
|
961
|
+
*/ declare function pn(t: any): any;
|
|
962
|
+
declare function Sr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
963
963
|
/**
|
|
964
964
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
965
965
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -970,7 +970,7 @@ declare function Fr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
970
970
|
* "<=", "!=").
|
|
971
971
|
* @param value - The value for comparison
|
|
972
972
|
* @returns The created {@link Query}.
|
|
973
|
-
*/ declare function
|
|
973
|
+
*/ declare function dr(t: any, e: any, n: any): fr;
|
|
974
974
|
/**
|
|
975
975
|
* Creates a write batch, used for performing multiple writes as a single
|
|
976
976
|
* atomic operation. The maximum number of writes allowed in a single WriteBatch
|
|
@@ -983,18 +983,18 @@ declare function Fr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
983
983
|
*
|
|
984
984
|
* @returns A `WriteBatch` that can be used to atomically execute multiple
|
|
985
985
|
* writes.
|
|
986
|
-
*/ declare function
|
|
986
|
+
*/ declare function Gr(t: any): Qr;
|
|
987
987
|
/**
|
|
988
988
|
* A dot-separated path for navigating sub-objects within a document.
|
|
989
989
|
* @internal
|
|
990
|
-
*/ declare class
|
|
990
|
+
*/ declare class nt extends Z {
|
|
991
991
|
/**
|
|
992
992
|
* Returns true if the string could be used as a segment in a field path
|
|
993
993
|
* without escaping.
|
|
994
994
|
*/ static isValidIdentifier(t: any): boolean;
|
|
995
995
|
/**
|
|
996
996
|
* The field designating the key of a document.
|
|
997
|
-
*/ static keyField():
|
|
997
|
+
*/ static keyField(): nt;
|
|
998
998
|
/**
|
|
999
999
|
* Parses a field string from the given server-formatted string.
|
|
1000
1000
|
*
|
|
@@ -1004,9 +1004,9 @@ declare function Fr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
1004
1004
|
*
|
|
1005
1005
|
* TODO(b/37244157): we should make this more strict. Right now, it allows
|
|
1006
1006
|
* non-identifier path components, even if they aren't escaped.
|
|
1007
|
-
*/ static fromServerFormat(t: any):
|
|
1008
|
-
static emptyPath():
|
|
1009
|
-
construct(t: any, e: any, n: any):
|
|
1007
|
+
*/ static fromServerFormat(t: any): nt;
|
|
1008
|
+
static emptyPath(): nt;
|
|
1009
|
+
construct(t: any, e: any, n: any): nt;
|
|
1010
1010
|
canonicalString(): any;
|
|
1011
1011
|
toString(): any;
|
|
1012
1012
|
/**
|
|
@@ -1022,7 +1022,7 @@ declare function Fr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
1022
1022
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1023
1023
|
* defaults can be supplied and the value can be checked for equality.
|
|
1024
1024
|
*/
|
|
1025
|
-
declare class
|
|
1025
|
+
declare class ln {
|
|
1026
1026
|
constructor(t: any);
|
|
1027
1027
|
host: any;
|
|
1028
1028
|
ssl: any;
|
|
@@ -1038,79 +1038,79 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1040
1040
|
* classes.
|
|
1041
|
-
*/ declare class
|
|
1041
|
+
*/ declare class Cn {
|
|
1042
1042
|
constructor(t: any, e: any, n: any);
|
|
1043
1043
|
databaseId: any;
|
|
1044
1044
|
ignoreUndefinedProperties: any;
|
|
1045
1045
|
L: any;
|
|
1046
|
-
/** Creates a new top-level parse context. */ wt(t: any, e: any, n: any, r?: boolean):
|
|
1046
|
+
/** Creates a new top-level parse context. */ wt(t: any, e: any, n: any, r?: boolean): kn;
|
|
1047
1047
|
}
|
|
1048
|
-
declare class
|
|
1048
|
+
declare class zn extends $n {
|
|
1049
1049
|
constructor(t: any, e: any);
|
|
1050
1050
|
yt: any;
|
|
1051
|
-
_toFieldTransform(t: any):
|
|
1051
|
+
_toFieldTransform(t: any): Pe;
|
|
1052
1052
|
isEqual(t: any): boolean;
|
|
1053
1053
|
}
|
|
1054
|
-
declare class
|
|
1054
|
+
declare class Qn extends $n {
|
|
1055
1055
|
constructor(t: any, e: any);
|
|
1056
1056
|
yt: any;
|
|
1057
|
-
_toFieldTransform(t: any):
|
|
1057
|
+
_toFieldTransform(t: any): Pe;
|
|
1058
1058
|
isEqual(t: any): boolean;
|
|
1059
1059
|
}
|
|
1060
|
-
declare class
|
|
1060
|
+
declare class Un extends $n {
|
|
1061
1061
|
_toFieldTransform(t: any): null;
|
|
1062
1062
|
isEqual(t: any): boolean;
|
|
1063
1063
|
}
|
|
1064
|
-
declare class
|
|
1064
|
+
declare class Er extends hr {
|
|
1065
1065
|
constructor(t: any, e: any, n: any);
|
|
1066
1066
|
type: any;
|
|
1067
1067
|
At: any;
|
|
1068
1068
|
Rt: any;
|
|
1069
|
-
_apply(t: any):
|
|
1069
|
+
_apply(t: any): bn;
|
|
1070
1070
|
}
|
|
1071
|
-
declare class
|
|
1071
|
+
declare class Gn extends $n {
|
|
1072
1072
|
constructor(t: any, e: any);
|
|
1073
1073
|
_t: any;
|
|
1074
|
-
_toFieldTransform(t: any):
|
|
1074
|
+
_toFieldTransform(t: any): Pe;
|
|
1075
1075
|
isEqual(t: any): boolean;
|
|
1076
1076
|
}
|
|
1077
|
-
declare class
|
|
1077
|
+
declare class pr extends hr {
|
|
1078
1078
|
constructor(t: any, e: any, n: any);
|
|
1079
1079
|
type: any;
|
|
1080
1080
|
It: any;
|
|
1081
1081
|
Tt: any;
|
|
1082
|
-
_apply(t: any):
|
|
1082
|
+
_apply(t: any): bn;
|
|
1083
1083
|
}
|
|
1084
|
-
declare class
|
|
1084
|
+
declare class wr extends hr {
|
|
1085
1085
|
constructor(t: any, e: any);
|
|
1086
1086
|
gt: any;
|
|
1087
1087
|
Et: any;
|
|
1088
1088
|
type: string;
|
|
1089
|
-
_apply(t: any):
|
|
1089
|
+
_apply(t: any): bn;
|
|
1090
1090
|
}
|
|
1091
|
-
declare class
|
|
1092
|
-
_toFieldTransform(t: any):
|
|
1091
|
+
declare class Bn extends $n {
|
|
1092
|
+
_toFieldTransform(t: any): Pe;
|
|
1093
1093
|
isEqual(t: any): boolean;
|
|
1094
1094
|
}
|
|
1095
|
-
declare class
|
|
1095
|
+
declare class gr extends hr {
|
|
1096
1096
|
constructor(t: any, e: any, n: any);
|
|
1097
1097
|
type: any;
|
|
1098
1098
|
At: any;
|
|
1099
1099
|
Rt: any;
|
|
1100
|
-
_apply(t: any):
|
|
1100
|
+
_apply(t: any): bn;
|
|
1101
1101
|
}
|
|
1102
|
-
declare class
|
|
1102
|
+
declare class fr extends hr {
|
|
1103
1103
|
constructor(t: any, e: any, n: any);
|
|
1104
1104
|
gt: any;
|
|
1105
1105
|
vt: any;
|
|
1106
1106
|
bt: any;
|
|
1107
1107
|
type: string;
|
|
1108
|
-
_apply(t: any):
|
|
1108
|
+
_apply(t: any): bn;
|
|
1109
1109
|
}
|
|
1110
1110
|
/**
|
|
1111
1111
|
* Path represents an ordered sequence of string segments.
|
|
1112
1112
|
*/
|
|
1113
|
-
declare class
|
|
1113
|
+
declare class Z {
|
|
1114
1114
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
1115
1115
|
constructor(t: any, e: any, n: any);
|
|
1116
1116
|
segments: any;
|
|
@@ -1131,7 +1131,7 @@ declare class X {
|
|
|
1131
1131
|
forEach(t: any): void;
|
|
1132
1132
|
toArray(): any;
|
|
1133
1133
|
}
|
|
1134
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1134
|
+
/** A "context" object passed around while parsing user data. */ declare class kn {
|
|
1135
1135
|
/**
|
|
1136
1136
|
* Initializes a ParseContext with the given source and path.
|
|
1137
1137
|
*
|
|
@@ -1159,11 +1159,11 @@ declare class X {
|
|
|
1159
1159
|
fieldMask: any;
|
|
1160
1160
|
get path(): any;
|
|
1161
1161
|
get st(): any;
|
|
1162
|
-
/** Returns a new context with the specified settings overwritten. */ it(t: any):
|
|
1163
|
-
ot(t: any):
|
|
1164
|
-
at(t: any):
|
|
1165
|
-
ht(t: any):
|
|
1166
|
-
lt(t: any):
|
|
1162
|
+
/** Returns a new context with the specified settings overwritten. */ it(t: any): kn;
|
|
1163
|
+
ot(t: any): kn;
|
|
1164
|
+
at(t: any): kn;
|
|
1165
|
+
ht(t: any): kn;
|
|
1166
|
+
lt(t: any): U;
|
|
1167
1167
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1168
1168
|
rt(): void;
|
|
1169
1169
|
ct(t: any): void;
|
|
@@ -1184,9 +1184,9 @@ declare class X {
|
|
|
1184
1184
|
* See the License for the specific language governing permissions and
|
|
1185
1185
|
* limitations under the License.
|
|
1186
1186
|
*/
|
|
1187
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1187
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class Pe {
|
|
1188
1188
|
constructor(t: any, e: any);
|
|
1189
1189
|
field: any;
|
|
1190
1190
|
transform: any;
|
|
1191
1191
|
}
|
|
1192
|
-
export {
|
|
1192
|
+
export { yn as AggregateField, _n as AggregateQuerySnapshot, Vn as Bytes, En as CollectionReference, vn as DocumentReference, ir as DocumentSnapshot, Nn as FieldPath, $n as FieldValue, fn as Firestore, U as FirestoreError, xn as GeoPoint, bn as Query, hr as QueryConstraint, or as QueryDocumentSnapshot, ur as QuerySnapshot, bt as Timestamp, Zr as Transaction, Qr as WriteBatch, Or as addDoc, Cr as aggregateQuerySnapshotEqual, jr as arrayRemove, Ur as arrayUnion, In as collection, Tn as collectionGroup, mn as connectFirestoreEmulator, qr as deleteDoc, Lr as deleteField, An as doc, Dn as documentId, Tr as endAt, Ir as endBefore, kr as getCount, $r as getDoc, xr as getDocs, wn as getFirestore, Br as increment, dn as initializeFirestore, yr as limit, _r as limitToLast, mr as orderBy, lr as query, Pn as queryEqual, Rn as refEqual, ts as runTransaction, Mr as serverTimestamp, Fr as setDoc, p as setLogLevel, cr as snapshotEqual, br as startAfter, vr as startAt, pn as terminate, Sr as updateDoc, dr as where, Gr as writeBatch };
|