@firebase/firestore 3.7.3-canary.ab3f16cba → 3.7.3-canary.fde5adf63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/firestore/lite/index.d.ts +1 -1
- package/dist/firestore/src/api/filter.d.ts +1 -1
- package/dist/firestore/src/api.d.ts +1 -1
- package/dist/firestore/src/core/bound.d.ts +49 -0
- package/dist/firestore/src/core/filter.d.ts +134 -0
- package/dist/firestore/src/core/order_by.d.ts +35 -0
- package/dist/firestore/src/core/query.d.ts +5 -6
- package/dist/firestore/src/core/target.d.ts +4 -120
- package/dist/firestore/src/lite-api/query.d.ts +273 -66
- package/dist/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
- package/dist/firestore/src/protos/firestore_proto_api.d.ts +1 -1
- package/dist/firestore/src/remote/serializer.d.ts +10 -3
- package/dist/firestore/src/util/logic_utils.d.ts +52 -0
- package/dist/firestore/test/unit/core/filter.test.d.ts +17 -0
- package/dist/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
- package/dist/firestore/test/util/helpers.d.ts +5 -1
- package/dist/index.d.ts +138 -62
- package/dist/index.esm2017.js +4046 -3512
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +4366 -3816
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +1291 -555
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +1284 -556
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +4145 -3611
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +320 -65
- package/dist/lite/firestore/lite/index.d.ts +1 -1
- package/dist/lite/firestore/src/api/filter.d.ts +1 -1
- package/dist/lite/firestore/src/api.d.ts +1 -1
- package/dist/lite/firestore/src/core/bound.d.ts +49 -0
- package/dist/lite/firestore/src/core/filter.d.ts +134 -0
- package/dist/lite/firestore/src/core/order_by.d.ts +35 -0
- package/dist/lite/firestore/src/core/query.d.ts +5 -6
- package/dist/lite/firestore/src/core/target.d.ts +4 -120
- package/dist/lite/firestore/src/lite-api/query.d.ts +273 -66
- package/dist/lite/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
- package/dist/lite/firestore/src/protos/firestore_proto_api.d.ts +1 -1
- package/dist/lite/firestore/src/remote/serializer.d.ts +10 -3
- package/dist/lite/firestore/src/util/logic_utils.d.ts +52 -0
- package/dist/lite/firestore/test/unit/core/filter.test.d.ts +17 -0
- package/dist/lite/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
- package/dist/lite/firestore/test/util/helpers.d.ts +5 -1
- package/dist/lite/index.browser.esm2017.js +2119 -1843
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +1957 -1737
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.d.ts +138 -62
- package/dist/lite/index.node.cjs.js +2093 -1717
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +2086 -1718
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +2118 -1841
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +320 -65
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +320 -175
- package/dist/lite/packages/firestore/lite/index.d.ts +1 -1
- package/dist/lite/packages/firestore/src/api/filter.d.ts +1 -1
- package/dist/lite/packages/firestore/src/api.d.ts +1 -1
- package/dist/lite/packages/firestore/src/core/bound.d.ts +49 -0
- package/dist/lite/packages/firestore/src/core/filter.d.ts +134 -0
- package/dist/lite/packages/firestore/src/core/order_by.d.ts +35 -0
- package/dist/lite/packages/firestore/src/core/query.d.ts +5 -6
- package/dist/lite/packages/firestore/src/core/target.d.ts +4 -120
- package/dist/lite/packages/firestore/src/lite-api/query.d.ts +273 -66
- package/dist/lite/packages/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
- package/dist/lite/packages/firestore/src/protos/firestore_proto_api.d.ts +1 -1
- package/dist/lite/packages/firestore/src/remote/serializer.d.ts +10 -3
- package/dist/lite/packages/firestore/src/util/logic_utils.d.ts +52 -0
- package/dist/lite/packages/firestore/test/unit/core/filter.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/util/helpers.d.ts +5 -1
- package/dist/lite/private.d.ts +232 -65
- package/dist/packages/firestore/dist/index.esm2017.d.ts +333 -209
- package/dist/packages/firestore/lite/index.d.ts +1 -1
- package/dist/packages/firestore/src/api/filter.d.ts +1 -1
- package/dist/packages/firestore/src/api.d.ts +1 -1
- package/dist/packages/firestore/src/core/bound.d.ts +49 -0
- package/dist/packages/firestore/src/core/filter.d.ts +134 -0
- package/dist/packages/firestore/src/core/order_by.d.ts +35 -0
- package/dist/packages/firestore/src/core/query.d.ts +5 -6
- package/dist/packages/firestore/src/core/target.d.ts +4 -120
- package/dist/packages/firestore/src/lite-api/query.d.ts +273 -66
- package/dist/packages/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
- package/dist/packages/firestore/src/protos/firestore_proto_api.d.ts +1 -1
- package/dist/packages/firestore/src/remote/serializer.d.ts +10 -3
- package/dist/packages/firestore/src/util/logic_utils.d.ts +52 -0
- package/dist/packages/firestore/test/unit/core/filter.test.d.ts +17 -0
- package/dist/packages/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
- package/dist/packages/firestore/test/util/helpers.d.ts +5 -1
- package/dist/private.d.ts +232 -65
- package/package.json +11 -9
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
/**
|
|
34
34
|
* Represents an aggregation that can be performed by Firestore.
|
|
35
35
|
*/
|
|
36
|
-
declare class
|
|
36
|
+
declare class An {
|
|
37
37
|
/** A type string to uniquely identify instances of this class. */
|
|
38
38
|
type: string;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* The results of executing an aggregation query.
|
|
42
|
-
*/ declare class
|
|
42
|
+
*/ declare class Tn {
|
|
43
43
|
/** @hideconstructor */
|
|
44
44
|
constructor(t: any, e: any);
|
|
45
45
|
_data: any;
|
|
@@ -76,18 +76,18 @@ declare class yn {
|
|
|
76
76
|
*/
|
|
77
77
|
/**
|
|
78
78
|
* An immutable object representing an array of bytes.
|
|
79
|
-
*/ declare class
|
|
79
|
+
*/ declare class qn {
|
|
80
80
|
/**
|
|
81
81
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
82
82
|
* bytes.
|
|
83
83
|
*
|
|
84
84
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
85
|
-
*/ static fromBase64String(t: any):
|
|
85
|
+
*/ static fromBase64String(t: any): qn;
|
|
86
86
|
/**
|
|
87
87
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
88
88
|
*
|
|
89
89
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
90
|
-
*/ static fromUint8Array(t: any):
|
|
90
|
+
*/ static fromUint8Array(t: any): qn;
|
|
91
91
|
/** @hideconstructor */
|
|
92
92
|
constructor(t: any);
|
|
93
93
|
_byteString: any;
|
|
@@ -116,7 +116,7 @@ declare class yn {
|
|
|
116
116
|
/**
|
|
117
117
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
118
118
|
* document references, and querying for documents (using {@link query}).
|
|
119
|
-
*/ declare class
|
|
119
|
+
*/ declare class Nn extends Vn {
|
|
120
120
|
_path: any;
|
|
121
121
|
/** The collection's identifier. */ get id(): any;
|
|
122
122
|
/**
|
|
@@ -126,8 +126,8 @@ declare class yn {
|
|
|
126
126
|
/**
|
|
127
127
|
* A reference to the containing `DocumentReference` if this is a
|
|
128
128
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
129
|
-
*/ get parent():
|
|
130
|
-
withConverter(t: any):
|
|
129
|
+
*/ get parent(): Pn | null;
|
|
130
|
+
withConverter(t: any): Nn;
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
133
|
* @license
|
|
@@ -149,7 +149,7 @@ declare class yn {
|
|
|
149
149
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
150
150
|
* and can be used to write, read, or listen to the location. The document at
|
|
151
151
|
* the referenced location may or may not exist.
|
|
152
|
-
*/ declare class
|
|
152
|
+
*/ declare class Pn {
|
|
153
153
|
/** @hideconstructor */
|
|
154
154
|
constructor(t: any, e: any, n: any);
|
|
155
155
|
converter: any;
|
|
@@ -167,8 +167,8 @@ declare class yn {
|
|
|
167
167
|
*/ get path(): any;
|
|
168
168
|
/**
|
|
169
169
|
* The collection this `DocumentReference` belongs to.
|
|
170
|
-
*/ get parent():
|
|
171
|
-
withConverter(t: any):
|
|
170
|
+
*/ get parent(): Nn;
|
|
171
|
+
withConverter(t: any): Pn;
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
174
|
* @license
|
|
@@ -194,7 +194,7 @@ declare class yn {
|
|
|
194
194
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
195
195
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
196
196
|
* explicitly verify a document's existence.
|
|
197
|
-
*/ declare class
|
|
197
|
+
*/ declare class fr {
|
|
198
198
|
/** @hideconstructor protected */
|
|
199
199
|
constructor(t: any, e: any, n: any, r: any, s: any);
|
|
200
200
|
_firestore: any;
|
|
@@ -205,7 +205,7 @@ declare class yn {
|
|
|
205
205
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
206
206
|
/**
|
|
207
207
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
208
|
-
*/ get ref():
|
|
208
|
+
*/ get ref(): Pn;
|
|
209
209
|
/**
|
|
210
210
|
* Signals whether or not the document at the snapshot's location exists.
|
|
211
211
|
*
|
|
@@ -252,7 +252,7 @@ declare class yn {
|
|
|
252
252
|
*
|
|
253
253
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
254
254
|
* name is provided, the path will point to a nested field in a document.
|
|
255
|
-
*/ declare class
|
|
255
|
+
*/ declare class On {
|
|
256
256
|
/**
|
|
257
257
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
258
258
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -287,7 +287,7 @@ declare class yn {
|
|
|
287
287
|
/**
|
|
288
288
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
289
289
|
* or `update()`.
|
|
290
|
-
*/ declare class
|
|
290
|
+
*/ declare class Cn {
|
|
291
291
|
/**
|
|
292
292
|
* @param _methodName - The public API endpoint that returns this class.
|
|
293
293
|
* @hideconstructor
|
|
@@ -315,7 +315,7 @@ declare class yn {
|
|
|
315
315
|
* The Cloud Firestore service interface.
|
|
316
316
|
*
|
|
317
317
|
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
318
|
-
*/ declare class
|
|
318
|
+
*/ declare class _n {
|
|
319
319
|
/** @hideconstructor */
|
|
320
320
|
constructor(t: any, e: any, n: any, r: any);
|
|
321
321
|
_authCredentials: any;
|
|
@@ -327,7 +327,7 @@ declare class yn {
|
|
|
327
327
|
*/
|
|
328
328
|
type: string;
|
|
329
329
|
_persistenceKey: string;
|
|
330
|
-
_settings:
|
|
330
|
+
_settings: gn;
|
|
331
331
|
_settingsFrozen: boolean;
|
|
332
332
|
/**
|
|
333
333
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -336,14 +336,14 @@ declare class yn {
|
|
|
336
336
|
get _initialized(): boolean;
|
|
337
337
|
get _terminated(): boolean;
|
|
338
338
|
_setSettings(t: any): void;
|
|
339
|
-
_getSettings():
|
|
340
|
-
_freezeSettings():
|
|
339
|
+
_getSettings(): gn;
|
|
340
|
+
_freezeSettings(): gn;
|
|
341
341
|
_delete(): Promise<void>;
|
|
342
342
|
_terminateTask: Promise<void> | undefined;
|
|
343
343
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
344
344
|
app: any;
|
|
345
345
|
databaseId: any;
|
|
346
|
-
settings:
|
|
346
|
+
settings: gn;
|
|
347
347
|
};
|
|
348
348
|
/**
|
|
349
349
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -381,7 +381,7 @@ declare class yn {
|
|
|
381
381
|
*
|
|
382
382
|
* Latitude values are in the range of [-90, 90].
|
|
383
383
|
* Longitude values are in the range of [-180, 180].
|
|
384
|
-
*/ declare class
|
|
384
|
+
*/ declare class Ln {
|
|
385
385
|
/**
|
|
386
386
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
387
387
|
* longitude values.
|
|
@@ -415,7 +415,7 @@ declare class yn {
|
|
|
415
415
|
/**
|
|
416
416
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
417
417
|
* construct refined `Query` objects by adding filters and ordering.
|
|
418
|
-
*/ declare class
|
|
418
|
+
*/ declare class Vn {
|
|
419
419
|
/** @hideconstructor protected */
|
|
420
420
|
constructor(t: any, e: any, n: any);
|
|
421
421
|
converter: any;
|
|
@@ -423,33 +423,37 @@ declare class yn {
|
|
|
423
423
|
/** The type of this Firestore reference. */
|
|
424
424
|
type: string;
|
|
425
425
|
firestore: any;
|
|
426
|
-
withConverter(t: any):
|
|
426
|
+
withConverter(t: any): Vn;
|
|
427
427
|
}
|
|
428
428
|
/**
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
429
|
+
* A `QueryCompositeFilterConstraint` is used to narrow the set of documents
|
|
430
|
+
* returned by a Firestore query by performing the logical OR or AND of multiple
|
|
431
|
+
* {@link QueryFieldFilterConstraint}s or {@link QueryCompositeFilterConstraint}s.
|
|
432
|
+
* `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
|
|
433
|
+
* {@link and} and can then be passed to {@link query} to create a new query
|
|
434
|
+
* instance that also contains the `QueryCompositeFilterConstraint`.
|
|
435
|
+
* @internal TODO remove this internal tag with OR Query support in the server
|
|
436
|
+
*/ declare class Er extends yr {
|
|
437
|
+
static _create(t: any, e: any): Er;
|
|
438
|
+
/**
|
|
439
|
+
* @internal
|
|
440
|
+
*/
|
|
441
|
+
constructor(t: any, e: any);
|
|
442
|
+
type: any;
|
|
443
|
+
_queryConstraints: any;
|
|
444
|
+
_parse(t: any): any;
|
|
445
|
+
_apply(t: any): any;
|
|
446
|
+
_getQueryConstraints(): any;
|
|
447
|
+
_getOperator(): "and" | "or";
|
|
448
|
+
}
|
|
444
449
|
/**
|
|
445
450
|
* A `QueryConstraint` is used to narrow the set of documents returned by a
|
|
446
451
|
* Firestore query. `QueryConstraint`s are created by invoking {@link where},
|
|
447
|
-
* {@link orderBy}, {@link
|
|
448
|
-
* endBefore
|
|
452
|
+
* {@link orderBy}, {@link startAt}, {@link startAfter}, {@link
|
|
453
|
+
* endBefore}, {@link endAt}, {@link limit}, {@link limitToLast} and
|
|
449
454
|
* can then be passed to {@link query} to create a new query instance that
|
|
450
455
|
* also contains this `QueryConstraint`.
|
|
451
|
-
*/
|
|
452
|
-
declare class hr {
|
|
456
|
+
*/ declare class gr extends yr {
|
|
453
457
|
}
|
|
454
458
|
/**
|
|
455
459
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -461,7 +465,81 @@ declare class hr {
|
|
|
461
465
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
462
466
|
* `exists` property will always be true and `data()` will never return
|
|
463
467
|
* 'undefined'.
|
|
464
|
-
*/ declare class
|
|
468
|
+
*/ declare class dr extends fr {
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* A `QueryEndAtConstraint` is used to exclude documents from the end of a
|
|
472
|
+
* result set returned by a Firestore query.
|
|
473
|
+
* `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
|
|
474
|
+
* {@link (endBefore:1)} and can then be passed to {@link query} to create a new
|
|
475
|
+
* query instance that also contains this `QueryEndAtConstraint`.
|
|
476
|
+
*/ declare class xr extends gr {
|
|
477
|
+
static _create(t: any, e: any, n: any): xr;
|
|
478
|
+
/**
|
|
479
|
+
* @internal
|
|
480
|
+
*/
|
|
481
|
+
constructor(t: any, e: any, n: any);
|
|
482
|
+
type: any;
|
|
483
|
+
_docOrFields: any;
|
|
484
|
+
_inclusive: any;
|
|
485
|
+
_apply(t: any): Vn;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
|
|
489
|
+
* a Firestore query by filtering on one or more document fields.
|
|
490
|
+
* `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
|
|
491
|
+
* be passed to {@link query} to create a new query instance that also contains
|
|
492
|
+
* this `QueryFieldFilterConstraint`.
|
|
493
|
+
*/ declare class vr extends gr {
|
|
494
|
+
static _create(t: any, e: any, n: any): vr;
|
|
495
|
+
/**
|
|
496
|
+
* @internal
|
|
497
|
+
*/
|
|
498
|
+
constructor(t: any, e: any, n: any);
|
|
499
|
+
_field: any;
|
|
500
|
+
_op: any;
|
|
501
|
+
_value: any;
|
|
502
|
+
/** The type of this query constraint */
|
|
503
|
+
type: string;
|
|
504
|
+
_apply(t: any): Vn;
|
|
505
|
+
_parse(t: any): Gt | Jt | re;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* A `QueryLimitConstraint` is used to limit the number of documents returned by
|
|
509
|
+
* a Firestore query.
|
|
510
|
+
* `QueryLimitConstraint`s are created by invoking {@link limit} or
|
|
511
|
+
* {@link limitToLast} and can then be passed to {@link query} to create a new
|
|
512
|
+
* query instance that also contains this `QueryLimitConstraint`.
|
|
513
|
+
*/ declare class Pr extends gr {
|
|
514
|
+
static _create(t: any, e: any, n: any): Pr;
|
|
515
|
+
/**
|
|
516
|
+
* @internal
|
|
517
|
+
*/
|
|
518
|
+
constructor(t: any, e: any, n: any);
|
|
519
|
+
type: any;
|
|
520
|
+
_limit: any;
|
|
521
|
+
_limitType: any;
|
|
522
|
+
_apply(t: any): Vn;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* A `QueryOrderByConstraint` is used to sort the set of documents returned by a
|
|
526
|
+
* Firestore query. `QueryOrderByConstraint`s are created by invoking
|
|
527
|
+
* {@link orderBy} and can then be passed to {@link query} to create a new query
|
|
528
|
+
* instance that also contains this `QueryOrderByConstraint`.
|
|
529
|
+
*
|
|
530
|
+
* Note: Documents that do not contain the orderBy field will not be present in
|
|
531
|
+
* the query result.
|
|
532
|
+
*/ declare class Tr extends gr {
|
|
533
|
+
static _create(t: any, e: any): Tr;
|
|
534
|
+
/**
|
|
535
|
+
* @internal
|
|
536
|
+
*/
|
|
537
|
+
constructor(t: any, e: any);
|
|
538
|
+
_field: any;
|
|
539
|
+
_direction: any;
|
|
540
|
+
/** The type of this query constraint */
|
|
541
|
+
type: string;
|
|
542
|
+
_apply(t: any): Vn;
|
|
465
543
|
}
|
|
466
544
|
/**
|
|
467
545
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -469,7 +547,7 @@ declare class hr {
|
|
|
469
547
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
470
548
|
* number of documents can be determined via the `empty` and `size`
|
|
471
549
|
* properties.
|
|
472
|
-
*/ declare class
|
|
550
|
+
*/ declare class wr {
|
|
473
551
|
/** @hideconstructor */
|
|
474
552
|
constructor(t: any, e: any);
|
|
475
553
|
_docs: any;
|
|
@@ -485,6 +563,23 @@ declare class hr {
|
|
|
485
563
|
* @param thisArg - The `this` binding for the callback.
|
|
486
564
|
*/ forEach(t: any, e: any): void;
|
|
487
565
|
}
|
|
566
|
+
/**
|
|
567
|
+
* A `QueryStartAtConstraint` is used to exclude documents from the start of a
|
|
568
|
+
* result set returned by a Firestore query.
|
|
569
|
+
* `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
|
|
570
|
+
* {@link (startAfter:1)} and can then be passed to {@link query} to create a
|
|
571
|
+
* new query instance that also contains this `QueryStartAtConstraint`.
|
|
572
|
+
*/ declare class $r extends gr {
|
|
573
|
+
static _create(t: any, e: any, n: any): $r;
|
|
574
|
+
/**
|
|
575
|
+
* @internal
|
|
576
|
+
*/
|
|
577
|
+
constructor(t: any, e: any, n: any);
|
|
578
|
+
type: any;
|
|
579
|
+
_docOrFields: any;
|
|
580
|
+
_inclusive: any;
|
|
581
|
+
_apply(t: any): Vn;
|
|
582
|
+
}
|
|
488
583
|
/**
|
|
489
584
|
* @license
|
|
490
585
|
* Copyright 2017 Google LLC
|
|
@@ -515,19 +610,19 @@ declare class hr {
|
|
|
515
610
|
* For examples and further specifications, refer to the
|
|
516
611
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
517
612
|
*/
|
|
518
|
-
declare class
|
|
613
|
+
declare class Vt {
|
|
519
614
|
/**
|
|
520
615
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
521
616
|
*
|
|
522
617
|
* @returns a new timestamp representing the current date.
|
|
523
|
-
*/ static now():
|
|
618
|
+
*/ static now(): Vt;
|
|
524
619
|
/**
|
|
525
620
|
* Creates a new timestamp from the given date.
|
|
526
621
|
*
|
|
527
622
|
* @param date - The date to initialize the `Timestamp` from.
|
|
528
623
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
529
624
|
* date.
|
|
530
|
-
*/ static fromDate(t: any):
|
|
625
|
+
*/ static fromDate(t: any): Vt;
|
|
531
626
|
/**
|
|
532
627
|
* Creates a new timestamp from the given number of milliseconds.
|
|
533
628
|
*
|
|
@@ -535,7 +630,7 @@ declare class bt {
|
|
|
535
630
|
* 1970-01-01T00:00:00Z.
|
|
536
631
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
537
632
|
* number of milliseconds.
|
|
538
|
-
*/ static fromMillis(t: any):
|
|
633
|
+
*/ static fromMillis(t: any): Vt;
|
|
539
634
|
/**
|
|
540
635
|
* Creates a new timestamp.
|
|
541
636
|
*
|
|
@@ -582,26 +677,26 @@ declare class bt {
|
|
|
582
677
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
583
678
|
*/ valueOf(): string;
|
|
584
679
|
}
|
|
585
|
-
declare class
|
|
680
|
+
declare class fs {
|
|
586
681
|
/** @hideconstructor */
|
|
587
682
|
constructor(t: any, e: any);
|
|
588
683
|
_firestore: any;
|
|
589
684
|
_transaction: any;
|
|
590
|
-
_dataReader:
|
|
685
|
+
_dataReader: zn;
|
|
591
686
|
/**
|
|
592
687
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
593
688
|
*
|
|
594
689
|
* @param documentRef - A reference to the document to be read.
|
|
595
690
|
* @returns A `DocumentSnapshot` with the read data.
|
|
596
691
|
*/ get(t: any): any;
|
|
597
|
-
set(t: any, e: any, n: any):
|
|
598
|
-
update(t: any, e: any, n: any, ...r: any[]):
|
|
692
|
+
set(t: any, e: any, n: any): fs;
|
|
693
|
+
update(t: any, e: any, n: any, ...r: any[]): fs;
|
|
599
694
|
/**
|
|
600
695
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
601
696
|
*
|
|
602
697
|
* @param documentRef - A reference to the document to be deleted.
|
|
603
698
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
604
|
-
*/ delete(t: any):
|
|
699
|
+
*/ delete(t: any): fs;
|
|
605
700
|
}
|
|
606
701
|
/**
|
|
607
702
|
* @license
|
|
@@ -626,22 +721,22 @@ declare class Zr {
|
|
|
626
721
|
* provides methods for adding writes to the write batch. None of the writes
|
|
627
722
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
628
723
|
* called.
|
|
629
|
-
*/ declare class
|
|
724
|
+
*/ declare class rs {
|
|
630
725
|
/** @hideconstructor */
|
|
631
726
|
constructor(t: any, e: any);
|
|
632
727
|
_firestore: any;
|
|
633
728
|
_commitHandler: any;
|
|
634
729
|
_mutations: any[];
|
|
635
730
|
_committed: boolean;
|
|
636
|
-
_dataReader:
|
|
637
|
-
set(t: any, e: any, n: any):
|
|
638
|
-
update(t: any, e: any, n: any, ...r: any[]):
|
|
731
|
+
_dataReader: zn;
|
|
732
|
+
set(t: any, e: any, n: any): rs;
|
|
733
|
+
update(t: any, e: any, n: any, ...r: any[]): rs;
|
|
639
734
|
/**
|
|
640
735
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
641
736
|
*
|
|
642
737
|
* @param documentRef - A reference to the document to be deleted.
|
|
643
738
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
644
|
-
*/ delete(t: any):
|
|
739
|
+
*/ delete(t: any): rs;
|
|
645
740
|
/**
|
|
646
741
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
647
742
|
*
|
|
@@ -670,7 +765,7 @@ declare class Zr {
|
|
|
670
765
|
* @throws Error - If the provided input is not a valid Firestore document.
|
|
671
766
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
672
767
|
* newly created document after it has been written to the backend.
|
|
673
|
-
*/ declare function
|
|
768
|
+
*/ declare function Yr(t: any, e: any): Promise<Pn>;
|
|
674
769
|
/**
|
|
675
770
|
* Compares two `AggregateQuerySnapshot` instances for equality.
|
|
676
771
|
*
|
|
@@ -682,7 +777,17 @@ declare class Zr {
|
|
|
682
777
|
*
|
|
683
778
|
* @returns `true` if the objects are "equal", as defined above, or `false`
|
|
684
779
|
* otherwise.
|
|
685
|
-
*/ declare function
|
|
780
|
+
*/ declare function Jr(t: any, e: any): boolean;
|
|
781
|
+
/**
|
|
782
|
+
* Creates a {@link QueryCompositeFilterConstraint} that performs a logical AND
|
|
783
|
+
* of all the provided {@link QueryFilterConstraint}s.
|
|
784
|
+
*
|
|
785
|
+
* @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
|
|
786
|
+
* for AND operation. These must be created with calls to {@link where},
|
|
787
|
+
* {@link or}, or {@link and}.
|
|
788
|
+
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
789
|
+
* @internal TODO remove this internal tag with OR Query support in the server
|
|
790
|
+
*/ declare function Ar(...t: any[]): Er;
|
|
686
791
|
/**
|
|
687
792
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
688
793
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -693,7 +798,7 @@ declare class Zr {
|
|
|
693
798
|
* @param elements - The elements to remove from the array.
|
|
694
799
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
695
800
|
* `updateDoc()`
|
|
696
|
-
*/ declare function
|
|
801
|
+
*/ declare function es(...t: any[]): Xn;
|
|
697
802
|
/**
|
|
698
803
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
699
804
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -705,8 +810,8 @@ declare class Zr {
|
|
|
705
810
|
* @param elements - The elements to union into the array.
|
|
706
811
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
707
812
|
* `updateDoc()`.
|
|
708
|
-
*/ declare function
|
|
709
|
-
declare function
|
|
813
|
+
*/ declare function ts(...t: any[]): Jn;
|
|
814
|
+
declare function $n(t: any, e: any, ...n: any[]): Nn;
|
|
710
815
|
/**
|
|
711
816
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
712
817
|
* database that are contained in a collection or subcollection with the
|
|
@@ -717,7 +822,7 @@ declare function In(t: any, e: any, ...n: any[]): En;
|
|
|
717
822
|
* collection or subcollection with this ID as the last segment of its path
|
|
718
823
|
* will be included. Cannot contain a slash.
|
|
719
824
|
* @returns The created `Query`.
|
|
720
|
-
*/ declare function
|
|
825
|
+
*/ declare function Dn(t: any, e: any): Vn;
|
|
721
826
|
/**
|
|
722
827
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
723
828
|
*
|
|
@@ -730,7 +835,7 @@ declare function In(t: any, e: any, ...n: any[]): En;
|
|
|
730
835
|
* @param port - the emulator port (ex: 9000).
|
|
731
836
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
732
837
|
* Security Rules.
|
|
733
|
-
*/ declare function
|
|
838
|
+
*/ declare function En(t: any, e: any, n: any, r?: {}): void;
|
|
734
839
|
/**
|
|
735
840
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
736
841
|
*
|
|
@@ -742,7 +847,7 @@ declare function In(t: any, e: any, ...n: any[]): En;
|
|
|
742
847
|
* @param reference - A reference to the document to delete.
|
|
743
848
|
* @returns A `Promise` resolved once the document has been successfully
|
|
744
849
|
* deleted from the backend.
|
|
745
|
-
*/ declare function
|
|
850
|
+
*/ declare function Kr(t: any): Promise<void>;
|
|
746
851
|
/**
|
|
747
852
|
* @license
|
|
748
853
|
* Copyright 2020 Google LLC
|
|
@@ -762,14 +867,14 @@ declare function In(t: any, e: any, ...n: any[]): En;
|
|
|
762
867
|
/**
|
|
763
868
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
764
869
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
765
|
-
*/ declare function
|
|
766
|
-
declare function
|
|
870
|
+
*/ declare function Xr(): Kn;
|
|
871
|
+
declare function Fn(t: any, e: any, ...n: any[]): Pn;
|
|
767
872
|
/**
|
|
768
873
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
769
874
|
* It can be used in queries to sort or filter by the document ID.
|
|
770
|
-
*/ declare function
|
|
771
|
-
declare function
|
|
772
|
-
declare function
|
|
875
|
+
*/ declare function kn(): On;
|
|
876
|
+
declare function qr(...t: any[]): xr;
|
|
877
|
+
declare function Sr(...t: any[]): xr;
|
|
773
878
|
/**
|
|
774
879
|
* @license
|
|
775
880
|
* Copyright 2022 Google LLC
|
|
@@ -799,7 +904,7 @@ declare function Ir(...t: any[]): Er;
|
|
|
799
904
|
* @returns A Promise that will be resolved with the count; the count can be
|
|
800
905
|
* retrieved from `snapshot.data().count`, where `snapshot` is the
|
|
801
906
|
* `AggregateQuerySnapshot` to which the returned Promise resolves.
|
|
802
|
-
*/ declare function
|
|
907
|
+
*/ declare function Hr(t: any): Promise<Tn>;
|
|
803
908
|
/**
|
|
804
909
|
* Reads the document referred to by the specified document reference.
|
|
805
910
|
*
|
|
@@ -812,7 +917,7 @@ declare function Ir(...t: any[]): Er;
|
|
|
812
917
|
* @param reference - The reference of the document to fetch.
|
|
813
918
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the current
|
|
814
919
|
* document contents.
|
|
815
|
-
*/ declare function
|
|
920
|
+
*/ declare function Qr(t: any): Promise<fr>;
|
|
816
921
|
/**
|
|
817
922
|
* Executes the query and returns the results as a {@link QuerySnapshot}.
|
|
818
923
|
*
|
|
@@ -824,8 +929,8 @@ declare function Ir(...t: any[]): Er;
|
|
|
824
929
|
*
|
|
825
930
|
* @param query - The `Query` to execute.
|
|
826
931
|
* @returns A Promise that will be resolved with the results of the query.
|
|
827
|
-
*/ declare function
|
|
828
|
-
declare function
|
|
932
|
+
*/ declare function zr(t: any): Promise<wr>;
|
|
933
|
+
declare function bn(e: any, n: any): import("../../lite").Firestore;
|
|
829
934
|
/**
|
|
830
935
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
831
936
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -844,41 +949,48 @@ declare function wn(e: any, n: any): import("../../lite").Firestore;
|
|
|
844
949
|
* @param n - The value to increment by.
|
|
845
950
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
846
951
|
* `updateDoc()`
|
|
847
|
-
*/ declare function
|
|
848
|
-
declare function
|
|
952
|
+
*/ declare function ns(t: any): Zn;
|
|
953
|
+
declare function vn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
849
954
|
/**
|
|
850
|
-
* Creates a {@link
|
|
955
|
+
* Creates a {@link QueryLimitConstraint} that only returns the first matching
|
|
956
|
+
* documents.
|
|
851
957
|
*
|
|
852
958
|
* @param limit - The maximum number of items to return.
|
|
853
|
-
* @returns The created {@link
|
|
854
|
-
*/ declare function
|
|
959
|
+
* @returns The created {@link QueryLimitConstraint}.
|
|
960
|
+
*/ declare function Vr(t: any): Pr;
|
|
855
961
|
/**
|
|
856
|
-
* Creates a {@link
|
|
962
|
+
* Creates a {@link QueryLimitConstraint} that only returns the last matching
|
|
963
|
+
* documents.
|
|
857
964
|
*
|
|
858
965
|
* You must specify at least one `orderBy` clause for `limitToLast` queries,
|
|
859
966
|
* otherwise an exception will be thrown during execution.
|
|
860
967
|
*
|
|
861
968
|
* @param limit - The maximum number of items to return.
|
|
862
|
-
* @returns The created {@link
|
|
863
|
-
*/ declare function
|
|
969
|
+
* @returns The created {@link QueryLimitConstraint}.
|
|
970
|
+
*/ declare function Nr(t: any): Pr;
|
|
971
|
+
/**
|
|
972
|
+
* Creates a {@link QueryCompositeFilterConstraint} that performs a logical OR
|
|
973
|
+
* of all the provided {@link QueryFilterConstraint}s.
|
|
974
|
+
*
|
|
975
|
+
* @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
|
|
976
|
+
* for OR operation. These must be created with calls to {@link where},
|
|
977
|
+
* {@link or}, or {@link and}.
|
|
978
|
+
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
979
|
+
* @internal TODO remove this internal tag with OR Query support in the server
|
|
980
|
+
*/ declare function Ir(...t: any[]): Er;
|
|
864
981
|
/**
|
|
865
|
-
* Creates a {@link
|
|
982
|
+
* Creates a {@link QueryOrderByConstraint} that sorts the query result by the
|
|
866
983
|
* specified field, optionally in descending order instead of ascending.
|
|
867
984
|
*
|
|
985
|
+
* Note: Documents that do not contain the specified field will not be present
|
|
986
|
+
* in the query result.
|
|
987
|
+
*
|
|
868
988
|
* @param fieldPath - The field to sort by.
|
|
869
989
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
870
990
|
* not specified, order will be ascending.
|
|
871
|
-
* @returns The created {@link
|
|
872
|
-
*/ declare function
|
|
873
|
-
|
|
874
|
-
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
875
|
-
* additional query constraints.
|
|
876
|
-
*
|
|
877
|
-
* @param query - The {@link Query} instance to use as a base for the new constraints.
|
|
878
|
-
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
879
|
-
* @throws if any of the provided query constraints cannot be combined with the
|
|
880
|
-
* existing or new constraints.
|
|
881
|
-
*/ declare function lr(t: any, ...e: any[]): any;
|
|
991
|
+
* @returns The created {@link QueryOrderByConstraint}.
|
|
992
|
+
*/ declare function Rr(t: any, e?: string): Tr;
|
|
993
|
+
declare function _r(t: any, e: any, ...n: any[]): any;
|
|
882
994
|
/**
|
|
883
995
|
* Returns true if the provided queries point to the same collection and apply
|
|
884
996
|
* the same constraints.
|
|
@@ -887,7 +999,7 @@ declare function dn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
887
999
|
* @param right - A `Query` to compare.
|
|
888
1000
|
* @returns true if the references point to the same location in the same
|
|
889
1001
|
* Firestore database.
|
|
890
|
-
*/ declare function
|
|
1002
|
+
*/ declare function Sn(t: any, e: any): boolean;
|
|
891
1003
|
/**
|
|
892
1004
|
* Returns true if the provided references are equal.
|
|
893
1005
|
*
|
|
@@ -895,7 +1007,7 @@ declare function dn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
895
1007
|
* @param right - A reference to compare.
|
|
896
1008
|
* @returns true if the references point to the same location in the same
|
|
897
1009
|
* Firestore database.
|
|
898
|
-
*/ declare function
|
|
1010
|
+
*/ declare function xn(t: any, e: any): boolean;
|
|
899
1011
|
/**
|
|
900
1012
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
901
1013
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -914,12 +1026,12 @@ declare function dn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
914
1026
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
915
1027
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
916
1028
|
* rejected promise with the corresponding failure error is returned.
|
|
917
|
-
*/ declare function
|
|
1029
|
+
*/ declare function ds(t: any, e: any, n: any): Promise<any>;
|
|
918
1030
|
/**
|
|
919
1031
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
920
1032
|
* include a server-generated timestamp in the written data.
|
|
921
|
-
*/ declare function
|
|
922
|
-
declare function
|
|
1033
|
+
*/ declare function Zr(): Hn;
|
|
1034
|
+
declare function Wr(t: any, e: any, n: any): Promise<void>;
|
|
923
1035
|
/**
|
|
924
1036
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
925
1037
|
*
|
|
@@ -939,9 +1051,9 @@ declare function Fr(t: any, e: any, n: any): Promise<void>;
|
|
|
939
1051
|
* @param left - A snapshot to compare.
|
|
940
1052
|
* @param right - A snapshot to compare.
|
|
941
1053
|
* @returns true if the snapshots are equal.
|
|
942
|
-
*/ declare function
|
|
943
|
-
declare function
|
|
944
|
-
declare function
|
|
1054
|
+
*/ declare function mr(t: any, e: any): any;
|
|
1055
|
+
declare function Fr(...t: any[]): $r;
|
|
1056
|
+
declare function Dr(...t: any[]): $r;
|
|
945
1057
|
/**
|
|
946
1058
|
* Terminates the provided `Firestore` instance.
|
|
947
1059
|
*
|
|
@@ -961,19 +1073,19 @@ declare function vr(...t: any[]): gr;
|
|
|
961
1073
|
* @param firestore - The `Firestore` instance to terminate.
|
|
962
1074
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
963
1075
|
* terminated.
|
|
964
|
-
*/ declare function
|
|
965
|
-
declare function
|
|
1076
|
+
*/ declare function In(t: any): any;
|
|
1077
|
+
declare function Gr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
966
1078
|
/**
|
|
967
|
-
* Creates a {@link
|
|
968
|
-
* specified field and that the value should satisfy the
|
|
969
|
-
* provided.
|
|
1079
|
+
* Creates a {@link QueryFieldFilterConstraint} that enforces that documents
|
|
1080
|
+
* must contain the specified field and that the value should satisfy the
|
|
1081
|
+
* relation constraint provided.
|
|
970
1082
|
*
|
|
971
1083
|
* @param fieldPath - The path to compare
|
|
972
1084
|
* @param opStr - The operation string (e.g "<", "<=", "==", "<",
|
|
973
1085
|
* "<=", "!=").
|
|
974
1086
|
* @param value - The value for comparison
|
|
975
|
-
* @returns The created {@link
|
|
976
|
-
*/ declare function
|
|
1087
|
+
* @returns The created {@link QueryFieldFilterConstraint}.
|
|
1088
|
+
*/ declare function br(t: any, e: any, n: any): vr;
|
|
977
1089
|
/**
|
|
978
1090
|
* Creates a write batch, used for performing multiple writes as a single
|
|
979
1091
|
* atomic operation. The maximum number of writes allowed in a single WriteBatch
|
|
@@ -986,7 +1098,7 @@ declare function Sr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
986
1098
|
*
|
|
987
1099
|
* @returns A `WriteBatch` that can be used to atomically execute multiple
|
|
988
1100
|
* writes.
|
|
989
|
-
*/ declare function
|
|
1101
|
+
*/ declare function is(t: any): rs;
|
|
990
1102
|
/**
|
|
991
1103
|
* A dot-separated path for navigating sub-objects within a document.
|
|
992
1104
|
* @internal
|
|
@@ -1025,7 +1137,7 @@ declare function Sr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
1025
1137
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1026
1138
|
* defaults can be supplied and the value can be checked for equality.
|
|
1027
1139
|
*/
|
|
1028
|
-
declare class
|
|
1140
|
+
declare class gn {
|
|
1029
1141
|
constructor(t: any);
|
|
1030
1142
|
host: any;
|
|
1031
1143
|
ssl: any;
|
|
@@ -1038,78 +1150,89 @@ declare class ln {
|
|
|
1038
1150
|
isEqual(t: any): boolean;
|
|
1039
1151
|
}
|
|
1040
1152
|
import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
1153
|
+
/**
|
|
1154
|
+
* @license
|
|
1155
|
+
* Copyright 2020 Google LLC
|
|
1156
|
+
*
|
|
1157
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1158
|
+
* you may not use this file except in compliance with the License.
|
|
1159
|
+
* You may obtain a copy of the License at
|
|
1160
|
+
*
|
|
1161
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1162
|
+
*
|
|
1163
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1164
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1165
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1166
|
+
* See the License for the specific language governing permissions and
|
|
1167
|
+
* limitations under the License.
|
|
1168
|
+
*/
|
|
1169
|
+
/**
|
|
1170
|
+
* An `AppliableConstraint` is an abstraction of a constraint that can be applied
|
|
1171
|
+
* to a Firestore query.
|
|
1172
|
+
*/
|
|
1173
|
+
declare class yr {
|
|
1174
|
+
}
|
|
1175
|
+
declare class Gt extends Wt {
|
|
1176
|
+
/**
|
|
1177
|
+
* Creates a filter based on the provided arguments.
|
|
1178
|
+
*/ static create(t: any, e: any, n: any): Gt | Jt | re;
|
|
1179
|
+
static createKeyFieldInFilter(t: any, e: any, n: any): Jt | Xt;
|
|
1180
|
+
constructor(t: any, e: any, n: any);
|
|
1181
|
+
field: any;
|
|
1182
|
+
op: any;
|
|
1183
|
+
value: any;
|
|
1184
|
+
matches(t: any): boolean | void;
|
|
1185
|
+
matchesComparison(t: any): boolean | void;
|
|
1186
|
+
isInequality(): boolean;
|
|
1187
|
+
getFlattenedFilters(): Gt[];
|
|
1188
|
+
getFilters(): Gt[];
|
|
1189
|
+
getFirstInequalityField(): any;
|
|
1190
|
+
}
|
|
1191
|
+
/** Filter that matches on key fields within an array. */ declare class Jt extends Gt {
|
|
1192
|
+
constructor(t: any, e: any);
|
|
1193
|
+
keys: any;
|
|
1194
|
+
matches(t: any): any;
|
|
1195
|
+
}
|
|
1196
|
+
/** A Filter that implements the array-contains-any operator. */ declare class re extends Gt {
|
|
1197
|
+
constructor(t: any, e: any);
|
|
1198
|
+
matches(t: any): any;
|
|
1199
|
+
}
|
|
1041
1200
|
/**
|
|
1042
1201
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1043
1202
|
* classes.
|
|
1044
|
-
*/ declare class
|
|
1203
|
+
*/ declare class zn {
|
|
1045
1204
|
constructor(t: any, e: any, n: any);
|
|
1046
1205
|
databaseId: any;
|
|
1047
1206
|
ignoreUndefinedProperties: any;
|
|
1048
|
-
|
|
1049
|
-
/** Creates a new top-level parse context. */
|
|
1207
|
+
C: any;
|
|
1208
|
+
/** Creates a new top-level parse context. */ ft(t: any, e: any, n: any, r?: boolean): Qn;
|
|
1050
1209
|
}
|
|
1051
|
-
declare class
|
|
1210
|
+
declare class Xn extends Cn {
|
|
1052
1211
|
constructor(t: any, e: any);
|
|
1053
|
-
|
|
1054
|
-
_toFieldTransform(t: any):
|
|
1212
|
+
dt: any;
|
|
1213
|
+
_toFieldTransform(t: any): De;
|
|
1055
1214
|
isEqual(t: any): boolean;
|
|
1056
1215
|
}
|
|
1057
|
-
declare class
|
|
1216
|
+
declare class Jn extends Cn {
|
|
1058
1217
|
constructor(t: any, e: any);
|
|
1059
|
-
|
|
1060
|
-
_toFieldTransform(t: any):
|
|
1218
|
+
dt: any;
|
|
1219
|
+
_toFieldTransform(t: any): De;
|
|
1061
1220
|
isEqual(t: any): boolean;
|
|
1062
1221
|
}
|
|
1063
|
-
declare class
|
|
1222
|
+
declare class Kn extends Cn {
|
|
1064
1223
|
_toFieldTransform(t: any): null;
|
|
1065
1224
|
isEqual(t: any): boolean;
|
|
1066
1225
|
}
|
|
1067
|
-
declare class
|
|
1068
|
-
constructor(t: any, e: any, n: any);
|
|
1069
|
-
type: any;
|
|
1070
|
-
Tt: any;
|
|
1071
|
-
At: any;
|
|
1072
|
-
_apply(t: any): bn;
|
|
1073
|
-
}
|
|
1074
|
-
declare class Gn extends Dn {
|
|
1226
|
+
declare class Zn extends Cn {
|
|
1075
1227
|
constructor(t: any, e: any);
|
|
1076
|
-
|
|
1077
|
-
_toFieldTransform(t: any):
|
|
1228
|
+
wt: any;
|
|
1229
|
+
_toFieldTransform(t: any): De;
|
|
1078
1230
|
isEqual(t: any): boolean;
|
|
1079
1231
|
}
|
|
1080
|
-
declare class
|
|
1081
|
-
|
|
1082
|
-
type: any;
|
|
1083
|
-
Et: any;
|
|
1084
|
-
It: any;
|
|
1085
|
-
_apply(t: any): bn;
|
|
1086
|
-
}
|
|
1087
|
-
declare class wr extends hr {
|
|
1088
|
-
constructor(t: any, e: any);
|
|
1089
|
-
_t: any;
|
|
1090
|
-
bt: any;
|
|
1091
|
-
type: string;
|
|
1092
|
-
_apply(t: any): bn;
|
|
1093
|
-
}
|
|
1094
|
-
declare class Bn extends Dn {
|
|
1095
|
-
_toFieldTransform(t: any): Pe;
|
|
1232
|
+
declare class Hn extends Cn {
|
|
1233
|
+
_toFieldTransform(t: any): De;
|
|
1096
1234
|
isEqual(t: any): boolean;
|
|
1097
1235
|
}
|
|
1098
|
-
declare class gr extends hr {
|
|
1099
|
-
constructor(t: any, e: any, n: any);
|
|
1100
|
-
type: any;
|
|
1101
|
-
Tt: any;
|
|
1102
|
-
At: any;
|
|
1103
|
-
_apply(t: any): bn;
|
|
1104
|
-
}
|
|
1105
|
-
declare class fr extends hr {
|
|
1106
|
-
constructor(t: any, e: any, n: any);
|
|
1107
|
-
_t: any;
|
|
1108
|
-
gt: any;
|
|
1109
|
-
vt: any;
|
|
1110
|
-
type: string;
|
|
1111
|
-
_apply(t: any): bn;
|
|
1112
|
-
}
|
|
1113
1236
|
/**
|
|
1114
1237
|
* Path represents an ordered sequence of string segments.
|
|
1115
1238
|
*/
|
|
@@ -1134,7 +1257,29 @@ declare class Z {
|
|
|
1134
1257
|
forEach(t: any): void;
|
|
1135
1258
|
toArray(): any;
|
|
1136
1259
|
}
|
|
1137
|
-
/**
|
|
1260
|
+
/**
|
|
1261
|
+
* @license
|
|
1262
|
+
* Copyright 2022 Google LLC
|
|
1263
|
+
*
|
|
1264
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1265
|
+
* you may not use this file except in compliance with the License.
|
|
1266
|
+
* You may obtain a copy of the License at
|
|
1267
|
+
*
|
|
1268
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1269
|
+
*
|
|
1270
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1271
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1272
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1273
|
+
* See the License for the specific language governing permissions and
|
|
1274
|
+
* limitations under the License.
|
|
1275
|
+
*/ declare class Wt {
|
|
1276
|
+
}
|
|
1277
|
+
/** Filter that matches on key fields not present within an array. */ declare class Xt extends Gt {
|
|
1278
|
+
constructor(t: any, e: any);
|
|
1279
|
+
keys: any;
|
|
1280
|
+
matches(t: any): boolean;
|
|
1281
|
+
}
|
|
1282
|
+
/** A "context" object passed around while parsing user data. */ declare class Qn {
|
|
1138
1283
|
/**
|
|
1139
1284
|
* Initializes a ParseContext with the given source and path.
|
|
1140
1285
|
*
|
|
@@ -1156,20 +1301,20 @@ declare class Z {
|
|
|
1156
1301
|
constructor(t: any, e: any, n: any, r: any, s: any, i: any);
|
|
1157
1302
|
settings: any;
|
|
1158
1303
|
databaseId: any;
|
|
1159
|
-
|
|
1304
|
+
C: any;
|
|
1160
1305
|
ignoreUndefinedProperties: any;
|
|
1161
1306
|
fieldTransforms: any;
|
|
1162
1307
|
fieldMask: any;
|
|
1163
1308
|
get path(): any;
|
|
1164
|
-
get
|
|
1165
|
-
/** Returns a new context with the specified settings overwritten. */
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1309
|
+
get nt(): any;
|
|
1310
|
+
/** Returns a new context with the specified settings overwritten. */ rt(t: any): Qn;
|
|
1311
|
+
st(t: any): Qn;
|
|
1312
|
+
ut(t: any): Qn;
|
|
1313
|
+
ct(t: any): Qn;
|
|
1314
|
+
at(t: any): U;
|
|
1170
1315
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1171
|
-
|
|
1172
|
-
|
|
1316
|
+
et(): void;
|
|
1317
|
+
ot(t: any): void;
|
|
1173
1318
|
}
|
|
1174
1319
|
/**
|
|
1175
1320
|
* @license
|
|
@@ -1187,9 +1332,9 @@ declare class Z {
|
|
|
1187
1332
|
* See the License for the specific language governing permissions and
|
|
1188
1333
|
* limitations under the License.
|
|
1189
1334
|
*/
|
|
1190
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1335
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class De {
|
|
1191
1336
|
constructor(t: any, e: any);
|
|
1192
1337
|
field: any;
|
|
1193
1338
|
transform: any;
|
|
1194
1339
|
}
|
|
1195
|
-
export {
|
|
1340
|
+
export { An as AggregateField, Tn as AggregateQuerySnapshot, qn as Bytes, Nn as CollectionReference, Pn as DocumentReference, fr as DocumentSnapshot, On as FieldPath, Cn as FieldValue, _n as Firestore, U as FirestoreError, Ln as GeoPoint, Vn as Query, Er as QueryCompositeFilterConstraint, gr as QueryConstraint, dr as QueryDocumentSnapshot, xr as QueryEndAtConstraint, vr as QueryFieldFilterConstraint, Pr as QueryLimitConstraint, Tr as QueryOrderByConstraint, wr as QuerySnapshot, $r as QueryStartAtConstraint, Vt as Timestamp, fs as Transaction, rs as WriteBatch, Yr as addDoc, Jr as aggregateQuerySnapshotEqual, Ar as and, es as arrayRemove, ts as arrayUnion, $n as collection, Dn as collectionGroup, En as connectFirestoreEmulator, Kr as deleteDoc, Xr as deleteField, Fn as doc, kn as documentId, qr as endAt, Sr as endBefore, Hr as getCount, Qr as getDoc, zr as getDocs, bn as getFirestore, ns as increment, vn as initializeFirestore, Vr as limit, Nr as limitToLast, Ir as or, Rr as orderBy, _r as query, Sn as queryEqual, xn as refEqual, ds as runTransaction, Zr as serverTimestamp, Wr as setDoc, p as setLogLevel, mr as snapshotEqual, Fr as startAfter, Dr as startAt, In as terminate, Gr as updateDoc, br as where, is as writeBatch };
|