@firebase/firestore 3.4.1-canary.0db840a09 → 3.4.1-canary.9ca74ee43

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.
@@ -66,7 +66,7 @@ l.MOCK_USER = new l("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let f = "9.6.1-canary.0db840a09";
69
+ let f = "9.6.1-canary.9ca74ee43";
70
70
 
71
71
  /**
72
72
  * @license
@@ -5941,7 +5941,7 @@ class jr {
5941
5941
  return n && r._setSettings(n), r;
5942
5942
  }), "PUBLIC")),
5943
5943
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
5944
- r("firestore-lite", "3.4.1-canary.0db840a09", "rn"), r("firestore-lite", "3.4.1-canary.0db840a09", "esm2017");
5944
+ r("firestore-lite", "3.4.1-canary.9ca74ee43", "rn"), r("firestore-lite", "3.4.1-canary.9ca74ee43", "esm2017");
5945
5945
 
5946
5946
  export { ve as Bytes, de as CollectionReference, le as DocumentReference, Ke as DocumentSnapshot, ge as FieldPath, Ee as FieldValue, oe as Firestore, k as FirestoreError, Te as GeoPoint, fe as Query, nr as QueryConstraint, Je as QueryDocumentSnapshot, Xe as QuerySnapshot, gt as Timestamp, jr as Transaction, Sr as WriteBatch, Rr as addDoc, $r as arrayRemove, Dr as arrayUnion, we as collection, me as collectionGroup, ae as connectFirestoreEmulator, Pr as deleteDoc, Vr as deleteField, pe as doc, be as documentId, mr as endAt, wr as endBefore, Er as getDoc, Tr as getDocs, ce as getFirestore, Fr as increment, ue as initializeFirestore, cr as limit, ar as limitToLast, or as orderBy, er as query, _e as queryEqual, ye as refEqual, Mr as runTransaction, Nr as serverTimestamp, Ir as setDoc, w as setLogLevel, Ze as snapshotEqual, fr as startAfter, lr as startAt, he as terminate, Ar as updateDoc, sr as where, xr as writeBatch };
5947
5947
  //# sourceMappingURL=index.rn.esm2017.js.map
@@ -16,18 +16,18 @@
16
16
  */
17
17
  /**
18
18
  * An immutable object representing an array of bytes.
19
- */ declare class ge {
19
+ */ declare class gn {
20
20
  /**
21
21
  * Creates a new `Bytes` object from the given Base64 string, converting it to
22
22
  * bytes.
23
23
  *
24
24
  * @param base64 - The Base64 string used to create the `Bytes` object.
25
- */ static fromBase64String(t: any): ge;
25
+ */ static fromBase64String(t: any): gn;
26
26
  /**
27
27
  * Creates a new `Bytes` object from the given Uint8Array.
28
28
  *
29
29
  * @param array - The Uint8Array used to create the `Bytes` object.
30
- */ static fromUint8Array(t: any): ge;
30
+ */ static fromUint8Array(t: any): gn;
31
31
  /** @hideconstructor */
32
32
  constructor(t: any);
33
33
  _byteString: any;
@@ -56,7 +56,7 @@
56
56
  /**
57
57
  * A `CollectionReference` object can be used for adding documents, getting
58
58
  * document references, and querying for documents (using {@link query}).
59
- */ declare class le extends he {
59
+ */ declare class ln extends hn {
60
60
  _path: any;
61
61
  /** The collection's identifier. */ get id(): any;
62
62
  /**
@@ -66,7 +66,7 @@
66
66
  /**
67
67
  * A reference to the containing `DocumentReference` if this is a
68
68
  * subcollection. If this isn't a subcollection, the reference is null.
69
- */ get parent(): ae | null;
69
+ */ get parent(): an | null;
70
70
  }
71
71
  /**
72
72
  * @license
@@ -105,9 +105,9 @@
105
105
  * and can be used to write, read, or listen to the location. The document at
106
106
  * the referenced location may or may not exist.
107
107
  */
108
- declare class ae {
108
+ declare class an {
109
109
  /** @hideconstructor */
110
- constructor(t: any, n: any, e: any);
110
+ constructor(t: any, e: any, n: any);
111
111
  converter: any;
112
112
  _key: any;
113
113
  /** The type of this Firestore reference. */
@@ -123,8 +123,8 @@ declare class ae {
123
123
  */ get path(): any;
124
124
  /**
125
125
  * The collection this `DocumentReference` belongs to.
126
- */ get parent(): le;
127
- withConverter(t: any): ae;
126
+ */ get parent(): ln;
127
+ withConverter(t: any): an;
128
128
  }
129
129
  /**
130
130
  * @license
@@ -150,9 +150,9 @@ declare class ae {
150
150
  * For a `DocumentSnapshot` that points to a non-existing document, any data
151
151
  * access will return 'undefined'. You can use the `exists()` method to
152
152
  * explicitly verify a document's existence.
153
- */ declare class Ye {
153
+ */ declare class Yn {
154
154
  /** @hideconstructor protected */
155
- constructor(t: any, n: any, e: any, r: any, s: any);
155
+ constructor(t: any, e: any, n: any, r: any, s: any);
156
156
  _firestore: any;
157
157
  _userDataWriter: any;
158
158
  _key: any;
@@ -161,7 +161,7 @@ declare class ae {
161
161
  /** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
162
162
  /**
163
163
  * The `DocumentReference` for the document included in the `DocumentSnapshot`.
164
- */ get ref(): ae;
164
+ */ get ref(): an;
165
165
  /**
166
166
  * Signals whether or not the document at the snapshot's location exists.
167
167
  *
@@ -208,7 +208,7 @@ declare class ae {
208
208
  *
209
209
  * Create a `FieldPath` by providing field names. If more than one field
210
210
  * name is provided, the path will point to a nested field in a document.
211
- */ declare class ye {
211
+ */ declare class yn {
212
212
  /**
213
213
  * Creates a `FieldPath` from the provided field names. If more than one field
214
214
  * name is provided, the path will point to a nested field in a document.
@@ -243,7 +243,7 @@ declare class ae {
243
243
  /**
244
244
  * Sentinel values that can be used when writing document fields with `set()`
245
245
  * or `update()`.
246
- */ declare class be {
246
+ */ declare class bn {
247
247
  /**
248
248
  * @param _methodName - The public API endpoint that returns this class.
249
249
  * @hideconstructor
@@ -271,9 +271,9 @@ declare class ae {
271
271
  * The Cloud Firestore service interface.
272
272
  *
273
273
  * Do not call this constructor directly. Instead, use {@link getFirestore}.
274
- */ declare class se {
274
+ */ declare class rn {
275
275
  /** @hideconstructor */
276
- constructor(t: any, n: any, e: any);
276
+ constructor(t: any, e: any, n: any);
277
277
  _authCredentials: any;
278
278
  _appCheckCredentials: any;
279
279
  /**
@@ -281,7 +281,7 @@ declare class ae {
281
281
  */
282
282
  type: string;
283
283
  _persistenceKey: string;
284
- _settings: re;
284
+ _settings: nn;
285
285
  _settingsFrozen: boolean;
286
286
  _databaseId: H;
287
287
  _app: any;
@@ -292,14 +292,14 @@ declare class ae {
292
292
  get _initialized(): boolean;
293
293
  get _terminated(): boolean;
294
294
  _setSettings(t: any): void;
295
- _getSettings(): re;
296
- _freezeSettings(): re;
295
+ _getSettings(): nn;
296
+ _freezeSettings(): nn;
297
297
  _delete(): Promise<void>;
298
298
  _terminateTask: Promise<void> | undefined;
299
299
  /** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
300
300
  app: any;
301
301
  databaseId: H;
302
- settings: re;
302
+ settings: nn;
303
303
  };
304
304
  /**
305
305
  * Terminates all components used by this client. Subclasses can override
@@ -311,7 +311,7 @@ declare class ae {
311
311
  }
312
312
  /** An error returned by a Firestore operation. */ declare class L extends Error {
313
313
  /** @hideconstructor */
314
- constructor(t: any, n: any);
314
+ constructor(t: any, e: any);
315
315
  code: any;
316
316
  }
317
317
  /**
@@ -336,14 +336,14 @@ declare class ae {
336
336
  *
337
337
  * Latitude values are in the range of [-90, 90].
338
338
  * Longitude values are in the range of [-180, 180].
339
- */ declare class ve {
339
+ */ declare class vn {
340
340
  /**
341
341
  * Creates a new immutable `GeoPoint` object with the provided latitude and
342
342
  * longitude values.
343
343
  * @param latitude - The latitude as number between -90 and 90.
344
344
  * @param longitude - The longitude as number between -180 and 180.
345
345
  */
346
- constructor(t: any, n: any);
346
+ constructor(t: any, e: any);
347
347
  _lat: any;
348
348
  _long: any;
349
349
  /**
@@ -370,15 +370,15 @@ declare class ae {
370
370
  /**
371
371
  * A `Query` refers to a query which you can read or listen to. You can also
372
372
  * construct refined `Query` objects by adding filters and ordering.
373
- */ declare class he {
373
+ */ declare class hn {
374
374
  /** @hideconstructor protected */
375
- constructor(t: any, n: any, e: any);
375
+ constructor(t: any, e: any, n: any);
376
376
  converter: any;
377
377
  _query: any;
378
378
  /** The type of this Firestore reference. */
379
379
  type: string;
380
380
  firestore: any;
381
- withConverter(t: any): he;
381
+ withConverter(t: any): hn;
382
382
  }
383
383
  /**
384
384
  * @license
@@ -404,7 +404,7 @@ declare class ae {
404
404
  * can then be passed to {@link query} to create a new query instance that
405
405
  * also contains this `QueryConstraint`.
406
406
  */
407
- declare class Ze {
407
+ declare class Zn {
408
408
  }
409
409
  /**
410
410
  * A `QueryDocumentSnapshot` contains data read from a document in your
@@ -416,7 +416,7 @@ declare class Ze {
416
416
  * `DocumentSnapshot`. Since query results contain only existing documents, the
417
417
  * `exists` property will always be true and `data()` will never return
418
418
  * 'undefined'.
419
- */ declare class He extends Ye {
419
+ */ declare class Hn extends Yn {
420
420
  }
421
421
  /**
422
422
  * A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
@@ -424,9 +424,9 @@ declare class Ze {
424
424
  * array via the `docs` property or enumerated using the `forEach` method. The
425
425
  * number of documents can be determined via the `empty` and `size`
426
426
  * properties.
427
- */ declare class Ke {
427
+ */ declare class Kn {
428
428
  /** @hideconstructor */
429
- constructor(t: any, n: any);
429
+ constructor(t: any, e: any);
430
430
  _docs: any;
431
431
  query: any;
432
432
  /** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
@@ -438,7 +438,7 @@ declare class Ze {
438
438
  * @param callback - A callback to be called with a `QueryDocumentSnapshot` for
439
439
  * each document in the snapshot.
440
440
  * @param thisArg - The `this` binding for the callback.
441
- */ forEach(t: any, n: any): void;
441
+ */ forEach(t: any, e: any): void;
442
442
  }
443
443
  /**
444
444
  * @license
@@ -502,7 +502,7 @@ declare class _t {
502
502
  * non-negative nanoseconds values that count forward in time. Must be
503
503
  * from 0 to 999,999,999 inclusive.
504
504
  */
505
- constructor(t: any, n: any);
505
+ constructor(t: any, e: any);
506
506
  seconds: any;
507
507
  nanoseconds: any;
508
508
  /**
@@ -539,18 +539,18 @@ declare class _t {
539
539
  }
540
540
  declare class Ur {
541
541
  /** @hideconstructor */
542
- constructor(t: any, n: any);
542
+ constructor(t: any, e: any);
543
543
  _firestore: any;
544
544
  _transaction: any;
545
- _dataReader: Re;
545
+ _dataReader: Rn;
546
546
  /**
547
547
  * Reads the document referenced by the provided {@link DocumentReference}.
548
548
  *
549
549
  * @param documentRef - A reference to the document to be read.
550
550
  * @returns A `DocumentSnapshot` with the read data.
551
551
  */ get(t: any): any;
552
- set(t: any, n: any, e: any): Ur;
553
- update(t: any, n: any, e: any, ...r: any[]): Ur;
552
+ set(t: any, e: any, n: any): Ur;
553
+ update(t: any, e: any, n: any, ...r: any[]): Ur;
554
554
  /**
555
555
  * Deletes the document referred to by the provided {@link DocumentReference}.
556
556
  *
@@ -583,14 +583,14 @@ declare class Ur {
583
583
  * called.
584
584
  */ declare class $r {
585
585
  /** @hideconstructor */
586
- constructor(t: any, n: any);
586
+ constructor(t: any, e: any);
587
587
  _firestore: any;
588
588
  _commitHandler: any;
589
589
  _mutations: any[];
590
590
  _committed: boolean;
591
- _dataReader: Re;
592
- set(t: any, n: any, e: any): $r;
593
- update(t: any, n: any, e: any, ...r: any[]): $r;
591
+ _dataReader: Rn;
592
+ set(t: any, e: any, n: any): $r;
593
+ update(t: any, e: any, n: any, ...r: any[]): $r;
594
594
  /**
595
595
  * Deletes the document referred to by the provided {@link DocumentReference}.
596
596
  *
@@ -624,7 +624,7 @@ declare class Ur {
624
624
  * @param data - An Object containing the data for the new document.
625
625
  * @returns A `Promise` resolved with a `DocumentReference` pointing to the
626
626
  * newly created document after it has been written to the backend.
627
- */ declare function Ar(t: any, n: any): Promise<ae>;
627
+ */ declare function Ar(t: any, e: any): Promise<an>;
628
628
  /**
629
629
  * Returns a special value that can be used with {@link (setDoc:1)} or {@link
630
630
  * updateDoc:1} that tells the server to remove the given elements from any
@@ -635,7 +635,7 @@ declare class Ur {
635
635
  * @param elements - The elements to remove from the array.
636
636
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
637
637
  * `updateDoc()`
638
- */ declare function Dr(...t: any[]): qe;
638
+ */ declare function Dr(...t: any[]): qn;
639
639
  /**
640
640
  * Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
641
641
  * @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
@@ -647,8 +647,8 @@ declare class Ur {
647
647
  * @param elements - The elements to union into the array.
648
648
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
649
649
  * `updateDoc()`.
650
- */ declare function Vr(...t: any[]): Se;
651
- declare function fe(t: any, n: any, ...e: any[]): le;
650
+ */ declare function Vr(...t: any[]): Sn;
651
+ declare function fn(t: any, e: any, ...n: any[]): ln;
652
652
  /**
653
653
  * Creates and returns a new `Query` instance that includes all documents in the
654
654
  * database that are contained in a collection or subcollection with the
@@ -659,7 +659,7 @@ declare function fe(t: any, n: any, ...e: any[]): le;
659
659
  * collection or subcollection with this ID as the last segment of its path
660
660
  * will be included. Cannot contain a slash.
661
661
  * @returns The created `Query`.
662
- */ declare function de(t: any, n: any): he;
662
+ */ declare function dn(t: any, e: any): hn;
663
663
  /**
664
664
  * Modify this instance to communicate with the Cloud Firestore emulator.
665
665
  *
@@ -672,7 +672,7 @@ declare function fe(t: any, n: any, ...e: any[]): le;
672
672
  * @param port - the emulator port (ex: 9000).
673
673
  * @param options.mockUserToken - the mock auth token to use for unit testing
674
674
  * Security Rules.
675
- */ declare function ue(t: any, n: any, e: any, r?: {}): void;
675
+ */ declare function un(t: any, e: any, n: any, r?: {}): void;
676
676
  /**
677
677
  * Deletes the document referred to by the specified `DocumentReference`.
678
678
  *
@@ -704,12 +704,12 @@ declare function fe(t: any, n: any, ...e: any[]): le;
704
704
  /**
705
705
  * Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
706
706
  * {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
707
- */ declare function Pr(): Ne;
708
- declare function we(t: any, n: any, ...e: any[]): ae;
707
+ */ declare function Pr(): Nn;
708
+ declare function wn(t: any, e: any, ...n: any[]): an;
709
709
  /**
710
710
  * Returns a special sentinel `FieldPath` to refer to the ID of a document.
711
711
  * It can be used in queries to sort or filter by the document ID.
712
- */ declare function _e(): ye;
712
+ */ declare function _n(): yn;
713
713
  declare function dr(...t: any[]): lr;
714
714
  declare function fr(...t: any[]): lr;
715
715
  /**
@@ -724,7 +724,7 @@ declare function fr(...t: any[]): lr;
724
724
  * @param reference - The reference of the document to fetch.
725
725
  * @returns A Promise resolved with a `DocumentSnapshot` containing the current
726
726
  * document contents.
727
- */ declare function br(t: any): Promise<Ye>;
727
+ */ declare function br(t: any): Promise<Yn>;
728
728
  /**
729
729
  * Executes the query and returns the results as a {@link QuerySnapshot}.
730
730
  *
@@ -736,7 +736,7 @@ declare function fr(...t: any[]): lr;
736
736
  *
737
737
  * @param query - The `Query` to execute.
738
738
  * @returns A Promise that will be resolved with the results of the query.
739
- */ declare function vr(t: any): Promise<Ke>;
739
+ */ declare function vr(t: any): Promise<Kn>;
740
740
  /**
741
741
  * Returns the existing `Firestore` instance that is associated with the
742
742
  * provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
@@ -745,7 +745,7 @@ declare function fr(...t: any[]): lr;
745
745
  * @param app - The {@link @firebase/app#FirebaseApp} instance that the returned `Firestore`
746
746
  * instance is associated with.
747
747
  * @returns The `Firestore` instance of the provided app.
748
- */ declare function oe(n?: import("@firebase/app").FirebaseApp): import("../../lite").Firestore;
748
+ */ declare function on(e?: import("@firebase/app").FirebaseApp): import("../../lite").Firestore;
749
749
  /**
750
750
  * Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
751
751
  * @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
@@ -764,8 +764,8 @@ declare function fr(...t: any[]): lr;
764
764
  * @param n - The value to increment by.
765
765
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
766
766
  * `updateDoc()`
767
- */ declare function Nr(t: any): xe;
768
- declare function ie(t: any, n: any): import("../../lite").Firestore;
767
+ */ declare function Nr(t: any): xn;
768
+ declare function sn(t: any, e: any): import("../../lite").Firestore;
769
769
  /**
770
770
  * Creates a {@link QueryConstraint} that only returns the first matching documents.
771
771
  *
@@ -789,7 +789,7 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
789
789
  * @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
790
790
  * not specified, order will be ascending.
791
791
  * @returns The created {@link Query}.
792
- */ declare function sr(t: any, n?: string): rr;
792
+ */ declare function sr(t: any, e?: string): rr;
793
793
  /**
794
794
  * Creates a new immutable instance of {@link Query} that is extended to also include
795
795
  * additional query constraints.
@@ -798,7 +798,7 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
798
798
  * @param queryConstraints - The list of {@link QueryConstraint}s to apply.
799
799
  * @throws if any of the provided query constraints cannot be combined with the
800
800
  * existing or new constraints.
801
- */ declare function tr(t: any, ...n: any[]): any;
801
+ */ declare function tr(t: any, ...e: any[]): any;
802
802
  /**
803
803
  * Returns true if the provided queries point to the same collection and apply
804
804
  * the same constraints.
@@ -807,7 +807,7 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
807
807
  * @param right - A `Query` to compare.
808
808
  * @returns true if the references point to the same location in the same
809
809
  * Firestore database.
810
- */ declare function pe(t: any, n: any): boolean;
810
+ */ declare function pn(t: any, e: any): boolean;
811
811
  /**
812
812
  * Returns true if the provided references are equal.
813
813
  *
@@ -815,7 +815,7 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
815
815
  * @param right - A reference to compare.
816
816
  * @returns true if the references point to the same location in the same
817
817
  * Firestore database.
818
- */ declare function me(t: any, n: any): boolean;
818
+ */ declare function mn(t: any, e: any): boolean;
819
819
  /**
820
820
  * Executes the given `updateFunction` and then attempts to commit the changes
821
821
  * applied within the transaction. If any document read within the transaction
@@ -832,12 +832,12 @@ declare function ie(t: any, n: any): import("../../lite").Firestore;
832
832
  * (the `updateFunction` returned a failed promise), the promise returned by the
833
833
  * `updateFunction `is returned here. Otherwise, if the transaction failed, a
834
834
  * rejected promise with the corresponding failure error is returned.
835
- */ declare function kr(t: any, n: any): Promise<any>;
835
+ */ declare function kr(t: any, e: any): Promise<any>;
836
836
  /**
837
837
  * Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
838
838
  * include a server-generated timestamp in the written data.
839
- */ declare function Rr(): Fe;
840
- declare function Er(t: any, n: any, e: any): Promise<void>;
839
+ */ declare function Rr(): Fn;
840
+ declare function Er(t: any, e: any, n: any): Promise<void>;
841
841
  /**
842
842
  * Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
843
843
  *
@@ -857,7 +857,7 @@ declare function Er(t: any, n: any, e: any): Promise<void>;
857
857
  * @param left - A snapshot to compare.
858
858
  * @param right - A snapshot to compare.
859
859
  * @returns true if the snapshots are equal.
860
- */ declare function Je(t: any, n: any): any;
860
+ */ declare function Jn(t: any, e: any): any;
861
861
  declare function hr(...t: any[]): cr;
862
862
  declare function ar(...t: any[]): cr;
863
863
  /**
@@ -879,8 +879,8 @@ declare function ar(...t: any[]): cr;
879
879
  * @param firestore - The `Firestore` instance to terminate.
880
880
  * @returns A `Promise` that is resolved when the instance has been successfully
881
881
  * terminated.
882
- */ declare function ce(t: any): any;
883
- declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
882
+ */ declare function cn(t: any): any;
883
+ declare function Tr(t: any, e: any, n: any, ...r: any[]): Promise<void>;
884
884
  /**
885
885
  * Creates a {@link QueryConstraint} that enforces that documents must contain the
886
886
  * specified field and that the value should satisfy the relation constraint
@@ -891,7 +891,7 @@ declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
891
891
  * "&lt;=", "!=").
892
892
  * @param value - The value for comparison
893
893
  * @returns The created {@link Query}.
894
- */ declare function er(t: any, n: any, e: any): nr;
894
+ */ declare function nr(t: any, e: any, n: any): er;
895
895
  /**
896
896
  * Creates a write batch, used for performing multiple writes as a single
897
897
  * atomic operation. The maximum number of writes allowed in a single WriteBatch
@@ -927,7 +927,7 @@ declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
927
927
  * non-identifier path components, even if they aren't escaped.
928
928
  */ static fromServerFormat(t: any): Z;
929
929
  static emptyPath(): Z;
930
- construct(t: any, n: any, e: any): Z;
930
+ construct(t: any, e: any, n: any): Z;
931
931
  canonicalString(): any;
932
932
  toString(): any;
933
933
  /**
@@ -943,7 +943,7 @@ declare function Tr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
943
943
  * user-supplied `FirestoreSettings` object. This is a separate type so that
944
944
  * defaults can be supplied and the value can be checked for equality.
945
945
  */
946
- declare class re {
946
+ declare class nn {
947
947
  constructor(t: any);
948
948
  host: any;
949
949
  ssl: any;
@@ -961,7 +961,7 @@ declare class re {
961
961
  * @internal
962
962
  */
963
963
  declare class H {
964
- constructor(t: any, n: any);
964
+ constructor(t: any, e: any);
965
965
  projectId: any;
966
966
  database: any;
967
967
  get isDefaultDatabase(): boolean;
@@ -970,74 +970,74 @@ declare class H {
970
970
  /**
971
971
  * Helper for parsing raw user input (provided via the API) into internal model
972
972
  * classes.
973
- */ declare class Re {
974
- constructor(t: any, n: any, e: any);
973
+ */ declare class Rn {
974
+ constructor(t: any, e: any, n: any);
975
975
  databaseId: any;
976
976
  ignoreUndefinedProperties: any;
977
977
  q: any;
978
- /** Creates a new top-level parse context. */ ht(t: any, n: any, e: any, r?: boolean): Pe;
978
+ /** Creates a new top-level parse context. */ ht(t: any, e: any, n: any, r?: boolean): Pn;
979
979
  }
980
- declare class qe extends be {
981
- constructor(t: any, n: any);
980
+ declare class qn extends bn {
981
+ constructor(t: any, e: any);
982
982
  lt: any;
983
- _toFieldTransform(t: any): bn;
983
+ _toFieldTransform(t: any): ge;
984
984
  isEqual(t: any): boolean;
985
985
  }
986
- declare class Se extends be {
987
- constructor(t: any, n: any);
986
+ declare class Sn extends bn {
987
+ constructor(t: any, e: any);
988
988
  lt: any;
989
- _toFieldTransform(t: any): bn;
989
+ _toFieldTransform(t: any): ge;
990
990
  isEqual(t: any): boolean;
991
991
  }
992
- declare class Ne extends be {
992
+ declare class Nn extends bn {
993
993
  _toFieldTransform(t: any): null;
994
994
  isEqual(t: any): boolean;
995
995
  }
996
- declare class lr extends Ze {
997
- constructor(t: any, n: any, e: any);
996
+ declare class lr extends Zn {
997
+ constructor(t: any, e: any, n: any);
998
998
  type: any;
999
999
  vt: any;
1000
1000
  Et: any;
1001
- _apply(t: any): he;
1001
+ _apply(t: any): hn;
1002
1002
  }
1003
- declare class xe extends be {
1004
- constructor(t: any, n: any);
1003
+ declare class xn extends bn {
1004
+ constructor(t: any, e: any);
1005
1005
  ft: any;
1006
- _toFieldTransform(t: any): bn;
1006
+ _toFieldTransform(t: any): ge;
1007
1007
  isEqual(t: any): boolean;
1008
1008
  }
1009
- declare class ir extends Ze {
1010
- constructor(t: any, n: any, e: any);
1009
+ declare class ir extends Zn {
1010
+ constructor(t: any, e: any, n: any);
1011
1011
  type: any;
1012
1012
  gt: any;
1013
1013
  bt: any;
1014
- _apply(t: any): he;
1014
+ _apply(t: any): hn;
1015
1015
  }
1016
- declare class rr extends Ze {
1017
- constructor(t: any, n: any);
1016
+ declare class rr extends Zn {
1017
+ constructor(t: any, e: any);
1018
1018
  dt: any;
1019
1019
  _t: any;
1020
1020
  type: string;
1021
- _apply(t: any): he;
1021
+ _apply(t: any): hn;
1022
1022
  }
1023
- declare class Fe extends be {
1024
- _toFieldTransform(t: any): bn;
1023
+ declare class Fn extends bn {
1024
+ _toFieldTransform(t: any): ge;
1025
1025
  isEqual(t: any): boolean;
1026
1026
  }
1027
- declare class cr extends Ze {
1028
- constructor(t: any, n: any, e: any);
1027
+ declare class cr extends Zn {
1028
+ constructor(t: any, e: any, n: any);
1029
1029
  type: any;
1030
1030
  vt: any;
1031
1031
  Et: any;
1032
- _apply(t: any): he;
1032
+ _apply(t: any): hn;
1033
1033
  }
1034
- declare class nr extends Ze {
1035
- constructor(t: any, n: any, e: any);
1034
+ declare class er extends Zn {
1035
+ constructor(t: any, e: any, n: any);
1036
1036
  dt: any;
1037
1037
  wt: any;
1038
1038
  yt: any;
1039
1039
  type: string;
1040
- _apply(t: any): he;
1040
+ _apply(t: any): hn;
1041
1041
  }
1042
1042
  /**
1043
1043
  * @license
@@ -1059,8 +1059,8 @@ declare class nr extends Ze {
1059
1059
  * Path represents an ordered sequence of string segments.
1060
1060
  */
1061
1061
  declare class K {
1062
- static comparator(t: any, n: any): 0 | 1 | -1;
1063
- constructor(t: any, n: any, e: any);
1062
+ static comparator(t: any, e: any): 0 | 1 | -1;
1063
+ constructor(t: any, e: any, n: any);
1064
1064
  segments: any;
1065
1065
  offset: any;
1066
1066
  len: any;
@@ -1079,7 +1079,7 @@ declare class K {
1079
1079
  forEach(t: any): void;
1080
1080
  toArray(): any;
1081
1081
  }
1082
- /** A "context" object passed around while parsing user data. */ declare class Pe {
1082
+ /** A "context" object passed around while parsing user data. */ declare class Pn {
1083
1083
  /**
1084
1084
  * Initializes a ParseContext with the given source and path.
1085
1085
  *
@@ -1098,7 +1098,7 @@ declare class K {
1098
1098
  * which case certain features will not work and errors will be somewhat
1099
1099
  * compromised).
1100
1100
  */
1101
- constructor(t: any, n: any, e: any, r: any, s: any, i: any);
1101
+ constructor(t: any, e: any, n: any, r: any, s: any, i: any);
1102
1102
  settings: any;
1103
1103
  databaseId: any;
1104
1104
  q: any;
@@ -1107,10 +1107,10 @@ declare class K {
1107
1107
  fieldMask: any;
1108
1108
  get path(): any;
1109
1109
  get tt(): any;
1110
- /** Returns a new context with the specified settings overwritten. */ nt(t: any): Pe;
1111
- et(t: any): Pe;
1112
- it(t: any): Pe;
1113
- ot(t: any): Pe;
1110
+ /** Returns a new context with the specified settings overwritten. */ et(t: any): Pn;
1111
+ nt(t: any): Pn;
1112
+ it(t: any): Pn;
1113
+ ot(t: any): Pn;
1114
1114
  ut(t: any): L;
1115
1115
  /** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
1116
1116
  Z(): void;
@@ -1132,9 +1132,9 @@ declare class K {
1132
1132
  * See the License for the specific language governing permissions and
1133
1133
  * limitations under the License.
1134
1134
  */
1135
- /** A field path and the TransformOperation to perform upon it. */ declare class bn {
1136
- constructor(t: any, n: any);
1135
+ /** A field path and the TransformOperation to perform upon it. */ declare class ge {
1136
+ constructor(t: any, e: any);
1137
1137
  field: any;
1138
1138
  transform: any;
1139
1139
  }
1140
- export { ge as Bytes, le as CollectionReference, ae as DocumentReference, Ye as DocumentSnapshot, ye as FieldPath, be as FieldValue, se as Firestore, L as FirestoreError, ve as GeoPoint, he as Query, Ze as QueryConstraint, He as QueryDocumentSnapshot, Ke as QuerySnapshot, _t as Timestamp, Ur as Transaction, $r as WriteBatch, Ar as addDoc, Dr as arrayRemove, Vr as arrayUnion, fe as collection, de as collectionGroup, ue as connectFirestoreEmulator, Ir as deleteDoc, Pr as deleteField, we as doc, _e as documentId, dr as endAt, fr as endBefore, br as getDoc, vr as getDocs, oe as getFirestore, Nr as increment, ie as initializeFirestore, or as limit, ur as limitToLast, sr as orderBy, tr as query, pe as queryEqual, me as refEqual, kr as runTransaction, Rr as serverTimestamp, Er as setDoc, d as setLogLevel, Je as snapshotEqual, hr as startAfter, ar as startAt, ce as terminate, Tr as updateDoc, er as where, Sr as writeBatch };
1140
+ export { gn as Bytes, ln as CollectionReference, an as DocumentReference, Yn as DocumentSnapshot, yn as FieldPath, bn as FieldValue, rn as Firestore, L as FirestoreError, vn as GeoPoint, hn as Query, Zn as QueryConstraint, Hn as QueryDocumentSnapshot, Kn as QuerySnapshot, _t as Timestamp, Ur as Transaction, $r as WriteBatch, Ar as addDoc, Dr as arrayRemove, Vr as arrayUnion, fn as collection, dn as collectionGroup, un as connectFirestoreEmulator, Ir as deleteDoc, Pr as deleteField, wn as doc, _n as documentId, dr as endAt, fr as endBefore, br as getDoc, vr as getDocs, on as getFirestore, Nr as increment, sn as initializeFirestore, or as limit, ur as limitToLast, sr as orderBy, tr as query, pn as queryEqual, mn as refEqual, kr as runTransaction, Rr as serverTimestamp, Er as setDoc, d as setLogLevel, Jn as snapshotEqual, hr as startAfter, ar as startAt, cn as terminate, Tr as updateDoc, nr as where, Sr as writeBatch };
@@ -16,11 +16,16 @@
16
16
  */
17
17
  import { SnapshotVersion } from '../core/snapshot_version';
18
18
  import { MutableDocumentMap } from '../model/collections';
19
+ import { MutableDocument } from '../model/document';
19
20
  import { IndexManager } from './index_manager';
20
21
  import { LocalSerializer } from './local_serializer';
21
22
  import { PersistencePromise } from './persistence_promise';
22
23
  import { PersistenceTransaction } from './persistence_transaction';
23
24
  import { RemoteDocumentCache } from './remote_document_cache';
25
+ export interface DocumentSizeEntry {
26
+ document: MutableDocument;
27
+ size: number;
28
+ }
24
29
  export interface IndexedDbRemoteDocumentCache extends RemoteDocumentCache {
25
30
  }
26
31
  /**