@firebase/firestore 3.3.0 → 3.3.1-canary.cb7299cbf
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 +8 -0
- package/dist/index.esm2017.js +7 -7
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +7 -7
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +8 -8
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +6 -6
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +7 -7
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/index.browser.esm2017.js +1084 -1084
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +10 -10
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +69 -69
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +109 -109
- package/package.json +9 -9
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
18
|
* An immutable object representing an array of bytes.
|
|
19
|
-
*/ declare class
|
|
19
|
+
*/ declare class ye {
|
|
20
20
|
/**
|
|
21
21
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
22
22
|
* bytes.
|
|
23
23
|
*
|
|
24
24
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
25
|
-
*/ static fromBase64String(t: any):
|
|
25
|
+
*/ static fromBase64String(t: any): ye;
|
|
26
26
|
/**
|
|
27
27
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
28
28
|
*
|
|
29
29
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
30
|
-
*/ static fromUint8Array(t: any):
|
|
30
|
+
*/ static fromUint8Array(t: any): ye;
|
|
31
31
|
/** @hideconstructor */
|
|
32
32
|
constructor(t: any);
|
|
33
33
|
_byteString: any;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
/**
|
|
57
57
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
58
58
|
* document references, and querying for documents (using {@link query}).
|
|
59
|
-
*/ declare class
|
|
59
|
+
*/ declare class ae extends ce {
|
|
60
60
|
_path: any;
|
|
61
61
|
/** The collection's identifier. */ get id(): any;
|
|
62
62
|
/**
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
/**
|
|
67
67
|
* A reference to the containing `DocumentReference` if this is a
|
|
68
68
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
69
|
-
*/ get parent():
|
|
69
|
+
*/ get parent(): ue | null;
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
* and can be used to write, read, or listen to the location. The document at
|
|
106
106
|
* the referenced location may or may not exist.
|
|
107
107
|
*/
|
|
108
|
-
declare class
|
|
108
|
+
declare class ue {
|
|
109
109
|
/** @hideconstructor */
|
|
110
|
-
constructor(t: any,
|
|
110
|
+
constructor(t: any, n: any, e: any);
|
|
111
111
|
converter: any;
|
|
112
112
|
_key: any;
|
|
113
113
|
/** The type of this Firestore reference. */
|
|
@@ -123,8 +123,8 @@ declare class un {
|
|
|
123
123
|
*/ get path(): any;
|
|
124
124
|
/**
|
|
125
125
|
* The collection this `DocumentReference` belongs to.
|
|
126
|
-
*/ get parent():
|
|
127
|
-
withConverter(t: any):
|
|
126
|
+
*/ get parent(): ae;
|
|
127
|
+
withConverter(t: any): ue;
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
130
|
* @license
|
|
@@ -150,9 +150,9 @@ declare class un {
|
|
|
150
150
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
151
151
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
152
152
|
* explicitly verify a document's existence.
|
|
153
|
-
*/ declare class
|
|
153
|
+
*/ declare class Ge {
|
|
154
154
|
/** @hideconstructor protected */
|
|
155
|
-
constructor(t: any,
|
|
155
|
+
constructor(t: any, n: any, e: any, r: any, s: any);
|
|
156
156
|
_firestore: any;
|
|
157
157
|
_userDataWriter: any;
|
|
158
158
|
_key: any;
|
|
@@ -161,7 +161,7 @@ declare class un {
|
|
|
161
161
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
162
162
|
/**
|
|
163
163
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
164
|
-
*/ get ref():
|
|
164
|
+
*/ get ref(): ue;
|
|
165
165
|
/**
|
|
166
166
|
* Signals whether or not the document at the snapshot's location exists.
|
|
167
167
|
*
|
|
@@ -208,7 +208,7 @@ declare class un {
|
|
|
208
208
|
*
|
|
209
209
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
210
210
|
* name is provided, the path will point to a nested field in a document.
|
|
211
|
-
*/ declare class
|
|
211
|
+
*/ declare class me {
|
|
212
212
|
/**
|
|
213
213
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
214
214
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -243,7 +243,7 @@ declare class un {
|
|
|
243
243
|
/**
|
|
244
244
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
245
245
|
* or `update()`.
|
|
246
|
-
*/ declare class
|
|
246
|
+
*/ declare class _e {
|
|
247
247
|
/**
|
|
248
248
|
* @param _methodName - The public API endpoint that returns this class.
|
|
249
249
|
* @hideconstructor
|
|
@@ -271,16 +271,16 @@ declare class un {
|
|
|
271
271
|
* The Cloud Firestore service interface.
|
|
272
272
|
*
|
|
273
273
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
274
|
-
*/ declare class
|
|
274
|
+
*/ declare class ee {
|
|
275
275
|
/** @hideconstructor */
|
|
276
|
-
constructor(t: any,
|
|
276
|
+
constructor(t: any, n: any);
|
|
277
277
|
_credentials: any;
|
|
278
278
|
/**
|
|
279
279
|
* Whether it's a Firestore or Firestore Lite instance.
|
|
280
280
|
*/
|
|
281
281
|
type: string;
|
|
282
282
|
_persistenceKey: string;
|
|
283
|
-
_settings:
|
|
283
|
+
_settings: ne;
|
|
284
284
|
_settingsFrozen: boolean;
|
|
285
285
|
_databaseId: W;
|
|
286
286
|
_app: any;
|
|
@@ -291,14 +291,14 @@ declare class un {
|
|
|
291
291
|
get _initialized(): boolean;
|
|
292
292
|
get _terminated(): boolean;
|
|
293
293
|
_setSettings(t: any): void;
|
|
294
|
-
_getSettings():
|
|
295
|
-
_freezeSettings():
|
|
294
|
+
_getSettings(): ne;
|
|
295
|
+
_freezeSettings(): ne;
|
|
296
296
|
_delete(): Promise<void>;
|
|
297
297
|
_terminateTask: Promise<void> | undefined;
|
|
298
298
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
299
299
|
app: any;
|
|
300
300
|
databaseId: W;
|
|
301
|
-
settings:
|
|
301
|
+
settings: ne;
|
|
302
302
|
};
|
|
303
303
|
/**
|
|
304
304
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -310,7 +310,7 @@ declare class un {
|
|
|
310
310
|
}
|
|
311
311
|
/** An error returned by a Firestore operation. */ declare class L extends Error {
|
|
312
312
|
/** @hideconstructor */
|
|
313
|
-
constructor(t: any,
|
|
313
|
+
constructor(t: any, n: any);
|
|
314
314
|
code: any;
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
@@ -335,14 +335,14 @@ declare class un {
|
|
|
335
335
|
*
|
|
336
336
|
* Latitude values are in the range of [-90, 90].
|
|
337
337
|
* Longitude values are in the range of [-180, 180].
|
|
338
|
-
*/ declare class
|
|
338
|
+
*/ declare class ge {
|
|
339
339
|
/**
|
|
340
340
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
341
341
|
* longitude values.
|
|
342
342
|
* @param latitude - The latitude as number between -90 and 90.
|
|
343
343
|
* @param longitude - The longitude as number between -180 and 180.
|
|
344
344
|
*/
|
|
345
|
-
constructor(t: any,
|
|
345
|
+
constructor(t: any, n: any);
|
|
346
346
|
_lat: any;
|
|
347
347
|
_long: any;
|
|
348
348
|
/**
|
|
@@ -369,15 +369,15 @@ declare class un {
|
|
|
369
369
|
/**
|
|
370
370
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
371
371
|
* construct refined `Query` objects by adding filters and ordering.
|
|
372
|
-
*/ declare class
|
|
372
|
+
*/ declare class ce {
|
|
373
373
|
/** @hideconstructor protected */
|
|
374
|
-
constructor(t: any,
|
|
374
|
+
constructor(t: any, n: any, e: any);
|
|
375
375
|
converter: any;
|
|
376
376
|
_query: any;
|
|
377
377
|
/** The type of this Firestore reference. */
|
|
378
378
|
type: string;
|
|
379
379
|
firestore: any;
|
|
380
|
-
withConverter(t: any):
|
|
380
|
+
withConverter(t: any): ce;
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
383
383
|
* @license
|
|
@@ -403,7 +403,7 @@ declare class un {
|
|
|
403
403
|
* can then be passed to {@link query} to create a new query instance that
|
|
404
404
|
* also contains this `QueryConstraint`.
|
|
405
405
|
*/
|
|
406
|
-
declare class
|
|
406
|
+
declare class Je {
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
409
409
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -415,7 +415,7 @@ declare class Jn {
|
|
|
415
415
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
416
416
|
* `exists` property will always be true and `data()` will never return
|
|
417
417
|
* 'undefined'.
|
|
418
|
-
*/ declare class
|
|
418
|
+
*/ declare class We extends Ge {
|
|
419
419
|
}
|
|
420
420
|
/**
|
|
421
421
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -423,9 +423,9 @@ declare class Jn {
|
|
|
423
423
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
424
424
|
* number of documents can be determined via the `empty` and `size`
|
|
425
425
|
* properties.
|
|
426
|
-
*/ declare class
|
|
426
|
+
*/ declare class He {
|
|
427
427
|
/** @hideconstructor */
|
|
428
|
-
constructor(t: any,
|
|
428
|
+
constructor(t: any, n: any);
|
|
429
429
|
_docs: any;
|
|
430
430
|
query: any;
|
|
431
431
|
/** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
|
|
@@ -437,7 +437,7 @@ declare class Jn {
|
|
|
437
437
|
* @param callback - A callback to be called with a `QueryDocumentSnapshot` for
|
|
438
438
|
* each document in the snapshot.
|
|
439
439
|
* @param thisArg - The `this` binding for the callback.
|
|
440
|
-
*/ forEach(t: any,
|
|
440
|
+
*/ forEach(t: any, n: any): void;
|
|
441
441
|
}
|
|
442
442
|
/**
|
|
443
443
|
* @license
|
|
@@ -501,7 +501,7 @@ declare class pt {
|
|
|
501
501
|
* non-negative nanoseconds values that count forward in time. Must be
|
|
502
502
|
* from 0 to 999,999,999 inclusive.
|
|
503
503
|
*/
|
|
504
|
-
constructor(t: any,
|
|
504
|
+
constructor(t: any, n: any);
|
|
505
505
|
seconds: any;
|
|
506
506
|
nanoseconds: any;
|
|
507
507
|
/**
|
|
@@ -538,18 +538,18 @@ declare class pt {
|
|
|
538
538
|
}
|
|
539
539
|
declare class Cr {
|
|
540
540
|
/** @hideconstructor */
|
|
541
|
-
constructor(t: any,
|
|
541
|
+
constructor(t: any, n: any);
|
|
542
542
|
_firestore: any;
|
|
543
543
|
_transaction: any;
|
|
544
|
-
_dataReader:
|
|
544
|
+
_dataReader: Ae;
|
|
545
545
|
/**
|
|
546
546
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
547
547
|
*
|
|
548
548
|
* @param documentRef - A reference to the document to be read.
|
|
549
549
|
* @returns A `DocumentSnapshot` with the read data.
|
|
550
550
|
*/ get(t: any): any;
|
|
551
|
-
set(t: any,
|
|
552
|
-
update(t: any,
|
|
551
|
+
set(t: any, n: any, e: any): Cr;
|
|
552
|
+
update(t: any, n: any, e: any, ...r: any[]): Cr;
|
|
553
553
|
/**
|
|
554
554
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
555
555
|
*
|
|
@@ -582,14 +582,14 @@ declare class Cr {
|
|
|
582
582
|
* called.
|
|
583
583
|
*/ declare class Dr {
|
|
584
584
|
/** @hideconstructor */
|
|
585
|
-
constructor(t: any,
|
|
585
|
+
constructor(t: any, n: any);
|
|
586
586
|
_firestore: any;
|
|
587
587
|
_commitHandler: any;
|
|
588
588
|
_mutations: any[];
|
|
589
589
|
_committed: boolean;
|
|
590
|
-
_dataReader:
|
|
591
|
-
set(t: any,
|
|
592
|
-
update(t: any,
|
|
590
|
+
_dataReader: Ae;
|
|
591
|
+
set(t: any, n: any, e: any): Dr;
|
|
592
|
+
update(t: any, n: any, e: any, ...r: any[]): Dr;
|
|
593
593
|
/**
|
|
594
594
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
595
595
|
*
|
|
@@ -623,7 +623,7 @@ declare class Cr {
|
|
|
623
623
|
* @param data - An Object containing the data for the new document.
|
|
624
624
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
625
625
|
* newly created document after it has been written to the backend.
|
|
626
|
-
*/ declare function Tr(t: any,
|
|
626
|
+
*/ declare function Tr(t: any, n: any): Promise<ue>;
|
|
627
627
|
/**
|
|
628
628
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
629
629
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -634,7 +634,7 @@ declare class Cr {
|
|
|
634
634
|
* @param elements - The elements to remove from the array.
|
|
635
635
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
636
636
|
* `updateDoc()`
|
|
637
|
-
*/ declare function Rr(...t: any[]):
|
|
637
|
+
*/ declare function Rr(...t: any[]): Fe;
|
|
638
638
|
/**
|
|
639
639
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
640
640
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -646,8 +646,8 @@ declare class Cr {
|
|
|
646
646
|
* @param elements - The elements to union into the array.
|
|
647
647
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
648
648
|
* `updateDoc()`.
|
|
649
|
-
*/ declare function Pr(...t: any[]): $
|
|
650
|
-
declare function
|
|
649
|
+
*/ declare function Pr(...t: any[]): $e;
|
|
650
|
+
declare function he(t: any, n: any, ...e: any[]): ae;
|
|
651
651
|
/**
|
|
652
652
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
653
653
|
* database that are contained in a collection or subcollection with the
|
|
@@ -658,7 +658,7 @@ declare function hn(t: any, e: any, ...n: any[]): an;
|
|
|
658
658
|
* collection or subcollection with this ID as the last segment of its path
|
|
659
659
|
* will be included. Cannot contain a slash.
|
|
660
660
|
* @returns The created `Query`.
|
|
661
|
-
*/ declare function
|
|
661
|
+
*/ declare function le(t: any, n: any): ce;
|
|
662
662
|
/**
|
|
663
663
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
664
664
|
*
|
|
@@ -671,7 +671,7 @@ declare function hn(t: any, e: any, ...n: any[]): an;
|
|
|
671
671
|
* @param port - the emulator port (ex: 9000).
|
|
672
672
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
673
673
|
* Security Rules.
|
|
674
|
-
*/ declare function
|
|
674
|
+
*/ declare function ie(t: any, n: any, e: any, r?: {}): void;
|
|
675
675
|
/**
|
|
676
676
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
677
677
|
*
|
|
@@ -703,12 +703,12 @@ declare function hn(t: any, e: any, ...n: any[]): an;
|
|
|
703
703
|
/**
|
|
704
704
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
705
705
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
706
|
-
*/ declare function Ir():
|
|
707
|
-
declare function
|
|
706
|
+
*/ declare function Ir(): Ve;
|
|
707
|
+
declare function fe(t: any, n: any, ...e: any[]): ue;
|
|
708
708
|
/**
|
|
709
709
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
710
710
|
* It can be used in queries to sort or filter by the document ID.
|
|
711
|
-
*/ declare function
|
|
711
|
+
*/ declare function pe(): me;
|
|
712
712
|
declare function lr(...t: any[]): ar;
|
|
713
713
|
declare function hr(...t: any[]): ar;
|
|
714
714
|
/**
|
|
@@ -723,7 +723,7 @@ declare function hr(...t: any[]): ar;
|
|
|
723
723
|
* @param reference - The reference of the document to fetch.
|
|
724
724
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the current
|
|
725
725
|
* document contents.
|
|
726
|
-
*/ declare function _r(t: any): Promise<
|
|
726
|
+
*/ declare function _r(t: any): Promise<Ge>;
|
|
727
727
|
/**
|
|
728
728
|
* Executes the query and returns the results as a {@link QuerySnapshot}.
|
|
729
729
|
*
|
|
@@ -735,7 +735,7 @@ declare function hr(...t: any[]): ar;
|
|
|
735
735
|
*
|
|
736
736
|
* @param query - The `Query` to execute.
|
|
737
737
|
* @returns A Promise that will be resolved with the results of the query.
|
|
738
|
-
*/ declare function gr(t: any): Promise<
|
|
738
|
+
*/ declare function gr(t: any): Promise<He>;
|
|
739
739
|
/**
|
|
740
740
|
* Returns the existing `Firestore` instance that is associated with the
|
|
741
741
|
* provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
|
|
@@ -744,7 +744,7 @@ declare function hr(...t: any[]): ar;
|
|
|
744
744
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned `Firestore`
|
|
745
745
|
* instance is associated with.
|
|
746
746
|
* @returns The `Firestore` instance of the provided app.
|
|
747
|
-
*/ declare function
|
|
747
|
+
*/ declare function se(n?: import("@firebase/app").FirebaseApp): import("../../lite").Firestore;
|
|
748
748
|
/**
|
|
749
749
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
750
750
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -763,8 +763,8 @@ declare function hr(...t: any[]): ar;
|
|
|
763
763
|
* @param n - The value to increment by.
|
|
764
764
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
765
765
|
* `updateDoc()`
|
|
766
|
-
*/ declare function Vr(t: any):
|
|
767
|
-
declare function
|
|
766
|
+
*/ declare function Vr(t: any): Se;
|
|
767
|
+
declare function re(t: any, n: any): import("../../lite").Firestore;
|
|
768
768
|
/**
|
|
769
769
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
770
770
|
*
|
|
@@ -788,7 +788,7 @@ declare function nn(t: any, e: any): import("../../lite").Firestore;
|
|
|
788
788
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
789
789
|
* not specified, order will be ascending.
|
|
790
790
|
* @returns The created {@link Query}.
|
|
791
|
-
*/ declare function
|
|
791
|
+
*/ declare function er(t: any, n?: string): nr;
|
|
792
792
|
/**
|
|
793
793
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
794
794
|
* additional query constraints.
|
|
@@ -797,7 +797,7 @@ declare function nn(t: any, e: any): import("../../lite").Firestore;
|
|
|
797
797
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
798
798
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
799
799
|
* existing or new constraints.
|
|
800
|
-
*/ declare function
|
|
800
|
+
*/ declare function Ze(t: any, ...n: any[]): any;
|
|
801
801
|
/**
|
|
802
802
|
* Returns true if the provided queries point to the same collection and apply
|
|
803
803
|
* the same constraints.
|
|
@@ -806,7 +806,7 @@ declare function nn(t: any, e: any): import("../../lite").Firestore;
|
|
|
806
806
|
* @param right - A `Query` to compare.
|
|
807
807
|
* @returns true if the references point to the same location in the same
|
|
808
808
|
* Firestore database.
|
|
809
|
-
*/ declare function
|
|
809
|
+
*/ declare function we(t: any, n: any): boolean;
|
|
810
810
|
/**
|
|
811
811
|
* Returns true if the provided references are equal.
|
|
812
812
|
*
|
|
@@ -814,7 +814,7 @@ declare function nn(t: any, e: any): import("../../lite").Firestore;
|
|
|
814
814
|
* @param right - A reference to compare.
|
|
815
815
|
* @returns true if the references point to the same location in the same
|
|
816
816
|
* Firestore database.
|
|
817
|
-
*/ declare function
|
|
817
|
+
*/ declare function de(t: any, n: any): boolean;
|
|
818
818
|
/**
|
|
819
819
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
820
820
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -831,12 +831,12 @@ declare function nn(t: any, e: any): import("../../lite").Firestore;
|
|
|
831
831
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
832
832
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
833
833
|
* rejected promise with the corresponding failure error is returned.
|
|
834
|
-
*/ declare function Lr(t: any,
|
|
834
|
+
*/ declare function Lr(t: any, n: any): Promise<any>;
|
|
835
835
|
/**
|
|
836
836
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
837
837
|
* include a server-generated timestamp in the written data.
|
|
838
|
-
*/ declare function Ar():
|
|
839
|
-
declare function br(t: any,
|
|
838
|
+
*/ declare function Ar(): Ne;
|
|
839
|
+
declare function br(t: any, n: any, e: any): Promise<void>;
|
|
840
840
|
/**
|
|
841
841
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
842
842
|
*
|
|
@@ -856,7 +856,7 @@ declare function br(t: any, e: any, n: any): Promise<void>;
|
|
|
856
856
|
* @param left - A snapshot to compare.
|
|
857
857
|
* @param right - A snapshot to compare.
|
|
858
858
|
* @returns true if the snapshots are equal.
|
|
859
|
-
*/ declare function
|
|
859
|
+
*/ declare function Ye(t: any, n: any): any;
|
|
860
860
|
declare function cr(...t: any[]): or;
|
|
861
861
|
declare function ur(...t: any[]): or;
|
|
862
862
|
/**
|
|
@@ -878,8 +878,8 @@ declare function ur(...t: any[]): or;
|
|
|
878
878
|
* @param firestore - The `Firestore` instance to terminate.
|
|
879
879
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
880
880
|
* terminated.
|
|
881
|
-
*/ declare function
|
|
882
|
-
declare function vr(t: any,
|
|
881
|
+
*/ declare function oe(t: any): any;
|
|
882
|
+
declare function vr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
|
|
883
883
|
/**
|
|
884
884
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
885
885
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -890,7 +890,7 @@ declare function vr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
890
890
|
* "<=", "!=").
|
|
891
891
|
* @param value - The value for comparison
|
|
892
892
|
* @returns The created {@link Query}.
|
|
893
|
-
*/ declare function tr(t: any,
|
|
893
|
+
*/ declare function tr(t: any, n: any, e: any): Xe;
|
|
894
894
|
/**
|
|
895
895
|
* Creates a write batch, used for performing multiple writes as a single
|
|
896
896
|
* atomic operation. The maximum number of writes allowed in a single WriteBatch
|
|
@@ -926,7 +926,7 @@ declare function vr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
926
926
|
* non-identifier path components, even if they aren't escaped.
|
|
927
927
|
*/ static fromServerFormat(t: any): J;
|
|
928
928
|
static emptyPath(): J;
|
|
929
|
-
construct(t: any,
|
|
929
|
+
construct(t: any, n: any, e: any): J;
|
|
930
930
|
canonicalString(): any;
|
|
931
931
|
toString(): any;
|
|
932
932
|
/**
|
|
@@ -942,7 +942,7 @@ declare function vr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
942
942
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
943
943
|
* defaults can be supplied and the value can be checked for equality.
|
|
944
944
|
*/
|
|
945
|
-
declare class
|
|
945
|
+
declare class ne {
|
|
946
946
|
constructor(t: any);
|
|
947
947
|
host: any;
|
|
948
948
|
ssl: any;
|
|
@@ -960,7 +960,7 @@ declare class tn {
|
|
|
960
960
|
* @internal
|
|
961
961
|
*/
|
|
962
962
|
declare class W {
|
|
963
|
-
constructor(t: any,
|
|
963
|
+
constructor(t: any, n: any);
|
|
964
964
|
projectId: any;
|
|
965
965
|
database: any;
|
|
966
966
|
get isDefaultDatabase(): boolean;
|
|
@@ -969,74 +969,74 @@ declare class W {
|
|
|
969
969
|
/**
|
|
970
970
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
971
971
|
* classes.
|
|
972
|
-
*/ declare class
|
|
973
|
-
constructor(t: any,
|
|
972
|
+
*/ declare class Ae {
|
|
973
|
+
constructor(t: any, n: any, e: any);
|
|
974
974
|
databaseId: any;
|
|
975
975
|
ignoreUndefinedProperties: any;
|
|
976
976
|
S: any;
|
|
977
|
-
/** Creates a new top-level parse context. */ at(t: any,
|
|
977
|
+
/** Creates a new top-level parse context. */ at(t: any, n: any, e: any, r?: boolean): Ie;
|
|
978
978
|
}
|
|
979
|
-
declare class
|
|
980
|
-
constructor(t: any,
|
|
979
|
+
declare class Fe extends _e {
|
|
980
|
+
constructor(t: any, n: any);
|
|
981
981
|
ht: any;
|
|
982
|
-
_toFieldTransform(t: any):
|
|
982
|
+
_toFieldTransform(t: any): _n;
|
|
983
983
|
isEqual(t: any): boolean;
|
|
984
984
|
}
|
|
985
|
-
declare class $
|
|
986
|
-
constructor(t: any,
|
|
985
|
+
declare class $e extends _e {
|
|
986
|
+
constructor(t: any, n: any);
|
|
987
987
|
ht: any;
|
|
988
|
-
_toFieldTransform(t: any):
|
|
988
|
+
_toFieldTransform(t: any): _n;
|
|
989
989
|
isEqual(t: any): boolean;
|
|
990
990
|
}
|
|
991
|
-
declare class
|
|
991
|
+
declare class Ve extends _e {
|
|
992
992
|
_toFieldTransform(t: any): null;
|
|
993
993
|
isEqual(t: any): boolean;
|
|
994
994
|
}
|
|
995
|
-
declare class ar extends
|
|
996
|
-
constructor(t: any,
|
|
995
|
+
declare class ar extends Je {
|
|
996
|
+
constructor(t: any, n: any, e: any);
|
|
997
997
|
type: any;
|
|
998
998
|
bt: any;
|
|
999
999
|
vt: any;
|
|
1000
|
-
_apply(t: any):
|
|
1000
|
+
_apply(t: any): ce;
|
|
1001
1001
|
}
|
|
1002
|
-
declare class
|
|
1003
|
-
constructor(t: any,
|
|
1002
|
+
declare class Se extends _e {
|
|
1003
|
+
constructor(t: any, n: any);
|
|
1004
1004
|
lt: any;
|
|
1005
|
-
_toFieldTransform(t: any):
|
|
1005
|
+
_toFieldTransform(t: any): _n;
|
|
1006
1006
|
isEqual(t: any): boolean;
|
|
1007
1007
|
}
|
|
1008
|
-
declare class rr extends
|
|
1009
|
-
constructor(t: any,
|
|
1008
|
+
declare class rr extends Je {
|
|
1009
|
+
constructor(t: any, n: any, e: any);
|
|
1010
1010
|
type: any;
|
|
1011
1011
|
_t: any;
|
|
1012
1012
|
gt: any;
|
|
1013
|
-
_apply(t: any):
|
|
1013
|
+
_apply(t: any): ce;
|
|
1014
1014
|
}
|
|
1015
|
-
declare class
|
|
1016
|
-
constructor(t: any,
|
|
1015
|
+
declare class nr extends Je {
|
|
1016
|
+
constructor(t: any, n: any);
|
|
1017
1017
|
ft: any;
|
|
1018
1018
|
yt: any;
|
|
1019
1019
|
type: string;
|
|
1020
|
-
_apply(t: any):
|
|
1020
|
+
_apply(t: any): ce;
|
|
1021
1021
|
}
|
|
1022
|
-
declare class
|
|
1023
|
-
_toFieldTransform(t: any):
|
|
1022
|
+
declare class Ne extends _e {
|
|
1023
|
+
_toFieldTransform(t: any): _n;
|
|
1024
1024
|
isEqual(t: any): boolean;
|
|
1025
1025
|
}
|
|
1026
|
-
declare class or extends
|
|
1027
|
-
constructor(t: any,
|
|
1026
|
+
declare class or extends Je {
|
|
1027
|
+
constructor(t: any, n: any, e: any);
|
|
1028
1028
|
type: any;
|
|
1029
1029
|
bt: any;
|
|
1030
1030
|
vt: any;
|
|
1031
|
-
_apply(t: any):
|
|
1031
|
+
_apply(t: any): ce;
|
|
1032
1032
|
}
|
|
1033
|
-
declare class
|
|
1034
|
-
constructor(t: any,
|
|
1033
|
+
declare class Xe extends Je {
|
|
1034
|
+
constructor(t: any, n: any, e: any);
|
|
1035
1035
|
ft: any;
|
|
1036
1036
|
dt: any;
|
|
1037
1037
|
wt: any;
|
|
1038
1038
|
type: string;
|
|
1039
|
-
_apply(t: any):
|
|
1039
|
+
_apply(t: any): ce;
|
|
1040
1040
|
}
|
|
1041
1041
|
/**
|
|
1042
1042
|
* @license
|
|
@@ -1058,8 +1058,8 @@ declare class Xn extends Jn {
|
|
|
1058
1058
|
* Path represents an ordered sequence of string segments.
|
|
1059
1059
|
*/
|
|
1060
1060
|
declare class H {
|
|
1061
|
-
static comparator(t: any,
|
|
1062
|
-
constructor(t: any,
|
|
1061
|
+
static comparator(t: any, n: any): 0 | 1 | -1;
|
|
1062
|
+
constructor(t: any, n: any, e: any);
|
|
1063
1063
|
segments: any;
|
|
1064
1064
|
offset: any;
|
|
1065
1065
|
len: any;
|
|
@@ -1078,7 +1078,7 @@ declare class H {
|
|
|
1078
1078
|
forEach(t: any): void;
|
|
1079
1079
|
toArray(): any;
|
|
1080
1080
|
}
|
|
1081
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1081
|
+
/** A "context" object passed around while parsing user data. */ declare class Ie {
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Initializes a ParseContext with the given source and path.
|
|
1084
1084
|
*
|
|
@@ -1097,7 +1097,7 @@ declare class H {
|
|
|
1097
1097
|
* which case certain features will not work and errors will be somewhat
|
|
1098
1098
|
* compromised).
|
|
1099
1099
|
*/
|
|
1100
|
-
constructor(t: any,
|
|
1100
|
+
constructor(t: any, n: any, e: any, r: any, s: any, i: any);
|
|
1101
1101
|
settings: any;
|
|
1102
1102
|
databaseId: any;
|
|
1103
1103
|
S: any;
|
|
@@ -1106,10 +1106,10 @@ declare class H {
|
|
|
1106
1106
|
fieldMask: any;
|
|
1107
1107
|
get path(): any;
|
|
1108
1108
|
get X(): any;
|
|
1109
|
-
/** Returns a new context with the specified settings overwritten. */ tt(t: any):
|
|
1110
|
-
|
|
1111
|
-
st(t: any):
|
|
1112
|
-
it(t: any):
|
|
1109
|
+
/** Returns a new context with the specified settings overwritten. */ tt(t: any): Ie;
|
|
1110
|
+
nt(t: any): Ie;
|
|
1111
|
+
st(t: any): Ie;
|
|
1112
|
+
it(t: any): Ie;
|
|
1113
1113
|
ot(t: any): L;
|
|
1114
1114
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1115
1115
|
Z(): void;
|
|
@@ -1131,9 +1131,9 @@ declare class H {
|
|
|
1131
1131
|
* See the License for the specific language governing permissions and
|
|
1132
1132
|
* limitations under the License.
|
|
1133
1133
|
*/
|
|
1134
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1135
|
-
constructor(t: any,
|
|
1134
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class _n {
|
|
1135
|
+
constructor(t: any, n: any);
|
|
1136
1136
|
field: any;
|
|
1137
1137
|
transform: any;
|
|
1138
1138
|
}
|
|
1139
|
-
export {
|
|
1139
|
+
export { ye as Bytes, ae as CollectionReference, ue as DocumentReference, Ge as DocumentSnapshot, me as FieldPath, _e as FieldValue, ee as Firestore, L as FirestoreError, ge as GeoPoint, ce as Query, Je as QueryConstraint, We as QueryDocumentSnapshot, He as QuerySnapshot, pt as Timestamp, Cr as Transaction, Dr as WriteBatch, Tr as addDoc, Rr as arrayRemove, Pr as arrayUnion, he as collection, le as collectionGroup, ie as connectFirestoreEmulator, Er as deleteDoc, Ir as deleteField, fe as doc, pe as documentId, lr as endAt, hr as endBefore, _r as getDoc, gr as getDocs, se as getFirestore, Vr as increment, re as initializeFirestore, sr as limit, ir as limitToLast, er as orderBy, Ze as query, we as queryEqual, de as refEqual, Lr as runTransaction, Ar as serverTimestamp, br as setDoc, d as setLogLevel, Ye as snapshotEqual, cr as startAfter, ur as startAt, oe as terminate, vr as updateDoc, tr as where, $r as writeBatch };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/firestore",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1-canary.cb7299cbf",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=10.10.0"
|
|
6
6
|
},
|
|
@@ -80,22 +80,22 @@
|
|
|
80
80
|
"lite/package.json"
|
|
81
81
|
],
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@firebase/component": "0.5.9",
|
|
84
|
-
"@firebase/logger": "0.3.2",
|
|
85
|
-
"@firebase/util": "1.4.2",
|
|
86
|
-
"@firebase/webchannel-wrapper": "0.6.1",
|
|
83
|
+
"@firebase/component": "0.5.9-canary.cb7299cbf",
|
|
84
|
+
"@firebase/logger": "0.3.2-canary.cb7299cbf",
|
|
85
|
+
"@firebase/util": "1.4.2-canary.cb7299cbf",
|
|
86
|
+
"@firebase/webchannel-wrapper": "0.6.1-canary.cb7299cbf",
|
|
87
87
|
"@grpc/grpc-js": "^1.3.2",
|
|
88
88
|
"@grpc/proto-loader": "^0.6.0",
|
|
89
89
|
"node-fetch": "2.6.5",
|
|
90
90
|
"tslib": "^2.1.0"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"@firebase/app": "0.
|
|
93
|
+
"@firebase/app": "0.7.9-canary.cb7299cbf"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@firebase/app": "0.7.
|
|
97
|
-
"@firebase/app-compat": "0.1.
|
|
98
|
-
"@firebase/auth": "0.19.
|
|
96
|
+
"@firebase/app": "0.7.9-canary.cb7299cbf",
|
|
97
|
+
"@firebase/app-compat": "0.1.10-canary.cb7299cbf",
|
|
98
|
+
"@firebase/auth": "0.19.3-canary.cb7299cbf",
|
|
99
99
|
"@rollup/plugin-alias": "3.1.5",
|
|
100
100
|
"@rollup/plugin-json": "4.1.0",
|
|
101
101
|
"@types/eslint": "7.28.0",
|