@firebase/firestore 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/firestore/lite/index.d.ts +2 -0
- package/dist/firestore/src/api/aggregate.d.ts +43 -0
- package/dist/firestore/src/api/database.d.ts +15 -15
- package/dist/firestore/src/api.d.ts +2 -0
- package/dist/firestore/src/core/count_query_runner.d.ts +32 -0
- package/dist/firestore/src/core/firestore_client.d.ts +5 -0
- package/dist/firestore/src/lite-api/aggregate.d.ts +48 -0
- package/dist/firestore/src/lite-api/aggregate_types.d.ts +69 -0
- package/dist/firestore/src/lite-api/database.d.ts +7 -7
- package/dist/firestore/src/platform/node/grpc_connection.d.ts +1 -0
- package/dist/firestore/src/protos/firestore_proto_api.d.ts +28 -0
- package/dist/firestore/src/remote/connection.d.ts +7 -0
- package/dist/firestore/src/remote/datastore.d.ts +2 -0
- package/dist/firestore/src/remote/rest_connection.d.ts +1 -0
- package/dist/firestore/src/remote/serializer.d.ts +2 -1
- package/dist/firestore/test/integration/api/aggregation.test.d.ts +17 -0
- package/dist/firestore/test/integration/api_internal/aggregation.test.d.ts +17 -0
- package/dist/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/firestore/test/unit/specs/spec_test_components.d.ts +1 -0
- package/dist/index.d.ts +196 -14
- package/dist/index.esm2017.js +4616 -4413
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +4608 -4402
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +994 -613
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +992 -615
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +4622 -4419
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +139 -17
- package/dist/lite/firestore/lite/index.d.ts +2 -0
- package/dist/lite/firestore/src/api/aggregate.d.ts +43 -0
- package/dist/lite/firestore/src/api/database.d.ts +15 -15
- package/dist/lite/firestore/src/api.d.ts +2 -0
- package/dist/lite/firestore/src/core/count_query_runner.d.ts +32 -0
- package/dist/lite/firestore/src/core/firestore_client.d.ts +5 -0
- package/dist/lite/firestore/src/lite-api/aggregate.d.ts +48 -0
- package/dist/lite/firestore/src/lite-api/aggregate_types.d.ts +69 -0
- package/dist/lite/firestore/src/lite-api/database.d.ts +7 -7
- package/dist/lite/firestore/src/platform/node/grpc_connection.d.ts +1 -0
- package/dist/lite/firestore/src/protos/firestore_proto_api.d.ts +28 -0
- package/dist/lite/firestore/src/remote/connection.d.ts +7 -0
- package/dist/lite/firestore/src/remote/datastore.d.ts +2 -0
- package/dist/lite/firestore/src/remote/rest_connection.d.ts +1 -0
- package/dist/lite/firestore/src/remote/serializer.d.ts +2 -1
- package/dist/lite/firestore/test/integration/api/aggregation.test.d.ts +17 -0
- package/dist/lite/firestore/test/integration/api_internal/aggregation.test.d.ts +17 -0
- package/dist/lite/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/lite/firestore/test/unit/specs/spec_test_components.d.ts +1 -0
- package/dist/lite/index.browser.esm2017.js +1250 -1086
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +1394 -1232
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.d.ts +84 -4
- package/dist/lite/index.node.cjs.js +255 -63
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +253 -65
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +1257 -1093
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +121 -6
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +227 -142
- package/dist/lite/packages/firestore/lite/index.d.ts +2 -0
- package/dist/lite/packages/firestore/src/api/aggregate.d.ts +43 -0
- package/dist/lite/packages/firestore/src/api/database.d.ts +15 -15
- package/dist/lite/packages/firestore/src/api.d.ts +2 -0
- package/dist/lite/packages/firestore/src/core/count_query_runner.d.ts +32 -0
- package/dist/lite/packages/firestore/src/core/firestore_client.d.ts +5 -0
- package/dist/lite/packages/firestore/src/lite-api/aggregate.d.ts +48 -0
- package/dist/lite/packages/firestore/src/lite-api/aggregate_types.d.ts +69 -0
- package/dist/lite/packages/firestore/src/lite-api/database.d.ts +7 -7
- package/dist/lite/packages/firestore/src/platform/node/grpc_connection.d.ts +1 -0
- package/dist/lite/packages/firestore/src/protos/firestore_proto_api.d.ts +28 -0
- package/dist/lite/packages/firestore/src/remote/connection.d.ts +7 -0
- package/dist/lite/packages/firestore/src/remote/datastore.d.ts +2 -0
- package/dist/lite/packages/firestore/src/remote/rest_connection.d.ts +1 -0
- package/dist/lite/packages/firestore/src/remote/serializer.d.ts +2 -1
- package/dist/lite/packages/firestore/test/integration/api/aggregation.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/integration/api_internal/aggregation.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/lite/packages/firestore/test/unit/specs/spec_test_components.d.ts +1 -0
- package/dist/lite/private.d.ts +119 -4
- package/dist/packages/firestore/dist/index.esm2017.d.ts +336 -254
- package/dist/packages/firestore/lite/index.d.ts +2 -0
- package/dist/packages/firestore/src/api/aggregate.d.ts +43 -0
- package/dist/packages/firestore/src/api/database.d.ts +15 -15
- package/dist/packages/firestore/src/api.d.ts +2 -0
- package/dist/packages/firestore/src/core/count_query_runner.d.ts +32 -0
- package/dist/packages/firestore/src/core/firestore_client.d.ts +5 -0
- package/dist/packages/firestore/src/lite-api/aggregate.d.ts +48 -0
- package/dist/packages/firestore/src/lite-api/aggregate_types.d.ts +69 -0
- package/dist/packages/firestore/src/lite-api/database.d.ts +7 -7
- package/dist/packages/firestore/src/platform/node/grpc_connection.d.ts +1 -0
- package/dist/packages/firestore/src/protos/firestore_proto_api.d.ts +28 -0
- package/dist/packages/firestore/src/remote/connection.d.ts +7 -0
- package/dist/packages/firestore/src/remote/datastore.d.ts +2 -0
- package/dist/packages/firestore/src/remote/rest_connection.d.ts +1 -0
- package/dist/packages/firestore/src/remote/serializer.d.ts +2 -1
- package/dist/packages/firestore/test/integration/api/aggregation.test.d.ts +17 -0
- package/dist/packages/firestore/test/integration/api_internal/aggregation.test.d.ts +17 -0
- package/dist/packages/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/packages/firestore/test/unit/specs/spec_test_components.d.ts +1 -0
- package/dist/private.d.ts +234 -19
- package/package.json +6 -6
|
@@ -1,3 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* @license
|
|
19
|
+
* Copyright 2022 Google LLC
|
|
20
|
+
*
|
|
21
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
22
|
+
* you may not use this file except in compliance with the License.
|
|
23
|
+
* You may obtain a copy of the License at
|
|
24
|
+
*
|
|
25
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
26
|
+
*
|
|
27
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
28
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
29
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
30
|
+
* See the License for the specific language governing permissions and
|
|
31
|
+
* limitations under the License.
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Represents an aggregation that can be performed by Firestore.
|
|
35
|
+
*/
|
|
36
|
+
declare class yn {
|
|
37
|
+
/** A type string to uniquely identify instances of this class. */
|
|
38
|
+
type: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The results of executing an aggregation query.
|
|
42
|
+
*/ declare class _n {
|
|
43
|
+
/** @hideconstructor */
|
|
44
|
+
constructor(t: any, e: any);
|
|
45
|
+
_data: any;
|
|
46
|
+
/** A type string to uniquely identify instances of this class. */
|
|
47
|
+
type: string;
|
|
48
|
+
query: any;
|
|
49
|
+
/**
|
|
50
|
+
* Returns the results of the aggregations performed over the underlying
|
|
51
|
+
* query.
|
|
52
|
+
*
|
|
53
|
+
* The keys of the returned object will be the same as those of the
|
|
54
|
+
* `AggregateSpec` object specified to the aggregation method, and the values
|
|
55
|
+
* will be the corresponding aggregation result.
|
|
56
|
+
*
|
|
57
|
+
* @returns The results of the aggregations performed over the underlying
|
|
58
|
+
* query.
|
|
59
|
+
*/ data(): any;
|
|
60
|
+
}
|
|
1
61
|
/**
|
|
2
62
|
* @license
|
|
3
63
|
* Copyright 2020 Google LLC
|
|
@@ -16,18 +76,18 @@
|
|
|
16
76
|
*/
|
|
17
77
|
/**
|
|
18
78
|
* An immutable object representing an array of bytes.
|
|
19
|
-
*/ declare class
|
|
79
|
+
*/ declare class Vn {
|
|
20
80
|
/**
|
|
21
81
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
22
82
|
* bytes.
|
|
23
83
|
*
|
|
24
84
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
25
|
-
*/ static fromBase64String(t: any):
|
|
85
|
+
*/ static fromBase64String(t: any): Vn;
|
|
26
86
|
/**
|
|
27
87
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
28
88
|
*
|
|
29
89
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
30
|
-
*/ static fromUint8Array(t: any):
|
|
90
|
+
*/ static fromUint8Array(t: any): Vn;
|
|
31
91
|
/** @hideconstructor */
|
|
32
92
|
constructor(t: any);
|
|
33
93
|
_byteString: any;
|
|
@@ -56,7 +116,7 @@
|
|
|
56
116
|
/**
|
|
57
117
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
58
118
|
* document references, and querying for documents (using {@link query}).
|
|
59
|
-
*/ declare class
|
|
119
|
+
*/ declare class En extends bn {
|
|
60
120
|
_path: any;
|
|
61
121
|
/** The collection's identifier. */ get id(): any;
|
|
62
122
|
/**
|
|
@@ -66,24 +126,8 @@
|
|
|
66
126
|
/**
|
|
67
127
|
* A reference to the containing `DocumentReference` if this is a
|
|
68
128
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
69
|
-
*/ get parent():
|
|
129
|
+
*/ get parent(): vn | null;
|
|
70
130
|
}
|
|
71
|
-
/**
|
|
72
|
-
* @license
|
|
73
|
-
* Copyright 2020 Google LLC
|
|
74
|
-
*
|
|
75
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
76
|
-
* you may not use this file except in compliance with the License.
|
|
77
|
-
* You may obtain a copy of the License at
|
|
78
|
-
*
|
|
79
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
80
|
-
*
|
|
81
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
82
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
83
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
84
|
-
* See the License for the specific language governing permissions and
|
|
85
|
-
* limitations under the License.
|
|
86
|
-
*/
|
|
87
131
|
/**
|
|
88
132
|
* @license
|
|
89
133
|
* Copyright 2020 Google LLC
|
|
@@ -104,8 +148,7 @@
|
|
|
104
148
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
105
149
|
* and can be used to write, read, or listen to the location. The document at
|
|
106
150
|
* the referenced location may or may not exist.
|
|
107
|
-
*/
|
|
108
|
-
declare class wn {
|
|
151
|
+
*/ declare class vn {
|
|
109
152
|
/** @hideconstructor */
|
|
110
153
|
constructor(t: any, e: any, n: any);
|
|
111
154
|
converter: any;
|
|
@@ -123,8 +166,8 @@ declare class wn {
|
|
|
123
166
|
*/ get path(): any;
|
|
124
167
|
/**
|
|
125
168
|
* The collection this `DocumentReference` belongs to.
|
|
126
|
-
*/ get parent():
|
|
127
|
-
withConverter(t: any):
|
|
169
|
+
*/ get parent(): En;
|
|
170
|
+
withConverter(t: any): vn;
|
|
128
171
|
}
|
|
129
172
|
/**
|
|
130
173
|
* @license
|
|
@@ -150,7 +193,7 @@ declare class wn {
|
|
|
150
193
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
151
194
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
152
195
|
* explicitly verify a document's existence.
|
|
153
|
-
*/ declare class
|
|
196
|
+
*/ declare class ir {
|
|
154
197
|
/** @hideconstructor protected */
|
|
155
198
|
constructor(t: any, e: any, n: any, r: any, s: any);
|
|
156
199
|
_firestore: any;
|
|
@@ -161,7 +204,7 @@ declare class wn {
|
|
|
161
204
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
162
205
|
/**
|
|
163
206
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
164
|
-
*/ get ref():
|
|
207
|
+
*/ get ref(): vn;
|
|
165
208
|
/**
|
|
166
209
|
* Signals whether or not the document at the snapshot's location exists.
|
|
167
210
|
*
|
|
@@ -208,7 +251,7 @@ declare class wn {
|
|
|
208
251
|
*
|
|
209
252
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
210
253
|
* name is provided, the path will point to a nested field in a document.
|
|
211
|
-
*/ declare class
|
|
254
|
+
*/ declare class Nn {
|
|
212
255
|
/**
|
|
213
256
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
214
257
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -216,7 +259,7 @@ declare class wn {
|
|
|
216
259
|
* @param fieldNames - A list of field names.
|
|
217
260
|
*/
|
|
218
261
|
constructor(...t: any[]);
|
|
219
|
-
_internalPath:
|
|
262
|
+
_internalPath: nt;
|
|
220
263
|
/**
|
|
221
264
|
* Returns true if this `FieldPath` is equal to the provided one.
|
|
222
265
|
*
|
|
@@ -243,7 +286,7 @@ declare class wn {
|
|
|
243
286
|
/**
|
|
244
287
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
245
288
|
* or `update()`.
|
|
246
|
-
*/ declare class
|
|
289
|
+
*/ declare class $n {
|
|
247
290
|
/**
|
|
248
291
|
* @param _methodName - The public API endpoint that returns this class.
|
|
249
292
|
* @hideconstructor
|
|
@@ -270,8 +313,8 @@ declare class wn {
|
|
|
270
313
|
/**
|
|
271
314
|
* The Cloud Firestore service interface.
|
|
272
315
|
*
|
|
273
|
-
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
274
|
-
*/ declare class
|
|
316
|
+
* Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
|
|
317
|
+
*/ declare class fn {
|
|
275
318
|
/** @hideconstructor */
|
|
276
319
|
constructor(t: any, e: any, n: any, r: any);
|
|
277
320
|
_authCredentials: any;
|
|
@@ -283,7 +326,7 @@ declare class wn {
|
|
|
283
326
|
*/
|
|
284
327
|
type: string;
|
|
285
328
|
_persistenceKey: string;
|
|
286
|
-
_settings:
|
|
329
|
+
_settings: ln;
|
|
287
330
|
_settingsFrozen: boolean;
|
|
288
331
|
/**
|
|
289
332
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -292,14 +335,14 @@ declare class wn {
|
|
|
292
335
|
get _initialized(): boolean;
|
|
293
336
|
get _terminated(): boolean;
|
|
294
337
|
_setSettings(t: any): void;
|
|
295
|
-
_getSettings():
|
|
296
|
-
_freezeSettings():
|
|
338
|
+
_getSettings(): ln;
|
|
339
|
+
_freezeSettings(): ln;
|
|
297
340
|
_delete(): Promise<void>;
|
|
298
341
|
_terminateTask: Promise<void> | undefined;
|
|
299
342
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
300
343
|
app: any;
|
|
301
344
|
databaseId: any;
|
|
302
|
-
settings:
|
|
345
|
+
settings: ln;
|
|
303
346
|
};
|
|
304
347
|
/**
|
|
305
348
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -309,7 +352,7 @@ declare class wn {
|
|
|
309
352
|
* Only ever called once.
|
|
310
353
|
*/ _terminate(): Promise<void>;
|
|
311
354
|
}
|
|
312
|
-
/** An error returned by a Firestore operation. */ declare class
|
|
355
|
+
/** An error returned by a Firestore operation. */ declare class U extends c {
|
|
313
356
|
/** @hideconstructor */
|
|
314
357
|
constructor(t: any, e: any);
|
|
315
358
|
}
|
|
@@ -335,7 +378,7 @@ declare class wn {
|
|
|
335
378
|
*
|
|
336
379
|
* Latitude values are in the range of [-90, 90].
|
|
337
380
|
* Longitude values are in the range of [-180, 180].
|
|
338
|
-
*/ declare class
|
|
381
|
+
*/ declare class xn {
|
|
339
382
|
/**
|
|
340
383
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
341
384
|
* longitude values.
|
|
@@ -369,7 +412,7 @@ declare class wn {
|
|
|
369
412
|
/**
|
|
370
413
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
371
414
|
* construct refined `Query` objects by adding filters and ordering.
|
|
372
|
-
*/ declare class
|
|
415
|
+
*/ declare class bn {
|
|
373
416
|
/** @hideconstructor protected */
|
|
374
417
|
constructor(t: any, e: any, n: any);
|
|
375
418
|
converter: any;
|
|
@@ -377,7 +420,7 @@ declare class wn {
|
|
|
377
420
|
/** The type of this Firestore reference. */
|
|
378
421
|
type: string;
|
|
379
422
|
firestore: any;
|
|
380
|
-
withConverter(t: any):
|
|
423
|
+
withConverter(t: any): bn;
|
|
381
424
|
}
|
|
382
425
|
/**
|
|
383
426
|
* @license
|
|
@@ -403,7 +446,7 @@ declare class wn {
|
|
|
403
446
|
* can then be passed to {@link query} to create a new query instance that
|
|
404
447
|
* also contains this `QueryConstraint`.
|
|
405
448
|
*/
|
|
406
|
-
declare class
|
|
449
|
+
declare class hr {
|
|
407
450
|
}
|
|
408
451
|
/**
|
|
409
452
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -415,7 +458,7 @@ declare class sr {
|
|
|
415
458
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
416
459
|
* `exists` property will always be true and `data()` will never return
|
|
417
460
|
* 'undefined'.
|
|
418
|
-
*/ declare class
|
|
461
|
+
*/ declare class or extends ir {
|
|
419
462
|
}
|
|
420
463
|
/**
|
|
421
464
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -423,7 +466,7 @@ declare class sr {
|
|
|
423
466
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
424
467
|
* number of documents can be determined via the `empty` and `size`
|
|
425
468
|
* properties.
|
|
426
|
-
*/ declare class
|
|
469
|
+
*/ declare class ur {
|
|
427
470
|
/** @hideconstructor */
|
|
428
471
|
constructor(t: any, e: any);
|
|
429
472
|
_docs: any;
|
|
@@ -469,19 +512,19 @@ declare class sr {
|
|
|
469
512
|
* For examples and further specifications, refer to the
|
|
470
513
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
471
514
|
*/
|
|
472
|
-
declare class
|
|
515
|
+
declare class bt {
|
|
473
516
|
/**
|
|
474
517
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
475
518
|
*
|
|
476
519
|
* @returns a new timestamp representing the current date.
|
|
477
|
-
*/ static now():
|
|
520
|
+
*/ static now(): bt;
|
|
478
521
|
/**
|
|
479
522
|
* Creates a new timestamp from the given date.
|
|
480
523
|
*
|
|
481
524
|
* @param date - The date to initialize the `Timestamp` from.
|
|
482
525
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
483
526
|
* date.
|
|
484
|
-
*/ static fromDate(t: any):
|
|
527
|
+
*/ static fromDate(t: any): bt;
|
|
485
528
|
/**
|
|
486
529
|
* Creates a new timestamp from the given number of milliseconds.
|
|
487
530
|
*
|
|
@@ -489,7 +532,7 @@ declare class gt {
|
|
|
489
532
|
* 1970-01-01T00:00:00Z.
|
|
490
533
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
491
534
|
* number of milliseconds.
|
|
492
|
-
*/ static fromMillis(t: any):
|
|
535
|
+
*/ static fromMillis(t: any): bt;
|
|
493
536
|
/**
|
|
494
537
|
* Creates a new timestamp.
|
|
495
538
|
*
|
|
@@ -536,26 +579,26 @@ declare class gt {
|
|
|
536
579
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
537
580
|
*/ valueOf(): string;
|
|
538
581
|
}
|
|
539
|
-
declare class
|
|
582
|
+
declare class Zr {
|
|
540
583
|
/** @hideconstructor */
|
|
541
584
|
constructor(t: any, e: any);
|
|
542
585
|
_firestore: any;
|
|
543
586
|
_transaction: any;
|
|
544
|
-
_dataReader:
|
|
587
|
+
_dataReader: Cn;
|
|
545
588
|
/**
|
|
546
589
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
547
590
|
*
|
|
548
591
|
* @param documentRef - A reference to the document to be read.
|
|
549
592
|
* @returns A `DocumentSnapshot` with the read data.
|
|
550
593
|
*/ get(t: any): any;
|
|
551
|
-
set(t: any, e: any, n: any):
|
|
552
|
-
update(t: any, e: any, n: any, ...r: any[]):
|
|
594
|
+
set(t: any, e: any, n: any): Zr;
|
|
595
|
+
update(t: any, e: any, n: any, ...r: any[]): Zr;
|
|
553
596
|
/**
|
|
554
597
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
555
598
|
*
|
|
556
599
|
* @param documentRef - A reference to the document to be deleted.
|
|
557
600
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
558
|
-
*/ delete(t: any):
|
|
601
|
+
*/ delete(t: any): Zr;
|
|
559
602
|
}
|
|
560
603
|
/**
|
|
561
604
|
* @license
|
|
@@ -580,22 +623,22 @@ declare class Gr {
|
|
|
580
623
|
* provides methods for adding writes to the write batch. None of the writes
|
|
581
624
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
582
625
|
* called.
|
|
583
|
-
*/ declare class
|
|
626
|
+
*/ declare class Qr {
|
|
584
627
|
/** @hideconstructor */
|
|
585
628
|
constructor(t: any, e: any);
|
|
586
629
|
_firestore: any;
|
|
587
630
|
_commitHandler: any;
|
|
588
631
|
_mutations: any[];
|
|
589
632
|
_committed: boolean;
|
|
590
|
-
_dataReader:
|
|
591
|
-
set(t: any, e: any, n: any):
|
|
592
|
-
update(t: any, e: any, n: any, ...r: any[]):
|
|
633
|
+
_dataReader: Cn;
|
|
634
|
+
set(t: any, e: any, n: any): Qr;
|
|
635
|
+
update(t: any, e: any, n: any, ...r: any[]): Qr;
|
|
593
636
|
/**
|
|
594
637
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
595
638
|
*
|
|
596
639
|
* @param documentRef - A reference to the document to be deleted.
|
|
597
640
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
598
|
-
*/ delete(t: any):
|
|
641
|
+
*/ delete(t: any): Qr;
|
|
599
642
|
/**
|
|
600
643
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
601
644
|
*
|
|
@@ -624,7 +667,19 @@ declare class Gr {
|
|
|
624
667
|
* @throws Error - If the provided input is not a valid Firestore document.
|
|
625
668
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
626
669
|
* newly created document after it has been written to the backend.
|
|
627
|
-
*/ declare function
|
|
670
|
+
*/ declare function Or(t: any, e: any): Promise<vn>;
|
|
671
|
+
/**
|
|
672
|
+
* Compares two `AggregateQuerySnapshot` instances for equality.
|
|
673
|
+
*
|
|
674
|
+
* Two `AggregateQuerySnapshot` instances are considered "equal" if they have
|
|
675
|
+
* underlying queries that compare equal, and the same data.
|
|
676
|
+
*
|
|
677
|
+
* @param left - The first `AggregateQuerySnapshot` to compare.
|
|
678
|
+
* @param right - The second `AggregateQuerySnapshot` to compare.
|
|
679
|
+
*
|
|
680
|
+
* @returns `true` if the objects are "equal", as defined above, or `false`
|
|
681
|
+
* otherwise.
|
|
682
|
+
*/ declare function Cr(t: any, e: any): boolean;
|
|
628
683
|
/**
|
|
629
684
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
630
685
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -635,7 +690,7 @@ declare class Gr {
|
|
|
635
690
|
* @param elements - The elements to remove from the array.
|
|
636
691
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
637
692
|
* `updateDoc()`
|
|
638
|
-
*/ declare function
|
|
693
|
+
*/ declare function jr(...t: any[]): zn;
|
|
639
694
|
/**
|
|
640
695
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
641
696
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -647,8 +702,8 @@ declare class Gr {
|
|
|
647
702
|
* @param elements - The elements to union into the array.
|
|
648
703
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
649
704
|
* `updateDoc()`.
|
|
650
|
-
*/ declare function
|
|
651
|
-
declare function
|
|
705
|
+
*/ declare function Ur(...t: any[]): Qn;
|
|
706
|
+
declare function In(t: any, e: any, ...n: any[]): En;
|
|
652
707
|
/**
|
|
653
708
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
654
709
|
* database that are contained in a collection or subcollection with the
|
|
@@ -659,7 +714,7 @@ declare function yn(t: any, e: any, ...n: any[]): pn;
|
|
|
659
714
|
* collection or subcollection with this ID as the last segment of its path
|
|
660
715
|
* will be included. Cannot contain a slash.
|
|
661
716
|
* @returns The created `Query`.
|
|
662
|
-
*/ declare function
|
|
717
|
+
*/ declare function Tn(t: any, e: any): bn;
|
|
663
718
|
/**
|
|
664
719
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
665
720
|
*
|
|
@@ -672,7 +727,7 @@ declare function yn(t: any, e: any, ...n: any[]): pn;
|
|
|
672
727
|
* @param port - the emulator port (ex: 9000).
|
|
673
728
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
674
729
|
* Security Rules.
|
|
675
|
-
*/ declare function
|
|
730
|
+
*/ declare function mn(t: any, e: any, n: any, r?: {}): void;
|
|
676
731
|
/**
|
|
677
732
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
678
733
|
*
|
|
@@ -684,7 +739,7 @@ declare function yn(t: any, e: any, ...n: any[]): pn;
|
|
|
684
739
|
* @param reference - A reference to the document to delete.
|
|
685
740
|
* @returns A `Promise` resolved once the document has been successfully
|
|
686
741
|
* deleted from the backend.
|
|
687
|
-
*/ declare function
|
|
742
|
+
*/ declare function qr(t: any): Promise<void>;
|
|
688
743
|
/**
|
|
689
744
|
* @license
|
|
690
745
|
* Copyright 2020 Google LLC
|
|
@@ -704,14 +759,44 @@ declare function yn(t: any, e: any, ...n: any[]): pn;
|
|
|
704
759
|
/**
|
|
705
760
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
706
761
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
707
|
-
*/ declare function
|
|
708
|
-
declare function
|
|
762
|
+
*/ declare function Lr(): Un;
|
|
763
|
+
declare function An(t: any, e: any, ...n: any[]): vn;
|
|
709
764
|
/**
|
|
710
765
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
711
766
|
* It can be used in queries to sort or filter by the document ID.
|
|
712
|
-
*/ declare function
|
|
713
|
-
declare function
|
|
714
|
-
declare function
|
|
767
|
+
*/ declare function Dn(): Nn;
|
|
768
|
+
declare function Tr(...t: any[]): Er;
|
|
769
|
+
declare function Ir(...t: any[]): Er;
|
|
770
|
+
/**
|
|
771
|
+
* @license
|
|
772
|
+
* Copyright 2022 Google LLC
|
|
773
|
+
*
|
|
774
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
775
|
+
* you may not use this file except in compliance with the License.
|
|
776
|
+
* You may obtain a copy of the License at
|
|
777
|
+
*
|
|
778
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
779
|
+
*
|
|
780
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
781
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
782
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
783
|
+
* See the License for the specific language governing permissions and
|
|
784
|
+
* limitations under the License.
|
|
785
|
+
*/
|
|
786
|
+
/**
|
|
787
|
+
* Calculates the number of documents in the result set of the given query,
|
|
788
|
+
* without actually downloading the documents.
|
|
789
|
+
*
|
|
790
|
+
* Using this function to count the documents is efficient because only the
|
|
791
|
+
* final count, not the documents' data, is downloaded. This function can even
|
|
792
|
+
* count the documents if the result set would be prohibitively large to
|
|
793
|
+
* download entirely (e.g. thousands of documents).
|
|
794
|
+
*
|
|
795
|
+
* @param query - The query whose result set size to calculate.
|
|
796
|
+
* @returns A Promise that will be resolved with the count; the count can be
|
|
797
|
+
* retrieved from `snapshot.data().count`, where `snapshot` is the
|
|
798
|
+
* `AggregateQuerySnapshot` to which the returned Promise resolves.
|
|
799
|
+
*/ declare function kr(t: any): Promise<_n>;
|
|
715
800
|
/**
|
|
716
801
|
* Reads the document referred to by the specified document reference.
|
|
717
802
|
*
|
|
@@ -724,7 +809,7 @@ declare function yr(...t: any[]): pr;
|
|
|
724
809
|
* @param reference - The reference of the document to fetch.
|
|
725
810
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the current
|
|
726
811
|
* document contents.
|
|
727
|
-
*/ declare function
|
|
812
|
+
*/ declare function $r(t: any): Promise<ir>;
|
|
728
813
|
/**
|
|
729
814
|
* Executes the query and returns the results as a {@link QuerySnapshot}.
|
|
730
815
|
*
|
|
@@ -736,8 +821,8 @@ declare function yr(...t: any[]): pr;
|
|
|
736
821
|
*
|
|
737
822
|
* @param query - The `Query` to execute.
|
|
738
823
|
* @returns A Promise that will be resolved with the results of the query.
|
|
739
|
-
*/ declare function
|
|
740
|
-
declare function
|
|
824
|
+
*/ declare function xr(t: any): Promise<ur>;
|
|
825
|
+
declare function wn(e: any, n: any): import("../../lite").Firestore;
|
|
741
826
|
/**
|
|
742
827
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
743
828
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -756,14 +841,14 @@ declare function ln(e: any, n: any): import("../../lite").Firestore;
|
|
|
756
841
|
* @param n - The value to increment by.
|
|
757
842
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
758
843
|
* `updateDoc()`
|
|
759
|
-
*/ declare function
|
|
760
|
-
declare function
|
|
844
|
+
*/ declare function Br(t: any): Gn;
|
|
845
|
+
declare function dn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
761
846
|
/**
|
|
762
847
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
763
848
|
*
|
|
764
849
|
* @param limit - The maximum number of items to return.
|
|
765
850
|
* @returns The created {@link Query}.
|
|
766
|
-
*/ declare function
|
|
851
|
+
*/ declare function yr(t: any): pr;
|
|
767
852
|
/**
|
|
768
853
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
769
854
|
*
|
|
@@ -772,7 +857,7 @@ declare function hn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
772
857
|
*
|
|
773
858
|
* @param limit - The maximum number of items to return.
|
|
774
859
|
* @returns The created {@link Query}.
|
|
775
|
-
*/ declare function
|
|
860
|
+
*/ declare function _r(t: any): pr;
|
|
776
861
|
/**
|
|
777
862
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
778
863
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -781,7 +866,7 @@ declare function hn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
781
866
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
782
867
|
* not specified, order will be ascending.
|
|
783
868
|
* @returns The created {@link Query}.
|
|
784
|
-
*/ declare function
|
|
869
|
+
*/ declare function mr(t: any, e?: string): wr;
|
|
785
870
|
/**
|
|
786
871
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
787
872
|
* additional query constraints.
|
|
@@ -790,7 +875,7 @@ declare function hn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
790
875
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
791
876
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
792
877
|
* existing or new constraints.
|
|
793
|
-
*/ declare function
|
|
878
|
+
*/ declare function lr(t: any, ...e: any[]): any;
|
|
794
879
|
/**
|
|
795
880
|
* Returns true if the provided queries point to the same collection and apply
|
|
796
881
|
* the same constraints.
|
|
@@ -799,7 +884,7 @@ declare function hn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
799
884
|
* @param right - A `Query` to compare.
|
|
800
885
|
* @returns true if the references point to the same location in the same
|
|
801
886
|
* Firestore database.
|
|
802
|
-
*/ declare function
|
|
887
|
+
*/ declare function Pn(t: any, e: any): boolean;
|
|
803
888
|
/**
|
|
804
889
|
* Returns true if the provided references are equal.
|
|
805
890
|
*
|
|
@@ -807,7 +892,7 @@ declare function hn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
807
892
|
* @param right - A reference to compare.
|
|
808
893
|
* @returns true if the references point to the same location in the same
|
|
809
894
|
* Firestore database.
|
|
810
|
-
*/ declare function
|
|
895
|
+
*/ declare function Rn(t: any, e: any): boolean;
|
|
811
896
|
/**
|
|
812
897
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
813
898
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -826,12 +911,12 @@ declare function hn(t: any, e: any, n: any): import("../../lite").Firestore;
|
|
|
826
911
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
827
912
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
828
913
|
* rejected promise with the corresponding failure error is returned.
|
|
829
|
-
*/ declare function
|
|
914
|
+
*/ declare function ts(t: any, e: any, n: any): Promise<any>;
|
|
830
915
|
/**
|
|
831
916
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
832
917
|
* include a server-generated timestamp in the written data.
|
|
833
|
-
*/ declare function
|
|
834
|
-
declare function
|
|
918
|
+
*/ declare function Mr(): Bn;
|
|
919
|
+
declare function Fr(t: any, e: any, n: any): Promise<void>;
|
|
835
920
|
/**
|
|
836
921
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
837
922
|
*
|
|
@@ -844,16 +929,16 @@ declare function Pr(t: any, e: any, n: any): Promise<void>;
|
|
|
844
929
|
* <li>`error` to log errors only.</li>
|
|
845
930
|
* <li><code>`silent` to turn off logging.</li>
|
|
846
931
|
* </ul>
|
|
847
|
-
*/ declare function
|
|
932
|
+
*/ declare function p(t: any): void;
|
|
848
933
|
/**
|
|
849
934
|
* Returns true if the provided snapshots are equal.
|
|
850
935
|
*
|
|
851
936
|
* @param left - A snapshot to compare.
|
|
852
937
|
* @param right - A snapshot to compare.
|
|
853
938
|
* @returns true if the snapshots are equal.
|
|
854
|
-
*/ declare function
|
|
855
|
-
declare function
|
|
856
|
-
declare function
|
|
939
|
+
*/ declare function cr(t: any, e: any): any;
|
|
940
|
+
declare function br(...t: any[]): gr;
|
|
941
|
+
declare function vr(...t: any[]): gr;
|
|
857
942
|
/**
|
|
858
943
|
* Terminates the provided `Firestore` instance.
|
|
859
944
|
*
|
|
@@ -863,7 +948,7 @@ declare function wr(...t: any[]): dr;
|
|
|
863
948
|
* response from the server will not be resolved.
|
|
864
949
|
*
|
|
865
950
|
* To restart after termination, create a new instance of `Firestore` with
|
|
866
|
-
* {@link getFirestore}.
|
|
951
|
+
* {@link (getFirestore:1)}.
|
|
867
952
|
*
|
|
868
953
|
* Note: Under normal circumstances, calling `terminate()` is not required. This
|
|
869
954
|
* function is useful only when you want to force this instance to release all of
|
|
@@ -873,8 +958,8 @@ declare function wr(...t: any[]): dr;
|
|
|
873
958
|
* @param firestore - The `Firestore` instance to terminate.
|
|
874
959
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
875
960
|
* terminated.
|
|
876
|
-
*/ declare function
|
|
877
|
-
declare function
|
|
961
|
+
*/ declare function pn(t: any): any;
|
|
962
|
+
declare function Sr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
878
963
|
/**
|
|
879
964
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
880
965
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -885,7 +970,7 @@ declare function Vr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
885
970
|
* "<=", "!=").
|
|
886
971
|
* @param value - The value for comparison
|
|
887
972
|
* @returns The created {@link Query}.
|
|
888
|
-
*/ declare function
|
|
973
|
+
*/ declare function dr(t: any, e: any, n: any): fr;
|
|
889
974
|
/**
|
|
890
975
|
* Creates a write batch, used for performing multiple writes as a single
|
|
891
976
|
* atomic operation. The maximum number of writes allowed in a single WriteBatch
|
|
@@ -898,18 +983,18 @@ declare function Vr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
898
983
|
*
|
|
899
984
|
* @returns A `WriteBatch` that can be used to atomically execute multiple
|
|
900
985
|
* writes.
|
|
901
|
-
*/ declare function
|
|
986
|
+
*/ declare function Gr(t: any): Qr;
|
|
902
987
|
/**
|
|
903
988
|
* A dot-separated path for navigating sub-objects within a document.
|
|
904
989
|
* @internal
|
|
905
|
-
*/ declare class
|
|
990
|
+
*/ declare class nt extends Z {
|
|
906
991
|
/**
|
|
907
992
|
* Returns true if the string could be used as a segment in a field path
|
|
908
993
|
* without escaping.
|
|
909
994
|
*/ static isValidIdentifier(t: any): boolean;
|
|
910
995
|
/**
|
|
911
996
|
* The field designating the key of a document.
|
|
912
|
-
*/ static keyField():
|
|
997
|
+
*/ static keyField(): nt;
|
|
913
998
|
/**
|
|
914
999
|
* Parses a field string from the given server-formatted string.
|
|
915
1000
|
*
|
|
@@ -919,9 +1004,9 @@ declare function Vr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
919
1004
|
*
|
|
920
1005
|
* TODO(b/37244157): we should make this more strict. Right now, it allows
|
|
921
1006
|
* non-identifier path components, even if they aren't escaped.
|
|
922
|
-
*/ static fromServerFormat(t: any):
|
|
923
|
-
static emptyPath():
|
|
924
|
-
construct(t: any, e: any, n: any):
|
|
1007
|
+
*/ static fromServerFormat(t: any): nt;
|
|
1008
|
+
static emptyPath(): nt;
|
|
1009
|
+
construct(t: any, e: any, n: any): nt;
|
|
925
1010
|
canonicalString(): any;
|
|
926
1011
|
toString(): any;
|
|
927
1012
|
/**
|
|
@@ -937,7 +1022,7 @@ declare function Vr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
937
1022
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
938
1023
|
* defaults can be supplied and the value can be checked for equality.
|
|
939
1024
|
*/
|
|
940
|
-
declare class
|
|
1025
|
+
declare class ln {
|
|
941
1026
|
constructor(t: any);
|
|
942
1027
|
host: any;
|
|
943
1028
|
ssl: any;
|
|
@@ -953,79 +1038,79 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
953
1038
|
/**
|
|
954
1039
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
955
1040
|
* classes.
|
|
956
|
-
*/ declare class
|
|
1041
|
+
*/ declare class Cn {
|
|
957
1042
|
constructor(t: any, e: any, n: any);
|
|
958
1043
|
databaseId: any;
|
|
959
1044
|
ignoreUndefinedProperties: any;
|
|
960
|
-
|
|
961
|
-
/** Creates a new top-level parse context. */
|
|
1045
|
+
L: any;
|
|
1046
|
+
/** Creates a new top-level parse context. */ wt(t: any, e: any, n: any, r?: boolean): kn;
|
|
962
1047
|
}
|
|
963
|
-
declare class
|
|
1048
|
+
declare class zn extends $n {
|
|
964
1049
|
constructor(t: any, e: any);
|
|
965
|
-
|
|
966
|
-
_toFieldTransform(t: any):
|
|
1050
|
+
yt: any;
|
|
1051
|
+
_toFieldTransform(t: any): Pe;
|
|
967
1052
|
isEqual(t: any): boolean;
|
|
968
1053
|
}
|
|
969
|
-
declare class
|
|
1054
|
+
declare class Qn extends $n {
|
|
970
1055
|
constructor(t: any, e: any);
|
|
971
|
-
|
|
972
|
-
_toFieldTransform(t: any):
|
|
1056
|
+
yt: any;
|
|
1057
|
+
_toFieldTransform(t: any): Pe;
|
|
973
1058
|
isEqual(t: any): boolean;
|
|
974
1059
|
}
|
|
975
|
-
declare class
|
|
1060
|
+
declare class Un extends $n {
|
|
976
1061
|
_toFieldTransform(t: any): null;
|
|
977
1062
|
isEqual(t: any): boolean;
|
|
978
1063
|
}
|
|
979
|
-
declare class
|
|
1064
|
+
declare class Er extends hr {
|
|
980
1065
|
constructor(t: any, e: any, n: any);
|
|
981
1066
|
type: any;
|
|
982
|
-
It: any;
|
|
983
1067
|
At: any;
|
|
984
|
-
|
|
1068
|
+
Rt: any;
|
|
1069
|
+
_apply(t: any): bn;
|
|
985
1070
|
}
|
|
986
|
-
declare class
|
|
1071
|
+
declare class Gn extends $n {
|
|
987
1072
|
constructor(t: any, e: any);
|
|
988
|
-
|
|
989
|
-
_toFieldTransform(t: any):
|
|
1073
|
+
_t: any;
|
|
1074
|
+
_toFieldTransform(t: any): Pe;
|
|
990
1075
|
isEqual(t: any): boolean;
|
|
991
1076
|
}
|
|
992
|
-
declare class
|
|
1077
|
+
declare class pr extends hr {
|
|
993
1078
|
constructor(t: any, e: any, n: any);
|
|
994
1079
|
type: any;
|
|
995
|
-
|
|
1080
|
+
It: any;
|
|
996
1081
|
Tt: any;
|
|
997
|
-
_apply(t: any):
|
|
1082
|
+
_apply(t: any): bn;
|
|
998
1083
|
}
|
|
999
|
-
declare class
|
|
1084
|
+
declare class wr extends hr {
|
|
1000
1085
|
constructor(t: any, e: any);
|
|
1001
|
-
|
|
1002
|
-
|
|
1086
|
+
gt: any;
|
|
1087
|
+
Et: any;
|
|
1003
1088
|
type: string;
|
|
1004
|
-
_apply(t: any):
|
|
1089
|
+
_apply(t: any): bn;
|
|
1005
1090
|
}
|
|
1006
|
-
declare class
|
|
1007
|
-
_toFieldTransform(t: any):
|
|
1091
|
+
declare class Bn extends $n {
|
|
1092
|
+
_toFieldTransform(t: any): Pe;
|
|
1008
1093
|
isEqual(t: any): boolean;
|
|
1009
1094
|
}
|
|
1010
|
-
declare class
|
|
1095
|
+
declare class gr extends hr {
|
|
1011
1096
|
constructor(t: any, e: any, n: any);
|
|
1012
1097
|
type: any;
|
|
1013
|
-
It: any;
|
|
1014
1098
|
At: any;
|
|
1015
|
-
|
|
1099
|
+
Rt: any;
|
|
1100
|
+
_apply(t: any): bn;
|
|
1016
1101
|
}
|
|
1017
|
-
declare class
|
|
1102
|
+
declare class fr extends hr {
|
|
1018
1103
|
constructor(t: any, e: any, n: any);
|
|
1019
|
-
_t: any;
|
|
1020
1104
|
gt: any;
|
|
1021
1105
|
vt: any;
|
|
1106
|
+
bt: any;
|
|
1022
1107
|
type: string;
|
|
1023
|
-
_apply(t: any):
|
|
1108
|
+
_apply(t: any): bn;
|
|
1024
1109
|
}
|
|
1025
1110
|
/**
|
|
1026
1111
|
* Path represents an ordered sequence of string segments.
|
|
1027
1112
|
*/
|
|
1028
|
-
declare class
|
|
1113
|
+
declare class Z {
|
|
1029
1114
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
1030
1115
|
constructor(t: any, e: any, n: any);
|
|
1031
1116
|
segments: any;
|
|
@@ -1046,7 +1131,7 @@ declare class J {
|
|
|
1046
1131
|
forEach(t: any): void;
|
|
1047
1132
|
toArray(): any;
|
|
1048
1133
|
}
|
|
1049
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1134
|
+
/** A "context" object passed around while parsing user data. */ declare class kn {
|
|
1050
1135
|
/**
|
|
1051
1136
|
* Initializes a ParseContext with the given source and path.
|
|
1052
1137
|
*
|
|
@@ -1068,20 +1153,20 @@ declare class J {
|
|
|
1068
1153
|
constructor(t: any, e: any, n: any, r: any, s: any, i: any);
|
|
1069
1154
|
settings: any;
|
|
1070
1155
|
databaseId: any;
|
|
1071
|
-
|
|
1156
|
+
L: any;
|
|
1072
1157
|
ignoreUndefinedProperties: any;
|
|
1073
1158
|
fieldTransforms: any;
|
|
1074
1159
|
fieldMask: any;
|
|
1075
1160
|
get path(): any;
|
|
1076
|
-
get
|
|
1077
|
-
/** Returns a new context with the specified settings overwritten. */
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1161
|
+
get st(): any;
|
|
1162
|
+
/** Returns a new context with the specified settings overwritten. */ it(t: any): kn;
|
|
1163
|
+
ot(t: any): kn;
|
|
1164
|
+
at(t: any): kn;
|
|
1165
|
+
ht(t: any): kn;
|
|
1166
|
+
lt(t: any): U;
|
|
1082
1167
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1083
|
-
|
|
1084
|
-
|
|
1168
|
+
rt(): void;
|
|
1169
|
+
ct(t: any): void;
|
|
1085
1170
|
}
|
|
1086
1171
|
/**
|
|
1087
1172
|
* @license
|
|
@@ -1099,9 +1184,9 @@ declare class J {
|
|
|
1099
1184
|
* See the License for the specific language governing permissions and
|
|
1100
1185
|
* limitations under the License.
|
|
1101
1186
|
*/
|
|
1102
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1187
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class Pe {
|
|
1103
1188
|
constructor(t: any, e: any);
|
|
1104
1189
|
field: any;
|
|
1105
1190
|
transform: any;
|
|
1106
1191
|
}
|
|
1107
|
-
export {
|
|
1192
|
+
export { yn as AggregateField, _n as AggregateQuerySnapshot, Vn as Bytes, En as CollectionReference, vn as DocumentReference, ir as DocumentSnapshot, Nn as FieldPath, $n as FieldValue, fn as Firestore, U as FirestoreError, xn as GeoPoint, bn as Query, hr as QueryConstraint, or as QueryDocumentSnapshot, ur as QuerySnapshot, bt as Timestamp, Zr as Transaction, Qr as WriteBatch, Or as addDoc, Cr as aggregateQuerySnapshotEqual, jr as arrayRemove, Ur as arrayUnion, In as collection, Tn as collectionGroup, mn as connectFirestoreEmulator, qr as deleteDoc, Lr as deleteField, An as doc, Dn as documentId, Tr as endAt, Ir as endBefore, kr as getCount, $r as getDoc, xr as getDocs, wn as getFirestore, Br as increment, dn as initializeFirestore, yr as limit, _r as limitToLast, mr as orderBy, lr as query, Pn as queryEqual, Rn as refEqual, ts as runTransaction, Mr as serverTimestamp, Fr as setDoc, p as setLogLevel, cr as snapshotEqual, br as startAfter, vr as startAt, pn as terminate, Sr as updateDoc, dr as where, Gr as writeBatch };
|