@swp/ledger-sdk
Advanced tools
Comparing version 0.0.35 to 0.0.36
@@ -55,4 +55,9 @@ export interface Model<DTO> { | ||
} | ||
export interface Balance { | ||
asset: AssetDTO; | ||
amount: string; | ||
} | ||
export interface AccountDTO extends NewAccountDTO { | ||
id: string; | ||
balances: Balance[]; | ||
} | ||
@@ -130,23 +135,24 @@ export interface PaginationParams { | ||
} | ||
export declare type NewWebHookDTO = { | ||
export declare type WebHookTriggerData = { | ||
url: string; | ||
}; | ||
export interface NewWebHookTriggerDTO { | ||
type: TriggerType.WebHook; | ||
condition: TriggerCondition; | ||
data: WebHookData; | ||
}; | ||
export declare type WebHookData = { | ||
url: string; | ||
}; | ||
export interface WebHookDTO extends NewWebHookDTO { | ||
data: WebHookTriggerData; | ||
} | ||
export interface WebHookTriggerDTO extends NewWebHookTriggerDTO { | ||
id: string; | ||
} | ||
export declare type NewLedgerTransferDTO = { | ||
export declare type LedgerTransferTriggerData = null; | ||
export interface NewLedgerTransferTriggerDTO { | ||
type: TriggerType.Ledger_Transfer; | ||
condition: TriggerCondition; | ||
}; | ||
export interface LedgerTransferDTO extends NewLedgerTransferDTO { | ||
data: LedgerTransferTriggerData; | ||
} | ||
export interface LedgerTransferTriggerDTO extends NewLedgerTransferTriggerDTO { | ||
id: string; | ||
} | ||
export declare type LedgerTransferData = null; | ||
export declare type TriggerData = WebHookData | LedgerTransferData; | ||
export declare type NewTriggerDTO = NewWebHookDTO | NewLedgerTransferDTO; | ||
export declare type TriggerDTO = WebHookDTO | LedgerTransferDTO; | ||
export declare type TriggerData = WebHookTriggerData | LedgerTransferTriggerData; | ||
export declare type NewTriggerDTO = NewWebHookTriggerDTO | NewLedgerTransferTriggerDTO; | ||
export declare type TriggerDTO = WebHookTriggerDTO | LedgerTransferTriggerDTO; |
{ | ||
"name": "@swp/ledger-sdk", | ||
"version": "0.0.35", | ||
"version": "0.0.36", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
1751
111271
84