@firebase/firestore 3.7.3 → 3.8.0-canary.20e5ef7fb

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 (124) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/firestore/lite/index.d.ts +1 -1
  3. package/dist/firestore/src/api/filter.d.ts +1 -1
  4. package/dist/firestore/src/api/reference_impl.d.ts +2 -1
  5. package/dist/firestore/src/api.d.ts +1 -1
  6. package/dist/firestore/src/core/bound.d.ts +49 -0
  7. package/dist/firestore/src/core/filter.d.ts +134 -0
  8. package/dist/firestore/src/core/order_by.d.ts +35 -0
  9. package/dist/firestore/src/core/query.d.ts +5 -6
  10. package/dist/firestore/src/core/target.d.ts +4 -120
  11. package/dist/firestore/src/lite-api/query.d.ts +273 -66
  12. package/dist/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
  13. package/dist/firestore/src/local/local_documents_view.d.ts +0 -2
  14. package/dist/firestore/src/model/document.d.ts +8 -1
  15. package/dist/firestore/src/protos/firestore_proto_api.d.ts +1 -1
  16. package/dist/firestore/src/remote/serializer.d.ts +10 -3
  17. package/dist/firestore/src/util/logic_utils.d.ts +52 -0
  18. package/dist/firestore/src/util/types.d.ts +1 -1
  19. package/dist/firestore/test/lite/helpers.d.ts +1 -1
  20. package/dist/firestore/test/unit/core/filter.test.d.ts +17 -0
  21. package/dist/firestore/test/unit/specs/spec_test_runner.d.ts +2 -1
  22. package/dist/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
  23. package/dist/firestore/test/util/helpers.d.ts +6 -2
  24. package/dist/firestore/test/util/test_platform.d.ts +2 -2
  25. package/dist/index.d.ts +140 -63
  26. package/dist/index.esm2017.js +4297 -3743
  27. package/dist/index.esm2017.js.map +1 -1
  28. package/dist/index.esm5.js +4982 -4410
  29. package/dist/index.esm5.js.map +1 -1
  30. package/dist/index.node.cjs.js +1659 -890
  31. package/dist/index.node.cjs.js.map +1 -1
  32. package/dist/index.node.mjs +1652 -891
  33. package/dist/index.node.mjs.map +1 -1
  34. package/dist/index.rn.js +4522 -3968
  35. package/dist/index.rn.js.map +1 -1
  36. package/dist/internal.d.ts +330 -69
  37. package/dist/lite/firestore/lite/index.d.ts +1 -1
  38. package/dist/lite/firestore/src/api/filter.d.ts +1 -1
  39. package/dist/lite/firestore/src/api/reference_impl.d.ts +2 -1
  40. package/dist/lite/firestore/src/api.d.ts +1 -1
  41. package/dist/lite/firestore/src/core/bound.d.ts +49 -0
  42. package/dist/lite/firestore/src/core/filter.d.ts +134 -0
  43. package/dist/lite/firestore/src/core/order_by.d.ts +35 -0
  44. package/dist/lite/firestore/src/core/query.d.ts +5 -6
  45. package/dist/lite/firestore/src/core/target.d.ts +4 -120
  46. package/dist/lite/firestore/src/lite-api/query.d.ts +273 -66
  47. package/dist/lite/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
  48. package/dist/lite/firestore/src/local/local_documents_view.d.ts +0 -2
  49. package/dist/lite/firestore/src/model/document.d.ts +8 -1
  50. package/dist/lite/firestore/src/protos/firestore_proto_api.d.ts +1 -1
  51. package/dist/lite/firestore/src/remote/serializer.d.ts +10 -3
  52. package/dist/lite/firestore/src/util/logic_utils.d.ts +52 -0
  53. package/dist/lite/firestore/src/util/types.d.ts +1 -1
  54. package/dist/lite/firestore/test/lite/helpers.d.ts +1 -1
  55. package/dist/lite/firestore/test/unit/core/filter.test.d.ts +17 -0
  56. package/dist/lite/firestore/test/unit/specs/spec_test_runner.d.ts +2 -1
  57. package/dist/lite/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
  58. package/dist/lite/firestore/test/util/helpers.d.ts +6 -2
  59. package/dist/lite/firestore/test/util/test_platform.d.ts +2 -2
  60. package/dist/lite/index.browser.esm2017.js +2091 -1793
  61. package/dist/lite/index.browser.esm2017.js.map +1 -1
  62. package/dist/lite/index.browser.esm5.js +2219 -1980
  63. package/dist/lite/index.browser.esm5.js.map +1 -1
  64. package/dist/lite/index.d.ts +138 -62
  65. package/dist/lite/index.node.cjs.js +2212 -1802
  66. package/dist/lite/index.node.cjs.js.map +1 -1
  67. package/dist/lite/index.node.mjs +2205 -1803
  68. package/dist/lite/index.node.mjs.map +1 -1
  69. package/dist/lite/index.rn.esm2017.js +2077 -1778
  70. package/dist/lite/index.rn.esm2017.js.map +1 -1
  71. package/dist/lite/internal.d.ts +328 -66
  72. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +322 -174
  73. package/dist/lite/packages/firestore/lite/index.d.ts +1 -1
  74. package/dist/lite/packages/firestore/rollup.config.debug.d.ts +1 -1
  75. package/dist/lite/packages/firestore/src/api/filter.d.ts +1 -1
  76. package/dist/lite/packages/firestore/src/api/reference_impl.d.ts +2 -1
  77. package/dist/lite/packages/firestore/src/api.d.ts +1 -1
  78. package/dist/lite/packages/firestore/src/core/bound.d.ts +49 -0
  79. package/dist/lite/packages/firestore/src/core/filter.d.ts +134 -0
  80. package/dist/lite/packages/firestore/src/core/order_by.d.ts +35 -0
  81. package/dist/lite/packages/firestore/src/core/query.d.ts +5 -6
  82. package/dist/lite/packages/firestore/src/core/target.d.ts +4 -120
  83. package/dist/lite/packages/firestore/src/lite-api/query.d.ts +273 -66
  84. package/dist/lite/packages/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
  85. package/dist/lite/packages/firestore/src/local/local_documents_view.d.ts +0 -2
  86. package/dist/lite/packages/firestore/src/model/document.d.ts +8 -1
  87. package/dist/lite/packages/firestore/src/protos/firestore_proto_api.d.ts +1 -1
  88. package/dist/lite/packages/firestore/src/remote/serializer.d.ts +10 -3
  89. package/dist/lite/packages/firestore/src/util/logic_utils.d.ts +52 -0
  90. package/dist/lite/packages/firestore/src/util/types.d.ts +1 -1
  91. package/dist/lite/packages/firestore/test/lite/helpers.d.ts +1 -1
  92. package/dist/lite/packages/firestore/test/unit/core/filter.test.d.ts +17 -0
  93. package/dist/lite/packages/firestore/test/unit/specs/spec_test_runner.d.ts +2 -1
  94. package/dist/lite/packages/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
  95. package/dist/lite/packages/firestore/test/util/helpers.d.ts +6 -2
  96. package/dist/lite/packages/firestore/test/util/test_platform.d.ts +2 -2
  97. package/dist/lite/private.d.ts +240 -66
  98. package/dist/packages/firestore/dist/index.esm2017.d.ts +370 -209
  99. package/dist/packages/firestore/lite/index.d.ts +1 -1
  100. package/dist/packages/firestore/rollup.config.debug.d.ts +1 -1
  101. package/dist/packages/firestore/src/api/filter.d.ts +1 -1
  102. package/dist/packages/firestore/src/api/reference_impl.d.ts +2 -1
  103. package/dist/packages/firestore/src/api.d.ts +1 -1
  104. package/dist/packages/firestore/src/core/bound.d.ts +49 -0
  105. package/dist/packages/firestore/src/core/filter.d.ts +134 -0
  106. package/dist/packages/firestore/src/core/order_by.d.ts +35 -0
  107. package/dist/packages/firestore/src/core/query.d.ts +5 -6
  108. package/dist/packages/firestore/src/core/target.d.ts +4 -120
  109. package/dist/packages/firestore/src/lite-api/query.d.ts +273 -66
  110. package/dist/packages/firestore/src/local/indexeddb_index_manager.d.ts +2 -0
  111. package/dist/packages/firestore/src/local/local_documents_view.d.ts +0 -2
  112. package/dist/packages/firestore/src/model/document.d.ts +8 -1
  113. package/dist/packages/firestore/src/protos/firestore_proto_api.d.ts +1 -1
  114. package/dist/packages/firestore/src/remote/serializer.d.ts +10 -3
  115. package/dist/packages/firestore/src/util/logic_utils.d.ts +52 -0
  116. package/dist/packages/firestore/src/util/types.d.ts +1 -1
  117. package/dist/packages/firestore/test/lite/helpers.d.ts +1 -1
  118. package/dist/packages/firestore/test/unit/core/filter.test.d.ts +17 -0
  119. package/dist/packages/firestore/test/unit/specs/spec_test_runner.d.ts +2 -1
  120. package/dist/packages/firestore/test/unit/util/logic_utils.test.d.ts +17 -0
  121. package/dist/packages/firestore/test/util/helpers.d.ts +6 -2
  122. package/dist/packages/firestore/test/util/test_platform.d.ts +2 -2
  123. package/dist/private.d.ts +242 -69
  124. package/package.json +14 -12
