@iqprotocol/abstract-storage
Advanced tools
Comparing version
@@ -13,3 +13,5 @@ import { Account, AccountState, AccountStateChangeResult, StorageProvider } from './types'; | ||
abstract getAccount(id: string): Promise<Account | null>; | ||
abstract deleteAccount(id: string): Promise<boolean>; | ||
abstract getAccountState(serviceId: string, accountId: string): Promise<AccountState | null>; | ||
abstract deleteAccountState(serviceId: string, accountId: string): Promise<boolean>; | ||
protected abstract _saveAccount(account: Account): Promise<Account>; | ||
@@ -16,0 +18,0 @@ protected abstract _initAccountState(accountState: AccountState): Promise<AccountState>; |
@@ -30,2 +30,3 @@ export interface Account { | ||
saveAccount(account: Account): Promise<Account>; | ||
deleteAccount(id: string): Promise<boolean>; | ||
getAccount(id: string): Promise<Account | null>; | ||
@@ -35,3 +36,4 @@ initAccountState(accountState: AccountState): Promise<AccountState>; | ||
getAccountState(serviceId: string, accountId: string): Promise<AccountState | null>; | ||
deleteAccountState(serviceId: string, accountId: string): Promise<boolean>; | ||
} | ||
export {}; |
{ | ||
"name": "@iqprotocol/abstract-storage", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"license": "UNLICENSED", | ||
@@ -21,3 +21,3 @@ "scripts": { | ||
}, | ||
"gitHead": "33a4329d2db14b9aed2b714507abd83bd5d530f9" | ||
"gitHead": "56d7686ea736a089bbc8c270a5a8bbcc82caf57b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
215410
0.34%1608
0.25%