@firebase/firestore 3.5.0-canary.e35db6f95 → 3.5.0-canary.fdd4ab464

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 (69) hide show
  1. package/dist/firestore/lite/index.d.ts +2 -0
  2. package/dist/firestore/src/api/aggregate.d.ts +19 -5
  3. package/dist/firestore/src/api/database.d.ts +15 -15
  4. package/dist/firestore/src/api.d.ts +2 -0
  5. package/dist/firestore/src/core/count_query_runner.d.ts +32 -0
  6. package/dist/firestore/src/core/firestore_client.d.ts +2 -2
  7. package/dist/firestore/src/lite-api/aggregate.d.ts +17 -61
  8. package/dist/firestore/src/lite-api/aggregate_types.d.ts +69 -0
  9. package/dist/firestore/src/lite-api/database.d.ts +7 -7
  10. package/dist/firestore/test/integration/api/aggregation.test.d.ts +17 -0
  11. package/dist/index.d.ts +196 -14
  12. package/dist/index.esm2017.js +4977 -4784
  13. package/dist/index.esm2017.js.map +1 -1
  14. package/dist/index.esm5.js +5180 -4972
  15. package/dist/index.esm5.js.map +1 -1
  16. package/dist/index.node.cjs.js +3889 -3658
  17. package/dist/index.node.cjs.js.map +1 -1
  18. package/dist/index.node.mjs +3887 -3660
  19. package/dist/index.node.mjs.map +1 -1
  20. package/dist/index.rn.js +4968 -4775
  21. package/dist/index.rn.js.map +1 -1
  22. package/dist/internal.d.ts +113 -17
  23. package/dist/lite/firestore/lite/index.d.ts +2 -0
  24. package/dist/lite/firestore/src/api/aggregate.d.ts +19 -5
  25. package/dist/lite/firestore/src/api/database.d.ts +15 -15
  26. package/dist/lite/firestore/src/api.d.ts +2 -0
  27. package/dist/lite/firestore/src/core/count_query_runner.d.ts +32 -0
  28. package/dist/lite/firestore/src/core/firestore_client.d.ts +2 -2
  29. package/dist/lite/firestore/src/lite-api/aggregate.d.ts +17 -61
  30. package/dist/lite/firestore/src/lite-api/aggregate_types.d.ts +69 -0
  31. package/dist/lite/firestore/src/lite-api/database.d.ts +7 -7
  32. package/dist/lite/firestore/test/integration/api/aggregation.test.d.ts +17 -0
  33. package/dist/lite/index.browser.esm2017.js +1093 -935
  34. package/dist/lite/index.browser.esm2017.js.map +1 -1
  35. package/dist/lite/index.browser.esm5.js +1211 -1058
  36. package/dist/lite/index.browser.esm5.js.map +1 -1
  37. package/dist/lite/index.d.ts +84 -4
  38. package/dist/lite/index.node.cjs.js +249 -63
  39. package/dist/lite/index.node.cjs.js.map +1 -1
  40. package/dist/lite/index.node.mjs +247 -65
  41. package/dist/lite/index.node.mjs.map +1 -1
  42. package/dist/lite/index.rn.esm2017.js +1102 -944
  43. package/dist/lite/index.rn.esm2017.js.map +1 -1
  44. package/dist/lite/internal.d.ts +95 -6
  45. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +213 -128
  46. package/dist/lite/packages/firestore/lite/index.d.ts +2 -0
  47. package/dist/lite/packages/firestore/src/api/aggregate.d.ts +19 -5
  48. package/dist/lite/packages/firestore/src/api/database.d.ts +15 -15
  49. package/dist/lite/packages/firestore/src/api.d.ts +2 -0
  50. package/dist/lite/packages/firestore/src/core/count_query_runner.d.ts +32 -0
  51. package/dist/lite/packages/firestore/src/core/firestore_client.d.ts +2 -2
  52. package/dist/lite/packages/firestore/src/lite-api/aggregate.d.ts +17 -61
  53. package/dist/lite/packages/firestore/src/lite-api/aggregate_types.d.ts +69 -0
  54. package/dist/lite/packages/firestore/src/lite-api/database.d.ts +7 -7
  55. package/dist/lite/packages/firestore/test/integration/api/aggregation.test.d.ts +17 -0
  56. package/dist/lite/private.d.ts +93 -4
  57. package/dist/packages/firestore/dist/index.esm2017.d.ts +333 -224
  58. package/dist/packages/firestore/lite/index.d.ts +2 -0
  59. package/dist/packages/firestore/src/api/aggregate.d.ts +19 -5
  60. package/dist/packages/firestore/src/api/database.d.ts +15 -15
  61. package/dist/packages/firestore/src/api.d.ts +2 -0
  62. package/dist/packages/firestore/src/core/count_query_runner.d.ts +32 -0
  63. package/dist/packages/firestore/src/core/firestore_client.d.ts +2 -2
  64. package/dist/packages/firestore/src/lite-api/aggregate.d.ts +17 -61
  65. package/dist/packages/firestore/src/lite-api/aggregate_types.d.ts +69 -0
  66. package/dist/packages/firestore/src/lite-api/database.d.ts +7 -7
  67. package/dist/packages/firestore/test/integration/api/aggregation.test.d.ts +17 -0
  68. package/dist/private.d.ts +208 -19
  69. package/package.json +9 -9
