@firebase/firestore 3.4.2-canary.044a8d7f9 → 3.4.2-canary.31055413e

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 (129) hide show
  1. package/dist/firestore/src/api/snapshot.d.ts +6 -6
  2. package/dist/firestore/src/lite-api/snapshot.d.ts +2 -2
  3. package/dist/firestore/test/integration/bootstrap.d.ts +0 -1
  4. package/dist/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  5. package/dist/firestore/test/integration/util/firebase_export.d.ts +6 -14
  6. package/dist/firestore/test/integration/util/helpers.d.ts +18 -18
  7. package/dist/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  8. package/dist/firestore/test/integration/util/settings.d.ts +2 -2
  9. package/dist/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  10. package/dist/firestore/test/util/api_helpers.d.ts +1 -1
  11. package/dist/firestore/test/util/helpers.d.ts +4 -6
  12. package/dist/index.d.ts +6 -6
  13. package/dist/index.esm2017.js +227 -227
  14. package/dist/index.esm2017.js.map +1 -1
  15. package/dist/index.esm5.js +202 -202
  16. package/dist/index.esm5.js.map +1 -1
  17. package/dist/index.node.cjs.js +14 -15
  18. package/dist/index.node.cjs.js.map +1 -1
  19. package/dist/index.node.mjs +14 -15
  20. package/dist/index.node.mjs.map +1 -1
  21. package/dist/index.rn.js +1068 -1068
  22. package/dist/index.rn.js.map +1 -1
  23. package/dist/internal.d.ts +8 -8
  24. package/dist/lite/firestore/src/api/snapshot.d.ts +6 -6
  25. package/dist/lite/firestore/src/lite-api/snapshot.d.ts +2 -2
  26. package/dist/lite/firestore/test/integration/bootstrap.d.ts +0 -1
  27. package/dist/lite/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  28. package/dist/lite/firestore/test/integration/util/firebase_export.d.ts +6 -14
  29. package/dist/lite/firestore/test/integration/util/helpers.d.ts +18 -18
  30. package/dist/lite/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  31. package/dist/lite/firestore/test/integration/util/settings.d.ts +2 -2
  32. package/dist/lite/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  33. package/dist/lite/firestore/test/util/api_helpers.d.ts +1 -1
  34. package/dist/lite/firestore/test/util/helpers.d.ts +4 -6
  35. package/dist/lite/index.browser.esm2017.js +124 -124
  36. package/dist/lite/index.browser.esm2017.js.map +1 -1
  37. package/dist/lite/index.browser.esm5.js +99 -99
  38. package/dist/lite/index.browser.esm5.js.map +1 -1
  39. package/dist/lite/index.d.ts +2 -2
  40. package/dist/lite/index.node.cjs.js +11 -12
  41. package/dist/lite/index.node.cjs.js.map +1 -1
  42. package/dist/lite/index.node.mjs +11 -12
  43. package/dist/lite/index.node.mjs.map +1 -1
  44. package/dist/lite/index.rn.esm2017.js +148 -148
  45. package/dist/lite/index.rn.esm2017.js.map +1 -1
  46. package/dist/lite/internal.d.ts +2 -2
  47. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +16 -16
  48. package/dist/lite/packages/firestore/src/api/snapshot.d.ts +6 -6
  49. package/dist/lite/packages/firestore/src/lite-api/snapshot.d.ts +2 -2
  50. package/dist/lite/packages/firestore/test/integration/bootstrap.d.ts +0 -1
  51. package/dist/lite/packages/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  52. package/dist/lite/packages/firestore/test/integration/util/firebase_export.d.ts +6 -14
  53. package/dist/lite/packages/firestore/test/integration/util/helpers.d.ts +18 -18
  54. package/dist/lite/packages/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  55. package/dist/lite/packages/firestore/test/integration/util/settings.d.ts +2 -2
  56. package/dist/lite/packages/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  57. package/dist/lite/packages/firestore/test/util/api_helpers.d.ts +1 -1
  58. package/dist/lite/packages/firestore/test/util/helpers.d.ts +4 -6
  59. package/dist/lite/private.d.ts +2 -2
  60. package/dist/packages/firestore/dist/index.esm2017.d.ts +13 -13
  61. package/dist/packages/firestore/src/api/snapshot.d.ts +6 -6
  62. package/dist/packages/firestore/src/lite-api/snapshot.d.ts +2 -2
  63. package/dist/packages/firestore/test/integration/bootstrap.d.ts +0 -1
  64. package/dist/packages/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  65. package/dist/packages/firestore/test/integration/util/firebase_export.d.ts +6 -14
  66. package/dist/packages/firestore/test/integration/util/helpers.d.ts +18 -18
  67. package/dist/packages/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  68. package/dist/packages/firestore/test/integration/util/settings.d.ts +2 -2
  69. package/dist/packages/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  70. package/dist/packages/firestore/test/util/api_helpers.d.ts +1 -1
  71. package/dist/packages/firestore/test/util/helpers.d.ts +4 -6
  72. package/dist/private.d.ts +8 -8
  73. package/package.json +10 -13
  74. package/dist/firestore/compat/api/blob.d.ts +0 -29
  75. package/dist/firestore/compat/api/database.d.ts +0 -228
  76. package/dist/firestore/compat/api/field_path.d.ts +0 -36
  77. package/dist/firestore/compat/api/field_value.d.ts +0 -29
  78. package/dist/firestore/compat/api/geo_point.d.ts +0 -17
  79. package/dist/firestore/compat/api/observer.d.ts +0 -29
  80. package/dist/firestore/compat/api/timestamp.d.ts +0 -17
  81. package/dist/firestore/compat/config.d.ts +0 -28
  82. package/dist/firestore/compat/index.console.d.ts +0 -42
  83. package/dist/firestore/compat/index.d.ts +0 -49
  84. package/dist/firestore/compat/index.node.d.ts +0 -22
  85. package/dist/firestore/compat/index.rn.d.ts +0 -22
  86. package/dist/firestore/compat/register-module.d.ts +0 -42
  87. package/dist/firestore/compat/util/input_validation.d.ts +0 -18
  88. package/dist/lite/firestore/compat/api/blob.d.ts +0 -29
  89. package/dist/lite/firestore/compat/api/database.d.ts +0 -228
  90. package/dist/lite/firestore/compat/api/field_path.d.ts +0 -36
  91. package/dist/lite/firestore/compat/api/field_value.d.ts +0 -29
  92. package/dist/lite/firestore/compat/api/geo_point.d.ts +0 -17
  93. package/dist/lite/firestore/compat/api/observer.d.ts +0 -29
  94. package/dist/lite/firestore/compat/api/timestamp.d.ts +0 -17
  95. package/dist/lite/firestore/compat/config.d.ts +0 -28
  96. package/dist/lite/firestore/compat/index.console.d.ts +0 -42
  97. package/dist/lite/firestore/compat/index.d.ts +0 -49
  98. package/dist/lite/firestore/compat/index.node.d.ts +0 -22
  99. package/dist/lite/firestore/compat/index.rn.d.ts +0 -22
  100. package/dist/lite/firestore/compat/register-module.d.ts +0 -42
  101. package/dist/lite/firestore/compat/util/input_validation.d.ts +0 -18
  102. package/dist/lite/packages/firestore/compat/api/blob.d.ts +0 -29
  103. package/dist/lite/packages/firestore/compat/api/database.d.ts +0 -228
  104. package/dist/lite/packages/firestore/compat/api/field_path.d.ts +0 -36
  105. package/dist/lite/packages/firestore/compat/api/field_value.d.ts +0 -29
  106. package/dist/lite/packages/firestore/compat/api/geo_point.d.ts +0 -17
  107. package/dist/lite/packages/firestore/compat/api/observer.d.ts +0 -29
  108. package/dist/lite/packages/firestore/compat/api/timestamp.d.ts +0 -17
  109. package/dist/lite/packages/firestore/compat/config.d.ts +0 -28
  110. package/dist/lite/packages/firestore/compat/index.console.d.ts +0 -42
  111. package/dist/lite/packages/firestore/compat/index.d.ts +0 -49
  112. package/dist/lite/packages/firestore/compat/index.node.d.ts +0 -22
  113. package/dist/lite/packages/firestore/compat/index.rn.d.ts +0 -22
  114. package/dist/lite/packages/firestore/compat/register-module.d.ts +0 -42
  115. package/dist/lite/packages/firestore/compat/util/input_validation.d.ts +0 -18
  116. package/dist/packages/firestore/compat/api/blob.d.ts +0 -29
  117. package/dist/packages/firestore/compat/api/database.d.ts +0 -228
  118. package/dist/packages/firestore/compat/api/field_path.d.ts +0 -36
  119. package/dist/packages/firestore/compat/api/field_value.d.ts +0 -29
  120. package/dist/packages/firestore/compat/api/geo_point.d.ts +0 -17
  121. package/dist/packages/firestore/compat/api/observer.d.ts +0 -29
  122. package/dist/packages/firestore/compat/api/timestamp.d.ts +0 -17
  123. package/dist/packages/firestore/compat/config.d.ts +0 -28
  124. package/dist/packages/firestore/compat/index.console.d.ts +0 -42
  125. package/dist/packages/firestore/compat/index.d.ts +0 -49
  126. package/dist/packages/firestore/compat/index.node.d.ts +0 -22
  127. package/dist/packages/firestore/compat/index.rn.d.ts +0 -22
  128. package/dist/packages/firestore/compat/register-module.d.ts +0 -42
  129. package/dist/packages/firestore/compat/util/input_validation.d.ts +0 -18
@@ -1,42 +0,0 @@
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 { Firestore as FirestoreCompat, PersistenceProvider } from './api/database';
20
- export { CollectionReference, DocumentReference, DocumentSnapshot, QuerySnapshot } from './api/database';
21
- export { Blob } from './api/blob';
22
- export { GeoPoint } from './api/geo_point';
23
- export { FieldPath } from './api/field_path';
24
- export { FieldValue } from './api/field_value';
25
- export { Timestamp } from './api/timestamp';
26
- export interface FirestoreDatabase {
27
- projectId: string;
28
- database?: string;
29
- }
30
- /**
31
- * The persistence provider included with the memory-only SDK. This provider
32
- * errors for all attempts to access persistence.
33
- */
34
- export declare class MemoryPersistenceProvider implements PersistenceProvider {
35
- enableIndexedDbPersistence(firestore: FirestoreCompat, forceOwnership: boolean): Promise<void>;
36
- enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
37
- clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
38
- }
39
- /** Firestore class that exposes the constructor expected by the Console. */
40
- export declare class Firestore extends FirestoreCompat {
41
- constructor(firestoreDatabase: FirestoreDatabase, authProvider: Provider<FirebaseAuthInternalName>);
42
- }
@@ -1,49 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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;