Interface IOfflineServiceImplementation

interface IOfflineServiceImplementation {
    api: ApisauceInstance;
    clearElementsAndListing: () => Promise<void>;
    getAllKeys: () => Promise<string[]>;
    getElement: (hash: string) => null | DehydratedElement;
    getElementsList: () => Promise<string[]>;
    getItem: <T = string>(key: string) => Promise<T>;
    getListing: (hash: string) => Promise<ElementDataWrapper[]>;
    getLocalElementsList: () => Promise<string[]>;
    initializeStorage: () => Promise<void>;
    removeElement: (hash: string) => Promise<void>;
    removeItem: (key: string) => Promise<void>;
    saveElement: (hash: string, element: DehydratedElement) => Promise<void>;
    saveListing: (hash: string, data: ElementDataWrapper[]) => Promise<void>;
    setItem: <T = string>(key: string, value: T) => Promise<void>;
}

Hierarchy

  • IPlatformService
    • IOfflineServiceImplementation

Properties

clearElementsAndListing: () => Promise<void>
getAllKeys: () => Promise<string[]>
getElement: (hash: string) => null | DehydratedElement
getElementsList: () => Promise<string[]>
getItem: <T = string>(key: string) => Promise<T>
getListing: (hash: string) => Promise<ElementDataWrapper[]>
getLocalElementsList: () => Promise<string[]>
initializeStorage: () => Promise<void>
removeElement: (hash: string) => Promise<void>
removeItem: (key: string) => Promise<void>
saveElement: (hash: string, element: DehydratedElement) => Promise<void>
saveListing: (hash: string, data: ElementDataWrapper[]) => Promise<void>
setItem: <T = string>(key: string, value: T) => Promise<void>