@firebase/firestore 3.8.4 → 3.9.0-20230314181055
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/lite-api/query.d.ts +11 -19
- package/dist/firestore/src/lite-api/reference.d.ts +1 -1
- package/dist/firestore/src/util/debug_uid.d.ts +28 -0
- package/dist/firestore/test/unit/specs/spec_builder.d.ts +3 -0
- package/dist/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
- package/dist/index.cjs.js +1359 -1309
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +66 -14
- package/dist/index.esm2017.js +1272 -1222
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1335 -1259
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +97 -32
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +97 -32
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +1380 -1330
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +12 -20
- package/dist/lite/firestore/src/lite-api/query.d.ts +11 -19
- package/dist/lite/firestore/src/lite-api/reference.d.ts +1 -1
- package/dist/lite/firestore/src/util/debug_uid.d.ts +28 -0
- package/dist/lite/firestore/test/unit/specs/spec_builder.d.ts +3 -0
- package/dist/lite/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
- package/dist/lite/index.browser.esm2017.js +775 -730
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +736 -693
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.cjs.js +775 -730
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.d.ts +66 -14
- package/dist/lite/index.node.cjs.js +76 -18
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +76 -18
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +777 -732
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +12 -20
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +139 -142
- package/dist/lite/packages/firestore/src/lite-api/query.d.ts +11 -19
- package/dist/lite/packages/firestore/src/lite-api/reference.d.ts +1 -1
- package/dist/lite/packages/firestore/src/util/debug_uid.d.ts +28 -0
- package/dist/lite/packages/firestore/test/unit/specs/spec_builder.d.ts +3 -0
- package/dist/lite/packages/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
- package/dist/lite/private.d.ts +72 -16
- package/dist/packages/firestore/dist/index.esm2017.d.ts +157 -160
- package/dist/packages/firestore/src/lite-api/query.d.ts +11 -19
- package/dist/packages/firestore/src/lite-api/reference.d.ts +1 -1
- package/dist/packages/firestore/src/util/debug_uid.d.ts +28 -0
- package/dist/packages/firestore/test/unit/specs/spec_builder.d.ts +3 -0
- package/dist/packages/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
- package/dist/private.d.ts +72 -16
- package/package.json +2 -2
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
/**
|
|
34
34
|
* Represents an aggregation that can be performed by Firestore.
|
|
35
35
|
*/
|
|
36
|
-
declare class
|
|
36
|
+
declare class Dn {
|
|
37
37
|
/**
|
|
38
38
|
* Create a new AggregateField<T>
|
|
39
39
|
* @param _aggregateType Specifies the type of aggregation operation to perform.
|
|
@@ -48,7 +48,7 @@ declare class Vn {
|
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* The results of executing an aggregation query.
|
|
51
|
-
*/ declare class
|
|
51
|
+
*/ declare class Nn {
|
|
52
52
|
/** @hideconstructor */
|
|
53
53
|
constructor(t: any, e: any, n: any);
|
|
54
54
|
_userDataWriter: any;
|
|
@@ -86,18 +86,18 @@ declare class Vn {
|
|
|
86
86
|
*/
|
|
87
87
|
/**
|
|
88
88
|
* An immutable object representing an array of bytes.
|
|
89
|
-
*/ declare class
|
|
89
|
+
*/ declare class Mn {
|
|
90
90
|
/**
|
|
91
91
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
92
92
|
* bytes.
|
|
93
93
|
*
|
|
94
94
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
95
|
-
*/ static fromBase64String(t: any):
|
|
95
|
+
*/ static fromBase64String(t: any): Mn;
|
|
96
96
|
/**
|
|
97
97
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
98
98
|
*
|
|
99
99
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
100
|
-
*/ static fromUint8Array(t: any):
|
|
100
|
+
*/ static fromUint8Array(t: any): Mn;
|
|
101
101
|
/** @hideconstructor */
|
|
102
102
|
constructor(t: any);
|
|
103
103
|
_byteString: any;
|
|
@@ -125,8 +125,8 @@ declare class Vn {
|
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
127
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
128
|
-
* document references, and querying for documents (using {@link query}).
|
|
129
|
-
*/ declare class
|
|
128
|
+
* document references, and querying for documents (using {@link (query:1)}).
|
|
129
|
+
*/ declare class Sn extends xn {
|
|
130
130
|
_path: any;
|
|
131
131
|
/** The collection's identifier. */ get id(): any;
|
|
132
132
|
/**
|
|
@@ -136,8 +136,8 @@ declare class Vn {
|
|
|
136
136
|
/**
|
|
137
137
|
* A reference to the containing `DocumentReference` if this is a
|
|
138
138
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
139
|
-
*/ get parent():
|
|
140
|
-
withConverter(t: any):
|
|
139
|
+
*/ get parent(): Fn | null;
|
|
140
|
+
withConverter(t: any): Sn;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* @license
|
|
@@ -159,7 +159,7 @@ declare class Vn {
|
|
|
159
159
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
160
160
|
* and can be used to write, read, or listen to the location. The document at
|
|
161
161
|
* the referenced location may or may not exist.
|
|
162
|
-
*/ declare class
|
|
162
|
+
*/ declare class Fn {
|
|
163
163
|
/** @hideconstructor */
|
|
164
164
|
constructor(t: any, e: any, n: any);
|
|
165
165
|
converter: any;
|
|
@@ -177,8 +177,8 @@ declare class Vn {
|
|
|
177
177
|
*/ get path(): any;
|
|
178
178
|
/**
|
|
179
179
|
* The collection this `DocumentReference` belongs to.
|
|
180
|
-
*/ get parent():
|
|
181
|
-
withConverter(t: any):
|
|
180
|
+
*/ get parent(): Sn;
|
|
181
|
+
withConverter(t: any): Fn;
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* @license
|
|
@@ -204,7 +204,7 @@ declare class Vn {
|
|
|
204
204
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
205
205
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
206
206
|
* explicitly verify a document's existence.
|
|
207
|
-
*/ declare class
|
|
207
|
+
*/ declare class yr {
|
|
208
208
|
/** @hideconstructor protected */
|
|
209
209
|
constructor(t: any, e: any, n: any, r: any, s: any);
|
|
210
210
|
_firestore: any;
|
|
@@ -215,7 +215,7 @@ declare class Vn {
|
|
|
215
215
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
216
216
|
/**
|
|
217
217
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
218
|
-
*/ get ref():
|
|
218
|
+
*/ get ref(): Fn;
|
|
219
219
|
/**
|
|
220
220
|
* Signals whether or not the document at the snapshot's location exists.
|
|
221
221
|
*
|
|
@@ -262,7 +262,7 @@ declare class Vn {
|
|
|
262
262
|
*
|
|
263
263
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
264
264
|
* name is provided, the path will point to a nested field in a document.
|
|
265
|
-
*/ declare class
|
|
265
|
+
*/ declare class Un {
|
|
266
266
|
/**
|
|
267
267
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
268
268
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -297,7 +297,7 @@ declare class Vn {
|
|
|
297
297
|
/**
|
|
298
298
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
299
299
|
* or `update()`.
|
|
300
|
-
*/ declare class
|
|
300
|
+
*/ declare class Bn {
|
|
301
301
|
/**
|
|
302
302
|
* @param _methodName - The public API endpoint that returns this class.
|
|
303
303
|
* @hideconstructor
|
|
@@ -325,7 +325,7 @@ declare class Vn {
|
|
|
325
325
|
* The Cloud Firestore service interface.
|
|
326
326
|
*
|
|
327
327
|
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
328
|
-
*/ declare class
|
|
328
|
+
*/ declare class Tn {
|
|
329
329
|
/** @hideconstructor */
|
|
330
330
|
constructor(t: any, e: any, n: any, r: any);
|
|
331
331
|
_authCredentials: any;
|
|
@@ -337,7 +337,7 @@ declare class Vn {
|
|
|
337
337
|
*/
|
|
338
338
|
type: string;
|
|
339
339
|
_persistenceKey: string;
|
|
340
|
-
_settings:
|
|
340
|
+
_settings: In;
|
|
341
341
|
_settingsFrozen: boolean;
|
|
342
342
|
/**
|
|
343
343
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -346,14 +346,14 @@ declare class Vn {
|
|
|
346
346
|
get _initialized(): boolean;
|
|
347
347
|
get _terminated(): boolean;
|
|
348
348
|
_setSettings(t: any): void;
|
|
349
|
-
_getSettings():
|
|
350
|
-
_freezeSettings():
|
|
349
|
+
_getSettings(): In;
|
|
350
|
+
_freezeSettings(): In;
|
|
351
351
|
_delete(): Promise<void>;
|
|
352
352
|
_terminateTask: Promise<void> | undefined;
|
|
353
353
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
354
354
|
app: any;
|
|
355
355
|
databaseId: any;
|
|
356
|
-
settings:
|
|
356
|
+
settings: In;
|
|
357
357
|
};
|
|
358
358
|
/**
|
|
359
359
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -391,7 +391,7 @@ declare class Vn {
|
|
|
391
391
|
*
|
|
392
392
|
* Latitude values are in the range of [-90, 90].
|
|
393
393
|
* Longitude values are in the range of [-180, 180].
|
|
394
|
-
*/ declare class
|
|
394
|
+
*/ declare class zn {
|
|
395
395
|
/**
|
|
396
396
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
397
397
|
* longitude values.
|
|
@@ -425,7 +425,7 @@ declare class Vn {
|
|
|
425
425
|
/**
|
|
426
426
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
427
427
|
* construct refined `Query` objects by adding filters and ordering.
|
|
428
|
-
*/ declare class
|
|
428
|
+
*/ declare class xn {
|
|
429
429
|
/** @hideconstructor protected */
|
|
430
430
|
constructor(t: any, e: any, n: any);
|
|
431
431
|
converter: any;
|
|
@@ -433,18 +433,17 @@ declare class Vn {
|
|
|
433
433
|
/** The type of this Firestore reference. */
|
|
434
434
|
type: string;
|
|
435
435
|
firestore: any;
|
|
436
|
-
withConverter(t: any):
|
|
436
|
+
withConverter(t: any): xn;
|
|
437
437
|
}
|
|
438
438
|
/**
|
|
439
439
|
* A `QueryCompositeFilterConstraint` is used to narrow the set of documents
|
|
440
440
|
* returned by a Firestore query by performing the logical OR or AND of multiple
|
|
441
441
|
* {@link QueryFieldFilterConstraint}s or {@link QueryCompositeFilterConstraint}s.
|
|
442
442
|
* `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
|
|
443
|
-
* {@link and} and can then be passed to {@link query} to create a new query
|
|
443
|
+
* {@link and} and can then be passed to {@link (query:1)} to create a new query
|
|
444
444
|
* instance that also contains the `QueryCompositeFilterConstraint`.
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
static _create(t: any, e: any): Tr;
|
|
445
|
+
*/ declare class Pr extends Er {
|
|
446
|
+
static _create(t: any, e: any): Pr;
|
|
448
447
|
/**
|
|
449
448
|
* @internal
|
|
450
449
|
*/
|
|
@@ -459,11 +458,11 @@ declare class Vn {
|
|
|
459
458
|
/**
|
|
460
459
|
* A `QueryConstraint` is used to narrow the set of documents returned by a
|
|
461
460
|
* Firestore query. `QueryConstraint`s are created by invoking {@link where},
|
|
462
|
-
* {@link orderBy}, {@link startAt}, {@link startAfter}, {@link
|
|
463
|
-
* endBefore}, {@link endAt}, {@link limit}, {@link limitToLast} and
|
|
464
|
-
* can then be passed to {@link query} to create a new query instance that
|
|
461
|
+
* {@link orderBy}, {@link (startAt:1)}, {@link (startAfter:1)}, {@link
|
|
462
|
+
* (endBefore:1)}, {@link (endAt:1)}, {@link limit}, {@link limitToLast} and
|
|
463
|
+
* can then be passed to {@link (query:1)} to create a new query instance that
|
|
465
464
|
* also contains this `QueryConstraint`.
|
|
466
|
-
*/ declare class
|
|
465
|
+
*/ declare class Ar extends Er {
|
|
467
466
|
}
|
|
468
467
|
/**
|
|
469
468
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -475,16 +474,16 @@ declare class Vn {
|
|
|
475
474
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
476
475
|
* `exists` property will always be true and `data()` will never return
|
|
477
476
|
* 'undefined'.
|
|
478
|
-
*/ declare class
|
|
477
|
+
*/ declare class gr extends yr {
|
|
479
478
|
}
|
|
480
479
|
/**
|
|
481
480
|
* A `QueryEndAtConstraint` is used to exclude documents from the end of a
|
|
482
481
|
* result set returned by a Firestore query.
|
|
483
482
|
* `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
|
|
484
|
-
* {@link (endBefore:1)} and can then be passed to {@link query} to create a new
|
|
483
|
+
* {@link (endBefore:1)} and can then be passed to {@link (query:1)} to create a new
|
|
485
484
|
* query instance that also contains this `QueryEndAtConstraint`.
|
|
486
|
-
*/ declare class
|
|
487
|
-
static _create(t: any, e: any, n: any):
|
|
485
|
+
*/ declare class Cr extends Ar {
|
|
486
|
+
static _create(t: any, e: any, n: any): Cr;
|
|
488
487
|
/**
|
|
489
488
|
* @internal
|
|
490
489
|
*/
|
|
@@ -492,16 +491,16 @@ declare class Vn {
|
|
|
492
491
|
type: any;
|
|
493
492
|
_docOrFields: any;
|
|
494
493
|
_inclusive: any;
|
|
495
|
-
_apply(t: any):
|
|
494
|
+
_apply(t: any): xn;
|
|
496
495
|
}
|
|
497
496
|
/**
|
|
498
497
|
* A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
|
|
499
498
|
* a Firestore query by filtering on one or more document fields.
|
|
500
499
|
* `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
|
|
501
|
-
* be passed to {@link query} to create a new query instance that also contains
|
|
500
|
+
* be passed to {@link (query:1)} to create a new query instance that also contains
|
|
502
501
|
* this `QueryFieldFilterConstraint`.
|
|
503
|
-
*/ declare class
|
|
504
|
-
static _create(t: any, e: any, n: any):
|
|
502
|
+
*/ declare class Tr extends Ar {
|
|
503
|
+
static _create(t: any, e: any, n: any): Tr;
|
|
505
504
|
/**
|
|
506
505
|
* @internal
|
|
507
506
|
*/
|
|
@@ -511,17 +510,17 @@ declare class Vn {
|
|
|
511
510
|
_value: any;
|
|
512
511
|
/** The type of this query constraint */
|
|
513
512
|
type: string;
|
|
514
|
-
_apply(t: any):
|
|
515
|
-
_parse(t: any):
|
|
513
|
+
_apply(t: any): xn;
|
|
514
|
+
_parse(t: any): Xt | re | ae;
|
|
516
515
|
}
|
|
517
516
|
/**
|
|
518
517
|
* A `QueryLimitConstraint` is used to limit the number of documents returned by
|
|
519
518
|
* a Firestore query.
|
|
520
519
|
* `QueryLimitConstraint`s are created by invoking {@link limit} or
|
|
521
|
-
* {@link limitToLast} and can then be passed to {@link query} to create a new
|
|
520
|
+
* {@link limitToLast} and can then be passed to {@link (query:1)} to create a new
|
|
522
521
|
* query instance that also contains this `QueryLimitConstraint`.
|
|
523
|
-
*/ declare class
|
|
524
|
-
static _create(t: any, e: any, n: any):
|
|
522
|
+
*/ declare class Fr extends Ar {
|
|
523
|
+
static _create(t: any, e: any, n: any): Fr;
|
|
525
524
|
/**
|
|
526
525
|
* @internal
|
|
527
526
|
*/
|
|
@@ -529,18 +528,18 @@ declare class Vn {
|
|
|
529
528
|
type: any;
|
|
530
529
|
_limit: any;
|
|
531
530
|
_limitType: any;
|
|
532
|
-
_apply(t: any):
|
|
531
|
+
_apply(t: any): xn;
|
|
533
532
|
}
|
|
534
533
|
/**
|
|
535
534
|
* A `QueryOrderByConstraint` is used to sort the set of documents returned by a
|
|
536
535
|
* Firestore query. `QueryOrderByConstraint`s are created by invoking
|
|
537
|
-
* {@link orderBy} and can then be passed to {@link query} to create a new query
|
|
536
|
+
* {@link orderBy} and can then be passed to {@link (query:1)} to create a new query
|
|
538
537
|
* instance that also contains this `QueryOrderByConstraint`.
|
|
539
538
|
*
|
|
540
539
|
* Note: Documents that do not contain the orderBy field will not be present in
|
|
541
540
|
* the query result.
|
|
542
|
-
*/ declare class
|
|
543
|
-
static _create(t: any, e: any):
|
|
541
|
+
*/ declare class Dr extends Ar {
|
|
542
|
+
static _create(t: any, e: any): Dr;
|
|
544
543
|
/**
|
|
545
544
|
* @internal
|
|
546
545
|
*/
|
|
@@ -549,7 +548,7 @@ declare class Vn {
|
|
|
549
548
|
_direction: any;
|
|
550
549
|
/** The type of this query constraint */
|
|
551
550
|
type: string;
|
|
552
|
-
_apply(t: any):
|
|
551
|
+
_apply(t: any): xn;
|
|
553
552
|
}
|
|
554
553
|
/**
|
|
555
554
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -557,7 +556,7 @@ declare class Vn {
|
|
|
557
556
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
558
557
|
* number of documents can be determined via the `empty` and `size`
|
|
559
558
|
* properties.
|
|
560
|
-
*/ declare class
|
|
559
|
+
*/ declare class _r {
|
|
561
560
|
/** @hideconstructor */
|
|
562
561
|
constructor(t: any, e: any);
|
|
563
562
|
_docs: any;
|
|
@@ -577,10 +576,10 @@ declare class Vn {
|
|
|
577
576
|
* A `QueryStartAtConstraint` is used to exclude documents from the start of a
|
|
578
577
|
* result set returned by a Firestore query.
|
|
579
578
|
* `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
|
|
580
|
-
* {@link (startAfter:1)} and can then be passed to {@link query} to create a
|
|
579
|
+
* {@link (startAfter:1)} and can then be passed to {@link (query:1)} to create a
|
|
581
580
|
* new query instance that also contains this `QueryStartAtConstraint`.
|
|
582
|
-
*/ declare class
|
|
583
|
-
static _create(t: any, e: any, n: any):
|
|
581
|
+
*/ declare class qr extends Ar {
|
|
582
|
+
static _create(t: any, e: any, n: any): qr;
|
|
584
583
|
/**
|
|
585
584
|
* @internal
|
|
586
585
|
*/
|
|
@@ -588,7 +587,7 @@ declare class Vn {
|
|
|
588
587
|
type: any;
|
|
589
588
|
_docOrFields: any;
|
|
590
589
|
_inclusive: any;
|
|
591
|
-
_apply(t: any):
|
|
590
|
+
_apply(t: any): xn;
|
|
592
591
|
}
|
|
593
592
|
/**
|
|
594
593
|
* @license
|
|
@@ -620,19 +619,19 @@ declare class Vn {
|
|
|
620
619
|
* For examples and further specifications, refer to the
|
|
621
620
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
622
621
|
*/
|
|
623
|
-
declare class
|
|
622
|
+
declare class St {
|
|
624
623
|
/**
|
|
625
624
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
626
625
|
*
|
|
627
626
|
* @returns a new timestamp representing the current date.
|
|
628
|
-
*/ static now():
|
|
627
|
+
*/ static now(): St;
|
|
629
628
|
/**
|
|
630
629
|
* Creates a new timestamp from the given date.
|
|
631
630
|
*
|
|
632
631
|
* @param date - The date to initialize the `Timestamp` from.
|
|
633
632
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
634
633
|
* date.
|
|
635
|
-
*/ static fromDate(t: any):
|
|
634
|
+
*/ static fromDate(t: any): St;
|
|
636
635
|
/**
|
|
637
636
|
* Creates a new timestamp from the given number of milliseconds.
|
|
638
637
|
*
|
|
@@ -640,7 +639,7 @@ declare class Ft {
|
|
|
640
639
|
* 1970-01-01T00:00:00Z.
|
|
641
640
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
642
641
|
* number of milliseconds.
|
|
643
|
-
*/ static fromMillis(t: any):
|
|
642
|
+
*/ static fromMillis(t: any): St;
|
|
644
643
|
/**
|
|
645
644
|
* Creates a new timestamp.
|
|
646
645
|
*
|
|
@@ -687,26 +686,26 @@ declare class Ft {
|
|
|
687
686
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
688
687
|
*/ valueOf(): string;
|
|
689
688
|
}
|
|
690
|
-
declare class
|
|
689
|
+
declare class Es {
|
|
691
690
|
/** @hideconstructor */
|
|
692
691
|
constructor(t: any, e: any);
|
|
693
692
|
_firestore: any;
|
|
694
693
|
_transaction: any;
|
|
695
|
-
_dataReader:
|
|
694
|
+
_dataReader: Hn;
|
|
696
695
|
/**
|
|
697
696
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
698
697
|
*
|
|
699
698
|
* @param documentRef - A reference to the document to be read.
|
|
700
699
|
* @returns A `DocumentSnapshot` with the read data.
|
|
701
700
|
*/ get(t: any): any;
|
|
702
|
-
set(t: any, e: any, n: any):
|
|
703
|
-
update(t: any, e: any, n: any, ...r: any[]):
|
|
701
|
+
set(t: any, e: any, n: any): Es;
|
|
702
|
+
update(t: any, e: any, n: any, ...r: any[]): Es;
|
|
704
703
|
/**
|
|
705
704
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
706
705
|
*
|
|
707
706
|
* @param documentRef - A reference to the document to be deleted.
|
|
708
707
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
709
|
-
*/ delete(t: any):
|
|
708
|
+
*/ delete(t: any): Es;
|
|
710
709
|
}
|
|
711
710
|
/**
|
|
712
711
|
* @license
|
|
@@ -731,22 +730,22 @@ declare class vs {
|
|
|
731
730
|
* provides methods for adding writes to the write batch. None of the writes
|
|
732
731
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
733
732
|
* called.
|
|
734
|
-
*/ declare class
|
|
733
|
+
*/ declare class ds {
|
|
735
734
|
/** @hideconstructor */
|
|
736
735
|
constructor(t: any, e: any);
|
|
737
736
|
_firestore: any;
|
|
738
737
|
_commitHandler: any;
|
|
739
738
|
_mutations: any[];
|
|
740
739
|
_committed: boolean;
|
|
741
|
-
_dataReader:
|
|
742
|
-
set(t: any, e: any, n: any):
|
|
743
|
-
update(t: any, e: any, n: any, ...r: any[]):
|
|
740
|
+
_dataReader: Hn;
|
|
741
|
+
set(t: any, e: any, n: any): ds;
|
|
742
|
+
update(t: any, e: any, n: any, ...r: any[]): ds;
|
|
744
743
|
/**
|
|
745
744
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
746
745
|
*
|
|
747
746
|
* @param documentRef - A reference to the document to be deleted.
|
|
748
747
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
749
|
-
*/ delete(t: any):
|
|
748
|
+
*/ delete(t: any): ds;
|
|
750
749
|
/**
|
|
751
750
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
752
751
|
*
|
|
@@ -775,14 +774,14 @@ declare class vs {
|
|
|
775
774
|
* @throws Error - If the provided input is not a valid Firestore document.
|
|
776
775
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
777
776
|
* newly created document after it has been written to the backend.
|
|
778
|
-
*/ declare function
|
|
777
|
+
*/ declare function ts(t: any, e: any): Promise<Fn>;
|
|
779
778
|
/**
|
|
780
779
|
* Compares two 'AggregateField` instances for equality.
|
|
781
780
|
*
|
|
782
781
|
* @param left Compare this AggregateField to the `right`.
|
|
783
782
|
* @param right Compare this AggregateField to the `left`.
|
|
784
783
|
* @internal TODO (sum/avg) remove when public
|
|
785
|
-
*/ declare function
|
|
784
|
+
*/ declare function os(t: any, e: any): boolean;
|
|
786
785
|
/**
|
|
787
786
|
* Compares two `AggregateQuerySnapshot` instances for equality.
|
|
788
787
|
*
|
|
@@ -794,7 +793,7 @@ declare class vs {
|
|
|
794
793
|
*
|
|
795
794
|
* @returns `true` if the objects are "equal", as defined above, or `false`
|
|
796
795
|
* otherwise.
|
|
797
|
-
*/ declare function
|
|
796
|
+
*/ declare function us(t: any, e: any): boolean;
|
|
798
797
|
/**
|
|
799
798
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
800
799
|
* the given filter constraints. A conjunction filter includes a document if it
|
|
@@ -804,8 +803,7 @@ declare class vs {
|
|
|
804
803
|
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
805
804
|
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
806
805
|
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
807
|
-
|
|
808
|
-
*/ declare function Pr(...t: any[]): Tr;
|
|
806
|
+
*/ declare function $r(...t: any[]): Pr;
|
|
809
807
|
/**
|
|
810
808
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
811
809
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -816,7 +814,7 @@ declare class vs {
|
|
|
816
814
|
* @param elements - The elements to remove from the array.
|
|
817
815
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
818
816
|
* `updateDoc()`
|
|
819
|
-
*/ declare function
|
|
817
|
+
*/ declare function ls(...t: any[]): rr;
|
|
820
818
|
/**
|
|
821
819
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
822
820
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -828,14 +826,14 @@ declare class vs {
|
|
|
828
826
|
* @param elements - The elements to union into the array.
|
|
829
827
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
830
828
|
* `updateDoc()`.
|
|
831
|
-
*/ declare function
|
|
829
|
+
*/ declare function hs(...t: any[]): nr;
|
|
832
830
|
/**
|
|
833
831
|
* Create an AggregateField object that can be used to compute the average of
|
|
834
832
|
* a specified field over a range of documents in the result set of a query.
|
|
835
833
|
* @param field Specifies the field to average across the result set.
|
|
836
834
|
* @internal TODO (sum/avg) remove when public
|
|
837
|
-
*/ declare function
|
|
838
|
-
declare function
|
|
835
|
+
*/ declare function ss(t: any): Dn;
|
|
836
|
+
declare function qn(t: any, e: any, ...n: any[]): Sn;
|
|
839
837
|
/**
|
|
840
838
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
841
839
|
* database that are contained in a collection or subcollection with the
|
|
@@ -846,7 +844,7 @@ declare function xn(t: any, e: any, ...n: any[]): Fn;
|
|
|
846
844
|
* collection or subcollection with this ID as the last segment of its path
|
|
847
845
|
* will be included. Cannot contain a slash.
|
|
848
846
|
* @returns The created `Query`.
|
|
849
|
-
*/ declare function
|
|
847
|
+
*/ declare function On(t: any, e: any): xn;
|
|
850
848
|
/**
|
|
851
849
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
852
850
|
*
|
|
@@ -859,12 +857,12 @@ declare function xn(t: any, e: any, ...n: any[]): Fn;
|
|
|
859
857
|
* @param port - the emulator port (ex: 9000).
|
|
860
858
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
861
859
|
* Security Rules.
|
|
862
|
-
*/ declare function
|
|
860
|
+
*/ declare function Vn(t: any, e: any, n: any, r?: {}): void;
|
|
863
861
|
/**
|
|
864
862
|
* Create an AggregateField object that can be used to compute the count of
|
|
865
863
|
* documents in the result set of a query.
|
|
866
864
|
* @internal TODO (sum/avg) remove when public
|
|
867
|
-
*/ declare function
|
|
865
|
+
*/ declare function is(): Dn;
|
|
868
866
|
/**
|
|
869
867
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
870
868
|
*
|
|
@@ -876,7 +874,7 @@ declare function xn(t: any, e: any, ...n: any[]): Fn;
|
|
|
876
874
|
* @param reference - A reference to the document to delete.
|
|
877
875
|
* @returns A `Promise` resolved once the document has been successfully
|
|
878
876
|
* deleted from the backend.
|
|
879
|
-
*/ declare function
|
|
877
|
+
*/ declare function Xr(t: any): Promise<void>;
|
|
880
878
|
/**
|
|
881
879
|
* @license
|
|
882
880
|
* Copyright 2020 Google LLC
|
|
@@ -896,14 +894,14 @@ declare function xn(t: any, e: any, ...n: any[]): Fn;
|
|
|
896
894
|
/**
|
|
897
895
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
898
896
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
899
|
-
*/ declare function
|
|
900
|
-
declare function
|
|
897
|
+
*/ declare function cs(): Xn;
|
|
898
|
+
declare function kn(t: any, e: any, ...n: any[]): Fn;
|
|
901
899
|
/**
|
|
902
900
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
903
901
|
* It can be used in queries to sort or filter by the document ID.
|
|
904
|
-
*/ declare function
|
|
905
|
-
declare function
|
|
906
|
-
declare function
|
|
902
|
+
*/ declare function jn(): Un;
|
|
903
|
+
declare function Mr(...t: any[]): Cr;
|
|
904
|
+
declare function Lr(...t: any[]): Cr;
|
|
907
905
|
/**
|
|
908
906
|
* Calculates the specified aggregations over the documents in the result
|
|
909
907
|
* set of the given query, without actually downloading the documents.
|
|
@@ -930,7 +928,7 @@ declare function kr(...t: any[]): Or;
|
|
|
930
928
|
* const averageScore: number | null = aggregateSnapshot.data().averageScore;
|
|
931
929
|
* ```
|
|
932
930
|
* @internal TODO (sum/avg) remove when public
|
|
933
|
-
*/ declare function
|
|
931
|
+
*/ declare function ns(t: any, e: any): Promise<Nn>;
|
|
934
932
|
/**
|
|
935
933
|
* @license
|
|
936
934
|
* Copyright 2022 Google LLC
|
|
@@ -960,7 +958,7 @@ declare function kr(...t: any[]): Or;
|
|
|
960
958
|
* @returns A Promise that will be resolved with the count; the count can be
|
|
961
959
|
* retrieved from `snapshot.data().count`, where `snapshot` is the
|
|
962
960
|
* `AggregateQuerySnapshot` to which the returned Promise resolves.
|
|
963
|
-
*/ declare function
|
|
961
|
+
*/ declare function es(t: any): Promise<Nn>;
|
|
964
962
|
/**
|
|
965
963
|
* Reads the document referred to by the specified document reference.
|
|
966
964
|
*
|
|
@@ -973,7 +971,7 @@ declare function kr(...t: any[]): Or;
|
|
|
973
971
|
* @param reference - The reference of the document to fetch.
|
|
974
972
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the current
|
|
975
973
|
* document contents.
|
|
976
|
-
*/ declare function
|
|
974
|
+
*/ declare function Yr(t: any): Promise<yr>;
|
|
977
975
|
/**
|
|
978
976
|
* Executes the query and returns the results as a {@link QuerySnapshot}.
|
|
979
977
|
*
|
|
@@ -985,8 +983,8 @@ declare function kr(...t: any[]): Or;
|
|
|
985
983
|
*
|
|
986
984
|
* @param query - The `Query` to execute.
|
|
987
985
|
* @returns A Promise that will be resolved with the results of the query.
|
|
988
|
-
*/ declare function
|
|
989
|
-
declare function
|
|
986
|
+
*/ declare function Hr(t: any): Promise<_r>;
|
|
987
|
+
declare function Pn(e: any, n: any): import("../../lite").Firestore;
|
|
990
988
|
/**
|
|
991
989
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
992
990
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1005,15 +1003,15 @@ declare function Tn(e: any, n: any): import("../../lite").Firestore;
|
|
|
1005
1003
|
* @param n - The value to increment by.
|
|
1006
1004
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1007
1005
|
* `updateDoc()`
|
|
1008
|
-
*/ declare function
|
|
1009
|
-
declare function
|
|
1006
|
+
*/ declare function fs(t: any): sr;
|
|
1007
|
+
declare function Rn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
1010
1008
|
/**
|
|
1011
1009
|
* Creates a {@link QueryLimitConstraint} that only returns the first matching
|
|
1012
1010
|
* documents.
|
|
1013
1011
|
*
|
|
1014
1012
|
* @param limit - The maximum number of items to return.
|
|
1015
1013
|
* @returns The created {@link QueryLimitConstraint}.
|
|
1016
|
-
*/ declare function
|
|
1014
|
+
*/ declare function xr(t: any): Fr;
|
|
1017
1015
|
/**
|
|
1018
1016
|
* Creates a {@link QueryLimitConstraint} that only returns the last matching
|
|
1019
1017
|
* documents.
|
|
@@ -1023,7 +1021,7 @@ declare function In(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
1023
1021
|
*
|
|
1024
1022
|
* @param limit - The maximum number of items to return.
|
|
1025
1023
|
* @returns The created {@link QueryLimitConstraint}.
|
|
1026
|
-
*/ declare function
|
|
1024
|
+
*/ declare function Sr(t: any): Fr;
|
|
1027
1025
|
/**
|
|
1028
1026
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
1029
1027
|
* the given filter constraints. A disjunction filter includes a document if it
|
|
@@ -1033,8 +1031,7 @@ declare function In(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
1033
1031
|
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
1034
1032
|
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
1035
1033
|
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
1036
|
-
|
|
1037
|
-
*/ declare function Rr(...t: any[]): Tr;
|
|
1034
|
+
*/ declare function Vr(...t: any[]): Pr;
|
|
1038
1035
|
/**
|
|
1039
1036
|
* Creates a {@link QueryOrderByConstraint} that sorts the query result by the
|
|
1040
1037
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1046,8 +1043,8 @@ declare function In(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
1046
1043
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1047
1044
|
* not specified, order will be ascending.
|
|
1048
1045
|
* @returns The created {@link QueryOrderByConstraint}.
|
|
1049
|
-
*/ declare function
|
|
1050
|
-
declare function
|
|
1046
|
+
*/ declare function Nr(t: any, e?: string): Dr;
|
|
1047
|
+
declare function Ir(t: any, e: any, ...n: any[]): any;
|
|
1051
1048
|
/**
|
|
1052
1049
|
* Returns true if the provided queries point to the same collection and apply
|
|
1053
1050
|
* the same constraints.
|
|
@@ -1056,7 +1053,7 @@ declare function Er(t: any, e: any, ...n: any[]): any;
|
|
|
1056
1053
|
* @param right - A `Query` to compare.
|
|
1057
1054
|
* @returns true if the references point to the same location in the same
|
|
1058
1055
|
* Firestore database.
|
|
1059
|
-
*/ declare function
|
|
1056
|
+
*/ declare function Ln(t: any, e: any): boolean;
|
|
1060
1057
|
/**
|
|
1061
1058
|
* Returns true if the provided references are equal.
|
|
1062
1059
|
*
|
|
@@ -1064,7 +1061,7 @@ declare function Er(t: any, e: any, ...n: any[]): any;
|
|
|
1064
1061
|
* @param right - A reference to compare.
|
|
1065
1062
|
* @returns true if the references point to the same location in the same
|
|
1066
1063
|
* Firestore database.
|
|
1067
|
-
*/ declare function
|
|
1064
|
+
*/ declare function Cn(t: any, e: any): boolean;
|
|
1068
1065
|
/**
|
|
1069
1066
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1070
1067
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1083,12 +1080,12 @@ declare function Er(t: any, e: any, ...n: any[]): any;
|
|
|
1083
1080
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1084
1081
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1085
1082
|
* rejected promise with the corresponding failure error is returned.
|
|
1086
|
-
*/ declare function
|
|
1083
|
+
*/ declare function As(t: any, e: any, n: any): Promise<any>;
|
|
1087
1084
|
/**
|
|
1088
1085
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1089
1086
|
* include a server-generated timestamp in the written data.
|
|
1090
|
-
*/ declare function
|
|
1091
|
-
declare function
|
|
1087
|
+
*/ declare function as(): er;
|
|
1088
|
+
declare function Zr(t: any, e: any, n: any): Promise<void>;
|
|
1092
1089
|
/**
|
|
1093
1090
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1094
1091
|
*
|
|
@@ -1108,10 +1105,10 @@ declare function Yr(t: any, e: any, n: any): Promise<void>;
|
|
|
1108
1105
|
* @param left - A snapshot to compare.
|
|
1109
1106
|
* @param right - A snapshot to compare.
|
|
1110
1107
|
* @returns true if the snapshots are equal.
|
|
1111
|
-
*/ declare function
|
|
1112
|
-
declare function
|
|
1113
|
-
declare function
|
|
1114
|
-
declare function
|
|
1108
|
+
*/ declare function vr(t: any, e: any): any;
|
|
1109
|
+
declare function kr(...t: any[]): qr;
|
|
1110
|
+
declare function Or(...t: any[]): qr;
|
|
1111
|
+
declare function rs(t: any): Dn;
|
|
1115
1112
|
/**
|
|
1116
1113
|
* Terminates the provided `Firestore` instance.
|
|
1117
1114
|
*
|
|
@@ -1131,8 +1128,8 @@ declare function es(t: any): Vn;
|
|
|
1131
1128
|
* @param firestore - The `Firestore` instance to terminate.
|
|
1132
1129
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1133
1130
|
* terminated.
|
|
1134
|
-
*/ declare function
|
|
1135
|
-
declare function
|
|
1131
|
+
*/ declare function $n(t: any): any;
|
|
1132
|
+
declare function Jr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
1136
1133
|
/**
|
|
1137
1134
|
* Creates a {@link QueryFieldFilterConstraint} that enforces that documents
|
|
1138
1135
|
* must contain the specified field and that the value should satisfy the
|
|
@@ -1143,7 +1140,7 @@ declare function Hr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
1143
1140
|
* "<=", "!=").
|
|
1144
1141
|
* @param value - The value for comparison
|
|
1145
1142
|
* @returns The created {@link QueryFieldFilterConstraint}.
|
|
1146
|
-
*/ declare function
|
|
1143
|
+
*/ declare function Rr(t: any, e: any, n: any): Tr;
|
|
1147
1144
|
/**
|
|
1148
1145
|
* Creates a write batch, used for performing multiple writes as a single
|
|
1149
1146
|
* atomic operation. The maximum number of writes allowed in a single WriteBatch
|
|
@@ -1156,7 +1153,7 @@ declare function Hr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
1156
1153
|
*
|
|
1157
1154
|
* @returns A `WriteBatch` that can be used to atomically execute multiple
|
|
1158
1155
|
* writes.
|
|
1159
|
-
*/ declare function
|
|
1156
|
+
*/ declare function ms(t: any): ds;
|
|
1160
1157
|
/**
|
|
1161
1158
|
* A dot-separated path for navigating sub-objects within a document.
|
|
1162
1159
|
* @internal
|
|
@@ -1195,7 +1192,7 @@ declare function Hr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
1195
1192
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1196
1193
|
* defaults can be supplied and the value can be checked for equality.
|
|
1197
1194
|
*/
|
|
1198
|
-
declare class
|
|
1195
|
+
declare class In {
|
|
1199
1196
|
constructor(t: any);
|
|
1200
1197
|
host: any;
|
|
1201
1198
|
ssl: any;
|
|
@@ -1228,13 +1225,13 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
1228
1225
|
* An `AppliableConstraint` is an abstraction of a constraint that can be applied
|
|
1229
1226
|
* to a Firestore query.
|
|
1230
1227
|
*/
|
|
1231
|
-
declare class
|
|
1228
|
+
declare class Er {
|
|
1232
1229
|
}
|
|
1233
|
-
declare class
|
|
1230
|
+
declare class Xt extends Jt {
|
|
1234
1231
|
/**
|
|
1235
1232
|
* Creates a filter based on the provided arguments.
|
|
1236
|
-
*/ static create(t: any, e: any, n: any):
|
|
1237
|
-
static createKeyFieldInFilter(t: any, e: any, n: any):
|
|
1233
|
+
*/ static create(t: any, e: any, n: any): Xt | re | ae;
|
|
1234
|
+
static createKeyFieldInFilter(t: any, e: any, n: any): re | se;
|
|
1238
1235
|
constructor(t: any, e: any, n: any);
|
|
1239
1236
|
field: any;
|
|
1240
1237
|
op: any;
|
|
@@ -1242,53 +1239,53 @@ declare class Zt extends Ht {
|
|
|
1242
1239
|
matches(t: any): boolean | void;
|
|
1243
1240
|
matchesComparison(t: any): boolean | void;
|
|
1244
1241
|
isInequality(): boolean;
|
|
1245
|
-
getFlattenedFilters():
|
|
1246
|
-
getFilters():
|
|
1242
|
+
getFlattenedFilters(): Xt[];
|
|
1243
|
+
getFilters(): Xt[];
|
|
1247
1244
|
getFirstInequalityField(): any;
|
|
1248
1245
|
}
|
|
1249
|
-
/** Filter that matches on key fields within an array. */ declare class
|
|
1246
|
+
/** Filter that matches on key fields within an array. */ declare class re extends Xt {
|
|
1250
1247
|
constructor(t: any, e: any);
|
|
1251
1248
|
keys: any;
|
|
1252
1249
|
matches(t: any): any;
|
|
1253
1250
|
}
|
|
1254
|
-
/** A Filter that implements the array-contains-any operator. */ declare class
|
|
1251
|
+
/** A Filter that implements the array-contains-any operator. */ declare class ae extends Xt {
|
|
1255
1252
|
constructor(t: any, e: any);
|
|
1256
1253
|
matches(t: any): any;
|
|
1257
1254
|
}
|
|
1258
1255
|
/**
|
|
1259
1256
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1260
1257
|
* classes.
|
|
1261
|
-
*/ declare class
|
|
1258
|
+
*/ declare class Hn {
|
|
1262
1259
|
constructor(t: any, e: any, n: any);
|
|
1263
1260
|
databaseId: any;
|
|
1264
1261
|
ignoreUndefinedProperties: any;
|
|
1265
1262
|
M: any;
|
|
1266
|
-
/** Creates a new top-level parse context. */ wt(t: any, e: any, n: any, r?: boolean):
|
|
1263
|
+
/** Creates a new top-level parse context. */ wt(t: any, e: any, n: any, r?: boolean): Yn;
|
|
1267
1264
|
}
|
|
1268
|
-
declare class
|
|
1265
|
+
declare class rr extends Bn {
|
|
1269
1266
|
constructor(t: any, e: any);
|
|
1270
1267
|
yt: any;
|
|
1271
|
-
_toFieldTransform(t: any):
|
|
1268
|
+
_toFieldTransform(t: any): ke;
|
|
1272
1269
|
isEqual(t: any): boolean;
|
|
1273
1270
|
}
|
|
1274
|
-
declare class
|
|
1271
|
+
declare class nr extends Bn {
|
|
1275
1272
|
constructor(t: any, e: any);
|
|
1276
1273
|
yt: any;
|
|
1277
|
-
_toFieldTransform(t: any):
|
|
1274
|
+
_toFieldTransform(t: any): ke;
|
|
1278
1275
|
isEqual(t: any): boolean;
|
|
1279
1276
|
}
|
|
1280
|
-
declare class
|
|
1277
|
+
declare class Xn extends Bn {
|
|
1281
1278
|
_toFieldTransform(t: any): null;
|
|
1282
1279
|
isEqual(t: any): boolean;
|
|
1283
1280
|
}
|
|
1284
|
-
declare class
|
|
1281
|
+
declare class sr extends Bn {
|
|
1285
1282
|
constructor(t: any, e: any);
|
|
1286
1283
|
gt: any;
|
|
1287
|
-
_toFieldTransform(t: any):
|
|
1284
|
+
_toFieldTransform(t: any): ke;
|
|
1288
1285
|
isEqual(t: any): boolean;
|
|
1289
1286
|
}
|
|
1290
|
-
declare class
|
|
1291
|
-
_toFieldTransform(t: any):
|
|
1287
|
+
declare class er extends Bn {
|
|
1288
|
+
_toFieldTransform(t: any): ke;
|
|
1292
1289
|
isEqual(t: any): boolean;
|
|
1293
1290
|
}
|
|
1294
1291
|
/**
|
|
@@ -1330,14 +1327,14 @@ declare class X {
|
|
|
1330
1327
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1331
1328
|
* See the License for the specific language governing permissions and
|
|
1332
1329
|
* limitations under the License.
|
|
1333
|
-
*/ declare class
|
|
1330
|
+
*/ declare class Jt {
|
|
1334
1331
|
}
|
|
1335
|
-
/** Filter that matches on key fields not present within an array. */ declare class
|
|
1332
|
+
/** Filter that matches on key fields not present within an array. */ declare class se extends Xt {
|
|
1336
1333
|
constructor(t: any, e: any);
|
|
1337
1334
|
keys: any;
|
|
1338
1335
|
matches(t: any): boolean;
|
|
1339
1336
|
}
|
|
1340
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1337
|
+
/** A "context" object passed around while parsing user data. */ declare class Yn {
|
|
1341
1338
|
/**
|
|
1342
1339
|
* Initializes a ParseContext with the given source and path.
|
|
1343
1340
|
*
|
|
@@ -1365,10 +1362,10 @@ declare class X {
|
|
|
1365
1362
|
fieldMask: any;
|
|
1366
1363
|
get path(): any;
|
|
1367
1364
|
get st(): any;
|
|
1368
|
-
/** Returns a new context with the specified settings overwritten. */ it(t: any):
|
|
1369
|
-
ot(t: any):
|
|
1370
|
-
at(t: any):
|
|
1371
|
-
ht(t: any):
|
|
1365
|
+
/** Returns a new context with the specified settings overwritten. */ it(t: any): Yn;
|
|
1366
|
+
ot(t: any): Yn;
|
|
1367
|
+
at(t: any): Yn;
|
|
1368
|
+
ht(t: any): Yn;
|
|
1372
1369
|
lt(t: any): U;
|
|
1373
1370
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1374
1371
|
rt(): void;
|
|
@@ -1390,9 +1387,9 @@ declare class X {
|
|
|
1390
1387
|
* See the License for the specific language governing permissions and
|
|
1391
1388
|
* limitations under the License.
|
|
1392
1389
|
*/
|
|
1393
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1390
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class ke {
|
|
1394
1391
|
constructor(t: any, e: any);
|
|
1395
1392
|
field: any;
|
|
1396
1393
|
transform: any;
|
|
1397
1394
|
}
|
|
1398
|
-
export {
|
|
1395
|
+
export { Dn as AggregateField, Nn as AggregateQuerySnapshot, Mn as Bytes, Sn as CollectionReference, Fn as DocumentReference, yr as DocumentSnapshot, Un as FieldPath, Bn as FieldValue, Tn as Firestore, U as FirestoreError, zn as GeoPoint, xn as Query, Pr as QueryCompositeFilterConstraint, Ar as QueryConstraint, gr as QueryDocumentSnapshot, Cr as QueryEndAtConstraint, Tr as QueryFieldFilterConstraint, Fr as QueryLimitConstraint, Dr as QueryOrderByConstraint, _r as QuerySnapshot, qr as QueryStartAtConstraint, St as Timestamp, Es as Transaction, ds as WriteBatch, ts as addDoc, os as aggregateFieldEqual, us as aggregateQuerySnapshotEqual, $r as and, ls as arrayRemove, hs as arrayUnion, ss as average, qn as collection, On as collectionGroup, Vn as connectFirestoreEmulator, is as count, Xr as deleteDoc, cs as deleteField, kn as doc, jn as documentId, Mr as endAt, Lr as endBefore, ns as getAggregate, es as getCount, Yr as getDoc, Hr as getDocs, Pn as getFirestore, fs as increment, Rn as initializeFirestore, xr as limit, Sr as limitToLast, Vr as or, Nr as orderBy, Ir as query, Ln as queryEqual, Cn as refEqual, As as runTransaction, as as serverTimestamp, Zr as setDoc, p as setLogLevel, vr as snapshotEqual, kr as startAfter, Or as startAt, rs as sum, $n as terminate, Jr as updateDoc, Rr as where, ms as writeBatch };
|