@firebase/firestore 3.1.1 → 3.2.0
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/src/register.d.ts +1 -1
- package/dist/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/firestore/src/util/async_queue.d.ts +4 -2
- package/dist/index.esm2017.js +1055 -1047
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1483 -1474
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +7049 -9102
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/{index.node.cjs.esm2017.js → index.node.mjs} +51 -20
- package/dist/index.node.mjs.map +1 -0
- package/dist/index.rn.js +534 -526
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +4 -2
- package/dist/lite/firestore/src/register.d.ts +1 -1
- package/dist/lite/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/lite/firestore/src/util/async_queue.d.ts +4 -2
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +2 -2
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +1804 -2261
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/{index.node.esm2017.js → index.node.mjs} +3 -3
- package/dist/lite/index.node.mjs.map +1 -0
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +4 -2
- package/dist/lite/packages/firestore/src/register.d.ts +1 -1
- package/dist/lite/packages/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/lite/packages/firestore/src/util/async_queue.d.ts +4 -2
- package/dist/lite/private.d.ts +4 -2
- package/dist/packages/firestore/dist/index.esm2017.d.ts +102 -102
- package/dist/packages/firestore/src/register.d.ts +1 -1
- package/dist/packages/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/packages/firestore/src/util/async_queue.d.ts +4 -2
- package/dist/private.d.ts +4 -2
- package/lite/package.json +1 -1
- package/package.json +15 -9
- package/dist/index.node.cjs.esm2017.js.map +0 -1
- package/dist/lite/firestore/dist/lite/index.node.esm2017.d.ts +0 -1195
- package/dist/lite/index.node.esm2017.js.map +0 -1
- package/dist/packages/firestore/dist/index.node.cjs.esm2017.d.ts +0 -1844
package/dist/lite/internal.d.ts
CHANGED
|
@@ -2243,15 +2243,17 @@ declare const enum TimerId {
|
|
|
2243
2243
|
/** All can be used with runDelayedOperationsEarly() to run all timers. */
|
|
2244
2244
|
All = "all",
|
|
2245
2245
|
/**
|
|
2246
|
-
* The following
|
|
2246
|
+
* The following 5 timers are used in persistent_stream.ts for the listen and
|
|
2247
2247
|
* write streams. The "Idle" timer is used to close the stream due to
|
|
2248
2248
|
* inactivity. The "ConnectionBackoff" timer is used to restart a stream once
|
|
2249
|
-
* the appropriate backoff delay has elapsed.
|
|
2249
|
+
* the appropriate backoff delay has elapsed. The health check is used to mark
|
|
2250
|
+
* a stream healthy if it has not received an error during its initial setup.
|
|
2250
2251
|
*/
|
|
2251
2252
|
ListenStreamIdle = "listen_stream_idle",
|
|
2252
2253
|
ListenStreamConnectionBackoff = "listen_stream_connection_backoff",
|
|
2253
2254
|
WriteStreamIdle = "write_stream_idle",
|
|
2254
2255
|
WriteStreamConnectionBackoff = "write_stream_connection_backoff",
|
|
2256
|
+
HealthCheckTimeout = "health_check_timeout",
|
|
2255
2257
|
/**
|
|
2256
2258
|
* A timer used in online_state_tracker.ts to transition from
|
|
2257
2259
|
* OnlineState.Unknown to Offline after a set timeout, rather than waiting
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export declare function registerFirestore(variant?: string): void;
|
|
17
|
+
export declare function registerFirestore(variant?: string, useFetchStreams?: boolean): void;
|
|
@@ -80,6 +80,7 @@ export interface PersistentStreamListener {
|
|
|
80
80
|
export declare abstract class PersistentStream<SendType, ReceiveType, ListenerType extends PersistentStreamListener> {
|
|
81
81
|
private queue;
|
|
82
82
|
private idleTimerId;
|
|
83
|
+
private healthTimerId;
|
|
83
84
|
protected connection: Connection;
|
|
84
85
|
private credentialsProvider;
|
|
85
86
|
protected listener: ListenerType;
|
|
@@ -91,9 +92,10 @@ export declare abstract class PersistentStream<SendType, ReceiveType, ListenerTy
|
|
|
91
92
|
*/
|
|
92
93
|
private closeCount;
|
|
93
94
|
private idleTimer;
|
|
95
|
+
private healthCheck;
|
|
94
96
|
private stream;
|
|
95
97
|
protected backoff: ExponentialBackoff;
|
|
96
|
-
constructor(queue: AsyncQueue, connectionTimerId: TimerId, idleTimerId: TimerId, connection: Connection, credentialsProvider: CredentialsProvider, listener: ListenerType);
|
|
98
|
+
constructor(queue: AsyncQueue, connectionTimerId: TimerId, idleTimerId: TimerId, healthTimerId: TimerId, connection: Connection, credentialsProvider: CredentialsProvider, listener: ListenerType);
|
|
97
99
|
/**
|
|
98
100
|
* Returns true if start() has been called and no error has occurred. True
|
|
99
101
|
* indicates the stream is open or in the process of opening (which
|
|
@@ -148,6 +150,8 @@ export declare abstract class PersistentStream<SendType, ReceiveType, ListenerTy
|
|
|
148
150
|
private handleIdleCloseTimer;
|
|
149
151
|
/** Marks the stream as active again. */
|
|
150
152
|
private cancelIdleCheck;
|
|
153
|
+
/** Cancels the health check delayed operation. */
|
|
154
|
+
private cancelHealthCheck;
|
|
151
155
|
/**
|
|
152
156
|
* Closes the stream and cleans up as necessary:
|
|
153
157
|
*
|
|
@@ -26,15 +26,17 @@ export declare const enum TimerId {
|
|
|
26
26
|
/** All can be used with runDelayedOperationsEarly() to run all timers. */
|
|
27
27
|
All = "all",
|
|
28
28
|
/**
|
|
29
|
-
* The following
|
|
29
|
+
* The following 5 timers are used in persistent_stream.ts for the listen and
|
|
30
30
|
* write streams. The "Idle" timer is used to close the stream due to
|
|
31
31
|
* inactivity. The "ConnectionBackoff" timer is used to restart a stream once
|
|
32
|
-
* the appropriate backoff delay has elapsed.
|
|
32
|
+
* the appropriate backoff delay has elapsed. The health check is used to mark
|
|
33
|
+
* a stream healthy if it has not received an error during its initial setup.
|
|
33
34
|
*/
|
|
34
35
|
ListenStreamIdle = "listen_stream_idle",
|
|
35
36
|
ListenStreamConnectionBackoff = "listen_stream_connection_backoff",
|
|
36
37
|
WriteStreamIdle = "write_stream_idle",
|
|
37
38
|
WriteStreamConnectionBackoff = "write_stream_connection_backoff",
|
|
39
|
+
HealthCheckTimeout = "health_check_timeout",
|
|
38
40
|
/**
|
|
39
41
|
* A timer used in online_state_tracker.ts to transition from
|
|
40
42
|
* OnlineState.Unknown to Offline after a set timeout, rather than waiting
|
package/dist/lite/private.d.ts
CHANGED
|
@@ -2111,15 +2111,17 @@ declare const enum TimerId {
|
|
|
2111
2111
|
/** All can be used with runDelayedOperationsEarly() to run all timers. */
|
|
2112
2112
|
All = "all",
|
|
2113
2113
|
/**
|
|
2114
|
-
* The following
|
|
2114
|
+
* The following 5 timers are used in persistent_stream.ts for the listen and
|
|
2115
2115
|
* write streams. The "Idle" timer is used to close the stream due to
|
|
2116
2116
|
* inactivity. The "ConnectionBackoff" timer is used to restart a stream once
|
|
2117
|
-
* the appropriate backoff delay has elapsed.
|
|
2117
|
+
* the appropriate backoff delay has elapsed. The health check is used to mark
|
|
2118
|
+
* a stream healthy if it has not received an error during its initial setup.
|
|
2118
2119
|
*/
|
|
2119
2120
|
ListenStreamIdle = "listen_stream_idle",
|
|
2120
2121
|
ListenStreamConnectionBackoff = "listen_stream_connection_backoff",
|
|
2121
2122
|
WriteStreamIdle = "write_stream_idle",
|
|
2122
2123
|
WriteStreamConnectionBackoff = "write_stream_connection_backoff",
|
|
2124
|
+
HealthCheckTimeout = "health_check_timeout",
|
|
2123
2125
|
/**
|
|
2124
2126
|
* A timer used in online_state_tracker.ts to transition from
|
|
2125
2127
|
* OnlineState.Unknown to Offline after a set timeout, rather than waiting
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
*/
|
|
47
47
|
/**
|
|
48
48
|
* An immutable object representing an array of bytes.
|
|
49
|
-
*/ declare class
|
|
49
|
+
*/ declare class Xa {
|
|
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): Xa;
|
|
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): Xa;
|
|
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 xa: -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 Ra extends Aa {
|
|
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(): Ia | 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 Ia {
|
|
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(): Ra;
|
|
157
|
+
withConverter(t: any): Ia;
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
160
160
|
* A `DocumentSnapshot` contains data read from a document in your Firestore
|
|
@@ -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 Ja {
|
|
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.
|
|
@@ -245,7 +245,7 @@ declare class Jc {
|
|
|
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 Za {
|
|
249
249
|
/**
|
|
250
250
|
* @param _methodName - The public API endpoint that returns this class.
|
|
251
251
|
* @hideconstructor
|
|
@@ -258,8 +258,8 @@ declare class Jc {
|
|
|
258
258
|
*
|
|
259
259
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
260
260
|
*/
|
|
261
|
-
declare class
|
|
262
|
-
_queue:
|
|
261
|
+
declare class ka extends Ta {
|
|
262
|
+
_queue: Da;
|
|
263
263
|
}
|
|
264
264
|
/** An error returned by a Firestore operation. */ declare class j extends Error {
|
|
265
265
|
/** @hideconstructor */
|
|
@@ -319,7 +319,7 @@ declare class kc extends Tc {
|
|
|
319
319
|
* with an underscore.
|
|
320
320
|
*/ _compareTo(t: any): 0 | 1 | -1;
|
|
321
321
|
}
|
|
322
|
-
declare class
|
|
322
|
+
declare class Na {
|
|
323
323
|
_progressObserver: {};
|
|
324
324
|
_taskCompletionResolver: Q;
|
|
325
325
|
_lastProgress: {
|
|
@@ -371,7 +371,7 @@ declare class Nc {
|
|
|
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 Aa {
|
|
375
375
|
/** @hideconstructor protected */
|
|
376
376
|
constructor(t: any, e: any, n: any);
|
|
377
377
|
converter: any;
|
|
@@ -379,7 +379,7 @@ declare class Nc {
|
|
|
379
379
|
/** The type of this Firestore reference. */
|
|
380
380
|
type: string;
|
|
381
381
|
firestore: any;
|
|
382
|
-
withConverter(t: any):
|
|
382
|
+
withConverter(t: any): Aa;
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
385
385
|
* A `QueryConstraint` is used to narrow the set of documents returned by a
|
|
@@ -668,7 +668,7 @@ declare const Ih_base: {
|
|
|
668
668
|
* Represents the database ID a Firestore client is associated with.
|
|
669
669
|
* @internal
|
|
670
670
|
*/
|
|
671
|
-
declare class
|
|
671
|
+
declare class ha {
|
|
672
672
|
constructor(t: any, e: any);
|
|
673
673
|
projectId: any;
|
|
674
674
|
database: any;
|
|
@@ -748,7 +748,7 @@ declare class hc {
|
|
|
748
748
|
* Returns true if this field references the key of a document.
|
|
749
749
|
*/ isKeyField(): boolean;
|
|
750
750
|
}
|
|
751
|
-
declare function
|
|
751
|
+
declare function ga(t: any, e: any): any;
|
|
752
752
|
/**
|
|
753
753
|
* Fails if the given assertion condition is false, throwing an Error with the
|
|
754
754
|
* given message if it did.
|
|
@@ -784,7 +784,7 @@ declare function wt(): boolean;
|
|
|
784
784
|
/**
|
|
785
785
|
* Validates that two boolean options are not set at the same time.
|
|
786
786
|
* @internal
|
|
787
|
-
*/ declare function
|
|
787
|
+
*/ declare function da(t: any, e: any, n: any, s: any): void;
|
|
788
788
|
/**
|
|
789
789
|
* Add a new document to specified `CollectionReference` with the given data,
|
|
790
790
|
* assigning it a document ID automatically.
|
|
@@ -794,7 +794,7 @@ declare function wt(): boolean;
|
|
|
794
794
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
795
795
|
* newly created document after it has been written to the backend (Note that it
|
|
796
796
|
* won't resolve while you're offline).
|
|
797
|
-
*/ declare function gh(t: any, e: any): Promise<
|
|
797
|
+
*/ declare function gh(t: any, e: any): Promise<Ia>;
|
|
798
798
|
/**
|
|
799
799
|
* Returns a special value that can be used with {@link (setDoc:1)} or {@link
|
|
800
800
|
* updateDoc:1} that tells the server to remove the given elements from any
|
|
@@ -818,8 +818,8 @@ declare function wt(): boolean;
|
|
|
818
818
|
* @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
|
|
819
819
|
* `updateDoc()`.
|
|
820
820
|
*/ declare function Ph(...t: any[]): fu;
|
|
821
|
-
declare function
|
|
822
|
-
declare function
|
|
821
|
+
declare function qa(t: any): Promise<any>;
|
|
822
|
+
declare function ba(t: any, e: any, ...n: any[]): Ra;
|
|
823
823
|
/**
|
|
824
824
|
* Creates and returns a new `Query` instance that includes all documents in the
|
|
825
825
|
* database that are contained in a collection or subcollection with the
|
|
@@ -830,8 +830,8 @@ declare function bc(t: any, e: any, ...n: any[]): Rc;
|
|
|
830
830
|
* collection or subcollection with this ID as the last segment of its path
|
|
831
831
|
* will be included. Cannot contain a slash.
|
|
832
832
|
* @returns The created `Query`.
|
|
833
|
-
*/ declare function
|
|
834
|
-
declare function
|
|
833
|
+
*/ declare function Pa(t: any, e: any): Aa;
|
|
834
|
+
declare function Ea(t: any, e: any, n: any, s?: {}): void;
|
|
835
835
|
/**
|
|
836
836
|
* Deletes the document referred to by the specified `DocumentReference`.
|
|
837
837
|
*
|
|
@@ -866,12 +866,12 @@ declare function Ec(t: any, e: any, n: any, s?: {}): void;
|
|
|
866
866
|
* operations will be queued until the network is restored.
|
|
867
867
|
*
|
|
868
868
|
* @returns A `Promise` that is resolved once the network has been disabled.
|
|
869
|
-
*/ declare function
|
|
870
|
-
declare function
|
|
869
|
+
*/ declare function Qa(t: any): any;
|
|
870
|
+
declare function va(t: any, e: any, ...n: any[]): Ia;
|
|
871
871
|
/**
|
|
872
872
|
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
|
|
873
873
|
* It can be used in queries to sort or filter by the document ID.
|
|
874
|
-
*/ declare function
|
|
874
|
+
*/ declare function Ya(): Ja;
|
|
875
875
|
/**
|
|
876
876
|
* Attempts to enable persistent storage, if possible.
|
|
877
877
|
*
|
|
@@ -894,7 +894,7 @@ declare function vc(t: any, e: any, ...n: any[]): Ic;
|
|
|
894
894
|
* @param persistenceSettings - Optional settings object to configure
|
|
895
895
|
* persistence.
|
|
896
896
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
897
|
-
*/ declare function
|
|
897
|
+
*/ declare function La(t: any, e: any): any;
|
|
898
898
|
/**
|
|
899
899
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
900
900
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -916,18 +916,18 @@ declare function vc(t: any, e: any, ...n: any[]): Ic;
|
|
|
916
916
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
917
917
|
* @returns A `Promise` that represents successfully enabling persistent
|
|
918
918
|
* storage.
|
|
919
|
-
*/ declare function
|
|
919
|
+
*/ declare function Ba(t: any): any;
|
|
920
920
|
/**
|
|
921
921
|
* Re-enables use of the network for this {@link Firestore} instance after a prior
|
|
922
922
|
* call to {@link disableNetwork}.
|
|
923
923
|
*
|
|
924
924
|
* @returns A `Promise` that is resolved once the network has been enabled.
|
|
925
|
-
*/ declare function
|
|
925
|
+
*/ declare function ja(t: any): any;
|
|
926
926
|
declare function Yu(...t: any[]): Hu;
|
|
927
927
|
declare function Ju(...t: any[]): Hu;
|
|
928
928
|
/**
|
|
929
929
|
* @internal
|
|
930
|
-
*/ declare function
|
|
930
|
+
*/ declare function Fa(t: any): any;
|
|
931
931
|
/**
|
|
932
932
|
* Locally writes `mutations` on the async queue.
|
|
933
933
|
* @internal
|
|
@@ -983,7 +983,7 @@ declare function Ju(...t: any[]): Hu;
|
|
|
983
983
|
* @returns A Promise resolved with a `DocumentSnapshot` containing the
|
|
984
984
|
* current document contents.
|
|
985
985
|
*/
|
|
986
|
-
declare function
|
|
986
|
+
declare function ch(t: any): Promise<Cu>;
|
|
987
987
|
/**
|
|
988
988
|
* Reads the document referred to by this `DocumentReference` from cache.
|
|
989
989
|
* Returns an error if the document is not currently cached.
|
|
@@ -1028,7 +1028,7 @@ declare function ah(t: any): Promise<Cu>;
|
|
|
1028
1028
|
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
|
|
1029
1029
|
* instance is associated with.
|
|
1030
1030
|
* @returns The {@link Firestore} instance of the provided app.
|
|
1031
|
-
*/ declare function
|
|
1031
|
+
*/ declare function Oa(e?: import("@firebase/app").FirebaseApp): import("../src").Firestore;
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
|
|
1034
1034
|
* @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
|
|
@@ -1058,7 +1058,7 @@ declare function ah(t: any): Promise<Cu>;
|
|
|
1058
1058
|
* be associated.
|
|
1059
1059
|
* @param settings - A settings object to configure the {@link Firestore} instance.
|
|
1060
1060
|
* @returns A newly initialized {@link Firestore} instance.
|
|
1061
|
-
*/ declare function $
|
|
1061
|
+
*/ declare function $a(t: any, e: any): import("../src").Firestore;
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Creates a {@link QueryConstraint} that only returns the first matching documents.
|
|
1064
1064
|
*
|
|
@@ -1084,14 +1084,14 @@ declare function ah(t: any): Promise<Cu>;
|
|
|
1084
1084
|
* @returns
|
|
1085
1085
|
* A `LoadBundleTask` object, which notifies callers with progress updates, and completion
|
|
1086
1086
|
* or error events. It can be used as a `Promise<LoadBundleTaskProgress>`.
|
|
1087
|
-
*/ declare function
|
|
1087
|
+
*/ declare function Ga(t: any, e: any): Na;
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Reads a Firestore {@link Query} from local cache, identified by the given name.
|
|
1090
1090
|
*
|
|
1091
1091
|
* The named queries are packaged into bundles on the server side (along
|
|
1092
1092
|
* with resulting documents), and loaded to local cache using `loadBundle`. Once in local
|
|
1093
1093
|
* cache, use this method to extract a {@link Query} by name.
|
|
1094
|
-
*/ declare function
|
|
1094
|
+
*/ declare function za(t: any, e: any): any;
|
|
1095
1095
|
declare function yh(t: any, ...e: any[]): () => void;
|
|
1096
1096
|
declare function ph(t: any, e: any): () => void;
|
|
1097
1097
|
/**
|
|
@@ -1120,7 +1120,7 @@ declare function ph(t: any, e: any): () => void;
|
|
|
1120
1120
|
* @param right - A `Query` to compare.
|
|
1121
1121
|
* @returns true if the references point to the same location in the same
|
|
1122
1122
|
* Firestore database.
|
|
1123
|
-
*/ declare function
|
|
1123
|
+
*/ declare function Sa(t: any, e: any): boolean;
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Returns true if the provided references are equal.
|
|
1126
1126
|
*
|
|
@@ -1128,7 +1128,7 @@ declare function ph(t: any, e: any): () => void;
|
|
|
1128
1128
|
* @param right - A reference to compare.
|
|
1129
1129
|
* @returns true if the references point to the same location in the same
|
|
1130
1130
|
* Firestore database.
|
|
1131
|
-
*/ declare function
|
|
1131
|
+
*/ declare function Va(t: any, e: any): boolean;
|
|
1132
1132
|
/**
|
|
1133
1133
|
* Executes the given `updateFunction` and then attempts to commit the changes
|
|
1134
1134
|
* applied within the transaction. If any document read within the transaction
|
|
@@ -1194,7 +1194,7 @@ declare function Gu(...t: any[]): Wu;
|
|
|
1194
1194
|
*
|
|
1195
1195
|
* @returns A `Promise` that is resolved when the instance has been successfully
|
|
1196
1196
|
* terminated.
|
|
1197
|
-
*/ declare function
|
|
1197
|
+
*/ declare function Wa(t: any): any;
|
|
1198
1198
|
declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Waits until all currently pending writes for the active user have been
|
|
@@ -1211,7 +1211,7 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1211
1211
|
*
|
|
1212
1212
|
* @returns A `Promise` which resolves when all currently pending writes have been
|
|
1213
1213
|
* acknowledged by the backend.
|
|
1214
|
-
*/ declare function
|
|
1214
|
+
*/ declare function Ka(t: any): Promise<any>;
|
|
1215
1215
|
/**
|
|
1216
1216
|
* Creates a {@link QueryConstraint} that enforces that documents must contain the
|
|
1217
1217
|
* specified field and that the value should satisfy the relation constraint
|
|
@@ -1285,7 +1285,7 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1285
1285
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */ get id(): any;
|
|
1286
1286
|
/**
|
|
1287
1287
|
* The `DocumentReference` for the document included in the `DocumentSnapshot`.
|
|
1288
|
-
*/ get ref():
|
|
1288
|
+
*/ get ref(): Ia;
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Signals whether or not the document at the snapshot's location exists.
|
|
1291
1291
|
*
|
|
@@ -1329,7 +1329,7 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1329
1329
|
* The Cloud Firestore service interface.
|
|
1330
1330
|
*
|
|
1331
1331
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
1332
|
-
*/ declare class
|
|
1332
|
+
*/ declare class Ta {
|
|
1333
1333
|
/** @hideconstructor */
|
|
1334
1334
|
constructor(t: any, e: any);
|
|
1335
1335
|
_credentials: any;
|
|
@@ -1338,9 +1338,9 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1338
1338
|
*/
|
|
1339
1339
|
type: string;
|
|
1340
1340
|
_persistenceKey: string;
|
|
1341
|
-
_settings:
|
|
1341
|
+
_settings: pa;
|
|
1342
1342
|
_settingsFrozen: boolean;
|
|
1343
|
-
_databaseId:
|
|
1343
|
+
_databaseId: ha;
|
|
1344
1344
|
_app: any;
|
|
1345
1345
|
/**
|
|
1346
1346
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -1349,14 +1349,14 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1349
1349
|
get _initialized(): boolean;
|
|
1350
1350
|
get _terminated(): boolean;
|
|
1351
1351
|
_setSettings(t: any): void;
|
|
1352
|
-
_getSettings():
|
|
1353
|
-
_freezeSettings():
|
|
1352
|
+
_getSettings(): pa;
|
|
1353
|
+
_freezeSettings(): pa;
|
|
1354
1354
|
_delete(): Promise<void>;
|
|
1355
1355
|
_terminateTask: Promise<void> | undefined;
|
|
1356
1356
|
/** Returns a JSON-serializable representation of this `Firestore` instance. */ toJSON(): {
|
|
1357
1357
|
app: any;
|
|
1358
|
-
databaseId:
|
|
1359
|
-
settings:
|
|
1358
|
+
databaseId: ha;
|
|
1359
|
+
settings: pa;
|
|
1360
1360
|
};
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Terminates all components used by this client. Subclasses can override
|
|
@@ -1381,17 +1381,17 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1381
1381
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1382
1382
|
* See the License for the specific language governing permissions and
|
|
1383
1383
|
* limitations under the License.
|
|
1384
|
-
*/ declare class
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1384
|
+
*/ declare class Da {
|
|
1385
|
+
_c: Promise<void>;
|
|
1386
|
+
mc: any[];
|
|
1387
|
+
gc: boolean;
|
|
1388
|
+
yc: any[];
|
|
1389
|
+
Tc: any;
|
|
1390
|
+
Ec: boolean;
|
|
1391
|
+
Ic: boolean;
|
|
1392
|
+
Ac: any[];
|
|
1393
|
+
ar: Xr;
|
|
1394
|
+
Rc: () => void;
|
|
1395
1395
|
get isShuttingDown(): boolean;
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Adds a new operation to the queue without waiting for it to complete (i.e.
|
|
@@ -1404,30 +1404,30 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Runs the next operation from the retryable queue. If the operation fails,
|
|
1406
1406
|
* reschedules with backoff.
|
|
1407
|
-
*/
|
|
1408
|
-
|
|
1407
|
+
*/ vc(): Promise<void>;
|
|
1408
|
+
Pc(t: any): Promise<any>;
|
|
1409
1409
|
enqueueAfterDelay(t: any, e: any, n: any): xo;
|
|
1410
|
-
|
|
1410
|
+
bc(): void;
|
|
1411
1411
|
verifyOperationInProgress(): void;
|
|
1412
1412
|
/**
|
|
1413
1413
|
* Waits until all currently queued tasks are finished executing. Delayed
|
|
1414
1414
|
* operations are not run.
|
|
1415
|
-
*/
|
|
1415
|
+
*/ Sc(): Promise<void>;
|
|
1416
1416
|
/**
|
|
1417
1417
|
* For Tests: Determine if a delayed operation with a particular TimerId
|
|
1418
1418
|
* exists.
|
|
1419
|
-
*/
|
|
1419
|
+
*/ Dc(t: any): boolean;
|
|
1420
1420
|
/**
|
|
1421
1421
|
* For Tests: Runs some or all delayed operations early.
|
|
1422
1422
|
*
|
|
1423
1423
|
* @param lastTimerId - Delayed operations up to and including this TimerId
|
|
1424
1424
|
* will be drained. Pass TimerId.All to run all delayed operations.
|
|
1425
1425
|
* @returns a Promise that resolves once all operations have been run.
|
|
1426
|
-
*/
|
|
1426
|
+
*/ Cc(t: any): Promise<void>;
|
|
1427
1427
|
/**
|
|
1428
1428
|
* For Tests: Skip all subsequent delays for a timer id.
|
|
1429
|
-
*/
|
|
1430
|
-
/** Called once a DelayedOperation is run or canceled. */
|
|
1429
|
+
*/ Nc(t: any): void;
|
|
1430
|
+
/** Called once a DelayedOperation is run or canceled. */ Vc(t: any): void;
|
|
1431
1431
|
}
|
|
1432
1432
|
/**
|
|
1433
1433
|
* @license
|
|
@@ -1457,7 +1457,7 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1457
1457
|
databaseId: any;
|
|
1458
1458
|
ignoreUndefinedProperties: any;
|
|
1459
1459
|
N: any;
|
|
1460
|
-
/** Creates a new top-level parse context. */
|
|
1460
|
+
/** Creates a new top-level parse context. */ jc(t: any, e: any, n: any, s?: boolean): ru;
|
|
1461
1461
|
}
|
|
1462
1462
|
/**
|
|
1463
1463
|
* @license
|
|
@@ -1499,67 +1499,67 @@ declare class ut {
|
|
|
1499
1499
|
forEach(t: any): void;
|
|
1500
1500
|
toArray(): any;
|
|
1501
1501
|
}
|
|
1502
|
-
declare class du extends
|
|
1502
|
+
declare class du extends Za {
|
|
1503
1503
|
constructor(t: any, e: any);
|
|
1504
|
-
|
|
1504
|
+
Qc: any;
|
|
1505
1505
|
_toFieldTransform(t: any): je;
|
|
1506
1506
|
isEqual(t: any): boolean;
|
|
1507
1507
|
}
|
|
1508
|
-
declare class fu extends
|
|
1508
|
+
declare class fu extends Za {
|
|
1509
1509
|
constructor(t: any, e: any);
|
|
1510
|
-
|
|
1510
|
+
Qc: any;
|
|
1511
1511
|
_toFieldTransform(t: any): je;
|
|
1512
1512
|
isEqual(t: any): boolean;
|
|
1513
1513
|
}
|
|
1514
|
-
declare class uu extends
|
|
1514
|
+
declare class uu extends Za {
|
|
1515
1515
|
_toFieldTransform(t: any): null;
|
|
1516
1516
|
isEqual(t: any): boolean;
|
|
1517
1517
|
}
|
|
1518
1518
|
declare class Hu extends Fu {
|
|
1519
1519
|
constructor(t: any, e: any, n: any);
|
|
1520
1520
|
type: any;
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
_apply(t: any):
|
|
1521
|
+
Zc: any;
|
|
1522
|
+
ta: any;
|
|
1523
|
+
_apply(t: any): Aa;
|
|
1524
1524
|
}
|
|
1525
|
-
declare class wu extends
|
|
1525
|
+
declare class wu extends Za {
|
|
1526
1526
|
constructor(t: any, e: any);
|
|
1527
|
-
|
|
1527
|
+
Wc: any;
|
|
1528
1528
|
_toFieldTransform(t: any): je;
|
|
1529
1529
|
isEqual(t: any): boolean;
|
|
1530
1530
|
}
|
|
1531
1531
|
declare class Ku extends Fu {
|
|
1532
1532
|
constructor(t: any, e: any, n: any);
|
|
1533
1533
|
type: any;
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
_apply(t: any):
|
|
1534
|
+
Yc: any;
|
|
1535
|
+
Xc: any;
|
|
1536
|
+
_apply(t: any): Aa;
|
|
1537
1537
|
}
|
|
1538
1538
|
declare class Uu extends Fu {
|
|
1539
1539
|
constructor(t: any, e: any);
|
|
1540
|
-
|
|
1541
|
-
|
|
1540
|
+
Gc: any;
|
|
1541
|
+
Jc: any;
|
|
1542
1542
|
type: string;
|
|
1543
|
-
_apply(t: any):
|
|
1543
|
+
_apply(t: any): Aa;
|
|
1544
1544
|
}
|
|
1545
|
-
declare class lu extends
|
|
1545
|
+
declare class lu extends Za {
|
|
1546
1546
|
_toFieldTransform(t: any): je;
|
|
1547
1547
|
isEqual(t: any): boolean;
|
|
1548
1548
|
}
|
|
1549
1549
|
declare class Wu extends Fu {
|
|
1550
1550
|
constructor(t: any, e: any, n: any);
|
|
1551
1551
|
type: any;
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
_apply(t: any):
|
|
1552
|
+
Zc: any;
|
|
1553
|
+
ta: any;
|
|
1554
|
+
_apply(t: any): Aa;
|
|
1555
1555
|
}
|
|
1556
1556
|
declare class Lu extends Fu {
|
|
1557
1557
|
constructor(t: any, e: any, n: any);
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1558
|
+
Gc: any;
|
|
1559
|
+
zc: any;
|
|
1560
|
+
Hc: any;
|
|
1561
1561
|
type: string;
|
|
1562
|
-
_apply(t: any):
|
|
1562
|
+
_apply(t: any): Aa;
|
|
1563
1563
|
}
|
|
1564
1564
|
/**
|
|
1565
1565
|
* @license
|
|
@@ -1582,7 +1582,7 @@ declare class Lu extends Fu {
|
|
|
1582
1582
|
* user-supplied `FirestoreSettings` object. This is a separate type so that
|
|
1583
1583
|
* defaults can be supplied and the value can be checked for equality.
|
|
1584
1584
|
*/
|
|
1585
|
-
declare class
|
|
1585
|
+
declare class pa {
|
|
1586
1586
|
constructor(t: any);
|
|
1587
1587
|
host: any;
|
|
1588
1588
|
ssl: any;
|
|
@@ -1733,15 +1733,15 @@ declare class xo {
|
|
|
1733
1733
|
fieldTransforms: any;
|
|
1734
1734
|
fieldMask: any;
|
|
1735
1735
|
get path(): any;
|
|
1736
|
-
get
|
|
1737
|
-
/** Returns a new context with the specified settings overwritten. */
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1736
|
+
get kc(): any;
|
|
1737
|
+
/** Returns a new context with the specified settings overwritten. */ $c(t: any): ru;
|
|
1738
|
+
Oc(t: any): ru;
|
|
1739
|
+
Lc(t: any): ru;
|
|
1740
|
+
Bc(t: any): ru;
|
|
1741
|
+
Uc(t: any): j;
|
|
1742
1742
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1743
|
-
|
|
1744
|
-
|
|
1743
|
+
xc(): void;
|
|
1744
|
+
Mc(t: any): void;
|
|
1745
1745
|
}
|
|
1746
1746
|
/**
|
|
1747
1747
|
* @license
|
|
@@ -1764,4 +1764,4 @@ declare class xo {
|
|
|
1764
1764
|
field: any;
|
|
1765
1765
|
transform: any;
|
|
1766
1766
|
}
|
|
1767
|
-
export { nh as AbstractUserDataWriter,
|
|
1767
|
+
export { nh as AbstractUserDataWriter, Xa as Bytes, xa as CACHE_SIZE_UNLIMITED, Ra as CollectionReference, Ia as DocumentReference, Cu as DocumentSnapshot, Ja as FieldPath, Za as FieldValue, ka as Firestore, j as FirestoreError, tu as GeoPoint, Na as LoadBundleTask, Aa as Query, Fu as QueryConstraint, Nu as QueryDocumentSnapshot, xu as QuerySnapshot, Du as SnapshotMetadata, it as Timestamp, Ih as Transaction, rh as WriteBatch, ha as _DatabaseId, Pt as _DocumentKey, G as _EmptyCredentialsProvider, ft as _FieldPath, ga as _cast, U as _debugAssert, wt as _isBase64Available, F as _logWarn, da as _validateIsNotUsedTogether, gh as addDoc, vh as arrayRemove, Ph as arrayUnion, qa as clearIndexedDbPersistence, ba as collection, Pa as collectionGroup, Ea as connectFirestoreEmulator, mh as deleteDoc, Rh as deleteField, Qa as disableNetwork, va as doc, Ya as documentId, La as enableIndexedDbPersistence, Ba as enableMultiTabIndexedDbPersistence, ja as enableNetwork, Yu as endAt, Ju as endBefore, Fa as ensureFirestoreConfigured, Th as executeWrite, ch as getDoc, uh as getDocFromCache, hh as getDocFromServer, lh as getDocs, fh as getDocsFromCache, dh as getDocsFromServer, Oa as getFirestore, Vh as increment, $a as initializeFirestore, ju as limit, Qu as limitToLast, Ga as loadBundle, za as namedQuery, yh as onSnapshot, ph as onSnapshotsInSync, qu as orderBy, Mu as query, Sa as queryEqual, Va as refEqual, Ah as runTransaction, bh as serverTimestamp, wh as setDoc, k as setLogLevel, $u as snapshotEqual, zu as startAfter, Gu as startAt, Wa as terminate, _h as updateDoc, Ka as waitForPendingWrites, Bu as where, Sh as writeBatch };
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export declare function registerFirestore(variant?: string): void;
|
|
17
|
+
export declare function registerFirestore(variant?: string, useFetchStreams?: boolean): void;
|