@firebase/firestore-compat 0.4.0-20230301000120 → 0.4.0-20250715195345

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 (85) hide show
  1. package/dist/index.cjs.js +980 -972
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/{index.esm2017.js → index.esm.js} +981 -973
  4. package/dist/index.esm.js.map +1 -0
  5. package/dist/index.node.cjs.js +980 -972
  6. package/dist/index.node.cjs.js.map +1 -1
  7. package/dist/index.rn.js +980 -972
  8. package/dist/index.rn.js.map +1 -1
  9. package/dist/node-esm/index.node.esm.js +980 -972
  10. package/dist/node-esm/index.node.esm.js.map +1 -1
  11. package/dist/node-esm/src/api/blob.d.ts +29 -29
  12. package/dist/node-esm/src/api/database.d.ts +228 -228
  13. package/dist/node-esm/src/api/field_path.d.ts +36 -36
  14. package/dist/node-esm/src/api/field_value.d.ts +29 -29
  15. package/dist/node-esm/src/api/geo_point.d.ts +17 -17
  16. package/dist/node-esm/src/api/observer.d.ts +29 -29
  17. package/dist/node-esm/src/api/timestamp.d.ts +17 -17
  18. package/dist/node-esm/src/config.d.ts +28 -28
  19. package/dist/node-esm/src/index.console.d.ts +48 -48
  20. package/dist/node-esm/src/index.d.ts +49 -49
  21. package/dist/node-esm/src/index.node.d.ts +22 -22
  22. package/dist/node-esm/src/index.rn.d.ts +22 -22
  23. package/dist/node-esm/src/register-module.d.ts +42 -42
  24. package/dist/node-esm/src/util/input_validation.d.ts +18 -18
  25. package/dist/node-esm/test/array_transforms.test.d.ts +17 -17
  26. package/dist/node-esm/test/batch_writes.test.d.ts +17 -17
  27. package/dist/node-esm/test/bootstrap.d.ts +17 -17
  28. package/dist/node-esm/test/bundle.test.d.ts +17 -17
  29. package/dist/node-esm/test/cursor.test.d.ts +17 -17
  30. package/dist/node-esm/test/database.test.d.ts +17 -17
  31. package/dist/node-esm/test/fields.test.d.ts +17 -17
  32. package/dist/node-esm/test/get_options.test.d.ts +17 -17
  33. package/dist/node-esm/test/numeric_transforms.test.d.ts +17 -17
  34. package/dist/node-esm/test/query.test.d.ts +17 -17
  35. package/dist/node-esm/test/server_timestamp.test.d.ts +17 -17
  36. package/dist/node-esm/test/smoke.test.d.ts +17 -17
  37. package/dist/node-esm/test/transactions.test.d.ts +17 -17
  38. package/dist/node-esm/test/type.test.d.ts +17 -17
  39. package/dist/node-esm/test/util/equality_matcher.d.ts +33 -33
  40. package/dist/node-esm/test/util/events_accumulator.d.ts +39 -39
  41. package/dist/node-esm/test/util/firebase_export.d.ts +29 -29
  42. package/dist/node-esm/test/util/helpers.d.ts +49 -49
  43. package/dist/node-esm/test/util/promise.d.ts +28 -28
  44. package/dist/node-esm/test/util/settings.d.ts +23 -23
  45. package/dist/node-esm/test/validation.test.d.ts +17 -17
  46. package/dist/src/api/blob.d.ts +29 -29
  47. package/dist/src/api/database.d.ts +228 -228
  48. package/dist/src/api/field_path.d.ts +36 -36
  49. package/dist/src/api/field_value.d.ts +29 -29
  50. package/dist/src/api/geo_point.d.ts +17 -17
  51. package/dist/src/api/observer.d.ts +29 -29
  52. package/dist/src/api/timestamp.d.ts +17 -17
  53. package/dist/src/config.d.ts +28 -28
  54. package/dist/src/index.console.d.ts +48 -48
  55. package/dist/src/index.d.ts +117 -85
  56. package/dist/src/index.node.d.ts +22 -22
  57. package/dist/src/index.rn.d.ts +22 -22
  58. package/dist/src/register-module.d.ts +42 -42
  59. package/dist/src/util/input_validation.d.ts +18 -18
  60. package/dist/test/array_transforms.test.d.ts +17 -17
  61. package/dist/test/batch_writes.test.d.ts +17 -17
  62. package/dist/test/bootstrap.d.ts +17 -17
  63. package/dist/test/bundle.test.d.ts +17 -17
  64. package/dist/test/cursor.test.d.ts +17 -17
  65. package/dist/test/database.test.d.ts +17 -17
  66. package/dist/test/fields.test.d.ts +17 -17
  67. package/dist/test/get_options.test.d.ts +17 -17
  68. package/dist/test/numeric_transforms.test.d.ts +17 -17
  69. package/dist/test/query.test.d.ts +17 -17
  70. package/dist/test/server_timestamp.test.d.ts +17 -17
  71. package/dist/test/smoke.test.d.ts +17 -17
  72. package/dist/test/transactions.test.d.ts +17 -17
  73. package/dist/test/type.test.d.ts +17 -17
  74. package/dist/test/util/equality_matcher.d.ts +33 -33
  75. package/dist/test/util/events_accumulator.d.ts +39 -39
  76. package/dist/test/util/firebase_export.d.ts +29 -29
  77. package/dist/test/util/helpers.d.ts +49 -49
  78. package/dist/test/util/promise.d.ts +28 -28
  79. package/dist/test/util/settings.d.ts +23 -23
  80. package/dist/test/validation.test.d.ts +17 -17
  81. package/package.json +25 -23
  82. package/CHANGELOG.md +0 -330
  83. package/dist/index.esm2017.js.map +0 -1
  84. package/dist/index.esm5.js +0 -1196
  85. package/dist/index.esm5.js.map +0 -1
