1- import { sdk , table } from '../index.client'
1+ import {
2+ sdk ,
3+ TableCertificate ,
4+ TableCertificateField ,
5+ TableCommission ,
6+ TableOutput ,
7+ TableOutputBasket ,
8+ TableOutputTag ,
9+ TableOutputTagMap ,
10+ TableProvenTx ,
11+ TableProvenTxReq ,
12+ TableSettings ,
13+ TableSyncState ,
14+ TableTransaction ,
15+ TableTxLabel ,
16+ TableTxLabelMap ,
17+ TableUser
18+ } from '../index.client'
219
320/**
421 * This is the minimal interface required for a WalletStorageProvider to export data to another provider.
522 */
623export interface StorageSyncReader {
724 isAvailable ( ) : boolean
8- makeAvailable ( ) : Promise < table . Settings >
25+ makeAvailable ( ) : Promise < TableSettings >
926
1027 destroy ( ) : Promise < void >
1128
@@ -15,37 +32,37 @@ export interface StorageSyncReader {
1532 //
1633 /////////////////
1734
18- getSettings ( ) : table . Settings
35+ getSettings ( ) : TableSettings
1936
20- findUserByIdentityKey ( key : string ) : Promise < table . TableUser | undefined >
37+ findUserByIdentityKey ( key : string ) : Promise < TableUser | undefined >
2138
22- findSyncStates ( args : sdk . FindSyncStatesArgs ) : Promise < table . TableSyncState [ ] >
39+ findSyncStates ( args : sdk . FindSyncStatesArgs ) : Promise < TableSyncState [ ] >
2340
2441 findCertificateFields (
2542 args : sdk . FindCertificateFieldsArgs
26- ) : Promise < table . TableCertificateField [ ] >
27- findCertificates ( args : sdk . FindCertificatesArgs ) : Promise < table . TableCertificate [ ] >
28- findCommissions ( args : sdk . FindCommissionsArgs ) : Promise < table . TableCommission [ ] >
43+ ) : Promise < TableCertificateField [ ] >
44+ findCertificates ( args : sdk . FindCertificatesArgs ) : Promise < TableCertificate [ ] >
45+ findCommissions ( args : sdk . FindCommissionsArgs ) : Promise < TableCommission [ ] >
2946 findOutputBaskets (
3047 args : sdk . FindOutputBasketsArgs
31- ) : Promise < table . TableOutputBasket [ ] >
32- findOutputs ( args : sdk . FindOutputsArgs ) : Promise < table . TableOutput [ ] >
33- findOutputTags ( args : sdk . FindOutputTagsArgs ) : Promise < table . TableOutputTag [ ] >
34- findTransactions ( args : sdk . FindTransactionsArgs ) : Promise < table . TableTransaction [ ] >
35- findTxLabels ( args : sdk . FindTxLabelsArgs ) : Promise < table . TableTxLabel [ ] >
48+ ) : Promise < TableOutputBasket [ ] >
49+ findOutputs ( args : sdk . FindOutputsArgs ) : Promise < TableOutput [ ] >
50+ findOutputTags ( args : sdk . FindOutputTagsArgs ) : Promise < TableOutputTag [ ] >
51+ findTransactions ( args : sdk . FindTransactionsArgs ) : Promise < TableTransaction [ ] >
52+ findTxLabels ( args : sdk . FindTxLabelsArgs ) : Promise < TableTxLabel [ ] >
3653
3754 getProvenTxsForUser (
3855 args : sdk . FindForUserSincePagedArgs
39- ) : Promise < table . TableProvenTx [ ] >
56+ ) : Promise < TableProvenTx [ ] >
4057 getProvenTxReqsForUser (
4158 args : sdk . FindForUserSincePagedArgs
42- ) : Promise < table . TableProvenTxReq [ ] >
59+ ) : Promise < TableProvenTxReq [ ] >
4360 getTxLabelMapsForUser (
4461 args : sdk . FindForUserSincePagedArgs
45- ) : Promise < table . TableTxLabelMap [ ] >
62+ ) : Promise < TableTxLabelMap [ ] >
4663 getOutputTagMapsForUser (
4764 args : sdk . FindForUserSincePagedArgs
48- ) : Promise < table . TableOutputTagMap [ ] >
65+ ) : Promise < TableOutputTagMap [ ] >
4966
5067 getSyncChunk ( args : RequestSyncChunkArgs ) : Promise < SyncChunk >
5168}
@@ -131,19 +148,19 @@ export interface SyncChunk {
131148 toStorageIdentityKey : string
132149 userIdentityKey : string
133150
134- user ?: table . TableUser
135- provenTxs ?: table . TableProvenTx [ ]
136- provenTxReqs ?: table . TableProvenTxReq [ ]
137- outputBaskets ?: table . TableOutputBasket [ ]
138- txLabels ?: table . TableTxLabel [ ]
139- outputTags ?: table . TableOutputTag [ ]
140- transactions ?: table . TableTransaction [ ]
141- txLabelMaps ?: table . TableTxLabelMap [ ]
142- commissions ?: table . TableCommission [ ]
143- outputs ?: table . TableOutput [ ]
144- outputTagMaps ?: table . TableOutputTagMap [ ]
145- certificates ?: table . TableCertificate [ ]
146- certificateFields ?: table . TableCertificateField [ ]
151+ user ?: TableUser
152+ provenTxs ?: TableProvenTx [ ]
153+ provenTxReqs ?: TableProvenTxReq [ ]
154+ outputBaskets ?: TableOutputBasket [ ]
155+ txLabels ?: TableTxLabel [ ]
156+ outputTags ?: TableOutputTag [ ]
157+ transactions ?: TableTransaction [ ]
158+ txLabelMaps ?: TableTxLabelMap [ ]
159+ commissions ?: TableCommission [ ]
160+ outputs ?: TableOutput [ ]
161+ outputTagMaps ?: TableOutputTagMap [ ]
162+ certificates ?: TableCertificate [ ]
163+ certificateFields ?: TableCertificateField [ ]
147164}
148165
149166export interface ProcessSyncChunkResult {
0 commit comments