react-native-mosquito-transport
Version:
React native javascript sdk for mosquito-transport (https://github.com/brainbehindx/mosquito-transport)
58 lines (56 loc) • 1.41 kB
JavaScript
export const Scoped = {
serverTimeOffset: undefined,
PendingIte: 0,
AnyProcessIte: 0,
IS_CONNECTED: {},
IS_TOKEN_READY: {},
InitializedProject: {},
ReleaseCacheData: undefined,
AuthJWTToken: {},
IsStoreReady: false,
TokenRefreshTimer: {},
LastTokenRefreshRef: {},
StorageProcessID: 0,
InitiatedForcedToken: {},
PendingFetchCollective: {},
PendingDbReadCollective: {},
ActiveDatabaseListeners: {},
OutgoingWrites: {},
/**
* @type {Promise<any> | undefined}
*/
dispatchingWritesPromise: {},
linearFsProcess: {
database: {},
dbQueryCount: {},
httpFetch: {}
}
};
export const CacheStore = {
DatabaseStore: {},
DatabaseCountResult: {},
DatabaseStats: {
/**
* @type {{[projectUrl: string]: {[dbUrl: string]: {[dbName: string]: {[path: string]: number}}}}}
*/
database: {},
/**
* @type {{[projectUrl: string]: {[dbUrl: string]: {[dbName: string]: {[path: string]: boolean}}}}}
*/
counters: {},
/**
* @type {{[projectUrl: string]: number}}
*/
fetchers: {},
_db_size: 0,
_fetcher_size: 0
},
AuthStore: {},
PendingAuthPurge: {},
/**
* [the instance url]: the url been emulated
*/
EmulatedAuth: {},
PendingWrites: {},
FetchedStore: {}
};