@firebase/firestore 3.4.9 → 3.4.10-canary.8e952e2ee
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 +14 -0
- package/dist/firestore/src/api/transaction.d.ts +2 -0
- package/dist/firestore/src/core/component_provider.d.ts +11 -6
- package/dist/firestore/src/lite-api/transaction.d.ts +2 -0
- package/dist/firestore/src/local/document_overlay_cache.d.ts +5 -0
- package/dist/firestore/src/local/index_backfiller.d.ts +44 -0
- package/dist/firestore/src/local/index_manager.d.ts +2 -0
- package/dist/firestore/src/local/indexeddb_document_overlay_cache.d.ts +1 -0
- package/dist/firestore/src/local/indexeddb_index_manager.d.ts +1 -0
- package/dist/firestore/src/local/indexeddb_schema.d.ts +3 -2
- package/dist/firestore/src/local/indexeddb_schema_converter.d.ts +1 -0
- package/dist/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
- package/dist/firestore/src/local/local_documents_view.d.ts +64 -9
- package/dist/firestore/src/local/local_store.d.ts +9 -0
- package/dist/firestore/src/local/lru_garbage_collector_impl.d.ts +5 -5
- package/dist/firestore/src/local/memory_document_overlay_cache.d.ts +1 -0
- package/dist/firestore/src/local/memory_index_manager.d.ts +1 -0
- package/dist/firestore/src/local/overlayed_document.d.ts +36 -0
- package/dist/firestore/src/local/persistence.d.ts +3 -5
- package/dist/firestore/src/local/persistence_promise.d.ts +11 -0
- package/dist/firestore/src/local/query_engine.d.ts +1 -1
- package/dist/firestore/src/model/collections.d.ts +8 -2
- package/dist/firestore/src/model/field_mask.d.ts +6 -0
- package/dist/firestore/src/model/mutation.d.ts +19 -1
- package/dist/firestore/src/model/mutation_batch.d.ts +8 -4
- package/dist/firestore/src/tsdoc-metadata.json +11 -11
- package/dist/firestore/src/util/async_queue.d.ts +5 -1
- package/dist/firestore/test/unit/local/index_backfiller.test.d.ts +17 -0
- package/dist/firestore/test/unit/local/test_document_overlay_cache.d.ts +1 -0
- package/dist/firestore/test/unit/specs/spec_test_components.d.ts +5 -3
- package/dist/firestore/test/util/helpers.d.ts +13 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.esm2017.js +10698 -10303
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +10986 -10471
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +6349 -5731
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +6349 -5731
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +10687 -10291
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +6137 -5964
- package/dist/lite/firestore/src/api/transaction.d.ts +2 -0
- package/dist/lite/firestore/src/core/component_provider.d.ts +11 -6
- package/dist/lite/firestore/src/lite-api/transaction.d.ts +2 -0
- package/dist/lite/firestore/src/local/document_overlay_cache.d.ts +5 -0
- package/dist/lite/firestore/src/local/index_backfiller.d.ts +44 -0
- package/dist/lite/firestore/src/local/index_manager.d.ts +2 -0
- package/dist/lite/firestore/src/local/indexeddb_document_overlay_cache.d.ts +1 -0
- package/dist/lite/firestore/src/local/indexeddb_index_manager.d.ts +1 -0
- package/dist/lite/firestore/src/local/indexeddb_schema.d.ts +3 -2
- package/dist/lite/firestore/src/local/indexeddb_schema_converter.d.ts +1 -0
- package/dist/lite/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
- package/dist/lite/firestore/src/local/local_documents_view.d.ts +64 -9
- package/dist/lite/firestore/src/local/local_store.d.ts +9 -0
- package/dist/lite/firestore/src/local/lru_garbage_collector_impl.d.ts +5 -5
- package/dist/lite/firestore/src/local/memory_document_overlay_cache.d.ts +1 -0
- package/dist/lite/firestore/src/local/memory_index_manager.d.ts +1 -0
- package/dist/lite/firestore/src/local/overlayed_document.d.ts +36 -0
- package/dist/lite/firestore/src/local/persistence.d.ts +3 -5
- package/dist/lite/firestore/src/local/persistence_promise.d.ts +11 -0
- package/dist/lite/firestore/src/local/query_engine.d.ts +1 -1
- package/dist/lite/firestore/src/model/collections.d.ts +8 -2
- package/dist/lite/firestore/src/model/field_mask.d.ts +6 -0
- package/dist/lite/firestore/src/model/mutation.d.ts +19 -1
- package/dist/lite/firestore/src/model/mutation_batch.d.ts +8 -4
- package/dist/lite/firestore/src/util/async_queue.d.ts +5 -1
- package/dist/lite/firestore/test/unit/local/index_backfiller.test.d.ts +17 -0
- package/dist/lite/firestore/test/unit/local/test_document_overlay_cache.d.ts +1 -0
- package/dist/lite/firestore/test/unit/specs/spec_test_components.d.ts +5 -3
- package/dist/lite/firestore/test/util/helpers.d.ts +13 -0
- package/dist/lite/index.browser.esm2017.js +1220 -738
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +1156 -764
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.d.ts +2 -0
- package/dist/lite/index.node.cjs.js +655 -2
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +655 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +1184 -702
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +2916 -2898
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +106 -104
- package/dist/lite/packages/firestore/src/api/transaction.d.ts +2 -0
- package/dist/lite/packages/firestore/src/core/component_provider.d.ts +11 -6
- package/dist/lite/packages/firestore/src/lite-api/transaction.d.ts +2 -0
- package/dist/lite/packages/firestore/src/local/document_overlay_cache.d.ts +5 -0
- package/dist/lite/packages/firestore/src/local/index_backfiller.d.ts +44 -0
- package/dist/lite/packages/firestore/src/local/index_manager.d.ts +2 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_document_overlay_cache.d.ts +1 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_index_manager.d.ts +1 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_schema.d.ts +3 -2
- package/dist/lite/packages/firestore/src/local/indexeddb_schema_converter.d.ts +1 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
- package/dist/lite/packages/firestore/src/local/local_documents_view.d.ts +64 -9
- package/dist/lite/packages/firestore/src/local/local_store.d.ts +9 -0
- package/dist/lite/packages/firestore/src/local/lru_garbage_collector_impl.d.ts +5 -5
- package/dist/lite/packages/firestore/src/local/memory_document_overlay_cache.d.ts +1 -0
- package/dist/lite/packages/firestore/src/local/memory_index_manager.d.ts +1 -0
- package/dist/lite/packages/firestore/src/local/overlayed_document.d.ts +36 -0
- package/dist/lite/packages/firestore/src/local/persistence.d.ts +3 -5
- package/dist/lite/packages/firestore/src/local/persistence_promise.d.ts +11 -0
- package/dist/lite/packages/firestore/src/local/query_engine.d.ts +1 -1
- package/dist/lite/packages/firestore/src/model/collections.d.ts +8 -2
- package/dist/lite/packages/firestore/src/model/field_mask.d.ts +6 -0
- package/dist/lite/packages/firestore/src/model/mutation.d.ts +19 -1
- package/dist/lite/packages/firestore/src/model/mutation_batch.d.ts +8 -4
- package/dist/lite/packages/firestore/src/util/async_queue.d.ts +5 -1
- package/dist/lite/packages/firestore/test/unit/local/index_backfiller.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/unit/local/test_document_overlay_cache.d.ts +1 -0
- package/dist/lite/packages/firestore/test/unit/specs/spec_test_components.d.ts +5 -3
- package/dist/lite/packages/firestore/test/util/helpers.d.ts +13 -0
- package/dist/lite/private.d.ts +2776 -2758
- package/dist/packages/firestore/dist/index.esm2017.d.ts +203 -201
- package/dist/packages/firestore/src/api/transaction.d.ts +2 -0
- package/dist/packages/firestore/src/core/component_provider.d.ts +11 -6
- package/dist/packages/firestore/src/lite-api/transaction.d.ts +2 -0
- package/dist/packages/firestore/src/local/document_overlay_cache.d.ts +5 -0
- package/dist/packages/firestore/src/local/index_backfiller.d.ts +44 -0
- package/dist/packages/firestore/src/local/index_manager.d.ts +2 -0
- package/dist/packages/firestore/src/local/indexeddb_document_overlay_cache.d.ts +1 -0
- package/dist/packages/firestore/src/local/indexeddb_index_manager.d.ts +1 -0
- package/dist/packages/firestore/src/local/indexeddb_schema.d.ts +3 -2
- package/dist/packages/firestore/src/local/indexeddb_schema_converter.d.ts +1 -0
- package/dist/packages/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
- package/dist/packages/firestore/src/local/local_documents_view.d.ts +64 -9
- package/dist/packages/firestore/src/local/local_store.d.ts +9 -0
- package/dist/packages/firestore/src/local/lru_garbage_collector_impl.d.ts +5 -5
- package/dist/packages/firestore/src/local/memory_document_overlay_cache.d.ts +1 -0
- package/dist/packages/firestore/src/local/memory_index_manager.d.ts +1 -0
- package/dist/packages/firestore/src/local/overlayed_document.d.ts +36 -0
- package/dist/packages/firestore/src/local/persistence.d.ts +3 -5
- package/dist/packages/firestore/src/local/persistence_promise.d.ts +11 -0
- package/dist/packages/firestore/src/local/query_engine.d.ts +1 -1
- package/dist/packages/firestore/src/model/collections.d.ts +8 -2
- package/dist/packages/firestore/src/model/field_mask.d.ts +6 -0
- package/dist/packages/firestore/src/model/mutation.d.ts +19 -1
- package/dist/packages/firestore/src/model/mutation_batch.d.ts +8 -4
- package/dist/packages/firestore/src/util/async_queue.d.ts +5 -1
- package/dist/packages/firestore/test/unit/local/index_backfiller.test.d.ts +17 -0
- package/dist/packages/firestore/test/unit/local/test_document_overlay_cache.d.ts +1 -0
- package/dist/packages/firestore/test/unit/specs/spec_test_components.d.ts +5 -3
- package/dist/packages/firestore/test/util/helpers.d.ts +13 -0
- package/dist/private.d.ts +5845 -5672
- package/package.json +19 -17
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
18
|
* An immutable object representing an array of bytes.
|
|
19
|
-
*/ declare class
|
|
19
|
+
*/ declare class In {
|
|
20
20
|
/**
|
|
21
21
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
22
22
|
* bytes.
|
|
23
23
|
*
|
|
24
24
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
25
|
-
*/ static fromBase64String(t: any):
|
|
25
|
+
*/ static fromBase64String(t: any): In;
|
|
26
26
|
/**
|
|
27
27
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
28
28
|
*
|
|
29
29
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
30
|
-
*/ static fromUint8Array(t: any):
|
|
30
|
+
*/ static fromUint8Array(t: any): In;
|
|
31
31
|
/** @hideconstructor */
|
|
32
32
|
constructor(t: any);
|
|
33
33
|
_byteString: any;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
/**
|
|
57
57
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
58
58
|
* document references, and querying for documents (using {@link query}).
|
|
59
|
-
*/ declare class
|
|
59
|
+
*/ declare class pn extends mn {
|
|
60
60
|
_path: any;
|
|
61
61
|
/** The collection's identifier. */ get id(): any;
|
|
62
62
|
/**
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
/**
|
|
67
67
|
* A reference to the containing `DocumentReference` if this is a
|
|
68
68
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
69
|
-
*/ get parent():
|
|
69
|
+
*/ get parent(): wn | null;
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
* and can be used to write, read, or listen to the location. The document at
|
|
106
106
|
* the referenced location may or may not exist.
|
|
107
107
|
*/
|
|
108
|
-
declare class
|
|
108
|
+
declare class wn {
|
|
109
109
|
/** @hideconstructor */
|
|
110
110
|
constructor(t: any, e: any, n: any);
|
|
111
111
|
converter: any;
|
|
@@ -123,8 +123,8 @@ declare class an {
|
|
|
123
123
|
*/ get path(): any;
|
|
124
124
|
/**
|
|
125
125
|
* The collection this `DocumentReference` belongs to.
|
|
126
|
-
*/ get parent():
|
|
127
|
-
withConverter(t: any):
|
|
126
|
+
*/ get parent(): pn;
|
|
127
|
+
withConverter(t: any): wn;
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
130
|
* @license
|
|
@@ -150,7 +150,7 @@ declare class an {
|
|
|
150
150
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
151
151
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
152
152
|
* explicitly verify a document's existence.
|
|
153
|
-
*/ declare class
|
|
153
|
+
*/ declare class Zn {
|
|
154
154
|
/** @hideconstructor protected */
|
|
155
155
|
constructor(t: any, e: any, n: any, r: any, s: any);
|
|
156
156
|
_firestore: any;
|
|
@@ -161,7 +161,7 @@ declare class an {
|
|
|
161
161
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
162
162
|
/**
|
|
163
163
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
164
|
-
*/ get ref():
|
|
164
|
+
*/ get ref(): wn;
|
|
165
165
|
/**
|
|
166
166
|
* Signals whether or not the document at the snapshot's location exists.
|
|
167
167
|
*
|
|
@@ -208,7 +208,7 @@ declare class an {
|
|
|
208
208
|
*
|
|
209
209
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
210
210
|
* name is provided, the path will point to a nested field in a document.
|
|
211
|
-
*/ declare class
|
|
211
|
+
*/ declare class En {
|
|
212
212
|
/**
|
|
213
213
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
214
214
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -243,7 +243,7 @@ declare class an {
|
|
|
243
243
|
/**
|
|
244
244
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
245
245
|
* or `update()`.
|
|
246
|
-
*/ declare class
|
|
246
|
+
*/ declare class An {
|
|
247
247
|
/**
|
|
248
248
|
* @param _methodName - The public API endpoint that returns this class.
|
|
249
249
|
* @hideconstructor
|
|
@@ -271,7 +271,7 @@ declare class an {
|
|
|
271
271
|
* The Cloud Firestore service interface.
|
|
272
272
|
*
|
|
273
273
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
274
|
-
*/ declare class
|
|
274
|
+
*/ declare class an {
|
|
275
275
|
/** @hideconstructor */
|
|
276
276
|
constructor(t: any, e: any, n: any);
|
|
277
277
|
_authCredentials: any;
|
|
@@ -281,9 +281,9 @@ declare class an {
|
|
|
281
281
|
*/
|
|
282
282
|
type: string;
|
|
283
283
|
_persistenceKey: string;
|
|
284
|
-
_settings:
|
|
284
|
+
_settings: cn;
|
|
285
285
|
_settingsFrozen: boolean;
|
|
286
|
-
_databaseId:
|
|
286
|
+
_databaseId: H;
|
|
287
287
|
_app: any;
|
|
288
288
|
/**
|
|
289
289
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -292,14 +292,14 @@ declare class an {
|
|
|
292
292
|
get _initialized(): boolean;
|
|
293
293
|
get _terminated(): boolean;
|
|
294
294
|
_setSettings(t: any): void;
|
|
295
|
-
_getSettings():
|
|
296
|
-
_freezeSettings():
|
|
295
|
+
_getSettings(): cn;
|
|
296
|
+
_freezeSettings(): cn;
|
|
297
297
|
_delete(): Promise<void>;
|
|
298
298
|
_terminateTask: Promise<void> | undefined;
|
|
299
299
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
300
300
|
app: any;
|
|
301
|
-
databaseId:
|
|
302
|
-
settings:
|
|
301
|
+
databaseId: H;
|
|
302
|
+
settings: cn;
|
|
303
303
|
};
|
|
304
304
|
/**
|
|
305
305
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -309,7 +309,7 @@ declare class an {
|
|
|
309
309
|
* Only ever called once.
|
|
310
310
|
*/ _terminate(): Promise<void>;
|
|
311
311
|
}
|
|
312
|
-
/** An error returned by a Firestore operation. */ declare class
|
|
312
|
+
/** An error returned by a Firestore operation. */ declare class L extends c {
|
|
313
313
|
/** @hideconstructor */
|
|
314
314
|
constructor(t: any, e: any);
|
|
315
315
|
}
|
|
@@ -335,7 +335,7 @@ declare class an {
|
|
|
335
335
|
*
|
|
336
336
|
* Latitude values are in the range of [-90, 90].
|
|
337
337
|
* Longitude values are in the range of [-180, 180].
|
|
338
|
-
*/ declare class
|
|
338
|
+
*/ declare class Rn {
|
|
339
339
|
/**
|
|
340
340
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
341
341
|
* longitude values.
|
|
@@ -369,7 +369,7 @@ declare class an {
|
|
|
369
369
|
/**
|
|
370
370
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
371
371
|
* construct refined `Query` objects by adding filters and ordering.
|
|
372
|
-
*/ declare class
|
|
372
|
+
*/ declare class mn {
|
|
373
373
|
/** @hideconstructor protected */
|
|
374
374
|
constructor(t: any, e: any, n: any);
|
|
375
375
|
converter: any;
|
|
@@ -377,7 +377,7 @@ declare class an {
|
|
|
377
377
|
/** The type of this Firestore reference. */
|
|
378
378
|
type: string;
|
|
379
379
|
firestore: any;
|
|
380
|
-
withConverter(t: any):
|
|
380
|
+
withConverter(t: any): mn;
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
383
383
|
* @license
|
|
@@ -403,7 +403,7 @@ declare class an {
|
|
|
403
403
|
* can then be passed to {@link query} to create a new query instance that
|
|
404
404
|
* also contains this `QueryConstraint`.
|
|
405
405
|
*/
|
|
406
|
-
declare class
|
|
406
|
+
declare class sr {
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
409
409
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -415,7 +415,7 @@ declare class Zn {
|
|
|
415
415
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
416
416
|
* `exists` property will always be true and `data()` will never return
|
|
417
417
|
* 'undefined'.
|
|
418
|
-
*/ declare class
|
|
418
|
+
*/ declare class tr extends Zn {
|
|
419
419
|
}
|
|
420
420
|
/**
|
|
421
421
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -423,7 +423,7 @@ declare class Zn {
|
|
|
423
423
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
424
424
|
* number of documents can be determined via the `empty` and `size`
|
|
425
425
|
* properties.
|
|
426
|
-
*/ declare class
|
|
426
|
+
*/ declare class er {
|
|
427
427
|
/** @hideconstructor */
|
|
428
428
|
constructor(t: any, e: any);
|
|
429
429
|
_docs: any;
|
|
@@ -536,26 +536,26 @@ declare class gt {
|
|
|
536
536
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
537
537
|
*/ valueOf(): string;
|
|
538
538
|
}
|
|
539
|
-
declare class
|
|
539
|
+
declare class Gr {
|
|
540
540
|
/** @hideconstructor */
|
|
541
541
|
constructor(t: any, e: any);
|
|
542
542
|
_firestore: any;
|
|
543
543
|
_transaction: any;
|
|
544
|
-
_dataReader:
|
|
544
|
+
_dataReader: xn;
|
|
545
545
|
/**
|
|
546
546
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
547
547
|
*
|
|
548
548
|
* @param documentRef - A reference to the document to be read.
|
|
549
549
|
* @returns A `DocumentSnapshot` with the read data.
|
|
550
550
|
*/ get(t: any): any;
|
|
551
|
-
set(t: any, e: any, n: any):
|
|
552
|
-
update(t: any, e: any, n: any, ...r: any[]):
|
|
551
|
+
set(t: any, e: any, n: any): Gr;
|
|
552
|
+
update(t: any, e: any, n: any, ...r: any[]): Gr;
|
|
553
553
|
/**
|
|
554
554
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
555
555
|
*
|
|
556
556
|
* @param documentRef - A reference to the document to be deleted.
|
|
557
557
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
558
|
-
*/ delete(t: any):
|
|
558
|
+
*/ delete(t: any): Gr;
|
|
559
559
|
}
|
|
560
560
|
/**
|
|
561
561
|
* @license
|
|
@@ -580,22 +580,22 @@ declare class kr {
|
|
|
580
580
|
* provides methods for adding writes to the write batch. None of the writes
|
|
581
581
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
582
582
|
* called.
|
|
583
|
-
*/ declare class
|
|
583
|
+
*/ declare class Or {
|
|
584
584
|
/** @hideconstructor */
|
|
585
585
|
constructor(t: any, e: any);
|
|
586
586
|
_firestore: any;
|
|
587
587
|
_commitHandler: any;
|
|
588
588
|
_mutations: any[];
|
|
589
589
|
_committed: boolean;
|
|
590
|
-
_dataReader:
|
|
591
|
-
set(t: any, e: any, n: any):
|
|
592
|
-
update(t: any, e: any, n: any, ...r: any[]):
|
|
590
|
+
_dataReader: xn;
|
|
591
|
+
set(t: any, e: any, n: any): Or;
|
|
592
|
+
update(t: any, e: any, n: any, ...r: any[]): Or;
|
|
593
593
|
/**
|
|
594
594
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
595
595
|
*
|
|
596
596
|
* @param documentRef - A reference to the document to be deleted.
|
|
597
597
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
598
|
-
*/ delete(t: any):
|
|
598
|
+
*/ delete(t: any): Or;
|
|
599
599
|
/**
|
|
600
600
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
601
601
|
*
|
|
@@ -624,7 +624,7 @@ declare class kr {
|
|
|
624
624
|
* @throws Error - If the provided input is not a valid Firestore document.
|
|
625
625
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
626
626
|
* newly created document after it has been written to the backend.
|
|
627
|
-
*/ declare function
|
|
627
|
+
*/ declare function Dr(t: any, e: any): Promise<wn>;
|
|
628
628
|
/**
|
|
629
629
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
630
630
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -635,7 +635,7 @@ declare class kr {
|
|
|
635
635
|
* @param elements - The elements to remove from the array.
|
|
636
636
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
637
637
|
* `updateDoc()`
|
|
638
|
-
*/ declare function
|
|
638
|
+
*/ declare function Sr(...t: any[]): Ln;
|
|
639
639
|
/**
|
|
640
640
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
641
641
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -647,8 +647,8 @@ declare class kr {
|
|
|
647
647
|
* @param elements - The elements to union into the array.
|
|
648
648
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
649
649
|
* `updateDoc()`.
|
|
650
|
-
*/ declare function
|
|
651
|
-
declare function
|
|
650
|
+
*/ declare function Fr(...t: any[]): Cn;
|
|
651
|
+
declare function yn(t: any, e: any, ...n: any[]): pn;
|
|
652
652
|
/**
|
|
653
653
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
654
654
|
* database that are contained in a collection or subcollection with the
|
|
@@ -659,7 +659,7 @@ declare function fn(t: any, e: any, ...n: any[]): ln;
|
|
|
659
659
|
* collection or subcollection with this ID as the last segment of its path
|
|
660
660
|
* will be included. Cannot contain a slash.
|
|
661
661
|
* @returns The created `Query`.
|
|
662
|
-
*/ declare function
|
|
662
|
+
*/ declare function _n(t: any, e: any): mn;
|
|
663
663
|
/**
|
|
664
664
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
665
665
|
*
|
|
@@ -672,7 +672,7 @@ declare function fn(t: any, e: any, ...n: any[]): ln;
|
|
|
672
672
|
* @param port - the emulator port (ex: 9000).
|
|
673
673
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
674
674
|
* Security Rules.
|
|
675
|
-
*/ declare function
|
|
675
|
+
*/ declare function fn(t: any, e: any, n: any, r?: {}): void;
|
|
676
676
|
/**
|
|
677
677
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
678
678
|
*
|
|
@@ -684,7 +684,7 @@ declare function fn(t: any, e: any, ...n: any[]): ln;
|
|
|
684
684
|
* @param reference - A reference to the document to delete.
|
|
685
685
|
* @returns A `Promise` resolved once the document has been successfully
|
|
686
686
|
* deleted from the backend.
|
|
687
|
-
*/ declare function
|
|
687
|
+
*/ declare function Nr(t: any): Promise<void>;
|
|
688
688
|
/**
|
|
689
689
|
* @license
|
|
690
690
|
* Copyright 2020 Google LLC
|
|
@@ -704,14 +704,14 @@ declare function fn(t: any, e: any, ...n: any[]): ln;
|
|
|
704
704
|
/**
|
|
705
705
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
706
706
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
707
|
-
*/ declare function
|
|
708
|
-
declare function
|
|
707
|
+
*/ declare function $r(): qn;
|
|
708
|
+
declare function gn(t: any, e: any, ...n: any[]): wn;
|
|
709
709
|
/**
|
|
710
710
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
711
711
|
* It can be used in queries to sort or filter by the document ID.
|
|
712
|
-
*/ declare function
|
|
713
|
-
declare function
|
|
714
|
-
declare function
|
|
712
|
+
*/ declare function Tn(): En;
|
|
713
|
+
declare function _r(...t: any[]): pr;
|
|
714
|
+
declare function yr(...t: any[]): pr;
|
|
715
715
|
/**
|
|
716
716
|
* Reads the document referred to by the specified document reference.
|
|
717
717
|
*
|
|
@@ -724,7 +724,7 @@ declare function fr(...t: any[]): lr;
|
|
|
724
724
|
* @param reference - The reference of the document to fetch.
|
|
725
725
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the current
|
|
726
726
|
* document contents.
|
|
727
|
-
*/ declare function
|
|
727
|
+
*/ declare function Ar(t: any): Promise<Zn>;
|
|
728
728
|
/**
|
|
729
729
|
* Executes the query and returns the results as a {@link QuerySnapshot}.
|
|
730
730
|
*
|
|
@@ -736,7 +736,7 @@ declare function fr(...t: any[]): lr;
|
|
|
736
736
|
*
|
|
737
737
|
* @param query - The `Query` to execute.
|
|
738
738
|
* @returns A Promise that will be resolved with the results of the query.
|
|
739
|
-
*/ declare function
|
|
739
|
+
*/ declare function Rr(t: any): Promise<er>;
|
|
740
740
|
/**
|
|
741
741
|
* Returns the existing `Firestore` instance that is associated with the
|
|
742
742
|
* provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
|
|
@@ -745,7 +745,7 @@ declare function fr(...t: any[]): lr;
|
|
|
745
745
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned `Firestore`
|
|
746
746
|
* instance is associated with.
|
|
747
747
|
* @returns The `Firestore` instance of the provided app.
|
|
748
|
-
*/ declare function
|
|
748
|
+
*/ declare function ln(e?: import("@firebase/app").FirebaseApp): import("../../lite").Firestore;
|
|
749
749
|
/**
|
|
750
750
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
751
751
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -764,14 +764,14 @@ declare function fr(...t: any[]): lr;
|
|
|
764
764
|
* @param n - The value to increment by.
|
|
765
765
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
766
766
|
* `updateDoc()`
|
|
767
|
-
*/ declare function
|
|
768
|
-
declare function
|
|
767
|
+
*/ declare function qr(t: any): Mn;
|
|
768
|
+
declare function hn(t: any, e: any): import("../../lite").Firestore;
|
|
769
769
|
/**
|
|
770
770
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
771
771
|
*
|
|
772
772
|
* @param limit - The maximum number of items to return.
|
|
773
773
|
* @returns The created {@link Query}.
|
|
774
|
-
*/ declare function
|
|
774
|
+
*/ declare function lr(t: any): hr;
|
|
775
775
|
/**
|
|
776
776
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
777
777
|
*
|
|
@@ -780,7 +780,7 @@ declare function sn(t: any, e: any): import("../../lite").Firestore;
|
|
|
780
780
|
*
|
|
781
781
|
* @param limit - The maximum number of items to return.
|
|
782
782
|
* @returns The created {@link Query}.
|
|
783
|
-
*/ declare function
|
|
783
|
+
*/ declare function fr(t: any): hr;
|
|
784
784
|
/**
|
|
785
785
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
786
786
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -789,7 +789,7 @@ declare function sn(t: any, e: any): import("../../lite").Firestore;
|
|
|
789
789
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
790
790
|
* not specified, order will be ascending.
|
|
791
791
|
* @returns The created {@link Query}.
|
|
792
|
-
*/ declare function
|
|
792
|
+
*/ declare function ar(t: any, e?: string): cr;
|
|
793
793
|
/**
|
|
794
794
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
795
795
|
* additional query constraints.
|
|
@@ -798,7 +798,7 @@ declare function sn(t: any, e: any): import("../../lite").Firestore;
|
|
|
798
798
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
799
799
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
800
800
|
* existing or new constraints.
|
|
801
|
-
*/ declare function
|
|
801
|
+
*/ declare function ir(t: any, ...e: any[]): any;
|
|
802
802
|
/**
|
|
803
803
|
* Returns true if the provided queries point to the same collection and apply
|
|
804
804
|
* the same constraints.
|
|
@@ -807,7 +807,7 @@ declare function sn(t: any, e: any): import("../../lite").Firestore;
|
|
|
807
807
|
* @param right - A `Query` to compare.
|
|
808
808
|
* @returns true if the references point to the same location in the same
|
|
809
809
|
* Firestore database.
|
|
810
|
-
*/ declare function
|
|
810
|
+
*/ declare function bn(t: any, e: any): boolean;
|
|
811
811
|
/**
|
|
812
812
|
* Returns true if the provided references are equal.
|
|
813
813
|
*
|
|
@@ -815,7 +815,7 @@ declare function sn(t: any, e: any): import("../../lite").Firestore;
|
|
|
815
815
|
* @param right - A reference to compare.
|
|
816
816
|
* @returns true if the references point to the same location in the same
|
|
817
817
|
* Firestore database.
|
|
818
|
-
*/ declare function
|
|
818
|
+
*/ declare function vn(t: any, e: any): boolean;
|
|
819
819
|
/**
|
|
820
820
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
821
821
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -828,16 +828,18 @@ declare function sn(t: any, e: any): import("../../lite").Firestore;
|
|
|
828
828
|
* transaction against.
|
|
829
829
|
* @param updateFunction - The function to execute within the transaction
|
|
830
830
|
* context.
|
|
831
|
+
* @param options - An options object to configure maximum number of attempts to
|
|
832
|
+
* commit.
|
|
831
833
|
* @returns If the transaction completed successfully or was explicitly aborted
|
|
832
834
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
833
835
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
834
836
|
* rejected promise with the corresponding failure error is returned.
|
|
835
|
-
*/ declare function
|
|
837
|
+
*/ declare function Wr(t: any, e: any, n: any): Promise<any>;
|
|
836
838
|
/**
|
|
837
839
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
838
840
|
* include a server-generated timestamp in the written data.
|
|
839
|
-
*/ declare function
|
|
840
|
-
declare function
|
|
841
|
+
*/ declare function xr(): kn;
|
|
842
|
+
declare function Pr(t: any, e: any, n: any): Promise<void>;
|
|
841
843
|
/**
|
|
842
844
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
843
845
|
*
|
|
@@ -857,9 +859,9 @@ declare function Er(t: any, e: any, n: any): Promise<void>;
|
|
|
857
859
|
* @param left - A snapshot to compare.
|
|
858
860
|
* @param right - A snapshot to compare.
|
|
859
861
|
* @returns true if the snapshots are equal.
|
|
860
|
-
*/ declare function
|
|
861
|
-
declare function
|
|
862
|
-
declare function
|
|
862
|
+
*/ declare function nr(t: any, e: any): any;
|
|
863
|
+
declare function mr(...t: any[]): dr;
|
|
864
|
+
declare function wr(...t: any[]): dr;
|
|
863
865
|
/**
|
|
864
866
|
* Terminates the provided `Firestore` instance.
|
|
865
867
|
*
|
|
@@ -879,8 +881,8 @@ declare function ar(...t: any[]): cr;
|
|
|
879
881
|
* @param firestore - The `Firestore` instance to terminate.
|
|
880
882
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
881
883
|
* terminated.
|
|
882
|
-
*/ declare function
|
|
883
|
-
declare function
|
|
884
|
+
*/ declare function dn(t: any): any;
|
|
885
|
+
declare function Vr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
884
886
|
/**
|
|
885
887
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
886
888
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -891,7 +893,7 @@ declare function Tr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
891
893
|
* "<=", "!=").
|
|
892
894
|
* @param value - The value for comparison
|
|
893
895
|
* @returns The created {@link Query}.
|
|
894
|
-
*/ declare function
|
|
896
|
+
*/ declare function ur(t: any, e: any, n: any): or;
|
|
895
897
|
/**
|
|
896
898
|
* Creates a write batch, used for performing multiple writes as a single
|
|
897
899
|
* atomic operation. The maximum number of writes allowed in a single WriteBatch
|
|
@@ -904,7 +906,7 @@ declare function Tr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
904
906
|
*
|
|
905
907
|
* @returns A `WriteBatch` that can be used to atomically execute multiple
|
|
906
908
|
* writes.
|
|
907
|
-
*/ declare function
|
|
909
|
+
*/ declare function Cr(t: any): Or;
|
|
908
910
|
/**
|
|
909
911
|
* A dot-separated path for navigating sub-objects within a document.
|
|
910
912
|
* @internal
|
|
@@ -943,7 +945,7 @@ declare function Tr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
|
|
|
943
945
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
944
946
|
* defaults can be supplied and the value can be checked for equality.
|
|
945
947
|
*/
|
|
946
|
-
declare class
|
|
948
|
+
declare class cn {
|
|
947
949
|
constructor(t: any);
|
|
948
950
|
host: any;
|
|
949
951
|
ssl: any;
|
|
@@ -960,8 +962,8 @@ declare class nn {
|
|
|
960
962
|
* Represents the database ID a Firestore client is associated with.
|
|
961
963
|
* @internal
|
|
962
964
|
*/
|
|
963
|
-
declare class
|
|
964
|
-
static empty():
|
|
965
|
+
declare class H {
|
|
966
|
+
static empty(): H;
|
|
965
967
|
constructor(t: any, e: any);
|
|
966
968
|
projectId: any;
|
|
967
969
|
database: any;
|
|
@@ -972,74 +974,74 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
|
|
|
972
974
|
/**
|
|
973
975
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
974
976
|
* classes.
|
|
975
|
-
*/ declare class
|
|
977
|
+
*/ declare class xn {
|
|
976
978
|
constructor(t: any, e: any, n: any);
|
|
977
979
|
databaseId: any;
|
|
978
980
|
ignoreUndefinedProperties: any;
|
|
979
981
|
q: any;
|
|
980
|
-
/** Creates a new top-level parse context. */ ht(t: any, e: any, n: any, r?: boolean):
|
|
982
|
+
/** Creates a new top-level parse context. */ ht(t: any, e: any, n: any, r?: boolean): $n;
|
|
981
983
|
}
|
|
982
|
-
declare class
|
|
984
|
+
declare class Ln extends An {
|
|
983
985
|
constructor(t: any, e: any);
|
|
984
986
|
lt: any;
|
|
985
|
-
_toFieldTransform(t: any):
|
|
987
|
+
_toFieldTransform(t: any): Ae;
|
|
986
988
|
isEqual(t: any): boolean;
|
|
987
989
|
}
|
|
988
|
-
declare class
|
|
990
|
+
declare class Cn extends An {
|
|
989
991
|
constructor(t: any, e: any);
|
|
990
992
|
lt: any;
|
|
991
|
-
_toFieldTransform(t: any):
|
|
993
|
+
_toFieldTransform(t: any): Ae;
|
|
992
994
|
isEqual(t: any): boolean;
|
|
993
995
|
}
|
|
994
|
-
declare class
|
|
996
|
+
declare class qn extends An {
|
|
995
997
|
_toFieldTransform(t: any): null;
|
|
996
998
|
isEqual(t: any): boolean;
|
|
997
999
|
}
|
|
998
|
-
declare class
|
|
1000
|
+
declare class pr extends sr {
|
|
999
1001
|
constructor(t: any, e: any, n: any);
|
|
1000
1002
|
type: any;
|
|
1001
|
-
|
|
1003
|
+
bt: any;
|
|
1002
1004
|
Et: any;
|
|
1003
|
-
_apply(t: any):
|
|
1005
|
+
_apply(t: any): mn;
|
|
1004
1006
|
}
|
|
1005
|
-
declare class
|
|
1007
|
+
declare class Mn extends An {
|
|
1006
1008
|
constructor(t: any, e: any);
|
|
1007
1009
|
ft: any;
|
|
1008
|
-
_toFieldTransform(t: any):
|
|
1010
|
+
_toFieldTransform(t: any): Ae;
|
|
1009
1011
|
isEqual(t: any): boolean;
|
|
1010
1012
|
}
|
|
1011
|
-
declare class
|
|
1013
|
+
declare class hr extends sr {
|
|
1012
1014
|
constructor(t: any, e: any, n: any);
|
|
1013
1015
|
type: any;
|
|
1014
1016
|
gt: any;
|
|
1015
|
-
|
|
1016
|
-
_apply(t: any):
|
|
1017
|
+
vt: any;
|
|
1018
|
+
_apply(t: any): mn;
|
|
1017
1019
|
}
|
|
1018
|
-
declare class
|
|
1020
|
+
declare class cr extends sr {
|
|
1019
1021
|
constructor(t: any, e: any);
|
|
1020
1022
|
dt: any;
|
|
1021
1023
|
_t: any;
|
|
1022
1024
|
type: string;
|
|
1023
|
-
_apply(t: any):
|
|
1025
|
+
_apply(t: any): mn;
|
|
1024
1026
|
}
|
|
1025
|
-
declare class
|
|
1026
|
-
_toFieldTransform(t: any):
|
|
1027
|
+
declare class kn extends An {
|
|
1028
|
+
_toFieldTransform(t: any): Ae;
|
|
1027
1029
|
isEqual(t: any): boolean;
|
|
1028
1030
|
}
|
|
1029
|
-
declare class
|
|
1031
|
+
declare class dr extends sr {
|
|
1030
1032
|
constructor(t: any, e: any, n: any);
|
|
1031
1033
|
type: any;
|
|
1032
|
-
|
|
1034
|
+
bt: any;
|
|
1033
1035
|
Et: any;
|
|
1034
|
-
_apply(t: any):
|
|
1036
|
+
_apply(t: any): mn;
|
|
1035
1037
|
}
|
|
1036
|
-
declare class
|
|
1038
|
+
declare class or extends sr {
|
|
1037
1039
|
constructor(t: any, e: any, n: any);
|
|
1038
1040
|
dt: any;
|
|
1039
1041
|
wt: any;
|
|
1040
1042
|
yt: any;
|
|
1041
1043
|
type: string;
|
|
1042
|
-
_apply(t: any):
|
|
1044
|
+
_apply(t: any): mn;
|
|
1043
1045
|
}
|
|
1044
1046
|
/**
|
|
1045
1047
|
* @license
|
|
@@ -1081,7 +1083,7 @@ declare class J {
|
|
|
1081
1083
|
forEach(t: any): void;
|
|
1082
1084
|
toArray(): any;
|
|
1083
1085
|
}
|
|
1084
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1086
|
+
/** A "context" object passed around while parsing user data. */ declare class $n {
|
|
1085
1087
|
/**
|
|
1086
1088
|
* Initializes a ParseContext with the given source and path.
|
|
1087
1089
|
*
|
|
@@ -1109,11 +1111,11 @@ declare class J {
|
|
|
1109
1111
|
fieldMask: any;
|
|
1110
1112
|
get path(): any;
|
|
1111
1113
|
get tt(): any;
|
|
1112
|
-
/** Returns a new context with the specified settings overwritten. */ et(t: any):
|
|
1113
|
-
nt(t: any):
|
|
1114
|
-
it(t: any):
|
|
1115
|
-
ot(t: any):
|
|
1116
|
-
ut(t: any):
|
|
1114
|
+
/** Returns a new context with the specified settings overwritten. */ et(t: any): $n;
|
|
1115
|
+
nt(t: any): $n;
|
|
1116
|
+
it(t: any): $n;
|
|
1117
|
+
ot(t: any): $n;
|
|
1118
|
+
ut(t: any): L;
|
|
1117
1119
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1118
1120
|
Z(): void;
|
|
1119
1121
|
st(t: any): void;
|
|
@@ -1134,9 +1136,9 @@ declare class J {
|
|
|
1134
1136
|
* See the License for the specific language governing permissions and
|
|
1135
1137
|
* limitations under the License.
|
|
1136
1138
|
*/
|
|
1137
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1139
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class Ae {
|
|
1138
1140
|
constructor(t: any, e: any);
|
|
1139
1141
|
field: any;
|
|
1140
1142
|
transform: any;
|
|
1141
1143
|
}
|
|
1142
|
-
export {
|
|
1144
|
+
export { In as Bytes, pn as CollectionReference, wn as DocumentReference, Zn as DocumentSnapshot, En as FieldPath, An as FieldValue, an as Firestore, L as FirestoreError, Rn as GeoPoint, mn as Query, sr as QueryConstraint, tr as QueryDocumentSnapshot, er as QuerySnapshot, gt as Timestamp, Gr as Transaction, Or as WriteBatch, Dr as addDoc, Sr as arrayRemove, Fr as arrayUnion, yn as collection, _n as collectionGroup, fn as connectFirestoreEmulator, Nr as deleteDoc, $r as deleteField, gn as doc, Tn as documentId, _r as endAt, yr as endBefore, Ar as getDoc, Rr as getDocs, ln as getFirestore, qr as increment, hn as initializeFirestore, lr as limit, fr as limitToLast, ar as orderBy, ir as query, bn as queryEqual, vn as refEqual, Wr as runTransaction, xr as serverTimestamp, Pr as setDoc, w as setLogLevel, nr as snapshotEqual, mr as startAfter, wr as startAt, dn as terminate, Vr as updateDoc, ur as where, Cr as writeBatch };
|
|
@@ -51,6 +51,8 @@ export declare class Transaction extends LiteTransaction {
|
|
|
51
51
|
* transaction against.
|
|
52
52
|
* @param updateFunction - The function to execute within the transaction
|
|
53
53
|
* context.
|
|
54
|
+
* @param options - An options object to configure maximum number of attempts to
|
|
55
|
+
* commit.
|
|
54
56
|
* @returns If the transaction completed successfully or was explicitly aborted
|
|
55
57
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
56
58
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|