@@ -1,28 +1,7 @@
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
- * Converts Firestore's internal types to the JavaScript types that we expose
19
- * to the user.
20
- *
21
- * @internal
22
- */ declare class tl {
1
+ declare class Pl {
23
2
  convertValue(t: any, e?: string): any;
24
3
  convertObject(t: any, e: any): {};
25
- convertGeoPoint(t: any): ih;
4
+ convertGeoPoint(t: any): Rh;
26
5
  convertArray(t: any, e: any): any;
27
6
  convertServerTimestamp(t: any, e: any): any;
28
7
  convertTimestamp(t: any): nt;
@@ -47,13 +26,13 @@
47
26
  /**
48
27
  * Represents an aggregation that can be performed by Firestore.
49
28
  */
50
- declare class aa {
29
+ declare class Sa {
51
30
  /** A type string to uniquely identify instances of this class. */
52
31
  type: string;
53
32
  }
54
33
  /**
55
34
  * The results of executing an aggregation query.
56
- */ declare class ha {
35
+ */ declare class Da {
57
36
  /** @hideconstructor */
58
37
  constructor(t: any, e: any);
59
38
  _data: any;
@@ -107,18 +86,18 @@ declare class aa {
107
86
  /**
108
87
  * An immutable object representing an array of bytes.
109
88
  */
110
- declare class th {
89
+ declare class Ih {
111
90
  /**
112
91
  * Creates a new `Bytes` object from the given Base64 string, converting it to
113
92
  * bytes.
114
93
  *
115
94
  * @param base64 - The Base64 string used to create the `Bytes` object.
116
- */ static fromBase64String(t: any): th;
95
+ */ static fromBase64String(t: any): Ih;
117
96
  /**
118
97
  * Creates a new `Bytes` object from the given Uint8Array.
119
98
  *
120
99
  * @param array - The Uint8Array used to create the `Bytes` object.
121
- */ static fromUint8Array(t: any): th;
100
+ */ static fromUint8Array(t: any): Ih;
122
101
  /** @hideconstructor */
123
102
  constructor(t: any);
124
103
  _byteString: any;
@@ -160,11 +139,11 @@ declare class th {
160
139
  * See the License for the specific language governing permissions and
161
140
  * limitations under the License.
162
141
  */
163
- /** DOMException error code constants. */ declare const Fa: -1;
142
+ /** DOMException error code constants. */ declare const sh: -1;
164
143
  /**
165
144
  * A `CollectionReference` object can be used for adding documents, getting
166
145
  * document references, and querying for documents (using {@link query}).
167
- */ declare class ta extends Zc {
146
+ */ declare class Ia extends pa {
168
147
  _path: any;
169
148
  /** The collection's identifier. */ get id(): any;
170
149
  /**
@@ -174,7 +153,8 @@ declare class th {
174
153
  /**
175
154
  * A reference to the containing `DocumentReference` if this is a
176
155
  * subcollection. If this isn't a subcollection, the reference is null.
177
- */ get parent(): Xc | null;
156
+ */ get parent(): ya | null;
157
+ withConverter(t: any): Ia;
178
158
  }
179
159
  /**
180
160
  * @license
@@ -196,7 +176,7 @@ declare class th {
196
176
  * A `DocumentReference` refers to a document location in a Firestore database
197
177
  * and can be used to write, read, or listen to the location. The document at
198
178
  * the referenced location may or may not exist.
199
- */ declare class Xc {
179
+ */ declare class ya {
200
180
  /** @hideconstructor */
201
181
  constructor(t: any, e: any, n: any);
202
182
  converter: any;
@@ -214,8 +194,8 @@ declare class th {
214
194
  */ get path(): any;
215
195
  /**
216
196
  * The collection this `DocumentReference` belongs to.
217
- */ get parent(): ta;
218
- withConverter(t: any): Xc;
197
+ */ get parent(): Ia;
198
+ withConverter(t: any): ya;
219
199
  }
220
200
  /**
221
201
  * A `DocumentSnapshot` contains data read from a document in your Firestore
@@ -225,11 +205,42 @@ declare class th {
225
205
  * For a `DocumentSnapshot` that points to a non-existing document, any data
226
206
  * access will return 'undefined'. You can use the `exists()` method to
227
207
  * explicitly verify a document's existence.
228
- */ declare class il extends Ch {
208
+ */ declare class Dl extends Yh {
229
209
  /** @hideconstructor protected */
230
210
  constructor(t: any, e: any, n: any, s: any, i: any, r: any);
231
211
  _firestoreImpl: any;
232
212
  metadata: any;
213
+ /**
214
+ * Retrieves all fields in the document as an `Object`. Returns `undefined` if
215
+ * the document doesn't exist.
216
+ *
217
+ * By default, `serverTimestamp()` values that have not yet been
218
+ * set to their final value will be returned as `null`. You can override
219
+ * this by passing an options object.
220
+ *
221
+ * @param options - An options object to configure how data is retrieved from
222
+ * the snapshot (for example the desired behavior for server timestamps that
223
+ * have not yet been set to their final value).
224
+ * @returns An `Object` containing all fields in the document or `undefined` if
225
+ * the document doesn't exist.
226
+ */ data(t?: {}): any;
227
+ /**
228
+ * Retrieves the field specified by `fieldPath`. Returns `undefined` if the
229
+ * document or field doesn't exist.
230
+ *
231
+ * By default, a `serverTimestamp()` that has not yet been set to
232
+ * its final value will be returned as `null`. You can override this by
233
+ * passing an options object.
234
+ *
235
+ * @param fieldPath - The path (for example 'foo' or 'foo.bar') to a specific
236
+ * field.
237
+ * @param options - An options object to configure how the field is retrieved
238
+ * from the snapshot (for example the desired behavior for server timestamps
239
+ * that have not yet been set to their final value).
240
+ * @returns The data at the specified field location or undefined if no such
241
+ * field exists in the document.
242
+ */
243
+ get(t: any, e?: {}): any;
233
244
  }
234
245
  /**
235
246
  * @license
@@ -254,7 +265,7 @@ declare class th {
254
265
  *
255
266
  * Create a `FieldPath` by providing field names. If more than one field
256
267
  * name is provided, the path will point to a nested field in a document.
257
- */ declare class eh {
268
+ */ declare class Th {
258
269
  /**
259
270
  * Creates a `FieldPath` from the provided field names. If more than one field
260
271
  * name is provided, the path will point to a nested field in a document.
@@ -289,7 +300,7 @@ declare class th {
289
300
  /**
290
301
  * Sentinel values that can be used when writing document fields with `set()`
291
302
  * or `update()`.
292
- */ declare class sh {
303
+ */ declare class Ah {
293
304
  /**
294
305
  * @param _methodName - The public API endpoint that returns this class.
295
306
  * @hideconstructor
@@ -302,12 +313,16 @@ declare class th {
302
313
  *
303
314
  * Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
304
315
  */
305
- declare class $a extends Jc {
306
- _queue: ka;
316
+ declare class ih extends ma {
317
+ _queue: th;
318
+ _persistenceKey: any;
319
+ _terminate(): any;
307
320
  }
308
321
  /** An error returned by a Firestore operation. */ declare class L extends c {
309
322
  /** @hideconstructor */
310
323
  constructor(t: any, e: any);
324
+ code: any;
325
+ message: any;
311
326
  }
312
327
  /**
313
328
  * @license
@@ -331,7 +346,7 @@ declare class $a extends Jc {
331
346
  *
332
347
  * Latitude values are in the range of [-90, 90].
333
348
  * Longitude values are in the range of [-180, 180].
334
- */ declare class ih {
349
+ */ declare class Rh {
335
350
  /**
336
351
  * Creates a new immutable `GeoPoint` object with the provided latitude and
337
352
  * longitude values.
@@ -362,9 +377,9 @@ declare class $a extends Jc {
362
377
  * with an underscore.
363
378
  */ _compareTo(t: any): 0 | 1 | -1;
364
379
  }
365
- declare class Ma {
380
+ declare class nh {
366
381
  _progressObserver: {};
367
- _taskCompletionResolver: U;
382
+ _taskCompletionResolver: q;
368
383
  _lastProgress: {
369
384
  taskState: string;
370
385
  totalBytes: number;
@@ -414,7 +429,7 @@ declare class Ma {
414
429
  /**
415
430
  * A `Query` refers to a query which you can read or listen to. You can also
416
431
  * construct refined `Query` objects by adding filters and ordering.
417
- */ declare class Zc {
432
+ */ declare class pa {
418
433
  /** @hideconstructor protected */
419
434
  constructor(t: any, e: any, n: any);
420
435
  converter: any;
@@ -422,16 +437,37 @@ declare class Ma {
422
437
  /** The type of this Firestore reference. */
423
438
  type: string;
424
439
  firestore: any;
425
- withConverter(t: any): Zc;
440
+ withConverter(t: any): pa;
441
+ }
442
+ /**
443
+ * A `QueryCompositeFilterConstraint` is used to narrow the set of documents
444
+ * returned by a Firestore query by performing the logical OR or AND of multiple
445
+ * {@link QueryFieldFilterConstraint}s or {@link QueryCompositeFilterConstraint}s.
446
+ * `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
447
+ * {@link and} and can then be passed to {@link query} to create a new query
448
+ * instance that also contains the `QueryCompositeFilterConstraint`.
449
+ * @internal TODO remove this internal tag with OR Query support in the server
450
+ */ declare class ol extends el {
451
+ static _create(t: any, e: any): ol;
452
+ /**
453
+ * @internal
454
+ */
455
+ constructor(t: any, e: any);
456
+ type: any;
457
+ _queryConstraints: any;
458
+ _parse(t: any): any;
459
+ _apply(t: any): any;
460
+ _getQueryConstraints(): any;
461
+ _getOperator(): "and" | "or";
426
462
  }
427
463
  /**
428
464
  * A `QueryConstraint` is used to narrow the set of documents returned by a
429
465
  * Firestore query. `QueryConstraint`s are created by invoking {@link where},
430
- * {@link orderBy}, {@link (startAt:1)}, {@link (startAfter:1)}, {@link
431
- * endBefore:1}, {@link (endAt:1)}, {@link limit} or {@link limitToLast} and
466
+ * {@link orderBy}, {@link startAt}, {@link startAfter}, {@link
467
+ * endBefore}, {@link endAt}, {@link limit}, {@link limitToLast} and
432
468
  * can then be passed to {@link query} to create a new query instance that
433
469
  * also contains this `QueryConstraint`.
434
- */ declare class Oh {
470
+ */ declare class nl extends el {
435
471
  }
436
472
  /**
437
473
  * A `QueryDocumentSnapshot` contains data read from a document in your
@@ -443,7 +479,81 @@ declare class Ma {
443
479
  * `DocumentSnapshot`. Since query results contain only existing documents, the
444
480
  * `exists` property will always be true and `data()` will never return
445
481
  * 'undefined'.
446
- */ declare class rl extends il {
482
+ */ declare class Cl extends Dl {
483
+ }
484
+ /**
485
+ * A `QueryEndAtConstraint` is used to exclude documents from the end of a
486
+ * result set returned by a Firestore query.
487
+ * `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
488
+ * {@link (endBefore:1)} and can then be passed to {@link query} to create a new
489
+ * query instance that also contains this `QueryEndAtConstraint`.
490
+ */ declare class gl extends nl {
491
+ static _create(t: any, e: any, n: any): gl;
492
+ /**
493
+ * @internal
494
+ */
495
+ constructor(t: any, e: any, n: any);
496
+ type: any;
497
+ _docOrFields: any;
498
+ _inclusive: any;
499
+ _apply(t: any): pa;
500
+ }
501
+ /**
502
+ * A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
503
+ * a Firestore query by filtering on one or more document fields.
504
+ * `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
505
+ * be passed to {@link query} to create a new query instance that also contains
506
+ * this `QueryFieldFilterConstraint`.
507
+ */ declare class il extends nl {
508
+ static _create(t: any, e: any, n: any): il;
509
+ /**
510
+ * @internal
511
+ */
512
+ constructor(t: any, e: any, n: any);
513
+ _field: any;
514
+ _op: any;
515
+ _value: any;
516
+ /** The type of this query constraint */
517
+ type: string;
518
+ _apply(t: any): pa;
519
+ _parse(t: any): Re | Oe | qe;
520
+ }
521
+ /**
522
+ * A `QueryLimitConstraint` is used to limit the number of documents returned by
523
+ * a Firestore query.
524
+ * `QueryLimitConstraint`s are created by invoking {@link limit} or
525
+ * {@link limitToLast} and can then be passed to {@link query} to create a new
526
+ * query instance that also contains this `QueryLimitConstraint`.
527
+ */ declare class ll extends nl {
528
+ static _create(t: any, e: any, n: any): ll;
529
+ /**
530
+ * @internal
531
+ */
532
+ constructor(t: any, e: any, n: any);
533
+ type: any;
534
+ _limit: any;
535
+ _limitType: any;
536
+ _apply(t: any): pa;
537
+ }
538
+ /**
539
+ * A `QueryOrderByConstraint` is used to sort the set of documents returned by a
540
+ * Firestore query. `QueryOrderByConstraint`s are created by invoking
541
+ * {@link orderBy} and can then be passed to {@link query} to create a new query
542
+ * instance that also contains this `QueryOrderByConstraint`.
543
+ *
544
+ * Note: Documents that do not contain the orderBy field will not be present in
545
+ * the query result.
546
+ */ declare class al extends nl {
547
+ static _create(t: any, e: any): al;
548
+ /**
549
+ * @internal
550
+ */
551
+ constructor(t: any, e: any);
552
+ _field: any;
553
+ _direction: any;
554
+ /** The type of this query constraint */
555
+ type: string;
556
+ _apply(t: any): pa;
447
557
  }
448
558
  /**
449
559
  * A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
@@ -451,13 +561,13 @@ declare class Ma {
451
561
  * array via the `docs` property or enumerated using the `forEach` method. The
452
562
  * number of documents can be determined via the `empty` and `size`
453
563
  * properties.
454
- */ declare class ol {
564
+ */ declare class xl {
455
565
  /** @hideconstructor */
456
566
  constructor(t: any, e: any, n: any, s: any);
457
567
  _firestore: any;
458
568
  _userDataWriter: any;
459
569
  _snapshot: any;
460
- metadata: sl;
570
+ metadata: Sl;
461
571
  query: any;
462
572
  /** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
463
573
  /** The number of documents in the `QuerySnapshot`. */ get size(): any;
@@ -481,6 +591,23 @@ declare class Ma {
481
591
  _cachedChanges: any;
482
592
  _cachedChangesIncludeMetadataChanges: any;
483
593
  }
594
+ /**
595
+ * A `QueryStartAtConstraint` is used to exclude documents from the start of a
596
+ * result set returned by a Firestore query.
597
+ * `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
598
+ * {@link (startAfter:1)} and can then be passed to {@link query} to create a
599
+ * new query instance that also contains this `QueryStartAtConstraint`.
600
+ */ declare class _l extends nl {
601
+ static _create(t: any, e: any, n: any): _l;
602
+ /**
603
+ * @internal
604
+ */
605
+ constructor(t: any, e: any, n: any);
606
+ type: any;
607
+ _docOrFields: any;
608
+ _inclusive: any;
609
+ _apply(t: any): pa;
610
+ }
484
611
  /**
485
612
  * @license
486
613
  * Copyright 2020 Google LLC
@@ -499,7 +626,7 @@ declare class Ma {
499
626
  */
500
627
  /**
501
628
  * Metadata about a snapshot, describing the state of the snapshot.
502
- */ declare class sl {
629
+ */ declare class Sl {
503
630
  /** @hideconstructor */
504
631
  constructor(t: any, e: any);
505
632
  hasPendingWrites: any;
@@ -608,11 +735,11 @@ declare class nt {
608
735
  * to be compared using the `>`, `<=`, `>=` and `>` operators.
609
736
  */ valueOf(): string;
610
737
  }
611
- declare const Sl_base: {
738
+ declare const ef_base: {
612
739
  new (t: any, e: any): {
613
740
  _firestore: any;
614
741
  _transaction: any;
615
- _dataReader: hh;
742
+ _dataReader: Dh;
616
743
  /**
617
744
  * Reads the document referenced by the provided {@link DocumentReference}.
618
745
  *
@@ -675,7 +802,7 @@ declare const Sl_base: {
675
802
  * the methods to read and write data within the transaction context. See
676
803
  * {@link runTransaction}.
677
804
  */
678
- declare class Sl extends Sl_base {
805
+ declare class ef extends ef_base {
679
806
  }
680
807
  /**
681
808
  * @license
@@ -701,22 +828,22 @@ declare class Sl extends Sl_base {
701
828
  * will be committed (or visible locally) until {@link WriteBatch.commit} is
702
829
  * called.
703
830
  */
704
- declare class vl {
831
+ declare class Zl {
705
832
  /** @hideconstructor */
706
833
  constructor(t: any, e: any);
707
834
  _firestore: any;
708
835
  _commitHandler: any;
709
836
  _mutations: any[];
710
837
  _committed: boolean;
711
- _dataReader: hh;
712
- set(t: any, e: any, n: any): vl;
713
- update(t: any, e: any, n: any, ...s: any[]): vl;
838
+ _dataReader: Dh;
839
+ set(t: any, e: any, n: any): Zl;
840
+ update(t: any, e: any, n: any, ...s: any[]): Zl;
714
841
  /**
715
842
  * Deletes the document referred to by the provided {@link DocumentReference}.
716
843
  *
717
844
  * @param documentRef - A reference to the document to be deleted.
718
845
  * @returns This `WriteBatch` instance. Used for chaining method calls.
719
- */ delete(t: any): vl;
846
+ */ delete(t: any): Zl;
720
847
  /**
721
848
  * Commits all of the writes in this write batch as a single atomic unit.
722
849
  *
@@ -736,8 +863,8 @@ declare class vl {
736
863
  * Represents the database ID a Firestore client is associated with.
737
864
  * @internal
738
865
  */
739
- declare class ne {
740
- static empty(): ne;
866
+ declare class Ft {
867
+ static empty(): Ft;
741
868
  constructor(t: any, e: any);
742
869
  projectId: any;
743
870
  database: any;
@@ -830,7 +957,7 @@ declare class ne {
830
957
  * Returns true if this field references the key of a document.
831
958
  */ isKeyField(): boolean;
832
959
  }
833
- declare function jc(t: any, e: any): any;
960
+ declare function fa(t: any, e: any): any;
834
961
  /**
835
962
  * Fails if the given assertion condition is false, throwing an Error with the
836
963
  * given message if it did.
@@ -859,14 +986,14 @@ declare function jc(t: any, e: any): any;
859
986
  */
860
987
  /** Converts a Base64 encoded string to a binary string. */
861
988
  /** True if and only if the Base64 conversion functions are available. */
862
- declare function jt(): boolean;
989
+ declare function Gt(): boolean;
863
990
  /**
864
991
  * @internal
865
992
  */ declare function N(t: any, ...e: any[]): void;
866
993
  /**
867
994
  * Validates that two boolean options are not set at the same time.
868
995
  * @internal
869
- */ declare function qc(t: any, e: any, n: any, s: any): void;
996
+ */ declare function ca(t: any, e: any, n: any, s: any): void;
870
997
  /**
871
998
  * Add a new document to specified `CollectionReference` with the given data,
872
999
  * assigning it a document ID automatically.
@@ -876,7 +1003,7 @@ declare function jt(): boolean;
876
1003
  * @returns A `Promise` resolved with a `DocumentReference` pointing to the
877
1004
  * newly created document after it has been written to the backend (Note that it
878
1005
  * won't resolve while you're offline).
879
- */ declare function pl(t: any, e: any): Promise<Xc>;
1006
+ */ declare function Ql(t: any, e: any): Promise<ya>;
880
1007
  /**
881
1008
  * @license
882
1009
  * Copyright 2022 Google LLC
@@ -904,7 +1031,17 @@ declare function jt(): boolean;
904
1031
  *
905
1032
  * @returns `true` if the objects are "equal", as defined above, or `false`
906
1033
  * otherwise.
907
- */ declare function Rl(t: any, e: any): boolean;
1034
+ */ declare function Jl(t: any, e: any): boolean;
1035
+ /**
1036
+ * Creates a {@link QueryCompositeFilterConstraint} that performs a logical AND
1037
+ * of all the provided {@link QueryFilterConstraint}s.
1038
+ *
1039
+ * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
1040
+ * for AND operation. These must be created with calls to {@link where},
1041
+ * {@link or}, or {@link and}.
1042
+ * @returns The created {@link QueryCompositeFilterConstraint}.
1043
+ * @internal TODO remove this internal tag with OR Query support in the server
1044
+ */ declare function cl(...t: any[]): ol;
908
1045
  /**
909
1046
  * Returns a special value that can be used with {@link (setDoc:1)} or {@link
910
1047
  * updateDoc:1} that tells the server to remove the given elements from any
@@ -915,7 +1052,7 @@ declare function jt(): boolean;
915
1052
  * @param elements - The elements to remove from the array.
916
1053
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
917
1054
  * `updateDoc()`
918
- */ declare function kl(...t: any[]): gh;
1055
+ */ declare function uf(...t: any[]): Fh;
919
1056
  /**
920
1057
  * Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
921
1058
  * @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
@@ -927,9 +1064,9 @@ declare function jt(): boolean;
927
1064
  * @param elements - The elements to union into the array.
928
1065
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
929
1066
  * `updateDoc()`.
930
- */ declare function Nl(...t: any[]): mh;
931
- declare function ja(t: any): Promise<any>;
932
- declare function ea(t: any, e: any, ...n: any[]): ta;
1067
+ */ declare function of(...t: any[]): Mh;
1068
+ declare function fh(t: any): Promise<any>;
1069
+ declare function Ta(t: any, e: any, ...n: any[]): Ia;
933
1070
  /**
934
1071
  * Creates and returns a new `Query` instance that includes all documents in the
935
1072
  * database that are contained in a collection or subcollection with the
@@ -940,7 +1077,7 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
940
1077
  * collection or subcollection with this ID as the last segment of its path
941
1078
  * will be included. Cannot contain a slash.
942
1079
  * @returns The created `Query`.
943
- */ declare function na(t: any, e: any): Zc;
1080
+ */ declare function Ea(t: any, e: any): pa;
944
1081
  /**
945
1082
  * Modify this instance to communicate with the Cloud Firestore emulator.
946
1083
  *
@@ -953,14 +1090,14 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
953
1090
  * @param port - the emulator port (ex: 9000).
954
1091
  * @param options.mockUserToken - the mock auth token to use for unit testing
955
1092
  * Security Rules.
956
- */ declare function Yc(t: any, e: any, n: any, s?: {}): void;
1093
+ */ declare function ga(t: any, e: any, n: any, s?: {}): void;
957
1094
  /**
958
1095
  * Deletes the document referred to by the specified `DocumentReference`.
959
1096
  *
960
1097
  * @param reference - A reference to the document to delete.
961
1098
  * @returns A Promise resolved once the document has been successfully
962
1099
  * deleted from the backend (note that it won't resolve while you're offline).
963
- */ declare function yl(t: any): Promise<any>;
1100
+ */ declare function Gl(t: any): Promise<any>;
964
1101
  /**
965
1102
  * @license
966
1103
  * Copyright 2020 Google LLC
@@ -980,7 +1117,7 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
980
1117
  /**
981
1118
  * Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
982
1119
  * {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
983
- */ declare function Cl(): dh;
1120
+ */ declare function sf(): Nh;
984
1121
  /**
985
1122
  * Disables network usage for this instance. It can be re-enabled via {@link
986
1123
  * enableNetwork}. While the network is disabled, any snapshot listeners,
@@ -988,12 +1125,12 @@ declare function ea(t: any, e: any, ...n: any[]): ta;
988
1125
  * operations will be queued until the network is restored.
989
1126
  *
990
1127
  * @returns A `Promise` that is resolved once the network has been disabled.
991
- */ declare function Ha(t: any): any;
992
- declare function sa(t: any, e: any, ...n: any[]): Xc;
1128
+ */ declare function wh(t: any): any;
1129
+ declare function Aa(t: any, e: any, ...n: any[]): ya;
993
1130
  /**
994
1131
  * Returns a special sentinel `FieldPath` to refer to the ID of a document.
995
1132
  * It can be used in queries to sort or filter by the document ID.
996
- */ declare function nh(): eh;
1133
+ */ declare function Eh(): Th;
997
1134
  /**
998
1135
  * Attempts to enable persistent storage, if possible.
999
1136
  *
@@ -1016,7 +1153,7 @@ declare function sa(t: any, e: any, ...n: any[]): Xc;
1016
1153
  * @param persistenceSettings - Optional settings object to configure
1017
1154
  * persistence.
1018
1155
  * @returns A `Promise` that represents successfully enabling persistent storage.
1019
- */ declare function Ka(t: any, e: any): any;
1156
+ */ declare function ah(t: any, e: any): any;
1020
1157
  /**
1021
1158
  * Attempts to enable multi-tab persistent storage, if possible. If enabled
1022
1159
  * across all tabs, all operations share access to local persistence, including
@@ -1038,22 +1175,22 @@ declare function sa(t: any, e: any, ...n: any[]): Xc;
1038
1175
  * @param firestore - The {@link Firestore} instance to enable persistence for.
1039
1176
  * @returns A `Promise` that represents successfully enabling persistent
1040
1177
  * storage.
1041
- */ declare function Ga(t: any): any;
1178
+ */ declare function hh(t: any): any;
1042
1179
  /**
1043
1180
  * Re-enables use of the network for this {@link Firestore} instance after a prior
1044
1181
  * call to {@link disableNetwork}.
1045
1182
  *
1046
1183
  * @returns A `Promise` that is resolved once the network has been enabled.
1047
- */ declare function za(t: any): any;
1048
- declare function Hh(...t: any[]): Wh;
1049
- declare function zh(...t: any[]): Wh;
1184
+ */ declare function _h(t: any): any;
1185
+ declare function pl(...t: any[]): gl;
1186
+ declare function yl(...t: any[]): gl;
1050
1187
  /**
1051
1188
  * @internal
1052
- */ declare function Ua(t: any): any;
1189
+ */ declare function uh(t: any): any;
1053
1190
  /**
1054
1191
  * Locally writes `mutations` on the async queue.
1055
1192
  * @internal
1056
- */ declare function El(t: any, e: any): Promise<any>;
1193
+ */ declare function zl(t: any, e: any): Promise<any>;
1057
1194
  /**
1058
1195
  * @license
1059
1196
  * Copyright 2022 Google LLC
@@ -1090,7 +1227,7 @@ declare function zh(...t: any[]): Wh;
1090
1227
  * @returns A Promise that will be resolved with the count; the count can be
1091
1228
  * retrieved from `snapshot.data().count`, where `snapshot` is the
1092
1229
  * `AggregateQuerySnapshot` to which the returned Promise resolves.
1093
- */ declare function bl(t: any): Promise<any>;
1230
+ */ declare function Yl(t: any): Promise<any>;
1094
1231
  /**
1095
1232
  * @license
1096
1233
  * Copyright 2020 Google LLC
@@ -1118,21 +1255,21 @@ declare function zh(...t: any[]): Wh;
1118
1255
  * @param reference - The reference of the document to fetch.
1119
1256
  * @returns A Promise resolved with a `DocumentSnapshot` containing the
1120
1257
  * current document contents.
1121
- */ declare function al(t: any): Promise<il>;
1258
+ */ declare function Ol(t: any): Promise<Dl>;
1122
1259
  /**
1123
1260
  * Reads the document referred to by this `DocumentReference` from cache.
1124
1261
  * Returns an error if the document is not currently cached.
1125
1262
  *
1126
1263
  * @returns A `Promise` resolved with a `DocumentSnapshot` containing the
1127
1264
  * current document contents.
1128
- */ declare function ll(t: any): Promise<il>;
1265
+ */ declare function Fl(t: any): Promise<Dl>;
1129
1266
  /**
1130
1267
  * Reads the document referred to by this `DocumentReference` from the server.
1131
1268
  * Returns an error if the network is not available.
1132
1269
  *
1133
1270
  * @returns A `Promise` resolved with a `DocumentSnapshot` containing the
1134
1271
  * current document contents.
1135
- */ declare function fl(t: any): Promise<il>;
1272
+ */ declare function $l(t: any): Promise<Dl>;
1136
1273
  /**
1137
1274
  * Executes the query and returns the results as a `QuerySnapshot`.
1138
1275
  *
@@ -1142,20 +1279,21 @@ declare function zh(...t: any[]): Wh;
1142
1279
  * invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
1143
1280
  *
1144
1281
  * @returns A `Promise` that will be resolved with the results of the query.
1145
- */ declare function dl(t: any): Promise<ol>;
1282
+ */ declare function Bl(t: any): Promise<xl>;
1146
1283
  /**
1147
1284
  * Executes the query and returns the results as a `QuerySnapshot` from cache.
1148
- * Returns an error if the document is not currently cached.
1285
+ * Returns an empty result set if no documents matching the query are currently
1286
+ * cached.
1149
1287
  *
1150
1288
  * @returns A `Promise` that will be resolved with the results of the query.
1151
- */ declare function _l(t: any): Promise<ol>;
1289
+ */ declare function Ll(t: any): Promise<xl>;
1152
1290
  /**
1153
1291
  * Executes the query and returns the results as a `QuerySnapshot` from the
1154
1292
  * server. Returns an error if the network is not available.
1155
1293
  *
1156
1294
  * @returns A `Promise` that will be resolved with the results of the query.
1157
- */ declare function wl(t: any): Promise<ol>;
1158
- declare function La(e: any, n: any): import("../src").Firestore;
1295
+ */ declare function ql(t: any): Promise<xl>;
1296
+ declare function oh(e: any, n: any): import("../src").Firestore;
1159
1297
  /**
1160
1298
  * Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
1161
1299
  * @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
@@ -1174,7 +1312,7 @@ declare function La(e: any, n: any): import("../src").Firestore;
1174
1312
  * @param n - The value to increment by.
1175
1313
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
1176
1314
  * `updateDoc()`
1177
- */ declare function Ol(t: any): yh;
1315
+ */ declare function cf(t: any): $h;
1178
1316
  /**
1179
1317
  * Initializes a new instance of {@link Firestore} with the provided settings.
1180
1318
  * Can only be called before any other function, including
@@ -1186,22 +1324,24 @@ declare function La(e: any, n: any): import("../src").Firestore;
1186
1324
  * @param settings - A settings object to configure the {@link Firestore} instance.
1187
1325
  * @param databaseId - The name of database.
1188
1326
  * @returns A newly initialized {@link Firestore} instance.
1189
- */ declare function Ba(t: any, e: any, n: any): import("../src").Firestore;
1327
+ */ declare function rh(t: any, e: any, n: any): import("../src").Firestore;
1190
1328
  /**
1191
- * Creates a {@link QueryConstraint} that only returns the first matching documents.
1329
+ * Creates a {@link QueryLimitConstraint} that only returns the first matching
1330
+ * documents.
1192
1331
  *
1193
1332
  * @param limit - The maximum number of items to return.
1194
- * @returns The created {@link Query}.
1195
- */ declare function qh(t: any): Uh;
1333
+ * @returns The created {@link QueryLimitConstraint}.
1334
+ */ declare function fl(t: any): ll;
1196
1335
  /**
1197
- * Creates a {@link QueryConstraint} that only returns the last matching documents.
1336
+ * Creates a {@link QueryLimitConstraint} that only returns the last matching
1337
+ * documents.
1198
1338
  *
1199
1339
  * You must specify at least one `orderBy` clause for `limitToLast` queries,
1200
1340
  * otherwise an exception will be thrown during execution.
1201
1341
  *
1202
1342
  * @param limit - The maximum number of items to return.
1203
- * @returns The created {@link Query}.
1204
- */ declare function Kh(t: any): Uh;
1343
+ * @returns The created {@link QueryLimitConstraint}.
1344
+ */ declare function dl(t: any): ll;
1205
1345
  /**
1206
1346
  * Loads a Firestore bundle into the local cache.
1207
1347
  *
@@ -1212,7 +1352,7 @@ declare function La(e: any, n: any): import("../src").Firestore;
1212
1352
  * @returns A `LoadBundleTask` object, which notifies callers with progress
1213
1353
  * updates, and completion or error events. It can be used as a
1214
1354
  * `Promise<LoadBundleTaskProgress>`.
1215
- */ declare function Ya(t: any, e: any): Ma;
1355
+ */ declare function gh(t: any, e: any): nh;
1216
1356
  /**
1217
1357
  * Reads a Firestore {@link Query} from local cache, identified by the given
1218
1358
  * name.
@@ -1224,27 +1364,32 @@ declare function La(e: any, n: any): import("../src").Firestore;
1224
1364
  * @param firestore - The {@link Firestore} instance to read the query from.
1225
1365
  * @param name - The name of the query.
1226
1366
  * @returns A `Promise` that is resolved with the Query or `null`.
1227
- */ declare function Xa(t: any, e: any): any;
1228
- declare function Il(t: any, ...e: any[]): () => void;
1229
- declare function Tl(t: any, e: any): () => void;
1367
+ */ declare function yh(t: any, e: any): any;
1368
+ declare function jl(t: any, ...e: any[]): () => void;
1369
+ declare function Wl(t: any, e: any): () => void;
1230
1370
  /**
1231
- * Creates a {@link QueryConstraint} that sorts the query result by the
1371
+ * Creates a {@link QueryCompositeFilterConstraint} that performs a logical OR
1372
+ * of all the provided {@link QueryFilterConstraint}s.
1373
+ *
1374
+ * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
1375
+ * for OR operation. These must be created with calls to {@link where},
1376
+ * {@link or}, or {@link and}.
1377
+ * @returns The created {@link QueryCompositeFilterConstraint}.
1378
+ * @internal TODO remove this internal tag with OR Query support in the server
1379
+ */ declare function ul(...t: any[]): ol;
1380
+ /**
1381
+ * Creates a {@link QueryOrderByConstraint} that sorts the query result by the
1232
1382
  * specified field, optionally in descending order instead of ascending.
1233
1383
  *
1384
+ * Note: Documents that do not contain the specified field will not be present
1385
+ * in the query result.
1386
+ *
1234
1387
  * @param fieldPath - The field to sort by.
1235
1388
  * @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
1236
1389
  * not specified, order will be ascending.
1237
- * @returns The created {@link Query}.
1238
- */ declare function Lh(t: any, e?: string): Bh;
1239
- /**
1240
- * Creates a new immutable instance of {@link Query} that is extended to also include
1241
- * additional query constraints.
1242
- *
1243
- * @param query - The {@link Query} instance to use as a base for the new constraints.
1244
- * @param queryConstraints - The list of {@link QueryConstraint}s to apply.
1245
- * @throws if any of the provided query constraints cannot be combined with the
1246
- * existing or new constraints.
1247
- */ declare function Mh(t: any, ...e: any[]): any;
1390
+ * @returns The created {@link QueryOrderByConstraint}.
1391
+ */ declare function hl(t: any, e?: string): al;
1392
+ declare function sl(t: any, e: any, ...n: any[]): any;
1248
1393
  /**
1249
1394
  * Returns true if the provided queries point to the same collection and apply
1250
1395
  * the same constraints.
@@ -1253,7 +1398,7 @@ declare function Tl(t: any, e: any): () => void;
1253
1398
  * @param right - A `Query` to compare.
1254
1399
  * @returns true if the references point to the same location in the same
1255
1400
  * Firestore database.
1256
- */ declare function ra(t: any, e: any): boolean;
1401
+ */ declare function ba(t: any, e: any): boolean;
1257
1402
  /**
1258
1403
  * Returns true if the provided references are equal.
1259
1404
  *
@@ -1261,7 +1406,7 @@ declare function Tl(t: any, e: any): () => void;
1261
1406
  * @param right - A reference to compare.
1262
1407
  * @returns true if the references point to the same location in the same
1263
1408
  * Firestore database.
1264
- */ declare function ia(t: any, e: any): boolean;
1409
+ */ declare function Ra(t: any, e: any): boolean;
1265
1410
  /**
1266
1411
  * Executes the given `updateFunction` and then attempts to commit the changes
1267
1412
  * applied within the transaction. If any document read within the transaction
@@ -1280,12 +1425,12 @@ declare function Tl(t: any, e: any): () => void;
1280
1425
  * (the `updateFunction` returned a failed promise), the promise returned by the
1281
1426
  * `updateFunction `is returned here. Otherwise, if the transaction failed, a
1282
1427
  * rejected promise with the corresponding failure error is returned.
1283
- */ declare function Dl(t: any, e: any, n: any): Promise<any>;
1428
+ */ declare function nf(t: any, e: any, n: any): Promise<any>;
1284
1429
  /**
1285
1430
  * Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
1286
1431
  * include a server-generated timestamp in the written data.
1287
- */ declare function xl(): wh;
1288
- declare function ml(t: any, e: any, n: any): Promise<any>;
1432
+ */ declare function rf(): Oh;
1433
+ declare function Ul(t: any, e: any, n: any): Promise<any>;
1289
1434
  /**
1290
1435
  * @license
1291
1436
  * Copyright 2021 Google LLC
@@ -1301,7 +1446,7 @@ declare function ml(t: any, e: any, n: any): Promise<any>;
1301
1446
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1302
1447
  * See the License for the specific language governing permissions and
1303
1448
  * limitations under the License.
1304
- */ declare function Fl(t: any, e: any): Promise<any>;
1449
+ */ declare function hf(t: any, e: any): Promise<any>;
1305
1450
  /**
1306
1451
  * Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
1307
1452
  *
@@ -1321,9 +1466,9 @@ declare function ml(t: any, e: any, n: any): Promise<any>;
1321
1466
  * @param left - A snapshot to compare.
1322
1467
  * @param right - A snapshot to compare.
1323
1468
  * @returns true if the snapshots are equal.
1324
- */ declare function cl(t: any, e: any): any;
1325
- declare function jh(...t: any[]): Gh;
1326
- declare function Qh(...t: any[]): Gh;
1469
+ */ declare function kl(t: any, e: any): any;
1470
+ declare function ml(...t: any[]): _l;
1471
+ declare function wl(...t: any[]): _l;
1327
1472
  /**
1328
1473
  * Terminates the provided {@link Firestore} instance.
1329
1474
  *
@@ -1345,8 +1490,8 @@ declare function Qh(...t: any[]): Gh;
1345
1490
  *
1346
1491
  * @returns A `Promise` that is resolved when the instance has been successfully
1347
1492
  * terminated.
1348
- */ declare function Ja(t: any): any;
1349
- declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1493
+ */ declare function mh(t: any): any;
1494
+ declare function Kl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1350
1495
  /**
1351
1496
  * Waits until all currently pending writes for the active user have been
1352
1497
  * acknowledged by the backend.
@@ -1362,18 +1507,18 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1362
1507
  *
1363
1508
  * @returns A `Promise` which resolves when all currently pending writes have been
1364
1509
  * acknowledged by the backend.
1365
- */ declare function Wa(t: any): Promise<any>;
1510
+ */ declare function dh(t: any): Promise<any>;
1366
1511
  /**
1367
- * Creates a {@link QueryConstraint} that enforces that documents must contain the
1368
- * specified field and that the value should satisfy the relation constraint
1369
- * provided.
1512
+ * Creates a {@link QueryFieldFilterConstraint} that enforces that documents
1513
+ * must contain the specified field and that the value should satisfy the
1514
+ * relation constraint provided.
1370
1515
  *
1371
1516
  * @param fieldPath - The path to compare
1372
1517
  * @param opStr - The operation string (e.g "&lt;", "&lt;=", "==", "&lt;",
1373
1518
  * "&lt;=", "!=").
1374
1519
  * @param value - The value for comparison
1375
- * @returns The created {@link Query}.
1376
- */ declare function $h(t: any, e: any, n: any): Fh;
1520
+ * @returns The created {@link QueryFieldFilterConstraint}.
1521
+ */ declare function rl(t: any, e: any, n: any): il;
1377
1522
  /**
1378
1523
  * @license
1379
1524
  * Copyright 2020 Google LLC
@@ -1400,7 +1545,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1400
1545
  *
1401
1546
  * @returns A {@link WriteBatch} that can be used to atomically execute multiple
1402
1547
  * writes.
1403
- */ declare function Ml(t: any): vl;
1548
+ */ declare function af(t: any): Zl;
1404
1549
  /**
1405
1550
  * @license
1406
1551
  * Copyright 2020 Google LLC
@@ -1425,7 +1570,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1425
1570
  * For a `DocumentSnapshot` that points to a non-existing document, any data
1426
1571
  * access will return 'undefined'. You can use the `exists()` method to
1427
1572
  * explicitly verify a document's existence.
1428
- */ declare class Ch {
1573
+ */ declare class Yh {
1429
1574
  /** @hideconstructor protected */
1430
1575
  constructor(t: any, e: any, n: any, s: any, i: any);
1431
1576
  _firestore: any;
@@ -1436,7 +1581,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1436
1581
  /** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
1437
1582
  /**
1438
1583
  * The `DocumentReference` for the document included in the `DocumentSnapshot`.
1439
- */ get ref(): Xc;
1584
+ */ get ref(): ya;
1440
1585
  /**
1441
1586
  * Signals whether or not the document at the snapshot's location exists.
1442
1587
  *
@@ -1480,7 +1625,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1480
1625
  * The Cloud Firestore service interface.
1481
1626
  *
1482
1627
  * Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
1483
- */ declare class Jc {
1628
+ */ declare class ma {
1484
1629
  /** @hideconstructor */
1485
1630
  constructor(t: any, e: any, n: any, s: any);
1486
1631
  _authCredentials: any;
@@ -1492,7 +1637,7 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1492
1637
  */
1493
1638
  type: string;
1494
1639
  _persistenceKey: string;
1495
- _settings: Hc;
1640
+ _settings: wa;
1496
1641
  _settingsFrozen: boolean;
1497
1642
  /**
1498
1643
  * The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
@@ -1501,14 +1646,14 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1501
1646
  get _initialized(): boolean;
1502
1647
  get _terminated(): boolean;
1503
1648
  _setSettings(t: any): void;
1504
- _getSettings(): Hc;
1505
- _freezeSettings(): Hc;
1649
+ _getSettings(): wa;
1650
+ _freezeSettings(): wa;
1506
1651
  _delete(): Promise<void>;
1507
1652
  _terminateTask: Promise<void> | undefined;
1508
1653
  /** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
1509
1654
  app: any;
1510
1655
  databaseId: any;
1511
- settings: Hc;
1656
+ settings: wa;
1512
1657
  };
1513
1658
  /**
1514
1659
  * Terminates all components used by this client. Subclasses can override
@@ -1518,16 +1663,16 @@ declare function gl(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1518
1663
  * Only ever called once.
1519
1664
  */ _terminate(): Promise<void>;
1520
1665
  }
1521
- declare class ka {
1666
+ declare class th {
1522
1667
  Bc: Promise<void>;
1523
1668
  Lc: any[];
1524
- Uc: boolean;
1525
- qc: any[];
1669
+ qc: boolean;
1670
+ Uc: any[];
1526
1671
  Kc: any;
1527
1672
  Gc: boolean;
1528
1673
  Qc: boolean;
1529
1674
  jc: any[];
1530
- xo: tu;
1675
+ xo: Iu;
1531
1676
  Wc: () => void;
1532
1677
  get isShuttingDown(): boolean;
1533
1678
  /**
@@ -1543,7 +1688,7 @@ declare class ka {
1543
1688
  * reschedules with backoff.
1544
1689
  */ Jc(): Promise<void>;
1545
1690
  Hc(t: any): Promise<any>;
1546
- enqueueAfterDelay(t: any, e: any, n: any): Mu;
1691
+ enqueueAfterDelay(t: any, e: any, n: any): nc;
1547
1692
  zc(): void;
1548
1693
  verifyOperationInProgress(): void;
1549
1694
  /**
@@ -1582,20 +1727,50 @@ import { FirebaseError as c } from "@firebase/util/dist/src/errors";
1582
1727
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1583
1728
  * See the License for the specific language governing permissions and
1584
1729
  * limitations under the License.
1585
- */ declare class U {
1730
+ */ declare class q {
1586
1731
  promise: Promise<any>;
1587
1732
  resolve: (value: any) => void;
1588
1733
  reject: (reason?: any) => void;
1589
1734
  }
1735
+ /**
1736
+ * An `AppliableConstraint` is an abstraction of a constraint that can be applied
1737
+ * to a Firestore query.
1738
+ */ declare class el {
1739
+ }
1740
+ declare class Re extends Ae {
1741
+ /**
1742
+ * Creates a filter based on the provided arguments.
1743
+ */ static create(t: any, e: any, n: any): Re | Oe | qe;
1744
+ static createKeyFieldInFilter(t: any, e: any, n: any): Oe | Me;
1745
+ constructor(t: any, e: any, n: any);
1746
+ field: any;
1747
+ op: any;
1748
+ value: any;
1749
+ matches(t: any): boolean | void;
1750
+ matchesComparison(t: any): boolean | void;
1751
+ isInequality(): boolean;
1752
+ getFlattenedFilters(): Re[];
1753
+ getFilters(): Re[];
1754
+ getFirstInequalityField(): any;
1755
+ }
1756
+ /** Filter that matches on key fields within an array. */ declare class Oe extends Re {
1757
+ constructor(t: any, e: any);
1758
+ keys: any;
1759
+ matches(t: any): any;
1760
+ }
1761
+ /** A Filter that implements the array-contains-any operator. */ declare class qe extends Re {
1762
+ constructor(t: any, e: any);
1763
+ matches(t: any): any;
1764
+ }
1590
1765
  /**
1591
1766
  * Helper for parsing raw user input (provided via the API) into internal model
1592
1767
  * classes.
1593
- */ declare class hh {
1768
+ */ declare class Dh {
1594
1769
  constructor(t: any, e: any, n: any);
1595
1770
  databaseId: any;
1596
1771
  ignoreUndefinedProperties: any;
1597
- It: any;
1598
- /** Creates a new top-level parse context. */ da(t: any, e: any, n: any, s?: boolean): ah;
1772
+ yt: any;
1773
+ /** Creates a new top-level parse context. */ da(t: any, e: any, n: any, s?: boolean): Sh;
1599
1774
  }
1600
1775
  declare class z {
1601
1776
  constructor(t: any);
@@ -1643,68 +1818,32 @@ declare class it {
1643
1818
  forEach(t: any): void;
1644
1819
  toArray(): any;
1645
1820
  }
1646
- declare class gh extends sh {
1821
+ declare class Fh extends Ah {
1647
1822
  constructor(t: any, e: any);
1648
1823
  _a: any;
1649
- _toFieldTransform(t: any): xn;
1824
+ _toFieldTransform(t: any): Un;
1650
1825
  isEqual(t: any): boolean;
1651
1826
  }
1652
- declare class mh extends sh {
1827
+ declare class Mh extends Ah {
1653
1828
  constructor(t: any, e: any);
1654
1829
  _a: any;
1655
- _toFieldTransform(t: any): xn;
1830
+ _toFieldTransform(t: any): Un;
1656
1831
  isEqual(t: any): boolean;
1657
1832
  }
1658
- declare class dh extends sh {
1833
+ declare class Nh extends Ah {
1659
1834
  _toFieldTransform(t: any): null;
1660
1835
  isEqual(t: any): boolean;
1661
1836
  }
1662
- declare class Wh extends Oh {
1663
- constructor(t: any, e: any, n: any);
1664
- type: any;
1665
- Ea: any;
1666
- Aa: any;
1667
- _apply(t: any): Zc;
1668
- }
1669
- declare class yh extends sh {
1837
+ declare class $h extends Ah {
1670
1838
  constructor(t: any, e: any);
1671
1839
  wa: any;
1672
- _toFieldTransform(t: any): xn;
1840
+ _toFieldTransform(t: any): Un;
1673
1841
  isEqual(t: any): boolean;
1674
1842
  }
1675
- declare class Uh extends Oh {
1676
- constructor(t: any, e: any, n: any);
1677
- type: any;
1678
- Ia: any;
1679
- Ta: any;
1680
- _apply(t: any): Zc;
1681
- }
1682
- declare class Bh extends Oh {
1683
- constructor(t: any, e: any);
1684
- ma: any;
1685
- pa: any;
1686
- type: string;
1687
- _apply(t: any): Zc;
1688
- }
1689
- declare class wh extends sh {
1690
- _toFieldTransform(t: any): xn;
1843
+ declare class Oh extends Ah {
1844
+ _toFieldTransform(t: any): Un;
1691
1845
  isEqual(t: any): boolean;
1692
1846
  }
1693
- declare class Gh extends Oh {
1694
- constructor(t: any, e: any, n: any);
1695
- type: any;
1696
- Ea: any;
1697
- Aa: any;
1698
- _apply(t: any): Zc;
1699
- }
1700
- declare class Fh extends Oh {
1701
- constructor(t: any, e: any, n: any);
1702
- ma: any;
1703
- ga: any;
1704
- ya: any;
1705
- type: string;
1706
- _apply(t: any): Zc;
1707
- }
1708
1847
  /**
1709
1848
  * An instance map that ensures only one Datastore exists per Firestore
1710
1849
  * instance.
@@ -1714,7 +1853,7 @@ declare class Fh extends Oh {
1714
1853
  * user-supplied `FirestoreSettings` object. This is a separate type so that
1715
1854
  * defaults can be supplied and the value can be checked for equality.
1716
1855
  */
1717
- declare class Hc {
1856
+ declare class wa {
1718
1857
  constructor(t: any);
1719
1858
  host: any;
1720
1859
  ssl: any;
@@ -1738,7 +1877,7 @@ declare class Hc {
1738
1877
  * base delay. This prevents clients from accidentally synchronizing their
1739
1878
  * delays causing spikes of load to the backend.
1740
1879
  */
1741
- declare class tu {
1880
+ declare class Iu {
1742
1881
  constructor(t: any, e: any, n?: number, s?: number, i?: number);
1743
1882
  Hs: any;
1744
1883
  timerId: any;
@@ -1796,7 +1935,7 @@ declare class tu {
1796
1935
  * in newer versions of TypeScript defines `finally`, which is not available in
1797
1936
  * IE.
1798
1937
  */
1799
- declare class Mu {
1938
+ declare class nc {
1800
1939
  /**
1801
1940
  * Creates and returns a DelayedOperation that has been scheduled to be
1802
1941
  * executed on the provided asyncQueue after the provided delayMs.
@@ -1810,14 +1949,14 @@ declare class Mu {
1810
1949
  * from its delayedOperations list.
1811
1950
  * PORTING NOTE: This exists to prevent making removeDelayedOperation() and
1812
1951
  * the DelayedOperation class public.
1813
- */ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): Mu;
1952
+ */ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): nc;
1814
1953
  constructor(t: any, e: any, n: any, s: any, i: any);
1815
1954
  asyncQueue: any;
1816
1955
  timerId: any;
1817
1956
  targetTimeMs: any;
1818
1957
  op: any;
1819
1958
  removalCallback: any;
1820
- deferred: U;
1959
+ deferred: q;
1821
1960
  then: <TResult1 = any, TResult2 = never>(onfulfilled?: ((value: any) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
1822
1961
  /**
1823
1962
  * Starts the timer. This is called immediately after construction by
@@ -1838,7 +1977,29 @@ declare class Mu {
1838
1977
  handleDelayElapsed(): void;
1839
1978
  clearTimeout(): void;
1840
1979
  }
1841
- /** A "context" object passed around while parsing user data. */ declare class ah {
1980
+ /**
1981
+ * @license
1982
+ * Copyright 2022 Google LLC
1983
+ *
1984
+ * Licensed under the Apache License, Version 2.0 (the "License");
1985
+ * you may not use this file except in compliance with the License.
1986
+ * You may obtain a copy of the License at
1987
+ *
1988
+ * http://www.apache.org/licenses/LICENSE-2.0
1989
+ *
1990
+ * Unless required by applicable law or agreed to in writing, software
1991
+ * distributed under the License is distributed on an "AS IS" BASIS,
1992
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1993
+ * See the License for the specific language governing permissions and
1994
+ * limitations under the License.
1995
+ */ declare class Ae {
1996
+ }
1997
+ /** Filter that matches on key fields not present within an array. */ declare class Me extends Re {
1998
+ constructor(t: any, e: any);
1999
+ keys: any;
2000
+ matches(t: any): boolean;
2001
+ }
2002
+ /** A "context" object passed around while parsing user data. */ declare class Sh {
1842
2003
  /**
1843
2004
  * Initializes a ParseContext with the given source and path.
1844
2005
  *
@@ -1860,16 +2021,16 @@ declare class Mu {
1860
2021
  constructor(t: any, e: any, n: any, s: any, i: any, r: any);
1861
2022
  settings: any;
1862
2023
  databaseId: any;
1863
- It: any;
2024
+ yt: any;
1864
2025
  ignoreUndefinedProperties: any;
1865
2026
  fieldTransforms: any;
1866
2027
  fieldMask: any;
1867
2028
  get path(): any;
1868
2029
  get sa(): any;
1869
- /** Returns a new context with the specified settings overwritten. */ ia(t: any): ah;
1870
- ra(t: any): ah;
1871
- ca(t: any): ah;
1872
- aa(t: any): ah;
2030
+ /** Returns a new context with the specified settings overwritten. */ ia(t: any): Sh;
2031
+ ra(t: any): Sh;
2032
+ ca(t: any): Sh;
2033
+ aa(t: any): Sh;
1873
2034
  ha(t: any): L;
1874
2035
  /** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
1875
2036
  na(): void;
@@ -1891,9 +2052,9 @@ declare class Mu {
1891
2052
  * See the License for the specific language governing permissions and
1892
2053
  * limitations under the License.
1893
2054
  */
1894
- /** A field path and the TransformOperation to perform upon it. */ declare class xn {
2055
+ /** A field path and the TransformOperation to perform upon it. */ declare class Un {
1895
2056
  constructor(t: any, e: any);
1896
2057
  field: any;
1897
2058
  transform: any;
1898
2059
  }
1899
- export { tl as AbstractUserDataWriter, aa as AggregateField, ha as AggregateQuerySnapshot, th as Bytes, Fa as CACHE_SIZE_UNLIMITED, ta as CollectionReference, Xc as DocumentReference, il as DocumentSnapshot, eh as FieldPath, sh as FieldValue, $a as Firestore, L as FirestoreError, ih as GeoPoint, Ma as LoadBundleTask, Zc as Query, Oh as QueryConstraint, rl as QueryDocumentSnapshot, ol as QuerySnapshot, sl as SnapshotMetadata, nt as Timestamp, Sl as Transaction, vl as WriteBatch, ne as _DatabaseId, ct as _DocumentKey, J as _EmptyAppCheckTokenProvider, K as _EmptyAuthCredentialsProvider, ut as _FieldPath, jc as _cast, F as _debugAssert, jt as _isBase64Available, N as _logWarn, qc as _validateIsNotUsedTogether, pl as addDoc, Rl as aggregateQuerySnapshotEqual, kl as arrayRemove, Nl as arrayUnion, ja as clearIndexedDbPersistence, ea as collection, na as collectionGroup, Yc as connectFirestoreEmulator, yl as deleteDoc, Cl as deleteField, Ha as disableNetwork, sa as doc, nh as documentId, Ka as enableIndexedDbPersistence, Ga as enableMultiTabIndexedDbPersistence, za as enableNetwork, Hh as endAt, zh as endBefore, Ua as ensureFirestoreConfigured, El as executeWrite, bl as getCountFromServer, al as getDoc, ll as getDocFromCache, fl as getDocFromServer, dl as getDocs, _l as getDocsFromCache, wl as getDocsFromServer, La as getFirestore, Ol as increment, Ba as initializeFirestore, qh as limit, Kh as limitToLast, Ya as loadBundle, Xa as namedQuery, Il as onSnapshot, Tl as onSnapshotsInSync, Lh as orderBy, Mh as query, ra as queryEqual, ia as refEqual, Dl as runTransaction, xl as serverTimestamp, ml as setDoc, Fl as setIndexConfiguration, D as setLogLevel, cl as snapshotEqual, jh as startAfter, Qh as startAt, Ja as terminate, gl as updateDoc, Wa as waitForPendingWrites, $h as where, Ml as writeBatch };
2060
+ export { Pl as AbstractUserDataWriter, Sa as AggregateField, Da as AggregateQuerySnapshot, Ih as Bytes, sh as CACHE_SIZE_UNLIMITED, Ia as CollectionReference, ya as DocumentReference, Dl as DocumentSnapshot, Th as FieldPath, Ah as FieldValue, ih as Firestore, L as FirestoreError, Rh as GeoPoint, nh as LoadBundleTask, pa as Query, ol as QueryCompositeFilterConstraint, nl as QueryConstraint, Cl as QueryDocumentSnapshot, gl as QueryEndAtConstraint, il as QueryFieldFilterConstraint, ll as QueryLimitConstraint, al as QueryOrderByConstraint, xl as QuerySnapshot, _l as QueryStartAtConstraint, Sl as SnapshotMetadata, nt as Timestamp, ef as Transaction, Zl as WriteBatch, Ft as _DatabaseId, ct as _DocumentKey, J as _EmptyAppCheckTokenProvider, K as _EmptyAuthCredentialsProvider, ut as _FieldPath, fa as _cast, F as _debugAssert, Gt as _isBase64Available, N as _logWarn, ca as _validateIsNotUsedTogether, Ql as addDoc, Jl as aggregateQuerySnapshotEqual, cl as and, uf as arrayRemove, of as arrayUnion, fh as clearIndexedDbPersistence, Ta as collection, Ea as collectionGroup, ga as connectFirestoreEmulator, Gl as deleteDoc, sf as deleteField, wh as disableNetwork, Aa as doc, Eh as documentId, ah as enableIndexedDbPersistence, hh as enableMultiTabIndexedDbPersistence, _h as enableNetwork, pl as endAt, yl as endBefore, uh as ensureFirestoreConfigured, zl as executeWrite, Yl as getCountFromServer, Ol as getDoc, Fl as getDocFromCache, $l as getDocFromServer, Bl as getDocs, Ll as getDocsFromCache, ql as getDocsFromServer, oh as getFirestore, cf as increment, rh as initializeFirestore, fl as limit, dl as limitToLast, gh as loadBundle, yh as namedQuery, jl as onSnapshot, Wl as onSnapshotsInSync, ul as or, hl as orderBy, sl as query, ba as queryEqual, Ra as refEqual, nf as runTransaction, rf as serverTimestamp, Ul as setDoc, hf as setIndexConfiguration, D as setLogLevel, kl as snapshotEqual, ml as startAfter, wl as startAt, mh as terminate, Kl as updateDoc, dh as waitForPendingWrites, rl as where, af as writeBatch };