@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,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;
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
18
|
* An immutable object representing an array of bytes.
|
|
19
|
-
*/ declare class
|
|
19
|
+
*/ declare class ye {
|
|
20
20
|
/**
|
|
21
21
|
* Creates a new `Bytes` object from the given Base64 string, converting it to
|
|
22
22
|
* bytes.
|
|
23
23
|
*
|
|
24
24
|
* @param base64 - The Base64 string used to create the `Bytes` object.
|
|
25
|
-
*/ static fromBase64String(t: any):
|
|
25
|
+
*/ static fromBase64String(t: any): ye;
|
|
26
26
|
/**
|
|
27
27
|
* Creates a new `Bytes` object from the given Uint8Array.
|
|
28
28
|
*
|
|
29
29
|
* @param array - The Uint8Array used to create the `Bytes` object.
|
|
30
|
-
*/ static fromUint8Array(t: any):
|
|
30
|
+
*/ static fromUint8Array(t: any): ye;
|
|
31
31
|
/** @hideconstructor */
|
|
32
32
|
constructor(t: any);
|
|
33
33
|
_byteString: any;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
/**
|
|
57
57
|
* A `CollectionReference` object can be used for adding documents, getting
|
|
58
58
|
* document references, and querying for documents (using {@link query}).
|
|
59
|
-
*/ declare class
|
|
59
|
+
*/ declare class ae extends ce {
|
|
60
60
|
_path: any;
|
|
61
61
|
/** The collection's identifier. */ get id(): any;
|
|
62
62
|
/**
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
/**
|
|
67
67
|
* A reference to the containing `DocumentReference` if this is a
|
|
68
68
|
* subcollection. If this isn't a subcollection, the reference is null.
|
|
69
|
-
*/ get parent():
|
|
69
|
+
*/ get parent(): ue | null;
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
* and can be used to write, read, or listen to the location. The document at
|
|
106
106
|
* the referenced location may or may not exist.
|
|
107
107
|
*/
|
|
108
|
-
declare class
|
|
108
|
+
declare class ue {
|
|
109
109
|
/** @hideconstructor */
|
|
110
110
|
constructor(t: any, n: any, e: any);
|
|
111
111
|
converter: any;
|
|
@@ -123,8 +123,8 @@ declare class ce {
|
|
|
123
123
|
*/ get path(): any;
|
|
124
124
|
/**
|
|
125
125
|
* The collection this `DocumentReference` belongs to.
|
|
126
|
-
*/ get parent():
|
|
127
|
-
withConverter(t: any):
|
|
126
|
+
*/ get parent(): ae;
|
|
127
|
+
withConverter(t: any): ue;
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
130
|
* @license
|
|
@@ -150,7 +150,7 @@ declare class ce {
|
|
|
150
150
|
* For a `DocumentSnapshot` that points to a non-existing document, any data
|
|
151
151
|
* access will return 'undefined'. You can use the `exists()` method to
|
|
152
152
|
* explicitly verify a document's existence.
|
|
153
|
-
*/ declare class
|
|
153
|
+
*/ declare class We {
|
|
154
154
|
/** @hideconstructor protected */
|
|
155
155
|
constructor(t: any, n: any, e: any, r: any, s: any);
|
|
156
156
|
_firestore: any;
|
|
@@ -161,7 +161,7 @@ declare class ce {
|
|
|
161
161
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
162
162
|
/**
|
|
163
163
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
164
|
-
*/ get ref():
|
|
164
|
+
*/ get ref(): ue;
|
|
165
165
|
/**
|
|
166
166
|
* Signals whether or not the document at the snapshot's location exists.
|
|
167
167
|
*
|
|
@@ -208,7 +208,7 @@ declare class ce {
|
|
|
208
208
|
*
|
|
209
209
|
* Create a `FieldPath` by providing field names. If more than one field
|
|
210
210
|
* name is provided, the path will point to a nested field in a document.
|
|
211
|
-
*/ declare class
|
|
211
|
+
*/ declare class me {
|
|
212
212
|
/**
|
|
213
213
|
* Creates a `FieldPath` from the provided field names. If more than one field
|
|
214
214
|
* name is provided, the path will point to a nested field in a document.
|
|
@@ -216,7 +216,7 @@ declare class ce {
|
|
|
216
216
|
* @param fieldNames - A list of field names.
|
|
217
217
|
*/
|
|
218
218
|
constructor(...t: any[]);
|
|
219
|
-
_internalPath:
|
|
219
|
+
_internalPath: J;
|
|
220
220
|
/**
|
|
221
221
|
* Returns true if this `FieldPath` is equal to the provided one.
|
|
222
222
|
*
|
|
@@ -243,7 +243,7 @@ declare class ce {
|
|
|
243
243
|
/**
|
|
244
244
|
* Sentinel values that can be used when writing document fields with `set()`
|
|
245
245
|
* or `update()`.
|
|
246
|
-
*/ declare class
|
|
246
|
+
*/ declare class _e {
|
|
247
247
|
/**
|
|
248
248
|
* @param _methodName - The public API endpoint that returns this class.
|
|
249
249
|
* @hideconstructor
|
|
@@ -271,7 +271,7 @@ declare class ce {
|
|
|
271
271
|
* The Cloud Firestore service interface.
|
|
272
272
|
*
|
|
273
273
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
274
|
-
*/ declare class
|
|
274
|
+
*/ declare class ee {
|
|
275
275
|
/** @hideconstructor */
|
|
276
276
|
constructor(t: any, n: any);
|
|
277
277
|
_credentials: any;
|
|
@@ -280,9 +280,9 @@ declare class ce {
|
|
|
280
280
|
*/
|
|
281
281
|
type: string;
|
|
282
282
|
_persistenceKey: string;
|
|
283
|
-
_settings:
|
|
283
|
+
_settings: ne;
|
|
284
284
|
_settingsFrozen: boolean;
|
|
285
|
-
_databaseId:
|
|
285
|
+
_databaseId: G;
|
|
286
286
|
_app: any;
|
|
287
287
|
/**
|
|
288
288
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -291,14 +291,14 @@ declare class ce {
|
|
|
291
291
|
get _initialized(): boolean;
|
|
292
292
|
get _terminated(): boolean;
|
|
293
293
|
_setSettings(t: any): void;
|
|
294
|
-
_getSettings():
|
|
295
|
-
_freezeSettings():
|
|
294
|
+
_getSettings(): ne;
|
|
295
|
+
_freezeSettings(): ne;
|
|
296
296
|
_delete(): Promise<void>;
|
|
297
297
|
_terminateTask: Promise<void> | undefined;
|
|
298
298
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
299
299
|
app: any;
|
|
300
|
-
databaseId:
|
|
301
|
-
settings:
|
|
300
|
+
databaseId: G;
|
|
301
|
+
settings: ne;
|
|
302
302
|
};
|
|
303
303
|
/**
|
|
304
304
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -308,7 +308,7 @@ declare class ce {
|
|
|
308
308
|
* Only ever called once.
|
|
309
309
|
*/ _terminate(): Promise<void>;
|
|
310
310
|
}
|
|
311
|
-
/** An error returned by a Firestore operation. */ declare class
|
|
311
|
+
/** An error returned by a Firestore operation. */ declare class L extends Error {
|
|
312
312
|
/** @hideconstructor */
|
|
313
313
|
constructor(t: any, n: any);
|
|
314
314
|
code: any;
|
|
@@ -335,7 +335,7 @@ declare class ce {
|
|
|
335
335
|
*
|
|
336
336
|
* Latitude values are in the range of [-90, 90].
|
|
337
337
|
* Longitude values are in the range of [-180, 180].
|
|
338
|
-
*/ declare class
|
|
338
|
+
*/ declare class ge {
|
|
339
339
|
/**
|
|
340
340
|
* Creates a new immutable `GeoPoint` object with the provided latitude and
|
|
341
341
|
* longitude values.
|
|
@@ -369,7 +369,7 @@ declare class ce {
|
|
|
369
369
|
/**
|
|
370
370
|
* A `Query` refers to a query which you can read or listen to. You can also
|
|
371
371
|
* construct refined `Query` objects by adding filters and ordering.
|
|
372
|
-
*/ declare class
|
|
372
|
+
*/ declare class ce {
|
|
373
373
|
/** @hideconstructor protected */
|
|
374
374
|
constructor(t: any, n: any, e: any);
|
|
375
375
|
converter: any;
|
|
@@ -377,7 +377,7 @@ declare class ce {
|
|
|
377
377
|
/** The type of this Firestore reference. */
|
|
378
378
|
type: string;
|
|
379
379
|
firestore: any;
|
|
380
|
-
withConverter(t: any):
|
|
380
|
+
withConverter(t: any): ce;
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
383
383
|
* @license
|
|
@@ -403,7 +403,7 @@ declare class ce {
|
|
|
403
403
|
* can then be passed to {@link query} to create a new query instance that
|
|
404
404
|
* also contains this `QueryConstraint`.
|
|
405
405
|
*/
|
|
406
|
-
declare class
|
|
406
|
+
declare class Je {
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
409
409
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -415,7 +415,7 @@ declare class Ze {
|
|
|
415
415
|
* `DocumentSnapshot`. Since query results contain only existing documents, the
|
|
416
416
|
* `exists` property will always be true and `data()` will never return
|
|
417
417
|
* 'undefined'.
|
|
418
|
-
*/ declare class
|
|
418
|
+
*/ declare class Ge extends We {
|
|
419
419
|
}
|
|
420
420
|
/**
|
|
421
421
|
* A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
|
|
@@ -423,7 +423,7 @@ declare class Ze {
|
|
|
423
423
|
* array via the `docs` property or enumerated using the `forEach` method. The
|
|
424
424
|
* number of documents can be determined via the `empty` and `size`
|
|
425
425
|
* properties.
|
|
426
|
-
*/ declare class
|
|
426
|
+
*/ declare class He {
|
|
427
427
|
/** @hideconstructor */
|
|
428
428
|
constructor(t: any, n: any);
|
|
429
429
|
_docs: any;
|
|
@@ -469,19 +469,19 @@ declare class Ze {
|
|
|
469
469
|
* For examples and further specifications, refer to the
|
|
470
470
|
* {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.
|
|
471
471
|
*/
|
|
472
|
-
declare class
|
|
472
|
+
declare class pt {
|
|
473
473
|
/**
|
|
474
474
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
475
475
|
*
|
|
476
476
|
* @returns a new timestamp representing the current date.
|
|
477
|
-
*/ static now():
|
|
477
|
+
*/ static now(): pt;
|
|
478
478
|
/**
|
|
479
479
|
* Creates a new timestamp from the given date.
|
|
480
480
|
*
|
|
481
481
|
* @param date - The date to initialize the `Timestamp` from.
|
|
482
482
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
483
483
|
* date.
|
|
484
|
-
*/ static fromDate(t: any):
|
|
484
|
+
*/ static fromDate(t: any): pt;
|
|
485
485
|
/**
|
|
486
486
|
* Creates a new timestamp from the given number of milliseconds.
|
|
487
487
|
*
|
|
@@ -489,7 +489,7 @@ declare class yt {
|
|
|
489
489
|
* 1970-01-01T00:00:00Z.
|
|
490
490
|
* @returns A new `Timestamp` representing the same point in time as the given
|
|
491
491
|
* number of milliseconds.
|
|
492
|
-
*/ static fromMillis(t: any):
|
|
492
|
+
*/ static fromMillis(t: any): pt;
|
|
493
493
|
/**
|
|
494
494
|
* Creates a new timestamp.
|
|
495
495
|
*
|
|
@@ -536,26 +536,26 @@ declare class yt {
|
|
|
536
536
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
537
537
|
*/ valueOf(): string;
|
|
538
538
|
}
|
|
539
|
-
declare class
|
|
539
|
+
declare class Cr {
|
|
540
540
|
/** @hideconstructor */
|
|
541
541
|
constructor(t: any, n: any);
|
|
542
542
|
_firestore: any;
|
|
543
543
|
_transaction: any;
|
|
544
|
-
_dataReader:
|
|
544
|
+
_dataReader: Ae;
|
|
545
545
|
/**
|
|
546
546
|
* Reads the document referenced by the provided {@link DocumentReference}.
|
|
547
547
|
*
|
|
548
548
|
* @param documentRef - A reference to the document to be read.
|
|
549
549
|
* @returns A `DocumentSnapshot` with the read data.
|
|
550
550
|
*/ get(t: any): any;
|
|
551
|
-
set(t: any, n: any, e: any):
|
|
552
|
-
update(t: any, n: any, e: any, ...r: any[]):
|
|
551
|
+
set(t: any, n: any, e: any): Cr;
|
|
552
|
+
update(t: any, n: any, e: any, ...r: any[]): Cr;
|
|
553
553
|
/**
|
|
554
554
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
555
555
|
*
|
|
556
556
|
* @param documentRef - A reference to the document to be deleted.
|
|
557
557
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
558
|
-
*/ delete(t: any):
|
|
558
|
+
*/ delete(t: any): Cr;
|
|
559
559
|
}
|
|
560
560
|
/**
|
|
561
561
|
* @license
|
|
@@ -580,22 +580,22 @@ declare class Lr {
|
|
|
580
580
|
* provides methods for adding writes to the write batch. None of the writes
|
|
581
581
|
* will be committed (or visible locally) until {@link WriteBatch.commit} is
|
|
582
582
|
* called.
|
|
583
|
-
*/ declare class
|
|
583
|
+
*/ declare class Nr {
|
|
584
584
|
/** @hideconstructor */
|
|
585
585
|
constructor(t: any, n: any);
|
|
586
586
|
_firestore: any;
|
|
587
587
|
_commitHandler: any;
|
|
588
588
|
_mutations: any[];
|
|
589
589
|
_committed: boolean;
|
|
590
|
-
_dataReader:
|
|
591
|
-
set(t: any, n: any, e: any):
|
|
592
|
-
update(t: any, n: any, e: any, ...r: any[]):
|
|
590
|
+
_dataReader: Ae;
|
|
591
|
+
set(t: any, n: any, e: any): Nr;
|
|
592
|
+
update(t: any, n: any, e: any, ...r: any[]): Nr;
|
|
593
593
|
/**
|
|
594
594
|
* Deletes the document referred to by the provided {@link DocumentReference}.
|
|
595
595
|
*
|
|
596
596
|
* @param documentRef - A reference to the document to be deleted.
|
|
597
597
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
598
|
-
*/ delete(t: any):
|
|
598
|
+
*/ delete(t: any): Nr;
|
|
599
599
|
/**
|
|
600
600
|
* Commits all of the writes in this write batch as a single atomic unit.
|
|
601
601
|
*
|
|
@@ -623,7 +623,7 @@ declare class Lr {
|
|
|
623
623
|
* @param data - An Object containing the data for the new document.
|
|
624
624
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
625
625
|
* newly created document after it has been written to the backend.
|
|
626
|
-
*/ declare function
|
|
626
|
+
*/ declare function Ir(t: any, n: any): Promise<ue>;
|
|
627
627
|
/**
|
|
628
628
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
629
629
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -634,7 +634,7 @@ declare class Lr {
|
|
|
634
634
|
* @param elements - The elements to remove from the array.
|
|
635
635
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
636
636
|
* `updateDoc()`
|
|
637
|
-
*/ declare function
|
|
637
|
+
*/ declare function Rr(...t: any[]): Fe;
|
|
638
638
|
/**
|
|
639
639
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
640
640
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array
|
|
@@ -646,8 +646,8 @@ declare class Lr {
|
|
|
646
646
|
* @param elements - The elements to union into the array.
|
|
647
647
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
648
648
|
* `updateDoc()`.
|
|
649
|
-
*/ declare function
|
|
650
|
-
declare function
|
|
649
|
+
*/ declare function Pr(...t: any[]): $e;
|
|
650
|
+
declare function he(t: any, n: any, ...e: any[]): ae;
|
|
651
651
|
/**
|
|
652
652
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
653
653
|
* database that are contained in a collection or subcollection with the
|
|
@@ -658,7 +658,7 @@ declare function le(t: any, n: any, ...e: any[]): he;
|
|
|
658
658
|
* collection or subcollection with this ID as the last segment of its path
|
|
659
659
|
* will be included. Cannot contain a slash.
|
|
660
660
|
* @returns The created `Query`.
|
|
661
|
-
*/ declare function
|
|
661
|
+
*/ declare function le(t: any, n: any): ce;
|
|
662
662
|
/**
|
|
663
663
|
* Modify this instance to communicate with the Cloud Firestore emulator.
|
|
664
664
|
*
|
|
@@ -671,7 +671,7 @@ declare function le(t: any, n: any, ...e: any[]): he;
|
|
|
671
671
|
* @param port - the emulator port (ex: 9000).
|
|
672
672
|
* @param options.mockUserToken - the mock auth token to use for unit testing
|
|
673
673
|
* Security Rules.
|
|
674
|
-
*/ declare function
|
|
674
|
+
*/ declare function ie(t: any, n: any, e: any, r?: {}): void;
|
|
675
675
|
/**
|
|
676
676
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
677
677
|
*
|
|
@@ -683,7 +683,7 @@ declare function le(t: any, n: any, ...e: any[]): he;
|
|
|
683
683
|
* @param reference - A reference to the document to delete.
|
|
684
684
|
* @returns A `Promise` resolved once the document has been successfully
|
|
685
685
|
* deleted from the backend.
|
|
686
|
-
*/ declare function
|
|
686
|
+
*/ declare function Er(t: any): Promise<void>;
|
|
687
687
|
/**
|
|
688
688
|
* @license
|
|
689
689
|
* Copyright 2020 Google LLC
|
|
@@ -703,14 +703,14 @@ declare function le(t: any, n: any, ...e: any[]): he;
|
|
|
703
703
|
/**
|
|
704
704
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
705
705
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
706
|
-
*/ declare function
|
|
707
|
-
declare function
|
|
706
|
+
*/ declare function Tr(): Ve;
|
|
707
|
+
declare function fe(t: any, n: any, ...e: any[]): ue;
|
|
708
708
|
/**
|
|
709
709
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
710
710
|
* It can be used in queries to sort or filter by the document ID.
|
|
711
|
-
*/ declare function
|
|
712
|
-
declare function
|
|
713
|
-
declare function
|
|
711
|
+
*/ declare function pe(): me;
|
|
712
|
+
declare function lr(...t: any[]): ar;
|
|
713
|
+
declare function hr(...t: any[]): ar;
|
|
714
714
|
/**
|
|
715
715
|
* Reads the document referred to by the specified document reference.
|
|
716
716
|
*
|
|
@@ -723,7 +723,7 @@ declare function lr(...t: any[]): hr;
|
|
|
723
723
|
* @param reference - The reference of the document to fetch.
|
|
724
724
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the current
|
|
725
725
|
* document contents.
|
|
726
|
-
*/ declare function
|
|
726
|
+
*/ declare function _r(t: any): Promise<We>;
|
|
727
727
|
/**
|
|
728
728
|
* Executes the query and returns the results as a {@link QuerySnapshot}.
|
|
729
729
|
*
|
|
@@ -735,7 +735,7 @@ declare function lr(...t: any[]): hr;
|
|
|
735
735
|
*
|
|
736
736
|
* @param query - The `Query` to execute.
|
|
737
737
|
* @returns A Promise that will be resolved with the results of the query.
|
|
738
|
-
*/ declare function
|
|
738
|
+
*/ declare function gr(t: any): Promise<He>;
|
|
739
739
|
/**
|
|
740
740
|
* Returns the existing `Firestore` instance that is associated with the
|
|
741
741
|
* provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
|
|
@@ -744,7 +744,7 @@ declare function lr(...t: any[]): hr;
|
|
|
744
744
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned `Firestore`
|
|
745
745
|
* instance is associated with.
|
|
746
746
|
* @returns The `Firestore` instance of the provided app.
|
|
747
|
-
*/ declare function
|
|
747
|
+
*/ declare function se(n?: import("@firebase/app").FirebaseApp): import("../../lite").Firestore;
|
|
748
748
|
/**
|
|
749
749
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
750
750
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -763,14 +763,14 @@ declare function lr(...t: any[]): hr;
|
|
|
763
763
|
* @param n - The value to increment by.
|
|
764
764
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
765
765
|
* `updateDoc()`
|
|
766
|
-
*/ declare function
|
|
767
|
-
declare function
|
|
766
|
+
*/ declare function Vr(t: any): Se;
|
|
767
|
+
declare function re(t: any, n: any): import("../../lite").Firestore;
|
|
768
768
|
/**
|
|
769
769
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
770
770
|
*
|
|
771
771
|
* @param limit - The maximum number of items to return.
|
|
772
772
|
* @returns The created {@link Query}.
|
|
773
|
-
*/ declare function
|
|
773
|
+
*/ declare function sr(t: any): rr;
|
|
774
774
|
/**
|
|
775
775
|
* Creates a {@link QueryConstraint} that only returns the last matching documents.
|
|
776
776
|
*
|
|
@@ -779,7 +779,7 @@ declare function se(n: any, e: any): import("../../lite").Firestore;
|
|
|
779
779
|
*
|
|
780
780
|
* @param limit - The maximum number of items to return.
|
|
781
781
|
* @returns The created {@link Query}.
|
|
782
|
-
*/ declare function
|
|
782
|
+
*/ declare function ir(t: any): rr;
|
|
783
783
|
/**
|
|
784
784
|
* Creates a {@link QueryConstraint} that sorts the query result by the
|
|
785
785
|
* specified field, optionally in descending order instead of ascending.
|
|
@@ -788,7 +788,7 @@ declare function se(n: any, e: any): import("../../lite").Firestore;
|
|
|
788
788
|
* @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
|
|
789
789
|
* not specified, order will be ascending.
|
|
790
790
|
* @returns The created {@link Query}.
|
|
791
|
-
*/ declare function
|
|
791
|
+
*/ declare function er(t: any, n?: string): nr;
|
|
792
792
|
/**
|
|
793
793
|
* Creates a new immutable instance of {@link Query} that is extended to also include
|
|
794
794
|
* additional query constraints.
|
|
@@ -797,7 +797,7 @@ declare function se(n: any, e: any): import("../../lite").Firestore;
|
|
|
797
797
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
798
798
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
799
799
|
* existing or new constraints.
|
|
800
|
-
*/ declare function
|
|
800
|
+
*/ declare function Ze(t: any, ...n: any[]): any;
|
|
801
801
|
/**
|
|
802
802
|
* Returns true if the provided queries point to the same collection and apply
|
|
803
803
|
* the same constraints.
|
|
@@ -806,7 +806,7 @@ declare function se(n: any, e: any): import("../../lite").Firestore;
|
|
|
806
806
|
* @param right - A `Query` to compare.
|
|
807
807
|
* @returns true if the references point to the same location in the same
|
|
808
808
|
* Firestore database.
|
|
809
|
-
*/ declare function
|
|
809
|
+
*/ declare function we(t: any, n: any): boolean;
|
|
810
810
|
/**
|
|
811
811
|
* Returns true if the provided references are equal.
|
|
812
812
|
*
|
|
@@ -814,7 +814,7 @@ declare function se(n: any, e: any): import("../../lite").Firestore;
|
|
|
814
814
|
* @param right - A reference to compare.
|
|
815
815
|
* @returns true if the references point to the same location in the same
|
|
816
816
|
* Firestore database.
|
|
817
|
-
*/ declare function
|
|
817
|
+
*/ declare function de(t: any, n: any): boolean;
|
|
818
818
|
/**
|
|
819
819
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
820
820
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -831,12 +831,12 @@ declare function se(n: any, e: any): import("../../lite").Firestore;
|
|
|
831
831
|
* (the `updateFunction` returned a failed promise), the promise returned by the
|
|
832
832
|
* `updateFunction `is returned here. Otherwise, if the transaction failed, a
|
|
833
833
|
* rejected promise with the corresponding failure error is returned.
|
|
834
|
-
*/ declare function
|
|
834
|
+
*/ declare function Lr(t: any, n: any): Promise<any>;
|
|
835
835
|
/**
|
|
836
836
|
* Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
|
|
837
837
|
* include a server-generated timestamp in the written data.
|
|
838
|
-
*/ declare function
|
|
839
|
-
declare function
|
|
838
|
+
*/ declare function Ar(): De;
|
|
839
|
+
declare function br(t: any, n: any, e: any): Promise<void>;
|
|
840
840
|
/**
|
|
841
841
|
* Sets the verbosity of Cloud Firestore logs (debug, error, or silent).
|
|
842
842
|
*
|
|
@@ -849,16 +849,16 @@ declare function vr(t: any, n: any, e: any): Promise<void>;
|
|
|
849
849
|
* <li>`error` to log errors only.</li>
|
|
850
850
|
* <li><code>`silent` to turn off logging.</li>
|
|
851
851
|
* </ul>
|
|
852
|
-
*/ declare function
|
|
852
|
+
*/ declare function d(t: any): void;
|
|
853
853
|
/**
|
|
854
854
|
* Returns true if the provided snapshots are equal.
|
|
855
855
|
*
|
|
856
856
|
* @param left - A snapshot to compare.
|
|
857
857
|
* @param right - A snapshot to compare.
|
|
858
858
|
* @returns true if the snapshots are equal.
|
|
859
|
-
*/ declare function
|
|
860
|
-
declare function
|
|
861
|
-
declare function
|
|
859
|
+
*/ declare function Ye(t: any, n: any): any;
|
|
860
|
+
declare function cr(...t: any[]): or;
|
|
861
|
+
declare function ur(...t: any[]): or;
|
|
862
862
|
/**
|
|
863
863
|
* Terminates the provided `Firestore` instance.
|
|
864
864
|
*
|
|
@@ -878,8 +878,8 @@ declare function cr(...t: any[]): ur;
|
|
|
878
878
|
* @param firestore - The `Firestore` instance to terminate.
|
|
879
879
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
880
880
|
* terminated.
|
|
881
|
-
*/ declare function
|
|
882
|
-
declare function
|
|
881
|
+
*/ declare function oe(t: any): any;
|
|
882
|
+
declare function vr(t: any, n: any, e: any, ...r: any[]): Promise<void>;
|
|
883
883
|
/**
|
|
884
884
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
885
885
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -890,7 +890,7 @@ declare function Er(t: any, n: any, e: any, ...r: any[]): Promise<void>;
|
|
|
890
890
|
* "<=", "!=").
|
|
891
891
|
* @param value - The value for comparison
|
|
892
892
|
* @returns The created {@link Query}.
|
|
893
|
-
*/ declare function
|
|
893
|
+
*/ declare function tr(t: any, n: any, e: any): Xe;
|
|
894
894
|
/**
|
|
895
895
|
* Creates a write batch, used for performing multiple writes as a single
|
|
896
896
|
* atomic operation. The maximum number of writes allowed in a single WriteBatch
|
|
@@ -903,18 +903,18 @@ declare function Er(t: any, n: any, e: any, ...r: any[]): Promise<void>;
|
|
|
903
903
|
*
|
|
904
904
|
* @returns A `WriteBatch` that can be used to atomically execute multiple
|
|
905
905
|
* writes.
|
|
906
|
-
*/ declare function
|
|
906
|
+
*/ declare function $r(t: any): Nr;
|
|
907
907
|
/**
|
|
908
908
|
* A dot-separated path for navigating sub-objects within a document.
|
|
909
909
|
* @internal
|
|
910
|
-
*/ declare class
|
|
910
|
+
*/ declare class J extends H {
|
|
911
911
|
/**
|
|
912
912
|
* Returns true if the string could be used as a segment in a field path
|
|
913
913
|
* without escaping.
|
|
914
914
|
*/ static isValidIdentifier(t: any): boolean;
|
|
915
915
|
/**
|
|
916
916
|
* The field designating the key of a document.
|
|
917
|
-
*/ static keyField():
|
|
917
|
+
*/ static keyField(): J;
|
|
918
918
|
/**
|
|
919
919
|
* Parses a field string from the given server-formatted string.
|
|
920
920
|
*
|
|
@@ -924,9 +924,9 @@ declare function Er(t: any, n: any, e: any, ...r: any[]): Promise<void>;
|
|
|
924
924
|
*
|
|
925
925
|
* TODO(b/37244157): we should make this more strict. Right now, it allows
|
|
926
926
|
* non-identifier path components, even if they aren't escaped.
|
|
927
|
-
*/ static fromServerFormat(t: any):
|
|
928
|
-
static emptyPath():
|
|
929
|
-
construct(t: any, n: any, e: any):
|
|
927
|
+
*/ static fromServerFormat(t: any): J;
|
|
928
|
+
static emptyPath(): J;
|
|
929
|
+
construct(t: any, n: any, e: any): J;
|
|
930
930
|
canonicalString(): any;
|
|
931
931
|
toString(): any;
|
|
932
932
|
/**
|
|
@@ -942,7 +942,7 @@ declare function Er(t: any, n: any, e: any, ...r: any[]): Promise<void>;
|
|
|
942
942
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
943
943
|
* defaults can be supplied and the value can be checked for equality.
|
|
944
944
|
*/
|
|
945
|
-
declare class
|
|
945
|
+
declare class ne {
|
|
946
946
|
constructor(t: any);
|
|
947
947
|
host: any;
|
|
948
948
|
ssl: any;
|
|
@@ -959,7 +959,7 @@ declare class ee {
|
|
|
959
959
|
* Represents the database ID a Firestore client is associated with.
|
|
960
960
|
* @internal
|
|
961
961
|
*/
|
|
962
|
-
declare class
|
|
962
|
+
declare class G {
|
|
963
963
|
constructor(t: any, n: any);
|
|
964
964
|
projectId: any;
|
|
965
965
|
database: any;
|
|
@@ -969,74 +969,74 @@ declare class H {
|
|
|
969
969
|
/**
|
|
970
970
|
* Helper for parsing raw user input (provided via the API) into internal model
|
|
971
971
|
* classes.
|
|
972
|
-
*/ declare class
|
|
972
|
+
*/ declare class Ae {
|
|
973
973
|
constructor(t: any, n: any, e: any);
|
|
974
974
|
databaseId: any;
|
|
975
975
|
ignoreUndefinedProperties: any;
|
|
976
976
|
S: any;
|
|
977
|
-
/** Creates a new top-level parse context. */ at(t: any, n: any, e: any, r?: boolean):
|
|
977
|
+
/** Creates a new top-level parse context. */ at(t: any, n: any, e: any, r?: boolean): Te;
|
|
978
978
|
}
|
|
979
|
-
declare class
|
|
979
|
+
declare class Fe extends _e {
|
|
980
980
|
constructor(t: any, n: any);
|
|
981
981
|
ht: any;
|
|
982
|
-
_toFieldTransform(t: any):
|
|
982
|
+
_toFieldTransform(t: any): _n;
|
|
983
983
|
isEqual(t: any): boolean;
|
|
984
984
|
}
|
|
985
|
-
declare class
|
|
985
|
+
declare class $e extends _e {
|
|
986
986
|
constructor(t: any, n: any);
|
|
987
987
|
ht: any;
|
|
988
|
-
_toFieldTransform(t: any):
|
|
988
|
+
_toFieldTransform(t: any): _n;
|
|
989
989
|
isEqual(t: any): boolean;
|
|
990
990
|
}
|
|
991
|
-
declare class
|
|
991
|
+
declare class Ve extends _e {
|
|
992
992
|
_toFieldTransform(t: any): null;
|
|
993
993
|
isEqual(t: any): boolean;
|
|
994
994
|
}
|
|
995
|
-
declare class
|
|
995
|
+
declare class ar extends Je {
|
|
996
996
|
constructor(t: any, n: any, e: any);
|
|
997
997
|
type: any;
|
|
998
998
|
bt: any;
|
|
999
999
|
vt: any;
|
|
1000
|
-
_apply(t: any):
|
|
1000
|
+
_apply(t: any): ce;
|
|
1001
1001
|
}
|
|
1002
|
-
declare class
|
|
1002
|
+
declare class Se extends _e {
|
|
1003
1003
|
constructor(t: any, n: any);
|
|
1004
1004
|
lt: any;
|
|
1005
|
-
_toFieldTransform(t: any):
|
|
1005
|
+
_toFieldTransform(t: any): _n;
|
|
1006
1006
|
isEqual(t: any): boolean;
|
|
1007
1007
|
}
|
|
1008
|
-
declare class
|
|
1008
|
+
declare class rr extends Je {
|
|
1009
1009
|
constructor(t: any, n: any, e: any);
|
|
1010
1010
|
type: any;
|
|
1011
1011
|
_t: any;
|
|
1012
1012
|
gt: any;
|
|
1013
|
-
_apply(t: any):
|
|
1013
|
+
_apply(t: any): ce;
|
|
1014
1014
|
}
|
|
1015
|
-
declare class
|
|
1015
|
+
declare class nr extends Je {
|
|
1016
1016
|
constructor(t: any, n: any);
|
|
1017
1017
|
ft: any;
|
|
1018
1018
|
yt: any;
|
|
1019
1019
|
type: string;
|
|
1020
|
-
_apply(t: any):
|
|
1020
|
+
_apply(t: any): ce;
|
|
1021
1021
|
}
|
|
1022
|
-
declare class
|
|
1023
|
-
_toFieldTransform(t: any):
|
|
1022
|
+
declare class De extends _e {
|
|
1023
|
+
_toFieldTransform(t: any): _n;
|
|
1024
1024
|
isEqual(t: any): boolean;
|
|
1025
1025
|
}
|
|
1026
|
-
declare class
|
|
1026
|
+
declare class or extends Je {
|
|
1027
1027
|
constructor(t: any, n: any, e: any);
|
|
1028
1028
|
type: any;
|
|
1029
1029
|
bt: any;
|
|
1030
1030
|
vt: any;
|
|
1031
|
-
_apply(t: any):
|
|
1031
|
+
_apply(t: any): ce;
|
|
1032
1032
|
}
|
|
1033
|
-
declare class
|
|
1033
|
+
declare class Xe extends Je {
|
|
1034
1034
|
constructor(t: any, n: any, e: any);
|
|
1035
1035
|
ft: any;
|
|
1036
1036
|
dt: any;
|
|
1037
1037
|
wt: any;
|
|
1038
1038
|
type: string;
|
|
1039
|
-
_apply(t: any):
|
|
1039
|
+
_apply(t: any): ce;
|
|
1040
1040
|
}
|
|
1041
1041
|
/**
|
|
1042
1042
|
* @license
|
|
@@ -1057,7 +1057,7 @@ declare class tr extends Ze {
|
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Path represents an ordered sequence of string segments.
|
|
1059
1059
|
*/
|
|
1060
|
-
declare class
|
|
1060
|
+
declare class H {
|
|
1061
1061
|
static comparator(t: any, n: any): 0 | 1 | -1;
|
|
1062
1062
|
constructor(t: any, n: any, e: any);
|
|
1063
1063
|
segments: any;
|
|
@@ -1078,7 +1078,7 @@ declare class Y {
|
|
|
1078
1078
|
forEach(t: any): void;
|
|
1079
1079
|
toArray(): any;
|
|
1080
1080
|
}
|
|
1081
|
-
/** A "context" object passed around while parsing user data. */ declare class
|
|
1081
|
+
/** A "context" object passed around while parsing user data. */ declare class Te {
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Initializes a ParseContext with the given source and path.
|
|
1084
1084
|
*
|
|
@@ -1106,11 +1106,11 @@ declare class Y {
|
|
|
1106
1106
|
fieldMask: any;
|
|
1107
1107
|
get path(): any;
|
|
1108
1108
|
get X(): any;
|
|
1109
|
-
/** Returns a new context with the specified settings overwritten. */ tt(t: any):
|
|
1110
|
-
nt(t: any):
|
|
1111
|
-
st(t: any):
|
|
1112
|
-
it(t: any):
|
|
1113
|
-
ot(t: any):
|
|
1109
|
+
/** Returns a new context with the specified settings overwritten. */ tt(t: any): Te;
|
|
1110
|
+
nt(t: any): Te;
|
|
1111
|
+
st(t: any): Te;
|
|
1112
|
+
it(t: any): Te;
|
|
1113
|
+
ot(t: any): L;
|
|
1114
1114
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1115
1115
|
Z(): void;
|
|
1116
1116
|
rt(t: any): void;
|
|
@@ -1131,9 +1131,9 @@ declare class Y {
|
|
|
1131
1131
|
* See the License for the specific language governing permissions and
|
|
1132
1132
|
* limitations under the License.
|
|
1133
1133
|
*/
|
|
1134
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1134
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class _n {
|
|
1135
1135
|
constructor(t: any, n: any);
|
|
1136
1136
|
field: any;
|
|
1137
1137
|
transform: any;
|
|
1138
1138
|
}
|
|
1139
|
-
export {
|
|
1139
|
+
export { ye as Bytes, ae as CollectionReference, ue as DocumentReference, We as DocumentSnapshot, me as FieldPath, _e as FieldValue, ee as Firestore, L as FirestoreError, ge as GeoPoint, ce as Query, Je as QueryConstraint, Ge as QueryDocumentSnapshot, He as QuerySnapshot, pt as Timestamp, Cr as Transaction, Nr as WriteBatch, Ir as addDoc, Rr as arrayRemove, Pr as arrayUnion, he as collection, le as collectionGroup, ie as connectFirestoreEmulator, Er as deleteDoc, Tr as deleteField, fe as doc, pe as documentId, lr as endAt, hr as endBefore, _r as getDoc, gr as getDocs, se as getFirestore, Vr as increment, re as initializeFirestore, sr as limit, ir as limitToLast, er as orderBy, Ze as query, we as queryEqual, de as refEqual, Lr as runTransaction, Ar as serverTimestamp, br as setDoc, d as setLogLevel, Ye as snapshotEqual, cr as startAfter, ur as startAt, oe as terminate, vr as updateDoc, tr as where, $r as writeBatch };
|