@firebase/firestore 3.12.2-canary.59c7b5801 → 3.12.2-canary.85ccb2ed0
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/src/global_index.d.ts +9147 -0
- package/dist/index.cjs.js +7831 -7676
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +7727 -7572
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +3613 -3568
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +2 -2
- package/dist/index.node.mjs +2 -2
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +7744 -7590
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/index.browser.esm2017.js +1565 -1535
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +492 -497
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.cjs.js +1565 -1535
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +1568 -1539
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +155 -155
- package/dist/lite/packages/firestore/rollup.config.d.ts +11 -0
- package/dist/lite/packages/firestore/rollup.shared.d.ts +2 -0
- package/dist/packages/firestore/dist/index.esm2017.d.ts +997 -997
- package/dist/packages/firestore/rollup.config.d.ts +11 -0
- package/dist/packages/firestore/rollup.shared.d.ts +2 -0
- package/package.json +10 -9
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
/**
|
|
34
34
|
* Represents an aggregation that can be performed by Firestore.
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
export class AggregateField {
|
|
37
37
|
/**
|
|
38
38
|
* Create a new AggregateField<T>
|
|
39
39
|
* @param _aggregateType Specifies the type of aggregation operation to perform.
|
|
@@ -48,9 +48,9 @@ declare class $n {
|
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* The results of executing an aggregation query.
|
|
51
|
-
*/
|
|
51
|
+
*/ export class AggregateQuerySnapshot {
|
|
52
52
|
/** @hideconstructor */
|
|
53
|
-
constructor(t: any, e: any,
|
|
53
|
+
constructor(t: any, e: any, r: any);
|
|
54
54
|
_userDataWriter: any;
|
|
55
55
|
_data: any;
|
|
56
56
|
/** A type string to uniquely identify instances of this class. */
|
|
@@ -86,18 +86,18 @@ declare class $n {
|
|
|
86
86
|
*/
|
|
87
87
|
/**
|
|
88
88
|
* An immutable object representing an array of bytes.
|
|
89
|
-
*/
|
|
89
|
+
*/ export class Bytes {
|
|
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): Bytes;
|
|
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): Bytes;
|
|
101
101
|
/** @hideconstructor */
|
|
102
102
|
constructor(t: any);
|
|
103
103
|
_byteString: any;
|
|
@@ -126,7 +126,7 @@ declare class $n {
|
|
|
126
126
|
/**
|
|
127
127
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
128
128
|
* document references, and querying for documents (using {@link (query:1)}).
|
|
129
|
-
*/
|
|
129
|
+
*/ export class CollectionReference extends Query {
|
|
130
130
|
_path: any;
|
|
131
131
|
/** The collection's identifier. */ get id(): any;
|
|
132
132
|
/**
|
|
@@ -136,8 +136,8 @@ declare class $n {
|
|
|
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(): DocumentReference | null;
|
|
140
|
+
withConverter(t: any): CollectionReference;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* @license
|
|
@@ -159,9 +159,9 @@ declare class $n {
|
|
|
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
|
-
*/
|
|
162
|
+
*/ export class DocumentReference {
|
|
163
163
|
/** @hideconstructor */
|
|
164
|
-
constructor(t: any, e: any,
|
|
164
|
+
constructor(t: any, e: any, r: any);
|
|
165
165
|
converter: any;
|
|
166
166
|
_key: any;
|
|
167
167
|
/** The type of this Firestore reference. */
|
|
@@ -177,8 +177,8 @@ declare class $n {
|
|
|
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(): CollectionReference;
|
|
181
|
+
withConverter(t: any): DocumentReference;
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* @license
|
|
@@ -204,9 +204,9 @@ declare class $n {
|
|
|
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
|
-
*/
|
|
207
|
+
*/ export class DocumentSnapshot {
|
|
208
208
|
/** @hideconstructor protected */
|
|
209
|
-
constructor(t: any, e: any,
|
|
209
|
+
constructor(t: any, e: any, r: any, n: any, i: any);
|
|
210
210
|
_firestore: any;
|
|
211
211
|
_userDataWriter: any;
|
|
212
212
|
_key: any;
|
|
@@ -215,7 +215,7 @@ declare class $n {
|
|
|
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(): DocumentReference;
|
|
219
219
|
/**
|
|
220
220
|
* Signals whether or not the document at the snapshot's location exists.
|
|
221
221
|
*
|
|
@@ -262,7 +262,7 @@ declare class $n {
|
|
|
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
|
-
*/
|
|
265
|
+
*/ export class FieldPath {
|
|
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.
|
|
@@ -270,7 +270,7 @@ declare class $n {
|
|
|
270
270
|
* @param fieldNames - A list of field names.
|
|
271
271
|
*/
|
|
272
272
|
constructor(...t: any[]);
|
|
273
|
-
_internalPath:
|
|
273
|
+
_internalPath: FieldPath$1;
|
|
274
274
|
/**
|
|
275
275
|
* Returns true if this `FieldPath` is equal to the provided one.
|
|
276
276
|
*
|
|
@@ -297,7 +297,7 @@ declare class $n {
|
|
|
297
297
|
/**
|
|
298
298
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
299
299
|
* or `update()`.
|
|
300
|
-
*/
|
|
300
|
+
*/ export class FieldValue {
|
|
301
301
|
/**
|
|
302
302
|
* @param _methodName - The public API endpoint that returns this class.
|
|
303
303
|
* @hideconstructor
|
|
@@ -305,9 +305,9 @@ declare class $n {
|
|
|
305
305
|
constructor(t: any);
|
|
306
306
|
_methodName: any;
|
|
307
307
|
}
|
|
308
|
-
|
|
308
|
+
export class Firestore {
|
|
309
309
|
/** @hideconstructor */
|
|
310
|
-
constructor(t: any, e: any,
|
|
310
|
+
constructor(t: any, e: any, r: any, n: any);
|
|
311
311
|
_authCredentials: any;
|
|
312
312
|
_appCheckCredentials: any;
|
|
313
313
|
_databaseId: any;
|
|
@@ -317,7 +317,7 @@ declare class Tn {
|
|
|
317
317
|
*/
|
|
318
318
|
type: string;
|
|
319
319
|
_persistenceKey: string;
|
|
320
|
-
_settings:
|
|
320
|
+
_settings: FirestoreSettingsImpl;
|
|
321
321
|
_settingsFrozen: boolean;
|
|
322
322
|
/**
|
|
323
323
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -326,14 +326,14 @@ declare class Tn {
|
|
|
326
326
|
get _initialized(): boolean;
|
|
327
327
|
get _terminated(): boolean;
|
|
328
328
|
_setSettings(t: any): void;
|
|
329
|
-
_getSettings():
|
|
330
|
-
_freezeSettings():
|
|
329
|
+
_getSettings(): FirestoreSettingsImpl;
|
|
330
|
+
_freezeSettings(): FirestoreSettingsImpl;
|
|
331
331
|
_delete(): Promise<void>;
|
|
332
332
|
_terminateTask: Promise<void> | undefined;
|
|
333
333
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
334
334
|
app: any;
|
|
335
335
|
databaseId: any;
|
|
336
|
-
settings:
|
|
336
|
+
settings: FirestoreSettingsImpl;
|
|
337
337
|
};
|
|
338
338
|
/**
|
|
339
339
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -343,7 +343,7 @@ declare class Tn {
|
|
|
343
343
|
* Only ever called once.
|
|
344
344
|
*/ _terminate(): Promise<void>;
|
|
345
345
|
}
|
|
346
|
-
/** An error returned by a Firestore operation. */
|
|
346
|
+
/** An error returned by a Firestore operation. */ export class FirestoreError extends u {
|
|
347
347
|
/** @hideconstructor */
|
|
348
348
|
constructor(t: any, e: any);
|
|
349
349
|
code: any;
|
|
@@ -371,7 +371,7 @@ declare class Tn {
|
|
|
371
371
|
*
|
|
372
372
|
* Latitude values are in the range of [-90, 90].
|
|
373
373
|
* Longitude values are in the range of [-180, 180].
|
|
374
|
-
*/
|
|
374
|
+
*/ export class GeoPoint {
|
|
375
375
|
/**
|
|
376
376
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
377
377
|
* longitude values.
|
|
@@ -405,15 +405,15 @@ declare class Tn {
|
|
|
405
405
|
/**
|
|
406
406
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
407
407
|
* construct refined `Query` objects by adding filters and ordering.
|
|
408
|
-
*/
|
|
408
|
+
*/ export class Query {
|
|
409
409
|
/** @hideconstructor protected */
|
|
410
|
-
constructor(t: any, e: any,
|
|
410
|
+
constructor(t: any, e: any, r: any);
|
|
411
411
|
converter: any;
|
|
412
412
|
_query: any;
|
|
413
413
|
/** The type of this Firestore reference. */
|
|
414
414
|
type: string;
|
|
415
415
|
firestore: any;
|
|
416
|
-
withConverter(t: any):
|
|
416
|
+
withConverter(t: any): Query;
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* A `QueryCompositeFilterConstraint` is used to narrow the set of documents
|
|
@@ -422,8 +422,8 @@ declare class Tn {
|
|
|
422
422
|
* `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
|
|
423
423
|
* {@link and} and can then be passed to {@link (query:1)} to create a new query
|
|
424
424
|
* instance that also contains the `QueryCompositeFilterConstraint`.
|
|
425
|
-
*/
|
|
426
|
-
static _create(t: any, e: any):
|
|
425
|
+
*/ export class QueryCompositeFilterConstraint extends AppliableConstraint {
|
|
426
|
+
static _create(t: any, e: any): QueryCompositeFilterConstraint;
|
|
427
427
|
/**
|
|
428
428
|
* @internal
|
|
429
429
|
*/
|
|
@@ -442,7 +442,7 @@ declare class Tn {
|
|
|
442
442
|
* (endBefore:1)}, {@link (endAt:1)}, {@link limit}, {@link limitToLast} and
|
|
443
443
|
* can then be passed to {@link (query:1)} to create a new query instance that
|
|
444
444
|
* also contains this `QueryConstraint`.
|
|
445
|
-
*/
|
|
445
|
+
*/ export class QueryConstraint extends AppliableConstraint {
|
|
446
446
|
}
|
|
447
447
|
/**
|
|
448
448
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -454,7 +454,7 @@ declare class Tn {
|
|
|
454
454
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
455
455
|
* `exists` property will always be true and `data()` will never return
|
|
456
456
|
* 'undefined'.
|
|
457
|
-
*/
|
|
457
|
+
*/ export class QueryDocumentSnapshot extends DocumentSnapshot {
|
|
458
458
|
}
|
|
459
459
|
/**
|
|
460
460
|
* A `QueryEndAtConstraint` is used to exclude documents from the end of a
|
|
@@ -462,16 +462,16 @@ declare class Tn {
|
|
|
462
462
|
* `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
|
|
463
463
|
* {@link (endBefore:1)} and can then be passed to {@link (query:1)} to create a new
|
|
464
464
|
* query instance that also contains this `QueryEndAtConstraint`.
|
|
465
|
-
*/
|
|
466
|
-
static _create(t: any, e: any,
|
|
465
|
+
*/ export class QueryEndAtConstraint extends QueryConstraint {
|
|
466
|
+
static _create(t: any, e: any, r: any): QueryEndAtConstraint;
|
|
467
467
|
/**
|
|
468
468
|
* @internal
|
|
469
469
|
*/
|
|
470
|
-
constructor(t: any, e: any,
|
|
470
|
+
constructor(t: any, e: any, r: any);
|
|
471
471
|
type: any;
|
|
472
472
|
_docOrFields: any;
|
|
473
473
|
_inclusive: any;
|
|
474
|
-
_apply(t: any):
|
|
474
|
+
_apply(t: any): Query;
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
477
|
* A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
|
|
@@ -479,19 +479,19 @@ declare class Tn {
|
|
|
479
479
|
* `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
|
|
480
480
|
* be passed to {@link (query:1)} to create a new query instance that also contains
|
|
481
481
|
* this `QueryFieldFilterConstraint`.
|
|
482
|
-
*/
|
|
483
|
-
static _create(t: any, e: any,
|
|
482
|
+
*/ export class QueryFieldFilterConstraint extends QueryConstraint {
|
|
483
|
+
static _create(t: any, e: any, r: any): QueryFieldFilterConstraint;
|
|
484
484
|
/**
|
|
485
485
|
* @internal
|
|
486
486
|
*/
|
|
487
|
-
constructor(t: any, e: any,
|
|
487
|
+
constructor(t: any, e: any, r: any);
|
|
488
488
|
_field: any;
|
|
489
489
|
_op: any;
|
|
490
490
|
_value: any;
|
|
491
491
|
/** The type of this query constraint */
|
|
492
492
|
type: string;
|
|
493
|
-
_apply(t: any):
|
|
494
|
-
_parse(t: any):
|
|
493
|
+
_apply(t: any): Query;
|
|
494
|
+
_parse(t: any): FieldFilter | __PRIVATE_KeyFieldInFilter | __PRIVATE_ArrayContainsAnyFilter;
|
|
495
495
|
}
|
|
496
496
|
/**
|
|
497
497
|
* A `QueryLimitConstraint` is used to limit the number of documents returned by
|
|
@@ -499,16 +499,16 @@ declare class Tn {
|
|
|
499
499
|
* `QueryLimitConstraint`s are created by invoking {@link limit} or
|
|
500
500
|
* {@link limitToLast} and can then be passed to {@link (query:1)} to create a new
|
|
501
501
|
* query instance that also contains this `QueryLimitConstraint`.
|
|
502
|
-
*/
|
|
503
|
-
static _create(t: any, e: any,
|
|
502
|
+
*/ export class QueryLimitConstraint extends QueryConstraint {
|
|
503
|
+
static _create(t: any, e: any, r: any): QueryLimitConstraint;
|
|
504
504
|
/**
|
|
505
505
|
* @internal
|
|
506
506
|
*/
|
|
507
|
-
constructor(t: any, e: any,
|
|
507
|
+
constructor(t: any, e: any, r: any);
|
|
508
508
|
type: any;
|
|
509
509
|
_limit: any;
|
|
510
510
|
_limitType: any;
|
|
511
|
-
_apply(t: any):
|
|
511
|
+
_apply(t: any): Query;
|
|
512
512
|
}
|
|
513
513
|
/**
|
|
514
514
|
* A `QueryOrderByConstraint` is used to sort the set of documents returned by a
|
|
@@ -518,8 +518,8 @@ declare class Tn {
|
|
|
518
518
|
*
|
|
519
519
|
* Note: Documents that do not contain the orderBy field will not be present in
|
|
520
520
|
* the query result.
|
|
521
|
-
*/
|
|
522
|
-
static _create(t: any, e: any):
|
|
521
|
+
*/ export class QueryOrderByConstraint extends QueryConstraint {
|
|
522
|
+
static _create(t: any, e: any): QueryOrderByConstraint;
|
|
523
523
|
/**
|
|
524
524
|
* @internal
|
|
525
525
|
*/
|
|
@@ -528,7 +528,7 @@ declare class Tn {
|
|
|
528
528
|
_direction: any;
|
|
529
529
|
/** The type of this query constraint */
|
|
530
530
|
type: string;
|
|
531
|
-
_apply(t: any):
|
|
531
|
+
_apply(t: any): Query;
|
|
532
532
|
}
|
|
533
533
|
/**
|
|
534
534
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -536,7 +536,7 @@ declare class Tn {
|
|
|
536
536
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
537
537
|
* number of documents can be determined via the `empty` and `size`
|
|
538
538
|
* properties.
|
|
539
|
-
*/
|
|
539
|
+
*/ export class QuerySnapshot {
|
|
540
540
|
/** @hideconstructor */
|
|
541
541
|
constructor(t: any, e: any);
|
|
542
542
|
_docs: any;
|
|
@@ -558,16 +558,16 @@ declare class Tn {
|
|
|
558
558
|
* `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
|
|
559
559
|
* {@link (startAfter:1)} and can then be passed to {@link (query:1)} to create a
|
|
560
560
|
* new query instance that also contains this `QueryStartAtConstraint`.
|
|
561
|
-
*/
|
|
562
|
-
static _create(t: any, e: any,
|
|
561
|
+
*/ export class QueryStartAtConstraint extends QueryConstraint {
|
|
562
|
+
static _create(t: any, e: any, r: any): QueryStartAtConstraint;
|
|
563
563
|
/**
|
|
564
564
|
* @internal
|
|
565
565
|
*/
|
|
566
|
-
constructor(t: any, e: any,
|
|
566
|
+
constructor(t: any, e: any, r: any);
|
|
567
567
|
type: any;
|
|
568
568
|
_docOrFields: any;
|
|
569
569
|
_inclusive: any;
|
|
570
|
-
_apply(t: any):
|
|
570
|
+
_apply(t: any): Query;
|
|
571
571
|
}
|
|
572
572
|
/**
|
|
573
573
|
* @license
|
|
@@ -599,19 +599,19 @@ declare class Tn {
|
|
|
599
599
|
* For examples and further specifications, refer to the
|
|
600
600
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
601
601
|
*/
|
|
602
|
-
|
|
602
|
+
export class Timestamp {
|
|
603
603
|
/**
|
|
604
604
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
605
605
|
*
|
|
606
606
|
* @returns a new timestamp representing the current date.
|
|
607
|
-
*/ static now():
|
|
607
|
+
*/ static now(): Timestamp;
|
|
608
608
|
/**
|
|
609
609
|
* Creates a new timestamp from the given date.
|
|
610
610
|
*
|
|
611
611
|
* @param date - The date to initialize the `Timestamp` from.
|
|
612
612
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
613
613
|
* date.
|
|
614
|
-
*/ static fromDate(t: any):
|
|
614
|
+
*/ static fromDate(t: any): Timestamp;
|
|
615
615
|
/**
|
|
616
616
|
* Creates a new timestamp from the given number of milliseconds.
|
|
617
617
|
*
|
|
@@ -619,7 +619,7 @@ declare class xt {
|
|
|
619
619
|
* 1970-01-01T00:00:00Z.
|
|
620
620
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
621
621
|
* number of milliseconds.
|
|
622
|
-
*/ static fromMillis(t: any):
|
|
622
|
+
*/ static fromMillis(t: any): Timestamp;
|
|
623
623
|
/**
|
|
624
624
|
* Creates a new timestamp.
|
|
625
625
|
*
|
|
@@ -666,26 +666,26 @@ declare class xt {
|
|
|
666
666
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
667
667
|
*/ valueOf(): string;
|
|
668
668
|
}
|
|
669
|
-
|
|
669
|
+
export class Transaction {
|
|
670
670
|
/** @hideconstructor */
|
|
671
671
|
constructor(t: any, e: any);
|
|
672
672
|
_firestore: any;
|
|
673
673
|
_transaction: any;
|
|
674
|
-
_dataReader:
|
|
674
|
+
_dataReader: __PRIVATE_UserDataReader;
|
|
675
675
|
/**
|
|
676
676
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
677
677
|
*
|
|
678
678
|
* @param documentRef - A reference to the document to be read.
|
|
679
679
|
* @returns A `DocumentSnapshot` with the read data.
|
|
680
680
|
*/ get(t: any): any;
|
|
681
|
-
set(t: any, e: any,
|
|
682
|
-
update(t: any, e: any,
|
|
681
|
+
set(t: any, e: any, r: any): Transaction;
|
|
682
|
+
update(t: any, e: any, r: any, ...n: any[]): Transaction;
|
|
683
683
|
/**
|
|
684
684
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
685
685
|
*
|
|
686
686
|
* @param documentRef - A reference to the document to be deleted.
|
|
687
687
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
688
|
-
*/ delete(t: any):
|
|
688
|
+
*/ delete(t: any): Transaction;
|
|
689
689
|
}
|
|
690
690
|
/**
|
|
691
691
|
* @license
|
|
@@ -710,22 +710,22 @@ declare class bs {
|
|
|
710
710
|
* provides methods for adding writes to the write batch. None of the writes
|
|
711
711
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
712
712
|
* called.
|
|
713
|
-
*/
|
|
713
|
+
*/ export class WriteBatch {
|
|
714
714
|
/** @hideconstructor */
|
|
715
715
|
constructor(t: any, e: any);
|
|
716
716
|
_firestore: any;
|
|
717
717
|
_commitHandler: any;
|
|
718
718
|
_mutations: any[];
|
|
719
719
|
_committed: boolean;
|
|
720
|
-
_dataReader:
|
|
721
|
-
set(t: any, e: any,
|
|
722
|
-
update(t: any, e: any,
|
|
720
|
+
_dataReader: __PRIVATE_UserDataReader;
|
|
721
|
+
set(t: any, e: any, r: any): WriteBatch;
|
|
722
|
+
update(t: any, e: any, r: any, ...n: any[]): WriteBatch;
|
|
723
723
|
/**
|
|
724
724
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
725
725
|
*
|
|
726
726
|
* @param documentRef - A reference to the document to be deleted.
|
|
727
727
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
728
|
-
*/ delete(t: any):
|
|
728
|
+
*/ delete(t: any): WriteBatch;
|
|
729
729
|
/**
|
|
730
730
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
731
731
|
*
|
|
@@ -754,14 +754,14 @@ declare class bs {
|
|
|
754
754
|
* @throws Error - If the provided input is not a valid Firestore document.
|
|
755
755
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
756
756
|
* newly created document after it has been written to the backend.
|
|
757
|
-
*/
|
|
757
|
+
*/ export function addDoc(t: any, e: any): Promise<DocumentReference>;
|
|
758
758
|
/**
|
|
759
759
|
* Compares two 'AggregateField` instances for equality.
|
|
760
760
|
*
|
|
761
761
|
* @param left Compare this AggregateField to the `right`.
|
|
762
762
|
* @param right Compare this AggregateField to the `left`.
|
|
763
763
|
* @internal TODO (sum/avg) remove when public
|
|
764
|
-
*/
|
|
764
|
+
*/ export function aggregateFieldEqual(t: any, e: any): boolean;
|
|
765
765
|
/**
|
|
766
766
|
* Compares two `AggregateQuerySnapshot` instances for equality.
|
|
767
767
|
*
|
|
@@ -773,7 +773,7 @@ declare class bs {
|
|
|
773
773
|
*
|
|
774
774
|
* @returns `true` if the objects are "equal", as defined above, or `false`
|
|
775
775
|
* otherwise.
|
|
776
|
-
*/
|
|
776
|
+
*/ export function aggregateQuerySnapshotEqual(t: any, e: any): boolean;
|
|
777
777
|
/**
|
|
778
778
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
779
779
|
* the given filter constraints. A conjunction filter includes a document if it
|
|
@@ -783,7 +783,7 @@ declare class bs {
|
|
|
783
783
|
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
784
784
|
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
785
785
|
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
786
|
-
*/
|
|
786
|
+
*/ export function and(...t: any[]): QueryCompositeFilterConstraint;
|
|
787
787
|
/**
|
|
788
788
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
789
789
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -794,7 +794,7 @@ declare class bs {
|
|
|
794
794
|
* @param elements - The elements to remove from the array.
|
|
795
795
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
796
796
|
* `updateDoc()`
|
|
797
|
-
*/
|
|
797
|
+
*/ export function arrayRemove(...t: any[]): __PRIVATE_ArrayRemoveFieldValueImpl;
|
|
798
798
|
/**
|
|
799
799
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
800
800
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -806,14 +806,14 @@ declare class bs {
|
|
|
806
806
|
* @param elements - The elements to union into the array.
|
|
807
807
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
808
808
|
* `updateDoc()`.
|
|
809
|
-
*/
|
|
809
|
+
*/ export function arrayUnion(...t: any[]): __PRIVATE_ArrayUnionFieldValueImpl;
|
|
810
810
|
/**
|
|
811
811
|
* Create an AggregateField object that can be used to compute the average of
|
|
812
812
|
* a specified field over a range of documents in the result set of a query.
|
|
813
813
|
* @param field Specifies the field to average across the result set.
|
|
814
814
|
* @internal TODO (sum/avg) remove when public
|
|
815
|
-
*/
|
|
816
|
-
|
|
815
|
+
*/ export function average(t: any): AggregateField;
|
|
816
|
+
export function collection(t: any, e: any, ...r: any[]): CollectionReference;
|
|
817
817
|
/**
|
|
818
818
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
819
819
|
* database that are contained in a collection or subcollection with the
|
|
@@ -824,7 +824,7 @@ declare function Sn(t: any, e: any, ...n: any[]): xn;
|
|
|
824
824
|
* collection or subcollection with this ID as the last segment of its path
|
|
825
825
|
* will be included. Cannot contain a slash.
|
|
826
826
|
* @returns The created `Query`.
|
|
827
|
-
*/
|
|
827
|
+
*/ export function collectionGroup(t: any, e: any): Query;
|
|
828
828
|
/**
|
|
829
829
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
830
830
|
*
|
|
@@ -837,12 +837,12 @@ declare function Sn(t: any, e: any, ...n: any[]): xn;
|
|
|
837
837
|
* @param port - the emulator port (ex: 9000).
|
|
838
838
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
839
839
|
* Security Rules.
|
|
840
|
-
*/
|
|
840
|
+
*/ export function connectFirestoreEmulator(t: any, e: any, r: any, n?: {}): void;
|
|
841
841
|
/**
|
|
842
842
|
* Create an AggregateField object that can be used to compute the count of
|
|
843
843
|
* documents in the result set of a query.
|
|
844
844
|
* @internal TODO (sum/avg) remove when public
|
|
845
|
-
*/
|
|
845
|
+
*/ export function count(): AggregateField;
|
|
846
846
|
/**
|
|
847
847
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
848
848
|
*
|
|
@@ -854,7 +854,7 @@ declare function Sn(t: any, e: any, ...n: any[]): xn;
|
|
|
854
854
|
* @param reference - A reference to the document to delete.
|
|
855
855
|
* @returns A `Promise` resolved once the document has been successfully
|
|
856
856
|
* deleted from the backend.
|
|
857
|
-
*/
|
|
857
|
+
*/ export function deleteDoc(t: any): Promise<void>;
|
|
858
858
|
/**
|
|
859
859
|
* @license
|
|
860
860
|
* Copyright 2020 Google LLC
|
|
@@ -874,14 +874,14 @@ declare function Sn(t: any, e: any, ...n: any[]): xn;
|
|
|
874
874
|
/**
|
|
875
875
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
876
876
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
877
|
-
*/
|
|
878
|
-
|
|
877
|
+
*/ export function deleteField(): __PRIVATE_DeleteFieldValueImpl;
|
|
878
|
+
export function doc(t: any, e: any, ...r: any[]): DocumentReference;
|
|
879
879
|
/**
|
|
880
880
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
881
881
|
* It can be used in queries to sort or filter by the document ID.
|
|
882
|
-
*/
|
|
883
|
-
|
|
884
|
-
|
|
882
|
+
*/ export function documentId(): FieldPath;
|
|
883
|
+
export function endAt(...t: any[]): QueryEndAtConstraint;
|
|
884
|
+
export function endBefore(...t: any[]): QueryEndAtConstraint;
|
|
885
885
|
/**
|
|
886
886
|
* Calculates the specified aggregations over the documents in the result
|
|
887
887
|
* set of the given query, without actually downloading the documents.
|
|
@@ -908,7 +908,7 @@ declare function Cr(...t: any[]): kr;
|
|
|
908
908
|
* const averageScore: number | null = aggregateSnapshot.data().averageScore;
|
|
909
909
|
* ```
|
|
910
910
|
* @internal TODO (sum/avg) remove when public
|
|
911
|
-
*/
|
|
911
|
+
*/ export function getAggregate(t: any, e: any): Promise<AggregateQuerySnapshot>;
|
|
912
912
|
/**
|
|
913
913
|
* @license
|
|
914
914
|
* Copyright 2022 Google LLC
|
|
@@ -938,7 +938,7 @@ declare function Cr(...t: any[]): kr;
|
|
|
938
938
|
* @returns A Promise that will be resolved with the count; the count can be
|
|
939
939
|
* retrieved from `snapshot.data().count`, where `snapshot` is the
|
|
940
940
|
* `AggregateQuerySnapshot` to which the returned Promise resolves.
|
|
941
|
-
*/
|
|
941
|
+
*/ export function getCount(t: any): Promise<AggregateQuerySnapshot>;
|
|
942
942
|
/**
|
|
943
943
|
* Reads the document referred to by the specified document reference.
|
|
944
944
|
*
|
|
@@ -951,7 +951,7 @@ declare function Cr(...t: any[]): kr;
|
|
|
951
951
|
* @param reference - The reference of the document to fetch.
|
|
952
952
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the current
|
|
953
953
|
* document contents.
|
|
954
|
-
*/
|
|
954
|
+
*/ export function getDoc(t: any): Promise<DocumentSnapshot>;
|
|
955
955
|
/**
|
|
956
956
|
* Executes the query and returns the results as a {@link QuerySnapshot}.
|
|
957
957
|
*
|
|
@@ -963,8 +963,8 @@ declare function Cr(...t: any[]): kr;
|
|
|
963
963
|
*
|
|
964
964
|
* @param query - The `Query` to execute.
|
|
965
965
|
* @returns A Promise that will be resolved with the results of the query.
|
|
966
|
-
*/
|
|
967
|
-
|
|
966
|
+
*/ export function getDocs(t: any): Promise<QuerySnapshot>;
|
|
967
|
+
export function getFirestore(e: any, r: any): import("../../lite").Firestore;
|
|
968
968
|
/**
|
|
969
969
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
970
970
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -983,15 +983,15 @@ declare function Rn(e: any, n: any): import("../../lite").Firestore;
|
|
|
983
983
|
* @param n - The value to increment by.
|
|
984
984
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
985
985
|
* `updateDoc()`
|
|
986
|
-
*/
|
|
987
|
-
|
|
986
|
+
*/ export function increment(t: any): __PRIVATE_NumericIncrementFieldValueImpl;
|
|
987
|
+
export function initializeFirestore(t: any, e: any, r: any): import("../../lite").Firestore;
|
|
988
988
|
/**
|
|
989
989
|
* Creates a {@link QueryLimitConstraint} that only returns the first matching
|
|
990
990
|
* documents.
|
|
991
991
|
*
|
|
992
992
|
* @param limit - The maximum number of items to return.
|
|
993
993
|
* @returns The created {@link QueryLimitConstraint}.
|
|
994
|
-
*/
|
|
994
|
+
*/ export function limit(t: any): QueryLimitConstraint;
|
|
995
995
|
/**
|
|
996
996
|
* Creates a {@link QueryLimitConstraint} that only returns the last matching
|
|
997
997
|
* documents.
|
|
@@ -1001,7 +1001,7 @@ declare function An(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
1001
1001
|
*
|
|
1002
1002
|
* @param limit - The maximum number of items to return.
|
|
1003
1003
|
* @returns The created {@link QueryLimitConstraint}.
|
|
1004
|
-
*/
|
|
1004
|
+
*/ export function limitToLast(t: any): QueryLimitConstraint;
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
1007
1007
|
* the given filter constraints. A disjunction filter includes a document if it
|
|
@@ -1011,7 +1011,7 @@ declare function An(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
1011
1011
|
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
1012
1012
|
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
1013
1013
|
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
1014
|
-
*/
|
|
1014
|
+
*/ export function or(...t: any[]): QueryCompositeFilterConstraint;
|
|
1015
1015
|
/**
|
|
1016
1016
|
* Creates a {@link QueryOrderByConstraint} that sorts the query result by the
|
|
1017
1017
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1023,8 +1023,8 @@ declare function An(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
1023
1023
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1024
1024
|
* not specified, order will be ascending.
|
|
1025
1025
|
* @returns The created {@link QueryOrderByConstraint}.
|
|
1026
|
-
*/
|
|
1027
|
-
|
|
1026
|
+
*/ export function orderBy(t: any, e?: string): QueryOrderByConstraint;
|
|
1027
|
+
export function query(t: any, e: any, ...r: any[]): any;
|
|
1028
1028
|
/**
|
|
1029
1029
|
* Returns true if the provided queries point to the same collection and apply
|
|
1030
1030
|
* the same constraints.
|
|
@@ -1033,7 +1033,7 @@ declare function Ir(t: any, e: any, ...n: any[]): any;
|
|
|
1033
1033
|
* @param right - A `Query` to compare.
|
|
1034
1034
|
* @returns true if the references point to the same location in the same
|
|
1035
1035
|
* Firestore database.
|
|
1036
|
-
*/
|
|
1036
|
+
*/ export function queryEqual(t: any, e: any): boolean;
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Returns true if the provided references are equal.
|
|
1039
1039
|
*
|
|
@@ -1041,7 +1041,7 @@ declare function Ir(t: any, e: any, ...n: any[]): any;
|
|
|
1041
1041
|
* @param right - A reference to compare.
|
|
1042
1042
|
* @returns true if the references point to the same location in the same
|
|
1043
1043
|
* Firestore database.
|
|
1044
|
-
*/
|
|
1044
|
+
*/ export function refEqual(t: any, e: any): boolean;
|
|
1045
1045
|
/**
|
|
1046
1046
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1047
1047
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1060,12 +1060,12 @@ declare function Ir(t: any, e: any, ...n: any[]): any;
|
|
|
1060
1060
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1061
1061
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1062
1062
|
* rejected promise with the corresponding failure error is returned.
|
|
1063
|
-
*/
|
|
1063
|
+
*/ export function runTransaction(t: any, e: any, r: any): Promise<any>;
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1066
1066
|
* include a server-generated timestamp in the written data.
|
|
1067
|
-
*/
|
|
1068
|
-
|
|
1067
|
+
*/ export function serverTimestamp(): __PRIVATE_ServerTimestampFieldValueImpl;
|
|
1068
|
+
export function setDoc(t: any, e: any, r: any): Promise<void>;
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1071
1071
|
*
|
|
@@ -1078,17 +1078,17 @@ declare function Hr(t: any, e: any, n: any): Promise<void>;
|
|
|
1078
1078
|
* <li>`error` to log errors only.</li>
|
|
1079
1079
|
* <li><code>`silent` to turn off logging.</li>
|
|
1080
1080
|
* </ul>
|
|
1081
|
-
*/
|
|
1081
|
+
*/ export function setLogLevel(t: any): void;
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Returns true if the provided snapshots are equal.
|
|
1084
1084
|
*
|
|
1085
1085
|
* @param left - A snapshot to compare.
|
|
1086
1086
|
* @param right - A snapshot to compare.
|
|
1087
1087
|
* @returns true if the snapshots are equal.
|
|
1088
|
-
*/
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1088
|
+
*/ export function snapshotEqual(t: any, e: any): any;
|
|
1089
|
+
export function startAfter(...t: any[]): QueryStartAtConstraint;
|
|
1090
|
+
export function startAt(...t: any[]): QueryStartAtConstraint;
|
|
1091
|
+
export function sum(t: any): AggregateField;
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Terminates the provided `Firestore` instance.
|
|
1094
1094
|
*
|
|
@@ -1108,8 +1108,8 @@ declare function ns(t: any): $n;
|
|
|
1108
1108
|
* @param firestore - The `Firestore` instance to terminate.
|
|
1109
1109
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1110
1110
|
* terminated.
|
|
1111
|
-
*/
|
|
1112
|
-
|
|
1111
|
+
*/ export function terminate(t: any): any;
|
|
1112
|
+
export function updateDoc(t: any, e: any, r: any, ...n: any[]): Promise<void>;
|
|
1113
1113
|
/**
|
|
1114
1114
|
* Creates a {@link QueryFieldFilterConstraint} that enforces that documents
|
|
1115
1115
|
* must contain the specified field and that the value should satisfy the
|
|
@@ -1120,7 +1120,7 @@ declare function Jr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
1120
1120
|
* "<=", "!=").
|
|
1121
1121
|
* @param value - The value for comparison
|
|
1122
1122
|
* @returns The created {@link QueryFieldFilterConstraint}.
|
|
1123
|
-
*/
|
|
1123
|
+
*/ export function where(t: any, e: any, r: any): QueryFieldFilterConstraint;
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Creates a write batch, used for performing multiple writes as a single
|
|
1126
1126
|
* atomic operation. The maximum number of writes allowed in a single WriteBatch
|
|
@@ -1133,18 +1133,18 @@ declare function Jr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
1133
1133
|
*
|
|
1134
1134
|
* @returns A `WriteBatch` that can be used to atomically execute multiple
|
|
1135
1135
|
* writes.
|
|
1136
|
-
*/
|
|
1136
|
+
*/ export function writeBatch(t: any): WriteBatch;
|
|
1137
1137
|
/**
|
|
1138
1138
|
* A dot-separated path for navigating sub-objects within a document.
|
|
1139
1139
|
* @internal
|
|
1140
|
-
*/ declare class
|
|
1140
|
+
*/ declare class FieldPath$1 extends BasePath {
|
|
1141
1141
|
/**
|
|
1142
1142
|
* Returns true if the string could be used as a segment in a field path
|
|
1143
1143
|
* without escaping.
|
|
1144
1144
|
*/ static isValidIdentifier(t: any): boolean;
|
|
1145
1145
|
/**
|
|
1146
1146
|
* The field designating the key of a document.
|
|
1147
|
-
*/ static keyField():
|
|
1147
|
+
*/ static keyField(): FieldPath$1;
|
|
1148
1148
|
/**
|
|
1149
1149
|
* Parses a field string from the given server-formatted string.
|
|
1150
1150
|
*
|
|
@@ -1154,9 +1154,9 @@ declare function Jr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
1154
1154
|
*
|
|
1155
1155
|
* TODO(b/37244157): we should make this more strict. Right now, it allows
|
|
1156
1156
|
* non-identifier path components, even if they aren't escaped.
|
|
1157
|
-
*/ static fromServerFormat(t: any):
|
|
1158
|
-
static emptyPath():
|
|
1159
|
-
construct(t: any, e: any,
|
|
1157
|
+
*/ static fromServerFormat(t: any): FieldPath$1;
|
|
1158
|
+
static emptyPath(): FieldPath$1;
|
|
1159
|
+
construct(t: any, e: any, r: any): FieldPath$1;
|
|
1160
1160
|
canonicalString(): any;
|
|
1161
1161
|
toString(): any;
|
|
1162
1162
|
/**
|
|
@@ -1172,7 +1172,7 @@ declare function Jr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
1172
1172
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1173
1173
|
* defaults can be supplied and the value can be checked for equality.
|
|
1174
1174
|
*/
|
|
1175
|
-
declare class
|
|
1175
|
+
declare class FirestoreSettingsImpl {
|
|
1176
1176
|
constructor(t: any);
|
|
1177
1177
|
host: any;
|
|
1178
1178
|
ssl: any;
|
|
@@ -1188,7 +1188,7 @@ declare class In {
|
|
|
1188
1188
|
useFetchStreams: boolean;
|
|
1189
1189
|
isEqual(t: any): boolean;
|
|
1190
1190
|
}
|
|
1191
|
-
import { FirebaseError as
|
|
1191
|
+
import { FirebaseError as u } from "@firebase/util/dist/src/errors";
|
|
1192
1192
|
/**
|
|
1193
1193
|
* @license
|
|
1194
1194
|
* Copyright 2020 Google LLC
|
|
@@ -1209,75 +1209,75 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
1209
1209
|
* An `AppliableConstraint` is an abstraction of a constraint that can be applied
|
|
1210
1210
|
* to a Firestore query.
|
|
1211
1211
|
*/
|
|
1212
|
-
declare class
|
|
1212
|
+
declare class AppliableConstraint {
|
|
1213
1213
|
}
|
|
1214
|
-
declare class
|
|
1214
|
+
declare class FieldFilter extends Filter {
|
|
1215
1215
|
/**
|
|
1216
1216
|
* Creates a filter based on the provided arguments.
|
|
1217
|
-
*/ static create(t: any, e: any,
|
|
1218
|
-
static createKeyFieldInFilter(t: any, e: any,
|
|
1219
|
-
constructor(t: any, e: any,
|
|
1217
|
+
*/ static create(t: any, e: any, r: any): FieldFilter | __PRIVATE_KeyFieldInFilter | __PRIVATE_ArrayContainsAnyFilter;
|
|
1218
|
+
static createKeyFieldInFilter(t: any, e: any, r: any): __PRIVATE_KeyFieldInFilter | __PRIVATE_KeyFieldNotInFilter;
|
|
1219
|
+
constructor(t: any, e: any, r: any);
|
|
1220
1220
|
field: any;
|
|
1221
1221
|
op: any;
|
|
1222
1222
|
value: any;
|
|
1223
1223
|
matches(t: any): boolean | void;
|
|
1224
1224
|
matchesComparison(t: any): boolean | void;
|
|
1225
1225
|
isInequality(): boolean;
|
|
1226
|
-
getFlattenedFilters():
|
|
1227
|
-
getFilters():
|
|
1226
|
+
getFlattenedFilters(): FieldFilter[];
|
|
1227
|
+
getFilters(): FieldFilter[];
|
|
1228
1228
|
getFirstInequalityField(): any;
|
|
1229
1229
|
}
|
|
1230
|
-
/** Filter that matches on key fields within an array. */ declare class
|
|
1230
|
+
/** Filter that matches on key fields within an array. */ declare class __PRIVATE_KeyFieldInFilter extends FieldFilter {
|
|
1231
1231
|
constructor(t: any, e: any);
|
|
1232
1232
|
keys: any;
|
|
1233
1233
|
matches(t: any): any;
|
|
1234
1234
|
}
|
|
1235
|
-
/** A Filter that implements the array-contains-any operator. */ declare class
|
|
1235
|
+
/** A Filter that implements the array-contains-any operator. */ declare class __PRIVATE_ArrayContainsAnyFilter extends FieldFilter {
|
|
1236
1236
|
constructor(t: any, e: any);
|
|
1237
1237
|
matches(t: any): any;
|
|
1238
1238
|
}
|
|
1239
1239
|
/**
|
|
1240
1240
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1241
1241
|
* classes.
|
|
1242
|
-
*/ declare class
|
|
1243
|
-
constructor(t: any, e: any,
|
|
1242
|
+
*/ declare class __PRIVATE_UserDataReader {
|
|
1243
|
+
constructor(t: any, e: any, r: any);
|
|
1244
1244
|
databaseId: any;
|
|
1245
1245
|
ignoreUndefinedProperties: any;
|
|
1246
1246
|
serializer: any;
|
|
1247
|
-
/** Creates a new top-level parse context. */
|
|
1247
|
+
/** Creates a new top-level parse context. */ ht(t: any, e: any, r: any, n?: boolean): __PRIVATE_ParseContextImpl;
|
|
1248
1248
|
}
|
|
1249
|
-
declare class
|
|
1249
|
+
declare class __PRIVATE_ArrayRemoveFieldValueImpl extends FieldValue {
|
|
1250
1250
|
constructor(t: any, e: any);
|
|
1251
1251
|
dt: any;
|
|
1252
|
-
_toFieldTransform(t: any):
|
|
1252
|
+
_toFieldTransform(t: any): FieldTransform;
|
|
1253
1253
|
isEqual(t: any): boolean;
|
|
1254
1254
|
}
|
|
1255
|
-
declare class
|
|
1255
|
+
declare class __PRIVATE_ArrayUnionFieldValueImpl extends FieldValue {
|
|
1256
1256
|
constructor(t: any, e: any);
|
|
1257
1257
|
dt: any;
|
|
1258
|
-
_toFieldTransform(t: any):
|
|
1258
|
+
_toFieldTransform(t: any): FieldTransform;
|
|
1259
1259
|
isEqual(t: any): boolean;
|
|
1260
1260
|
}
|
|
1261
|
-
declare class
|
|
1261
|
+
declare class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
|
|
1262
1262
|
_toFieldTransform(t: any): null;
|
|
1263
1263
|
isEqual(t: any): boolean;
|
|
1264
1264
|
}
|
|
1265
|
-
declare class
|
|
1265
|
+
declare class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
|
|
1266
1266
|
constructor(t: any, e: any);
|
|
1267
|
-
|
|
1268
|
-
_toFieldTransform(t: any):
|
|
1267
|
+
ft: any;
|
|
1268
|
+
_toFieldTransform(t: any): FieldTransform;
|
|
1269
1269
|
isEqual(t: any): boolean;
|
|
1270
1270
|
}
|
|
1271
|
-
declare class
|
|
1272
|
-
_toFieldTransform(t: any):
|
|
1271
|
+
declare class __PRIVATE_ServerTimestampFieldValueImpl extends FieldValue {
|
|
1272
|
+
_toFieldTransform(t: any): FieldTransform;
|
|
1273
1273
|
isEqual(t: any): boolean;
|
|
1274
1274
|
}
|
|
1275
1275
|
/**
|
|
1276
1276
|
* Path represents an ordered sequence of string segments.
|
|
1277
1277
|
*/
|
|
1278
|
-
declare class
|
|
1278
|
+
declare class BasePath {
|
|
1279
1279
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
1280
|
-
constructor(t: any, e: any,
|
|
1280
|
+
constructor(t: any, e: any, r: any);
|
|
1281
1281
|
segments: any;
|
|
1282
1282
|
offset: any;
|
|
1283
1283
|
len: any;
|
|
@@ -1311,14 +1311,14 @@ declare class Z {
|
|
|
1311
1311
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1312
1312
|
* See the License for the specific language governing permissions and
|
|
1313
1313
|
* limitations under the License.
|
|
1314
|
-
*/ declare class
|
|
1314
|
+
*/ declare class Filter {
|
|
1315
1315
|
}
|
|
1316
|
-
/** Filter that matches on key fields not present within an array. */ declare class
|
|
1316
|
+
/** Filter that matches on key fields not present within an array. */ declare class __PRIVATE_KeyFieldNotInFilter extends FieldFilter {
|
|
1317
1317
|
constructor(t: any, e: any);
|
|
1318
1318
|
keys: any;
|
|
1319
1319
|
matches(t: any): boolean;
|
|
1320
1320
|
}
|
|
1321
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1321
|
+
/** A "context" object passed around while parsing user data. */ declare class __PRIVATE_ParseContextImpl {
|
|
1322
1322
|
/**
|
|
1323
1323
|
* Initializes a ParseContext with the given source and path.
|
|
1324
1324
|
*
|
|
@@ -1337,7 +1337,7 @@ declare class Z {
|
|
|
1337
1337
|
* which case certain features will not work and errors will be somewhat
|
|
1338
1338
|
* compromised).
|
|
1339
1339
|
*/
|
|
1340
|
-
constructor(t: any, e: any,
|
|
1340
|
+
constructor(t: any, e: any, r: any, n: any, i: any, s: any);
|
|
1341
1341
|
settings: any;
|
|
1342
1342
|
databaseId: any;
|
|
1343
1343
|
serializer: any;
|
|
@@ -1346,14 +1346,14 @@ declare class Z {
|
|
|
1346
1346
|
fieldMask: any;
|
|
1347
1347
|
get path(): any;
|
|
1348
1348
|
get et(): any;
|
|
1349
|
-
/** Returns a new context with the specified settings overwritten. */
|
|
1350
|
-
|
|
1351
|
-
ot(t: any):
|
|
1352
|
-
ut(t: any):
|
|
1353
|
-
|
|
1349
|
+
/** Returns a new context with the specified settings overwritten. */ rt(t: any): __PRIVATE_ParseContextImpl;
|
|
1350
|
+
nt(t: any): __PRIVATE_ParseContextImpl;
|
|
1351
|
+
ot(t: any): __PRIVATE_ParseContextImpl;
|
|
1352
|
+
ut(t: any): __PRIVATE_ParseContextImpl;
|
|
1353
|
+
_t(t: any): FirestoreError;
|
|
1354
1354
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1355
1355
|
tt(): void;
|
|
1356
|
-
|
|
1356
|
+
st(t: any): void;
|
|
1357
1357
|
}
|
|
1358
1358
|
/**
|
|
1359
1359
|
* @license
|
|
@@ -1371,9 +1371,9 @@ declare class Z {
|
|
|
1371
1371
|
* See the License for the specific language governing permissions and
|
|
1372
1372
|
* limitations under the License.
|
|
1373
1373
|
*/
|
|
1374
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1374
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class FieldTransform {
|
|
1375
1375
|
constructor(t: any, e: any);
|
|
1376
1376
|
field: any;
|
|
1377
1377
|
transform: any;
|
|
1378
1378
|
}
|
|
1379
|
-
export {
|
|
1379
|
+
export {};
|