@dynamic-labs/sdk-api 0.91.0 → 0.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/models/Flow.cjs
CHANGED
|
@@ -14,6 +14,7 @@ var FlowRiskStateEnum = require('./FlowRiskStateEnum.cjs');
|
|
|
14
14
|
var FlowSettlementData = require('./FlowSettlementData.cjs');
|
|
15
15
|
var FlowSettlementStateEnum = require('./FlowSettlementStateEnum.cjs');
|
|
16
16
|
var FlowSourceTypeEnum = require('./FlowSourceTypeEnum.cjs');
|
|
17
|
+
var FlowTokenInfo = require('./FlowTokenInfo.cjs');
|
|
17
18
|
var FlowUIConfig = require('./FlowUIConfig.cjs');
|
|
18
19
|
var SettlementConfigInput = require('./SettlementConfigInput.cjs');
|
|
19
20
|
|
|
@@ -31,6 +32,7 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
32
|
'amount': json['amount'],
|
|
32
33
|
'amountUsd': !runtime.exists(json, 'amountUsd') ? undefined : json['amountUsd'],
|
|
33
34
|
'currency': json['currency'],
|
|
35
|
+
'currencyTokenInfo': !runtime.exists(json, 'currencyTokenInfo') ? undefined : FlowTokenInfo.FlowTokenInfoFromJSON(json['currencyTokenInfo']),
|
|
34
36
|
'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
|
|
35
37
|
'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
|
|
36
38
|
'executionState': FlowExecutionStateEnum.FlowExecutionStateEnumFromJSON(json['executionState']),
|
|
@@ -80,6 +82,7 @@ function FlowToJSON(value) {
|
|
|
80
82
|
'amount': value.amount,
|
|
81
83
|
'amountUsd': value.amountUsd,
|
|
82
84
|
'currency': value.currency,
|
|
85
|
+
'currencyTokenInfo': FlowTokenInfo.FlowTokenInfoToJSON(value.currencyTokenInfo),
|
|
83
86
|
'memo': value.memo,
|
|
84
87
|
'userId': value.userId,
|
|
85
88
|
'executionState': FlowExecutionStateEnum.FlowExecutionStateEnumToJSON(value.executionState),
|
package/src/models/Flow.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { FlowRiskStateEnum } from './FlowRiskStateEnum';
|
|
|
20
20
|
import { FlowSettlementData } from './FlowSettlementData';
|
|
21
21
|
import { FlowSettlementStateEnum } from './FlowSettlementStateEnum';
|
|
22
22
|
import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
|
|
23
|
+
import { FlowTokenInfo } from './FlowTokenInfo';
|
|
23
24
|
import { FlowUIConfig } from './FlowUIConfig';
|
|
24
25
|
import { SettlementConfigInput } from './SettlementConfigInput';
|
|
25
26
|
/**
|
|
@@ -58,6 +59,12 @@ export interface Flow {
|
|
|
58
59
|
* @memberof Flow
|
|
59
60
|
*/
|
|
60
61
|
currency: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {FlowTokenInfo}
|
|
65
|
+
* @memberof Flow
|
|
66
|
+
*/
|
|
67
|
+
currencyTokenInfo?: FlowTokenInfo;
|
|
61
68
|
/**
|
|
62
69
|
* Arbitrary metadata attached to the flow
|
|
63
70
|
* @type {object}
|
package/src/models/Flow.js
CHANGED
|
@@ -10,6 +10,7 @@ import { FlowRiskStateEnumFromJSON, FlowRiskStateEnumToJSON } from './FlowRiskSt
|
|
|
10
10
|
import { FlowSettlementDataFromJSON, FlowSettlementDataToJSON } from './FlowSettlementData.js';
|
|
11
11
|
import { FlowSettlementStateEnumFromJSON, FlowSettlementStateEnumToJSON } from './FlowSettlementStateEnum.js';
|
|
12
12
|
import { FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumToJSON } from './FlowSourceTypeEnum.js';
|
|
13
|
+
import { FlowTokenInfoFromJSON, FlowTokenInfoToJSON } from './FlowTokenInfo.js';
|
|
13
14
|
import { FlowUIConfigFromJSON, FlowUIConfigToJSON } from './FlowUIConfig.js';
|
|
14
15
|
import { SettlementConfigInputFromJSON, SettlementConfigInputToJSON } from './SettlementConfigInput.js';
|
|
15
16
|
|
|
@@ -27,6 +28,7 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
28
|
'amount': json['amount'],
|
|
28
29
|
'amountUsd': !exists(json, 'amountUsd') ? undefined : json['amountUsd'],
|
|
29
30
|
'currency': json['currency'],
|
|
31
|
+
'currencyTokenInfo': !exists(json, 'currencyTokenInfo') ? undefined : FlowTokenInfoFromJSON(json['currencyTokenInfo']),
|
|
30
32
|
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
31
33
|
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
|
32
34
|
'executionState': FlowExecutionStateEnumFromJSON(json['executionState']),
|
|
@@ -76,6 +78,7 @@ function FlowToJSON(value) {
|
|
|
76
78
|
'amount': value.amount,
|
|
77
79
|
'amountUsd': value.amountUsd,
|
|
78
80
|
'currency': value.currency,
|
|
81
|
+
'currencyTokenInfo': FlowTokenInfoToJSON(value.currencyTokenInfo),
|
|
79
82
|
'memo': value.memo,
|
|
80
83
|
'userId': value.userId,
|
|
81
84
|
'executionState': FlowExecutionStateEnumToJSON(value.executionState),
|
|
@@ -56,6 +56,7 @@ exports.TokenScope = void 0;
|
|
|
56
56
|
TokenScope["Walletdelegate"] = "wallet:delegate";
|
|
57
57
|
TokenScope["Walletsign"] = "wallet:sign";
|
|
58
58
|
TokenScope["Walletrestore"] = "wallet:restore";
|
|
59
|
+
TokenScope["Walletpolicyupdate"] = "wallet:policy:update";
|
|
59
60
|
})(exports.TokenScope || (exports.TokenScope = {}));
|
|
60
61
|
function TokenScopeFromJSON(json) {
|
|
61
62
|
return TokenScopeFromJSONTyped(json);
|
|
@@ -48,7 +48,8 @@ export declare enum TokenScope {
|
|
|
48
48
|
Walletreshare = "wallet:reshare",
|
|
49
49
|
Walletdelegate = "wallet:delegate",
|
|
50
50
|
Walletsign = "wallet:sign",
|
|
51
|
-
Walletrestore = "wallet:restore"
|
|
51
|
+
Walletrestore = "wallet:restore",
|
|
52
|
+
Walletpolicyupdate = "wallet:policy:update"
|
|
52
53
|
}
|
|
53
54
|
export declare function TokenScopeFromJSON(json: any): TokenScope;
|
|
54
55
|
export declare function TokenScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenScope;
|
package/src/models/TokenScope.js
CHANGED
|
@@ -52,6 +52,7 @@ var TokenScope;
|
|
|
52
52
|
TokenScope["Walletdelegate"] = "wallet:delegate";
|
|
53
53
|
TokenScope["Walletsign"] = "wallet:sign";
|
|
54
54
|
TokenScope["Walletrestore"] = "wallet:restore";
|
|
55
|
+
TokenScope["Walletpolicyupdate"] = "wallet:policy:update";
|
|
55
56
|
})(TokenScope || (TokenScope = {}));
|
|
56
57
|
function TokenScopeFromJSON(json) {
|
|
57
58
|
return TokenScopeFromJSONTyped(json);
|