@firebase/firestore 3.0.1 → 3.0.2-canary.07b88e6e8
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/CHANGELOG.md +12 -0
- package/dist/firestore/compat/api/blob.d.ts +29 -0
- package/dist/firestore/compat/api/database.d.ts +228 -0
- package/dist/firestore/compat/api/field_path.d.ts +36 -0
- package/dist/firestore/compat/api/field_value.d.ts +29 -0
- package/dist/firestore/compat/api/geo_point.d.ts +17 -0
- package/dist/firestore/compat/api/observer.d.ts +29 -0
- package/dist/firestore/compat/api/timestamp.d.ts +17 -0
- package/dist/firestore/compat/config.d.ts +28 -0
- package/dist/firestore/compat/index.console.d.ts +42 -0
- package/dist/firestore/compat/index.d.ts +49 -0
- package/dist/firestore/compat/index.node.d.ts +22 -0
- package/dist/firestore/compat/index.rn.d.ts +22 -0
- package/dist/firestore/compat/register-module.d.ts +42 -0
- package/dist/firestore/compat/util/input_validation.d.ts +18 -0
- package/dist/firestore/src/api/credentials.d.ts +4 -1
- package/dist/firestore/src/api.d.ts +1 -0
- package/dist/firestore/src/model/mutation.d.ts +4 -4
- package/dist/firestore/test/integration/api_internal/auth.test.d.ts +17 -0
- package/dist/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm2017.js +2617 -2615
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +2721 -2738
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.esm2017.js +47 -41
- package/dist/index.node.cjs.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +75 -79
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.rn.js +2627 -2625
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +12 -1
- package/dist/lite/firestore/compat/api/blob.d.ts +29 -0
- package/dist/lite/firestore/compat/api/database.d.ts +228 -0
- package/dist/lite/firestore/compat/api/field_path.d.ts +36 -0
- package/dist/lite/firestore/compat/api/field_value.d.ts +29 -0
- package/dist/lite/firestore/compat/api/geo_point.d.ts +17 -0
- package/dist/lite/firestore/compat/api/observer.d.ts +29 -0
- package/dist/lite/firestore/compat/api/timestamp.d.ts +17 -0
- package/dist/lite/firestore/compat/config.d.ts +28 -0
- package/dist/lite/firestore/compat/index.console.d.ts +42 -0
- package/dist/lite/firestore/compat/index.d.ts +49 -0
- package/dist/lite/firestore/compat/index.node.d.ts +22 -0
- package/dist/lite/firestore/compat/index.rn.d.ts +22 -0
- package/dist/lite/firestore/compat/register-module.d.ts +42 -0
- package/dist/lite/firestore/compat/util/input_validation.d.ts +18 -0
- package/dist/lite/firestore/src/api/credentials.d.ts +4 -1
- package/dist/lite/firestore/src/api.d.ts +1 -0
- package/dist/lite/firestore/src/model/mutation.d.ts +4 -4
- package/dist/lite/firestore/test/integration/api_internal/auth.test.d.ts +17 -0
- package/dist/lite/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +848 -845
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +815 -815
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +8 -5
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.esm2017.js +9 -6
- package/dist/lite/index.node.esm2017.js.map +1 -1
- package/dist/lite/index.rn.esm2017.js +832 -829
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +1 -1
- package/dist/lite/packages/firestore/compat/api/blob.d.ts +29 -0
- package/dist/lite/packages/firestore/compat/api/database.d.ts +228 -0
- package/dist/lite/packages/firestore/compat/api/field_path.d.ts +36 -0
- package/dist/lite/packages/firestore/compat/api/field_value.d.ts +29 -0
- package/dist/lite/packages/firestore/compat/api/geo_point.d.ts +17 -0
- package/dist/lite/packages/firestore/compat/api/observer.d.ts +29 -0
- package/dist/lite/packages/firestore/compat/api/timestamp.d.ts +17 -0
- package/dist/lite/packages/firestore/compat/config.d.ts +28 -0
- package/dist/lite/packages/firestore/compat/index.console.d.ts +42 -0
- package/dist/lite/packages/firestore/compat/index.d.ts +49 -0
- package/dist/lite/packages/firestore/compat/index.node.d.ts +22 -0
- package/dist/lite/packages/firestore/compat/index.rn.d.ts +22 -0
- package/dist/lite/packages/firestore/compat/register-module.d.ts +42 -0
- package/dist/lite/packages/firestore/compat/util/input_validation.d.ts +18 -0
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +112 -112
- package/dist/lite/packages/firestore/rollup.config.debug.d.ts +14 -0
- package/dist/lite/packages/firestore/rollup.shared.d.ts +4 -10
- package/dist/lite/packages/firestore/src/api/credentials.d.ts +4 -1
- package/dist/lite/packages/firestore/src/api.d.ts +1 -0
- package/dist/lite/packages/firestore/src/model/mutation.d.ts +4 -4
- package/dist/lite/packages/firestore/test/integration/api_internal/auth.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/lite/private.d.ts +1 -1
- package/dist/packages/firestore/compat/api/blob.d.ts +29 -0
- package/dist/packages/firestore/compat/api/database.d.ts +228 -0
- package/dist/packages/firestore/compat/api/field_path.d.ts +36 -0
- package/dist/packages/firestore/compat/api/field_value.d.ts +29 -0
- package/dist/packages/firestore/compat/api/geo_point.d.ts +17 -0
- package/dist/packages/firestore/compat/api/observer.d.ts +29 -0
- package/dist/packages/firestore/compat/api/timestamp.d.ts +17 -0
- package/dist/packages/firestore/compat/config.d.ts +28 -0
- package/dist/packages/firestore/compat/index.console.d.ts +42 -0
- package/dist/packages/firestore/compat/index.d.ts +49 -0
- package/dist/packages/firestore/compat/index.node.d.ts +22 -0
- package/dist/packages/firestore/compat/index.rn.d.ts +22 -0
- package/dist/packages/firestore/compat/register-module.d.ts +42 -0
- package/dist/packages/firestore/compat/util/input_validation.d.ts +18 -0
- package/dist/packages/firestore/dist/index.esm2017.d.ts +165 -156
- package/dist/packages/firestore/dist/index.node.cjs.esm2017.d.ts +11 -1
- package/dist/packages/firestore/rollup.config.debug.d.ts +14 -0
- package/dist/packages/firestore/rollup.shared.d.ts +4 -10
- package/dist/packages/firestore/src/api/credentials.d.ts +4 -1
- package/dist/packages/firestore/src/api.d.ts +1 -0
- package/dist/packages/firestore/src/model/mutation.d.ts +4 -4
- package/dist/packages/firestore/test/integration/api_internal/auth.test.d.ts +17 -0
- package/dist/packages/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/private.d.ts +3 -1
- package/package.json +20 -17
|
@@ -0,0 +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 { GeoPoint } from '../../src/api';
|
|
@@ -0,0 +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 '../../src/api';
|
|
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>;
|
|
@@ -0,0 +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 '../../src/api';
|
|
@@ -0,0 +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 '../src/api';
|
|
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;
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +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 { 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
|
+
}
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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;
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
* to the user.
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
|
-
*/ declare class
|
|
22
|
+
*/ declare class th {
|
|
23
23
|
convertValue(t: any, e?: string): any;
|
|
24
24
|
convertObject(t: any, e: any): {};
|
|
25
|
-
convertGeoPoint(t: any):
|
|
25
|
+
convertGeoPoint(t: any): Xc;
|
|
26
26
|
convertArray(t: any, e: any): any;
|
|
27
27
|
convertServerTimestamp(t: any, e: any): any;
|
|
28
|
-
convertTimestamp(t: any):
|
|
29
|
-
convertDocumentKey(t: any, e: any):
|
|
28
|
+
convertTimestamp(t: any): nt;
|
|
29
|
+
convertDocumentKey(t: any, e: any): Rt;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* @license
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
*/
|
|
47
47
|
/**
|
|
48
48
|
* An immutable object representing an array of bytes.
|
|
49
|
-
*/ declare class
|
|
49
|
+
*/ declare class Jc {
|
|
50
50
|
/**
|
|
51
51
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
52
52
|
* bytes.
|
|
53
53
|
*
|
|
54
54
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
55
|
-
*/ static fromBase64String(t: any):
|
|
55
|
+
*/ static fromBase64String(t: any): Jc;
|
|
56
56
|
/**
|
|
57
57
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
58
58
|
*
|
|
59
59
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
60
|
-
*/ static fromUint8Array(t: any):
|
|
60
|
+
*/ static fromUint8Array(t: any): Jc;
|
|
61
61
|
/** @hideconstructor */
|
|
62
62
|
constructor(t: any);
|
|
63
63
|
_byteString: any;
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
* See the License for the specific language governing permissions and
|
|
100
100
|
* limitations under the License.
|
|
101
101
|
*/
|
|
102
|
-
/** DOMException error code constants. */ declare const
|
|
102
|
+
/** DOMException error code constants. */ declare const Cc: -1;
|
|
103
103
|
/**
|
|
104
104
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
105
105
|
* document references, and querying for documents (using {@link query}).
|
|
106
|
-
*/ declare class
|
|
106
|
+
*/ declare class Ic extends Tc {
|
|
107
107
|
_path: any;
|
|
108
108
|
/** The collection's identifier. */ get id(): any;
|
|
109
109
|
/**
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
/**
|
|
114
114
|
* A reference to the containing `DocumentReference` if this is a
|
|
115
115
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
116
|
-
*/ get parent():
|
|
116
|
+
*/ get parent(): Ec | null;
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
* @license
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
* A `DocumentReference` refers to a document location in a Firestore database
|
|
136
136
|
* and can be used to write, read, or listen to the location. The document at
|
|
137
137
|
* the referenced location may or may not exist.
|
|
138
|
-
*/ declare class
|
|
138
|
+
*/ declare class Ec {
|
|
139
139
|
/** @hideconstructor */
|
|
140
140
|
constructor(t: any, e: any, n: any);
|
|
141
141
|
converter: any;
|
|
@@ -153,8 +153,8 @@
|
|
|
153
153
|
*/ get path(): any;
|
|
154
154
|
/**
|
|
155
155
|
* The collection this `DocumentReference` belongs to.
|
|
156
|
-
*/ get parent():
|
|
157
|
-
withConverter(t: any):
|
|
156
|
+
*/ get parent(): Ic;
|
|
157
|
+
withConverter(t: any): Ec;
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
160
160
|
* A `DocumentSnapshot` contains data read from a document in your Firestore
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
165
165
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
166
166
|
* explicitly verify a document's existence.
|
|
167
|
-
*/ declare class
|
|
167
|
+
*/ declare class Su extends bu {
|
|
168
168
|
/** @hideconstructor protected */
|
|
169
169
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
170
170
|
_firestoreImpl: any;
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
211
211
|
* name is provided, the path will point to a nested field in a document.
|
|
212
212
|
*/
|
|
213
|
-
declare class
|
|
213
|
+
declare class zc {
|
|
214
214
|
/**
|
|
215
215
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
216
216
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -218,7 +218,7 @@ declare class Hc {
|
|
|
218
218
|
* @param fieldNames - A list of field names.
|
|
219
219
|
*/
|
|
220
220
|
constructor(...t: any[]);
|
|
221
|
-
_internalPath:
|
|
221
|
+
_internalPath: ht;
|
|
222
222
|
/**
|
|
223
223
|
* Returns true if this `FieldPath` is equal to the provided one.
|
|
224
224
|
*
|
|
@@ -245,7 +245,7 @@ declare class Hc {
|
|
|
245
245
|
/**
|
|
246
246
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
247
247
|
* or `update()`.
|
|
248
|
-
*/ declare class
|
|
248
|
+
*/ declare class Yc {
|
|
249
249
|
/**
|
|
250
250
|
* @param _methodName - The public API endpoint that returns this class.
|
|
251
251
|
* @hideconstructor
|
|
@@ -258,10 +258,10 @@ declare class Hc {
|
|
|
258
258
|
*
|
|
259
259
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
260
260
|
*/
|
|
261
|
-
declare class
|
|
262
|
-
_queue:
|
|
261
|
+
declare class Nc extends yc {
|
|
262
|
+
_queue: Vc;
|
|
263
263
|
}
|
|
264
|
-
/** An error returned by a Firestore operation. */ declare class
|
|
264
|
+
/** An error returned by a Firestore operation. */ declare class q extends Error {
|
|
265
265
|
/** @hideconstructor */
|
|
266
266
|
constructor(t: any, e: any);
|
|
267
267
|
code: any;
|
|
@@ -288,7 +288,7 @@ declare class xc extends pc {
|
|
|
288
288
|
*
|
|
289
289
|
* Latitude values are in the range of [-90, 90].
|
|
290
290
|
* Longitude values are in the range of [-180, 180].
|
|
291
|
-
*/ declare class
|
|
291
|
+
*/ declare class Xc {
|
|
292
292
|
/**
|
|
293
293
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
294
294
|
* longitude values.
|
|
@@ -319,9 +319,9 @@ declare class xc extends pc {
|
|
|
319
319
|
* with an underscore.
|
|
320
320
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
321
321
|
}
|
|
322
|
-
declare class
|
|
322
|
+
declare class Dc {
|
|
323
323
|
_progressObserver: {};
|
|
324
|
-
_taskCompletionResolver:
|
|
324
|
+
_taskCompletionResolver: K;
|
|
325
325
|
_lastProgress: {
|
|
326
326
|
taskState: string;
|
|
327
327
|
totalBytes: number;
|
|
@@ -371,7 +371,7 @@ declare class Cc {
|
|
|
371
371
|
/**
|
|
372
372
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
373
373
|
* construct refined `Query` objects by adding filters and ordering.
|
|
374
|
-
*/ declare class
|
|
374
|
+
*/ declare class Tc {
|
|
375
375
|
/** @hideconstructor protected */
|
|
376
376
|
constructor(t: any, e: any, n: any);
|
|
377
377
|
converter: any;
|
|
@@ -379,7 +379,7 @@ declare class Cc {
|
|
|
379
379
|
/** The type of this Firestore reference. */
|
|
380
380
|
type: string;
|
|
381
381
|
firestore: any;
|
|
382
|
-
withConverter(t: any):
|
|
382
|
+
withConverter(t: any): Tc;
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
385
385
|
* A `QueryConstraint` is used to narrow the set of documents returned by a
|
|
@@ -388,7 +388,7 @@ declare class Cc {
|
|
|
388
388
|
* endBefore:1}, {@link (endAt:1)}, {@link limit} or {@link limitToLast} and
|
|
389
389
|
* can then be passed to {@link query} to create a new query instance that
|
|
390
390
|
* also contains this `QueryConstraint`.
|
|
391
|
-
*/ declare class
|
|
391
|
+
*/ declare class $u {
|
|
392
392
|
}
|
|
393
393
|
/**
|
|
394
394
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -400,7 +400,7 @@ declare class Cc {
|
|
|
400
400
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
401
401
|
* `exists` property will always be true and `data()` will never return
|
|
402
402
|
* 'undefined'.
|
|
403
|
-
*/ declare class
|
|
403
|
+
*/ declare class Du extends Su {
|
|
404
404
|
}
|
|
405
405
|
/**
|
|
406
406
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -408,13 +408,13 @@ declare class Cc {
|
|
|
408
408
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
409
409
|
* number of documents can be determined via the `empty` and `size`
|
|
410
410
|
* properties.
|
|
411
|
-
*/ declare class
|
|
411
|
+
*/ declare class Cu {
|
|
412
412
|
/** @hideconstructor */
|
|
413
413
|
constructor(t: any, e: any, n: any, s: any);
|
|
414
414
|
_firestore: any;
|
|
415
415
|
_userDataWriter: any;
|
|
416
416
|
_snapshot: any;
|
|
417
|
-
metadata:
|
|
417
|
+
metadata: Vu;
|
|
418
418
|
query: any;
|
|
419
419
|
/** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
|
|
420
420
|
/** The number of documents in the `QuerySnapshot`. */ get size(): any;
|
|
@@ -456,7 +456,7 @@ declare class Cc {
|
|
|
456
456
|
*/
|
|
457
457
|
/**
|
|
458
458
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
459
|
-
*/ declare class
|
|
459
|
+
*/ declare class Vu {
|
|
460
460
|
/** @hideconstructor */
|
|
461
461
|
constructor(t: any, e: any);
|
|
462
462
|
hasPendingWrites: any;
|
|
@@ -498,19 +498,19 @@ declare class Cc {
|
|
|
498
498
|
* For examples and further specifications, refer to the
|
|
499
499
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
500
500
|
*/
|
|
501
|
-
declare class
|
|
501
|
+
declare class nt {
|
|
502
502
|
/**
|
|
503
503
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
504
504
|
*
|
|
505
505
|
* @returns a new timestamp representing the current date.
|
|
506
|
-
*/ static now():
|
|
506
|
+
*/ static now(): nt;
|
|
507
507
|
/**
|
|
508
508
|
* Creates a new timestamp from the given date.
|
|
509
509
|
*
|
|
510
510
|
* @param date - The date to initialize the `Timestamp` from.
|
|
511
511
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
512
512
|
* date.
|
|
513
|
-
*/ static fromDate(t: any):
|
|
513
|
+
*/ static fromDate(t: any): nt;
|
|
514
514
|
/**
|
|
515
515
|
* Creates a new timestamp from the given number of milliseconds.
|
|
516
516
|
*
|
|
@@ -518,7 +518,7 @@ declare class st {
|
|
|
518
518
|
* 1970-01-01T00:00:00Z.
|
|
519
519
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
520
520
|
* number of milliseconds.
|
|
521
|
-
*/ static fromMillis(t: any):
|
|
521
|
+
*/ static fromMillis(t: any): nt;
|
|
522
522
|
/**
|
|
523
523
|
* Creates a new timestamp.
|
|
524
524
|
*
|
|
@@ -565,11 +565,11 @@ declare class st {
|
|
|
565
565
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
566
566
|
*/ valueOf(): string;
|
|
567
567
|
}
|
|
568
|
-
declare const
|
|
568
|
+
declare const Eh_base: {
|
|
569
569
|
new (t: any, e: any): {
|
|
570
570
|
_firestore: any;
|
|
571
571
|
_transaction: any;
|
|
572
|
-
_dataReader:
|
|
572
|
+
_dataReader: iu;
|
|
573
573
|
/**
|
|
574
574
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
575
575
|
*
|
|
@@ -608,7 +608,7 @@ declare const Th_base: {
|
|
|
608
608
|
* The `Transaction` object passed to a transaction's `updateFunction` provides
|
|
609
609
|
* the methods to read and write data within the transaction context. See
|
|
610
610
|
* {@link runTransaction}.
|
|
611
|
-
*/ declare class
|
|
611
|
+
*/ declare class Eh extends Eh_base {
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
614
|
* @license
|
|
@@ -633,22 +633,22 @@ declare const Th_base: {
|
|
|
633
633
|
* provides methods for adding writes to the write batch. None of the writes
|
|
634
634
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
635
635
|
* called.
|
|
636
|
-
*/ declare class
|
|
636
|
+
*/ declare class sh {
|
|
637
637
|
/** @hideconstructor */
|
|
638
638
|
constructor(t: any, e: any);
|
|
639
639
|
_firestore: any;
|
|
640
640
|
_commitHandler: any;
|
|
641
641
|
_mutations: any[];
|
|
642
642
|
_committed: boolean;
|
|
643
|
-
_dataReader:
|
|
644
|
-
set(t: any, e: any, n: any):
|
|
645
|
-
update(t: any, e: any, n: any, ...s: any[]):
|
|
643
|
+
_dataReader: iu;
|
|
644
|
+
set(t: any, e: any, n: any): sh;
|
|
645
|
+
update(t: any, e: any, n: any, ...s: any[]): sh;
|
|
646
646
|
/**
|
|
647
647
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
648
648
|
*
|
|
649
649
|
* @param documentRef - A reference to the document to be deleted.
|
|
650
650
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
651
|
-
*/ delete(t: any):
|
|
651
|
+
*/ delete(t: any): sh;
|
|
652
652
|
/**
|
|
653
653
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
654
654
|
*
|
|
@@ -668,7 +668,7 @@ declare const Th_base: {
|
|
|
668
668
|
* Represents the database ID a Firestore client is associated with.
|
|
669
669
|
* @internal
|
|
670
670
|
*/
|
|
671
|
-
declare class
|
|
671
|
+
declare class cc {
|
|
672
672
|
constructor(t: any, e: any);
|
|
673
673
|
projectId: any;
|
|
674
674
|
database: any;
|
|
@@ -693,9 +693,9 @@ declare class uc {
|
|
|
693
693
|
*/
|
|
694
694
|
/**
|
|
695
695
|
* @internal
|
|
696
|
-
*/ declare class
|
|
697
|
-
static fromPath(t: any):
|
|
698
|
-
static fromName(t: any):
|
|
696
|
+
*/ declare class Rt {
|
|
697
|
+
static fromPath(t: any): Rt;
|
|
698
|
+
static fromName(t: any): Rt;
|
|
699
699
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
700
700
|
static isDocumentKey(t: any): boolean;
|
|
701
701
|
/**
|
|
@@ -703,24 +703,33 @@ declare class uc {
|
|
|
703
703
|
*
|
|
704
704
|
* @param segments - The segments of the path to the document
|
|
705
705
|
* @returns A new instance of DocumentKey
|
|
706
|
-
*/ static fromSegments(t: any):
|
|
706
|
+
*/ static fromSegments(t: any): Rt;
|
|
707
707
|
constructor(t: any);
|
|
708
708
|
path: any;
|
|
709
709
|
/** Returns true if the document is in the specified collectionId. */ hasCollectionId(t: any): boolean;
|
|
710
710
|
isEqual(t: any): boolean;
|
|
711
711
|
toString(): any;
|
|
712
712
|
}
|
|
713
|
+
/**
|
|
714
|
+
* A CredentialsProvider that always yields an empty token.
|
|
715
|
+
* @internal
|
|
716
|
+
*/ declare class Q {
|
|
717
|
+
getToken(): Promise<null>;
|
|
718
|
+
invalidateToken(): void;
|
|
719
|
+
start(t: any, e: any): void;
|
|
720
|
+
shutdown(): void;
|
|
721
|
+
}
|
|
713
722
|
/**
|
|
714
723
|
* A dot-separated path for navigating sub-objects within a document.
|
|
715
724
|
* @internal
|
|
716
|
-
*/ declare class
|
|
725
|
+
*/ declare class ht extends at {
|
|
717
726
|
/**
|
|
718
727
|
* Returns true if the string could be used as a segment in a field path
|
|
719
728
|
* without escaping.
|
|
720
729
|
*/ static isValidIdentifier(t: any): boolean;
|
|
721
730
|
/**
|
|
722
731
|
* The field designating the key of a document.
|
|
723
|
-
*/ static keyField():
|
|
732
|
+
*/ static keyField(): ht;
|
|
724
733
|
/**
|
|
725
734
|
* Parses a field string from the given server-formatted string.
|
|
726
735
|
*
|
|
@@ -730,16 +739,16 @@ declare class uc {
|
|
|
730
739
|
*
|
|
731
740
|
* TODO(b/37244157): we should make this more strict. Right now, it allows
|
|
732
741
|
* non-identifier path components, even if they aren't escaped.
|
|
733
|
-
*/ static fromServerFormat(t: any):
|
|
734
|
-
static emptyPath():
|
|
735
|
-
construct(t: any, e: any, n: any):
|
|
742
|
+
*/ static fromServerFormat(t: any): ht;
|
|
743
|
+
static emptyPath(): ht;
|
|
744
|
+
construct(t: any, e: any, n: any): ht;
|
|
736
745
|
canonicalString(): any;
|
|
737
746
|
toString(): any;
|
|
738
747
|
/**
|
|
739
748
|
* Returns true if this field references the key of a document.
|
|
740
749
|
*/ isKeyField(): boolean;
|
|
741
750
|
}
|
|
742
|
-
declare function
|
|
751
|
+
declare function _c(t: any, e: any): any;
|
|
743
752
|
/**
|
|
744
753
|
* Fails if the given assertion condition is false, throwing an Error with the
|
|
745
754
|
* given message if it did.
|
|
@@ -749,7 +758,7 @@ declare function mc(t: any, e: any): any;
|
|
|
749
758
|
* happen in this case.
|
|
750
759
|
*
|
|
751
760
|
* @internal
|
|
752
|
-
*/ declare function
|
|
761
|
+
*/ declare function L(t: any, e: any): void;
|
|
753
762
|
/**
|
|
754
763
|
* @license
|
|
755
764
|
* Copyright 2020 Google LLC
|
|
@@ -768,14 +777,14 @@ declare function mc(t: any, e: any): any;
|
|
|
768
777
|
*/
|
|
769
778
|
/** Converts a Base64 encoded string to a binary string. */
|
|
770
779
|
/** True if and only if the Base64 conversion functions are available. */
|
|
771
|
-
declare function
|
|
780
|
+
declare function ft(): boolean;
|
|
772
781
|
/**
|
|
773
782
|
* @internal
|
|
774
|
-
*/ declare function
|
|
783
|
+
*/ declare function $(t: any, ...e: any[]): void;
|
|
775
784
|
/**
|
|
776
785
|
* Validates that two boolean options are not set at the same time.
|
|
777
786
|
* @internal
|
|
778
|
-
*/ declare function
|
|
787
|
+
*/ declare function lc(t: any, e: any, n: any, s: any): void;
|
|
779
788
|
/**
|
|
780
789
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
781
790
|
* assigning it a document ID automatically.
|
|
@@ -785,7 +794,7 @@ declare function dt(): boolean;
|
|
|
785
794
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
786
795
|
* newly created document after it has been written to the backend (Note that it
|
|
787
796
|
* won't resolve while you're offline).
|
|
788
|
-
*/ declare function
|
|
797
|
+
*/ declare function _h(t: any, e: any): Promise<Ec>;
|
|
789
798
|
/**
|
|
790
799
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
791
800
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -796,7 +805,7 @@ declare function dt(): boolean;
|
|
|
796
805
|
* @param elements - The elements to remove from the array.
|
|
797
806
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
798
807
|
* `updateDoc()`
|
|
799
|
-
*/ declare function bh(...t: any[]):
|
|
808
|
+
*/ declare function bh(...t: any[]): lu;
|
|
800
809
|
/**
|
|
801
810
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
802
811
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -808,9 +817,9 @@ declare function dt(): boolean;
|
|
|
808
817
|
* @param elements - The elements to union into the array.
|
|
809
818
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
810
819
|
* `updateDoc()`.
|
|
811
|
-
*/ declare function
|
|
812
|
-
declare function
|
|
813
|
-
declare function
|
|
820
|
+
*/ declare function Rh(...t: any[]): hu;
|
|
821
|
+
declare function Bc(t: any): Promise<any>;
|
|
822
|
+
declare function Ac(t: any, e: any, ...n: any[]): Ic;
|
|
814
823
|
/**
|
|
815
824
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
816
825
|
* database that are contained in a collection or subcollection with the
|
|
@@ -821,15 +830,15 @@ declare function Rc(t: any, e: any, ...n: any[]): Ac;
|
|
|
821
830
|
* collection or subcollection with this ID as the last segment of its path
|
|
822
831
|
* will be included. Cannot contain a slash.
|
|
823
832
|
* @returns The created `Query`.
|
|
824
|
-
*/ declare function
|
|
825
|
-
declare function
|
|
833
|
+
*/ declare function Rc(t: any, e: any): Tc;
|
|
834
|
+
declare function pc(t: any, e: any, n: any, s?: {}): void;
|
|
826
835
|
/**
|
|
827
836
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
828
837
|
*
|
|
829
838
|
* @param reference - A reference to the document to delete.
|
|
830
839
|
* @returns A Promise resolved once the document has been successfully
|
|
831
840
|
* deleted from the backend (note that it won't resolve while you're offline).
|
|
832
|
-
*/ declare function
|
|
841
|
+
*/ declare function wh(t: any): Promise<any>;
|
|
833
842
|
/**
|
|
834
843
|
* @license
|
|
835
844
|
* Copyright 2020 Google LLC
|
|
@@ -849,7 +858,7 @@ declare function Ec(t: any, e: any, n: any, s?: {}): void;
|
|
|
849
858
|
/**
|
|
850
859
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
851
860
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
852
|
-
*/ declare function
|
|
861
|
+
*/ declare function Ih(): au;
|
|
853
862
|
/**
|
|
854
863
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
855
864
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -857,12 +866,12 @@ declare function Ec(t: any, e: any, n: any, s?: {}): void;
|
|
|
857
866
|
* operations will be queued until the network is restored.
|
|
858
867
|
*
|
|
859
868
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
860
|
-
*/ declare function
|
|
861
|
-
declare function bc(t: any, e: any, ...n: any[]):
|
|
869
|
+
*/ declare function Kc(t: any): any;
|
|
870
|
+
declare function bc(t: any, e: any, ...n: any[]): Ec;
|
|
862
871
|
/**
|
|
863
872
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
864
873
|
* It can be used in queries to sort or filter by the document ID.
|
|
865
|
-
*/ declare function
|
|
874
|
+
*/ declare function Hc(): zc;
|
|
866
875
|
/**
|
|
867
876
|
* Attempts to enable persistent storage, if possible.
|
|
868
877
|
*
|
|
@@ -885,7 +894,7 @@ declare function bc(t: any, e: any, ...n: any[]): Tc;
|
|
|
885
894
|
* @param persistenceSettings - Optional settings object to configure
|
|
886
895
|
* persistence.
|
|
887
896
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
888
|
-
*/ declare function
|
|
897
|
+
*/ declare function Fc(t: any, e: any): any;
|
|
889
898
|
/**
|
|
890
899
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
891
900
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -907,22 +916,22 @@ declare function bc(t: any, e: any, ...n: any[]): Tc;
|
|
|
907
916
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
908
917
|
* @returns A `Promise` that represents successfully enabling persistent
|
|
909
918
|
* storage.
|
|
910
|
-
*/ declare function
|
|
919
|
+
*/ declare function Mc(t: any): any;
|
|
911
920
|
/**
|
|
912
921
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
913
922
|
* call to {@link disableNetwork}.
|
|
914
923
|
*
|
|
915
924
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
916
|
-
*/ declare function
|
|
917
|
-
declare function
|
|
918
|
-
declare function
|
|
925
|
+
*/ declare function qc(t: any): any;
|
|
926
|
+
declare function Hu(...t: any[]): Gu;
|
|
927
|
+
declare function zu(...t: any[]): Gu;
|
|
919
928
|
/**
|
|
920
929
|
* @internal
|
|
921
|
-
*/ declare function
|
|
930
|
+
*/ declare function $c(t: any): any;
|
|
922
931
|
/**
|
|
923
932
|
* Locally writes `mutations` on the async queue.
|
|
924
933
|
* @internal
|
|
925
|
-
*/ declare function
|
|
934
|
+
*/ declare function yh(t: any, e: any): Promise<any>;
|
|
926
935
|
/**
|
|
927
936
|
* @license
|
|
928
937
|
* Copyright 2020 Google LLC
|
|
@@ -974,21 +983,21 @@ declare function Hu(...t: any[]): zu;
|
|
|
974
983
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
975
984
|
* current document contents.
|
|
976
985
|
*/
|
|
977
|
-
declare function
|
|
986
|
+
declare function rh(t: any): Promise<Su>;
|
|
978
987
|
/**
|
|
979
988
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
980
989
|
* Returns an error if the document is not currently cached.
|
|
981
990
|
*
|
|
982
991
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
983
992
|
* current document contents.
|
|
984
|
-
*/ declare function
|
|
993
|
+
*/ declare function ah(t: any): Promise<Su>;
|
|
985
994
|
/**
|
|
986
995
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
987
996
|
* Returns an error if the network is not available.
|
|
988
997
|
*
|
|
989
998
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
990
999
|
* current document contents.
|
|
991
|
-
*/ declare function
|
|
1000
|
+
*/ declare function ch(t: any): Promise<Su>;
|
|
992
1001
|
/**
|
|
993
1002
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
994
1003
|
*
|
|
@@ -998,19 +1007,19 @@ declare function oh(t: any): Promise<Du>;
|
|
|
998
1007
|
* invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
|
|
999
1008
|
*
|
|
1000
1009
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1001
|
-
*/ declare function
|
|
1010
|
+
*/ declare function uh(t: any): Promise<Cu>;
|
|
1002
1011
|
/**
|
|
1003
1012
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
1004
1013
|
* Returns an error if the document is not currently cached.
|
|
1005
1014
|
*
|
|
1006
1015
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1007
|
-
*/ declare function
|
|
1016
|
+
*/ declare function hh(t: any): Promise<Cu>;
|
|
1008
1017
|
/**
|
|
1009
1018
|
* Executes the query and returns the results as a `QuerySnapshot` from the
|
|
1010
1019
|
* server. Returns an error if the network is not available.
|
|
1011
1020
|
*
|
|
1012
1021
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
1013
|
-
*/ declare function
|
|
1022
|
+
*/ declare function lh(t: any): Promise<Cu>;
|
|
1014
1023
|
/**
|
|
1015
1024
|
* Returns the existing {@link Firestore} instance that is associated with the
|
|
1016
1025
|
* provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
|
|
@@ -1019,7 +1028,7 @@ declare function oh(t: any): Promise<Du>;
|
|
|
1019
1028
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
|
|
1020
1029
|
* instance is associated with.
|
|
1021
1030
|
* @returns The {@link Firestore} instance of the provided app.
|
|
1022
|
-
*/ declare function
|
|
1031
|
+
*/ declare function kc(e?: import("@firebase/app").FirebaseApp): import("../src").Firestore;
|
|
1023
1032
|
/**
|
|
1024
1033
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1025
1034
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1038,7 +1047,7 @@ declare function oh(t: any): Promise<Du>;
|
|
|
1038
1047
|
* @param n - The value to increment by.
|
|
1039
1048
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
1040
1049
|
* `updateDoc()`
|
|
1041
|
-
*/ declare function
|
|
1050
|
+
*/ declare function Ph(t: any): fu;
|
|
1042
1051
|
/**
|
|
1043
1052
|
* Initializes a new instance of {@link Firestore} with the provided settings.
|
|
1044
1053
|
* Can only be called before any other function, including
|
|
@@ -1049,13 +1058,13 @@ declare function oh(t: any): Promise<Du>;
|
|
|
1049
1058
|
* be associated.
|
|
1050
1059
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1051
1060
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1052
|
-
*/ declare function
|
|
1061
|
+
*/ declare function xc(t: any, e: any): import("../src").Firestore;
|
|
1053
1062
|
/**
|
|
1054
1063
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
1055
1064
|
*
|
|
1056
1065
|
* @param limit - The maximum number of items to return.
|
|
1057
1066
|
* @returns The created {@link Query}.
|
|
1058
|
-
*/ declare function
|
|
1067
|
+
*/ declare function qu(t: any): Uu;
|
|
1059
1068
|
/**
|
|
1060
1069
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
1061
1070
|
*
|
|
@@ -1064,7 +1073,7 @@ declare function oh(t: any): Promise<Du>;
|
|
|
1064
1073
|
*
|
|
1065
1074
|
* @param limit - The maximum number of items to return.
|
|
1066
1075
|
* @returns The created {@link Query}.
|
|
1067
|
-
*/ declare function
|
|
1076
|
+
*/ declare function Ku(t: any): Uu;
|
|
1068
1077
|
/**
|
|
1069
1078
|
* Loads a Firestore bundle into the local cache.
|
|
1070
1079
|
*
|
|
@@ -1075,16 +1084,16 @@ declare function oh(t: any): Promise<Du>;
|
|
|
1075
1084
|
* @returns
|
|
1076
1085
|
* A `LoadBundleTask` object, which notifies callers with progress updates, and completion
|
|
1077
1086
|
* or error events. It can be used as a `Promise<LoadBundleTaskProgress>`.
|
|
1078
|
-
*/ declare function
|
|
1087
|
+
*/ declare function Qc(t: any, e: any): Dc;
|
|
1079
1088
|
/**
|
|
1080
1089
|
* Reads a Firestore {@link Query} from local cache, identified by the given name.
|
|
1081
1090
|
*
|
|
1082
1091
|
* The named queries are packaged into bundles on the server side (along
|
|
1083
1092
|
* with resulting documents), and loaded to local cache using `loadBundle`. Once in local
|
|
1084
1093
|
* cache, use this method to extract a {@link Query} by name.
|
|
1085
|
-
*/ declare function
|
|
1086
|
-
declare function
|
|
1087
|
-
declare function
|
|
1094
|
+
*/ declare function Wc(t: any, e: any): any;
|
|
1095
|
+
declare function mh(t: any, ...e: any[]): () => void;
|
|
1096
|
+
declare function gh(t: any, e: any): () => void;
|
|
1088
1097
|
/**
|
|
1089
1098
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
1090
1099
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -1093,7 +1102,7 @@ declare function yh(t: any, e: any): () => void;
|
|
|
1093
1102
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
1094
1103
|
* not specified, order will be ascending.
|
|
1095
1104
|
* @returns The created {@link Query}.
|
|
1096
|
-
*/ declare function
|
|
1105
|
+
*/ declare function Bu(t: any, e?: string): Lu;
|
|
1097
1106
|
/**
|
|
1098
1107
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
1099
1108
|
* additional query constraints.
|
|
@@ -1102,7 +1111,7 @@ declare function yh(t: any, e: any): () => void;
|
|
|
1102
1111
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
1103
1112
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
1104
1113
|
* existing or new constraints.
|
|
1105
|
-
*/ declare function
|
|
1114
|
+
*/ declare function Ou(t: any, ...e: any[]): any;
|
|
1106
1115
|
/**
|
|
1107
1116
|
* Returns true if the provided queries point to the same collection and apply
|
|
1108
1117
|
* the same constraints.
|
|
@@ -1111,7 +1120,7 @@ declare function yh(t: any, e: any): () => void;
|
|
|
1111
1120
|
* @param right - A `Query` to compare.
|
|
1112
1121
|
* @returns true if the references point to the same location in the same
|
|
1113
1122
|
* Firestore database.
|
|
1114
|
-
*/ declare function
|
|
1123
|
+
*/ declare function vc(t: any, e: any): boolean;
|
|
1115
1124
|
/**
|
|
1116
1125
|
* Returns true if the provided references are equal.
|
|
1117
1126
|
*
|
|
@@ -1119,7 +1128,7 @@ declare function yh(t: any, e: any): () => void;
|
|
|
1119
1128
|
* @param right - A reference to compare.
|
|
1120
1129
|
* @returns true if the references point to the same location in the same
|
|
1121
1130
|
* Firestore database.
|
|
1122
|
-
*/ declare function
|
|
1131
|
+
*/ declare function Pc(t: any, e: any): boolean;
|
|
1123
1132
|
/**
|
|
1124
1133
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1125
1134
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1136,12 +1145,12 @@ declare function yh(t: any, e: any): () => void;
|
|
|
1136
1145
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
1137
1146
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
1138
1147
|
* rejected promise with the corresponding failure error is returned.
|
|
1139
|
-
*/ declare function
|
|
1148
|
+
*/ declare function Th(t: any, e: any): Promise<any>;
|
|
1140
1149
|
/**
|
|
1141
1150
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
1142
1151
|
* include a server-generated timestamp in the written data.
|
|
1143
|
-
*/ declare function
|
|
1144
|
-
declare function
|
|
1152
|
+
*/ declare function Ah(): uu;
|
|
1153
|
+
declare function fh(t: any, e: any, n: any): Promise<any>;
|
|
1145
1154
|
/**
|
|
1146
1155
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
1147
1156
|
*
|
|
@@ -1154,16 +1163,16 @@ declare function dh(t: any, e: any, n: any): Promise<any>;
|
|
|
1154
1163
|
* <li>`error` to log errors only.</li>
|
|
1155
1164
|
* <li><code>`silent` to turn off logging.</li>
|
|
1156
1165
|
* </ul>
|
|
1157
|
-
*/ declare function
|
|
1166
|
+
*/ declare function N(t: any): void;
|
|
1158
1167
|
/**
|
|
1159
1168
|
* Returns true if the provided snapshots are equal.
|
|
1160
1169
|
*
|
|
1161
1170
|
* @param left - A snapshot to compare.
|
|
1162
1171
|
* @param right - A snapshot to compare.
|
|
1163
1172
|
* @returns true if the snapshots are equal.
|
|
1164
|
-
*/ declare function
|
|
1165
|
-
declare function
|
|
1166
|
-
declare function
|
|
1173
|
+
*/ declare function xu(t: any, e: any): any;
|
|
1174
|
+
declare function Wu(...t: any[]): ju;
|
|
1175
|
+
declare function Qu(...t: any[]): ju;
|
|
1167
1176
|
/**
|
|
1168
1177
|
* Terminates the provided {@link Firestore} instance.
|
|
1169
1178
|
*
|
|
@@ -1185,8 +1194,8 @@ declare function Wu(...t: any[]): Qu;
|
|
|
1185
1194
|
*
|
|
1186
1195
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1187
1196
|
* terminated.
|
|
1188
|
-
*/ declare function
|
|
1189
|
-
declare function
|
|
1197
|
+
*/ declare function jc(t: any): any;
|
|
1198
|
+
declare function dh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1190
1199
|
/**
|
|
1191
1200
|
* Waits until all currently pending writes for the active user have been
|
|
1192
1201
|
* acknowledged by the backend.
|
|
@@ -1202,7 +1211,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1202
1211
|
*
|
|
1203
1212
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1204
1213
|
* acknowledged by the backend.
|
|
1205
|
-
*/ declare function
|
|
1214
|
+
*/ declare function Uc(t: any): Promise<any>;
|
|
1206
1215
|
/**
|
|
1207
1216
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
1208
1217
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -1213,7 +1222,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1213
1222
|
* "<=", "!=").
|
|
1214
1223
|
* @param value - The value for comparison
|
|
1215
1224
|
* @returns The created {@link Query}.
|
|
1216
|
-
*/ declare function
|
|
1225
|
+
*/ declare function Mu(t: any, e: any, n: any): Fu;
|
|
1217
1226
|
/**
|
|
1218
1227
|
* @license
|
|
1219
1228
|
* Copyright 2020 Google LLC
|
|
@@ -1240,7 +1249,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1240
1249
|
*
|
|
1241
1250
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1242
1251
|
* writes.
|
|
1243
|
-
*/ declare function
|
|
1252
|
+
*/ declare function vh(t: any): sh;
|
|
1244
1253
|
/**
|
|
1245
1254
|
* @license
|
|
1246
1255
|
* Copyright 2020 Google LLC
|
|
@@ -1276,7 +1285,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1276
1285
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1277
1286
|
/**
|
|
1278
1287
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1279
|
-
*/ get ref():
|
|
1288
|
+
*/ get ref(): Ec;
|
|
1280
1289
|
/**
|
|
1281
1290
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1282
1291
|
*
|
|
@@ -1320,7 +1329,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1320
1329
|
* The Cloud Firestore service interface.
|
|
1321
1330
|
*
|
|
1322
1331
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
1323
|
-
*/ declare class
|
|
1332
|
+
*/ declare class yc {
|
|
1324
1333
|
/** @hideconstructor */
|
|
1325
1334
|
constructor(t: any, e: any);
|
|
1326
1335
|
_credentials: any;
|
|
@@ -1329,9 +1338,9 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1329
1338
|
*/
|
|
1330
1339
|
type: string;
|
|
1331
1340
|
_persistenceKey: string;
|
|
1332
|
-
_settings:
|
|
1341
|
+
_settings: gc;
|
|
1333
1342
|
_settingsFrozen: boolean;
|
|
1334
|
-
_databaseId:
|
|
1343
|
+
_databaseId: cc;
|
|
1335
1344
|
_app: any;
|
|
1336
1345
|
/**
|
|
1337
1346
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1340,14 +1349,14 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1340
1349
|
get _initialized(): boolean;
|
|
1341
1350
|
get _terminated(): boolean;
|
|
1342
1351
|
_setSettings(t: any): void;
|
|
1343
|
-
_getSettings():
|
|
1344
|
-
_freezeSettings():
|
|
1352
|
+
_getSettings(): gc;
|
|
1353
|
+
_freezeSettings(): gc;
|
|
1345
1354
|
_delete(): Promise<void>;
|
|
1346
1355
|
_terminateTask: Promise<void> | undefined;
|
|
1347
1356
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1348
1357
|
app: any;
|
|
1349
|
-
databaseId:
|
|
1350
|
-
settings:
|
|
1358
|
+
databaseId: cc;
|
|
1359
|
+
settings: gc;
|
|
1351
1360
|
};
|
|
1352
1361
|
/**
|
|
1353
1362
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1372,7 +1381,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1372
1381
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1373
1382
|
* See the License for the specific language governing permissions and
|
|
1374
1383
|
* limitations under the License.
|
|
1375
|
-
*/ declare class
|
|
1384
|
+
*/ declare class Vc {
|
|
1376
1385
|
fa: Promise<void>;
|
|
1377
1386
|
da: any[];
|
|
1378
1387
|
wa: boolean;
|
|
@@ -1381,7 +1390,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1381
1390
|
ga: boolean;
|
|
1382
1391
|
ya: boolean;
|
|
1383
1392
|
pa: any[];
|
|
1384
|
-
rr:
|
|
1393
|
+
rr: Jr;
|
|
1385
1394
|
Ea: () => void;
|
|
1386
1395
|
get isShuttingDown(): boolean;
|
|
1387
1396
|
/**
|
|
@@ -1397,17 +1406,17 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1397
1406
|
* reschedules with backoff.
|
|
1398
1407
|
*/ Aa(): Promise<void>;
|
|
1399
1408
|
Ia(t: any): Promise<any>;
|
|
1400
|
-
enqueueAfterDelay(t: any, e: any, n: any):
|
|
1409
|
+
enqueueAfterDelay(t: any, e: any, n: any): Co;
|
|
1401
1410
|
Ta(): void;
|
|
1402
1411
|
verifyOperationInProgress(): void;
|
|
1403
1412
|
/**
|
|
1404
1413
|
* Waits until all currently queued tasks are finished executing. Delayed
|
|
1405
1414
|
* operations are not run.
|
|
1406
|
-
*/
|
|
1415
|
+
*/ ba(): Promise<void>;
|
|
1407
1416
|
/**
|
|
1408
1417
|
* For Tests: Determine if a delayed operation with a particular TimerId
|
|
1409
1418
|
* exists.
|
|
1410
|
-
*/
|
|
1419
|
+
*/ Pa(t: any): boolean;
|
|
1411
1420
|
/**
|
|
1412
1421
|
* For Tests: Runs some or all delayed operations early.
|
|
1413
1422
|
*
|
|
@@ -1435,7 +1444,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1435
1444
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1436
1445
|
* See the License for the specific language governing permissions and
|
|
1437
1446
|
* limitations under the License.
|
|
1438
|
-
*/ declare class
|
|
1447
|
+
*/ declare class K {
|
|
1439
1448
|
promise: Promise<any>;
|
|
1440
1449
|
resolve: (value: any) => void;
|
|
1441
1450
|
reject: (reason?: any) => void;
|
|
@@ -1443,12 +1452,12 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1443
1452
|
/**
|
|
1444
1453
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
1445
1454
|
* classes.
|
|
1446
|
-
*/ declare class
|
|
1455
|
+
*/ declare class iu {
|
|
1447
1456
|
constructor(t: any, e: any, n: any);
|
|
1448
1457
|
databaseId: any;
|
|
1449
1458
|
ignoreUndefinedProperties: any;
|
|
1450
1459
|
N: any;
|
|
1451
|
-
/** Creates a new top-level parse context. */ Ba(t: any, e: any, n: any, s?: boolean):
|
|
1460
|
+
/** Creates a new top-level parse context. */ Ba(t: any, e: any, n: any, s?: boolean): su;
|
|
1452
1461
|
}
|
|
1453
1462
|
/**
|
|
1454
1463
|
* @license
|
|
@@ -1469,7 +1478,7 @@ declare function wh(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1469
1478
|
/**
|
|
1470
1479
|
* Path represents an ordered sequence of string segments.
|
|
1471
1480
|
*/
|
|
1472
|
-
declare class
|
|
1481
|
+
declare class at {
|
|
1473
1482
|
static comparator(t: any, e: any): 0 | 1 | -1;
|
|
1474
1483
|
constructor(t: any, e: any, n: any);
|
|
1475
1484
|
segments: any;
|
|
@@ -1490,67 +1499,67 @@ declare class ct {
|
|
|
1490
1499
|
forEach(t: any): void;
|
|
1491
1500
|
toArray(): any;
|
|
1492
1501
|
}
|
|
1493
|
-
declare class
|
|
1502
|
+
declare class lu extends Yc {
|
|
1494
1503
|
constructor(t: any, e: any);
|
|
1495
1504
|
Ua: any;
|
|
1496
|
-
_toFieldTransform(t: any):
|
|
1505
|
+
_toFieldTransform(t: any): qe;
|
|
1497
1506
|
isEqual(t: any): boolean;
|
|
1498
1507
|
}
|
|
1499
|
-
declare class
|
|
1508
|
+
declare class hu extends Yc {
|
|
1500
1509
|
constructor(t: any, e: any);
|
|
1501
1510
|
Ua: any;
|
|
1502
|
-
_toFieldTransform(t: any):
|
|
1511
|
+
_toFieldTransform(t: any): qe;
|
|
1503
1512
|
isEqual(t: any): boolean;
|
|
1504
1513
|
}
|
|
1505
|
-
declare class
|
|
1514
|
+
declare class au extends Yc {
|
|
1506
1515
|
_toFieldTransform(t: any): null;
|
|
1507
1516
|
isEqual(t: any): boolean;
|
|
1508
1517
|
}
|
|
1509
|
-
declare class
|
|
1518
|
+
declare class Gu extends $u {
|
|
1510
1519
|
constructor(t: any, e: any, n: any);
|
|
1511
1520
|
type: any;
|
|
1512
1521
|
Ha: any;
|
|
1513
1522
|
Ja: any;
|
|
1514
|
-
_apply(t: any):
|
|
1523
|
+
_apply(t: any): Tc;
|
|
1515
1524
|
}
|
|
1516
|
-
declare class
|
|
1525
|
+
declare class fu extends Yc {
|
|
1517
1526
|
constructor(t: any, e: any);
|
|
1518
1527
|
qa: any;
|
|
1519
|
-
_toFieldTransform(t: any):
|
|
1528
|
+
_toFieldTransform(t: any): qe;
|
|
1520
1529
|
isEqual(t: any): boolean;
|
|
1521
1530
|
}
|
|
1522
|
-
declare class
|
|
1531
|
+
declare class Uu extends $u {
|
|
1523
1532
|
constructor(t: any, e: any, n: any);
|
|
1524
1533
|
type: any;
|
|
1525
1534
|
Ga: any;
|
|
1526
1535
|
za: any;
|
|
1527
|
-
_apply(t: any):
|
|
1536
|
+
_apply(t: any): Tc;
|
|
1528
1537
|
}
|
|
1529
|
-
declare class
|
|
1538
|
+
declare class Lu extends $u {
|
|
1530
1539
|
constructor(t: any, e: any);
|
|
1531
1540
|
Ka: any;
|
|
1532
1541
|
Wa: any;
|
|
1533
1542
|
type: string;
|
|
1534
|
-
_apply(t: any):
|
|
1543
|
+
_apply(t: any): Tc;
|
|
1535
1544
|
}
|
|
1536
|
-
declare class
|
|
1537
|
-
_toFieldTransform(t: any):
|
|
1545
|
+
declare class uu extends Yc {
|
|
1546
|
+
_toFieldTransform(t: any): qe;
|
|
1538
1547
|
isEqual(t: any): boolean;
|
|
1539
1548
|
}
|
|
1540
|
-
declare class
|
|
1549
|
+
declare class ju extends $u {
|
|
1541
1550
|
constructor(t: any, e: any, n: any);
|
|
1542
1551
|
type: any;
|
|
1543
1552
|
Ha: any;
|
|
1544
1553
|
Ja: any;
|
|
1545
|
-
_apply(t: any):
|
|
1554
|
+
_apply(t: any): Tc;
|
|
1546
1555
|
}
|
|
1547
|
-
declare class
|
|
1556
|
+
declare class Fu extends $u {
|
|
1548
1557
|
constructor(t: any, e: any, n: any);
|
|
1549
1558
|
Ka: any;
|
|
1550
1559
|
ja: any;
|
|
1551
1560
|
Qa: any;
|
|
1552
1561
|
type: string;
|
|
1553
|
-
_apply(t: any):
|
|
1562
|
+
_apply(t: any): Tc;
|
|
1554
1563
|
}
|
|
1555
1564
|
/**
|
|
1556
1565
|
* @license
|
|
@@ -1573,7 +1582,7 @@ declare class Mu extends Ou {
|
|
|
1573
1582
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1574
1583
|
* defaults can be supplied and the value can be checked for equality.
|
|
1575
1584
|
*/
|
|
1576
|
-
declare class
|
|
1585
|
+
declare class gc {
|
|
1577
1586
|
constructor(t: any);
|
|
1578
1587
|
host: any;
|
|
1579
1588
|
ssl: any;
|
|
@@ -1597,7 +1606,7 @@ declare class yc {
|
|
|
1597
1606
|
* base delay. This prevents clients from accidentally synchronizing their
|
|
1598
1607
|
* delays causing spikes of load to the backend.
|
|
1599
1608
|
*/
|
|
1600
|
-
declare class
|
|
1609
|
+
declare class Jr {
|
|
1601
1610
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
1602
1611
|
Oe: any;
|
|
1603
1612
|
timerId: any;
|
|
@@ -1655,7 +1664,7 @@ declare class Yr {
|
|
|
1655
1664
|
* in newer versions of TypeScript defines `finally`, which is not available in
|
|
1656
1665
|
* IE.
|
|
1657
1666
|
*/
|
|
1658
|
-
declare class
|
|
1667
|
+
declare class Co {
|
|
1659
1668
|
/**
|
|
1660
1669
|
* Creates and returns a DelayedOperation that has been scheduled to be
|
|
1661
1670
|
* executed on the provided asyncQueue after the provided delayMs.
|
|
@@ -1669,14 +1678,14 @@ declare class No {
|
|
|
1669
1678
|
* from its delayedOperations list.
|
|
1670
1679
|
* PORTING NOTE: This exists to prevent making removeDelayedOperation() and
|
|
1671
1680
|
* the DelayedOperation class public.
|
|
1672
|
-
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any):
|
|
1681
|
+
*/ static createAndSchedule(t: any, e: any, n: any, s: any, i: any): Co;
|
|
1673
1682
|
constructor(t: any, e: any, n: any, s: any, i: any);
|
|
1674
1683
|
asyncQueue: any;
|
|
1675
1684
|
timerId: any;
|
|
1676
1685
|
targetTimeMs: any;
|
|
1677
1686
|
op: any;
|
|
1678
1687
|
removalCallback: any;
|
|
1679
|
-
deferred:
|
|
1688
|
+
deferred: K;
|
|
1680
1689
|
then: <TResult1 = any, TResult2 = never>(onfulfilled?: ((value: any) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
|
|
1681
1690
|
/**
|
|
1682
1691
|
* Starts the timer. This is called immediately after construction by
|
|
@@ -1697,7 +1706,7 @@ declare class No {
|
|
|
1697
1706
|
handleDelayElapsed(): void;
|
|
1698
1707
|
clearTimeout(): void;
|
|
1699
1708
|
}
|
|
1700
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1709
|
+
/** A "context" object passed around while parsing user data. */ declare class su {
|
|
1701
1710
|
/**
|
|
1702
1711
|
* Initializes a ParseContext with the given source and path.
|
|
1703
1712
|
*
|
|
@@ -1725,11 +1734,11 @@ declare class No {
|
|
|
1725
1734
|
fieldMask: any;
|
|
1726
1735
|
get path(): any;
|
|
1727
1736
|
get Da(): any;
|
|
1728
|
-
/** Returns a new context with the specified settings overwritten. */ Ca(t: any):
|
|
1729
|
-
Na(t: any):
|
|
1730
|
-
$a(t: any):
|
|
1731
|
-
Oa(t: any):
|
|
1732
|
-
Fa(t: any):
|
|
1737
|
+
/** Returns a new context with the specified settings overwritten. */ Ca(t: any): su;
|
|
1738
|
+
Na(t: any): su;
|
|
1739
|
+
$a(t: any): su;
|
|
1740
|
+
Oa(t: any): su;
|
|
1741
|
+
Fa(t: any): q;
|
|
1733
1742
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1734
1743
|
Sa(): void;
|
|
1735
1744
|
ka(t: any): void;
|
|
@@ -1750,9 +1759,9 @@ declare class No {
|
|
|
1750
1759
|
* See the License for the specific language governing permissions and
|
|
1751
1760
|
* limitations under the License.
|
|
1752
1761
|
*/
|
|
1753
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1762
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class qe {
|
|
1754
1763
|
constructor(t: any, e: any);
|
|
1755
1764
|
field: any;
|
|
1756
1765
|
transform: any;
|
|
1757
1766
|
}
|
|
1758
|
-
export {
|
|
1767
|
+
export { th as AbstractUserDataWriter, Jc as Bytes, Cc as CACHE_SIZE_UNLIMITED, Ic as CollectionReference, Ec as DocumentReference, Su as DocumentSnapshot, zc as FieldPath, Yc as FieldValue, Nc as Firestore, q as FirestoreError, Xc as GeoPoint, Dc as LoadBundleTask, Tc as Query, $u as QueryConstraint, Du as QueryDocumentSnapshot, Cu as QuerySnapshot, Vu as SnapshotMetadata, nt as Timestamp, Eh as Transaction, sh as WriteBatch, cc as _DatabaseId, Rt as _DocumentKey, Q as _EmptyCredentialsProvider, ht as _FieldPath, _c as _cast, L as _debugAssert, ft as _isBase64Available, $ as _logWarn, lc as _validateIsNotUsedTogether, _h as addDoc, bh as arrayRemove, Rh as arrayUnion, Bc as clearIndexedDbPersistence, Ac as collection, Rc as collectionGroup, pc as connectFirestoreEmulator, wh as deleteDoc, Ih as deleteField, Kc as disableNetwork, bc as doc, Hc as documentId, Fc as enableIndexedDbPersistence, Mc as enableMultiTabIndexedDbPersistence, qc as enableNetwork, Hu as endAt, zu as endBefore, $c as ensureFirestoreConfigured, yh as executeWrite, rh as getDoc, ah as getDocFromCache, ch as getDocFromServer, uh as getDocs, hh as getDocsFromCache, lh as getDocsFromServer, kc as getFirestore, Ph as increment, xc as initializeFirestore, qu as limit, Ku as limitToLast, Qc as loadBundle, Wc as namedQuery, mh as onSnapshot, gh as onSnapshotsInSync, Bu as orderBy, Ou as query, vc as queryEqual, Pc as refEqual, Th as runTransaction, Ah as serverTimestamp, fh as setDoc, N as setLogLevel, xu as snapshotEqual, Wu as startAfter, Qu as startAt, jc as terminate, dh as updateDoc, Uc as waitForPendingWrites, Mu as where, vh as writeBatch };
|