@@ -6,6 +6,8 @@
6
6
  * directly to the backend, and `onSnapshot()` APIs are not supported.
7
7
  * @packageDocumentation
8
8
  */
9
+ export { aggregateQuerySnapshotEqual, getCount } from '../src/lite-api/aggregate';
10
+ export { AggregateField, AggregateFieldType, AggregateSpec, AggregateSpecData, AggregateQuerySnapshot } from '../src/lite-api/aggregate_types';
9
11
  export { FirestoreSettings as Settings } from '../src/lite-api/settings';
10
12
  export { Firestore as Firestore, EmulatorMockTokenOptions, initializeFirestore, getFirestore, terminate, connectFirestoreEmulator } from '../src/lite-api/database';
11
13
  export { DocumentData, UpdateData, WithFieldValue, PartialWithFieldValue, SetOptions, DocumentReference, Query, CollectionReference, collection, collectionGroup, doc, refEqual, queryEqual } from '../src/lite-api/reference';
@@ -15,14 +15,28 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { Query } from '../api';
18
- import { AggregateField, AggregateQuerySnapshot } from '../lite-api/aggregate';
18
+ import { AggregateField, AggregateQuerySnapshot } from '../lite-api/aggregate_types';
19
+ export { aggregateQuerySnapshotEqual } from '../lite-api/aggregate';
19
20
  /**
20
- * Executes the query and returns the results as a `AggregateQuerySnapshot` from the
21
- * server. Returns an error if the network is not available.
21
+ * Calculates the number of documents in the result set of the given query,
22
+ * without actually downloading the documents.
22
23
  *
23
- * @param query - The `Query` to execute.
24
+ * Using this function to count the documents is efficient because only the
25
+ * final count, not the documents' data, is downloaded. This function can even
26
+ * count the documents if the result set would be prohibitively large to
27
+ * download entirely (e.g. thousands of documents).
24
28
  *
25
- * @returns A `Promise` that will be resolved with the results of the query.
29
+ * The result received from the server is presented, unaltered, without
30
+ * considering any local state. That is, documents in the local cache are not
31
+ * taken into consideration, neither are local modifications not yet
32
+ * synchronized with the server. Previously-downloaded results, if any, are not
33
+ * used: every request using this source necessarily involves a round trip to
34
+ * the server.
35
+ *
36
+ * @param query - The query whose result set size to calculate.
37
+ * @returns A Promise that will be resolved with the count; the count can be
38
+ * retrieved from `snapshot.data().count`, where `snapshot` is the
39
+ * `AggregateQuerySnapshot` to which the returned Promise resolves.
26
40
  */
