@dynamic-labs/sdk-api-core 0.110.0 → 0.112.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 +1 -1
- package/src/apis/SDKApi.cjs +1 -1
- package/src/apis/SDKApi.js +1 -1
- package/src/models/FlowUIConfig.cjs +3 -0
- package/src/models/FlowUIConfig.cjs.map +1 -1
- package/src/models/FlowUIConfig.d.ts +7 -0
- package/src/models/FlowUIConfig.js +3 -0
- package/src/models/FlowUIConfig.js.map +1 -1
- package/src/version.cjs +1 -1
- package/src/version.js +1 -1
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -135,6 +135,7 @@ var FarcasterSignInRequest = require('../models/FarcasterSignInRequest.cjs');
|
|
|
135
135
|
var Flow = require('../models/Flow.cjs');
|
|
136
136
|
var FlowAttachSourceRequest = require('../models/FlowAttachSourceRequest.cjs');
|
|
137
137
|
require('../models/FlowCurrencyEnum.cjs');
|
|
138
|
+
require('../models/FlowSourceTypeEnum.cjs');
|
|
138
139
|
require('../models/FlowExecutionStateEnum.cjs');
|
|
139
140
|
require('../models/FlowModeEnum.cjs');
|
|
140
141
|
var FlowPrepareSigningRequest = require('../models/FlowPrepareSigningRequest.cjs');
|
|
@@ -143,7 +144,6 @@ var FlowRecordBroadcastRequest = require('../models/FlowRecordBroadcastRequest.c
|
|
|
143
144
|
require('../models/FlowRiskStateEnum.cjs');
|
|
144
145
|
require('../models/FlowSettlementStateEnum.cjs');
|
|
145
146
|
var FlowSourceResponse = require('../models/FlowSourceResponse.cjs');
|
|
146
|
-
require('../models/FlowSourceTypeEnum.cjs');
|
|
147
147
|
require('../models/OnrampProviders.cjs');
|
|
148
148
|
var GeneratedTokenResponse = require('../models/GeneratedTokenResponse.cjs');
|
|
149
149
|
var GetAvailableEVMGaslessRelayerResponse = require('../models/GetAvailableEVMGaslessRelayerResponse.cjs');
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -131,6 +131,7 @@ import { FarcasterSignInRequestToJSON } from '../models/FarcasterSignInRequest.j
|
|
|
131
131
|
import { FlowFromJSON } from '../models/Flow.js';
|
|
132
132
|
import { FlowAttachSourceRequestToJSON } from '../models/FlowAttachSourceRequest.js';
|
|
133
133
|
import '../models/FlowCurrencyEnum.js';
|
|
134
|
+
import '../models/FlowSourceTypeEnum.js';
|
|
134
135
|
import '../models/FlowExecutionStateEnum.js';
|
|
135
136
|
import '../models/FlowModeEnum.js';
|
|
136
137
|
import { FlowPrepareSigningRequestToJSON } from '../models/FlowPrepareSigningRequest.js';
|
|
@@ -139,7 +140,6 @@ import { FlowRecordBroadcastRequestToJSON } from '../models/FlowRecordBroadcastR
|
|
|
139
140
|
import '../models/FlowRiskStateEnum.js';
|
|
140
141
|
import '../models/FlowSettlementStateEnum.js';
|
|
141
142
|
import { FlowSourceResponseFromJSON } from '../models/FlowSourceResponse.js';
|
|
142
|
-
import '../models/FlowSourceTypeEnum.js';
|
|
143
143
|
import '../models/OnrampProviders.js';
|
|
144
144
|
import { GeneratedTokenResponseFromJSON } from '../models/GeneratedTokenResponse.js';
|
|
145
145
|
import { GetAvailableEVMGaslessRelayerResponseFromJSON } from '../models/GetAvailableEVMGaslessRelayerResponse.js';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var FlowSourceTypeEnum = require('./FlowSourceTypeEnum.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
function FlowUIConfigFromJSON(json) {
|
|
@@ -18,6 +19,7 @@ function FlowUIConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
19
|
'merchantName': !runtime.exists(json, 'merchantName') ? undefined : json['merchantName'],
|
|
19
20
|
'merchantLogoUrl': !runtime.exists(json, 'merchantLogoUrl') ? undefined : json['merchantLogoUrl'],
|
|
20
21
|
'externalPaymentId': !runtime.exists(json, 'externalPaymentId') ? undefined : json['externalPaymentId'],
|
|
22
|
+
'enabledPaymentMethods': !runtime.exists(json, 'enabledPaymentMethods') ? undefined : (json['enabledPaymentMethods'].map(FlowSourceTypeEnum.FlowSourceTypeEnumFromJSON)),
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
25
|
function FlowUIConfigToJSON(value) {
|
|
@@ -33,6 +35,7 @@ function FlowUIConfigToJSON(value) {
|
|
|
33
35
|
'merchantName': value.merchantName,
|
|
34
36
|
'merchantLogoUrl': value.merchantLogoUrl,
|
|
35
37
|
'externalPaymentId': value.externalPaymentId,
|
|
38
|
+
'enabledPaymentMethods': value.enabledPaymentMethods === undefined ? undefined : (value.enabledPaymentMethods.map(FlowSourceTypeEnum.FlowSourceTypeEnumToJSON)),
|
|
36
39
|
};
|
|
37
40
|
}
|
|
38
41
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowUIConfig.cjs","sources":["../../../../../libs/sdk-api-core/src/models/FlowUIConfig.ts"],"sourcesContent":null,"names":["exists"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FlowUIConfig.cjs","sources":["../../../../../libs/sdk-api-core/src/models/FlowUIConfig.ts"],"sourcesContent":null,"names":["exists","FlowSourceTypeEnumFromJSON","FlowSourceTypeEnumToJSON"],"mappings":";;;;;;;AAAA;AAkEM,SAAU,oBAAoB,CAAC,IAAS,EAAA;AAC1C,IAAA,OAAO,yBAAyB,CAAC,IAAW,CAAC,CAAC;AAClD,CAAC;AAEe,SAAA,yBAAyB,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC7E,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,WAAW,EAAE,CAACA,cAAM,CAAC,IAAI,EAAE,WAAW,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC;AACvE,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tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
|
|
12
13
|
/**
|
|
13
14
|
* Payer-facing UI config for a flow, set once at creation. Not part of the execution/settlement record.
|
|
14
15
|
* @export
|
|
@@ -45,6 +46,12 @@ export interface FlowUIConfig {
|
|
|
45
46
|
* @memberof FlowUIConfig
|
|
46
47
|
*/
|
|
47
48
|
externalPaymentId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Source types the payer UI should offer. Omit to offer every method. Display-only — not enforced when a source is attached. Duplicates are ignored.
|
|
51
|
+
* @type {Array<FlowSourceTypeEnum>}
|
|
52
|
+
* @memberof FlowUIConfig
|
|
53
|
+
*/
|
|
54
|
+
enabledPaymentMethods?: Array<FlowSourceTypeEnum>;
|
|
48
55
|
}
|
|
49
56
|
export declare function FlowUIConfigFromJSON(json: any): FlowUIConfig;
|
|
50
57
|
export declare function FlowUIConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowUIConfig;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumToJSON } from './FlowSourceTypeEnum.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
function FlowUIConfigFromJSON(json) {
|
|
@@ -14,6 +15,7 @@ function FlowUIConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
15
|
'merchantName': !exists(json, 'merchantName') ? undefined : json['merchantName'],
|
|
15
16
|
'merchantLogoUrl': !exists(json, 'merchantLogoUrl') ? undefined : json['merchantLogoUrl'],
|
|
16
17
|
'externalPaymentId': !exists(json, 'externalPaymentId') ? undefined : json['externalPaymentId'],
|
|
18
|
+
'enabledPaymentMethods': !exists(json, 'enabledPaymentMethods') ? undefined : (json['enabledPaymentMethods'].map(FlowSourceTypeEnumFromJSON)),
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
function FlowUIConfigToJSON(value) {
|
|
@@ -29,6 +31,7 @@ function FlowUIConfigToJSON(value) {
|
|
|
29
31
|
'merchantName': value.merchantName,
|
|
30
32
|
'merchantLogoUrl': value.merchantLogoUrl,
|
|
31
33
|
'externalPaymentId': value.externalPaymentId,
|
|
34
|
+
'enabledPaymentMethods': value.enabledPaymentMethods === undefined ? undefined : (value.enabledPaymentMethods.map(FlowSourceTypeEnumToJSON)),
|
|
32
35
|
};
|
|
33
36
|
}
|
|
34
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowUIConfig.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowUIConfig.ts"],"sourcesContent":null,"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FlowUIConfig.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowUIConfig.ts"],"sourcesContent":null,"names":[],"mappings":";;;AAAA;AAkEM,SAAU,oBAAoB,CAAC,IAAS,EAAA;AAC1C,IAAA,OAAO,yBAAyB,CAAC,IAAW,CAAC,CAAC;AAClD,CAAC;AAEe,SAAA,yBAAyB,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC7E,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC;AACvE,QAAA,oBAAoB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,oBAAoB,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,oBAAoB,CAAC;AAClG,QAAA,cAAc,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC;AAChF,QAAA,iBAAiB,EAAE,CAAC,MAAM,CAA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