@firebase/firestore 3.3.1 → 3.4.0-canary.774b2fc19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/firestore/compat/index.d.ts +1 -1
- package/dist/firestore/src/api/credentials.d.ts +64 -30
- package/dist/firestore/src/api/database.d.ts +2 -1
- package/dist/firestore/src/api.d.ts +2 -1
- package/dist/firestore/src/core/component_provider.d.ts +2 -1
- package/dist/firestore/src/core/firestore_client.d.ts +4 -3
- package/dist/firestore/src/lite-api/components.d.ts +3 -1
- package/dist/firestore/src/lite-api/database.d.ts +4 -2
- package/dist/firestore/src/platform/browser/webchannel_connection.d.ts +1 -1
- package/dist/firestore/src/platform/node/grpc_connection.d.ts +3 -3
- package/dist/firestore/src/remote/connection.d.ts +3 -3
- package/dist/firestore/src/remote/datastore.d.ts +2 -1
- package/dist/firestore/src/remote/persistent_stream.d.ts +9 -7
- package/dist/firestore/src/remote/rest_connection.d.ts +4 -4
- package/dist/firestore/test/integration/remote/stream.test.d.ts +2 -2
- package/dist/firestore/test/integration/util/internal_helpers.d.ts +5 -5
- package/dist/firestore/test/unit/remote/rest_connection.test.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm2017.js +3413 -3359
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +3688 -3639
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +195 -109
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +194 -105
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +3391 -3337
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +34 -20
- package/dist/lite/firestore/compat/index.d.ts +1 -1
- package/dist/lite/firestore/src/api/credentials.d.ts +64 -30
- package/dist/lite/firestore/src/api/database.d.ts +2 -1
- package/dist/lite/firestore/src/api.d.ts +2 -1
- package/dist/lite/firestore/src/core/component_provider.d.ts +2 -1
- package/dist/lite/firestore/src/core/firestore_client.d.ts +4 -3
- package/dist/lite/firestore/src/lite-api/components.d.ts +3 -1
- package/dist/lite/firestore/src/lite-api/database.d.ts +4 -2
- package/dist/lite/firestore/src/platform/browser/webchannel_connection.d.ts +1 -1
- package/dist/lite/firestore/src/platform/node/grpc_connection.d.ts +3 -3
- package/dist/lite/firestore/src/remote/connection.d.ts +3 -3
- package/dist/lite/firestore/src/remote/datastore.d.ts +2 -1
- package/dist/lite/firestore/src/remote/persistent_stream.d.ts +9 -7
- package/dist/lite/firestore/src/remote/rest_connection.d.ts +4 -4
- package/dist/lite/firestore/test/integration/remote/stream.test.d.ts +2 -2
- package/dist/lite/firestore/test/integration/util/internal_helpers.d.ts +5 -5
- package/dist/lite/firestore/test/unit/remote/rest_connection.test.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +1379 -1365
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +934 -925
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +96 -61
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +96 -61
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +937 -923
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +14 -13
- package/dist/lite/packages/firestore/babel-register.d.ts +1 -0
- package/dist/lite/packages/firestore/compat/index.d.ts +1 -1
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +150 -149
- package/dist/lite/packages/firestore/src/api/credentials.d.ts +64 -30
- package/dist/lite/packages/firestore/src/api/database.d.ts +2 -1
- package/dist/lite/packages/firestore/src/api.d.ts +2 -1
- package/dist/lite/packages/firestore/src/core/component_provider.d.ts +2 -1
- package/dist/lite/packages/firestore/src/core/firestore_client.d.ts +4 -3
- package/dist/lite/packages/firestore/src/lite-api/components.d.ts +3 -1
- package/dist/lite/packages/firestore/src/lite-api/database.d.ts +4 -2
- package/dist/lite/packages/firestore/src/platform/browser/webchannel_connection.d.ts +1 -1
- package/dist/lite/packages/firestore/src/platform/node/grpc_connection.d.ts +3 -3
- package/dist/lite/packages/firestore/src/remote/connection.d.ts +3 -3
- package/dist/lite/packages/firestore/src/remote/datastore.d.ts +2 -1
- package/dist/lite/packages/firestore/src/remote/persistent_stream.d.ts +9 -7
- package/dist/lite/packages/firestore/src/remote/rest_connection.d.ts +4 -4
- package/dist/lite/packages/firestore/test/integration/remote/stream.test.d.ts +2 -2
- package/dist/lite/packages/firestore/test/integration/util/internal_helpers.d.ts +5 -5
- package/dist/lite/packages/firestore/test/unit/remote/rest_connection.test.d.ts +1 -1
- package/dist/lite/private.d.ts +14 -13
- package/dist/packages/firestore/babel-register.d.ts +1 -0
- package/dist/packages/firestore/compat/index.d.ts +1 -1
- package/dist/packages/firestore/dist/index.esm2017.d.ts +211 -195
- package/dist/packages/firestore/src/api/credentials.d.ts +64 -30
- package/dist/packages/firestore/src/api/database.d.ts +2 -1
- package/dist/packages/firestore/src/api.d.ts +2 -1
- package/dist/packages/firestore/src/core/component_provider.d.ts +2 -1
- package/dist/packages/firestore/src/core/firestore_client.d.ts +4 -3
- package/dist/packages/firestore/src/lite-api/components.d.ts +3 -1
- package/dist/packages/firestore/src/lite-api/database.d.ts +4 -2
- package/dist/packages/firestore/src/platform/browser/webchannel_connection.d.ts +1 -1
- package/dist/packages/firestore/src/platform/node/grpc_connection.d.ts +3 -3
- package/dist/packages/firestore/src/remote/connection.d.ts +3 -3
- package/dist/packages/firestore/src/remote/datastore.d.ts +2 -1
- package/dist/packages/firestore/src/remote/persistent_stream.d.ts +9 -7
- package/dist/packages/firestore/src/remote/rest_connection.d.ts +4 -4
- package/dist/packages/firestore/test/integration/remote/stream.test.d.ts +2 -2
- package/dist/packages/firestore/test/integration/util/internal_helpers.d.ts +5 -5
- package/dist/packages/firestore/test/unit/remote/rest_connection.test.d.ts +1 -1
- package/dist/private.d.ts +24 -19
- package/package.json +10 -10
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
* to the user.
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
|
-
*/ declare class
|
|
22
|
+
*/ declare class rh {
|
|
23
23
|
convertValue(t: any, e?: string): any;
|
|
24
24
|
convertObject(t: any, e: any): {};
|
|
25
|
-
convertGeoPoint(t: any):
|
|
25
|
+
convertGeoPoint(t: any): su;
|
|
26
26
|
convertArray(t: any, e: any): any;
|
|
27
27
|
convertServerTimestamp(t: any, e: any): any;
|
|
28
|
-
convertTimestamp(t: any):
|
|
29
|
-
convertDocumentKey(t: any, e: any):
|
|
28
|
+
convertTimestamp(t: any): at;
|
|
29
|
+
convertDocumentKey(t: any, e: any): St;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* @license
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
*/
|
|
47
47
|
/**
|
|
48
48
|
* An immutable object representing an array of bytes.
|
|
49
|
-
*/ declare class
|
|
49
|
+
*/ declare class eu {
|
|
50
50
|
/**
|
|
51
51
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
52
52
|
* bytes.
|
|
53
53
|
*
|
|
54
54
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
55
|
-
*/ static fromBase64String(t: any):
|
|
55
|
+
*/ static fromBase64String(t: any): eu;
|
|
56
56
|
/**
|
|
57
57
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
58
58
|
*
|
|
59
59
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
60
|
-
*/ static fromUint8Array(t: any):
|
|
60
|
+
*/ static fromUint8Array(t: any): eu;
|
|
61
61
|
/** @hideconstructor */
|
|
62
62
|
constructor(t: any);
|
|
63
63
|
_byteString: any;
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
* See the License for the specific language governing permissions and
|
|
100
100
|
* limitations under the License.
|
|
101
101
|
*/
|
|
102
|
-
/** DOMException error code constants. */ declare const
|
|
102
|
+
/** DOMException error code constants. */ declare const Fc: -1;
|
|
103
103
|
/**
|
|
104
104
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
105
105
|
* document references, and querying for documents (using {@link query}).
|
|
106
|
-
*/ declare class
|
|
106
|
+
*/ declare class vc extends Pc {
|
|
107
107
|
_path: any;
|
|
108
108
|
/** The collection's identifier. */ get id(): any;
|
|
109
109
|
/**
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
/**
|
|
114
114
|
* A reference to the containing `DocumentReference` if this is a
|
|
115
115
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
116
|
-
*/ get parent():
|
|
116
|
+
*/ get parent(): bc | null;
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
* @license
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
136
136
|
* and can be used to write, read, or listen to the location. The document at
|
|
137
137
|
* the referenced location may or may not exist.
|
|
138
|
-
*/ declare class
|
|
138
|
+
*/ declare class bc {
|
|
139
139
|
/** @hideconstructor */
|
|
140
140
|
constructor(t: any, e: any, n: any);
|
|
141
141
|
converter: any;
|
|
@@ -153,8 +153,8 @@
|
|
|
153
153
|
*/ get path(): any;
|
|
154
154
|
/**
|
|
155
155
|
* The collection this `DocumentReference` belongs to.
|
|
156
|
-
*/ get parent():
|
|
157
|
-
withConverter(t: any):
|
|
156
|
+
*/ get parent(): vc;
|
|
157
|
+
withConverter(t: any): bc;
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
160
160
|
* A `DocumentSnapshot` contains data read from a document in your Firestore
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
165
165
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
166
166
|
* explicitly verify a document's existence.
|
|
167
|
-
*/ declare class
|
|
167
|
+
*/ declare class xu extends Du {
|
|
168
168
|
/** @hideconstructor protected */
|
|
169
169
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
170
170
|
_firestoreImpl: any;
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
211
211
|
* name is provided, the path will point to a nested field in a document.
|
|
212
212
|
*/
|
|
213
|
-
declare class
|
|
213
|
+
declare class Zc {
|
|
214
214
|
/**
|
|
215
215
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
216
216
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -218,7 +218,7 @@ declare class Ja {
|
|
|
218
218
|
* @param fieldNames - A list of field names.
|
|
219
219
|
*/
|
|
220
220
|
constructor(...t: any[]);
|
|
221
|
-
_internalPath:
|
|
221
|
+
_internalPath: _t;
|
|
222
222
|
/**
|
|
223
223
|
* Returns true if this `FieldPath` is equal to the provided one.
|
|
224
224
|
*
|
|
@@ -245,7 +245,7 @@ declare class Ja {
|
|
|
245
245
|
/**
|
|
246
246
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
247
247
|
* or `update()`.
|
|
248
|
-
*/ declare class
|
|
248
|
+
*/ declare class nu {
|
|
249
249
|
/**
|
|
250
250
|
* @param _methodName - The public API endpoint that returns this class.
|
|
251
251
|
* @hideconstructor
|
|
@@ -258,8 +258,8 @@ declare class Ja {
|
|
|
258
258
|
*
|
|
259
259
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
260
260
|
*/
|
|
261
|
-
declare class
|
|
262
|
-
_queue:
|
|
261
|
+
declare class Oc extends Ac {
|
|
262
|
+
_queue: kc;
|
|
263
263
|
}
|
|
264
264
|
/** An error returned by a Firestore operation. */ declare class j extends Error {
|
|
265
265
|
/** @hideconstructor */
|
|
@@ -288,7 +288,7 @@ declare class ka extends Ta {
|
|
|
288
288
|
*
|
|
289
289
|
* Latitude values are in the range of [-90, 90].
|
|
290
290
|
* Longitude values are in the range of [-180, 180].
|
|
291
|
-
*/ declare class
|
|
291
|
+
*/ declare class su {
|
|
292
292
|
/**
|
|
293
293
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
294
294
|
* longitude values.
|
|
@@ -319,7 +319,7 @@ declare class ka extends Ta {
|
|
|
319
319
|
* with an underscore.
|
|
320
320
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
321
321
|
}
|
|
322
|
-
declare class
|
|
322
|
+
declare class $c {
|
|
323
323
|
_progressObserver: {};
|
|
324
324
|
_taskCompletionResolver: Q;
|
|
325
325
|
_lastProgress: {
|
|
@@ -371,7 +371,7 @@ declare class Na {
|
|
|
371
371
|
/**
|
|
372
372
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
373
373
|
* construct refined `Query` objects by adding filters and ordering.
|
|
374
|
-
*/ declare class
|
|
374
|
+
*/ declare class Pc {
|
|
375
375
|
/** @hideconstructor protected */
|
|
376
376
|
constructor(t: any, e: any, n: any);
|
|
377
377
|
converter: any;
|
|
@@ -379,7 +379,7 @@ declare class Na {
|
|
|
379
379
|
/** The type of this Firestore reference. */
|
|
380
380
|
type: string;
|
|
381
381
|
firestore: any;
|
|
382
|
-
withConverter(t: any):
|
|
382
|
+
withConverter(t: any): Pc;
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
385
385
|
* A `QueryConstraint` is used to narrow the set of documents returned by a
|
|
@@ -388,7 +388,7 @@ declare class Na {
|
|
|
388
388
|
* endBefore:1}, {@link (endAt:1)}, {@link limit} or {@link limitToLast} and
|
|
389
389
|
* can then be passed to {@link query} to create a new query instance that
|
|
390
390
|
* also contains this `QueryConstraint`.
|
|
391
|
-
*/ declare class
|
|
391
|
+
*/ declare class Bu {
|
|
392
392
|
}
|
|
393
393
|
/**
|
|
394
394
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -400,7 +400,7 @@ declare class Na {
|
|
|
400
400
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
401
401
|
* `exists` property will always be true and `data()` will never return
|
|
402
402
|
* 'undefined'.
|
|
403
|
-
*/ declare class
|
|
403
|
+
*/ declare class $u extends xu {
|
|
404
404
|
}
|
|
405
405
|
/**
|
|
406
406
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -408,13 +408,13 @@ declare class Na {
|
|
|
408
408
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
409
409
|
* number of documents can be determined via the `empty` and `size`
|
|
410
410
|
* properties.
|
|
411
|
-
*/ declare class
|
|
411
|
+
*/ declare class Fu {
|
|
412
412
|
/** @hideconstructor */
|
|
413
413
|
constructor(t: any, e: any, n: any, s: any);
|
|
414
414
|
_firestore: any;
|
|
415
415
|
_userDataWriter: any;
|
|
416
416
|
_snapshot: any;
|
|
417
|
-
metadata:
|
|
417
|
+
metadata: ku;
|
|
418
418
|
query: any;
|
|
419
419
|
/** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
|
|
420
420
|
/** The number of documents in the `QuerySnapshot`. */ get size(): any;
|
|
@@ -456,7 +456,7 @@ declare class Na {
|
|
|
456
456
|
*/
|
|
457
457
|
/**
|
|
458
458
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
459
|
-
*/ declare class
|
|
459
|
+
*/ declare class ku {
|
|
460
460
|
/** @hideconstructor */
|
|
461
461
|
constructor(t: any, e: any);
|
|
462
462
|
hasPendingWrites: any;
|
|
@@ -498,19 +498,19 @@ declare class Na {
|
|
|
498
498
|
* For examples and further specifications, refer to the
|
|
499
499
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
500
500
|
*/
|
|
501
|
-
declare class
|
|
501
|
+
declare class at {
|
|
502
502
|
/**
|
|
503
503
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
504
504
|
*
|
|
505
505
|
* @returns a new timestamp representing the current date.
|
|
506
|
-
*/ static now():
|
|
506
|
+
*/ static now(): at;
|
|
507
507
|
/**
|
|
508
508
|
* Creates a new timestamp from the given date.
|
|
509
509
|
*
|
|
510
510
|
* @param date - The date to initialize the `Timestamp` from.
|
|
511
511
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
512
512
|
* date.
|
|
513
|
-
*/ static fromDate(t: any):
|
|
513
|
+
*/ static fromDate(t: any): at;
|
|
514
514
|
/**
|
|
515
515
|
* Creates a new timestamp from the given number of milliseconds.
|
|
516
516
|
*
|
|
@@ -518,7 +518,7 @@ declare class it {
|
|
|
518
518
|
* 1970-01-01T00:00:00Z.
|
|
519
519
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
520
520
|
* number of milliseconds.
|
|
521
|
-
*/ static fromMillis(t: any):
|
|
521
|
+
*/ static fromMillis(t: any): at;
|
|
522
522
|
/**
|
|
523
523
|
* Creates a new timestamp.
|
|
524
524
|
*
|
|
@@ -565,11 +565,11 @@ declare class it {
|
|
|
565
565
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
566
566
|
*/ valueOf(): string;
|
|
567
567
|
}
|
|
568
|
-
declare const
|
|
568
|
+
declare const bh_base: {
|
|
569
569
|
new (t: any, e: any): {
|
|
570
570
|
_firestore: any;
|
|
571
571
|
_transaction: any;
|
|
572
|
-
_dataReader:
|
|
572
|
+
_dataReader: uu;
|
|
573
573
|
/**
|
|
574
574
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
575
575
|
*
|
|
@@ -608,7 +608,7 @@ declare const Ih_base: {
|
|
|
608
608
|
* The `Transaction` object passed to a transaction's `updateFunction` provides
|
|
609
609
|
* the methods to read and write data within the transaction context. See
|
|
610
610
|
* {@link runTransaction}.
|
|
611
|
-
*/ declare class
|
|
611
|
+
*/ declare class bh extends bh_base {
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
614
|
* @license
|
|
@@ -633,22 +633,22 @@ declare const Ih_base: {
|
|
|
633
633
|
* provides methods for adding writes to the write batch. None of the writes
|
|
634
634
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
635
635
|
* called.
|
|
636
|
-
*/ declare class
|
|
636
|
+
*/ declare class ch {
|
|
637
637
|
/** @hideconstructor */
|
|
638
638
|
constructor(t: any, e: any);
|
|
639
639
|
_firestore: any;
|
|
640
640
|
_commitHandler: any;
|
|
641
641
|
_mutations: any[];
|
|
642
642
|
_committed: boolean;
|
|
643
|
-
_dataReader:
|
|
644
|
-
set(t: any, e: any, n: any):
|
|
645
|
-
update(t: any, e: any, n: any, ...s: any[]):
|
|
643
|
+
_dataReader: uu;
|
|
644
|
+
set(t: any, e: any, n: any): ch;
|
|
645
|
+
update(t: any, e: any, n: any, ...s: any[]): ch;
|
|
646
646
|
/**
|
|
647
647
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
648
648
|
*
|
|
649
649
|
* @param documentRef - A reference to the document to be deleted.
|
|
650
650
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
651
|
-
*/ delete(t: any):
|
|
651
|
+
*/ delete(t: any): ch;
|
|
652
652
|
/**
|
|
653
653
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
654
654
|
*
|
|
@@ -668,7 +668,7 @@ declare const Ih_base: {
|
|
|
668
668
|
* Represents the database ID a Firestore client is associated with.
|
|
669
669
|
* @internal
|
|
670
670
|
*/
|
|
671
|
-
declare class
|
|
671
|
+
declare class dc {
|
|
672
672
|
constructor(t: any, e: any);
|
|
673
673
|
projectId: any;
|
|
674
674
|
database: any;
|
|
@@ -693,9 +693,9 @@ declare class ha {
|
|
|
693
693
|
*/
|
|
694
694
|
/**
|
|
695
695
|
* @internal
|
|
696
|
-
*/ declare class
|
|
697
|
-
static fromPath(t: any):
|
|
698
|
-
static fromName(t: any):
|
|
696
|
+
*/ declare class St {
|
|
697
|
+
static fromPath(t: any): St;
|
|
698
|
+
static fromName(t: any): St;
|
|
699
699
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
700
700
|
static isDocumentKey(t: any): boolean;
|
|
701
701
|
/**
|
|
@@ -703,13 +703,22 @@ declare class ha {
|
|
|
703
703
|
*
|
|
704
704
|
* @param segments - The segments of the path to the document
|
|
705
705
|
* @returns A new instance of DocumentKey
|
|
706
|
-
*/ static fromSegments(t: any):
|
|
706
|
+
*/ static fromSegments(t: any): St;
|
|
707
707
|
constructor(t: any);
|
|
708
708
|
path: any;
|
|
709
709
|
/** Returns true if the document is in the specified collectionId. */ hasCollectionId(t: any): boolean;
|
|
710
710
|
isEqual(t: any): boolean;
|
|
711
711
|
toString(): any;
|
|
712
712
|
}
|
|
713
|
+
/**
|
|
714
|
+
* An AppCheck token provider that always yields an empty token.
|
|
715
|
+
* @internal
|
|
716
|
+
*/ declare class tt {
|
|
717
|
+
getToken(): Promise<X>;
|
|
718
|
+
invalidateToken(): void;
|
|
719
|
+
start(t: any, e: any): void;
|
|
720
|
+
shutdown(): void;
|
|
721
|
+
}
|
|
713
722
|
/**
|
|
714
723
|
* A CredentialsProvider that always yields an empty token.
|
|
715
724
|
* @internal
|
|
@@ -722,14 +731,14 @@ declare class ha {
|
|
|
722
731
|
/**
|
|
723
732
|
* A dot-separated path for navigating sub-objects within a document.
|
|
724
733
|
* @internal
|
|
725
|
-
*/ declare class
|
|
734
|
+
*/ declare class _t extends ft {
|
|
726
735
|
/**
|
|
727
736
|
* Returns true if the string could be used as a segment in a field path
|
|
728
737
|
* without escaping.
|
|
729
738
|
*/ static isValidIdentifier(t: any): boolean;
|
|
730
739
|
/**
|
|
731
740
|
* The field designating the key of a document.
|
|
732
|
-
*/ static keyField():
|
|
741
|
+
*/ static keyField(): _t;
|
|
733
742
|
/**
|
|
734
743
|
* Parses a field string from the given server-formatted string.
|
|
735
744
|
*
|
|
@@ -739,16 +748,16 @@ declare class ha {
|
|
|
739
748
|
*
|
|
740
749
|
* TODO(b/37244157): we should make this more strict. Right now, it allows
|
|
741
750
|
* non-identifier path components, even if they aren't escaped.
|
|
742
|
-
*/ static fromServerFormat(t: any):
|
|
743
|
-
static emptyPath():
|
|
744
|
-
construct(t: any, e: any, n: any):
|
|
751
|
+
*/ static fromServerFormat(t: any): _t;
|
|
752
|
+
static emptyPath(): _t;
|
|
753
|
+
construct(t: any, e: any, n: any): _t;
|
|
745
754
|
canonicalString(): any;
|
|
746
755
|
toString(): any;
|
|
747
756
|
/**
|
|
748
757
|
* Returns true if this field references the key of a document.
|
|
749
758
|
*/ isKeyField(): boolean;
|
|
750
759
|
}
|
|
751
|
-
declare function
|
|
760
|
+
declare function Tc(t: any, e: any): any;
|
|
752
761
|
/**
|
|
753
762
|
* Fails if the given assertion condition is false, throwing an Error with the
|
|
754
763
|
* given message if it did.
|
|
@@ -777,14 +786,14 @@ declare function ga(t: any, e: any): any;
|
|
|
777
786
|
*/
|
|
778
787
|
/** Converts a Base64 encoded string to a binary string. */
|
|
779
788
|
/** True if and only if the Base64 conversion functions are available. */
|
|
780
|
-
declare function
|
|
789
|
+
declare function gt(): boolean;
|
|
781
790
|
/**
|
|
782
791
|
* @internal
|
|
783
|
-
*/ declare function
|
|
792
|
+
*/ declare function O(t: any, ...e: any[]): void;
|
|
784
793
|
/**
|
|
785
794
|
* Validates that two boolean options are not set at the same time.
|
|
786
795
|
* @internal
|
|
787
|
-
*/ declare function
|
|
796
|
+
*/ declare function mc(t: any, e: any, n: any, s: any): void;
|
|
788
797
|
/**
|
|
789
798
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
790
799
|
* assigning it a document ID automatically.
|
|
@@ -794,7 +803,7 @@ declare function wt(): boolean;
|
|
|
794
803
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
795
804
|
* newly created document after it has been written to the backend (Note that it
|
|
796
805
|
* won't resolve while you're offline).
|
|
797
|
-
*/ declare function
|
|
806
|
+
*/ declare function Th(t: any, e: any): Promise<bc>;
|
|
798
807
|
/**
|
|
799
808
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
800
809
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -805,7 +814,7 @@ declare function wt(): boolean;
|
|
|
805
814
|
* @param elements - The elements to remove from the array.
|
|
806
815
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
807
816
|
* `updateDoc()`
|
|
808
|
-
*/ declare function
|
|
817
|
+
*/ declare function Dh(...t: any[]): mu;
|
|
809
818
|
/**
|
|
810
819
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
811
820
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -817,9 +826,9 @@ declare function wt(): boolean;
|
|
|
817
826
|
* @param elements - The elements to union into the array.
|
|
818
827
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
819
828
|
* `updateDoc()`.
|
|
820
|
-
*/ declare function
|
|
821
|
-
declare function
|
|
822
|
-
declare function
|
|
829
|
+
*/ declare function Sh(...t: any[]): _u;
|
|
830
|
+
declare function Qc(t: any): Promise<any>;
|
|
831
|
+
declare function Vc(t: any, e: any, ...n: any[]): vc;
|
|
823
832
|
/**
|
|
824
833
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
825
834
|
* database that are contained in a collection or subcollection with the
|
|
@@ -830,15 +839,15 @@ declare function ba(t: any, e: any, ...n: any[]): Ra;
|
|
|
830
839
|
* collection or subcollection with this ID as the last segment of its path
|
|
831
840
|
* will be included. Cannot contain a slash.
|
|
832
841
|
* @returns The created `Query`.
|
|
833
|
-
*/ declare function
|
|
834
|
-
declare function
|
|
842
|
+
*/ declare function Sc(t: any, e: any): Pc;
|
|
843
|
+
declare function Rc(t: any, e: any, n: any, s?: {}): void;
|
|
835
844
|
/**
|
|
836
845
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
837
846
|
*
|
|
838
847
|
* @param reference - A reference to the document to delete.
|
|
839
848
|
* @returns A Promise resolved once the document has been successfully
|
|
840
849
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
841
|
-
*/ declare function
|
|
850
|
+
*/ declare function ph(t: any): Promise<any>;
|
|
842
851
|
/**
|
|
843
852
|
* @license
|
|
844
853
|
* Copyright 2020 Google LLC
|
|
@@ -858,7 +867,7 @@ declare function Ea(t: any, e: any, n: any, s?: {}): void;
|
|
|
858
867
|
/**
|
|
859
868
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
860
869
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
861
|
-
*/ declare function
|
|
870
|
+
*/ declare function vh(): fu;
|
|
862
871
|
/**
|
|
863
872
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
864
873
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -866,12 +875,12 @@ declare function Ea(t: any, e: any, n: any, s?: {}): void;
|
|
|
866
875
|
* operations will be queued until the network is restored.
|
|
867
876
|
*
|
|
868
877
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
869
|
-
*/ declare function
|
|
870
|
-
declare function
|
|
878
|
+
*/ declare function zc(t: any): any;
|
|
879
|
+
declare function Dc(t: any, e: any, ...n: any[]): bc;
|
|
871
880
|
/**
|
|
872
881
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
873
882
|
* It can be used in queries to sort or filter by the document ID.
|
|
874
|
-
*/ declare function
|
|
883
|
+
*/ declare function tu(): Zc;
|
|
875
884
|
/**
|
|
876
885
|
* Attempts to enable persistent storage, if possible.
|
|
877
886
|
*
|
|
@@ -894,7 +903,7 @@ declare function va(t: any, e: any, ...n: any[]): Ia;
|
|
|
894
903
|
* @param persistenceSettings - Optional settings object to configure
|
|
895
904
|
* persistence.
|
|
896
905
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
897
|
-
*/ declare function
|
|
906
|
+
*/ declare function qc(t: any, e: any): any;
|
|
898
907
|
/**
|
|
899
908
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
900
909
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -916,22 +925,22 @@ declare function va(t: any, e: any, ...n: any[]): Ia;
|
|
|
916
925
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
917
926
|
* @returns A `Promise` that represents successfully enabling persistent
|
|
918
927
|
* storage.
|
|
919
|
-
*/ declare function
|
|
928
|
+
*/ declare function Kc(t: any): any;
|
|
920
929
|
/**
|
|
921
930
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
922
931
|
* call to {@link disableNetwork}.
|
|
923
932
|
*
|
|
924
933
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
925
|
-
*/ declare function
|
|
926
|
-
declare function
|
|
927
|
-
declare function
|
|
934
|
+
*/ declare function Gc(t: any): any;
|
|
935
|
+
declare function th(...t: any[]): Xu;
|
|
936
|
+
declare function Zu(...t: any[]): Xu;
|
|
928
937
|
/**
|
|
929
938
|
* @internal
|
|
930
|
-
*/ declare function
|
|
939
|
+
*/ declare function Bc(t: any): any;
|
|
931
940
|
/**
|
|
932
941
|
* Locally writes `mutations` on the async queue.
|
|
933
942
|
* @internal
|
|
934
|
-
*/ declare function
|
|
943
|
+
*/ declare function Ah(t: any, e: any): Promise<any>;
|
|
935
944
|
/**
|
|
936
945
|
* @license
|
|
937
946
|
* Copyright 2020 Google LLC
|
|
@@ -983,21 +992,21 @@ declare function Ju(...t: any[]): Hu;
|
|
|
983
992
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
984
993
|
* current document contents.
|
|
985
994
|
*/
|
|
986
|
-
declare function
|
|
995
|
+
declare function hh(t: any): Promise<xu>;
|
|
987
996
|
/**
|
|
988
997
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
989
998
|
* Returns an error if the document is not currently cached.
|
|
990
999
|
*
|
|
991
1000
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
992
1001
|
* current document contents.
|
|
993
|
-
*/ declare function
|
|
1002
|
+
*/ declare function fh(t: any): Promise<xu>;
|
|
994
1003
|
/**
|
|
995
1004
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
996
1005
|
* Returns an error if the network is not available.
|
|
997
1006
|
*
|
|
998
1007
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
999
1008
|
* current document contents.
|
|
1000
|
-
*/ declare function
|
|
1009
|
+
*/ declare function dh(t: any): Promise<xu>;
|
|
1001
1010
|
/**
|
|
1002
1011
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1003
1012
|
*
|
|
@@ -1007,19 +1016,19 @@ declare function ch(t: any): Promise<Cu>;
|
|
|
1007
1016
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
1008
1017
|
*
|
|
1009
1018
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1010
|
-
*/ declare function
|
|
1019
|
+
*/ declare function wh(t: any): Promise<Fu>;
|
|
1011
1020
|
/**
|
|
1012
1021
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1013
1022
|
* Returns an error if the document is not currently cached.
|
|
1014
1023
|
*
|
|
1015
1024
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1016
|
-
*/ declare function
|
|
1025
|
+
*/ declare function _h(t: any): Promise<Fu>;
|
|
1017
1026
|
/**
|
|
1018
1027
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1019
1028
|
* server. Returns an error if the network is not available.
|
|
1020
1029
|
*
|
|
1021
1030
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1022
|
-
*/ declare function
|
|
1031
|
+
*/ declare function mh(t: any): Promise<Fu>;
|
|
1023
1032
|
/**
|
|
1024
1033
|
* Returns the existing {@link Firestore} instance that is associated with the
|
|
1025
1034
|
* provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
|
|
@@ -1028,7 +1037,7 @@ declare function ch(t: any): Promise<Cu>;
|
|
|
1028
1037
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
|
|
1029
1038
|
* instance is associated with.
|
|
1030
1039
|
* @returns The {@link Firestore} instance of the provided app.
|
|
1031
|
-
*/ declare function
|
|
1040
|
+
*/ declare function Lc(e?: import("@firebase/app").FirebaseApp): import("../src").Firestore;
|
|
1032
1041
|
/**
|
|
1033
1042
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1034
1043
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1047,7 +1056,7 @@ declare function ch(t: any): Promise<Cu>;
|
|
|
1047
1056
|
* @param n - The value to increment by.
|
|
1048
1057
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1049
1058
|
* `updateDoc()`
|
|
1050
|
-
*/ declare function
|
|
1059
|
+
*/ declare function Ch(t: any): gu;
|
|
1051
1060
|
/**
|
|
1052
1061
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1053
1062
|
* Can only be called before any other function, including
|
|
@@ -1058,13 +1067,13 @@ declare function ch(t: any): Promise<Cu>;
|
|
|
1058
1067
|
* be associated.
|
|
1059
1068
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1060
1069
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1061
|
-
*/ declare function
|
|
1070
|
+
*/ declare function Mc(t: any, e: any): import("../src").Firestore;
|
|
1062
1071
|
/**
|
|
1063
1072
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
1064
1073
|
*
|
|
1065
1074
|
* @param limit - The maximum number of items to return.
|
|
1066
1075
|
* @returns The created {@link Query}.
|
|
1067
|
-
*/ declare function
|
|
1076
|
+
*/ declare function Gu(t: any): Wu;
|
|
1068
1077
|
/**
|
|
1069
1078
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
1070
1079
|
*
|
|
@@ -1073,7 +1082,7 @@ declare function ch(t: any): Promise<Cu>;
|
|
|
1073
1082
|
*
|
|
1074
1083
|
* @param limit - The maximum number of items to return.
|
|
1075
1084
|
* @returns The created {@link Query}.
|
|
1076
|
-
*/ declare function
|
|
1085
|
+
*/ declare function zu(t: any): Wu;
|
|
1077
1086
|
/**
|
|
1078
1087
|
* Loads a Firestore bundle into the local cache.
|
|
1079
1088
|
*
|
|
@@ -1084,16 +1093,16 @@ declare function ch(t: any): Promise<Cu>;
|
|
|
1084
1093
|
* @returns
|
|
1085
1094
|
* A `LoadBundleTask` object, which notifies callers with progress updates, and completion
|
|
1086
1095
|
* or error events. It can be used as a `Promise<LoadBundleTaskProgress>`.
|
|
1087
|
-
*/ declare function
|
|
1096
|
+
*/ declare function Jc(t: any, e: any): $c;
|
|
1088
1097
|
/**
|
|
1089
1098
|
* Reads a Firestore {@link Query} from local cache, identified by the given name.
|
|
1090
1099
|
*
|
|
1091
1100
|
* The named queries are packaged into bundles on the server side (along
|
|
1092
1101
|
* with resulting documents), and loaded to local cache using `loadBundle`. Once in local
|
|
1093
1102
|
* cache, use this method to extract a {@link Query} by name.
|
|
1094
|
-
*/ declare function
|
|
1095
|
-
declare function
|
|
1096
|
-
declare function
|
|
1103
|
+
*/ declare function Yc(t: any, e: any): any;
|
|
1104
|
+
declare function Eh(t: any, ...e: any[]): () => void;
|
|
1105
|
+
declare function Ih(t: any, e: any): () => void;
|
|
1097
1106
|
/**
|
|
1098
1107
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
1099
1108
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1102,7 +1111,7 @@ declare function ph(t: any, e: any): () => void;
|
|
|
1102
1111
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1103
1112
|
* not specified, order will be ascending.
|
|
1104
1113
|
* @returns The created {@link Query}.
|
|
1105
|
-
*/ declare function
|
|
1114
|
+
*/ declare function Qu(t: any, e?: string): ju;
|
|
1106
1115
|
/**
|
|
1107
1116
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
1108
1117
|
* additional query constraints.
|
|
@@ -1111,7 +1120,7 @@ declare function ph(t: any, e: any): () => void;
|
|
|
1111
1120
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
1112
1121
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
1113
1122
|
* existing or new constraints.
|
|
1114
|
-
*/ declare function
|
|
1123
|
+
*/ declare function Uu(t: any, ...e: any[]): any;
|
|
1115
1124
|
/**
|
|
1116
1125
|
* Returns true if the provided queries point to the same collection and apply
|
|
1117
1126
|
* the same constraints.
|
|
@@ -1120,7 +1129,7 @@ declare function ph(t: any, e: any): () => void;
|
|
|
1120
1129
|
* @param right - A `Query` to compare.
|
|
1121
1130
|
* @returns true if the references point to the same location in the same
|
|
1122
1131
|
* Firestore database.
|
|
1123
|
-
*/ declare function
|
|
1132
|
+
*/ declare function Nc(t: any, e: any): boolean;
|
|
1124
1133
|
/**
|
|
1125
1134
|
* Returns true if the provided references are equal.
|
|
1126
1135
|
*
|
|
@@ -1128,7 +1137,7 @@ declare function ph(t: any, e: any): () => void;
|
|
|
1128
1137
|
* @param right - A reference to compare.
|
|
1129
1138
|
* @returns true if the references point to the same location in the same
|
|
1130
1139
|
* Firestore database.
|
|
1131
|
-
*/ declare function
|
|
1140
|
+
*/ declare function Cc(t: any, e: any): boolean;
|
|
1132
1141
|
/**
|
|
1133
1142
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1134
1143
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1145,12 +1154,12 @@ declare function ph(t: any, e: any): () => void;
|
|
|
1145
1154
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1146
1155
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1147
1156
|
* rejected promise with the corresponding failure error is returned.
|
|
1148
|
-
*/ declare function
|
|
1157
|
+
*/ declare function Ph(t: any, e: any): Promise<any>;
|
|
1149
1158
|
/**
|
|
1150
1159
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1151
1160
|
* include a server-generated timestamp in the written data.
|
|
1152
|
-
*/ declare function
|
|
1153
|
-
declare function
|
|
1161
|
+
*/ declare function Vh(): wu;
|
|
1162
|
+
declare function gh(t: any, e: any, n: any): Promise<any>;
|
|
1154
1163
|
/**
|
|
1155
1164
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1156
1165
|
*
|
|
@@ -1163,16 +1172,16 @@ declare function wh(t: any, e: any, n: any): Promise<any>;
|
|
|
1163
1172
|
* <li>`error` to log errors only.</li>
|
|
1164
1173
|
* <li><code>`silent` to turn off logging.</li>
|
|
1165
1174
|
* </ul>
|
|
1166
|
-
*/ declare function
|
|
1175
|
+
*/ declare function x(t: any): void;
|
|
1167
1176
|
/**
|
|
1168
1177
|
* Returns true if the provided snapshots are equal.
|
|
1169
1178
|
*
|
|
1170
1179
|
* @param left - A snapshot to compare.
|
|
1171
1180
|
* @param right - A snapshot to compare.
|
|
1172
1181
|
* @returns true if the snapshots are equal.
|
|
1173
|
-
*/ declare function
|
|
1174
|
-
declare function
|
|
1175
|
-
declare function
|
|
1182
|
+
*/ declare function Mu(t: any, e: any): any;
|
|
1183
|
+
declare function Yu(...t: any[]): Hu;
|
|
1184
|
+
declare function Ju(...t: any[]): Hu;
|
|
1176
1185
|
/**
|
|
1177
1186
|
* Terminates the provided {@link Firestore} instance.
|
|
1178
1187
|
*
|
|
@@ -1194,8 +1203,8 @@ declare function Gu(...t: any[]): Wu;
|
|
|
1194
1203
|
*
|
|
1195
1204
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1196
1205
|
* terminated.
|
|
1197
|
-
*/ declare function
|
|
1198
|
-
declare function
|
|
1206
|
+
*/ declare function Hc(t: any): any;
|
|
1207
|
+
declare function yh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1199
1208
|
/**
|
|
1200
1209
|
* Waits until all currently pending writes for the active user have been
|
|
1201
1210
|
* acknowledged by the backend.
|
|
@@ -1211,7 +1220,7 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1211
1220
|
*
|
|
1212
1221
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1213
1222
|
* acknowledged by the backend.
|
|
1214
|
-
*/ declare function
|
|
1223
|
+
*/ declare function Wc(t: any): Promise<any>;
|
|
1215
1224
|
/**
|
|
1216
1225
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
1217
1226
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -1222,7 +1231,7 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1222
1231
|
* "<=", "!=").
|
|
1223
1232
|
* @param value - The value for comparison
|
|
1224
1233
|
* @returns The created {@link Query}.
|
|
1225
|
-
*/ declare function
|
|
1234
|
+
*/ declare function Ku(t: any, e: any, n: any): qu;
|
|
1226
1235
|
/**
|
|
1227
1236
|
* @license
|
|
1228
1237
|
* Copyright 2020 Google LLC
|
|
@@ -1249,7 +1258,7 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1249
1258
|
*
|
|
1250
1259
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1251
1260
|
* writes.
|
|
1252
|
-
*/ declare function
|
|
1261
|
+
*/ declare function Nh(t: any): ch;
|
|
1253
1262
|
/**
|
|
1254
1263
|
* @license
|
|
1255
1264
|
* Copyright 2020 Google LLC
|
|
@@ -1274,7 +1283,7 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1274
1283
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
1275
1284
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
1276
1285
|
* explicitly verify a document's existence.
|
|
1277
|
-
*/ declare class
|
|
1286
|
+
*/ declare class Du {
|
|
1278
1287
|
/** @hideconstructor protected */
|
|
1279
1288
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1280
1289
|
_firestore: any;
|
|
@@ -1285,7 +1294,7 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1285
1294
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1286
1295
|
/**
|
|
1287
1296
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1288
|
-
*/ get ref():
|
|
1297
|
+
*/ get ref(): bc;
|
|
1289
1298
|
/**
|
|
1290
1299
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1291
1300
|
*
|
|
@@ -1329,18 +1338,19 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1329
1338
|
* The Cloud Firestore service interface.
|
|
1330
1339
|
*
|
|
1331
1340
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
1332
|
-
*/ declare class
|
|
1341
|
+
*/ declare class Ac {
|
|
1333
1342
|
/** @hideconstructor */
|
|
1334
|
-
constructor(t: any, e: any);
|
|
1335
|
-
|
|
1343
|
+
constructor(t: any, e: any, n: any);
|
|
1344
|
+
_authCredentials: any;
|
|
1345
|
+
_appCheckCredentials: any;
|
|
1336
1346
|
/**
|
|
1337
1347
|
* Whether it's a Firestore or Firestore Lite instance.
|
|
1338
1348
|
*/
|
|
1339
1349
|
type: string;
|
|
1340
1350
|
_persistenceKey: string;
|
|
1341
|
-
_settings:
|
|
1351
|
+
_settings: Ic;
|
|
1342
1352
|
_settingsFrozen: boolean;
|
|
1343
|
-
_databaseId:
|
|
1353
|
+
_databaseId: dc;
|
|
1344
1354
|
_app: any;
|
|
1345
1355
|
/**
|
|
1346
1356
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1349,14 +1359,14 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1349
1359
|
get _initialized(): boolean;
|
|
1350
1360
|
get _terminated(): boolean;
|
|
1351
1361
|
_setSettings(t: any): void;
|
|
1352
|
-
_getSettings():
|
|
1353
|
-
_freezeSettings():
|
|
1362
|
+
_getSettings(): Ic;
|
|
1363
|
+
_freezeSettings(): Ic;
|
|
1354
1364
|
_delete(): Promise<void>;
|
|
1355
1365
|
_terminateTask: Promise<void> | undefined;
|
|
1356
1366
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1357
1367
|
app: any;
|
|
1358
|
-
databaseId:
|
|
1359
|
-
settings:
|
|
1368
|
+
databaseId: dc;
|
|
1369
|
+
settings: Ic;
|
|
1360
1370
|
};
|
|
1361
1371
|
/**
|
|
1362
1372
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1381,17 +1391,17 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1381
1391
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1382
1392
|
* See the License for the specific language governing permissions and
|
|
1383
1393
|
* limitations under the License.
|
|
1384
|
-
*/ declare class
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1394
|
+
*/ declare class kc {
|
|
1395
|
+
ma: Promise<void>;
|
|
1396
|
+
ga: any[];
|
|
1397
|
+
ya: boolean;
|
|
1398
|
+
pa: any[];
|
|
1399
|
+
Ta: any;
|
|
1400
|
+
Ea: boolean;
|
|
1401
|
+
Ia: boolean;
|
|
1402
|
+
Aa: any[];
|
|
1403
|
+
ur: eo;
|
|
1404
|
+
Ra: () => void;
|
|
1395
1405
|
get isShuttingDown(): boolean;
|
|
1396
1406
|
/**
|
|
1397
1407
|
* Adds a new operation to the queue without waiting for it to complete (i.e.
|
|
@@ -1404,30 +1414,30 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1404
1414
|
/**
|
|
1405
1415
|
* Runs the next operation from the retryable queue. If the operation fails,
|
|
1406
1416
|
* reschedules with backoff.
|
|
1407
|
-
*/
|
|
1408
|
-
|
|
1409
|
-
enqueueAfterDelay(t: any, e: any, n: any):
|
|
1410
|
-
|
|
1417
|
+
*/ va(): Promise<void>;
|
|
1418
|
+
Pa(t: any): Promise<any>;
|
|
1419
|
+
enqueueAfterDelay(t: any, e: any, n: any): Fo;
|
|
1420
|
+
ba(): void;
|
|
1411
1421
|
verifyOperationInProgress(): void;
|
|
1412
1422
|
/**
|
|
1413
1423
|
* Waits until all currently queued tasks are finished executing. Delayed
|
|
1414
1424
|
* operations are not run.
|
|
1415
|
-
*/
|
|
1425
|
+
*/ Sa(): Promise<void>;
|
|
1416
1426
|
/**
|
|
1417
1427
|
* For Tests: Determine if a delayed operation with a particular TimerId
|
|
1418
1428
|
* exists.
|
|
1419
|
-
*/
|
|
1429
|
+
*/ Da(t: any): boolean;
|
|
1420
1430
|
/**
|
|
1421
1431
|
* For Tests: Runs some or all delayed operations early.
|
|
1422
1432
|
*
|
|
1423
1433
|
* @param lastTimerId - Delayed operations up to and including this TimerId
|
|
1424
1434
|
* will be drained. Pass TimerId.All to run all delayed operations.
|
|
1425
1435
|
* @returns a Promise that resolves once all operations have been run.
|
|
1426
|
-
*/
|
|
1436
|
+
*/ Ca(t: any): Promise<void>;
|
|
1427
1437
|
/**
|
|
1428
1438
|
* For Tests: Skip all subsequent delays for a timer id.
|
|
1429
|
-
*/
|
|
1430
|
-
/** Called once a DelayedOperation is run or canceled. */
|
|
1439
|
+
*/ Na(t: any): void;
|
|
1440
|
+
/** Called once a DelayedOperation is run or canceled. */ Va(t: any): void;
|
|
1431
1441
|
}
|
|
1432
1442
|
/**
|
|
1433
1443
|
* @license
|
|
@@ -1452,12 +1462,18 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1452
1462
|
/**
|
|
1453
1463
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1454
1464
|
* classes.
|
|
1455
|
-
*/ declare class
|
|
1465
|
+
*/ declare class uu {
|
|
1456
1466
|
constructor(t: any, e: any, n: any);
|
|
1457
1467
|
databaseId: any;
|
|
1458
1468
|
ignoreUndefinedProperties: any;
|
|
1459
|
-
|
|
1460
|
-
/** Creates a new top-level parse context. */
|
|
1469
|
+
k: any;
|
|
1470
|
+
/** Creates a new top-level parse context. */ ja(t: any, e: any, n: any, s?: boolean): cu;
|
|
1471
|
+
}
|
|
1472
|
+
declare class X {
|
|
1473
|
+
constructor(t: any);
|
|
1474
|
+
value: any;
|
|
1475
|
+
type: string;
|
|
1476
|
+
headers: Map<any, any>;
|
|
1461
1477
|
}
|
|
1462
1478
|
/**
|
|
1463
1479
|
* @license
|
|
@@ -1478,7 +1494,7 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1478
1494
|
/**
|
|
1479
1495
|
* Path represents an ordered sequence of string segments.
|
|
1480
1496
|
*/
|
|
1481
|
-
declare class
|
|
1497
|
+
declare class ft {
|
|
1482
1498
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
1483
1499
|
constructor(t: any, e: any, n: any);
|
|
1484
1500
|
segments: any;
|
|
@@ -1499,67 +1515,67 @@ declare class ut {
|
|
|
1499
1515
|
forEach(t: any): void;
|
|
1500
1516
|
toArray(): any;
|
|
1501
1517
|
}
|
|
1502
|
-
declare class
|
|
1518
|
+
declare class mu extends nu {
|
|
1503
1519
|
constructor(t: any, e: any);
|
|
1504
|
-
|
|
1505
|
-
_toFieldTransform(t: any):
|
|
1520
|
+
Qa: any;
|
|
1521
|
+
_toFieldTransform(t: any): Ge;
|
|
1506
1522
|
isEqual(t: any): boolean;
|
|
1507
1523
|
}
|
|
1508
|
-
declare class
|
|
1524
|
+
declare class _u extends nu {
|
|
1509
1525
|
constructor(t: any, e: any);
|
|
1510
|
-
|
|
1511
|
-
_toFieldTransform(t: any):
|
|
1526
|
+
Qa: any;
|
|
1527
|
+
_toFieldTransform(t: any): Ge;
|
|
1512
1528
|
isEqual(t: any): boolean;
|
|
1513
1529
|
}
|
|
1514
|
-
declare class
|
|
1530
|
+
declare class fu extends nu {
|
|
1515
1531
|
_toFieldTransform(t: any): null;
|
|
1516
1532
|
isEqual(t: any): boolean;
|
|
1517
1533
|
}
|
|
1518
|
-
declare class
|
|
1534
|
+
declare class Xu extends Bu {
|
|
1519
1535
|
constructor(t: any, e: any, n: any);
|
|
1520
1536
|
type: any;
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
_apply(t: any):
|
|
1537
|
+
Za: any;
|
|
1538
|
+
tc: any;
|
|
1539
|
+
_apply(t: any): Pc;
|
|
1524
1540
|
}
|
|
1525
|
-
declare class
|
|
1541
|
+
declare class gu extends nu {
|
|
1526
1542
|
constructor(t: any, e: any);
|
|
1527
|
-
|
|
1528
|
-
_toFieldTransform(t: any):
|
|
1543
|
+
Wa: any;
|
|
1544
|
+
_toFieldTransform(t: any): Ge;
|
|
1529
1545
|
isEqual(t: any): boolean;
|
|
1530
1546
|
}
|
|
1531
|
-
declare class
|
|
1547
|
+
declare class Wu extends Bu {
|
|
1532
1548
|
constructor(t: any, e: any, n: any);
|
|
1533
1549
|
type: any;
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
_apply(t: any):
|
|
1550
|
+
Ya: any;
|
|
1551
|
+
Xa: any;
|
|
1552
|
+
_apply(t: any): Pc;
|
|
1537
1553
|
}
|
|
1538
|
-
declare class
|
|
1554
|
+
declare class ju extends Bu {
|
|
1539
1555
|
constructor(t: any, e: any);
|
|
1540
|
-
|
|
1541
|
-
|
|
1556
|
+
Ga: any;
|
|
1557
|
+
Ja: any;
|
|
1542
1558
|
type: string;
|
|
1543
|
-
_apply(t: any):
|
|
1559
|
+
_apply(t: any): Pc;
|
|
1544
1560
|
}
|
|
1545
|
-
declare class
|
|
1546
|
-
_toFieldTransform(t: any):
|
|
1561
|
+
declare class wu extends nu {
|
|
1562
|
+
_toFieldTransform(t: any): Ge;
|
|
1547
1563
|
isEqual(t: any): boolean;
|
|
1548
1564
|
}
|
|
1549
|
-
declare class
|
|
1565
|
+
declare class Hu extends Bu {
|
|
1550
1566
|
constructor(t: any, e: any, n: any);
|
|
1551
1567
|
type: any;
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
_apply(t: any):
|
|
1568
|
+
Za: any;
|
|
1569
|
+
tc: any;
|
|
1570
|
+
_apply(t: any): Pc;
|
|
1555
1571
|
}
|
|
1556
|
-
declare class
|
|
1572
|
+
declare class qu extends Bu {
|
|
1557
1573
|
constructor(t: any, e: any, n: any);
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1574
|
+
Ga: any;
|
|
1575
|
+
za: any;
|
|
1576
|
+
Ha: any;
|
|
1561
1577
|
type: string;
|
|
1562
|
-
_apply(t: any):
|
|
1578
|
+
_apply(t: any): Pc;
|
|
1563
1579
|
}
|
|
1564
1580
|
/**
|
|
1565
1581
|
* @license
|
|
@@ -1582,7 +1598,7 @@ declare class Lu extends Fu {
|
|
|
1582
1598
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1583
1599
|
* defaults can be supplied and the value can be checked for equality.
|
|
1584
1600
|
*/
|
|
1585
|
-
declare class
|
|
1601
|
+
declare class Ic {
|
|
1586
1602
|
constructor(t: any);
|
|
1587
1603
|
host: any;
|
|
1588
1604
|
ssl: any;
|
|
@@ -1606,17 +1622,17 @@ declare class pa {
|
|
|
1606
1622
|
* base delay. This prevents clients from accidentally synchronizing their
|
|
1607
1623
|
* delays causing spikes of load to the backend.
|
|
1608
1624
|
*/
|
|
1609
|
-
declare class
|
|
1625
|
+
declare class eo {
|
|
1610
1626
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
1611
1627
|
Oe: any;
|
|
1612
1628
|
timerId: any;
|
|
1613
|
-
Qi: number;
|
|
1614
1629
|
Wi: number;
|
|
1615
1630
|
Gi: number;
|
|
1616
1631
|
zi: number;
|
|
1617
|
-
Hi:
|
|
1632
|
+
Hi: number;
|
|
1633
|
+
Ji: any;
|
|
1618
1634
|
/** The last backoff attempt, as epoch milliseconds. */
|
|
1619
|
-
|
|
1635
|
+
Yi: number;
|
|
1620
1636
|
/**
|
|
1621
1637
|
* Resets the backoff delay.
|
|
1622
1638
|
*
|
|
@@ -1627,15 +1643,15 @@ declare class Xr {
|
|
|
1627
1643
|
/**
|
|
1628
1644
|
* Resets the backoff delay to the maximum delay (e.g. for use after a
|
|
1629
1645
|
* RESOURCE_EXHAUSTED error).
|
|
1630
|
-
*/
|
|
1646
|
+
*/ Xi(): void;
|
|
1631
1647
|
/**
|
|
1632
1648
|
* Returns a promise that resolves after currentDelayMs, and increases the
|
|
1633
1649
|
* delay for any subsequent attempts. If there was a pending backoff operation
|
|
1634
1650
|
* already, it will be canceled.
|
|
1635
|
-
*/
|
|
1636
|
-
|
|
1651
|
+
*/ Zi(t: any): void;
|
|
1652
|
+
er(): void;
|
|
1637
1653
|
cancel(): void;
|
|
1638
|
-
/** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */
|
|
1654
|
+
/** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */ tr(): number;
|
|
1639
1655
|
}
|
|
1640
1656
|
/**
|
|
1641
1657
|
* @license
|
|
@@ -1664,7 +1680,7 @@ declare class Xr {
|
|
|
1664
1680
|
* in newer versions of TypeScript defines `finally`, which is not available in
|
|
1665
1681
|
* IE.
|
|
1666
1682
|
*/
|
|
1667
|
-
declare class
|
|
1683
|
+
declare class Fo {
|
|
1668
1684
|
/**
|
|
1669
1685
|
* Creates and returns a DelayedOperation that has been scheduled to be
|
|
1670
1686
|
* executed on the provided asyncQueue after the provided delayMs.
|
|
@@ -1678,7 +1694,7 @@ declare class xo {
|
|
|
1678
1694
|
* from its delayedOperations list.
|
|
1679
1695
|
* PORTING NOTE: This exists to prevent making removeDelayedOperation() and
|
|
1680
1696
|
* the DelayedOperation class public.
|
|
1681
|
-
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any):
|
|
1697
|
+
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): Fo;
|
|
1682
1698
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1683
1699
|
asyncQueue: any;
|
|
1684
1700
|
timerId: any;
|
|
@@ -1706,7 +1722,7 @@ declare class xo {
|
|
|
1706
1722
|
handleDelayElapsed(): void;
|
|
1707
1723
|
clearTimeout(): void;
|
|
1708
1724
|
}
|
|
1709
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1725
|
+
/** A "context" object passed around while parsing user data. */ declare class cu {
|
|
1710
1726
|
/**
|
|
1711
1727
|
* Initializes a ParseContext with the given source and path.
|
|
1712
1728
|
*
|
|
@@ -1728,20 +1744,20 @@ declare class xo {
|
|
|
1728
1744
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
1729
1745
|
settings: any;
|
|
1730
1746
|
databaseId: any;
|
|
1731
|
-
|
|
1747
|
+
k: any;
|
|
1732
1748
|
ignoreUndefinedProperties: any;
|
|
1733
1749
|
fieldTransforms: any;
|
|
1734
1750
|
fieldMask: any;
|
|
1735
1751
|
get path(): any;
|
|
1736
|
-
get
|
|
1737
|
-
/** Returns a new context with the specified settings overwritten. */ $
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1752
|
+
get xa(): any;
|
|
1753
|
+
/** Returns a new context with the specified settings overwritten. */ $a(t: any): cu;
|
|
1754
|
+
Fa(t: any): cu;
|
|
1755
|
+
La(t: any): cu;
|
|
1756
|
+
Ba(t: any): cu;
|
|
1757
|
+
Ua(t: any): j;
|
|
1742
1758
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1743
|
-
|
|
1744
|
-
|
|
1759
|
+
ka(): void;
|
|
1760
|
+
Ma(t: any): void;
|
|
1745
1761
|
}
|
|
1746
1762
|
/**
|
|
1747
1763
|
* @license
|
|
@@ -1759,9 +1775,9 @@ declare class xo {
|
|
|
1759
1775
|
* See the License for the specific language governing permissions and
|
|
1760
1776
|
* limitations under the License.
|
|
1761
1777
|
*/
|
|
1762
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1778
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class Ge {
|
|
1763
1779
|
constructor(t: any, e: any);
|
|
1764
1780
|
field: any;
|
|
1765
1781
|
transform: any;
|
|
1766
1782
|
}
|
|
1767
|
-
export {
|
|
1783
|
+
export { rh as AbstractUserDataWriter, eu as Bytes, Fc as CACHE_SIZE_UNLIMITED, vc as CollectionReference, bc as DocumentReference, xu as DocumentSnapshot, Zc as FieldPath, nu as FieldValue, Oc as Firestore, j as FirestoreError, su as GeoPoint, $c as LoadBundleTask, Pc as Query, Bu as QueryConstraint, $u as QueryDocumentSnapshot, Fu as QuerySnapshot, ku as SnapshotMetadata, at as Timestamp, bh as Transaction, ch as WriteBatch, dc as _DatabaseId, St as _DocumentKey, tt as _EmptyAppCheckTokenProvider, G as _EmptyAuthCredentialsProvider, _t as _FieldPath, Tc as _cast, U as _debugAssert, gt as _isBase64Available, O as _logWarn, mc as _validateIsNotUsedTogether, Th as addDoc, Dh as arrayRemove, Sh as arrayUnion, Qc as clearIndexedDbPersistence, Vc as collection, Sc as collectionGroup, Rc as connectFirestoreEmulator, ph as deleteDoc, vh as deleteField, zc as disableNetwork, Dc as doc, tu as documentId, qc as enableIndexedDbPersistence, Kc as enableMultiTabIndexedDbPersistence, Gc as enableNetwork, th as endAt, Zu as endBefore, Bc as ensureFirestoreConfigured, Ah as executeWrite, hh as getDoc, fh as getDocFromCache, dh as getDocFromServer, wh as getDocs, _h as getDocsFromCache, mh as getDocsFromServer, Lc as getFirestore, Ch as increment, Mc as initializeFirestore, Gu as limit, zu as limitToLast, Jc as loadBundle, Yc as namedQuery, Eh as onSnapshot, Ih as onSnapshotsInSync, Qu as orderBy, Uu as query, Nc as queryEqual, Cc as refEqual, Ph as runTransaction, Vh as serverTimestamp, gh as setDoc, x as setLogLevel, Mu as snapshotEqual, Yu as startAfter, Ju as startAt, Hc as terminate, yh as updateDoc, Wc as waitForPendingWrites, Ku as where, Nh as writeBatch };
|