@firebase/firestore 3.7.3 → 3.8.0-canary.06dc1364d

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 +275 -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 +4307 -3743
  27. package/dist/index.esm2017.js.map +1 -1
  28. package/dist/index.esm5.js +4994 -4410
  29. package/dist/index.esm5.js.map +1 -1
  30. package/dist/index.node.cjs.js +1670 -890
  31. package/dist/index.node.cjs.js.map +1 -1
  32. package/dist/index.node.mjs +1663 -891
  33. package/dist/index.node.mjs.map +1 -1
  34. package/dist/index.rn.js +4532 -3968
  35. package/dist/index.rn.js.map +1 -1
  36. package/dist/internal.d.ts +332 -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 +275 -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 +2093 -1793
  61. package/dist/lite/index.browser.esm2017.js.map +1 -1
  62. package/dist/lite/index.browser.esm5.js +2241 -2000
  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 +2214 -1802
  66. package/dist/lite/index.node.cjs.js.map +1 -1
  67. package/dist/lite/index.node.mjs +2207 -1803
  68. package/dist/lite/index.node.mjs.map +1 -1
  69. package/dist/lite/index.rn.esm2017.js +2079 -1778
  70. package/dist/lite/index.rn.esm2017.js.map +1 -1
  71. package/dist/lite/internal.d.ts +330 -66
  72. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +324 -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 +275 -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 +373 -210
  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 +275 -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
@@ -33,13 +33,13 @@
33
33
  /**
34
34
  * Represents an aggregation that can be performed by Firestore.
35
35
  */
