@firebase/firestore 3.4.4-canary.f5ac47fb1 → 3.4.5

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.
Files changed (151) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/firestore/src/api/credentials.d.ts +1 -0
  3. package/dist/firestore/src/index/index_byte_encoder.d.ts +18 -1
  4. package/dist/firestore/src/index/index_entry.d.ts +26 -0
  5. package/dist/firestore/src/local/document_overlay_cache.d.ts +72 -0
  6. package/dist/firestore/src/local/indexeddb_document_overlay_cache.d.ts +45 -0
  7. package/dist/firestore/src/local/indexeddb_index_manager.d.ts +29 -2
  8. package/dist/firestore/src/local/indexeddb_persistence.d.ts +6 -4
  9. package/dist/firestore/src/local/indexeddb_remote_document_cache.d.ts +2 -8
  10. package/dist/firestore/src/local/indexeddb_schema.d.ts +83 -9
  11. package/dist/firestore/src/local/local_documents_view.d.ts +0 -1
  12. package/dist/firestore/src/local/local_serializer.d.ts +18 -2
  13. package/dist/firestore/src/local/memory_document_overlay_cache.d.ts +37 -0
  14. package/dist/firestore/src/local/memory_persistence.d.ts +6 -2
  15. package/dist/firestore/src/local/memory_remote_document_cache.d.ts +1 -3
  16. package/dist/firestore/src/local/persistence.d.ts +8 -2
  17. package/dist/firestore/src/local/remote_document_cache.d.ts +7 -9
  18. package/dist/firestore/src/model/document_key.d.ts +5 -0
  19. package/dist/firestore/src/model/field_index.d.ts +2 -2
  20. package/dist/firestore/src/model/overlay.d.ts +32 -0
  21. package/dist/firestore/src/model/target_index_matcher.d.ts +70 -0
  22. package/dist/firestore/src/platform/node/grpc_connection.d.ts +2 -2
  23. package/dist/firestore/src/platform/node/load_protos.d.ts +2 -2
  24. package/dist/firestore/src/util/sorted_set.d.ts +18 -0
  25. package/dist/firestore/test/unit/local/counting_query_engine.d.ts +3 -3
  26. package/dist/firestore/test/unit/local/document_overlay_cache.test.d.ts +1 -0
  27. package/dist/firestore/test/unit/local/persistence_test_helpers.d.ts +1 -0
  28. package/dist/firestore/test/unit/local/test_document_overlay_cache.d.ts +38 -0
  29. package/dist/firestore/test/unit/local/test_index_manager.d.ts +11 -0
  30. package/dist/firestore/test/unit/local/test_remote_document_cache.d.ts +4 -2
  31. package/dist/firestore/test/unit/local/test_remote_document_change_buffer.d.ts +1 -1
  32. package/dist/firestore/test/unit/model/target_index_matcher.test.d.ts +17 -0
  33. package/dist/index.esm2017.js +4367 -3517
  34. package/dist/index.esm2017.js.map +1 -1
  35. package/dist/index.esm5.js +4226 -3437
  36. package/dist/index.esm5.js.map +1 -1
  37. package/dist/index.node.cjs.js +1519 -242
  38. package/dist/index.node.cjs.js.map +1 -1
  39. package/dist/index.node.mjs +1501 -245
  40. package/dist/index.node.mjs.map +1 -1
  41. package/dist/index.rn.js +4355 -3509
  42. package/dist/index.rn.js.map +1 -1
  43. package/dist/internal.d.ts +84 -12
  44. package/dist/lite/firestore/src/api/credentials.d.ts +1 -0
  45. package/dist/lite/firestore/src/index/index_byte_encoder.d.ts +18 -1
  46. package/dist/lite/firestore/src/index/index_entry.d.ts +26 -0
  47. package/dist/lite/firestore/src/local/document_overlay_cache.d.ts +72 -0
  48. package/dist/lite/firestore/src/local/indexeddb_document_overlay_cache.d.ts +45 -0
  49. package/dist/lite/firestore/src/local/indexeddb_index_manager.d.ts +29 -2
  50. package/dist/lite/firestore/src/local/indexeddb_persistence.d.ts +6 -4
  51. package/dist/lite/firestore/src/local/indexeddb_remote_document_cache.d.ts +2 -8
  52. package/dist/lite/firestore/src/local/indexeddb_schema.d.ts +83 -9
  53. package/dist/lite/firestore/src/local/local_documents_view.d.ts +0 -1
  54. package/dist/lite/firestore/src/local/local_serializer.d.ts +18 -2
  55. package/dist/lite/firestore/src/local/memory_document_overlay_cache.d.ts +37 -0
  56. package/dist/lite/firestore/src/local/memory_persistence.d.ts +6 -2
  57. package/dist/lite/firestore/src/local/memory_remote_document_cache.d.ts +1 -3
  58. package/dist/lite/firestore/src/local/persistence.d.ts +8 -2
  59. package/dist/lite/firestore/src/local/remote_document_cache.d.ts +7 -9
  60. package/dist/lite/firestore/src/model/document_key.d.ts +5 -0
  61. package/dist/lite/firestore/src/model/field_index.d.ts +2 -2
  62. package/dist/lite/firestore/src/model/overlay.d.ts +32 -0
  63. package/dist/lite/firestore/src/model/target_index_matcher.d.ts +70 -0
  64. package/dist/lite/firestore/src/platform/node/grpc_connection.d.ts +2 -2
  65. package/dist/lite/firestore/src/platform/node/load_protos.d.ts +2 -2
  66. package/dist/lite/firestore/src/util/sorted_set.d.ts +18 -0
  67. package/dist/lite/firestore/test/unit/local/counting_query_engine.d.ts +3 -3
  68. package/dist/lite/firestore/test/unit/local/document_overlay_cache.test.d.ts +1 -0
  69. package/dist/lite/firestore/test/unit/local/persistence_test_helpers.d.ts +1 -0
  70. package/dist/lite/firestore/test/unit/local/test_document_overlay_cache.d.ts +38 -0
  71. package/dist/lite/firestore/test/unit/local/test_index_manager.d.ts +11 -0
  72. package/dist/lite/firestore/test/unit/local/test_remote_document_cache.d.ts +4 -2
  73. package/dist/lite/firestore/test/unit/local/test_remote_document_change_buffer.d.ts +1 -1
  74. package/dist/lite/firestore/test/unit/model/target_index_matcher.test.d.ts +17 -0
  75. package/dist/lite/index.browser.esm2017.js +1121 -1112
  76. package/dist/lite/index.browser.esm2017.js.map +1 -1
  77. package/dist/lite/index.browser.esm5.js +60 -48
  78. package/dist/lite/index.browser.esm5.js.map +1 -1
  79. package/dist/lite/index.node.cjs.js +13 -2
  80. package/dist/lite/index.node.cjs.js.map +1 -1
  81. package/dist/lite/index.node.mjs +13 -2
  82. package/dist/lite/index.node.mjs.map +1 -1
  83. package/dist/lite/index.rn.esm2017.js +46 -37
  84. package/dist/lite/index.rn.esm2017.js.map +1 -1
  85. package/dist/lite/internal.d.ts +5 -0
  86. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +112 -112
  87. package/dist/lite/packages/firestore/src/api/credentials.d.ts +1 -0
  88. package/dist/lite/packages/firestore/src/index/index_byte_encoder.d.ts +18 -1
  89. package/dist/lite/packages/firestore/src/index/index_entry.d.ts +26 -0
  90. package/dist/lite/packages/firestore/src/local/document_overlay_cache.d.ts +72 -0
  91. package/dist/lite/packages/firestore/src/local/indexeddb_document_overlay_cache.d.ts +45 -0
  92. package/dist/lite/packages/firestore/src/local/indexeddb_index_manager.d.ts +29 -2
  93. package/dist/lite/packages/firestore/src/local/indexeddb_persistence.d.ts +6 -4
  94. package/dist/lite/packages/firestore/src/local/indexeddb_remote_document_cache.d.ts +2 -8
  95. package/dist/lite/packages/firestore/src/local/indexeddb_schema.d.ts +83 -9
  96. package/dist/lite/packages/firestore/src/local/local_documents_view.d.ts +0 -1
  97. package/dist/lite/packages/firestore/src/local/local_serializer.d.ts +18 -2
  98. package/dist/lite/packages/firestore/src/local/memory_document_overlay_cache.d.ts +37 -0
  99. package/dist/lite/packages/firestore/src/local/memory_persistence.d.ts +6 -2
  100. package/dist/lite/packages/firestore/src/local/memory_remote_document_cache.d.ts +1 -3
  101. package/dist/lite/packages/firestore/src/local/persistence.d.ts +8 -2
  102. package/dist/lite/packages/firestore/src/local/remote_document_cache.d.ts +7 -9
  103. package/dist/lite/packages/firestore/src/model/document_key.d.ts +5 -0
  104. package/dist/lite/packages/firestore/src/model/field_index.d.ts +2 -2
  105. package/dist/lite/packages/firestore/src/model/overlay.d.ts +32 -0
  106. package/dist/lite/packages/firestore/src/model/target_index_matcher.d.ts +70 -0
  107. package/dist/lite/packages/firestore/src/platform/node/grpc_connection.d.ts +2 -2
  108. package/dist/lite/packages/firestore/src/platform/node/load_protos.d.ts +2 -2
  109. package/dist/lite/packages/firestore/src/util/sorted_set.d.ts +18 -0
  110. package/dist/lite/packages/firestore/test/unit/local/counting_query_engine.d.ts +3 -3
  111. package/dist/lite/packages/firestore/test/unit/local/document_overlay_cache.test.d.ts +1 -0
  112. package/dist/lite/packages/firestore/test/unit/local/persistence_test_helpers.d.ts +1 -0
  113. package/dist/lite/packages/firestore/test/unit/local/test_document_overlay_cache.d.ts +38 -0
  114. package/dist/lite/packages/firestore/test/unit/local/test_index_manager.d.ts +11 -0
  115. package/dist/lite/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +4 -2
  116. package/dist/lite/packages/firestore/test/unit/local/test_remote_document_change_buffer.d.ts +1 -1
  117. package/dist/lite/packages/firestore/test/unit/model/target_index_matcher.test.d.ts +17 -0
  118. package/dist/packages/firestore/dist/index.esm2017.d.ts +187 -184
  119. package/dist/packages/firestore/src/api/credentials.d.ts +1 -0
  120. package/dist/packages/firestore/src/index/index_byte_encoder.d.ts +18 -1
  121. package/dist/packages/firestore/src/index/index_entry.d.ts +26 -0
  122. package/dist/packages/firestore/src/local/document_overlay_cache.d.ts +72 -0
  123. package/dist/packages/firestore/src/local/indexeddb_document_overlay_cache.d.ts +45 -0
  124. package/dist/packages/firestore/src/local/indexeddb_index_manager.d.ts +29 -2
  125. package/dist/packages/firestore/src/local/indexeddb_persistence.d.ts +6 -4
  126. package/dist/packages/firestore/src/local/indexeddb_remote_document_cache.d.ts +2 -8
  127. package/dist/packages/firestore/src/local/indexeddb_schema.d.ts +83 -9
  128. package/dist/packages/firestore/src/local/local_documents_view.d.ts +0 -1
  129. package/dist/packages/firestore/src/local/local_serializer.d.ts +18 -2
  130. package/dist/packages/firestore/src/local/memory_document_overlay_cache.d.ts +37 -0
  131. package/dist/packages/firestore/src/local/memory_persistence.d.ts +6 -2
  132. package/dist/packages/firestore/src/local/memory_remote_document_cache.d.ts +1 -3
  133. package/dist/packages/firestore/src/local/persistence.d.ts +8 -2
  134. package/dist/packages/firestore/src/local/remote_document_cache.d.ts +7 -9
  135. package/dist/packages/firestore/src/model/document_key.d.ts +5 -0
  136. package/dist/packages/firestore/src/model/field_index.d.ts +2 -2
  137. package/dist/packages/firestore/src/model/overlay.d.ts +32 -0
  138. package/dist/packages/firestore/src/model/target_index_matcher.d.ts +70 -0
  139. package/dist/packages/firestore/src/platform/node/grpc_connection.d.ts +2 -2
  140. package/dist/packages/firestore/src/platform/node/load_protos.d.ts +2 -2
  141. package/dist/packages/firestore/src/util/sorted_set.d.ts +18 -0
  142. package/dist/packages/firestore/test/unit/local/counting_query_engine.d.ts +3 -3
  143. package/dist/packages/firestore/test/unit/local/document_overlay_cache.test.d.ts +1 -0
  144. package/dist/packages/firestore/test/unit/local/persistence_test_helpers.d.ts +1 -0
  145. package/dist/packages/firestore/test/unit/local/test_document_overlay_cache.d.ts +38 -0
  146. package/dist/packages/firestore/test/unit/local/test_index_manager.d.ts +11 -0
  147. package/dist/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +4 -2
  148. package/dist/packages/firestore/test/unit/local/test_remote_document_change_buffer.d.ts +1 -1
  149. package/dist/packages/firestore/test/unit/model/target_index_matcher.test.d.ts +17 -0
  150. package/dist/private.d.ts +79 -12
  151. package/package.json +9 -9
