@firebase/firestore 3.4.1-canary.c2fff0c6a → 3.4.2-canary.044a8d7f9
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 +12 -0
- package/dist/firestore/src/index/directional_index_byte_encoder.d.ts +24 -0
- package/dist/firestore/src/index/firestore_index_value_writer.d.ts +33 -0
- package/dist/firestore/src/index/index_byte_encoder.d.ts +14 -0
- package/dist/firestore/src/index/ordered_code_writer.d.ts +60 -0
- package/dist/firestore/src/lite-api/reference.d.ts +4 -2
- package/dist/firestore/src/model/values.d.ts +3 -0
- package/dist/firestore/src/util/byte_string.d.ts +1 -0
- package/dist/firestore/src/util/error.d.ts +2 -3
- package/dist/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -0
- package/dist/firestore/test/util/helpers.d.ts +1 -0
- package/dist/index.d.ts +6 -21
- package/dist/index.esm2017.js +2639 -2630
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +2601 -2591
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +38 -20
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +38 -20
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +2837 -2828
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +7 -21
- package/dist/lite/firestore/src/index/directional_index_byte_encoder.d.ts +24 -0
- package/dist/lite/firestore/src/index/firestore_index_value_writer.d.ts +33 -0
- package/dist/lite/firestore/src/index/index_byte_encoder.d.ts +14 -0
- package/dist/lite/firestore/src/index/ordered_code_writer.d.ts +60 -0
- package/dist/lite/firestore/src/lite-api/reference.d.ts +4 -2
- package/dist/lite/firestore/src/model/values.d.ts +3 -0
- package/dist/lite/firestore/src/util/byte_string.d.ts +1 -0
- package/dist/lite/firestore/src/util/error.d.ts +2 -3
- package/dist/lite/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -0
- package/dist/lite/firestore/test/util/helpers.d.ts +1 -0
- package/dist/lite/index.browser.esm2017.js +834 -822
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +835 -822
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.d.ts +6 -21
- package/dist/lite/index.node.cjs.js +23 -6
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +24 -7
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +833 -821
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +7 -21
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +109 -109
- package/dist/lite/packages/firestore/src/index/directional_index_byte_encoder.d.ts +24 -0
- package/dist/lite/packages/firestore/src/index/firestore_index_value_writer.d.ts +33 -0
- package/dist/lite/packages/firestore/src/index/index_byte_encoder.d.ts +14 -0
- package/dist/lite/packages/firestore/src/index/ordered_code_writer.d.ts +60 -0
- package/dist/lite/packages/firestore/src/lite-api/reference.d.ts +4 -2
- package/dist/lite/packages/firestore/src/model/values.d.ts +3 -0
- package/dist/lite/packages/firestore/src/util/byte_string.d.ts +1 -0
- package/dist/lite/packages/firestore/src/util/error.d.ts +2 -3
- package/dist/lite/packages/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -0
- package/dist/lite/packages/firestore/test/util/helpers.d.ts +1 -0
- package/dist/lite/private.d.ts +6 -21
- package/dist/packages/firestore/dist/index.esm2017.d.ts +156 -156
- package/dist/packages/firestore/src/index/directional_index_byte_encoder.d.ts +24 -0
- package/dist/packages/firestore/src/index/firestore_index_value_writer.d.ts +33 -0
- package/dist/packages/firestore/src/index/index_byte_encoder.d.ts +14 -0
- package/dist/packages/firestore/src/index/ordered_code_writer.d.ts +60 -0
- package/dist/packages/firestore/src/lite-api/reference.d.ts +4 -2
- package/dist/packages/firestore/src/model/values.d.ts +3 -0
- package/dist/packages/firestore/src/util/byte_string.d.ts +1 -0
- package/dist/packages/firestore/src/util/error.d.ts +2 -3
- package/dist/packages/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -0
- package/dist/packages/firestore/test/util/helpers.d.ts +1 -0
- package/dist/private.d.ts +6 -21
- 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 ve {
|
|
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): ve;
|
|
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): ve;
|
|
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 fe extends le {
|
|
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(): he | null;
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -105,7 +105,7 @@
|
|
|
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 he {
|
|
109
109
|
/** @hideconstructor */
|
|
110
110
|
constructor(t: any, n: any, e: any);
|
|
111
111
|
converter: any;
|
|
@@ -123,8 +123,8 @@ declare class ae {
|
|
|
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(): fe;
|
|
127
|
+
withConverter(t: any): he;
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
130
|
* @license
|
|
@@ -150,7 +150,7 @@ declare class ae {
|
|
|
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 He {
|
|
154
154
|
/** @hideconstructor protected */
|
|
155
155
|
constructor(t: any, n: any, e: any, r: any, s: any);
|
|
156
156
|
_firestore: any;
|
|
@@ -161,7 +161,7 @@ declare class ae {
|
|
|
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(): he;
|
|
165
165
|
/**
|
|
166
166
|
* Signals whether or not the document at the snapshot's location exists.
|
|
167
167
|
*
|
|
@@ -208,7 +208,7 @@ declare class ae {
|
|
|
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 _e {
|
|
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.
|
|
@@ -216,7 +216,7 @@ declare class ae {
|
|
|
216
216
|
* @param fieldNames - A list of field names.
|
|
217
217
|
*/
|
|
218
218
|
constructor(...t: any[]);
|
|
219
|
-
_internalPath:
|
|
219
|
+
_internalPath: tt;
|
|
220
220
|
/**
|
|
221
221
|
* Returns true if this `FieldPath` is equal to the provided one.
|
|
222
222
|
*
|
|
@@ -271,7 +271,7 @@ declare class ae {
|
|
|
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 ie {
|
|
275
275
|
/** @hideconstructor */
|
|
276
276
|
constructor(t: any, n: any, e: any);
|
|
277
277
|
_authCredentials: any;
|
|
@@ -281,9 +281,9 @@ declare class ae {
|
|
|
281
281
|
*/
|
|
282
282
|
type: string;
|
|
283
283
|
_persistenceKey: string;
|
|
284
|
-
_settings:
|
|
284
|
+
_settings: se;
|
|
285
285
|
_settingsFrozen: boolean;
|
|
286
|
-
_databaseId:
|
|
286
|
+
_databaseId: K;
|
|
287
287
|
_app: any;
|
|
288
288
|
/**
|
|
289
289
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -292,14 +292,14 @@ declare class ae {
|
|
|
292
292
|
get _initialized(): boolean;
|
|
293
293
|
get _terminated(): boolean;
|
|
294
294
|
_setSettings(t: any): void;
|
|
295
|
-
_getSettings():
|
|
296
|
-
_freezeSettings():
|
|
295
|
+
_getSettings(): se;
|
|
296
|
+
_freezeSettings(): se;
|
|
297
297
|
_delete(): Promise<void>;
|
|
298
298
|
_terminateTask: Promise<void> | undefined;
|
|
299
299
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
300
300
|
app: any;
|
|
301
|
-
databaseId:
|
|
302
|
-
settings:
|
|
301
|
+
databaseId: K;
|
|
302
|
+
settings: se;
|
|
303
303
|
};
|
|
304
304
|
/**
|
|
305
305
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -309,10 +309,9 @@ declare class ae {
|
|
|
309
309
|
* Only ever called once.
|
|
310
310
|
*/ _terminate(): Promise<void>;
|
|
311
311
|
}
|
|
312
|
-
/** An error returned by a Firestore operation. */ declare class
|
|
312
|
+
/** An error returned by a Firestore operation. */ declare class U extends c {
|
|
313
313
|
/** @hideconstructor */
|
|
314
314
|
constructor(t: any, n: any);
|
|
315
|
-
code: any;
|
|
316
315
|
}
|
|
317
316
|
/**
|
|
318
317
|
* @license
|
|
@@ -336,7 +335,7 @@ declare class ae {
|
|
|
336
335
|
*
|
|
337
336
|
* Latitude values are in the range of [-90, 90].
|
|
338
337
|
* Longitude values are in the range of [-180, 180].
|
|
339
|
-
*/ declare class
|
|
338
|
+
*/ declare class Ee {
|
|
340
339
|
/**
|
|
341
340
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
342
341
|
* longitude values.
|
|
@@ -370,7 +369,7 @@ declare class ae {
|
|
|
370
369
|
/**
|
|
371
370
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
372
371
|
* construct refined `Query` objects by adding filters and ordering.
|
|
373
|
-
*/ declare class
|
|
372
|
+
*/ declare class le {
|
|
374
373
|
/** @hideconstructor protected */
|
|
375
374
|
constructor(t: any, n: any, e: any);
|
|
376
375
|
converter: any;
|
|
@@ -378,7 +377,7 @@ declare class ae {
|
|
|
378
377
|
/** The type of this Firestore reference. */
|
|
379
378
|
type: string;
|
|
380
379
|
firestore: any;
|
|
381
|
-
withConverter(t: any):
|
|
380
|
+
withConverter(t: any): le;
|
|
382
381
|
}
|
|
383
382
|
/**
|
|
384
383
|
* @license
|
|
@@ -404,7 +403,7 @@ declare class ae {
|
|
|
404
403
|
* can then be passed to {@link query} to create a new query instance that
|
|
405
404
|
* also contains this `QueryConstraint`.
|
|
406
405
|
*/
|
|
407
|
-
declare class
|
|
406
|
+
declare class tr {
|
|
408
407
|
}
|
|
409
408
|
/**
|
|
410
409
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -416,7 +415,7 @@ declare class Ze {
|
|
|
416
415
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
417
416
|
* `exists` property will always be true and `data()` will never return
|
|
418
417
|
* 'undefined'.
|
|
419
|
-
*/ declare class
|
|
418
|
+
*/ declare class Ke extends He {
|
|
420
419
|
}
|
|
421
420
|
/**
|
|
422
421
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -424,7 +423,7 @@ declare class Ze {
|
|
|
424
423
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
425
424
|
* number of documents can be determined via the `empty` and `size`
|
|
426
425
|
* properties.
|
|
427
|
-
*/ declare class
|
|
426
|
+
*/ declare class Je {
|
|
428
427
|
/** @hideconstructor */
|
|
429
428
|
constructor(t: any, n: any);
|
|
430
429
|
_docs: any;
|
|
@@ -470,19 +469,19 @@ declare class Ze {
|
|
|
470
469
|
* For examples and further specifications, refer to the
|
|
471
470
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
472
471
|
*/
|
|
473
|
-
declare class
|
|
472
|
+
declare class gt {
|
|
474
473
|
/**
|
|
475
474
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
476
475
|
*
|
|
477
476
|
* @returns a new timestamp representing the current date.
|
|
478
|
-
*/ static now():
|
|
477
|
+
*/ static now(): gt;
|
|
479
478
|
/**
|
|
480
479
|
* Creates a new timestamp from the given date.
|
|
481
480
|
*
|
|
482
481
|
* @param date - The date to initialize the `Timestamp` from.
|
|
483
482
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
484
483
|
* date.
|
|
485
|
-
*/ static fromDate(t: any):
|
|
484
|
+
*/ static fromDate(t: any): gt;
|
|
486
485
|
/**
|
|
487
486
|
* Creates a new timestamp from the given number of milliseconds.
|
|
488
487
|
*
|
|
@@ -490,7 +489,7 @@ declare class _t {
|
|
|
490
489
|
* 1970-01-01T00:00:00Z.
|
|
491
490
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
492
491
|
* number of milliseconds.
|
|
493
|
-
*/ static fromMillis(t: any):
|
|
492
|
+
*/ static fromMillis(t: any): gt;
|
|
494
493
|
/**
|
|
495
494
|
* Creates a new timestamp.
|
|
496
495
|
*
|
|
@@ -537,26 +536,26 @@ declare class _t {
|
|
|
537
536
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
538
537
|
*/ valueOf(): string;
|
|
539
538
|
}
|
|
540
|
-
declare class
|
|
539
|
+
declare class kr {
|
|
541
540
|
/** @hideconstructor */
|
|
542
541
|
constructor(t: any, n: any);
|
|
543
542
|
_firestore: any;
|
|
544
543
|
_transaction: any;
|
|
545
|
-
_dataReader:
|
|
544
|
+
_dataReader: Ve;
|
|
546
545
|
/**
|
|
547
546
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
548
547
|
*
|
|
549
548
|
* @param documentRef - A reference to the document to be read.
|
|
550
549
|
* @returns A `DocumentSnapshot` with the read data.
|
|
551
550
|
*/ get(t: any): any;
|
|
552
|
-
set(t: any, n: any, e: any):
|
|
553
|
-
update(t: any, n: any, e: any, ...r: any[]):
|
|
551
|
+
set(t: any, n: any, e: any): kr;
|
|
552
|
+
update(t: any, n: any, e: any, ...r: any[]): kr;
|
|
554
553
|
/**
|
|
555
554
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
556
555
|
*
|
|
557
556
|
* @param documentRef - A reference to the document to be deleted.
|
|
558
557
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
559
|
-
*/ delete(t: any):
|
|
558
|
+
*/ delete(t: any): kr;
|
|
560
559
|
}
|
|
561
560
|
/**
|
|
562
561
|
* @license
|
|
@@ -581,22 +580,22 @@ declare class Ur {
|
|
|
581
580
|
* provides methods for adding writes to the write batch. None of the writes
|
|
582
581
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
583
582
|
* called.
|
|
584
|
-
*/ declare class
|
|
583
|
+
*/ declare class Fr {
|
|
585
584
|
/** @hideconstructor */
|
|
586
585
|
constructor(t: any, n: any);
|
|
587
586
|
_firestore: any;
|
|
588
587
|
_commitHandler: any;
|
|
589
588
|
_mutations: any[];
|
|
590
589
|
_committed: boolean;
|
|
591
|
-
_dataReader:
|
|
592
|
-
set(t: any, n: any, e: any):
|
|
593
|
-
update(t: any, n: any, e: any, ...r: any[]):
|
|
590
|
+
_dataReader: Ve;
|
|
591
|
+
set(t: any, n: any, e: any): Fr;
|
|
592
|
+
update(t: any, n: any, e: any, ...r: any[]): Fr;
|
|
594
593
|
/**
|
|
595
594
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
596
595
|
*
|
|
597
596
|
* @param documentRef - A reference to the document to be deleted.
|
|
598
597
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
599
|
-
*/ delete(t: any):
|
|
598
|
+
*/ delete(t: any): Fr;
|
|
600
599
|
/**
|
|
601
600
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
602
601
|
*
|
|
@@ -625,7 +624,7 @@ declare class Ur {
|
|
|
625
624
|
* @throws Error - If the provided input is not a valid Firestore document.
|
|
626
625
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
627
626
|
* newly created document after it has been written to the backend.
|
|
628
|
-
*/ declare function
|
|
627
|
+
*/ declare function Pr(t: any, n: any): Promise<he>;
|
|
629
628
|
/**
|
|
630
629
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
631
630
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -636,7 +635,7 @@ declare class Ur {
|
|
|
636
635
|
* @param elements - The elements to remove from the array.
|
|
637
636
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
638
637
|
* `updateDoc()`
|
|
639
|
-
*/ declare function
|
|
638
|
+
*/ declare function Nr(...t: any[]): qe;
|
|
640
639
|
/**
|
|
641
640
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
642
641
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -648,8 +647,8 @@ declare class Ur {
|
|
|
648
647
|
* @param elements - The elements to union into the array.
|
|
649
648
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
650
649
|
* `updateDoc()`.
|
|
651
|
-
*/ declare function
|
|
652
|
-
declare function
|
|
650
|
+
*/ declare function Dr(...t: any[]): xe;
|
|
651
|
+
declare function de(t: any, n: any, ...e: any[]): fe;
|
|
653
652
|
/**
|
|
654
653
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
655
654
|
* database that are contained in a collection or subcollection with the
|
|
@@ -660,7 +659,7 @@ declare function fe(t: any, n: any, ...e: any[]): le;
|
|
|
660
659
|
* collection or subcollection with this ID as the last segment of its path
|
|
661
660
|
* will be included. Cannot contain a slash.
|
|
662
661
|
* @returns The created `Query`.
|
|
663
|
-
*/ declare function
|
|
662
|
+
*/ declare function we(t: any, n: any): le;
|
|
664
663
|
/**
|
|
665
664
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
666
665
|
*
|
|
@@ -673,7 +672,7 @@ declare function fe(t: any, n: any, ...e: any[]): le;
|
|
|
673
672
|
* @param port - the emulator port (ex: 9000).
|
|
674
673
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
675
674
|
* Security Rules.
|
|
676
|
-
*/ declare function
|
|
675
|
+
*/ declare function ce(t: any, n: any, e: any, r?: {}): void;
|
|
677
676
|
/**
|
|
678
677
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
679
678
|
*
|
|
@@ -685,7 +684,7 @@ declare function fe(t: any, n: any, ...e: any[]): le;
|
|
|
685
684
|
* @param reference - A reference to the document to delete.
|
|
686
685
|
* @returns A `Promise` resolved once the document has been successfully
|
|
687
686
|
* deleted from the backend.
|
|
688
|
-
*/ declare function
|
|
687
|
+
*/ declare function Ar(t: any): Promise<void>;
|
|
689
688
|
/**
|
|
690
689
|
* @license
|
|
691
690
|
* Copyright 2020 Google LLC
|
|
@@ -705,14 +704,14 @@ declare function fe(t: any, n: any, ...e: any[]): le;
|
|
|
705
704
|
/**
|
|
706
705
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
707
706
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
708
|
-
*/ declare function
|
|
709
|
-
declare function
|
|
707
|
+
*/ declare function Rr(): $e;
|
|
708
|
+
declare function me(t: any, n: any, ...e: any[]): he;
|
|
710
709
|
/**
|
|
711
710
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
712
711
|
* It can be used in queries to sort or filter by the document ID.
|
|
713
|
-
*/ declare function
|
|
714
|
-
declare function
|
|
715
|
-
declare function
|
|
712
|
+
*/ declare function ge(): _e;
|
|
713
|
+
declare function wr(...t: any[]): fr;
|
|
714
|
+
declare function dr(...t: any[]): fr;
|
|
716
715
|
/**
|
|
717
716
|
* Reads the document referred to by the specified document reference.
|
|
718
717
|
*
|
|
@@ -725,7 +724,7 @@ declare function fr(...t: any[]): lr;
|
|
|
725
724
|
* @param reference - The reference of the document to fetch.
|
|
726
725
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the current
|
|
727
726
|
* document contents.
|
|
728
|
-
*/ declare function br(t: any): Promise<
|
|
727
|
+
*/ declare function br(t: any): Promise<He>;
|
|
729
728
|
/**
|
|
730
729
|
* Executes the query and returns the results as a {@link QuerySnapshot}.
|
|
731
730
|
*
|
|
@@ -737,7 +736,7 @@ declare function fr(...t: any[]): lr;
|
|
|
737
736
|
*
|
|
738
737
|
* @param query - The `Query` to execute.
|
|
739
738
|
* @returns A Promise that will be resolved with the results of the query.
|
|
740
|
-
*/ declare function
|
|
739
|
+
*/ declare function Er(t: any): Promise<Je>;
|
|
741
740
|
/**
|
|
742
741
|
* Returns the existing `Firestore` instance that is associated with the
|
|
743
742
|
* provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
|
|
@@ -746,7 +745,7 @@ declare function fr(...t: any[]): lr;
|
|
|
746
745
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned `Firestore`
|
|
747
746
|
* instance is associated with.
|
|
748
747
|
* @returns The `Firestore` instance of the provided app.
|
|
749
|
-
*/ declare function
|
|
748
|
+
*/ declare function ue(n?: import("@firebase/app").FirebaseApp): import("../../lite").Firestore;
|
|
750
749
|
/**
|
|
751
750
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
752
751
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -765,14 +764,14 @@ declare function fr(...t: any[]): lr;
|
|
|
765
764
|
* @param n - The value to increment by.
|
|
766
765
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
767
766
|
* `updateDoc()`
|
|
768
|
-
*/ declare function
|
|
769
|
-
declare function
|
|
767
|
+
*/ declare function $r(t: any): Oe;
|
|
768
|
+
declare function oe(t: any, n: any): import("../../lite").Firestore;
|
|
770
769
|
/**
|
|
771
770
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
772
771
|
*
|
|
773
772
|
* @param limit - The maximum number of items to return.
|
|
774
773
|
* @returns The created {@link Query}.
|
|
775
|
-
*/ declare function
|
|
774
|
+
*/ declare function ur(t: any): or;
|
|
776
775
|
/**
|
|
777
776
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
778
777
|
*
|
|
@@ -781,7 +780,7 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
|
|
|
781
780
|
*
|
|
782
781
|
* @param limit - The maximum number of items to return.
|
|
783
782
|
* @returns The created {@link Query}.
|
|
784
|
-
*/ declare function
|
|
783
|
+
*/ declare function cr(t: any): or;
|
|
785
784
|
/**
|
|
786
785
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
787
786
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -790,7 +789,7 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
|
|
|
790
789
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
791
790
|
* not specified, order will be ascending.
|
|
792
791
|
* @returns The created {@link Query}.
|
|
793
|
-
*/ declare function
|
|
792
|
+
*/ declare function ir(t: any, n?: string): sr;
|
|
794
793
|
/**
|
|
795
794
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
796
795
|
* additional query constraints.
|
|
@@ -799,7 +798,7 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
|
|
|
799
798
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
800
799
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
801
800
|
* existing or new constraints.
|
|
802
|
-
*/ declare function
|
|
801
|
+
*/ declare function nr(t: any, ...n: any[]): any;
|
|
803
802
|
/**
|
|
804
803
|
* Returns true if the provided queries point to the same collection and apply
|
|
805
804
|
* the same constraints.
|
|
@@ -808,7 +807,7 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
|
|
|
808
807
|
* @param right - A `Query` to compare.
|
|
809
808
|
* @returns true if the references point to the same location in the same
|
|
810
809
|
* Firestore database.
|
|
811
|
-
*/ declare function
|
|
810
|
+
*/ declare function ye(t: any, n: any): boolean;
|
|
812
811
|
/**
|
|
813
812
|
* Returns true if the provided references are equal.
|
|
814
813
|
*
|
|
@@ -816,7 +815,7 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
|
|
|
816
815
|
* @param right - A reference to compare.
|
|
817
816
|
* @returns true if the references point to the same location in the same
|
|
818
817
|
* Firestore database.
|
|
819
|
-
*/ declare function
|
|
818
|
+
*/ declare function pe(t: any, n: any): boolean;
|
|
820
819
|
/**
|
|
821
820
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
822
821
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -833,12 +832,12 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
|
|
|
833
832
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
834
833
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
835
834
|
* rejected promise with the corresponding failure error is returned.
|
|
836
|
-
*/ declare function
|
|
835
|
+
*/ declare function jr(t: any, n: any): Promise<any>;
|
|
837
836
|
/**
|
|
838
837
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
839
838
|
* include a server-generated timestamp in the written data.
|
|
840
|
-
*/ declare function
|
|
841
|
-
declare function
|
|
839
|
+
*/ declare function Vr(): Se;
|
|
840
|
+
declare function Tr(t: any, n: any, e: any): Promise<void>;
|
|
842
841
|
/**
|
|
843
842
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
844
843
|
*
|
|
@@ -851,16 +850,16 @@ declare function Er(t: any, n: any, e: any): Promise<void>;
|
|
|
851
850
|
* <li>`error` to log errors only.</li>
|
|
852
851
|
* <li><code>`silent` to turn off logging.</li>
|
|
853
852
|
* </ul>
|
|
854
|
-
*/ declare function
|
|
853
|
+
*/ declare function w(t: any): void;
|
|
855
854
|
/**
|
|
856
855
|
* Returns true if the provided snapshots are equal.
|
|
857
856
|
*
|
|
858
857
|
* @param left - A snapshot to compare.
|
|
859
858
|
* @param right - A snapshot to compare.
|
|
860
859
|
* @returns true if the snapshots are equal.
|
|
861
|
-
*/ declare function
|
|
862
|
-
declare function
|
|
863
|
-
declare function
|
|
860
|
+
*/ declare function Xe(t: any, n: any): any;
|
|
861
|
+
declare function lr(...t: any[]): ar;
|
|
862
|
+
declare function hr(...t: any[]): ar;
|
|
864
863
|
/**
|
|
865
864
|
* Terminates the provided `Firestore` instance.
|
|
866
865
|
*
|
|
@@ -880,8 +879,8 @@ declare function ar(...t: any[]): cr;
|
|
|
880
879
|
* @param firestore - The `Firestore` instance to terminate.
|
|
881
880
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
882
881
|
* terminated.
|
|
883
|
-
*/ declare function
|
|
884
|
-
declare function
|
|
882
|
+
*/ declare function ae(t: any): any;
|
|
883
|
+
declare function Ir(t: any, n: any, e: any, ...r: any[]): Promise<void>;
|
|
885
884
|
/**
|
|
886
885
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
887
886
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -892,7 +891,7 @@ declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
|
|
|
892
891
|
* "<=", "!=").
|
|
893
892
|
* @param value - The value for comparison
|
|
894
893
|
* @returns The created {@link Query}.
|
|
895
|
-
*/ declare function
|
|
894
|
+
*/ declare function rr(t: any, n: any, e: any): er;
|
|
896
895
|
/**
|
|
897
896
|
* Creates a write batch, used for performing multiple writes as a single
|
|
898
897
|
* atomic operation. The maximum number of writes allowed in a single WriteBatch
|
|
@@ -905,18 +904,18 @@ declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
|
|
|
905
904
|
*
|
|
906
905
|
* @returns A `WriteBatch` that can be used to atomically execute multiple
|
|
907
906
|
* writes.
|
|
908
|
-
*/ declare function
|
|
907
|
+
*/ declare function xr(t: any): Fr;
|
|
909
908
|
/**
|
|
910
909
|
* A dot-separated path for navigating sub-objects within a document.
|
|
911
910
|
* @internal
|
|
912
|
-
*/ declare class
|
|
911
|
+
*/ declare class tt extends J {
|
|
913
912
|
/**
|
|
914
913
|
* Returns true if the string could be used as a segment in a field path
|
|
915
914
|
* without escaping.
|
|
916
915
|
*/ static isValidIdentifier(t: any): boolean;
|
|
917
916
|
/**
|
|
918
917
|
* The field designating the key of a document.
|
|
919
|
-
*/ static keyField():
|
|
918
|
+
*/ static keyField(): tt;
|
|
920
919
|
/**
|
|
921
920
|
* Parses a field string from the given server-formatted string.
|
|
922
921
|
*
|
|
@@ -926,9 +925,9 @@ declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
|
|
|
926
925
|
*
|
|
927
926
|
* TODO(b/37244157): we should make this more strict. Right now, it allows
|
|
928
927
|
* non-identifier path components, even if they aren't escaped.
|
|
929
|
-
*/ static fromServerFormat(t: any):
|
|
930
|
-
static emptyPath():
|
|
931
|
-
construct(t: any, n: any, e: any):
|
|
928
|
+
*/ static fromServerFormat(t: any): tt;
|
|
929
|
+
static emptyPath(): tt;
|
|
930
|
+
construct(t: any, n: any, e: any): tt;
|
|
932
931
|
canonicalString(): any;
|
|
933
932
|
toString(): any;
|
|
934
933
|
/**
|
|
@@ -944,7 +943,7 @@ declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
|
|
|
944
943
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
945
944
|
* defaults can be supplied and the value can be checked for equality.
|
|
946
945
|
*/
|
|
947
|
-
declare class
|
|
946
|
+
declare class se {
|
|
948
947
|
constructor(t: any);
|
|
949
948
|
host: any;
|
|
950
949
|
ssl: any;
|
|
@@ -961,22 +960,23 @@ declare class re {
|
|
|
961
960
|
* Represents the database ID a Firestore client is associated with.
|
|
962
961
|
* @internal
|
|
963
962
|
*/
|
|
964
|
-
declare class
|
|
963
|
+
declare class K {
|
|
965
964
|
constructor(t: any, n: any);
|
|
966
965
|
projectId: any;
|
|
967
966
|
database: any;
|
|
968
967
|
get isDefaultDatabase(): boolean;
|
|
969
968
|
isEqual(t: any): boolean;
|
|
970
969
|
}
|
|
970
|
+
import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
971
971
|
/**
|
|
972
972
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
973
973
|
* classes.
|
|
974
|
-
*/ declare class
|
|
974
|
+
*/ declare class Ve {
|
|
975
975
|
constructor(t: any, n: any, e: any);
|
|
976
976
|
databaseId: any;
|
|
977
977
|
ignoreUndefinedProperties: any;
|
|
978
978
|
q: any;
|
|
979
|
-
/** Creates a new top-level parse context. */ ht(t: any, n: any, e: any, r?: boolean):
|
|
979
|
+
/** Creates a new top-level parse context. */ ht(t: any, n: any, e: any, r?: boolean): Re;
|
|
980
980
|
}
|
|
981
981
|
declare class qe extends be {
|
|
982
982
|
constructor(t: any, n: any);
|
|
@@ -984,61 +984,61 @@ declare class qe extends be {
|
|
|
984
984
|
_toFieldTransform(t: any): bn;
|
|
985
985
|
isEqual(t: any): boolean;
|
|
986
986
|
}
|
|
987
|
-
declare class
|
|
987
|
+
declare class xe extends be {
|
|
988
988
|
constructor(t: any, n: any);
|
|
989
989
|
lt: any;
|
|
990
990
|
_toFieldTransform(t: any): bn;
|
|
991
991
|
isEqual(t: any): boolean;
|
|
992
992
|
}
|
|
993
|
-
declare class
|
|
993
|
+
declare class $e extends be {
|
|
994
994
|
_toFieldTransform(t: any): null;
|
|
995
995
|
isEqual(t: any): boolean;
|
|
996
996
|
}
|
|
997
|
-
declare class
|
|
997
|
+
declare class fr extends tr {
|
|
998
998
|
constructor(t: any, n: any, e: any);
|
|
999
999
|
type: any;
|
|
1000
|
-
|
|
1000
|
+
bt: any;
|
|
1001
1001
|
Et: any;
|
|
1002
|
-
_apply(t: any):
|
|
1002
|
+
_apply(t: any): le;
|
|
1003
1003
|
}
|
|
1004
|
-
declare class
|
|
1004
|
+
declare class Oe extends be {
|
|
1005
1005
|
constructor(t: any, n: any);
|
|
1006
1006
|
ft: any;
|
|
1007
1007
|
_toFieldTransform(t: any): bn;
|
|
1008
1008
|
isEqual(t: any): boolean;
|
|
1009
1009
|
}
|
|
1010
|
-
declare class
|
|
1010
|
+
declare class or extends tr {
|
|
1011
1011
|
constructor(t: any, n: any, e: any);
|
|
1012
1012
|
type: any;
|
|
1013
1013
|
gt: any;
|
|
1014
|
-
|
|
1015
|
-
_apply(t: any):
|
|
1014
|
+
vt: any;
|
|
1015
|
+
_apply(t: any): le;
|
|
1016
1016
|
}
|
|
1017
|
-
declare class
|
|
1017
|
+
declare class sr extends tr {
|
|
1018
1018
|
constructor(t: any, n: any);
|
|
1019
1019
|
dt: any;
|
|
1020
1020
|
_t: any;
|
|
1021
1021
|
type: string;
|
|
1022
|
-
_apply(t: any):
|
|
1022
|
+
_apply(t: any): le;
|
|
1023
1023
|
}
|
|
1024
|
-
declare class
|
|
1024
|
+
declare class Se extends be {
|
|
1025
1025
|
_toFieldTransform(t: any): bn;
|
|
1026
1026
|
isEqual(t: any): boolean;
|
|
1027
1027
|
}
|
|
1028
|
-
declare class
|
|
1028
|
+
declare class ar extends tr {
|
|
1029
1029
|
constructor(t: any, n: any, e: any);
|
|
1030
1030
|
type: any;
|
|
1031
|
-
|
|
1031
|
+
bt: any;
|
|
1032
1032
|
Et: any;
|
|
1033
|
-
_apply(t: any):
|
|
1033
|
+
_apply(t: any): le;
|
|
1034
1034
|
}
|
|
1035
|
-
declare class
|
|
1035
|
+
declare class er extends tr {
|
|
1036
1036
|
constructor(t: any, n: any, e: any);
|
|
1037
1037
|
dt: any;
|
|
1038
1038
|
wt: any;
|
|
1039
1039
|
yt: any;
|
|
1040
1040
|
type: string;
|
|
1041
|
-
_apply(t: any):
|
|
1041
|
+
_apply(t: any): le;
|
|
1042
1042
|
}
|
|
1043
1043
|
/**
|
|
1044
1044
|
* @license
|
|
@@ -1059,7 +1059,7 @@ declare class nr extends Ze {
|
|
|
1059
1059
|
/**
|
|
1060
1060
|
* Path represents an ordered sequence of string segments.
|
|
1061
1061
|
*/
|
|
1062
|
-
declare class
|
|
1062
|
+
declare class J {
|
|
1063
1063
|
static comparator(t: any, n: any): 0 | 1 | -1;
|
|
1064
1064
|
constructor(t: any, n: any, e: any);
|
|
1065
1065
|
segments: any;
|
|
@@ -1080,7 +1080,7 @@ declare class K {
|
|
|
1080
1080
|
forEach(t: any): void;
|
|
1081
1081
|
toArray(): any;
|
|
1082
1082
|
}
|
|
1083
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1083
|
+
/** A "context" object passed around while parsing user data. */ declare class Re {
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Initializes a ParseContext with the given source and path.
|
|
1086
1086
|
*
|
|
@@ -1108,11 +1108,11 @@ declare class K {
|
|
|
1108
1108
|
fieldMask: any;
|
|
1109
1109
|
get path(): any;
|
|
1110
1110
|
get tt(): any;
|
|
1111
|
-
/** Returns a new context with the specified settings overwritten. */ nt(t: any):
|
|
1112
|
-
et(t: any):
|
|
1113
|
-
it(t: any):
|
|
1114
|
-
ot(t: any):
|
|
1115
|
-
ut(t: any):
|
|
1111
|
+
/** Returns a new context with the specified settings overwritten. */ nt(t: any): Re;
|
|
1112
|
+
et(t: any): Re;
|
|
1113
|
+
it(t: any): Re;
|
|
1114
|
+
ot(t: any): Re;
|
|
1115
|
+
ut(t: any): U;
|
|
1116
1116
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1117
1117
|
Z(): void;
|
|
1118
1118
|
st(t: any): void;
|
|
@@ -1138,4 +1138,4 @@ declare class K {
|
|
|
1138
1138
|
field: any;
|
|
1139
1139
|
transform: any;
|
|
1140
1140
|
}
|
|
1141
|
-
export {
|
|
1141
|
+
export { ve as Bytes, fe as CollectionReference, he as DocumentReference, He as DocumentSnapshot, _e as FieldPath, be as FieldValue, ie as Firestore, U as FirestoreError, Ee as GeoPoint, le as Query, tr as QueryConstraint, Ke as QueryDocumentSnapshot, Je as QuerySnapshot, gt as Timestamp, kr as Transaction, Fr as WriteBatch, Pr as addDoc, Nr as arrayRemove, Dr as arrayUnion, de as collection, we as collectionGroup, ce as connectFirestoreEmulator, Ar as deleteDoc, Rr as deleteField, me as doc, ge as documentId, wr as endAt, dr as endBefore, br as getDoc, Er as getDocs, ue as getFirestore, $r as increment, oe as initializeFirestore, ur as limit, cr as limitToLast, ir as orderBy, nr as query, ye as queryEqual, pe as refEqual, jr as runTransaction, Vr as serverTimestamp, Tr as setDoc, w as setLogLevel, Xe as snapshotEqual, lr as startAfter, hr as startAt, ae as terminate, Ir as updateDoc, rr as where, xr as writeBatch };
|