diff options
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 50cb50f30..b7a51de9e 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -109,11 +109,11 @@ export interface GetBalanceDetailRequest { currency: string; } -export const codecForGetBalanceDetailRequest = (): Codec<GetBalanceDetailRequest> => - buildCodecForObject<GetBalanceDetailRequest>() - .property("currency", codecForString()) - .build("GetBalanceDetailRequest"); - +export const codecForGetBalanceDetailRequest = + (): Codec<GetBalanceDetailRequest> => + buildCodecForObject<GetBalanceDetailRequest>() + .property("currency", codecForString()) + .build("GetBalanceDetailRequest"); export interface Balance { available: AmountString; @@ -225,11 +225,11 @@ export interface CoinDumpJson { withdrawal_reserve_pub: string | undefined; coin_status: CoinStatus; spend_allocation: - | { - id: string; - amount: string; - } - | undefined; + | { + id: string; + amount: string; + } + | undefined; /** * Information about the age restriction */ @@ -1430,9 +1430,14 @@ export const codecForConfirmPayRequest = (): Codec<ConfirmPayRequest> => .property("forcedCoinSel", codecForAny()) .build("ConfirmPay"); +export interface CoreApiRequestEnvelope { + id: string; + operation: string; + args: unknown; +} export type CoreApiResponse = CoreApiResponseSuccess | CoreApiResponseError; -export type CoreApiEnvelope = CoreApiResponse | CoreApiNotification; +export type CoreApiMessageEnvelope = CoreApiResponse | CoreApiNotification; export interface CoreApiNotification { type: "notification"; @@ -1802,7 +1807,6 @@ export const codecForUserAttentionsRequest = (): Codec<UserAttentionsRequest> => ) .build("UserAttentionsRequest"); - export interface UserAttentionsRequest { priority?: AttentionPriority; } |