@@ -675,8 +675,13 @@ declare class DocumentKey {
675
675
  static fromPath(path: string): DocumentKey;
676
676
  static fromName(name: string): DocumentKey;
677
677
  static empty(): DocumentKey;
678
+ get collectionGroup(): string;
678
679
  /** Returns true if the document is in the specified collectionId. */
679
680
  hasCollectionId(collectionId: string): boolean;
681
+ /** Returns the collection group (i.e. the name of the parent collection) for this key. */
682
+ getCollectionGroup(): string;
683
+ /** Returns the fully qualified path to the parent collection. */
684
+ getCollectionPath(): ResourcePath;
680
685
  isEqual(other: DocumentKey | null): boolean;
681
686
  toString(): string;
682
687
  static comparator(k1: DocumentKey, k2: DocumentKey): number;
@@ -16,18 +16,18 @@
16
16
  */
17
17
  /**
18
18
  * An immutable object representing an array of bytes.
19
- */ declare class ge {
19
+ */ declare class gn {
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): ge;
25
+ */ static fromBase64String(t: any): gn;
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): ge;
30
+ */ static fromUint8Array(t: any): gn;
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 le extends he {
59
+ */ declare class ln extends hn {
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(): ae | null;
69
+ */ get parent(): an | null;
70
70
  }
71
71
  /**
72
72
  * @license
@@ -105,9 +105,9 @@
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 ae {
108
+ declare class an {
109
109
  /** @hideconstructor */
110
- constructor(t: any, n: any, e: any);
110
+ constructor(t: any, e: any, n: any);
111
111
  converter: any;
112
112
  _key: any;
113
113
  /** The type of this Firestore reference. */
@@ -123,8 +123,8 @@ declare class ae {
123
123
  */ get path(): any;
124
124
  /**
125
125
  * The collection this `DocumentReference` belongs to.
126
- */ get parent(): le;
127
- withConverter(t: any): ae;
126
+ */ get parent(): ln;
127
+ withConverter(t: any): an;
128
128
  }
129
129
  /**
130
130
  * @license
@@ -150,9 +150,9 @@ declare class ae {
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 Ye {
153
+ */ declare class Yn {
154
154
  /** @hideconstructor protected */
155
- constructor(t: any, n: any, e: any, r: any, s: any);
155
+ constructor(t: any, e: any, n: any, r: any, s: any);
156
156
  _firestore: any;
157
157
  _userDataWriter: any;
158
158
  _key: any;
@@ -161,7 +161,7 @@ declare class ae {
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(): ae;
164
+ */ get ref(): an;
165
165
  /**
166
166
  * Signals whether or not the document at the snapshot's location exists.
167
167
  *
@@ -208,7 +208,7 @@ declare class ae {
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 ye {
211
+ */ declare class yn {
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 ae {
243
243
  /**
244
244
  * Sentinel values that can be used when writing document fields with `set()`
245
245
  * or `update()`.
246
- */ declare class be {
246
+ */ declare class vn {
247
247
  /**
248
248
  * @param _methodName - The public API endpoint that returns this class.
249
249
  * @hideconstructor
@@ -271,9 +271,9 @@ declare class ae {
271
271
  * The Cloud Firestore service interface.
272
272
  *
273
273
  * Do not call this constructor directly. Instead, use {@link getFirestore}.
274
- */ declare class se {
274
+ */ declare class rn {
275
275
  /** @hideconstructor */
276
- constructor(t: any, n: any, e: any);
276
+ constructor(t: any, e: any, n: any);
277
277
  _authCredentials: any;
278
278
  _appCheckCredentials: any;
279
279
  /**
@@ -281,7 +281,7 @@ declare class ae {
281
281
  */
282
282
  type: string;
283
283
  _persistenceKey: string;
284
- _settings: re;
284
+ _settings: nn;
285
285
  _settingsFrozen: boolean;
286
286
  _databaseId: K;
287
287
  _app: any;
@@ -292,14 +292,14 @@ declare class ae {
292
292
  get _initialized(): boolean;
293
293
  get _terminated(): boolean;
294
294
  _setSettings(t: any): void;
295
- _getSettings(): re;
296
- _freezeSettings(): re;
295
+ _getSettings(): nn;
296
+ _freezeSettings(): nn;
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
301
  databaseId: K;
302
- settings: re;
302
+ settings: nn;
303
303
  };
304
304
  /**
305
305
  * Terminates all components used by this client. Subclasses can override
@@ -311,7 +311,7 @@ declare class ae {
311
311
  }
312
312
  /** An error returned by a Firestore operation. */ declare class U extends c {
313
313
  /** @hideconstructor */
314
- constructor(t: any, n: any);
314
+ constructor(t: any, e: any);
315
315
  }
316
316
  /**
317
317
  * @license
@@ -335,14 +335,14 @@ declare class ae {
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 ve {
338
+ */ declare class bn {
339
339
  /**
340
340
  * Creates a new immutable `GeoPoint` object with the provided latitude and
341
341
  * longitude values.
342
342
  * @param latitude - The latitude as number between -90 and 90.
343
343
  * @param longitude - The longitude as number between -180 and 180.
344
344
  */
345
- constructor(t: any, n: any);
345
+ constructor(t: any, e: any);
346
346
  _lat: any;
347
347
  _long: any;
348
348
  /**
@@ -369,15 +369,15 @@ declare class ae {
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 he {
372
+ */ declare class hn {
373
373
  /** @hideconstructor protected */
374
- constructor(t: any, n: any, e: any);
374
+ constructor(t: any, e: any, n: any);
375
375
  converter: any;
376
376
  _query: any;
377
377
  /** The type of this Firestore reference. */
378
378
  type: string;
379
379
  firestore: any;
380
- withConverter(t: any): he;
380
+ withConverter(t: any): hn;
381
381
  }
382
382
  /**
383
383
  * @license
@@ -403,7 +403,7 @@ declare class ae {
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 Ze {
406
+ declare class Zn {
407
407
  }
408
408
  /**
409
409
  * A `QueryDocumentSnapshot` contains data read from a document in your
@@ -415,7 +415,7 @@ declare class Ze {
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 He extends Ye {
418
+ */ declare class Hn extends Yn {
419
419
  }
420
420
  /**
421
421
  * A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
@@ -423,9 +423,9 @@ declare class Ze {
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 Ke {
426
+ */ declare class Kn {
427
427
  /** @hideconstructor */
428
- constructor(t: any, n: any);
428
+ constructor(t: any, e: any);
429
429
  _docs: any;
430
430
  query: any;
431
431
  /** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
@@ -437,7 +437,7 @@ declare class Ze {
437
437
  * @param callback - A callback to be called with a `QueryDocumentSnapshot` for
438
438
  * each document in the snapshot.
439
439
  * @param thisArg - The `this` binding for the callback.
440
- */ forEach(t: any, n: any): void;
440
+ */ forEach(t: any, e: any): void;
441
441
  }
442
442
  /**
443
443
  * @license
@@ -501,7 +501,7 @@ declare class gt {
501
501
  * non-negative nanoseconds values that count forward in time. Must be
502
502
  * from 0 to 999,999,999 inclusive.
503
503
  */
504
- constructor(t: any, n: any);
504
+ constructor(t: any, e: any);
505
505
  seconds: any;
506
506
  nanoseconds: any;
507
507
  /**
@@ -538,18 +538,18 @@ declare class gt {
538
538
  }
539
539
  declare class Ur {
540
540
  /** @hideconstructor */
541
- constructor(t: any, n: any);
541
+ constructor(t: any, e: any);
542
542
  _firestore: any;
543
543
  _transaction: any;
544
- _dataReader: Pe;
544
+ _dataReader: Pn;
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, n: any, e: any): Ur;
552
- update(t: any, n: any, e: any, ...r: any[]): Ur;
551
+ set(t: any, e: any, n: any): Ur;
552
+ update(t: any, e: any, n: any, ...r: any[]): Ur;
553
553
  /**
554
554
  * Deletes the document referred to by the provided {@link DocumentReference}.
555
555
  *
@@ -582,14 +582,14 @@ declare class Ur {
582
582
  * called.
583
583
  */ declare class $r {
584
584
  /** @hideconstructor */
585
- constructor(t: any, n: any);
585
+ constructor(t: any, e: any);
586
586
  _firestore: any;
587
587
  _commitHandler: any;
588
588
  _mutations: any[];
589
589
  _committed: boolean;
590
- _dataReader: Pe;
591
- set(t: any, n: any, e: any): $r;
592
- update(t: any, n: any, e: any, ...r: any[]): $r;
590
+ _dataReader: Pn;
591
+ set(t: any, e: any, n: any): $r;
592
+ update(t: any, e: any, n: any, ...r: any[]): $r;
593
593
  /**
594
594
  * Deletes the document referred to by the provided {@link DocumentReference}.
595
595
  *
@@ -624,7 +624,7 @@ declare class Ur {
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 Ar(t: any, n: any): Promise<ae>;
627
+ */ declare function Ar(t: any, e: any): Promise<an>;
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 Ur {
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 Dr(...t: any[]): xe;
638
+ */ declare function Dr(...t: any[]): xn;
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 Ur {
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 Vr(...t: any[]): Fe;
651
- declare function fe(t: any, n: any, ...e: any[]): le;
650
+ */ declare function Vr(...t: any[]): Fn;
651
+ declare function fn(t: any, e: any, ...n: any[]): ln;
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 fe(t: any, n: any, ...e: any[]): le;
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 de(t: any, n: any): he;
662
+ */ declare function dn(t: any, e: any): hn;
663
663
  /**
664
664
  * Modify this instance to communicate with the Cloud Firestore emulator.
665
665
  *
@@ -672,7 +672,7 @@ declare function fe(t: any, n: any, ...e: any[]): le;
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 ue(t: any, n: any, e: any, r?: {}): void;
675
+ */ declare function un(t: any, e: any, n: any, r?: {}): void;
676
676
  /**
677
677
  * Deletes the document referred to by the specified `DocumentReference`.
678
678
  *
@@ -704,12 +704,12 @@ declare function fe(t: any, n: any, ...e: any[]): le;
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 Rr(): Ne;
708
- declare function we(t: any, n: any, ...e: any[]): ae;
707
+ */ declare function Rr(): Nn;
708
+ declare function wn(t: any, e: any, ...n: any[]): an;
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 _e(): ye;
712
+ */ declare function _n(): yn;
713
713
  declare function dr(...t: any[]): lr;
714
714
  declare function fr(...t: any[]): lr;
715
715
  /**
@@ -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 br(t: any): Promise<Ye>;
727
+ */ declare function vr(t: any): Promise<Yn>;
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 vr(t: any): Promise<Ke>;
739
+ */ declare function br(t: any): Promise<Kn>;
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 oe(n?: import("@firebase/app").FirebaseApp): import("../../lite").Firestore;
748
+ */ declare function on(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,8 +764,8 @@ 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 Nr(t: any): qe;
768
- declare function ie(t: any, n: any): import("../../lite").Firestore;
767
+ */ declare function Nr(t: any): qn;
768
+ declare function sn(t: any, e: any): import("../../lite").Firestore;
769
769
  /**
770
770
  * Creates a {@link QueryConstraint} that only returns the first matching documents.
771
771
  *
@@ -789,7 +789,7 @@ declare function ie(t: any, n: 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 sr(t: any, n?: string): rr;
792
+ */ declare function sr(t: any, e?: string): rr;
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 ie(t: any, n: 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 tr(t: any, ...n: any[]): any;
801
+ */ declare function tr(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 ie(t: any, n: 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 pe(t: any, n: any): boolean;
810
+ */ declare function pn(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 ie(t: any, n: 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 me(t: any, n: any): boolean;
818
+ */ declare function mn(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
@@ -832,12 +832,12 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
832
832
  * (the `updateFunction` returned a failed promise), the promise returned by the
833
833
  * `updateFunction `is returned here. Otherwise, if the transaction failed, a
834
834
  * rejected promise with the corresponding failure error is returned.
835
- */ declare function kr(t: any, n: any): Promise<any>;
835
+ */ declare function kr(t: any, e: any): Promise<any>;
836
836
  /**
837
837
  * Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
838
838
  * include a server-generated timestamp in the written data.
839
- */ declare function Pr(): Se;
840
- declare function Er(t: any, n: any, e: any): Promise<void>;
839
+ */ declare function Pr(): Sn;
840
+ declare function Er(t: any, e: any, n: any): Promise<void>;
841
841
  /**
842
842
  * Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
843
843
  *
@@ -857,7 +857,7 @@ declare function Er(t: any, n: any, e: any): Promise<void>;
857
857
  * @param left - A snapshot to compare.
858
858
  * @param right - A snapshot to compare.
859
859
  * @returns true if the snapshots are equal.
860
- */ declare function Je(t: any, n: any): any;
860
+ */ declare function Jn(t: any, e: any): any;
861
861
  declare function hr(...t: any[]): cr;
862
862
  declare function ar(...t: any[]): cr;
863
863
  /**
@@ -879,8 +879,8 @@ declare function ar(...t: any[]): cr;
879
879
  * @param firestore - The `Firestore` instance to terminate.
880
880
  * @returns A `Promise` that is resolved when the instance has been successfully
881
881
  * terminated.
882
- */ declare function ce(t: any): any;
883
- declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
882
+ */ declare function cn(t: any): any;
883
+ declare function Tr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
884
884
  /**
885
885
  * Creates a {@link QueryConstraint} that enforces that documents must contain the
886
886
  * specified field and that the value should satisfy the relation constraint
@@ -891,7 +891,7 @@ declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
891
891
  * "&lt;=", "!=").
892
892
  * @param value - The value for comparison
893
893
  * @returns The created {@link Query}.
894
- */ declare function er(t: any, n: any, e: any): nr;
894
+ */ declare function nr(t: any, e: any, n: any): er;
895
895
  /**
896
896
  * Creates a write batch, used for performing multiple writes as a single
897
897
  * atomic operation. The maximum number of writes allowed in a single WriteBatch
@@ -927,7 +927,7 @@ declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
927
927
  * non-identifier path components, even if they aren't escaped.
928
928
  */ static fromServerFormat(t: any): tt;
929
929
  static emptyPath(): tt;
930
- construct(t: any, n: any, e: any): tt;
930
+ construct(t: any, e: any, n: any): tt;
931
931
  canonicalString(): any;
932
932
  toString(): any;
933
933
  /**
@@ -943,7 +943,7 @@ declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
943
943
  * user-supplied `FirestoreSettings` object. This is a separate type so that
944
944
  * defaults can be supplied and the value can be checked for equality.
945
945
  */
946
- declare class re {
946
+ declare class nn {
947
947
  constructor(t: any);
948
948
  host: any;
949
949
  ssl: any;
@@ -962,7 +962,7 @@ declare class re {
962
962
  */
963
963
  declare class K {
964
964
  static empty(): K;
965
- constructor(t: any, n: any);
965
+ constructor(t: any, e: any);
966
966
  projectId: any;
967
967
  database: any;
968
968
  get isDefaultDatabase(): boolean;
@@ -972,74 +972,74 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
972
972
  /**
973
973
  * Helper for parsing raw user input (provided via the API) into internal model
974
974
  * classes.
975
- */ declare class Pe {
976
- constructor(t: any, n: any, e: any);
975
+ */ declare class Pn {
976
+ constructor(t: any, e: any, n: any);
977
977
  databaseId: any;
978
978
  ignoreUndefinedProperties: any;
979
979
  q: any;
980
- /** Creates a new top-level parse context. */ ht(t: any, n: any, e: any, r?: boolean): Re;
980
+ /** Creates a new top-level parse context. */ ht(t: any, e: any, n: any, r?: boolean): Rn;
981
981
  }
982
- declare class xe extends be {
983
- constructor(t: any, n: any);
982
+ declare class xn extends vn {
983
+ constructor(t: any, e: any);
984
984
  lt: any;
985
- _toFieldTransform(t: any): vn;
985
+ _toFieldTransform(t: any): ve;
986
986
  isEqual(t: any): boolean;
987
987
  }
988
- declare class Fe extends be {
989
- constructor(t: any, n: any);
988
+ declare class Fn extends vn {
989
+ constructor(t: any, e: any);
990
990
  lt: any;
991
- _toFieldTransform(t: any): vn;
991
+ _toFieldTransform(t: any): ve;
992
992
  isEqual(t: any): boolean;
993
993
  }
994
- declare class Ne extends be {
994
+ declare class Nn extends vn {
995
995
  _toFieldTransform(t: any): null;
996
996
  isEqual(t: any): boolean;
997
997
  }
998
- declare class lr extends Ze {
999
- constructor(t: any, n: any, e: any);
998
+ declare class lr extends Zn {
999
+ constructor(t: any, e: any, n: any);
1000
1000
  type: any;
1001
- vt: any;
1001
+ bt: any;
1002
1002
  Et: any;
1003
- _apply(t: any): he;
1003
+ _apply(t: any): hn;
1004
1004
  }
1005
- declare class qe extends be {
1006
- constructor(t: any, n: any);
1005
+ declare class qn extends vn {
1006
+ constructor(t: any, e: any);
1007
1007
  ft: any;
1008
- _toFieldTransform(t: any): vn;
1008
+ _toFieldTransform(t: any): ve;
1009
1009
  isEqual(t: any): boolean;
1010
1010
  }
1011
- declare class ir extends Ze {
1012
- constructor(t: any, n: any, e: any);
1011
+ declare class ir extends Zn {
1012
+ constructor(t: any, e: any, n: any);
1013
1013
  type: any;
1014
1014
  gt: any;
1015
- bt: any;
1016
- _apply(t: any): he;
1015
+ vt: any;
1016
+ _apply(t: any): hn;
1017
1017
  }
1018
- declare class rr extends Ze {
1019
- constructor(t: any, n: any);
1018
+ declare class rr extends Zn {
1019
+ constructor(t: any, e: any);
1020
1020
  dt: any;
1021
1021
  _t: any;
1022
1022
  type: string;
1023
- _apply(t: any): he;
1023
+ _apply(t: any): hn;
1024
1024
  }
1025
- declare class Se extends be {
1026
- _toFieldTransform(t: any): vn;
1025
+ declare class Sn extends vn {
1026
+ _toFieldTransform(t: any): ve;
1027
1027
  isEqual(t: any): boolean;
1028
1028
  }
1029
- declare class cr extends Ze {
1030
- constructor(t: any, n: any, e: any);
1029
+ declare class cr extends Zn {
1030
+ constructor(t: any, e: any, n: any);
1031
1031
  type: any;
1032
- vt: any;
1032
+ bt: any;
1033
1033
  Et: any;
1034
- _apply(t: any): he;
1034
+ _apply(t: any): hn;
1035
1035
  }
1036
- declare class nr extends Ze {
1037
- constructor(t: any, n: any, e: any);
1036
+ declare class er extends Zn {
1037
+ constructor(t: any, e: any, n: any);
1038
1038
  dt: any;
1039
1039
  wt: any;
1040
1040
  yt: any;
1041
1041
  type: string;
1042
- _apply(t: any): he;
1042
+ _apply(t: any): hn;
1043
1043
  }
1044
1044
  /**
1045
1045
  * @license
@@ -1061,8 +1061,8 @@ declare class nr extends Ze {
1061
1061
  * Path represents an ordered sequence of string segments.
1062
1062
  */
1063
1063
  declare class J {
1064
- static comparator(t: any, n: any): 0 | 1 | -1;
1065
- constructor(t: any, n: any, e: any);
1064
+ static comparator(t: any, e: any): 0 | 1 | -1;
1065
+ constructor(t: any, e: any, n: any);
1066
1066
  segments: any;
1067
1067
  offset: any;
1068
1068
  len: any;
@@ -1081,7 +1081,7 @@ declare class J {
1081
1081
  forEach(t: any): void;
1082
1082
  toArray(): any;
1083
1083
  }
1084
- /** A "context" object passed around while parsing user data. */ declare class Re {
1084
+ /** A "context" object passed around while parsing user data. */ declare class Rn {
1085
1085
  /**
1086
1086
  * Initializes a ParseContext with the given source and path.
1087
1087
  *
@@ -1100,7 +1100,7 @@ declare class J {
1100
1100
  * which case certain features will not work and errors will be somewhat
1101
1101
  * compromised).
1102
1102
  */
1103
- constructor(t: any, n: any, e: any, r: any, s: any, i: any);
1103
+ constructor(t: any, e: any, n: any, r: any, s: any, i: any);
1104
1104
  settings: any;
1105
1105
  databaseId: any;
1106
1106
  q: any;
@@ -1109,10 +1109,10 @@ declare class J {
1109
1109
  fieldMask: any;
1110
1110
  get path(): any;
1111
1111
  get tt(): any;
1112
- /** Returns a new context with the specified settings overwritten. */ nt(t: any): Re;
1113
- et(t: any): Re;
1114
- it(t: any): Re;
1115
- ot(t: any): Re;
1112
+ /** Returns a new context with the specified settings overwritten. */ et(t: any): Rn;
1113
+ nt(t: any): Rn;
1114
+ it(t: any): Rn;
1115
+ ot(t: any): Rn;
1116
1116
  ut(t: any): U;
1117
1117
  /** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
1118
1118
  Z(): void;
@@ -1134,9 +1134,9 @@ declare class J {
1134
1134
  * See the License for the specific language governing permissions and
1135
1135
  * limitations under the License.
1136
1136
  */
1137
- /** A field path and the TransformOperation to perform upon it. */ declare class vn {
1138
- constructor(t: any, n: any);
1137
+ /** A field path and the TransformOperation to perform upon it. */ declare class ve {
1138
+ constructor(t: any, e: any);
1139
1139
  field: any;
1140
1140
  transform: any;
1141
1141
  }
1142
- export { ge as Bytes, le as CollectionReference, ae as DocumentReference, Ye as DocumentSnapshot, ye as FieldPath, be as FieldValue, se as Firestore, U as FirestoreError, ve as GeoPoint, he as Query, Ze as QueryConstraint, He as QueryDocumentSnapshot, Ke as QuerySnapshot, gt as Timestamp, Ur as Transaction, $r as WriteBatch, Ar as addDoc, Dr as arrayRemove, Vr as arrayUnion, fe as collection, de as collectionGroup, ue as connectFirestoreEmulator, Ir as deleteDoc, Rr as deleteField, we as doc, _e as documentId, dr as endAt, fr as endBefore, br as getDoc, vr as getDocs, oe as getFirestore, Nr as increment, ie as initializeFirestore, or as limit, ur as limitToLast, sr as orderBy, tr as query, pe as queryEqual, me as refEqual, kr as runTransaction, Pr as serverTimestamp, Er as setDoc, w as setLogLevel, Je as snapshotEqual, hr as startAfter, ar as startAt, ce as terminate, Tr as updateDoc, er as where, Fr as writeBatch };
1142
+ export { gn as Bytes, ln as CollectionReference, an as DocumentReference, Yn as DocumentSnapshot, yn as FieldPath, vn as FieldValue, rn as Firestore, U as FirestoreError, bn as GeoPoint, hn as Query, Zn as QueryConstraint, Hn as QueryDocumentSnapshot, Kn as QuerySnapshot, gt as Timestamp, Ur as Transaction, $r as WriteBatch, Ar as addDoc, Dr as arrayRemove, Vr as arrayUnion, fn as collection, dn as collectionGroup, un as connectFirestoreEmulator, Ir as deleteDoc, Rr as deleteField, wn as doc, _n as documentId, dr as endAt, fr as endBefore, vr as getDoc, br as getDocs, on as getFirestore, Nr as increment, sn as initializeFirestore, or as limit, ur as limitToLast, sr as orderBy, tr as query, pn as queryEqual, mn as refEqual, kr as runTransaction, Pr as serverTimestamp, Er as setDoc, w as setLogLevel, Jn as snapshotEqual, hr as startAfter, ar as startAt, cn as terminate, Tr as updateDoc, nr as where, Fr as writeBatch };
@@ -176,6 +176,7 @@ export declare class FirebaseAppCheckTokenProvider implements CredentialsProvide
176
176
  private tokenListener;
177
177
  private forceRefresh;
178
178
  private appCheck;
179
+ private latestAppCheckToken;
179
180
  constructor(appCheckProvider: Provider<AppCheckInternalComponentName>);
180
181
  start(asyncQueue: AsyncQueue, changeListener: CredentialChangeListener<string>): void;
181
182
  getToken(): Promise<Token | null>;