@firebase/firestore 3.4.4-canary.b02927e2e → 3.4.4-canary.e8972ef49
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/index_manager.d.ts +52 -0
- package/dist/firestore/src/local/indexeddb_index_manager.d.ts +11 -0
- package/dist/firestore/src/local/indexeddb_schema.d.ts +121 -7
- package/dist/firestore/src/local/memory_index_manager.d.ts +11 -0
- package/dist/firestore/test/util/helpers.d.ts +1 -1
- package/dist/index.esm2017.js +2501 -2348
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +3212 -3112
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +263 -90
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +263 -90
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +2548 -2391
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +170 -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/index_manager.d.ts +52 -0
- package/dist/lite/firestore/src/local/indexeddb_index_manager.d.ts +11 -0
- package/dist/lite/firestore/src/local/indexeddb_schema.d.ts +121 -7
- package/dist/lite/firestore/src/local/memory_index_manager.d.ts +11 -0
- package/dist/lite/firestore/test/util/helpers.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +346 -343
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +331 -330
- 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 +357 -354
- 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 +97 -97
- 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/index_manager.d.ts +52 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_index_manager.d.ts +11 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_schema.d.ts +121 -7
- package/dist/lite/packages/firestore/src/local/memory_index_manager.d.ts +11 -0
- 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 +79 -79
- 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/index_manager.d.ts +52 -0
- package/dist/packages/firestore/src/local/indexeddb_index_manager.d.ts +11 -0
- package/dist/packages/firestore/src/local/indexeddb_schema.d.ts +121 -7
- package/dist/packages/firestore/src/local/memory_index_manager.d.ts +11 -0
- package/dist/packages/firestore/test/util/helpers.d.ts +1 -1
- package/dist/private.d.ts +170 -2
- package/package.json +9 -9
|
@@ -259,9 +259,9 @@ declare class iu {
|
|
|
259
259
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
260
260
|
*/
|
|
261
261
|
declare class qa extends Va {
|
|
262
|
-
_queue:
|
|
262
|
+
_queue: Ma;
|
|
263
263
|
}
|
|
264
|
-
/** An error returned by a Firestore operation. */ declare class
|
|
264
|
+
/** An error returned by a Firestore operation. */ declare class G extends a {
|
|
265
265
|
/** @hideconstructor */
|
|
266
266
|
constructor(t: any, e: any);
|
|
267
267
|
}
|
|
@@ -320,7 +320,7 @@ declare class qa extends Va {
|
|
|
320
320
|
}
|
|
321
321
|
declare class Ba {
|
|
322
322
|
_progressObserver: {};
|
|
323
|
-
_taskCompletionResolver:
|
|
323
|
+
_taskCompletionResolver: Q;
|
|
324
324
|
_lastProgress: {
|
|
325
325
|
taskState: string;
|
|
326
326
|
totalBytes: number;
|
|
@@ -387,7 +387,7 @@ declare class Ba {
|
|
|
387
387
|
* endBefore:1}, {@link (endAt:1)}, {@link limit} or {@link limitToLast} and
|
|
388
388
|
* can then be passed to {@link query} to create a new query instance that
|
|
389
389
|
* also contains this `QueryConstraint`.
|
|
390
|
-
*/ declare class
|
|
390
|
+
*/ declare class Gu {
|
|
391
391
|
}
|
|
392
392
|
/**
|
|
393
393
|
* A `QueryDocumentSnapshot` contains data read from a document in your
|
|
@@ -413,7 +413,7 @@ declare class Ba {
|
|
|
413
413
|
_firestore: any;
|
|
414
414
|
_userDataWriter: any;
|
|
415
415
|
_snapshot: any;
|
|
416
|
-
metadata:
|
|
416
|
+
metadata: Mu;
|
|
417
417
|
query: any;
|
|
418
418
|
/** An array of all the documents in the `QuerySnapshot`. */ get docs(): any[];
|
|
419
419
|
/** The number of documents in the `QuerySnapshot`. */ get size(): any;
|
|
@@ -455,7 +455,7 @@ declare class Ba {
|
|
|
455
455
|
*/
|
|
456
456
|
/**
|
|
457
457
|
* Metadata about a snapshot, describing the state of the snapshot.
|
|
458
|
-
*/ declare class
|
|
458
|
+
*/ declare class Mu {
|
|
459
459
|
/** @hideconstructor */
|
|
460
460
|
constructor(t: any, e: any);
|
|
461
461
|
hasPendingWrites: any;
|
|
@@ -790,7 +790,7 @@ declare function ba(t: any, e: any): any;
|
|
|
790
790
|
declare function yt(): boolean;
|
|
791
791
|
/**
|
|
792
792
|
* @internal
|
|
793
|
-
*/ declare function
|
|
793
|
+
*/ declare function M(t: any, ...e: any[]): void;
|
|
794
794
|
/**
|
|
795
795
|
* @license
|
|
796
796
|
* Copyright 2021 Google LLC
|
|
@@ -806,7 +806,7 @@ declare function yt(): boolean;
|
|
|
806
806
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
807
807
|
* See the License for the specific language governing permissions and
|
|
808
808
|
* limitations under the License.
|
|
809
|
-
*/ declare function
|
|
809
|
+
*/ declare function Mh(t: any, e: any): Promise<void>;
|
|
810
810
|
/**
|
|
811
811
|
* Validates that two boolean options are not set at the same time.
|
|
812
812
|
* @internal
|
|
@@ -920,7 +920,7 @@ declare function $a(t: any, e: any, ...n: any[]): Da;
|
|
|
920
920
|
* @param persistenceSettings - Optional settings object to configure
|
|
921
921
|
* persistence.
|
|
922
922
|
* @returns A `Promise` that represents successfully enabling persistent storage.
|
|
923
|
-
*/ declare function
|
|
923
|
+
*/ declare function Wa(t: any, e: any): any;
|
|
924
924
|
/**
|
|
925
925
|
* Attempts to enable multi-tab persistent storage, if possible. If enabled
|
|
926
926
|
* across all tabs, all operations share access to local persistence, including
|
|
@@ -953,7 +953,7 @@ declare function rh(...t: any[]): sh;
|
|
|
953
953
|
declare function ih(...t: any[]): sh;
|
|
954
954
|
/**
|
|
955
955
|
* @internal
|
|
956
|
-
*/ declare function
|
|
956
|
+
*/ declare function Ga(t: any): any;
|
|
957
957
|
/**
|
|
958
958
|
* Locally writes `mutations` on the async queue.
|
|
959
959
|
* @internal
|
|
@@ -1142,7 +1142,7 @@ declare function vh(t: any, e: any): () => void;
|
|
|
1142
1142
|
* @param queryConstraints - The list of {@link QueryConstraint}s to apply.
|
|
1143
1143
|
* @throws if any of the provided query constraints cannot be combined with the
|
|
1144
1144
|
* existing or new constraints.
|
|
1145
|
-
*/ declare function
|
|
1145
|
+
*/ declare function Qu(t: any, ...e: any[]): any;
|
|
1146
1146
|
/**
|
|
1147
1147
|
* Returns true if the provided queries point to the same collection and apply
|
|
1148
1148
|
* the same constraints.
|
|
@@ -1151,7 +1151,7 @@ declare function vh(t: any, e: any): () => void;
|
|
|
1151
1151
|
* @param right - A `Query` to compare.
|
|
1152
1152
|
* @returns true if the references point to the same location in the same
|
|
1153
1153
|
* Firestore database.
|
|
1154
|
-
*/ declare function
|
|
1154
|
+
*/ declare function Fa(t: any, e: any): boolean;
|
|
1155
1155
|
/**
|
|
1156
1156
|
* Returns true if the provided references are equal.
|
|
1157
1157
|
*
|
|
@@ -1253,7 +1253,7 @@ declare function Ah(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1253
1253
|
* "<=", "!=").
|
|
1254
1254
|
* @param value - The value for comparison
|
|
1255
1255
|
* @returns The created {@link Query}.
|
|
1256
|
-
*/ declare function zu(t: any, e: any, n: any):
|
|
1256
|
+
*/ declare function zu(t: any, e: any, n: any): Wu;
|
|
1257
1257
|
/**
|
|
1258
1258
|
* @license
|
|
1259
1259
|
* Copyright 2020 Google LLC
|
|
@@ -1280,7 +1280,7 @@ declare function Ah(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1280
1280
|
*
|
|
1281
1281
|
* @returns A {@link WriteBatch} that can be used to atomically execute multiple
|
|
1282
1282
|
* writes.
|
|
1283
|
-
*/ declare function
|
|
1283
|
+
*/ declare function Fh(t: any): dh;
|
|
1284
1284
|
/**
|
|
1285
1285
|
* @license
|
|
1286
1286
|
* Copyright 2020 Google LLC
|
|
@@ -1413,17 +1413,17 @@ declare function Ah(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1413
1413
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1414
1414
|
* See the License for the specific language governing permissions and
|
|
1415
1415
|
* limitations under the License.
|
|
1416
|
-
*/ declare class
|
|
1417
|
-
|
|
1418
|
-
|
|
1416
|
+
*/ declare class Ma {
|
|
1417
|
+
mc: Promise<void>;
|
|
1418
|
+
gc: any[];
|
|
1419
|
+
yc: boolean;
|
|
1420
|
+
Tc: any[];
|
|
1421
|
+
Ec: any;
|
|
1422
|
+
Ic: boolean;
|
|
1419
1423
|
Ac: boolean;
|
|
1420
1424
|
Rc: any[];
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
vc: boolean;
|
|
1424
|
-
Vc: any[];
|
|
1425
|
-
wr: co;
|
|
1426
|
-
Sc: () => void;
|
|
1425
|
+
ur: co;
|
|
1426
|
+
bc: () => 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
|
+
*/ Vc(): Promise<void>;
|
|
1440
|
+
vc(t: any): Promise<any>;
|
|
1441
1441
|
enqueueAfterDelay(t: any, e: any, n: any): Ko;
|
|
1442
|
-
|
|
1442
|
+
Pc(): 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
|
+
*/ Dc(): Promise<void>;
|
|
1448
1448
|
/**
|
|
1449
1449
|
* For Tests: Determine if a delayed operation with a particular TimerId
|
|
1450
1450
|
* exists.
|
|
1451
|
-
*/
|
|
1451
|
+
*/ Cc(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
|
+
*/ Nc(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
|
+
*/ kc(t: any): void;
|
|
1462
|
+
/** Called once a DelayedOperation is run or canceled. */ Sc(t: any): void;
|
|
1463
1463
|
}
|
|
1464
1464
|
import { FirebaseError as a } from "@firebase/util/dist/src/errors";
|
|
1465
1465
|
/**
|
|
@@ -1477,7 +1477,7 @@ import { FirebaseError as a } from "@firebase/util/dist/src/errors";
|
|
|
1477
1477
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1478
1478
|
* See the License for the specific language governing permissions and
|
|
1479
1479
|
* limitations under the License.
|
|
1480
|
-
*/ declare class
|
|
1480
|
+
*/ declare class Q {
|
|
1481
1481
|
promise: Promise<any>;
|
|
1482
1482
|
resolve: (value: any) => void;
|
|
1483
1483
|
reject: (reason?: any) => void;
|
|
@@ -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
|
+
k: 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
|
+
Qc: 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
|
+
Qc: any;
|
|
1550
|
+
_toFieldTransform(t: any): Xe;
|
|
1551
1551
|
isEqual(t: any): boolean;
|
|
1552
1552
|
}
|
|
1553
1553
|
declare class gu extends cu {
|
|
1554
1554
|
_toFieldTransform(t: any): null;
|
|
1555
1555
|
isEqual(t: any): boolean;
|
|
1556
1556
|
}
|
|
1557
|
-
declare class sh extends
|
|
1557
|
+
declare class sh extends Gu {
|
|
1558
1558
|
constructor(t: any, e: any, n: any);
|
|
1559
1559
|
type: any;
|
|
1560
|
-
|
|
1561
|
-
|
|
1560
|
+
ta: any;
|
|
1561
|
+
ea: 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
|
+
Wc: any;
|
|
1567
|
+
_toFieldTransform(t: any): Xe;
|
|
1568
1568
|
isEqual(t: any): boolean;
|
|
1569
1569
|
}
|
|
1570
|
-
declare class Yu extends
|
|
1570
|
+
declare class Yu extends Gu {
|
|
1571
1571
|
constructor(t: any, e: any, n: any);
|
|
1572
1572
|
type: any;
|
|
1573
|
-
|
|
1574
|
-
|
|
1573
|
+
Xc: any;
|
|
1574
|
+
Zc: any;
|
|
1575
1575
|
_apply(t: any): Ca;
|
|
1576
1576
|
}
|
|
1577
|
-
declare class Hu extends
|
|
1577
|
+
declare class Hu extends Gu {
|
|
1578
1578
|
constructor(t: any, e: any);
|
|
1579
|
-
|
|
1580
|
-
|
|
1579
|
+
zc: any;
|
|
1580
|
+
Yc: 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
|
-
declare class th extends
|
|
1588
|
+
declare class th extends Gu {
|
|
1589
1589
|
constructor(t: any, e: any, n: any);
|
|
1590
1590
|
type: any;
|
|
1591
|
-
|
|
1592
|
-
|
|
1591
|
+
ta: any;
|
|
1592
|
+
ea: any;
|
|
1593
1593
|
_apply(t: any): Ca;
|
|
1594
1594
|
}
|
|
1595
|
-
declare class
|
|
1595
|
+
declare class Wu extends Gu {
|
|
1596
1596
|
constructor(t: any, e: any, n: any);
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1597
|
+
zc: any;
|
|
1598
|
+
Hc: any;
|
|
1599
|
+
Jc: 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
|
+
Fe: any;
|
|
1651
1651
|
timerId: any;
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1652
|
+
Qi: number;
|
|
1653
|
+
Wi: number;
|
|
1654
|
+
zi: number;
|
|
1655
|
+
Hi: number;
|
|
1656
|
+
Ji: any;
|
|
1657
1657
|
/** The last backoff attempt, as epoch milliseconds. */
|
|
1658
|
-
|
|
1658
|
+
Yi: 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
|
+
*/ Xi(): 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
|
+
*/ Zi(t: any): void;
|
|
1675
|
+
er(): 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] */ tr(): number;
|
|
1678
1678
|
}
|
|
1679
1679
|
/**
|
|
1680
1680
|
* @license
|
|
@@ -1724,7 +1724,7 @@ declare class Ko {
|
|
|
1724
1724
|
targetTimeMs: any;
|
|
1725
1725
|
op: any;
|
|
1726
1726
|
removalCallback: any;
|
|
1727
|
-
deferred:
|
|
1727
|
+
deferred: Q;
|
|
1728
1728
|
then: <TResult1 = any, TResult2 = never>(onfulfilled?: ((value: any) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
|
|
1729
1729
|
/**
|
|
1730
1730
|
* Starts the timer. This is called immediately after construction by
|
|
@@ -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
|
+
k: 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. */
|
|
1775
|
+
get $c(): any;
|
|
1776
|
+
/** Returns a new context with the specified settings overwritten. */ Oc(t: any): du;
|
|
1777
|
+
Fc(t: any): du;
|
|
1778
|
+
Bc(t: any): du;
|
|
1777
1779
|
Uc(t: any): du;
|
|
1778
|
-
|
|
1779
|
-
Qc(t: any): du;
|
|
1780
|
-
Wc(t: any): Q;
|
|
1780
|
+
qc(t: any): G;
|
|
1781
1781
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1782
|
-
|
|
1783
|
-
|
|
1782
|
+
xc(): void;
|
|
1783
|
+
Lc(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,
|
|
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, G as FirestoreError, au as GeoPoint, Ba as LoadBundleTask, Ca as Query, Gu as QueryConstraint, Bu as QueryDocumentSnapshot, Uu as QuerySnapshot, Mu 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, yt as _isBase64Available, M as _logWarn, Mh 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, Wa as enableIndexedDbPersistence, za as enableMultiTabIndexedDbPersistence, Xa as enableNetwork, rh as endAt, ih as endBefore, Ga as ensureFirestoreConfigured, Vh as executeWrite, _h as getDoc, gh as getDocFromCache, yh 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, Qu as query, Fa 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, Fh 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;
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
import { Target } from '../core/target';
|
|
18
|
+
import { DocumentKeySet, DocumentMap } from '../model/collections';
|
|
19
|
+
import { FieldIndex, IndexOffset } from '../model/field_index';
|
|
17
20
|
import { ResourcePath } from '../model/path';
|
|
18
21
|
import { PersistencePromise } from './persistence_promise';
|
|
19
22
|
import { PersistenceTransaction } from './persistence_transaction';
|
|
@@ -40,4 +43,53 @@ export interface IndexManager {
|
|
|
40
43
|
* path for a root-level collection).
|
|
41
44
|
*/
|
|
42
45
|
getCollectionParents(transaction: PersistenceTransaction, collectionId: string): PersistencePromise<ResourcePath[]>;
|
|
46
|
+
/**
|
|
47
|
+
* Adds a field path index.
|
|
48
|
+
*
|
|
49
|
+
* Values for this index are persisted via the index backfill, which runs
|
|
50
|
+
* asynchronously in the background. Once the first values are written,
|
|
51
|
+
* an index can be used to serve partial results for any matching queries.
|
|
52
|
+
* Any unindexed portion of the database will continue to be served via
|
|
53
|
+
* collection scons.
|
|
54
|
+
*/
|
|
55
|
+
addFieldIndex(transaction: PersistenceTransaction, index: FieldIndex): PersistencePromise<void>;
|
|
56
|
+
/** Removes the given field index and deletes all index values. */
|
|
57
|
+
deleteFieldIndex(transaction: PersistenceTransaction, index: FieldIndex): PersistencePromise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Returns a list of field indexes that correspond to the specified collection
|
|
60
|
+
* group.
|
|
61
|
+
*
|
|
62
|
+
* @param collectionGroup The collection group to get matching field indexes
|
|
63
|
+
* for.
|
|
64
|
+
* @return A collection of field indexes for the specified collection group.
|
|
65
|
+
*/
|
|
66
|
+
getFieldIndexes(transaction: PersistenceTransaction, collectionGroup: string): PersistencePromise<FieldIndex[]>;
|
|
67
|
+
/** Returns all configured field indexes. */
|
|
68
|
+
getFieldIndexes(transaction: PersistenceTransaction): PersistencePromise<FieldIndex[]>;
|
|
69
|
+
/**
|
|
70
|
+
* Returns an index that can be used to serve the provided target. Returns
|
|
71
|
+
* `null` if no index is configured.
|
|
72
|
+
*/
|
|
73
|
+
getFieldIndex(transaction: PersistenceTransaction, target: Target): PersistencePromise<FieldIndex | null>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the documents that match the given target based on the provided
|
|
76
|
+
* index.
|
|
77
|
+
*/
|
|
78
|
+
getDocumentsMatchingTarget(transaction: PersistenceTransaction, fieldIndex: FieldIndex, target: Target): PersistencePromise<DocumentKeySet>;
|
|
79
|
+
/**
|
|
80
|
+
* Returns the next collection group to update. Returns `null` if no group
|
|
81
|
+
* exists.
|
|
82
|
+
*/
|
|
83
|
+
getNextCollectionGroupToUpdate(transaction: PersistenceTransaction): PersistencePromise<string | null>;
|
|
84
|
+
/**
|
|
85
|
+
* Sets the collection group's latest read time.
|
|
86
|
+
*
|
|
87
|
+
* This method updates the index offset for all field indices for the
|
|
88
|
+
* collection group and increments their sequence number. Subsequent calls to
|
|
89
|
+
* `getNextCollectionGroupToUpdate()` will return a different collection group
|
|
90
|
+
* (unless only one collection group is configured).
|
|
91
|
+
*/
|
|
92
|
+
updateCollectionGroup(transaction: PersistenceTransaction, collectionGroup: string, offset: IndexOffset): PersistencePromise<void>;
|
|
93
|
+
/** Updates the index entries for the provided documents. */
|
|
94
|
+
updateIndexEntries(transaction: PersistenceTransaction, documents: DocumentMap): PersistencePromise<void>;
|
|
43
95
|
}
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
import { Target } from '../core/target';
|
|
18
|
+
import { DocumentKeySet, DocumentMap } from '../model/collections';
|
|
19
|
+
import { FieldIndex, IndexOffset } from '../model/field_index';
|
|
17
20
|
import { ResourcePath } from '../model/path';
|
|
18
21
|
import { IndexManager } from './index_manager';
|
|
19
22
|
import { PersistencePromise } from './persistence_promise';
|
|
@@ -39,4 +42,12 @@ export declare class IndexedDbIndexManager implements IndexManager {
|
|
|
39
42
|
*/
|
|
40
43
|
addToCollectionParentIndex(transaction: PersistenceTransaction, collectionPath: ResourcePath): PersistencePromise<void>;
|
|
41
44
|
getCollectionParents(transaction: PersistenceTransaction, collectionId: string): PersistencePromise<ResourcePath[]>;
|
|
45
|
+
addFieldIndex(transaction: PersistenceTransaction, index: FieldIndex): PersistencePromise<void>;
|
|
46
|
+
deleteFieldIndex(transaction: PersistenceTransaction, index: FieldIndex): PersistencePromise<void>;
|
|
47
|
+
getDocumentsMatchingTarget(transaction: PersistenceTransaction, fieldIndex: FieldIndex, target: Target): PersistencePromise<DocumentKeySet>;
|
|
48
|
+
getFieldIndex(transaction: PersistenceTransaction, target: Target): PersistencePromise<FieldIndex | null>;
|
|
49
|
+
getFieldIndexes(transaction: PersistenceTransaction, collectionGroup?: string): PersistencePromise<FieldIndex[]>;
|
|
50
|
+
getNextCollectionGroupToUpdate(transaction: PersistenceTransaction): PersistencePromise<string | null>;
|
|
51
|
+
updateCollectionGroup(transaction: PersistenceTransaction, collectionGroup: string, offset: IndexOffset): PersistencePromise<void>;
|
|
52
|
+
updateIndexEntries(transaction: PersistenceTransaction, documents: DocumentMap): PersistencePromise<void>;
|
|
42
53
|
}
|