@@ -1,29 +1,29 @@
1
- /**
2
- * @license
3
- * Copyright 2017 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 { FirestoreError } from '@firebase/firestore';
18
- /**
19
- * Observer/Subscribe interfaces.
20
- */
21
- export declare type NextFn<T> = (value: T) => void;
22
- export declare type ErrorFn = (error: FirestoreError) => void;
23
- export declare type CompleteFn = () => void;
24
- export interface PartialObserver<T> {
25
- next?: NextFn<T>;
26
- error?: ErrorFn;
27
- complete?: CompleteFn;
28
- }
29
- export declare function isPartialObserver<T>(obj: unknown): obj is PartialObserver<T>;
1
+ /**
2
+ * @license
3
+ * Copyright 2017 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 { FirestoreError } from '@firebase/firestore';
18
+ /**
19
+ * Observer/Subscribe interfaces.
20
+ */
21
+ export type NextFn<T> = (value: T) => void;
22
+ export type ErrorFn = (error: FirestoreError) => void;
23
+ export type CompleteFn = () => void;
24
+ export interface PartialObserver<T> {
25
+ next?: NextFn<T>;
26
+ error?: ErrorFn;
27
+ complete?: CompleteFn;
28
+ }
29
+ export declare function isPartialObserver<T>(obj: unknown): obj is PartialObserver<T>;
@@ -1,17 +1,17 @@
1
- /**
2
- * @license
3
- * Copyright 2017 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 { Timestamp } from '@firebase/firestore';
1
+ /**
2
+ * @license
3
+ * Copyright 2017 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 { Timestamp } from '@firebase/firestore';
@@ -1,28 +1,28 @@
1
- /**
2
- * @license
3
- * Copyright 2021 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 { FirebaseApp } from '@firebase/app-compat';
18
- import { FirebaseNamespace } from '@firebase/app-types';
19
- import { Firestore as ModularFirestore } from '@firebase/firestore';
20
- import { Firestore } from './api/database';
21
- /**
22
- * Configures Firestore as part of the Firebase SDK by calling registerComponent.
23
- *
24
- * @param firebase - The FirebaseNamespace to register Firestore with
25
- * @param firestoreFactory - A factory function that returns a new Firestore
26
- * instance.
27
- */
28
- export declare function configureForFirebase(firebase: FirebaseNamespace, firestoreFactory: (app: FirebaseApp, firestoreExp: ModularFirestore) => Firestore): void;
1
+ /**
2
+ * @license
3
+ * Copyright 2021 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 { FirebaseApp } from '@firebase/app-compat';
18
+ import { FirebaseNamespace } from '@firebase/app-types';
19
+ import { Firestore as ModularFirestore } from '@firebase/firestore';
20
+ import { Firestore } from './api/database';
21
+ /**
22
+ * Configures Firestore as part of the Firebase SDK by calling registerComponent.
23
+ *
24
+ * @param firebase - The FirebaseNamespace to register Firestore with
25
+ * @param firestoreFactory - A factory function that returns a new Firestore
26
+ * instance.
27
+ */
28
+ export declare function configureForFirebase(firebase: FirebaseNamespace, firestoreFactory: (app: FirebaseApp, firestoreExp: ModularFirestore) => Firestore): void;
@@ -1,48 +1,48 @@
1
- /**
2
- * @license
3
- * Copyright 2019 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 { FirebaseAuthInternalName } from '@firebase/auth-interop-types';
18
- import { Provider } from '@firebase/component';
19
- import { Query as ExpQuery } from '@firebase/firestore';
20
- import { Compat } from '@firebase/util';
21
- import { Firestore as FirestoreCompat, PersistenceProvider } from './api/database';
22
- export { CollectionReference, DocumentReference, DocumentSnapshot, QuerySnapshot } from './api/database';
23
- export { Blob } from './api/blob';
24
- export { GeoPoint } from './api/geo_point';
25
- export { FieldPath } from './api/field_path';
26
- export { FieldValue } from './api/field_value';
27
- export { Timestamp } from './api/timestamp';
28
- export interface FirestoreDatabase {
29
- projectId: string;
30
- database?: string;
31
- }
32
- /**
33
- * The persistence provider included with the memory-only SDK. This provider
34
- * errors for all attempts to access persistence.
35
- */
36
- export declare class MemoryPersistenceProvider implements PersistenceProvider {
37
- enableIndexedDbPersistence(firestore: FirestoreCompat, forceOwnership: boolean): Promise<void>;
38
- enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
39
- clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
40
- }
41
- /** Firestore class that exposes the constructor expected by the Console. */
42
- export declare class Firestore extends FirestoreCompat {
43
- constructor(firestoreDatabase: FirestoreDatabase, authProvider: Provider<FirebaseAuthInternalName>);
44
- INTERNAL: {
45
- delete: () => Promise<void>;
46
- count: (query: Compat<ExpQuery<unknown>>) => Promise<number>;
47
- };
48
- }
1
+ /**
2
+ * @license
3
+ * Copyright 2019 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 { FirebaseAuthInternalName } from '@firebase/auth-interop-types';
18
+ import { Provider } from '@firebase/component';
19
+ import { Query as ExpQuery } from '@firebase/firestore';
20
+ import { Compat } from '@firebase/util';
21
+ import { Firestore as FirestoreCompat, PersistenceProvider } from './api/database';
22
+ export { CollectionReference, DocumentReference, DocumentSnapshot, QuerySnapshot } from './api/database';
23
+ export { Blob } from './api/blob';
24
+ export { GeoPoint } from './api/geo_point';
25
+ export { FieldPath } from './api/field_path';
26
+ export { FieldValue } from './api/field_value';
27
+ export { Timestamp } from './api/timestamp';
28
+ export interface FirestoreDatabase {
29
+ projectId: string;
30
+ database?: string;
31
+ }
32
+ /**
33
+ * The persistence provider included with the memory-only SDK. This provider
34
+ * errors for all attempts to access persistence.
35
+ */
36
+ export declare class MemoryPersistenceProvider implements PersistenceProvider {
37
+ enableIndexedDbPersistence(firestore: FirestoreCompat, forceOwnership: boolean): Promise<void>;
38
+ enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
39
+ clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
40
+ }
41
+ /** Firestore class that exposes the constructor expected by the Console. */
42
+ export declare class Firestore extends FirestoreCompat {
43
+ constructor(firestoreDatabase: FirestoreDatabase, authProvider: Provider<FirebaseAuthInternalName>);
44
+ INTERNAL: {
45
+ delete: () => Promise<void>;
46
+ count: (query: Compat<ExpQuery<unknown>>) => Promise<number>;
47
+ };
48
+ }
@@ -1,49 +1,49 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import type { FirebaseNamespace } from '@firebase/app-types';
18
- import * as types from '@firebase/firestore-types';
19
- import './register-module';
20
- /**
21
- * Registers the main Firestore build with the components framework.
22
- * Persistence can be enabled via `firebase.firestore().enablePersistence()`.
23
- */
24
- export declare function registerFirestore(instance: FirebaseNamespace): void;
25
- declare module '@firebase/app-compat' {
26
- interface FirebaseNamespace {
27
- firestore: {
28
- (app?: FirebaseApp): types.FirebaseFirestore;
29
- Blob: typeof types.Blob;
30
- CollectionReference: typeof types.CollectionReference;
31
- DocumentReference: typeof types.DocumentReference;
32
- DocumentSnapshot: typeof types.DocumentSnapshot;
33
- FieldPath: typeof types.FieldPath;
34
- FieldValue: typeof types.FieldValue;
35
- Firestore: typeof types.FirebaseFirestore;
36
- GeoPoint: typeof types.GeoPoint;
37
- Query: typeof types.Query;
38
- QueryDocumentSnapshot: typeof types.QueryDocumentSnapshot;
39
- QuerySnapshot: typeof types.QuerySnapshot;
40
- Timestamp: typeof types.Timestamp;
41
- Transaction: typeof types.Transaction;
42
- WriteBatch: typeof types.WriteBatch;
43
- setLogLevel: typeof types.setLogLevel;
44
- };
45
- }
46
- interface FirebaseApp {
47
- firestore?(): types.FirebaseFirestore;
48
- }
49
- }
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import type { FirebaseNamespace } from '@firebase/app-types';
18
+ import * as types from '@firebase/firestore-types';
19
+ import './register-module';
20
+ /**
21
+ * Registers the main Firestore build with the components framework.
22
+ * Persistence can be enabled via `firebase.firestore().enablePersistence()`.
23
+ */
24
+ export declare function registerFirestore(instance: FirebaseNamespace): void;
25
+ declare module '@firebase/app-compat' {
26
+ interface FirebaseNamespace {
27
+ firestore: {
28
+ (app?: FirebaseApp): types.FirebaseFirestore;
29
+ Blob: typeof types.Blob;
30
+ CollectionReference: typeof types.CollectionReference;
31
+ DocumentReference: typeof types.DocumentReference;
32
+ DocumentSnapshot: typeof types.DocumentSnapshot;
33
+ FieldPath: typeof types.FieldPath;
34
+ FieldValue: typeof types.FieldValue;
35
+ Firestore: typeof types.FirebaseFirestore;
36
+ GeoPoint: typeof types.GeoPoint;
37
+ Query: typeof types.Query;
38
+ QueryDocumentSnapshot: typeof types.QueryDocumentSnapshot;
39
+ QuerySnapshot: typeof types.QuerySnapshot;
40
+ Timestamp: typeof types.Timestamp;
41
+ Transaction: typeof types.Transaction;
42
+ WriteBatch: typeof types.WriteBatch;
43
+ setLogLevel: typeof types.setLogLevel;
44
+ };
45
+ }
46
+ interface FirebaseApp {
47
+ firestore?(): types.FirebaseFirestore;
48
+ }
49
+ }
@@ -1,22 +1,22 @@
1
- /**
2
- * @license
3
- * Copyright 2017 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 { FirebaseNamespace } from '@firebase/app-types';
18
- /**
19
- * Registers the main Firestore Node build with the components framework.
20
- * Persistence can be enabled via `firebase.firestore().enablePersistence()`.
21
- */
22
- export declare function registerFirestore(instance: FirebaseNamespace): void;
1
+ /**
2
+ * @license
3
+ * Copyright 2017 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 { FirebaseNamespace } from '@firebase/app-types';
18
+ /**
19
+ * Registers the main Firestore Node build with the components framework.
20
+ * Persistence can be enabled via `firebase.firestore().enablePersistence()`.
21
+ */
22
+ export declare function registerFirestore(instance: FirebaseNamespace): void;
@@ -1,22 +1,22 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { FirebaseNamespace } from '@firebase/app-types';
18
- /**
19
- * Registers the main Firestore ReactNative build with the components framework.
20
- * Persistence can be enabled via `firebase.firestore().enablePersistence()`.
21
- */
22
- export declare function registerFirestore(instance: FirebaseNamespace): void;
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { FirebaseNamespace } from '@firebase/app-types';
18
+ /**
19
+ * Registers the main Firestore ReactNative build with the components framework.
20
+ * Persistence can be enabled via `firebase.firestore().enablePersistence()`.
21
+ */
22
+ export declare function registerFirestore(instance: FirebaseNamespace): void;
@@ -1,42 +1,42 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import * as types from '@firebase/firestore-types';
18
- declare module '@firebase/app-compat' {
19
- interface FirebaseNamespace {
20
- firestore: {
21
- (app?: FirebaseApp): types.FirebaseFirestore;
22
- Blob: typeof types.Blob;
23
- CollectionReference: typeof types.CollectionReference;
24
- DocumentReference: typeof types.DocumentReference;
25
- DocumentSnapshot: typeof types.DocumentSnapshot;
26
- FieldPath: typeof types.FieldPath;
27
- FieldValue: typeof types.FieldValue;
28
- Firestore: typeof types.FirebaseFirestore;
29
- GeoPoint: typeof types.GeoPoint;
30
- Query: typeof types.Query;
31
- QueryDocumentSnapshot: typeof types.QueryDocumentSnapshot;
32
- QuerySnapshot: typeof types.QuerySnapshot;
33
- Timestamp: typeof types.Timestamp;
34
- Transaction: typeof types.Transaction;
35
- WriteBatch: typeof types.WriteBatch;
36
- setLogLevel: typeof types.setLogLevel;
37
- };
38
- }
39
- interface FirebaseApp {
40
- firestore?(): types.FirebaseFirestore;
41
- }
42
- }
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import * as types from '@firebase/firestore-types';
18
+ declare module '@firebase/app-compat' {
19
+ interface FirebaseNamespace {
20
+ firestore: {
21
+ (app?: FirebaseApp): types.FirebaseFirestore;
22
+ Blob: typeof types.Blob;
23
+ CollectionReference: typeof types.CollectionReference;
24
+ DocumentReference: typeof types.DocumentReference;
25
+ DocumentSnapshot: typeof types.DocumentSnapshot;
26
+ FieldPath: typeof types.FieldPath;
27
+ FieldValue: typeof types.FieldValue;
28
+ Firestore: typeof types.FirebaseFirestore;
29
+ GeoPoint: typeof types.GeoPoint;
30
+ Query: typeof types.Query;
31
+ QueryDocumentSnapshot: typeof types.QueryDocumentSnapshot;
32
+ QuerySnapshot: typeof types.QuerySnapshot;
33
+ Timestamp: typeof types.Timestamp;
34
+ Transaction: typeof types.Transaction;
35
+ WriteBatch: typeof types.WriteBatch;
36
+ setLogLevel: typeof types.setLogLevel;
37
+ };
38
+ }
39
+ interface FirebaseApp {
40
+ firestore?(): types.FirebaseFirestore;
41
+ }
42
+ }
@@ -1,18 +1,18 @@
1
- /**
2
- * @license
3
- * Copyright 2021 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 { SetOptions } from '@firebase/firestore-types';
18
- export declare function validateSetOptions(methodName: string, options: SetOptions | undefined): SetOptions;
1
+ /**
2
+ * @license
3
+ * Copyright 2021 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 { SetOptions } from '@firebase/firestore-types';
18
+ export declare function validateSetOptions(methodName: string, options: SetOptions | undefined): SetOptions;
@@ -1,17 +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 {};
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 {};
@@ -1,17 +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 {};
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 {};