@@ -101,6 +101,9 @@ export function connectFirestoreEmulator(firestore: Firestore, host: string, por
101
101
mockUserToken? : EmulatorMockTokenOptions | string ;
102
102
}): void ;
103
103
104
+ // @public
105
+ export function deleteAllPersistentCacheIndexes(indexManager : PersistentCacheIndexManager ): void ;
106
+
104
107
// @public
105
108
export function deleteDoc<AppModelType , DbModelType extends DocumentData >(reference : DocumentReference <AppModelType , DbModelType >): Promise <void >;
106
109
@@ -110,6 +113,9 @@ export function deleteField(): FieldValue;
110
113
// @public
111
114
export function disableNetwork(firestore : Firestore ): Promise <void >;
112
115
116
+ // @public
117
+ export function disablePersistentCacheIndexAutoCreation(indexManager : PersistentCacheIndexManager ): void ;
118
+
113
119
// @public
114
120
export function doc(firestore : Firestore , path : string , ... pathSegments : string []): DocumentReference <DocumentData , DocumentData >;
115
121
@@ -172,6 +178,9 @@ export function enableMultiTabIndexedDbPersistence(firestore: Firestore): Promis
172
178
// @public
173
179
export function enableNetwork(firestore : Firestore ): Promise <void >;
174
180
181
+ // @public
182
+ export function enablePersistentCacheIndexAutoCreation(indexManager : PersistentCacheIndexManager ): void ;
183
+
175
184
// @public
176
185
export function endAt<AppModelType , DbModelType extends DocumentData >(snapshot : DocumentSnapshot <AppModelType , DbModelType >): QueryEndAtConstraint ;
177
186
@@ -286,25 +295,28 @@ export function getFirestore(): Firestore;
286
295
// @beta
287
296
export function getFirestore(app : FirebaseApp , databaseId : string ): Firestore ;
288
297
298
+ // @public
299
+ export function getPersistentCacheIndexManager(firestore : Firestore ): PersistentCacheIndexManager | null ;
300
+
289
301
// @public
290
302
export function increment(n : number ): FieldValue ;
291
303
292
- // @beta
304
+ // @beta @deprecated
293
305
export interface Index {
294
306
// (undocumented)
295
307
[key : string ]: unknown ;
296
308
readonly collectionGroup: string ;
297
309
readonly fields? : IndexField [];
298
310
}
299
311
300
- // @beta
312
+ // @beta @deprecated
301
313
export interface IndexConfiguration {
302
314
// (undocumented)
303
315
[key : string ]: unknown ;
304
316
readonly indexes? : Index [];
305
317
}
306
318
307
- // @beta
319
+ // @beta @deprecated
308
320
export interface IndexField {
309
321
// (undocumented)
310
322
[key : string ]: unknown ;
@@ -457,6 +469,11 @@ export interface PersistenceSettings {
457
469
forceOwnership? : boolean ;
458
470
}
459
471
472
+ // @public
473
+ export class PersistentCacheIndexManager {
474
+ readonly type: ' PersistentCacheIndexManager' ;
475
+ }
476
+
460
477
// @public
461
478
export interface PersistentCacheSettings {
462
479
cacheSizeBytes? : number ;
@@ -596,10 +613,10 @@ export function setDoc<AppModelType, DbModelType extends DocumentData>(reference
596
613
// @public
597
614
export function setDoc<AppModelType , DbModelType extends DocumentData >(reference : DocumentReference <AppModelType , DbModelType >, data : PartialWithFieldValue <AppModelType >, options : SetOptions ): Promise <void >;
598
615
599
- // @beta
616
+ // @beta @deprecated
600
617
export function setIndexConfiguration(firestore : Firestore , configuration : IndexConfiguration ): Promise <void >;
601
618
602
- // @beta
619
+ // @beta @deprecated
603
620
export function setIndexConfiguration(firestore : Firestore , json : string ): Promise <void >;
604
621
605
622
// @public
0 commit comments