36
- declare class yn {
36
+ declare class Tn {
37
37
  /** A type string to uniquely identify instances of this class. */
38
38
  type: string;
39
39
  }
40
40
  /**
41
41
  * The results of executing an aggregation query.
42
- */ declare class _n {
42
+ */ declare class An {
43
43
  /** @hideconstructor */
44
44
  constructor(t: any, e: any);
45
45
  _data: any;
@@ -76,18 +76,18 @@ declare class yn {
76
76
  */
77
77
  /**
78
78
  * An immutable object representing an array of bytes.
79
- */ declare class Vn {
79
+ */ declare class qn {
80
80
  /**
81
81
  * Creates a new `Bytes` object from the given Base64 string, converting it to
82
82
  * bytes.
83
83
  *
84
84
  * @param base64 - The Base64 string used to create the `Bytes` object.
85
- */ static fromBase64String(t: any): Vn;
85
+ */ static fromBase64String(t: any): qn;
86
86
  /**
87
87
  * Creates a new `Bytes` object from the given Uint8Array.
88
88
  *
89
89
  * @param array - The Uint8Array used to create the `Bytes` object.
90
- */ static fromUint8Array(t: any): Vn;
90
+ */ static fromUint8Array(t: any): qn;
91
91
  /** @hideconstructor */
92
92
  constructor(t: any);
93
93
  _byteString: any;
@@ -116,7 +116,7 @@ declare class yn {
116
116
  /**
117
117
  * A `CollectionReference` object can be used for adding documents, getting
118
118
  * document references, and querying for documents (using {@link query}).
119
- */ declare class En extends bn {
119
+ */ declare class $n extends Vn {
120
120
  _path: any;
121
121
  /** The collection's identifier. */ get id(): any;
122
122
  /**
@@ -126,7 +126,8 @@ declare class yn {
126
126
  /**
127
127
  * A reference to the containing `DocumentReference` if this is a
128
128
  * subcollection. If this isn't a subcollection, the reference is null.
129
- */ get parent(): vn | null;
129
+ */ get parent(): Pn | null;
130
+ withConverter(t: any): $n;
130
131
  }
131
132
  /**
132
133
  * @license
@@ -148,7 +149,7 @@ declare class yn {
148
149
  * A `DocumentReference` refers to a document location in a Firestore database
149
150
  * and can be used to write, read, or listen to the location. The document at
150
151
  * the referenced location may or may not exist.
151
- */ declare class vn {
152
+ */ declare class Pn {
152
153
  /** @hideconstructor */
153
154
  constructor(t: any, e: any, n: any);
154
155
  converter: any;
@@ -166,8 +167,8 @@ declare class yn {
166
167
  */ get path(): any;
167
168
  /**
168
169
  * The collection this `DocumentReference` belongs to.
169
- */ get parent(): En;
170
- withConverter(t: any): vn;
170
+ */ get parent(): $n;
171
+ withConverter(t: any): Pn;
171
172
  }
172
173
  /**
173
174
  * @license
@@ -193,7 +194,7 @@ declare class yn {
193
194
  * For a `DocumentSnapshot` that points to a non-existing document, any data
194
195
  * access will return 'undefined'. You can use the `exists()` method to
195
196
  * explicitly verify a document's existence.
196
- */ declare class ir {
197
+ */ declare class fr {
197
198
  /** @hideconstructor protected */
198
199
  constructor(t: any, e: any, n: any, r: any, s: any);
199
200
  _firestore: any;
@@ -204,7 +205,7 @@ declare class yn {
204
205
  /** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
205
206
  /**
206
207
  * The `DocumentReference` for the document included in the `DocumentSnapshot`.
207
- */ get ref(): vn;
208
+ */ get ref(): Pn;
208
209
  /**
209
210
  * Signals whether or not the document at the snapshot's location exists.
210
211
  *
@@ -251,7 +252,7 @@ declare class yn {
251
252
  *
252
253
  * Create a `FieldPath` by providing field names. If more than one field
253
254
  * name is provided, the path will point to a nested field in a document.
254
- */ declare class Nn {
255
+ */ declare class On {
255
256
  /**
256
257
  * Creates a `FieldPath` from the provided field names. If more than one field
257
258
  * name is provided, the path will point to a nested field in a document.
@@ -286,7 +287,7 @@ declare class yn {
286
287
  /**
287
288
  * Sentinel values that can be used when writing document fields with `set()`
288
289
  * or `update()`.
289
- */ declare class Dn {
290
+ */ declare class Cn {
290
291
  /**
291
292
  * @param _methodName - The public API endpoint that returns this class.
292
293
  * @hideconstructor
@@ -314,7 +315,7 @@ declare class yn {
314
315
  * The Cloud Firestore service interface.
315
316
  *
316
317
  * Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
317
- */ declare class fn {
318
+ */ declare class _n {
318
319
  /** @hideconstructor */
319
320
  constructor(t: any, e: any, n: any, r: any);
320
321
  _authCredentials: any;
@@ -326,7 +327,7 @@ declare class yn {
326
327
  */
327
328
  type: string;
328
329
  _persistenceKey: string;
329
- _settings: ln;
330
+ _settings: gn;
330
331
  _settingsFrozen: boolean;
331
332
  /**
332
333
  * The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
@@ -335,14 +336,14 @@ declare class yn {
335
336
  get _initialized(): boolean;
336
337
  get _terminated(): boolean;
337
338
  _setSettings(t: any): void;
338
- _getSettings(): ln;
339
- _freezeSettings(): ln;
339
+ _getSettings(): gn;
340
+ _freezeSettings(): gn;
340
341
  _delete(): Promise<void>;
341
342
  _terminateTask: Promise<void> | undefined;
342
343
  /** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
343
344
  app: any;
344
345
  databaseId: any;
345
- settings: ln;
346
+ settings: gn;
346
347
  };
347
348
  /**
348
349
  * Terminates all components used by this client. Subclasses can override
@@ -355,6 +356,8 @@ declare class yn {
355
356
  /** An error returned by a Firestore operation. */ declare class U extends c {
356
357
  /** @hideconstructor */
357
358
  constructor(t: any, e: any);
359
+ code: any;
360
+ message: any;
358
361
  }
359
362
  /**
360
363
  * @license
@@ -378,7 +381,7 @@ declare class yn {
378
381
  *
379
382
  * Latitude values are in the range of [-90, 90].
380
383
  * Longitude values are in the range of [-180, 180].
381
- */ declare class xn {
384
+ */ declare class Ln {
382
385
  /**
383
386
  * Creates a new immutable `GeoPoint` object with the provided latitude and
384
387
  * longitude values.
@@ -412,7 +415,7 @@ declare class yn {
412
415
  /**
413
416
  * A `Query` refers to a query which you can read or listen to. You can also
414
417
  * construct refined `Query` objects by adding filters and ordering.
415
- */ declare class bn {
418
+ */ declare class Vn {
416
419
  /** @hideconstructor protected */
417
420
  constructor(t: any, e: any, n: any);
418
421
  converter: any;
@@ -420,33 +423,37 @@ declare class yn {
420
423
  /** The type of this Firestore reference. */
421
424
  type: string;
422
425
  firestore: any;
423
- withConverter(t: any): bn;
426
+ withConverter(t: any): Vn;
424
427
  }
425
428
  /**
426
- * @license
427
- * Copyright 2020 Google LLC
428
- *
429
- * Licensed under the Apache License, Version 2.0 (the "License");
430
- * you may not use this file except in compliance with the License.
431
- * You may obtain a copy of the License at
432
- *
433
- * http://www.apache.org/licenses/LICENSE-2.0
434
- *
435
- * Unless required by applicable law or agreed to in writing, software
436
- * distributed under the License is distributed on an "AS IS" BASIS,
437
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
438
- * See the License for the specific language governing permissions and
439
- * limitations under the License.
440
- */
429
+ * A `QueryCompositeFilterConstraint` is used to narrow the set of documents
430
+ * returned by a Firestore query by performing the logical OR or AND of multiple
431
+ * {@link QueryFieldFilterConstraint}s or {@link QueryCompositeFilterConstraint}s.
432
+ * `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
433
+ * {@link and} and can then be passed to {@link query} to create a new query
434
+ * instance that also contains the `QueryCompositeFilterConstraint`.
435
+ * @internal TODO remove this internal tag with OR Query support in the server
436
+ */ declare class Er extends yr {
437
+ static _create(t: any, e: any): Er;
438
+ /**
439
+ * @internal
440
+ */
441
+ constructor(t: any, e: any);
442
+ type: any;
443
+ _queryConstraints: any;
444
+ _parse(t: any): any;
445
+ _apply(t: any): any;
446
+ _getQueryConstraints(): any;
447
+ _getOperator(): "and" | "or";
448
+ }
441
449
  /**
442
450
  * A `QueryConstraint` is used to narrow the set of documents returned by a
443
451
  * Firestore query. `QueryConstraint`s are created by invoking {@link where},
444
- * {@link orderBy}, {@link (startAt:1)}, {@link (startAfter:1)}, {@link
445
- * endBefore:1}, {@link (endAt:1)}, {@link limit} or {@link limitToLast} and
452
+ * {@link orderBy}, {@link startAt}, {@link startAfter}, {@link
453
+ * endBefore}, {@link endAt}, {@link limit}, {@link limitToLast} and
446
454
  * can then be passed to {@link query} to create a new query instance that
447
455
  * also contains this `QueryConstraint`.
448
- */
449
- declare class hr {
456
+ */ declare class gr extends yr {
450
457
  }
451
458
  /**
452
459
  * A `QueryDocumentSnapshot` contains data read from a document in your
@@ -458,7 +465,81 @@ declare class hr {
458
465
  * `DocumentSnapshot`. Since query results contain only existing documents, the
459
466
  * `exists` property will always be true and `data()` will never return
460
467
  * 'undefined'.
461
- */ declare class or extends ir {
468
+ */ declare class dr extends fr {
469
+ }
470
+ /**
471
+ * A `QueryEndAtConstraint` is used to exclude documents from the end of a
472
+ * result set returned by a Firestore query.
473
+ * `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
474
+ * {@link (endBefore:1)} and can then be passed to {@link query} to create a new
475
+ * query instance that also contains this `QueryEndAtConstraint`.
476
+ */ declare class xr extends gr {
477
+ static _create(t: any, e: any, n: any): xr;
478
+ /**
479
+ * @internal
480
+ */
481
+ constructor(t: any, e: any, n: any);
482
+ type: any;
483
+ _docOrFields: any;
484
+ _inclusive: any;
485
+ _apply(t: any): Vn;
486
+ }
487
+ /**
488
+ * A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
489
+ * a Firestore query by filtering on one or more document fields.
490
+ * `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
491
+ * be passed to {@link query} to create a new query instance that also contains
492
+ * this `QueryFieldFilterConstraint`.
493
+ */ declare class vr extends gr {
494
+ static _create(t: any, e: any, n: any): vr;
495
+ /**
496
+ * @internal
497
+ */
498
+ constructor(t: any, e: any, n: any);
499
+ _field: any;
500
+ _op: any;
501
+ _value: any;
502
+ /** The type of this query constraint */
503
+ type: string;
504
+ _apply(t: any): Vn;
505
+ _parse(t: any): Gt | Jt | re;
506
+ }
507
+ /**
508
+ * A `QueryLimitConstraint` is used to limit the number of documents returned by
509
+ * a Firestore query.
510
+ * `QueryLimitConstraint`s are created by invoking {@link limit} or
511
+ * {@link limitToLast} and can then be passed to {@link query} to create a new
512
+ * query instance that also contains this `QueryLimitConstraint`.
513
+ */ declare class Pr extends gr {
514
+ static _create(t: any, e: any, n: any): Pr;
515
+ /**
516
+ * @internal
517
+ */
518
+ constructor(t: any, e: any, n: any);
519
+ type: any;
520
+ _limit: any;
521
+ _limitType: any;
522
+ _apply(t: any): Vn;
523
+ }
524
+ /**
525
+ * A `QueryOrderByConstraint` is used to sort the set of documents returned by a
526
+ * Firestore query. `QueryOrderByConstraint`s are created by invoking
527
+ * {@link orderBy} and can then be passed to {@link query} to create a new query
528
+ * instance that also contains this `QueryOrderByConstraint`.
529
+ *
530
+ * Note: Documents that do not contain the orderBy field will not be present in
531
+ * the query result.
532
+ */ declare class Ar extends gr {
533
+ static _create(t: any, e: any): Ar;
534
+ /**
535
+ * @internal
536
+ */
537
+ constructor(t: any, e: any);
538
+ _field: any;
539
+ _direction: any;
540
+ /** The type of this query constraint */
541
+ type: string;
542
+ _apply(t: any): Vn;
462
543
  }
463
544
  /**
464
545
  * A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
@@ -466,7 +547,7 @@ declare class hr {
466
547
  * array via the `docs` property or enumerated using the `forEach` method. The
467
548
  * number of documents can be determined via the `empty` and `size`
468
549
  * properties.
469
- */ declare class ur {
550
+ */ declare class wr {
470
551
  /** @hideconstructor */
471
552
  constructor(t: any, e: any);
472
553
  _docs: any;
@@ -482,6 +563,23 @@ declare class hr {
482
563
  * @param thisArg - The `this` binding for the callback.
483
564
  */ forEach(t: any, e: any): void;
484
565
  }
566
+ /**
567
+ * A `QueryStartAtConstraint` is used to exclude documents from the start of a
568
+ * result set returned by a Firestore query.
569
+ * `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
570
+ * {@link (startAfter:1)} and can then be passed to {@link query} to create a
571
+ * new query instance that also contains this `QueryStartAtConstraint`.
572
+ */ declare class Nr extends gr {
573
+ static _create(t: any, e: any, n: any): Nr;
574
+ /**
575
+ * @internal
576
+ */
577
+ constructor(t: any, e: any, n: any);
578
+ type: any;
579
+ _docOrFields: any;
580
+ _inclusive: any;
581
+ _apply(t: any): Vn;
582
+ }
485
583
  /**
486
584
  * @license
487
585
  * Copyright 2017 Google LLC
@@ -512,19 +610,19 @@ declare class hr {
512
610
  * For examples and further specifications, refer to the
513
611
  * {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
514
612
  */
515
- declare class bt {
613
+ declare class Vt {
516
614
  /**
517
615
  * Creates a new timestamp with the current date, with millisecond precision.
518
616
  *
519
617
  * @returns a new timestamp representing the current date.
520
- */ static now(): bt;
618
+ */ static now(): Vt;
521
619
  /**
522
620
  * Creates a new timestamp from the given date.
523
621
  *
524
622
  * @param date - The date to initialize the `Timestamp` from.
525
623
  * @returns A new `Timestamp` representing the same point in time as the given
526
624
  * date.
527
- */ static fromDate(t: any): bt;
625
+ */ static fromDate(t: any): Vt;
528
626
  /**
529
627
  * Creates a new timestamp from the given number of milliseconds.
530
628
  *
@@ -532,7 +630,7 @@ declare class bt {
532
630
  * 1970-01-01T00:00:00Z.
533
631
  * @returns A new `Timestamp` representing the same point in time as the given
534
632
  * number of milliseconds.
535
- */ static fromMillis(t: any): bt;
633
+ */ static fromMillis(t: any): Vt;
536
634
  /**
537
635
  * Creates a new timestamp.
538
636
  *
@@ -579,26 +677,26 @@ declare class bt {
579
677
  * to be compared using the `>`, `<=`, `>=` and `>` operators.
580
678
  */ valueOf(): string;
581
679
  }
582
- declare class Zr {
680
+ declare class fs {
583
681
  /** @hideconstructor */
584
682
  constructor(t: any, e: any);
585
683
  _firestore: any;
586
684
  _transaction: any;
587
- _dataReader: Cn;
685
+ _dataReader: zn;
588
686
  /**
589
687
  * Reads the document referenced by the provided {@link DocumentReference}.
590
688
  *
591
689
  * @param documentRef - A reference to the document to be read.
592
690
  * @returns A `DocumentSnapshot` with the read data.
593
691
  */ get(t: any): any;
594
- set(t: any, e: any, n: any): Zr;
595
- update(t: any, e: any, n: any, ...r: any[]): Zr;
692
+ set(t: any, e: any, n: any): fs;
693
+ update(t: any, e: any, n: any, ...r: any[]): fs;
596
694
  /**
597
695
  * Deletes the document referred to by the provided {@link DocumentReference}.
598
696
  *
599
697
  * @param documentRef - A reference to the document to be deleted.
600
698
  * @returns This `Transaction` instance. Used for chaining method calls.
601
- */ delete(t: any): Zr;
699
+ */ delete(t: any): fs;
602
700
  }
603
701
  /**
604
702
  * @license
@@ -623,22 +721,22 @@ declare class Zr {
623
721
  * provides methods for adding writes to the write batch. None of the writes
624
722
  * will be committed (or visible locally) until {@link WriteBatch.commit} is
625
723
  * called.
626
- */ declare class Qr {
724
+ */ declare class rs {
627
725
  /** @hideconstructor */
628
726
  constructor(t: any, e: any);
629
727
  _firestore: any;
630
728
  _commitHandler: any;
631
729
  _mutations: any[];
632
730
  _committed: boolean;
633
- _dataReader: Cn;
634
- set(t: any, e: any, n: any): Qr;
635
- update(t: any, e: any, n: any, ...r: any[]): Qr;
731
+ _dataReader: zn;
732
+ set(t: any, e: any, n: any): rs;
733
+ update(t: any, e: any, n: any, ...r: any[]): rs;
636
734
  /**
637
735
  * Deletes the document referred to by the provided {@link DocumentReference}.
638
736
  *
639
737
  * @param documentRef - A reference to the document to be deleted.
640
738
  * @returns This `WriteBatch` instance. Used for chaining method calls.
641
- */ delete(t: any): Qr;
739
+ */ delete(t: any): rs;
642
740
  /**
643
741
  * Commits all of the writes in this write batch as a single atomic unit.
644
742
  *
@@ -667,7 +765,7 @@ declare class Zr {
667
765
  * @throws Error - If the provided input is not a valid Firestore document.
668
766
  * @returns A `Promise` resolved with a `DocumentReference` pointing to the
669
767
  * newly created document after it has been written to the backend.
670
- */ declare function Or(t: any, e: any): Promise<vn>;
768
+ */ declare function Yr(t: any, e: any): Promise<Pn>;
671
769
  /**
672
770
  * Compares two `AggregateQuerySnapshot` instances for equality.
673
771
  *
@@ -679,7 +777,18 @@ declare class Zr {
679
777
  *
680
778
  * @returns `true` if the objects are "equal", as defined above, or `false`
681
779
  * otherwise.
682
- */ declare function Cr(t: any, e: any): boolean;
780
+ */ declare function Jr(t: any, e: any): boolean;
781
+ /**
782
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
783
+ * the given filter constraints. A conjunction filter includes a document if it
784
+ * satisfies all of the given filters.
785
+ *
786
+ * @param queryConstraints - Optional. The list of
787
+ * {@link QueryFilterConstraint}s to perform a conjunction for. These must be
788
+ * created with calls to {@link where}, {@link or}, or {@link and}.
789
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
790
+ * @internal TODO remove this internal tag with OR Query support in the server
791
+ */ declare function Tr(...t: any[]): Er;
683
792
  /**
684
793
  * Returns a special value that can be used with {@link (setDoc:1)} or {@link
685
794
  * updateDoc:1} that tells the server to remove the given elements from any
@@ -690,7 +799,7 @@ declare class Zr {
690
799
  * @param elements - The elements to remove from the array.
691
800
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
692
801
  * `updateDoc()`
693
- */ declare function jr(...t: any[]): zn;
802
+ */ declare function es(...t: any[]): Xn;
694
803
  /**
695
804
  * Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
696
805
  * @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
@@ -702,8 +811,8 @@ declare class Zr {
702
811
  * @param elements - The elements to union into the array.
703
812
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
704
813
  * `updateDoc()`.
705
- */ declare function Ur(...t: any[]): Qn;
706
- declare function In(t: any, e: any, ...n: any[]): En;
814
+ */ declare function ts(...t: any[]): Jn;
815
+ declare function Nn(t: any, e: any, ...n: any[]): $n;
707
816
  /**
708
817
  * Creates and returns a new `Query` instance that includes all documents in the
709
818
  * database that are contained in a collection or subcollection with the
@@ -714,7 +823,7 @@ declare function In(t: any, e: any, ...n: any[]): En;
714
823
  * collection or subcollection with this ID as the last segment of its path
715
824
  * will be included. Cannot contain a slash.
716
825
  * @returns The created `Query`.
717
- */ declare function Tn(t: any, e: any): bn;
826
+ */ declare function Dn(t: any, e: any): Vn;
718
827
  /**
719
828
  * Modify this instance to communicate with the Cloud Firestore emulator.
720
829
  *
@@ -727,7 +836,7 @@ declare function In(t: any, e: any, ...n: any[]): En;
727
836
  * @param port - the emulator port (ex: 9000).
728
837
  * @param options.mockUserToken - the mock auth token to use for unit testing
729
838
  * Security Rules.
730
- */ declare function mn(t: any, e: any, n: any, r?: {}): void;
839
+ */ declare function En(t: any, e: any, n: any, r?: {}): void;
731
840
  /**
732
841
  * Deletes the document referred to by the specified `DocumentReference`.
733
842
  *
@@ -739,7 +848,7 @@ declare function In(t: any, e: any, ...n: any[]): En;
739
848
  * @param reference - A reference to the document to delete.
740
849
  * @returns A `Promise` resolved once the document has been successfully
741
850
  * deleted from the backend.
742
- */ declare function qr(t: any): Promise<void>;
851
+ */ declare function Kr(t: any): Promise<void>;
743
852
  /**
744
853
  * @license
745
854
  * Copyright 2020 Google LLC
@@ -759,14 +868,14 @@ declare function In(t: any, e: any, ...n: any[]): En;
759
868
  /**
760
869
  * Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
761
870
  * {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
762
- */ declare function Lr(): Un;
763
- declare function An(t: any, e: any, ...n: any[]): vn;
871
+ */ declare function Xr(): Kn;
872
+ declare function Fn(t: any, e: any, ...n: any[]): Pn;
764
873
  /**
765
874
  * Returns a special sentinel `FieldPath` to refer to the ID of a document.
766
875
  * It can be used in queries to sort or filter by the document ID.
767
- */ declare function $n(): Nn;
768
- declare function Tr(...t: any[]): Er;
769
- declare function Ir(...t: any[]): Er;
876
+ */ declare function kn(): On;
877
+ declare function qr(...t: any[]): xr;
878
+ declare function Sr(...t: any[]): xr;
770
879
  /**
771
880
  * @license
772
881
  * Copyright 2022 Google LLC
@@ -796,7 +905,7 @@ declare function Ir(...t: any[]): Er;
796
905
  * @returns A Promise that will be resolved with the count; the count can be
797
906
  * retrieved from `snapshot.data().count`, where `snapshot` is the
798
907
  * `AggregateQuerySnapshot` to which the returned Promise resolves.
799
- */ declare function kr(t: any): Promise<_n>;
908
+ */ declare function Hr(t: any): Promise<An>;
800
909
  /**
801
910
  * Reads the document referred to by the specified document reference.
802
911
  *
@@ -809,7 +918,7 @@ declare function Ir(...t: any[]): Er;
809
918
  * @param reference - The reference of the document to fetch.
810
919
  * @returns A Promise resolved with a `DocumentSnapshot` containing the current
811
920
  * document contents.
812
- */ declare function Dr(t: any): Promise<ir>;
921
+ */ declare function Qr(t: any): Promise<fr>;
813
922
  /**
814
923
  * Executes the query and returns the results as a {@link QuerySnapshot}.
815
924
  *
@@ -821,8 +930,8 @@ declare function Ir(...t: any[]): Er;
821
930
  *
822
931
  * @param query - The `Query` to execute.
823
932
  * @returns A Promise that will be resolved with the results of the query.
824
- */ declare function xr(t: any): Promise<ur>;
825
- declare function wn(e: any, n: any): import("../../lite").Firestore;
933
+ */ declare function zr(t: any): Promise<wr>;
934
+ declare function bn(e: any, n: any): import("../../lite").Firestore;
826
935
  /**
827
936
  * Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
828
937
  * @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
@@ -841,41 +950,49 @@ declare function wn(e: any, n: any): import("../../lite").Firestore;
841
950
  * @param n - The value to increment by.
842
951
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
843
952
  * `updateDoc()`
844
- */ declare function Br(t: any): Gn;
845
- declare function dn(t: any, e: any, n: any): import("../../lite").Firestore;
953
+ */ declare function ns(t: any): Zn;
954
+ declare function vn(t: any, e: any, n: any): import("../../lite").Firestore;
846
955
  /**
847
- * Creates a {@link QueryConstraint} that only returns the first matching documents.
956
+ * Creates a {@link QueryLimitConstraint} that only returns the first matching
957
+ * documents.
848
958
  *
849
959
  * @param limit - The maximum number of items to return.
850
- * @returns The created {@link Query}.
851
- */ declare function yr(t: any): pr;
960
+ * @returns The created {@link QueryLimitConstraint}.
961
+ */ declare function Vr(t: any): Pr;
852
962
  /**
853
- * Creates a {@link QueryConstraint} that only returns the last matching documents.
963
+ * Creates a {@link QueryLimitConstraint} that only returns the last matching
964
+ * documents.
854
965
  *
855
966
  * You must specify at least one `orderBy` clause for `limitToLast` queries,
856
967
  * otherwise an exception will be thrown during execution.
857
968
  *
858
969
  * @param limit - The maximum number of items to return.
859
- * @returns The created {@link Query}.
860
- */ declare function _r(t: any): pr;
970
+ * @returns The created {@link QueryLimitConstraint}.
971
+ */ declare function $r(t: any): Pr;
972
+ /**
973
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
974
+ * the given filter constraints. A disjunction filter includes a document if it
975
+ * satisfies any of the given filters.
976
+ *
977
+ * @param queryConstraints - Optional. The list of
978
+ * {@link QueryFilterConstraint}s to perform a disjunction for. These must be
979
+ * created with calls to {@link where}, {@link or}, or {@link and}.
980
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
981
+ * @internal TODO remove this internal tag with OR Query support in the server
982
+ */ declare function Ir(...t: any[]): Er;
861
983
  /**
862
- * Creates a {@link QueryConstraint} that sorts the query result by the
984
+ * Creates a {@link QueryOrderByConstraint} that sorts the query result by the
863
985
  * specified field, optionally in descending order instead of ascending.
864
986
  *
987
+ * Note: Documents that do not contain the specified field will not be present
988
+ * in the query result.
989
+ *
865
990
  * @param fieldPath - The field to sort by.
866
991
  * @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
867
992
  * not specified, order will be ascending.
868
- * @returns The created {@link Query}.
869
- */ declare function mr(t: any, e?: string): wr;
870
- /**
871
- * Creates a new immutable instance of {@link Query} that is extended to also include
872
- * additional query constraints.
873
- *
874
- * @param query - The {@link Query} instance to use as a base for the new constraints.
875
- * @param queryConstraints - The list of {@link QueryConstraint}s to apply.
876
- * @throws if any of the provided query constraints cannot be combined with the
877
- * existing or new constraints.
878
- */ declare function lr(t: any, ...e: any[]): any;
993
+ * @returns The created {@link QueryOrderByConstraint}.
994
+ */ declare function Rr(t: any, e?: string): Ar;
995
+ declare function _r(t: any, e: any, ...n: any[]): any;
879
996
  /**
880
997
  * Returns true if the provided queries point to the same collection and apply
881
998
  * the same constraints.
@@ -884,7 +1001,7 @@ declare function dn(t: any, e: any, n: any): import("../../lite").Firestore;
884
1001
  * @param right - A `Query` to compare.
885
1002
  * @returns true if the references point to the same location in the same
886
1003
  * Firestore database.
887
- */ declare function Pn(t: any, e: any): boolean;
1004
+ */ declare function Sn(t: any, e: any): boolean;
888
1005
  /**
889
1006
  * Returns true if the provided references are equal.
890
1007
  *
@@ -892,7 +1009,7 @@ declare function dn(t: any, e: any, n: any): import("../../lite").Firestore;
892
1009
  * @param right - A reference to compare.
893
1010
  * @returns true if the references point to the same location in the same
894
1011
  * Firestore database.
895
- */ declare function Rn(t: any, e: any): boolean;
1012
+ */ declare function xn(t: any, e: any): boolean;
896
1013
  /**
897
1014
  * Executes the given `updateFunction` and then attempts to commit the changes
898
1015
  * applied within the transaction. If any document read within the transaction
@@ -911,12 +1028,12 @@ declare function dn(t: any, e: any, n: any): import("../../lite").Firestore;
911
1028
  * (the `updateFunction` returned a failed promise), the promise returned by the
912
1029
  * `updateFunction `is returned here. Otherwise, if the transaction failed, a
913
1030
  * rejected promise with the corresponding failure error is returned.
914
- */ declare function ts(t: any, e: any, n: any): Promise<any>;
1031
+ */ declare function ds(t: any, e: any, n: any): Promise<any>;
915
1032
  /**
916
1033
  * Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
917
1034
  * include a server-generated timestamp in the written data.
918
- */ declare function Mr(): Bn;
919
- declare function Fr(t: any, e: any, n: any): Promise<void>;
1035
+ */ declare function Zr(): Hn;
1036
+ declare function Wr(t: any, e: any, n: any): Promise<void>;
920
1037
  /**
921
1038
  * Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
922
1039
  *
@@ -936,9 +1053,9 @@ declare function Fr(t: any, e: any, n: any): Promise<void>;
936
1053
  * @param left - A snapshot to compare.
937
1054
  * @param right - A snapshot to compare.
938
1055
  * @returns true if the snapshots are equal.
939
- */ declare function cr(t: any, e: any): any;
940
- declare function br(...t: any[]): gr;
941
- declare function vr(...t: any[]): gr;
1056
+ */ declare function mr(t: any, e: any): any;
1057
+ declare function Fr(...t: any[]): Nr;
1058
+ declare function Dr(...t: any[]): Nr;
942
1059
  /**
943
1060
  * Terminates the provided `Firestore` instance.
944
1061
  *
@@ -958,19 +1075,19 @@ declare function vr(...t: any[]): gr;
958
1075
  * @param firestore - The `Firestore` instance to terminate.
959
1076
  * @returns A `Promise` that is resolved when the instance has been successfully
960
1077
  * terminated.
961
- */ declare function pn(t: any): any;
962
- declare function Sr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
1078
+ */ declare function In(t: any): any;
1079
+ declare function Gr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
963
1080
  /**
964
- * Creates a {@link QueryConstraint} that enforces that documents must contain the
965
- * specified field and that the value should satisfy the relation constraint
966
- * provided.
1081
+ * Creates a {@link QueryFieldFilterConstraint} that enforces that documents
1082
+ * must contain the specified field and that the value should satisfy the
1083
+ * relation constraint provided.
967
1084
  *
968
1085
  * @param fieldPath - The path to compare
969
1086
  * @param opStr - The operation string (e.g "&lt;", "&lt;=", "==", "&lt;",
970
1087
  * "&lt;=", "!=").
971
1088
  * @param value - The value for comparison
972
- * @returns The created {@link Query}.
973
- */ declare function dr(t: any, e: any, n: any): fr;
1089
+ * @returns The created {@link QueryFieldFilterConstraint}.
1090
+ */ declare function br(t: any, e: any, n: any): vr;
974
1091
  /**
975
1092
  * Creates a write batch, used for performing multiple writes as a single
976
1093
  * atomic operation. The maximum number of writes allowed in a single WriteBatch
@@ -983,7 +1100,7 @@ declare function Sr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
983
1100
  *
984
1101
  * @returns A `WriteBatch` that can be used to atomically execute multiple
985
1102
  * writes.
986
- */ declare function Gr(t: any): Qr;
1103
+ */ declare function is(t: any): rs;
987
1104
  /**
988
1105
  * A dot-separated path for navigating sub-objects within a document.
989
1106
  * @internal
@@ -1022,7 +1139,7 @@ declare function Sr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
1022
1139
  * user-supplied `FirestoreSettings` object. This is a separate type so that
1023
1140
  * defaults can be supplied and the value can be checked for equality.
1024
1141
  */
1025
- declare class ln {
1142
+ declare class gn {
1026
1143
  constructor(t: any);
1027
1144
  host: any;
1028
1145
  ssl: any;
@@ -1035,78 +1152,89 @@ declare class ln {
1035
1152
  isEqual(t: any): boolean;
1036
1153
  }
1037
1154
  import { FirebaseError as c } from "@firebase/util/dist/src/errors";
1155
+ /**
1156
+ * @license
1157
+ * Copyright 2020 Google LLC
1158
+ *
1159
+ * Licensed under the Apache License, Version 2.0 (the "License");
1160
+ * you may not use this file except in compliance with the License.
1161
+ * You may obtain a copy of the License at
1162
+ *
1163
+ * http://www.apache.org/licenses/LICENSE-2.0
1164
+ *
1165
+ * Unless required by applicable law or agreed to in writing, software
1166
+ * distributed under the License is distributed on an "AS IS" BASIS,
1167
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1168
+ * See the License for the specific language governing permissions and
1169
+ * limitations under the License.
1170
+ */
1171
+ /**
1172
+ * An `AppliableConstraint` is an abstraction of a constraint that can be applied
1173
+ * to a Firestore query.
1174
+ */
1175
+ declare class yr {
1176
+ }
1177
+ declare class Gt extends Wt {
1178
+ /**
1179
+ * Creates a filter based on the provided arguments.
1180
+ */ static create(t: any, e: any, n: any): Gt | Jt | re;
1181
+ static createKeyFieldInFilter(t: any, e: any, n: any): Jt | Xt;
1182
+ constructor(t: any, e: any, n: any);
1183
+ field: any;
1184
+ op: any;
1185
+ value: any;
1186
+ matches(t: any): boolean | void;
1187
+ matchesComparison(t: any): boolean | void;
1188
+ isInequality(): boolean;
1189
+ getFlattenedFilters(): Gt[];
1190
+ getFilters(): Gt[];
1191
+ getFirstInequalityField(): any;
1192
+ }
1193
+ /** Filter that matches on key fields within an array. */ declare class Jt extends Gt {
1194
+ constructor(t: any, e: any);
1195
+ keys: any;
1196
+ matches(t: any): any;
1197
+ }
1198
+ /** A Filter that implements the array-contains-any operator. */ declare class re extends Gt {
1199
+ constructor(t: any, e: any);
1200
+ matches(t: any): any;
1201
+ }
1038
1202
  /**
1039
1203
  * Helper for parsing raw user input (provided via the API) into internal model
1040
1204
  * classes.
1041
- */ declare class Cn {
1205
+ */ declare class zn {
1042
1206
  constructor(t: any, e: any, n: any);
1043
1207
  databaseId: any;
1044
1208
  ignoreUndefinedProperties: any;
1045
- L: any;
1046
- /** Creates a new top-level parse context. */ dt(t: any, e: any, n: any, r?: boolean): kn;
1209
+ C: any;
1210
+ /** Creates a new top-level parse context. */ ft(t: any, e: any, n: any, r?: boolean): Qn;
1047
1211
  }
1048
- declare class zn extends Dn {
1212
+ declare class Xn extends Cn {
1049
1213
  constructor(t: any, e: any);
1050
- wt: any;
1051
- _toFieldTransform(t: any): Pe;
1214
+ dt: any;
1215
+ _toFieldTransform(t: any): De;
1052
1216
  isEqual(t: any): boolean;
1053
1217
  }
1054
- declare class Qn extends Dn {
1218
+ declare class Jn extends Cn {
1055
1219
  constructor(t: any, e: any);
1056
- wt: any;
1057
- _toFieldTransform(t: any): Pe;
1220
+ dt: any;
1221
+ _toFieldTransform(t: any): De;
1058
1222
  isEqual(t: any): boolean;
1059
1223
  }
1060
- declare class Un extends Dn {
1224
+ declare class Kn extends Cn {
1061
1225
  _toFieldTransform(t: any): null;
1062
1226
  isEqual(t: any): boolean;
1063
1227
  }
1064
- declare class Er extends hr {
1065
- constructor(t: any, e: any, n: any);
1066
- type: any;
1067
- Tt: any;
1068
- At: any;
1069
- _apply(t: any): bn;
1070
- }
1071
- declare class Gn extends Dn {
1228
+ declare class Zn extends Cn {
1072
1229
  constructor(t: any, e: any);
1073
- yt: any;
1074
- _toFieldTransform(t: any): Pe;
1230
+ wt: any;
1231
+ _toFieldTransform(t: any): De;
1075
1232
  isEqual(t: any): boolean;
1076
1233
  }
1077
- declare class pr extends hr {
1078
- constructor(t: any, e: any, n: any);
1079
- type: any;
1080
- Et: any;
1081
- It: any;
1082
- _apply(t: any): bn;
1083
- }
1084
- declare class wr extends hr {
1085
- constructor(t: any, e: any);
1086
- _t: any;
1087
- bt: any;
1088
- type: string;
1089
- _apply(t: any): bn;
1090
- }
1091
- declare class Bn extends Dn {
1092
- _toFieldTransform(t: any): Pe;
1234
+ declare class Hn extends Cn {
1235
+ _toFieldTransform(t: any): De;
1093
1236
  isEqual(t: any): boolean;
1094
1237
  }
1095
- declare class gr extends hr {
1096
- constructor(t: any, e: any, n: any);
1097
- type: any;
1098
- Tt: any;
1099
- At: any;
1100
- _apply(t: any): bn;
1101
- }
1102
- declare class fr extends hr {
1103
- constructor(t: any, e: any, n: any);
1104
- _t: any;
1105
- gt: any;
1106
- vt: any;
1107
- type: string;
1108
- _apply(t: any): bn;
1109
- }
1110
1238
  /**
1111
1239
  * Path represents an ordered sequence of string segments.
1112
1240
  */
@@ -1131,7 +1259,29 @@ declare class Z {
1131
1259
  forEach(t: any): void;
1132
1260
  toArray(): any;
1133
1261
  }
1134
- /** A "context" object passed around while parsing user data. */ declare class kn {
1262
+ /**
1263
+ * @license
1264
+ * Copyright 2022 Google LLC
1265
+ *
1266
+ * Licensed under the Apache License, Version 2.0 (the "License");
1267
+ * you may not use this file except in compliance with the License.
1268
+ * You may obtain a copy of the License at
1269
+ *
1270
+ * http://www.apache.org/licenses/LICENSE-2.0
1271
+ *
1272
+ * Unless required by applicable law or agreed to in writing, software
1273
+ * distributed under the License is distributed on an "AS IS" BASIS,
1274
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1275
+ * See the License for the specific language governing permissions and
1276
+ * limitations under the License.
1277
+ */ declare class Wt {
1278
+ }
1279
+ /** Filter that matches on key fields not present within an array. */ declare class Xt extends Gt {
1280
+ constructor(t: any, e: any);
1281
+ keys: any;
1282
+ matches(t: any): boolean;
1283
+ }
1284
+ /** A "context" object passed around while parsing user data. */ declare class Qn {
1135
1285
  /**
1136
1286
  * Initializes a ParseContext with the given source and path.
1137
1287
  *
@@ -1153,20 +1303,20 @@ declare class Z {
1153
1303
  constructor(t: any, e: any, n: any, r: any, s: any, i: any);
1154
1304
  settings: any;
1155
1305
  databaseId: any;
1156
- L: any;
1306
+ C: any;
1157
1307
  ignoreUndefinedProperties: any;
1158
1308
  fieldTransforms: any;
1159
1309
  fieldMask: any;
1160
1310
  get path(): any;
1161
- get rt(): any;
1162
- /** Returns a new context with the specified settings overwritten. */ st(t: any): kn;
1163
- it(t: any): kn;
1164
- ct(t: any): kn;
1165
- at(t: any): kn;
1166
- ht(t: any): U;
1311
+ get nt(): any;
1312
+ /** Returns a new context with the specified settings overwritten. */ rt(t: any): Qn;
1313
+ st(t: any): Qn;
1314
+ ut(t: any): Qn;
1315
+ ct(t: any): Qn;
1316
+ at(t: any): U;
1167
1317
  /** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
1168
- nt(): void;
1169
- ut(t: any): void;
1318
+ et(): void;
1319
+ ot(t: any): void;
1170
1320
  }
1171
1321
  /**
1172
1322
  * @license
@@ -1184,9 +1334,9 @@ declare class Z {
1184
1334
  * See the License for the specific language governing permissions and
1185
1335
  * limitations under the License.
1186
1336
  */
1187
- /** A field path and the TransformOperation to perform upon it. */ declare class Pe {
1337
+ /** A field path and the TransformOperation to perform upon it. */ declare class De {
1188
1338
  constructor(t: any, e: any);
1189
1339
  field: any;
1190
1340
  transform: any;
1191
1341
  }
1192
- export { yn as AggregateField, _n as AggregateQuerySnapshot, Vn as Bytes, En as CollectionReference, vn as DocumentReference, ir as DocumentSnapshot, Nn as FieldPath, Dn as FieldValue, fn as Firestore, U as FirestoreError, xn as GeoPoint, bn as Query, hr as QueryConstraint, or as QueryDocumentSnapshot, ur as QuerySnapshot, bt as Timestamp, Zr as Transaction, Qr as WriteBatch, Or as addDoc, Cr as aggregateQuerySnapshotEqual, jr as arrayRemove, Ur as arrayUnion, In as collection, Tn as collectionGroup, mn as connectFirestoreEmulator, qr as deleteDoc, Lr as deleteField, An as doc, $n as documentId, Tr as endAt, Ir as endBefore, kr as getCount, Dr as getDoc, xr as getDocs, wn as getFirestore, Br as increment, dn as initializeFirestore, yr as limit, _r as limitToLast, mr as orderBy, lr as query, Pn as queryEqual, Rn as refEqual, ts as runTransaction, Mr as serverTimestamp, Fr as setDoc, p as setLogLevel, cr as snapshotEqual, br as startAfter, vr as startAt, pn as terminate, Sr as updateDoc, dr as where, Gr as writeBatch };
1342
+ export { Tn as AggregateField, An as AggregateQuerySnapshot, qn as Bytes, $n as CollectionReference, Pn as DocumentReference, fr as DocumentSnapshot, On as FieldPath, Cn as FieldValue, _n as Firestore, U as FirestoreError, Ln as GeoPoint, Vn as Query, Er as QueryCompositeFilterConstraint, gr as QueryConstraint, dr as QueryDocumentSnapshot, xr as QueryEndAtConstraint, vr as QueryFieldFilterConstraint, Pr as QueryLimitConstraint, Ar as QueryOrderByConstraint, wr as QuerySnapshot, Nr as QueryStartAtConstraint, Vt as Timestamp, fs as Transaction, rs as WriteBatch, Yr as addDoc, Jr as aggregateQuerySnapshotEqual, Tr as and, es as arrayRemove, ts as arrayUnion, Nn as collection, Dn as collectionGroup, En as connectFirestoreEmulator, Kr as deleteDoc, Xr as deleteField, Fn as doc, kn as documentId, qr as endAt, Sr as endBefore, Hr as getCount, Qr as getDoc, zr as getDocs, bn as getFirestore, ns as increment, vn as initializeFirestore, Vr as limit, $r as limitToLast, Ir as or, Rr as orderBy, _r as query, Sn as queryEqual, xn as refEqual, ds as runTransaction, Zr as serverTimestamp, Wr as setDoc, p as setLogLevel, mr as snapshotEqual, Fr as startAfter, Dr as startAt, In as terminate, Gr as updateDoc, br as where, is as writeBatch };