wallet-storage-client
Version:
Client only Wallet Storage
33 lines • 2.03 kB
TypeScript
import { sdk, table } from "../index.client";
import { StorageReader } from "./StorageReader";
/**
* The `StorageSyncReader` non-abstract class must be used when authentication checking access to the methods of a `StorageBaseReader` is required.
*
* Constructed from an `auth` object that must minimally include the authenticated user's identityKey,
* and the `StorageBaseReader` to be protected.
*/
export declare class StorageSyncReader implements sdk.StorageSyncReader {
auth: sdk.AuthId;
storage: StorageReader;
constructor(auth: sdk.AuthId, storage: StorageReader);
isAvailable(): boolean;
makeAvailable(): Promise<table.Settings>;
destroy(): Promise<void>;
getSettings(): table.Settings;
getSyncChunk(args: sdk.RequestSyncChunkArgs): Promise<sdk.SyncChunk>;
findUserByIdentityKey(key: string): Promise<table.User | undefined>;
findSyncStates(args: sdk.FindSyncStatesArgs): Promise<table.SyncState[]>;
findCertificateFields(args: sdk.FindCertificateFieldsArgs): Promise<table.CertificateField[]>;
findCertificates(args: sdk.FindCertificatesArgs): Promise<table.Certificate[]>;
findCommissions(args: sdk.FindCommissionsArgs): Promise<table.Commission[]>;
findOutputBaskets(args: sdk.FindOutputBasketsArgs): Promise<table.OutputBasket[]>;
findOutputs(args: sdk.FindOutputsArgs): Promise<table.Output[]>;
findOutputTags(args: sdk.FindOutputTagsArgs): Promise<table.OutputTag[]>;
findTransactions(args: sdk.FindTransactionsArgs): Promise<table.Transaction[]>;
findTxLabels(args: sdk.FindTxLabelsArgs): Promise<table.TxLabel[]>;
getProvenTxsForUser(args: sdk.FindForUserSincePagedArgs): Promise<table.ProvenTx[]>;
getProvenTxReqsForUser(args: sdk.FindForUserSincePagedArgs): Promise<table.ProvenTxReq[]>;
getTxLabelMapsForUser(args: sdk.FindForUserSincePagedArgs): Promise<table.TxLabelMap[]>;
getOutputTagMapsForUser(args: sdk.FindForUserSincePagedArgs): Promise<table.OutputTagMap[]>;
}
//# sourceMappingURL=StorageSyncReader.d.ts.map