@firebase/firestore 3.8.4 → 3.9.0-20230314181055

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 (54) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/firestore/src/lite-api/query.d.ts +11 -19
  3. package/dist/firestore/src/lite-api/reference.d.ts +1 -1
  4. package/dist/firestore/src/util/debug_uid.d.ts +28 -0
  5. package/dist/firestore/test/unit/specs/spec_builder.d.ts +3 -0
  6. package/dist/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
  7. package/dist/index.cjs.js +1359 -1309
  8. package/dist/index.cjs.js.map +1 -1
  9. package/dist/index.d.ts +66 -14
  10. package/dist/index.esm2017.js +1272 -1222
  11. package/dist/index.esm2017.js.map +1 -1
  12. package/dist/index.esm5.js +1335 -1259
  13. package/dist/index.esm5.js.map +1 -1
  14. package/dist/index.node.cjs.js +97 -32
  15. package/dist/index.node.cjs.js.map +1 -1
  16. package/dist/index.node.mjs +97 -32
  17. package/dist/index.node.mjs.map +1 -1
  18. package/dist/index.rn.js +1380 -1330
  19. package/dist/index.rn.js.map +1 -1
  20. package/dist/internal.d.ts +12 -20
  21. package/dist/lite/firestore/src/lite-api/query.d.ts +11 -19
  22. package/dist/lite/firestore/src/lite-api/reference.d.ts +1 -1
  23. package/dist/lite/firestore/src/util/debug_uid.d.ts +28 -0
  24. package/dist/lite/firestore/test/unit/specs/spec_builder.d.ts +3 -0
  25. package/dist/lite/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
  26. package/dist/lite/index.browser.esm2017.js +775 -730
  27. package/dist/lite/index.browser.esm2017.js.map +1 -1
  28. package/dist/lite/index.browser.esm5.js +736 -693
  29. package/dist/lite/index.browser.esm5.js.map +1 -1
  30. package/dist/lite/index.cjs.js +775 -730
  31. package/dist/lite/index.cjs.js.map +1 -1
  32. package/dist/lite/index.d.ts +66 -14
  33. package/dist/lite/index.node.cjs.js +76 -18
  34. package/dist/lite/index.node.cjs.js.map +1 -1
  35. package/dist/lite/index.node.mjs +76 -18
  36. package/dist/lite/index.node.mjs.map +1 -1
  37. package/dist/lite/index.rn.esm2017.js +777 -732
  38. package/dist/lite/index.rn.esm2017.js.map +1 -1
  39. package/dist/lite/internal.d.ts +12 -20
  40. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +139 -142
  41. package/dist/lite/packages/firestore/src/lite-api/query.d.ts +11 -19
  42. package/dist/lite/packages/firestore/src/lite-api/reference.d.ts +1 -1
  43. package/dist/lite/packages/firestore/src/util/debug_uid.d.ts +28 -0
  44. package/dist/lite/packages/firestore/test/unit/specs/spec_builder.d.ts +3 -0
  45. package/dist/lite/packages/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
  46. package/dist/lite/private.d.ts +72 -16
  47. package/dist/packages/firestore/dist/index.esm2017.d.ts +157 -160
  48. package/dist/packages/firestore/src/lite-api/query.d.ts +11 -19
  49. package/dist/packages/firestore/src/lite-api/reference.d.ts +1 -1
  50. package/dist/packages/firestore/src/util/debug_uid.d.ts +28 -0
  51. package/dist/packages/firestore/test/unit/specs/spec_builder.d.ts +3 -0
  52. package/dist/packages/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
  53. package/dist/private.d.ts +72 -16
  54. package/package.json +2 -2
@@ -163,7 +163,6 @@ export declare type AggregateType = 'count' | 'avg' | 'sum';
163
163
  * {@link QueryFilterConstraint}s to perform a conjunction for. These must be
164
164
  * created with calls to {@link where}, {@link or}, or {@link and}.
165
165
  * @returns The newly created {@link QueryCompositeFilterConstraint}.
166
- * @internal TODO remove this internal tag with OR Query support in the server
167
166
  */
