@firebase/firestore-compat 0.4.0-20230301000120 → 0.4.0-20250716004940
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.
- package/dist/index.cjs.js +980 -972
- package/dist/index.cjs.js.map +1 -1
- package/dist/{index.esm2017.js → index.esm.js} +981 -973
- package/dist/index.esm.js.map +1 -0
- package/dist/index.node.cjs.js +980 -972
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.rn.js +980 -972
- package/dist/index.rn.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +980 -972
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/api/blob.d.ts +29 -29
- package/dist/node-esm/src/api/database.d.ts +228 -228
- package/dist/node-esm/src/api/field_path.d.ts +36 -36
- package/dist/node-esm/src/api/field_value.d.ts +29 -29
- package/dist/node-esm/src/api/geo_point.d.ts +17 -17
- package/dist/node-esm/src/api/observer.d.ts +29 -29
- package/dist/node-esm/src/api/timestamp.d.ts +17 -17
- package/dist/node-esm/src/config.d.ts +28 -28
- package/dist/node-esm/src/index.console.d.ts +48 -48
- package/dist/node-esm/src/index.d.ts +49 -49
- package/dist/node-esm/src/index.node.d.ts +22 -22
- package/dist/node-esm/src/index.rn.d.ts +22 -22
- package/dist/node-esm/src/register-module.d.ts +42 -42
- package/dist/node-esm/src/util/input_validation.d.ts +18 -18
- package/dist/node-esm/test/array_transforms.test.d.ts +17 -17
- package/dist/node-esm/test/batch_writes.test.d.ts +17 -17
- package/dist/node-esm/test/bootstrap.d.ts +17 -17
- package/dist/node-esm/test/bundle.test.d.ts +17 -17
- package/dist/node-esm/test/cursor.test.d.ts +17 -17
- package/dist/node-esm/test/database.test.d.ts +17 -17
- package/dist/node-esm/test/fields.test.d.ts +17 -17
- package/dist/node-esm/test/get_options.test.d.ts +17 -17
- package/dist/node-esm/test/numeric_transforms.test.d.ts +17 -17
- package/dist/node-esm/test/query.test.d.ts +17 -17
- package/dist/node-esm/test/server_timestamp.test.d.ts +17 -17
- package/dist/node-esm/test/smoke.test.d.ts +17 -17
- package/dist/node-esm/test/transactions.test.d.ts +17 -17
- package/dist/node-esm/test/type.test.d.ts +17 -17
- package/dist/node-esm/test/util/equality_matcher.d.ts +33 -33
- package/dist/node-esm/test/util/events_accumulator.d.ts +39 -39
- package/dist/node-esm/test/util/firebase_export.d.ts +29 -29
- package/dist/node-esm/test/util/helpers.d.ts +49 -49
- package/dist/node-esm/test/util/promise.d.ts +28 -28
- package/dist/node-esm/test/util/settings.d.ts +23 -23
- package/dist/node-esm/test/validation.test.d.ts +17 -17
- package/dist/src/api/blob.d.ts +29 -29
- package/dist/src/api/database.d.ts +228 -228
- package/dist/src/api/field_path.d.ts +36 -36
- package/dist/src/api/field_value.d.ts +29 -29
- package/dist/src/api/geo_point.d.ts +17 -17
- package/dist/src/api/observer.d.ts +29 -29
- package/dist/src/api/timestamp.d.ts +17 -17
- package/dist/src/config.d.ts +28 -28
- package/dist/src/index.console.d.ts +48 -48
- package/dist/src/index.d.ts +117 -85
- package/dist/src/index.node.d.ts +22 -22
- package/dist/src/index.rn.d.ts +22 -22
- package/dist/src/register-module.d.ts +42 -42
- package/dist/src/util/input_validation.d.ts +18 -18
- package/dist/test/array_transforms.test.d.ts +17 -17
- package/dist/test/batch_writes.test.d.ts +17 -17
- package/dist/test/bootstrap.d.ts +17 -17
- package/dist/test/bundle.test.d.ts +17 -17
- package/dist/test/cursor.test.d.ts +17 -17
- package/dist/test/database.test.d.ts +17 -17
- package/dist/test/fields.test.d.ts +17 -17
- package/dist/test/get_options.test.d.ts +17 -17
- package/dist/test/numeric_transforms.test.d.ts +17 -17
- package/dist/test/query.test.d.ts +17 -17
- package/dist/test/server_timestamp.test.d.ts +17 -17
- package/dist/test/smoke.test.d.ts +17 -17
- package/dist/test/transactions.test.d.ts +17 -17
- package/dist/test/type.test.d.ts +17 -17
- package/dist/test/util/equality_matcher.d.ts +33 -33
- package/dist/test/util/events_accumulator.d.ts +39 -39
- package/dist/test/util/firebase_export.d.ts +29 -29
- package/dist/test/util/helpers.d.ts +49 -49
- package/dist/test/util/promise.d.ts +28 -28
- package/dist/test/util/settings.d.ts +23 -23
- package/dist/test/validation.test.d.ts +17 -17
- package/package.json +25 -23
- package/CHANGELOG.md +0 -330
- package/dist/index.esm2017.js.map +0 -1
- package/dist/index.esm5.js +0 -1196
- 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
|
|
22
|
-
export
|
|
23
|
-
export
|
|
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 {};
|