@firebase/firestore 3.4.4-canary.2dd99ae2d → 3.4.4-canary.7f959622d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/firestore/src/core/target.d.ts +8 -4
- package/dist/firestore/src/lite-api/query.d.ts +2 -2
- package/dist/firestore/src/local/indexeddb_schema.d.ts +121 -7
- package/dist/firestore/test/util/helpers.d.ts +1 -1
- package/dist/index.esm2017.js +2233 -2144
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +2964 -2912
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +199 -90
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +199 -90
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +2183 -2090
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +2 -2
- package/dist/lite/firestore/src/core/target.d.ts +8 -4
- package/dist/lite/firestore/src/lite-api/query.d.ts +2 -2
- package/dist/lite/firestore/src/local/indexeddb_schema.d.ts +121 -7
- package/dist/lite/firestore/test/util/helpers.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +301 -298
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +327 -326
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +36 -29
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +36 -29
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +301 -298
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +2 -2
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +90 -90
- package/dist/lite/packages/firestore/src/core/target.d.ts +8 -4
- package/dist/lite/packages/firestore/src/lite-api/query.d.ts +2 -2
- package/dist/lite/packages/firestore/src/local/indexeddb_schema.d.ts +121 -7
- package/dist/lite/packages/firestore/test/util/helpers.d.ts +1 -1
- package/dist/lite/private.d.ts +2 -2
- package/dist/packages/firestore/dist/index.esm2017.d.ts +61 -61
- package/dist/packages/firestore/src/core/target.d.ts +8 -4
- package/dist/packages/firestore/src/lite-api/query.d.ts +2 -2
- package/dist/packages/firestore/src/local/indexeddb_schema.d.ts +121 -7
- package/dist/packages/firestore/test/util/helpers.d.ts +1 -1
- package/dist/private.d.ts +2 -2
- package/package.json +9 -9
|
@@ -15,10 +15,12 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { BatchId, TargetId } from '../core/types';
|
|
18
|
+
import { IndexKind } from '../model/field_index';
|
|
18
19
|
import { ResourcePath } from '../model/path';
|
|
19
20
|
import { BundledQuery } from '../protos/firestore_bundle_proto';
|
|
20
21
|
import { Document as ProtoDocument, DocumentsTarget as ProtoDocumentsTarget, QueryTarget as ProtoQueryTarget, Write as ProtoWrite } from '../protos/firestore_proto_api';
|
|
21
22
|
import { EncodedResourcePath } from './encoded_resource_path';
|
|
23
|
+
export declare const INDEXING_SCHEMA_VERSION = 12;
|
|
22
24
|
/**
|
|
23
25
|
* Schema Version for the Web client:
|
|
24
26
|
* 1. Initial version including Mutation Queue, Query Cache, and Remote
|
|
@@ -37,8 +39,9 @@ import { EncodedResourcePath } from './encoded_resource_path';
|
|
|
37
39
|
* an auto-incrementing ID. This is required for Index-Free queries.
|
|
38
40
|
* 10. Rewrite the canonical IDs to the explicit Protobuf-based format.
|
|
39
41
|
* 11. Add bundles and named_queries for bundle support.
|
|
42
|
+
* 12. Add indexing support.
|
|
40
43
|
*/
|
|
41
|
-
export declare const SCHEMA_VERSION
|
|
44
|
+
export declare const SCHEMA_VERSION: number;
|
|
42
45
|
/**
|
|
43
46
|
* Wrapper class to store timestamps (seconds and nanos) in IndexedDb objects.
|
|
44
47
|
*/
|
|
@@ -763,9 +766,7 @@ export declare class DbClientMetadata {
|
|
|
763
766
|
/** Object keys in the 'clientMetadata' store are clientId strings. */
|
|
764
767
|
export declare type DbClientMetadataKey = string;
|
|
765
768
|
export declare type DbBundlesKey = string;
|
|
766
|
-
/**
|
|
767
|
-
* A object representing a bundle loaded by the SDK.
|
|
768
|
-
*/
|
|
769
|
+
/** An object representing a bundle loaded by the SDK. */
|
|
769
770
|
export declare class DbBundle {
|
|
770
771
|
/** The ID of the loaded bundle. */
|
|
771
772
|
bundleId: string;
|
|
@@ -785,9 +786,7 @@ export declare class DbBundle {
|
|
|
785
786
|
version: number);
|
|
786
787
|
}
|
|
787
788
|
export declare type DbNamedQueriesKey = string;
|
|
788
|
-
/**
|
|
789
|
-
* A object representing a named query loaded by the SDK via a bundle.
|
|
790
|
-
*/
|
|
789
|
+
/** An object representing a named query loaded by the SDK via a bundle. */
|
|
791
790
|
export declare class DbNamedQuery {
|
|
792
791
|
/** The name of the query. */
|
|
793
792
|
name: string;
|
|
@@ -806,12 +805,127 @@ export declare class DbNamedQuery {
|
|
|
806
805
|
/** The query saved in the bundle. */
|
|
807
806
|
bundledQuery: BundledQuery);
|
|
808
807
|
}
|
|
808
|
+
/** The key for each index consisting of just the index id. */
|
|
809
|
+
export declare type DbIndexConfigurationKey = number;
|
|
810
|
+
/** An object representing the global configuration for a field index. */
|
|
811
|
+
export declare class DbIndexConfiguration {
|
|
812
|
+
/** The index id for this entry. */
|
|
813
|
+
indexId: number;
|
|
814
|
+
/** The collection group this index belongs to. */
|
|
815
|
+
collectionGroup: string;
|
|
816
|
+
/** The fields to index for this index. */
|
|
817
|
+
fields: [[name: string, kind: IndexKind]];
|
|
818
|
+
/** Name of the IndexedDb object store. */
|
|
819
|
+
static store: string;
|
|
820
|
+
static keyPath: string;
|
|
821
|
+
constructor(
|
|
822
|
+
/** The index id for this entry. */
|
|
823
|
+
indexId: number,
|
|
824
|
+
/** The collection group this index belongs to. */
|
|
825
|
+
collectionGroup: string,
|
|
826
|
+
/** The fields to index for this index. */
|
|
827
|
+
fields: [[name: string, kind: IndexKind]]);
|
|
828
|
+
}
|
|
829
|
+
/** The key for each index state consisting of the index id and its user id. */
|
|
830
|
+
export declare type DbIndexStateKey = [number, string];
|
|
831
|
+
/**
|
|
832
|
+
* An object describing how up-to-date the index backfill is for each user and
|
|
833
|
+
* index.
|
|
834
|
+
*/
|
|
835
|
+
export declare class DbIndexState {
|
|
836
|
+
/** The index id for this entry. */
|
|
837
|
+
indexId: number;
|
|
838
|
+
/** The user id for this entry. */
|
|
839
|
+
uid: string;
|
|
840
|
+
/**
|
|
841
|
+
* A number that indicates when the index was last updated (relative to
|
|
842
|
+
* other indexes).
|
|
843
|
+
*/
|
|
844
|
+
sequenceNumber: number;
|
|
845
|
+
/**
|
|
846
|
+
* The latest read time that has been indexed by Firestore for this field
|
|
847
|
+
* index. Set to `{seconds: 0, nanos: 0}` if no documents have been indexed.
|
|
848
|
+
*/
|
|
849
|
+
readTime: DbTimestamp;
|
|
850
|
+
/**
|
|
851
|
+
* The last document that has been indexed for this field index. Empty if
|
|
852
|
+
* no documents have been indexed.
|
|
853
|
+
*/
|
|
854
|
+
documentKey: EncodedResourcePath;
|
|
855
|
+
/**
|
|
856
|
+
* The largest mutation batch id that has been processed for this index. -1
|
|
857
|
+
* if no mutations have been indexed.
|
|
858
|
+
*/
|
|
859
|
+
largestBatchId: number;
|
|
860
|
+
/** Name of the IndexedDb object store. */
|
|
861
|
+
static store: string;
|
|
862
|
+
static keyPath: string[];
|
|
863
|
+
constructor(
|
|
864
|
+
/** The index id for this entry. */
|
|
865
|
+
indexId: number,
|
|
866
|
+
/** The user id for this entry. */
|
|
867
|
+
uid: string,
|
|
868
|
+
/**
|
|
869
|
+
* A number that indicates when the index was last updated (relative to
|
|
870
|
+
* other indexes).
|
|
871
|
+
*/
|
|
872
|
+
sequenceNumber: number,
|
|
873
|
+
/**
|
|
874
|
+
* The latest read time that has been indexed by Firestore for this field
|
|
875
|
+
* index. Set to `{seconds: 0, nanos: 0}` if no documents have been indexed.
|
|
876
|
+
*/
|
|
877
|
+
readTime: DbTimestamp,
|
|
878
|
+
/**
|
|
879
|
+
* The last document that has been indexed for this field index. Empty if
|
|
880
|
+
* no documents have been indexed.
|
|
881
|
+
*/
|
|
882
|
+
documentKey: EncodedResourcePath,
|
|
883
|
+
/**
|
|
884
|
+
* The largest mutation batch id that has been processed for this index. -1
|
|
885
|
+
* if no mutations have been indexed.
|
|
886
|
+
*/
|
|
887
|
+
largestBatchId: number);
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* The key for each index entry consists of the index id and its user id,
|
|
891
|
+
* the encoded array and directional value for the indexed fields as well as
|
|
892
|
+
* the encoded document path for the indexed document.
|
|
893
|
+
*/
|
|
894
|
+
export declare type DbIndexEntryKey = [number, string, Uint8Array, Uint8Array, string];
|
|
895
|
+
/** An object that stores the encoded entries for all documents and fields. */
|
|
896
|
+
export declare class DbIndexEntries {
|
|
897
|
+
/** The index id for this entry. */
|
|
898
|
+
indexId: number;
|
|
899
|
+
/** The user id for this entry. */
|
|
900
|
+
uid: string;
|
|
901
|
+
/** The encoded array index value for this entry. */
|
|
902
|
+
arrayValue: Uint8Array;
|
|
903
|
+
/** The encoded directional value for equality and inequality filters. */
|
|
904
|
+
directionalValue: Uint8Array;
|
|
905
|
+
/** The document key this entry points to. */
|
|
906
|
+
documentKey: EncodedResourcePath;
|
|
907
|
+
/** Name of the IndexedDb object store. */
|
|
908
|
+
static store: string;
|
|
909
|
+
static keyPath: string[];
|
|
910
|
+
constructor(
|
|
911
|
+
/** The index id for this entry. */
|
|
912
|
+
indexId: number,
|
|
913
|
+
/** The user id for this entry. */
|
|
914
|
+
uid: string,
|
|
915
|
+
/** The encoded array index value for this entry. */
|
|
916
|
+
arrayValue: Uint8Array,
|
|
917
|
+
/** The encoded directional value for equality and inequality filters. */
|
|
918
|
+
directionalValue: Uint8Array,
|
|
919
|
+
/** The document key this entry points to. */
|
|
920
|
+
documentKey: EncodedResourcePath);
|
|
921
|
+
}
|
|
809
922
|
export declare const V1_STORES: string[];
|
|
810
923
|
export declare const V3_STORES: string[];
|
|
811
924
|
export declare const V4_STORES: string[];
|
|
812
925
|
export declare const V6_STORES: string[];
|
|
813
926
|
export declare const V8_STORES: string[];
|
|
814
927
|
export declare const V11_STORES: string[];
|
|
928
|
+
export declare const V12_STORES: string[];
|
|
815
929
|
/**
|
|
816
930
|
* The list of all default IndexedDB stores used throughout the SDK. This is
|
|
817
931
|
* used when creating transactions so that access across all stores is done
|
|
@@ -71,7 +71,7 @@ export declare function setMutation(keyStr: string, json: JsonObject<unknown>):
|
|
|
71
71
|
export declare function patchMutation(keyStr: string, json: JsonObject<unknown>, precondition?: Precondition): PatchMutation;
|
|
72
72
|
export declare function deleteMutation(keyStr: string): DeleteMutation;
|
|
73
73
|
export declare function mutationResult(testVersion: TestSnapshotVersion): MutationResult;
|
|
74
|
-
export declare function bound(values: unknown[],
|
|
74
|
+
export declare function bound(values: unknown[], inclusive: boolean): Bound;
|
|
75
75
|
export declare function query(resourcePath: string, ...constraints: Array<OrderBy | Filter>): Query;
|
|
76
76
|
export declare function targetData(targetId: TargetId, queryPurpose: TargetPurpose, path: string): TargetData;
|
|
77
77
|
export declare function noChangeEvent(targetId: number, snapshotVersion: number, resumeToken?: ByteString): RemoteEvent;
|
package/dist/lite/private.d.ts
CHANGED
|
@@ -177,8 +177,8 @@ declare abstract class BasePath<B extends BasePath<B>> {
|
|
|
177
177
|
*/
|
|
178
178
|
declare class Bound {
|
|
179
179
|
readonly position: Value[];
|
|
180
|
-
readonly
|
|
181
|
-
constructor(position: Value[],
|
|
180
|
+
readonly inclusive: boolean;
|
|
181
|
+
constructor(position: Value[], inclusive: boolean);
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
/**
|
|
@@ -787,7 +787,7 @@ declare function ba(t: any, e: any): any;
|
|
|
787
787
|
*/
|
|
788
788
|
/** Converts a Base64 encoded string to a binary string. */
|
|
789
789
|
/** True if and only if the Base64 conversion functions are available. */
|
|
790
|
-
declare function
|
|
790
|
+
declare function gt(): boolean;
|
|
791
791
|
/**
|
|
792
792
|
* @internal
|
|
793
793
|
*/ declare function F(t: any, ...e: any[]): void;
|
|
@@ -884,7 +884,7 @@ declare function Sa(t: any, e: any, n: any, s?: {}): void;
|
|
|
884
884
|
/**
|
|
885
885
|
* Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
|
|
886
886
|
* {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
|
|
887
|
-
*/ declare function Nh():
|
|
887
|
+
*/ declare function Nh(): yu;
|
|
888
888
|
/**
|
|
889
889
|
* Disables network usage for this instance. It can be re-enabled via {@link
|
|
890
890
|
* enableNetwork}. While the network is disabled, any snapshot listeners,
|
|
@@ -1016,14 +1016,14 @@ declare function _h(t: any): Promise<Lu>;
|
|
|
1016
1016
|
*
|
|
1017
1017
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1018
1018
|
* current document contents.
|
|
1019
|
-
*/ declare function
|
|
1019
|
+
*/ declare function yh(t: any): Promise<Lu>;
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Reads the document referred to by this `DocumentReference` from the server.
|
|
1022
1022
|
* Returns an error if the network is not available.
|
|
1023
1023
|
*
|
|
1024
1024
|
* @returns A `Promise` resolved with a `DocumentSnapshot` containing the
|
|
1025
1025
|
* current document contents.
|
|
1026
|
-
*/ declare function
|
|
1026
|
+
*/ declare function gh(t: any): Promise<Lu>;
|
|
1027
1027
|
/**
|
|
1028
1028
|
* Executes the query and returns the results as a `QuerySnapshot`.
|
|
1029
1029
|
*
|
|
@@ -1414,16 +1414,16 @@ declare function Ah(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1414
1414
|
* See the License for the specific language governing permissions and
|
|
1415
1415
|
* limitations under the License.
|
|
1416
1416
|
*/ declare class Fa {
|
|
1417
|
-
|
|
1417
|
+
gc: Promise<void>;
|
|
1418
|
+
Tc: any[];
|
|
1419
|
+
Ec: boolean;
|
|
1418
1420
|
Ic: any[];
|
|
1419
|
-
Ac:
|
|
1420
|
-
Rc:
|
|
1421
|
-
bc:
|
|
1422
|
-
Pc:
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
wr: co;
|
|
1426
|
-
Sc: () => void;
|
|
1421
|
+
Ac: any;
|
|
1422
|
+
Rc: boolean;
|
|
1423
|
+
bc: boolean;
|
|
1424
|
+
Pc: any[];
|
|
1425
|
+
lr: co;
|
|
1426
|
+
vc: () => void;
|
|
1427
1427
|
get isShuttingDown(): boolean;
|
|
1428
1428
|
/**
|
|
1429
1429
|
* Adds a new operation to the queue without waiting for it to complete (i.e.
|
|
@@ -1436,30 +1436,30 @@ declare function Ah(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1436
1436
|
/**
|
|
1437
1437
|
* Runs the next operation from the retryable queue. If the operation fails,
|
|
1438
1438
|
* reschedules with backoff.
|
|
1439
|
-
*/
|
|
1440
|
-
|
|
1439
|
+
*/ Dc(): Promise<void>;
|
|
1440
|
+
Sc(t: any): Promise<any>;
|
|
1441
1441
|
enqueueAfterDelay(t: any, e: any, n: any): Ko;
|
|
1442
|
-
|
|
1442
|
+
Vc(): void;
|
|
1443
1443
|
verifyOperationInProgress(): void;
|
|
1444
1444
|
/**
|
|
1445
1445
|
* Waits until all currently queued tasks are finished executing. Delayed
|
|
1446
1446
|
* operations are not run.
|
|
1447
|
-
*/
|
|
1447
|
+
*/ Nc(): Promise<void>;
|
|
1448
1448
|
/**
|
|
1449
1449
|
* For Tests: Determine if a delayed operation with a particular TimerId
|
|
1450
1450
|
* exists.
|
|
1451
|
-
*/
|
|
1451
|
+
*/ kc(t: any): boolean;
|
|
1452
1452
|
/**
|
|
1453
1453
|
* For Tests: Runs some or all delayed operations early.
|
|
1454
1454
|
*
|
|
1455
1455
|
* @param lastTimerId - Delayed operations up to and including this TimerId
|
|
1456
1456
|
* will be drained. Pass TimerId.All to run all delayed operations.
|
|
1457
1457
|
* @returns a Promise that resolves once all operations have been run.
|
|
1458
|
-
*/
|
|
1458
|
+
*/ xc(t: any): Promise<void>;
|
|
1459
1459
|
/**
|
|
1460
1460
|
* For Tests: Skip all subsequent delays for a timer id.
|
|
1461
|
-
*/
|
|
1462
|
-
/** Called once a DelayedOperation is run or canceled. */
|
|
1461
|
+
*/ $c(t: any): void;
|
|
1462
|
+
/** Called once a DelayedOperation is run or canceled. */ Cc(t: any): void;
|
|
1463
1463
|
}
|
|
1464
1464
|
import { FirebaseError as a } from "@firebase/util/dist/src/errors";
|
|
1465
1465
|
/**
|
|
@@ -1489,8 +1489,8 @@ import { FirebaseError as a } from "@firebase/util/dist/src/errors";
|
|
|
1489
1489
|
constructor(t: any, e: any, n: any);
|
|
1490
1490
|
databaseId: any;
|
|
1491
1491
|
ignoreUndefinedProperties: any;
|
|
1492
|
-
|
|
1493
|
-
/** Creates a new top-level parse context. */
|
|
1492
|
+
O: any;
|
|
1493
|
+
/** Creates a new top-level parse context. */ Gc(t: any, e: any, n: any, s?: boolean): du;
|
|
1494
1494
|
}
|
|
1495
1495
|
declare class Z {
|
|
1496
1496
|
constructor(t: any);
|
|
@@ -1540,63 +1540,63 @@ declare class dt {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
declare class Eu extends cu {
|
|
1542
1542
|
constructor(t: any, e: any);
|
|
1543
|
-
|
|
1544
|
-
_toFieldTransform(t: any):
|
|
1543
|
+
zc: any;
|
|
1544
|
+
_toFieldTransform(t: any): Xe;
|
|
1545
1545
|
isEqual(t: any): boolean;
|
|
1546
1546
|
}
|
|
1547
1547
|
declare class Tu extends cu {
|
|
1548
1548
|
constructor(t: any, e: any);
|
|
1549
|
-
|
|
1550
|
-
_toFieldTransform(t: any):
|
|
1549
|
+
zc: any;
|
|
1550
|
+
_toFieldTransform(t: any): Xe;
|
|
1551
1551
|
isEqual(t: any): boolean;
|
|
1552
1552
|
}
|
|
1553
|
-
declare class
|
|
1553
|
+
declare class yu extends cu {
|
|
1554
1554
|
_toFieldTransform(t: any): null;
|
|
1555
1555
|
isEqual(t: any): boolean;
|
|
1556
1556
|
}
|
|
1557
1557
|
declare class sh extends Qu {
|
|
1558
1558
|
constructor(t: any, e: any, n: any);
|
|
1559
1559
|
type: any;
|
|
1560
|
-
|
|
1561
|
-
|
|
1560
|
+
na: any;
|
|
1561
|
+
sa: any;
|
|
1562
1562
|
_apply(t: any): Ca;
|
|
1563
1563
|
}
|
|
1564
1564
|
declare class Iu extends cu {
|
|
1565
1565
|
constructor(t: any, e: any);
|
|
1566
|
-
|
|
1567
|
-
_toFieldTransform(t: any):
|
|
1566
|
+
Hc: any;
|
|
1567
|
+
_toFieldTransform(t: any): Xe;
|
|
1568
1568
|
isEqual(t: any): boolean;
|
|
1569
1569
|
}
|
|
1570
1570
|
declare class Yu extends Qu {
|
|
1571
1571
|
constructor(t: any, e: any, n: any);
|
|
1572
1572
|
type: any;
|
|
1573
|
-
|
|
1574
|
-
|
|
1573
|
+
ta: any;
|
|
1574
|
+
ea: any;
|
|
1575
1575
|
_apply(t: any): Ca;
|
|
1576
1576
|
}
|
|
1577
1577
|
declare class Hu extends Qu {
|
|
1578
1578
|
constructor(t: any, e: any);
|
|
1579
|
-
|
|
1580
|
-
|
|
1579
|
+
Jc: any;
|
|
1580
|
+
Zc: any;
|
|
1581
1581
|
type: string;
|
|
1582
1582
|
_apply(t: any): Ca;
|
|
1583
1583
|
}
|
|
1584
1584
|
declare class pu extends cu {
|
|
1585
|
-
_toFieldTransform(t: any):
|
|
1585
|
+
_toFieldTransform(t: any): Xe;
|
|
1586
1586
|
isEqual(t: any): boolean;
|
|
1587
1587
|
}
|
|
1588
1588
|
declare class th extends Qu {
|
|
1589
1589
|
constructor(t: any, e: any, n: any);
|
|
1590
1590
|
type: any;
|
|
1591
|
-
|
|
1592
|
-
|
|
1591
|
+
na: any;
|
|
1592
|
+
sa: any;
|
|
1593
1593
|
_apply(t: any): Ca;
|
|
1594
1594
|
}
|
|
1595
1595
|
declare class Gu extends Qu {
|
|
1596
1596
|
constructor(t: any, e: any, n: any);
|
|
1597
|
+
Jc: any;
|
|
1598
|
+
Yc: any;
|
|
1597
1599
|
Xc: any;
|
|
1598
|
-
Zc: any;
|
|
1599
|
-
ta: any;
|
|
1600
1600
|
type: string;
|
|
1601
1601
|
_apply(t: any): Ca;
|
|
1602
1602
|
}
|
|
@@ -1647,15 +1647,15 @@ declare class va {
|
|
|
1647
1647
|
*/
|
|
1648
1648
|
declare class co {
|
|
1649
1649
|
constructor(t: any, e: any, n?: number, s?: number, i?: number);
|
|
1650
|
-
|
|
1650
|
+
Le: any;
|
|
1651
1651
|
timerId: any;
|
|
1652
|
+
zi: number;
|
|
1653
|
+
Hi: number;
|
|
1652
1654
|
Ji: number;
|
|
1653
1655
|
Yi: number;
|
|
1654
|
-
Xi:
|
|
1655
|
-
Zi: number;
|
|
1656
|
-
tr: any;
|
|
1656
|
+
Xi: any;
|
|
1657
1657
|
/** The last backoff attempt, as epoch milliseconds. */
|
|
1658
|
-
|
|
1658
|
+
Zi: number;
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Resets the backoff delay.
|
|
1661
1661
|
*
|
|
@@ -1666,15 +1666,15 @@ declare class co {
|
|
|
1666
1666
|
/**
|
|
1667
1667
|
* Resets the backoff delay to the maximum delay (e.g. for use after a
|
|
1668
1668
|
* RESOURCE_EXHAUSTED error).
|
|
1669
|
-
*/
|
|
1669
|
+
*/ tr(): void;
|
|
1670
1670
|
/**
|
|
1671
1671
|
* Returns a promise that resolves after currentDelayMs, and increases the
|
|
1672
1672
|
* delay for any subsequent attempts. If there was a pending backoff operation
|
|
1673
1673
|
* already, it will be canceled.
|
|
1674
|
-
*/
|
|
1675
|
-
|
|
1674
|
+
*/ er(t: any): void;
|
|
1675
|
+
sr(): void;
|
|
1676
1676
|
cancel(): void;
|
|
1677
|
-
/** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */
|
|
1677
|
+
/** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */ nr(): number;
|
|
1678
1678
|
}
|
|
1679
1679
|
/**
|
|
1680
1680
|
* @license
|
|
@@ -1767,20 +1767,20 @@ declare class Ko {
|
|
|
1767
1767
|
constructor(t: any, e: any, n: any, s: any, i: any, r: any);
|
|
1768
1768
|
settings: any;
|
|
1769
1769
|
databaseId: any;
|
|
1770
|
-
|
|
1770
|
+
O: any;
|
|
1771
1771
|
ignoreUndefinedProperties: any;
|
|
1772
1772
|
fieldTransforms: any;
|
|
1773
1773
|
fieldMask: any;
|
|
1774
1774
|
get path(): any;
|
|
1775
|
-
get
|
|
1776
|
-
/** Returns a new context with the specified settings overwritten. */
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1775
|
+
get Mc(): any;
|
|
1776
|
+
/** Returns a new context with the specified settings overwritten. */ Fc(t: any): du;
|
|
1777
|
+
Lc(t: any): du;
|
|
1778
|
+
qc(t: any): du;
|
|
1779
|
+
Kc(t: any): du;
|
|
1780
|
+
jc(t: any): Q;
|
|
1781
1781
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1782
|
-
|
|
1783
|
-
|
|
1782
|
+
Oc(): void;
|
|
1783
|
+
Uc(t: any): void;
|
|
1784
1784
|
}
|
|
1785
1785
|
/**
|
|
1786
1786
|
* @license
|
|
@@ -1798,9 +1798,9 @@ declare class Ko {
|
|
|
1798
1798
|
* See the License for the specific language governing permissions and
|
|
1799
1799
|
* limitations under the License.
|
|
1800
1800
|
*/
|
|
1801
|
-
/** A field path and the TransformOperation to perform upon it. */ declare class
|
|
1801
|
+
/** A field path and the TransformOperation to perform upon it. */ declare class Xe {
|
|
1802
1802
|
constructor(t: any, e: any);
|
|
1803
1803
|
field: any;
|
|
1804
1804
|
transform: any;
|
|
1805
1805
|
}
|
|
1806
|
-
export { hh as AbstractUserDataWriter, ou as Bytes, Ua as CACHE_SIZE_UNLIMITED, Na as CollectionReference, Da as DocumentReference, Lu as DocumentSnapshot, iu as FieldPath, cu as FieldValue, qa as Firestore, Q as FirestoreError, au as GeoPoint, Ba as LoadBundleTask, Ca as Query, Qu as QueryConstraint, Bu as QueryDocumentSnapshot, Uu as QuerySnapshot, Fu as SnapshotMetadata, at as Timestamp, Dh as Transaction, dh as WriteBatch, Vt as _DatabaseId, Nt as _DocumentKey, et as _EmptyAppCheckTokenProvider, z as _EmptyAuthCredentialsProvider, mt as _FieldPath, ba as _cast, q as _debugAssert,
|
|
1806
|
+
export { hh as AbstractUserDataWriter, ou as Bytes, Ua as CACHE_SIZE_UNLIMITED, Na as CollectionReference, Da as DocumentReference, Lu as DocumentSnapshot, iu as FieldPath, cu as FieldValue, qa as Firestore, Q as FirestoreError, au as GeoPoint, Ba as LoadBundleTask, Ca as Query, Qu as QueryConstraint, Bu as QueryDocumentSnapshot, Uu as QuerySnapshot, Fu as SnapshotMetadata, at as Timestamp, Dh as Transaction, dh as WriteBatch, Vt as _DatabaseId, Nt as _DocumentKey, et as _EmptyAppCheckTokenProvider, z as _EmptyAuthCredentialsProvider, mt as _FieldPath, ba as _cast, q as _debugAssert, gt as _isBase64Available, F as _logWarn, Fh as _setIndexConfiguration, Ea as _validateIsNotUsedTogether, bh as addDoc, $h as arrayRemove, xh as arrayUnion, Ja as clearIndexedDbPersistence, ka as collection, xa as collectionGroup, Sa as connectFirestoreEmulator, Rh as deleteDoc, Nh as deleteField, Za as disableNetwork, $a as doc, ru as documentId, Ga as enableIndexedDbPersistence, za as enableMultiTabIndexedDbPersistence, Xa as enableNetwork, rh as endAt, ih as endBefore, Qa as ensureFirestoreConfigured, Vh as executeWrite, _h as getDoc, yh as getDocFromCache, gh as getDocFromServer, ph as getDocs, Th as getDocsFromCache, Eh as getDocsFromServer, ja as getFirestore, Oh as increment, Ka as initializeFirestore, Xu as limit, Zu as limitToLast, eu as loadBundle, nu as namedQuery, Ph as onSnapshot, vh as onSnapshotsInSync, Ju as orderBy, Wu as query, Ma as queryEqual, Oa as refEqual, Ch as runTransaction, kh as serverTimestamp, Ih as setDoc, $ as setLogLevel, Ku as snapshotEqual, nh as startAfter, eh as startAt, tu as terminate, Ah as updateDoc, Ya as waitForPendingWrites, zu as where, Mh as writeBatch };
|
|
@@ -176,10 +176,9 @@ export declare class ArrayContainsAnyFilter extends FieldFilter {
|
|
|
176
176
|
*/
|
|
177
177
|
export declare class Bound {
|
|
178
178
|
readonly position: ProtoValue[];
|
|
179
|
-
readonly
|
|
180
|
-
constructor(position: ProtoValue[],
|
|
179
|
+
readonly inclusive: boolean;
|
|
180
|
+
constructor(position: ProtoValue[], inclusive: boolean);
|
|
181
181
|
}
|
|
182
|
-
export declare function canonifyBound(bound: Bound): string;
|
|
183
182
|
/**
|
|
184
183
|
* An ordering on a field, in some Direction. Direction defaults to ASCENDING.
|
|
185
184
|
*/
|
|
@@ -191,9 +190,14 @@ export declare class OrderBy {
|
|
|
191
190
|
export declare function canonifyOrderBy(orderBy: OrderBy): string;
|
|
192
191
|
export declare function stringifyOrderBy(orderBy: OrderBy): string;
|
|
193
192
|
export declare function orderByEquals(left: OrderBy, right: OrderBy): boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Returns true if a document sorts after a bound using the provided sort
|
|
195
|
+
* order.
|
|
196
|
+
*/
|
|
197
|
+
export declare function boundSortsAfterDocument(bound: Bound, orderBy: OrderBy[], doc: Document): boolean;
|
|
194
198
|
/**
|
|
195
199
|
* Returns true if a document sorts before a bound using the provided sort
|
|
196
200
|
* order.
|
|
197
201
|
*/
|
|
198
|
-
export declare function
|
|
202
|
+
export declare function boundSortsBeforeDocument(bound: Bound, orderBy: OrderBy[], doc: Document): boolean;
|
|
199
203
|
export declare function boundEquals(left: Bound | null, right: Bound | null): boolean;
|
|
@@ -196,8 +196,8 @@ export declare function newQueryOrderBy(query: InternalQuery, fieldPath: Interna
|
|
|
196
196
|
* of the query or if any of the fields in the order by are an uncommitted
|
|
197
197
|
* server timestamp.
|
|
198
198
|
*/
|
|
199
|
-
export declare function newQueryBoundFromDocument(query: InternalQuery, databaseId: DatabaseId, methodName: string, doc: Document | null,
|
|
199
|
+
export declare function newQueryBoundFromDocument(query: InternalQuery, databaseId: DatabaseId, methodName: string, doc: Document | null, inclusive: boolean): Bound;
|
|
200
200
|
/**
|
|
201
201
|
* Converts a list of field values to a `Bound` for the given query.
|
|
202
202
|
*/
|
|
203
|
-
export declare function newQueryBoundFromFields(query: InternalQuery, databaseId: DatabaseId, dataReader: UserDataReader, methodName: string, values: unknown[],
|
|
203
|
+
export declare function newQueryBoundFromFields(query: InternalQuery, databaseId: DatabaseId, dataReader: UserDataReader, methodName: string, values: unknown[], inclusive: boolean): Bound;
|