168
167
  export declare function and(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
169
168
 
@@ -484,7 +483,7 @@ export declare function collectionGroup(firestore: Firestore, collectionId: stri
484
483
 
485
484
  /**
486
485
  * A `CollectionReference` object can be used for adding documents, getting
487
- * document references, and querying for documents (using {@link query}).
486
+ * document references, and querying for documents (using {@link (query:1)}).
488
487
  */
489
488
  export declare class CollectionReference<T = DocumentData> extends Query<T> {
490
489
  readonly _path: ResourcePath;
@@ -2145,7 +2144,6 @@ declare const enum Operator {
2145
2144
  * {@link QueryFilterConstraint}s to perform a disjunction for. These must be
2146
2145
  * created with calls to {@link where}, {@link or}, or {@link and}.
2147
2146
  * @returns The newly created {@link QueryCompositeFilterConstraint}.
2148
- * @internal TODO remove this internal tag with OR Query support in the server
2149
2147
  */
2150
2148
  export declare function or(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
2151
2149
 
@@ -2308,7 +2306,6 @@ export declare class Query<T = DocumentData> {
2308
2306
  * apply (e.g. {@link orderBy}, {@link limit}).
2309
2307
  * @throws if any of the provided query constraints cannot be combined with the
2310
2308
  * existing or new constraints.
2311
- * @internal TODO remove this internal tag with OR Query support in the server
2312
2309
  */
2313
2310
  export declare function query<T>(query: Query<T>, compositeFilter: QueryCompositeFilterConstraint, ...queryConstraints: QueryNonFilterConstraint[]): Query<T>;
2314
2311
 
@@ -2346,9 +2343,8 @@ declare interface Query_2 {
2346
2343
  * returned by a Firestore query by performing the logical OR or AND of multiple
2347
2344
  * {@link QueryFieldFilterConstraint}s or {@link QueryCompositeFilterConstraint}s.
2348
2345
  * `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
2349
- * {@link and} and can then be passed to {@link query} to create a new query
2346
+ * {@link and} and can then be passed to {@link (query:1)} to create a new query
2350
2347
  * instance that also contains the `QueryCompositeFilterConstraint`.
2351
- * @internal TODO remove this internal tag with OR Query support in the server
2352
2348
  */
2353
2349
  export declare class QueryCompositeFilterConstraint extends AppliableConstraint {
2354
2350
  /** The type of this query constraint */
@@ -2370,9 +2366,9 @@ export declare class QueryCompositeFilterConstraint extends AppliableConstraint
2370
2366
  /**
2371
2367
  * A `QueryConstraint` is used to narrow the set of documents returned by a
2372
2368
  * Firestore query. `QueryConstraint`s are created by invoking {@link where},
2373
- * {@link orderBy}, {@link startAt}, {@link startAfter}, {@link
2374
- * endBefore}, {@link endAt}, {@link limit}, {@link limitToLast} and
2375
- * can then be passed to {@link query} to create a new query instance that
2369
+ * {@link orderBy}, {@link (startAt:1)}, {@link (startAfter:1)}, {@link
2370
+ * (endBefore:1)}, {@link (endAt:1)}, {@link limit}, {@link limitToLast} and
2371
+ * can then be passed to {@link (query:1)} to create a new query instance that
2376
2372
  * also contains this `QueryConstraint`.
2377
2373
  */
2378
2374
  export declare abstract class QueryConstraint extends AppliableConstraint {
@@ -2413,7 +2409,7 @@ export declare class QueryDocumentSnapshot<T = DocumentData> extends DocumentSna
2413
2409
  * A `QueryEndAtConstraint` is used to exclude documents from the end of a
2414
2410
  * result set returned by a Firestore query.
2415
2411
  * `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
2416
- * {@link (endBefore:1)} and can then be passed to {@link query} to create a new
2412
+ * {@link (endBefore:1)} and can then be passed to {@link (query:1)} to create a new
2417
2413
  * query instance that also contains this `QueryEndAtConstraint`.
2418
2414
  */
2419
2415
  export declare class QueryEndAtConstraint extends QueryConstraint {
@@ -2446,7 +2442,7 @@ export declare function queryEqual<T>(left: Query<T>, right: Query<T>): boolean;
2446
2442
  * A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
2447
2443
  * a Firestore query by filtering on one or more document fields.
2448
2444
  * `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
2449
- * be passed to {@link query} to create a new query instance that also contains
2445
+ * be passed to {@link (query:1)} to create a new query instance that also contains
2450
2446
  * this `QueryFieldFilterConstraint`.
2451
2447
  */
2452
2448
  export declare class QueryFieldFilterConstraint extends QueryConstraint {
@@ -2467,10 +2463,6 @@ export declare class QueryFieldFilterConstraint extends QueryConstraint {
2467
2463
  /**
2468
2464
  * `QueryFilterConstraint` is a helper union type that represents
2469
2465
  * {@link QueryFieldFilterConstraint} and {@link QueryCompositeFilterConstraint}.
2470
- * `QueryFilterConstraint`s are created by invoking {@link or} or {@link and}
2471
- * and can then be passed to {@link query} to create a new query instance that
2472
- * also contains the `QueryConstraint`.
2473
- * @internal TODO remove this internal tag with OR Query support in the server
2474
2466
  */
2475
2467
  export declare type QueryFilterConstraint = QueryFieldFilterConstraint | QueryCompositeFilterConstraint;
2476
2468
 
@@ -2478,7 +2470,7 @@ export declare type QueryFilterConstraint = QueryFieldFilterConstraint | QueryCo
2478
2470
  * A `QueryLimitConstraint` is used to limit the number of documents returned by
2479
2471
  * a Firestore query.
2480
2472
  * `QueryLimitConstraint`s are created by invoking {@link limit} or
2481
- * {@link limitToLast} and can then be passed to {@link query} to create a new
2473
+ * {@link limitToLast} and can then be passed to {@link (query:1)} to create a new
2482
2474
  * query instance that also contains this `QueryLimitConstraint`.
2483
2475
  */
2484
2476
  export declare class QueryLimitConstraint extends QueryConstraint {
@@ -2501,8 +2493,8 @@ export declare class QueryLimitConstraint extends QueryConstraint {
2501
2493
  * QueryConstraints which are used to narrow or order the set of documents,
2502
2494
  * but that do not explicitly filter on a document field.
2503
2495
  * `QueryNonFilterConstraint`s are created by invoking {@link orderBy},
2504
- * {@link startAt}, {@link startAfter}, {@link endBefore}, {@link endAt},
2505
- * {@link limit} or {@link limitToLast} and can then be passed to {@link query}
2496
+ * {@link (startAt:1)}, {@link (startAfter:1)}, {@link (endBefore:1)}, {@link (endAt:1)},
2497
+ * {@link limit} or {@link limitToLast} and can then be passed to {@link (query:1)}
2506
2498
  * to create a new query instance that also contains the `QueryConstraint`.
2507
2499
  */
2508
2500
  export declare type QueryNonFilterConstraint = QueryOrderByConstraint | QueryLimitConstraint | QueryStartAtConstraint | QueryEndAtConstraint;
@@ -2510,7 +2502,7 @@ export declare type QueryNonFilterConstraint = QueryOrderByConstraint | QueryLim
2510
2502
  /**
2511
2503
  * A `QueryOrderByConstraint` is used to sort the set of documents returned by a
2512
2504
  * Firestore query. `QueryOrderByConstraint`s are created by invoking
2513
- * {@link orderBy} and can then be passed to {@link query} to create a new query
2505
+ * {@link orderBy} and can then be passed to {@link (query:1)} to create a new query
2514
2506
  * instance that also contains this `QueryOrderByConstraint`.
2515
2507
  *
2516
2508
  * Note: Documents that do not contain the orderBy field will not be present in
@@ -2565,7 +2557,7 @@ export declare class QuerySnapshot<T = DocumentData> {
2565
2557
  * A `QueryStartAtConstraint` is used to exclude documents from the start of a
2566
2558
  * result set returned by a Firestore query.
2567
2559
  * `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
2568
- * {@link (startAfter:1)} and can then be passed to {@link query} to create a
2560
+ * {@link (startAfter:1)} and can then be passed to {@link (query:1)} to create a
2569
2561
  * new query instance that also contains this `QueryStartAtConstraint`.
2570
2562
  */
2571
2563
  export declare class QueryStartAtConstraint extends QueryConstraint {