@@ -12,14 +12,11 @@ import { LogLevelString } from '@firebase/logger';
1212import { Provider } from ' @firebase/component' ;
1313
1414// @public (undocumented)
15- export const CacheOnly = " cacheOnly" ;
16-
17- // @public
1815export interface CacheSettings {
1916 // (undocumented)
20- maxSizeBytes : number ;
17+ cacheProvider ? : IndexedDBStub < StorageType > ;
2118 // (undocumented)
22- storage : DataConnectStorage ;
19+ maxSizeBytes ? : number ;
2320}
2421
2522// @public
@@ -126,9 +123,6 @@ export interface DataConnectSettings {
126123 cacheSettings? : CacheSettings ;
127124}
128125
129- // @public (undocumented)
130- export type DataConnectStorage = typeof Memory | typeof Persistent ;
131-
132126// @public
133127export interface DataConnectSubscription <Data , Variables > {
134128 // (undocumented)
@@ -167,7 +161,13 @@ export function getDataConnect(app: FirebaseApp, connectorConfig: ConnectorConfi
167161export function getDataConnect(app : FirebaseApp , connectorConfig : ConnectorConfig , settings : DataConnectSettings ): DataConnect ;
168162
169163// @public (undocumented)
170- export const Memory = " memory" ;
164+ export class IndexedDBStub {
165+ // (undocumented)
166+ type: ' PERSISTENT' ;
167+ }
168+
169+ // @public (undocumented)
170+ export function makeMemoryCacheProvider(): IndexedDBStub <' MEMORY' >;
171171
172172// @public (undocumented)
173173export const MUTATION_STR = " mutation" ;
@@ -226,16 +226,23 @@ export interface OpResult<Data> {
226226}
227227
228228// @public (undocumented)
229- export const Persistent = " persistent " ;
230-
231- // @public (undocumented)
232- export const PreferCache = " preferCache " ;
229+ export class PersistentStub {
230+ // (undocumented)
231+ type : ' MEMORY ' ;
232+ }
233233
234234// @public (undocumented)
235235export const QUERY_STR = " query" ;
236236
237+ // @public
238+ export const QueryFetchPolicy: {
239+ PREFER_CACHE: string ;
240+ CACHE_ONLY: string ;
241+ SERVER_ONLY: string ;
242+ };
243+
237244// @public (undocumented)
238- export type QueryFetchPolicy = typeof PreferCache | typeof CacheOnly | typeof ServerOnly ;
245+ export type QueryFetchPolicy = ( typeof QueryFetchPolicy )[ keyof typeof QueryFetchPolicy ] ;
239246
240247// @public
241248export interface QueryPromise <Data , Variables > extends Promise <QueryResult <Data , Variables >> {
@@ -283,9 +290,6 @@ export interface SerializedRef<Data, Variables> extends OpResult<Data> {
283290 refInfo: RefInfo <Variables >;
284291}
285292
286- // @public (undocumented)
287- export const ServerOnly = " serverOnly" ;
288-
289293// @public (undocumented)
290294export function setLogLevel(logLevel : LogLevelString ): void ;
291295
@@ -295,6 +299,14 @@ export const SOURCE_CACHE = "CACHE";
295299// @public (undocumented)
296300export const SOURCE_SERVER = " SERVER" ;
297301
302+ // @public (undocumented)
303+ export const StorageType: {
304+ MEMORY: string ;
305+ };
306+
307+ // @public (undocumented)
308+ export type StorageType = (typeof StorageType )[keyof typeof StorageType ];
309+
298310// @public
299311export function subscribe<Data , Variables >(queryRefOrSerializedResult : QueryRef <Data , Variables > | SerializedRef <Data , Variables >, observer : SubscriptionOptions <Data , Variables >): QueryUnsubscribe ;
300312
0 commit comments