27
41
  export declare function getCountFromServer(query: Query<unknown>): Promise<AggregateQuerySnapshot<{
28
42
  count: AggregateField<number>;
@@ -39,7 +39,7 @@ export declare const CACHE_SIZE_UNLIMITED = -1;
39
39
  /**
40
40
  * The Cloud Firestore service interface.
41
41
  *
42
- * Do not call this constructor directly. Instead, use {@link getFirestore}.
42
+ * Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
43
43
  */
44
44
  export declare class Firestore extends LiteFirestore {
45
45
  /**
@@ -56,8 +56,8 @@ export declare class Firestore extends LiteFirestore {
56
56
  /**
57
57
  * Initializes a new instance of {@link Firestore} with the provided settings.
58
58
  * Can only be called before any other function, including
59
- * {@link getFirestore}. If the custom settings are empty, this function is
60
- * equivalent to calling {@link getFirestore}.
59
+ * {@link (getFirestore:1)}. If the custom settings are empty, this function is
60
+ * equivalent to calling {@link (getFirestore:1)}.
61
61
  *
62
62
  * @param app - The {@link @firebase/app#FirebaseApp} with which the {@link Firestore} instance will
63
63
  * be associated.
@@ -66,14 +66,6 @@ export declare class Firestore extends LiteFirestore {
66
66
  * @returns A newly initialized {@link Firestore} instance.
67
67
  */
68
68
  export declare function initializeFirestore(app: FirebaseApp, settings: FirestoreSettings, databaseId?: string): Firestore;
69
- /**
70
- * Returns the existing default {@link Firestore} instance that is associated with the
71
- * default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
72
- * instance with default settings.
73
- *
74
- * @returns The {@link Firestore} instance of the provided app.
75
- */
76
- export declare function getFirestore(): Firestore;
77
69
  /**
78
70
  * Returns the existing default {@link Firestore} instance that is associated with the
79
71
  * provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
@@ -95,7 +87,15 @@ export declare function getFirestore(app: FirebaseApp): Firestore;
95
87
  */
96
88
  export declare function getFirestore(databaseId: string): Firestore;
97
89
  /**
98
- * Returns the existing {@link Firestore} instance that is associated with the
90
+ * Returns the existing default {@link Firestore} instance that is associated with the
91
+ * default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
92
+ * instance with default settings.
93
+ *
94
+ * @returns The {@link Firestore} instance of the provided app.
95
+ */
96
+ export declare function getFirestore(): Firestore;
97
+ /**
98
+ * Returns the existing default {@link Firestore} instance that is associated with the
99
99
  * provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
100
100
  * instance with default settings.
101
101
  *
@@ -115,7 +115,7 @@ export declare function configureFirestore(firestore: Firestore): void;
115
115
  * Attempts to enable persistent storage, if possible.
116
116
  *
117
117
  * Must be called before any other functions (other than
118
- * {@link initializeFirestore}, {@link getFirestore} or
118
+ * {@link initializeFirestore}, {@link (getFirestore:1)} or
119
119
  * {@link clearIndexedDbPersistence}.
120
120
  *
121
121
  * If this fails, `enableIndexedDbPersistence()` will reject the promise it
@@ -165,7 +165,7 @@ export declare function enableMultiTabIndexedDbPersistence(firestore: Firestore)
165
165
  * Must be called while the {@link Firestore} instance is not started (after the app is
166
166
  * terminated or when the app is first initialized). On startup, this function
167
167
  * must be called before other functions (other than {@link
168
- * initializeFirestore} or {@link getFirestore})). If the {@link Firestore}
168
+ * initializeFirestore} or {@link (getFirestore:1)})). If the {@link Firestore}
169
169
  * instance is still running, the promise will be rejected with the error code
170
170
  * of `failed-precondition`.
171
171
  *
@@ -221,7 +221,7 @@ export declare function disableNetwork(firestore: Firestore): Promise<void>;
221
221
  * may be used. Any other function will throw a `FirestoreError`.
222
222
  *
223
223
  * To restart after termination, create a new instance of FirebaseFirestore with
224
- * {@link getFirestore}.
224
+ * {@link (getFirestore:1)}.
225
225
  *
226
226
  * Termination does not cancel any pending writes, and any promises that are
227
227
  * awaiting a response from the server will not be resolved. If you have
@@ -14,6 +14,8 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
+ export { aggregateQuerySnapshotEqual, getCountFromServer } from './api/aggregate';
18
+ export { AggregateField, AggregateFieldType, AggregateSpec, AggregateSpecData, AggregateQuerySnapshot } from './lite-api/aggregate_types';
17
19
  export { FieldPath, documentId } from './api/field_path';
18
20
  export { Firestore, EmulatorMockTokenOptions, initializeFirestore, getFirestore, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, clearIndexedDbPersistence, waitForPendingWrites, disableNetwork, enableNetwork, terminate, connectFirestoreEmulator, loadBundle, namedQuery, ensureFirestoreConfigured } from './api/database';
19
21
  export { LoadBundleTask, LoadBundleTaskProgress, TaskState } from './api/bundle';
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { AbstractUserDataWriter, Query } from '../api';
18
+ import { AggregateField, AggregateQuerySnapshot } from '../lite-api/aggregate_types';
19
+ import { Datastore } from '../remote/datastore';
20
+ /**
21
+ * CountQueryRunner encapsulates the logic needed to run the count aggregation
22
+ * queries.
23
+ */
24
+ export declare class CountQueryRunner {
25
+ private readonly query;
26
+ private readonly datastore;
27
+ private readonly userDataWriter;
28
+ constructor(query: Query<unknown>, datastore: Datastore, userDataWriter: AbstractUserDataWriter);
29
+ run(): Promise<AggregateQuerySnapshot<{
30
+ count: AggregateField<number>;
31
+ }>>;
32
+ }
@@ -15,10 +15,10 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { GetOptions } from '@firebase/firestore-types';
18
+ import { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot } from '../api';
18
19
  import { LoadBundleTask } from '../api/bundle';
19
20
  import { CredentialsProvider } from '../api/credentials';
20
21
  import { User } from '../auth/user';
21
- import { AggregateField, AggregateQuerySnapshot } from '../lite-api/aggregate';
22
22
  import { Query as LiteQuery } from '../lite-api/reference';
23
23
  import { LocalStore } from '../local/local_store';
24
24
  import { Document } from '../model/document';
@@ -117,7 +117,7 @@ export declare function firestoreClientAddSnapshotsInSyncListener(client: Firest
117
117
  * performed before any writes. Transactions must be performed while online.
118
118
  */
119
119
  export declare function firestoreClientTransaction<T>(client: FirestoreClient, updateFunction: (transaction: Transaction) => Promise<T>, options: TransactionOptions): Promise<T>;
120
- export declare function firestoreClientRunCountQuery(client: FirestoreClient, query: LiteQuery<unknown>): Promise<AggregateQuerySnapshot<{
120
+ export declare function firestoreClientRunCountQuery(client: FirestoreClient, query: LiteQuery<unknown>, userDataWriter: AbstractUserDataWriter): Promise<AggregateQuerySnapshot<{
121
121
  count: AggregateField<number>;
122
122
  }>>;
123
123
  export declare function firestoreClientLoadBundle(client: FirestoreClient, databaseId: DatabaseId, data: ReadableStream<Uint8Array> | ArrayBuffer | string, resultTask: LoadBundleTask): void;
@@ -14,79 +14,35 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
+ import { AggregateField, AggregateQuerySnapshot, AggregateSpec } from './aggregate_types';
17
18
  import { Query } from './reference';
18
19
  /**
19
- * An `AggregateField`that captures input type T.
20
- */
21
- export declare class AggregateField<T> {
22
- type: string;
23
- }
24
- /**
25
- * Creates and returns an aggregation field that counts the documents in the result set.
26
- * @returns An `AggregateField` object with number input type.
27
- */
28
- export declare function count(): AggregateField<number>;
29
- /**
30
- * The union of all `AggregateField` types that are returned from the factory
31
- * functions.
32
- */
33
- export declare type AggregateFieldType = ReturnType<typeof count>;
34
- /**
35
- * A type whose values are all `AggregateField` objects.
36
- * This is used as an argument to the "getter" functions, and the snapshot will
37
- * map the same names to the corresponding values.
38
- */
39
- export interface AggregateSpec {
40
- [field: string]: AggregateFieldType;
41
- }
42
- /**
43
- * A type whose keys are taken from an `AggregateSpec` type, and whose values
44
- * are the result of the aggregation performed by the corresponding
45
- * `AggregateField` from the input `AggregateSpec`.
46
- */
47
- export declare type AggregateSpecData<T extends AggregateSpec> = {
48
- [P in keyof T]: T[P] extends AggregateField<infer U> ? U : never;
49
- };
50
- /**
51
- * An `AggregateQuerySnapshot` contains the results of running an aggregate query.
52
- */
53
- export declare class AggregateQuerySnapshot<T extends AggregateSpec> {
54
- readonly query: Query<unknown>;
55
- private readonly _data;
56
- readonly type = "AggregateQuerySnapshot";
57
- /** @hideconstructor */
58
- constructor(query: Query<unknown>, _data: AggregateSpecData<T>);
59
- /**
60
- * The results of the requested aggregations. The keys of the returned object
61
- * will be the same as those of the `AggregateSpec` object specified to the
62
- * aggregation method, and the values will be the corresponding aggregation
63
- * result.
64
- *
65
- * @returns The aggregation statistics result of running a query.
66
- */
67
- data(): AggregateSpecData<T>;
68
- }
69
- /**
70
- * Counts the number of documents in the result set of the given query, ignoring
71
- * any locally-cached data and any locally-pending writes and simply surfacing
72
- * whatever the server returns. If the server cannot be reached then the
73
- * returned promise will be rejected.
20
+ * Calculates the number of documents in the result set of the given query,
21
+ * without actually downloading the documents.
74
22
  *
75
- * @param query - The `Query` to execute.
23
+ * Using this function to count the documents is efficient because only the
24
+ * final count, not the documents' data, is downloaded. This function can even
25
+ * count the documents if the result set would be prohibitively large to
26
+ * download entirely (e.g. thousands of documents).
76
27
  *
77
- * @returns An `AggregateQuerySnapshot` that contains the number of documents.
28
+ * @param query - The query whose result set size to calculate.
29
+ * @returns A Promise that will be resolved with the count; the count can be
30
+ * retrieved from `snapshot.data().count`, where `snapshot` is the
31
+ * `AggregateQuerySnapshot` to which the returned Promise resolves.
78
32
  */
79
33
  export declare function getCount(query: Query<unknown>): Promise<AggregateQuerySnapshot<{
80
34
  count: AggregateField<number>;
81
35
  }>>;
82
36
  /**
83
37
  * Compares two `AggregateQuerySnapshot` instances for equality.
38
+ *
84
39
  * Two `AggregateQuerySnapshot` instances are considered "equal" if they have
85
- * the same underlying query, and the same data.
40
+ * underlying queries that compare equal, and the same data.
86
41
  *
87
- * @param left - The `AggregateQuerySnapshot` to compare.
88
- * @param right - The `AggregateQuerySnapshot` to compare.
42
+ * @param left - The first `AggregateQuerySnapshot` to compare.
43
+ * @param right - The second `AggregateQuerySnapshot` to compare.
89
44
  *
90
- * @returns true if the AggregateQuerySnapshots are equal.
45
+ * @returns `true` if the objects are "equal", as defined above, or `false`
46
+ * otherwise.
91
47
  */
92
48
  export declare function aggregateQuerySnapshotEqual<T extends AggregateSpec>(left: AggregateQuerySnapshot<T>, right: AggregateQuerySnapshot<T>): boolean;
@@ -0,0 +1,69 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { Query } from './reference';
18
+ /**
19
+ * Represents an aggregation that can be performed by Firestore.
20
+ */
21
+ export declare class AggregateField<T> {
22
+ /** A type string to uniquely identify instances of this class. */
23
+ type: string;
24
+ }
25
+ /**
26
+ * The union of all `AggregateField` types that are supported by Firestore.
27
+ */
28
+ export declare type AggregateFieldType = AggregateField<number>;
29
+ /**
30
+ * A type whose property values are all `AggregateField` objects.
31
+ */
32
+ export interface AggregateSpec {
33
+ [field: string]: AggregateFieldType;
34
+ }
35
+ /**
36
+ * A type whose keys are taken from an `AggregateSpec`, and whose values are the
37
+ * result of the aggregation performed by the corresponding `AggregateField`
38
+ * from the input `AggregateSpec`.
39
+ */
40
+ export declare type AggregateSpecData<T extends AggregateSpec> = {
41
+ [P in keyof T]: T[P] extends AggregateField<infer U> ? U : never;
42
+ };
43
+ /**
44
+ * The results of executing an aggregation query.
45
+ */
46
+ export declare class AggregateQuerySnapshot<T extends AggregateSpec> {
47
+ private readonly _data;
48
+ /** A type string to uniquely identify instances of this class. */
49
+ readonly type = "AggregateQuerySnapshot";
50
+ /**
51
+ * The underlying query over which the aggregations recorded in this
52
+ * `AggregateQuerySnapshot` were performed.
53
+ */
54
+ readonly query: Query<unknown>;
55
+ /** @hideconstructor */
56
+ constructor(query: Query<unknown>, _data: AggregateSpecData<T>);
57
+ /**
58
+ * Returns the results of the aggregations performed over the underlying
59
+ * query.
60
+ *
61
+ * The keys of the returned object will be the same as those of the
62
+ * `AggregateSpec` object specified to the aggregation method, and the values
63
+ * will be the corresponding aggregation result.
64
+ *
65
+ * @returns The results of the aggregations performed over the underlying
66
+ * query.
67
+ */
68
+ data(): AggregateSpecData<T>;
69
+ }
@@ -21,6 +21,7 @@ import { User } from '../auth/user';
21
21
  import { DatabaseId } from '../core/database_info';
22
22
  import { FirestoreService } from './components';
23
23
  import { FirestoreSettingsImpl, PrivateSettings, FirestoreSettings } from './settings';
24
+ export { EmulatorMockTokenOptions } from '@firebase/util';
24
25
  declare module '@firebase/component' {
25
26
  interface NameServiceMapping {
26
27
  'firestore/lite': Firestore;
@@ -29,7 +30,7 @@ declare module '@firebase/component' {
29
30
  /**
30
31
  * The Cloud Firestore service interface.
31
32
  *
32
- * Do not call this constructor directly. Instead, use {@link getFirestore}.
33
+ * Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.
33
34
  */
34
35
  export declare class Firestore implements FirestoreService {
35
36
  _authCredentials: CredentialsProvider<User>;
@@ -71,8 +72,8 @@ export declare class Firestore implements FirestoreService {
71
72
  /**
72
73
  * Initializes a new instance of Cloud Firestore with the provided settings.
73
74
  * Can only be called before any other functions, including
74
- * {@link getFirestore}. If the custom settings are empty, this function is
75
- * equivalent to calling {@link getFirestore}.
75
+ * {@link (getFirestore:1)}. If the custom settings are empty, this function is
76
+ * equivalent to calling {@link (getFirestore:1)}.
76
77
  *
77
78
  * @param app - The {@link @firebase/app#FirebaseApp} with which the `Firestore` instance will
78
79
  * be associated.
@@ -83,8 +84,8 @@ export declare function initializeFirestore(app: FirebaseApp, settings: Firestor
83
84
  /**
84
85
  * Initializes a new instance of Cloud Firestore with the provided settings.
85
86
  * Can only be called before any other functions, including
86
- * {@link getFirestore}. If the custom settings are empty, this function is
87
- * equivalent to calling {@link getFirestore}.
87
+ * {@link (getFirestore:1)}. If the custom settings are empty, this function is
88
+ * equivalent to calling {@link (getFirestore:1)}.
88
89
  *
89
90
  * @param app - The {@link @firebase/app#FirebaseApp} with which the `Firestore` instance will
90
91
  * be associated.
@@ -134,7 +135,6 @@ export declare function getFirestore(databaseId: string): Firestore;
134
135
  * @internal
135
136
  */
136
137
  export declare function getFirestore(app: FirebaseApp, databaseId: string): Firestore;
137
- export { EmulatorMockTokenOptions } from '@firebase/util';
138
138
  /**
139
139
  * Modify this instance to communicate with the Cloud Firestore emulator.
140
140
  *
@@ -160,7 +160,7 @@ export declare function connectFirestoreEmulator(firestore: Firestore, host: str
160
160
  * response from the server will not be resolved.
161
161
  *
162
162
  * To restart after termination, create a new instance of `Firestore` with
163
- * {@link getFirestore}.
163
+ * {@link (getFirestore:1)}.
164
164
  *
165
165
  * Note: Under normal circumstances, calling `terminate()` is not required. This
166
166
  * function is useful only when you want to force this instance to release all of
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};