Skip to content

Commit e1b2221

Browse files
committed
firestore.api.md updated
1 parent b75239f commit e1b2221

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

common/api-review/firestore.api.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ export function connectFirestoreEmulator(firestore: Firestore, host: string, por
101101
mockUserToken?: EmulatorMockTokenOptions | string;
102102
}): void;
103103

104+
// @public
105+
export function deleteAllPersistentCacheIndexes(indexManager: PersistentCacheIndexManager): void;
106+
104107
// @public
105108
export function deleteDoc<AppModelType, DbModelType extends DocumentData>(reference: DocumentReference<AppModelType, DbModelType>): Promise<void>;
106109

@@ -110,6 +113,9 @@ export function deleteField(): FieldValue;
110113
// @public
111114
export function disableNetwork(firestore: Firestore): Promise<void>;
112115

116+
// @public
117+
export function disablePersistentCacheIndexAutoCreation(indexManager: PersistentCacheIndexManager): void;
118+
113119
// @public
114120
export function doc(firestore: Firestore, path: string, ...pathSegments: string[]): DocumentReference<DocumentData, DocumentData>;
115121

@@ -172,6 +178,9 @@ export function enableMultiTabIndexedDbPersistence(firestore: Firestore): Promis
172178
// @public
173179
export function enableNetwork(firestore: Firestore): Promise<void>;
174180

181+
// @public
182+
export function enablePersistentCacheIndexAutoCreation(indexManager: PersistentCacheIndexManager): void;
183+
175184
// @public
176185
export function endAt<AppModelType, DbModelType extends DocumentData>(snapshot: DocumentSnapshot<AppModelType, DbModelType>): QueryEndAtConstraint;
177186

@@ -286,25 +295,28 @@ export function getFirestore(): Firestore;
286295
// @beta
287296
export function getFirestore(app: FirebaseApp, databaseId: string): Firestore;
288297

298+
// @public
299+
export function getPersistentCacheIndexManager(firestore: Firestore): PersistentCacheIndexManager | null;
300+
289301
// @public
290302
export function increment(n: number): FieldValue;
291303

292-
// @beta
304+
// @beta @deprecated
293305
export interface Index {
294306
// (undocumented)
295307
[key: string]: unknown;
296308
readonly collectionGroup: string;
297309
readonly fields?: IndexField[];
298310
}
299311

300-
// @beta
312+
// @beta @deprecated
301313
export interface IndexConfiguration {
302314
// (undocumented)
303315
[key: string]: unknown;
304316
readonly indexes?: Index[];
305317
}
306318

307-
// @beta
319+
// @beta @deprecated
308320
export interface IndexField {
309321
// (undocumented)
310322
[key: string]: unknown;
@@ -457,6 +469,11 @@ export interface PersistenceSettings {
457469
forceOwnership?: boolean;
458470
}
459471

472+
// @public
473+
export class PersistentCacheIndexManager {
474+
readonly type: 'PersistentCacheIndexManager';
475+
}
476+
460477
// @public
461478
export interface PersistentCacheSettings {
462479
cacheSizeBytes?: number;
@@ -596,10 +613,10 @@ export function setDoc<AppModelType, DbModelType extends DocumentData>(reference
596613
// @public
597614
export function setDoc<AppModelType, DbModelType extends DocumentData>(reference: DocumentReference<AppModelType, DbModelType>, data: PartialWithFieldValue<AppModelType>, options: SetOptions): Promise<void>;
598615

599-
// @beta
616+
// @beta @deprecated
600617
export function setIndexConfiguration(firestore: Firestore, configuration: IndexConfiguration): Promise<void>;
601618

602-
// @beta
619+
// @beta @deprecated
603620
export function setIndexConfiguration(firestore: Firestore, json: string): Promise<void>;
604621

605622
// @public

0 commit comments

Comments
 (0)