@dynamic-labs/sdk-api 0.80.0 → 0.82.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/CheckoutApi.cjs +5 -12
- package/src/apis/CheckoutApi.d.ts +5 -6
- package/src/apis/CheckoutApi.js +6 -13
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/Flow.cjs +2 -0
- package/src/models/Flow.d.ts +6 -0
- package/src/models/Flow.js +2 -0
- package/src/models/InlineResponse410.cjs +33 -0
- package/src/models/InlineResponse410.d.ts +27 -0
- package/src/models/InlineResponse410.js +27 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/apis/CheckoutApi.cjs
CHANGED
|
@@ -70,8 +70,8 @@ require('../models/ScreeningPreScreenAction.cjs');
|
|
|
70
70
|
require('../models/ScreeningCoreField.cjs');
|
|
71
71
|
require('../models/ChainalysisRiskLevel.cjs');
|
|
72
72
|
var Checkout = require('../models/Checkout.cjs');
|
|
73
|
-
var CheckoutCreateRequest = require('../models/CheckoutCreateRequest.cjs');
|
|
74
73
|
require('../models/CheckoutModeEnum.cjs');
|
|
74
|
+
require('../models/SettlementStrategyEnum.cjs');
|
|
75
75
|
require('../models/FlowExecutionStateEnum.cjs');
|
|
76
76
|
require('../models/FlowRiskStateEnum.cjs');
|
|
77
77
|
require('../models/FlowSettlementStateEnum.cjs');
|
|
@@ -117,7 +117,6 @@ require('../models/ExportModelEnum.cjs');
|
|
|
117
117
|
require('../models/ExportStatusEnum.cjs');
|
|
118
118
|
require('../models/ExternalWalletFundingDefaultChain.cjs');
|
|
119
119
|
require('../models/FlowModeEnum.cjs');
|
|
120
|
-
require('../models/SettlementStrategyEnum.cjs');
|
|
121
120
|
require('../models/FlowAnalyticsSummaryResponse.cjs');
|
|
122
121
|
require('../models/FlowCurrencyEnum.cjs');
|
|
123
122
|
require('../models/FlowListItem.cjs');
|
|
@@ -205,35 +204,29 @@ require('../models/YieldVaultSummary.cjs');
|
|
|
205
204
|
*/
|
|
206
205
|
class CheckoutApi extends runtime.BaseAPI {
|
|
207
206
|
/**
|
|
208
|
-
*
|
|
207
|
+
* Permanently removed. Use new /flow api instead.
|
|
209
208
|
* Create a checkout
|
|
210
209
|
*/
|
|
211
210
|
async createCheckoutRaw(requestParameters, initOverrides) {
|
|
212
211
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
213
212
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createCheckout.');
|
|
214
213
|
}
|
|
215
|
-
if (requestParameters.checkoutCreateRequest === null || requestParameters.checkoutCreateRequest === undefined) {
|
|
216
|
-
throw new runtime.RequiredError('checkoutCreateRequest', 'Required parameter requestParameters.checkoutCreateRequest was null or undefined when calling createCheckout.');
|
|
217
|
-
}
|
|
218
214
|
const queryParameters = {};
|
|
219
215
|
const headerParameters = {};
|
|
220
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
221
216
|
const response = await this.request({
|
|
222
217
|
path: `/environments/{environmentId}/checkouts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
223
218
|
method: 'POST',
|
|
224
219
|
headers: headerParameters,
|
|
225
220
|
query: queryParameters,
|
|
226
|
-
body: CheckoutCreateRequest.CheckoutCreateRequestToJSON(requestParameters.checkoutCreateRequest),
|
|
227
221
|
}, initOverrides);
|
|
228
|
-
return new runtime.
|
|
222
|
+
return new runtime.VoidApiResponse(response);
|
|
229
223
|
}
|
|
230
224
|
/**
|
|
231
|
-
*
|
|
225
|
+
* Permanently removed. Use new /flow api instead.
|
|
232
226
|
* Create a checkout
|
|
233
227
|
*/
|
|
234
228
|
async createCheckout(requestParameters, initOverrides) {
|
|
235
|
-
|
|
236
|
-
return await response.value();
|
|
229
|
+
await this.createCheckoutRaw(requestParameters, initOverrides);
|
|
237
230
|
}
|
|
238
231
|
/**
|
|
239
232
|
* Deprecated: use new /flow api instead. Soft-deletes a checkout, preventing it from accepting new transactions.
|
|
@@ -10,10 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Checkout,
|
|
13
|
+
import { Checkout, CheckoutUpdateRequest } from '../models';
|
|
14
14
|
export interface CreateCheckoutRequest {
|
|
15
15
|
environmentId: string;
|
|
16
|
-
checkoutCreateRequest: CheckoutCreateRequest;
|
|
17
16
|
}
|
|
18
17
|
export interface DeleteCheckoutRequest {
|
|
19
18
|
environmentId: string;
|
|
@@ -33,15 +32,15 @@ export interface UpdateCheckoutRequest {
|
|
|
33
32
|
*/
|
|
34
33
|
export declare class CheckoutApi extends runtime.BaseAPI {
|
|
35
34
|
/**
|
|
36
|
-
*
|
|
35
|
+
* Permanently removed. Use new /flow api instead.
|
|
37
36
|
* Create a checkout
|
|
38
37
|
*/
|
|
39
|
-
createCheckoutRaw(requestParameters: CreateCheckoutRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<
|
|
38
|
+
createCheckoutRaw(requestParameters: CreateCheckoutRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
40
39
|
/**
|
|
41
|
-
*
|
|
40
|
+
* Permanently removed. Use new /flow api instead.
|
|
42
41
|
* Create a checkout
|
|
43
42
|
*/
|
|
44
|
-
createCheckout(requestParameters: CreateCheckoutRequest, initOverrides?: RequestInit): Promise<
|
|
43
|
+
createCheckout(requestParameters: CreateCheckoutRequest, initOverrides?: RequestInit): Promise<void>;
|
|
45
44
|
/**
|
|
46
45
|
* Deprecated: use new /flow api instead. Soft-deletes a checkout, preventing it from accepting new transactions.
|
|
47
46
|
* Delete a checkout
|
package/src/apis/CheckoutApi.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
|
|
1
|
+
import { BaseAPI, RequiredError, VoidApiResponse, JSONApiResponse } from '../runtime.js';
|
|
2
2
|
import '../models/AccessOutcomeEnum.js';
|
|
3
3
|
import '../models/ExchangeKeyEnum.js';
|
|
4
4
|
import '../models/ProviderEnum.js';
|
|
@@ -66,8 +66,8 @@ import '../models/ScreeningPreScreenAction.js';
|
|
|
66
66
|
import '../models/ScreeningCoreField.js';
|
|
67
67
|
import '../models/ChainalysisRiskLevel.js';
|
|
68
68
|
import { CheckoutFromJSON } from '../models/Checkout.js';
|
|
69
|
-
import { CheckoutCreateRequestToJSON } from '../models/CheckoutCreateRequest.js';
|
|
70
69
|
import '../models/CheckoutModeEnum.js';
|
|
70
|
+
import '../models/SettlementStrategyEnum.js';
|
|
71
71
|
import '../models/FlowExecutionStateEnum.js';
|
|
72
72
|
import '../models/FlowRiskStateEnum.js';
|
|
73
73
|
import '../models/FlowSettlementStateEnum.js';
|
|
@@ -113,7 +113,6 @@ import '../models/ExportModelEnum.js';
|
|
|
113
113
|
import '../models/ExportStatusEnum.js';
|
|
114
114
|
import '../models/ExternalWalletFundingDefaultChain.js';
|
|
115
115
|
import '../models/FlowModeEnum.js';
|
|
116
|
-
import '../models/SettlementStrategyEnum.js';
|
|
117
116
|
import '../models/FlowAnalyticsSummaryResponse.js';
|
|
118
117
|
import '../models/FlowCurrencyEnum.js';
|
|
119
118
|
import '../models/FlowListItem.js';
|
|
@@ -201,35 +200,29 @@ import '../models/YieldVaultSummary.js';
|
|
|
201
200
|
*/
|
|
202
201
|
class CheckoutApi extends BaseAPI {
|
|
203
202
|
/**
|
|
204
|
-
*
|
|
203
|
+
* Permanently removed. Use new /flow api instead.
|
|
205
204
|
* Create a checkout
|
|
206
205
|
*/
|
|
207
206
|
async createCheckoutRaw(requestParameters, initOverrides) {
|
|
208
207
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
209
208
|
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createCheckout.');
|
|
210
209
|
}
|
|
211
|
-
if (requestParameters.checkoutCreateRequest === null || requestParameters.checkoutCreateRequest === undefined) {
|
|
212
|
-
throw new RequiredError('checkoutCreateRequest', 'Required parameter requestParameters.checkoutCreateRequest was null or undefined when calling createCheckout.');
|
|
213
|
-
}
|
|
214
210
|
const queryParameters = {};
|
|
215
211
|
const headerParameters = {};
|
|
216
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
217
212
|
const response = await this.request({
|
|
218
213
|
path: `/environments/{environmentId}/checkouts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
219
214
|
method: 'POST',
|
|
220
215
|
headers: headerParameters,
|
|
221
216
|
query: queryParameters,
|
|
222
|
-
body: CheckoutCreateRequestToJSON(requestParameters.checkoutCreateRequest),
|
|
223
217
|
}, initOverrides);
|
|
224
|
-
return new
|
|
218
|
+
return new VoidApiResponse(response);
|
|
225
219
|
}
|
|
226
220
|
/**
|
|
227
|
-
*
|
|
221
|
+
* Permanently removed. Use new /flow api instead.
|
|
228
222
|
* Create a checkout
|
|
229
223
|
*/
|
|
230
224
|
async createCheckout(requestParameters, initOverrides) {
|
|
231
|
-
|
|
232
|
-
return await response.value();
|
|
225
|
+
await this.createCheckoutRaw(requestParameters, initOverrides);
|
|
233
226
|
}
|
|
234
227
|
/**
|
|
235
228
|
* Deprecated: use new /flow api instead. Soft-deletes a checkout, preventing it from accepting new transactions.
|
package/src/index.cjs
CHANGED
|
@@ -481,6 +481,7 @@ var InlineResponse2008 = require('./models/InlineResponse2008.cjs');
|
|
|
481
481
|
var InlineResponse2009 = require('./models/InlineResponse2009.cjs');
|
|
482
482
|
var InlineResponse201 = require('./models/InlineResponse201.cjs');
|
|
483
483
|
var InlineResponse400 = require('./models/InlineResponse400.cjs');
|
|
484
|
+
var InlineResponse410 = require('./models/InlineResponse410.cjs');
|
|
484
485
|
var IntegrationSetting = require('./models/IntegrationSetting.cjs');
|
|
485
486
|
var InternalBulkUpdateUserFields = require('./models/InternalBulkUpdateUserFields.cjs');
|
|
486
487
|
var InternalBulkUpdateUserFieldsAllOf = require('./models/InternalBulkUpdateUserFieldsAllOf.cjs');
|
|
@@ -2771,6 +2772,9 @@ exports.InlineResponse201ToJSON = InlineResponse201.InlineResponse201ToJSON;
|
|
|
2771
2772
|
exports.InlineResponse400FromJSON = InlineResponse400.InlineResponse400FromJSON;
|
|
2772
2773
|
exports.InlineResponse400FromJSONTyped = InlineResponse400.InlineResponse400FromJSONTyped;
|
|
2773
2774
|
exports.InlineResponse400ToJSON = InlineResponse400.InlineResponse400ToJSON;
|
|
2775
|
+
exports.InlineResponse410FromJSON = InlineResponse410.InlineResponse410FromJSON;
|
|
2776
|
+
exports.InlineResponse410FromJSONTyped = InlineResponse410.InlineResponse410FromJSONTyped;
|
|
2777
|
+
exports.InlineResponse410ToJSON = InlineResponse410.InlineResponse410ToJSON;
|
|
2774
2778
|
exports.IntegrationSettingFromJSON = IntegrationSetting.IntegrationSettingFromJSON;
|
|
2775
2779
|
exports.IntegrationSettingFromJSONTyped = IntegrationSetting.IntegrationSettingFromJSONTyped;
|
|
2776
2780
|
exports.IntegrationSettingToJSON = IntegrationSetting.IntegrationSettingToJSON;
|
package/src/index.js
CHANGED
|
@@ -477,6 +477,7 @@ export { InlineResponse2008FromJSON, InlineResponse2008FromJSONTyped, InlineResp
|
|
|
477
477
|
export { InlineResponse2009FromJSON, InlineResponse2009FromJSONTyped, InlineResponse2009ToJSON } from './models/InlineResponse2009.js';
|
|
478
478
|
export { InlineResponse201FromJSON, InlineResponse201FromJSONTyped, InlineResponse201ToJSON } from './models/InlineResponse201.js';
|
|
479
479
|
export { InlineResponse400FromJSON, InlineResponse400FromJSONTyped, InlineResponse400ToJSON } from './models/InlineResponse400.js';
|
|
480
|
+
export { InlineResponse410FromJSON, InlineResponse410FromJSONTyped, InlineResponse410ToJSON } from './models/InlineResponse410.js';
|
|
480
481
|
export { IntegrationSettingFromJSON, IntegrationSettingFromJSONTyped, IntegrationSettingToJSON } from './models/IntegrationSetting.js';
|
|
481
482
|
export { InternalBulkUpdateUserFieldsFromJSON, InternalBulkUpdateUserFieldsFromJSONTyped, InternalBulkUpdateUserFieldsToJSON } from './models/InternalBulkUpdateUserFields.js';
|
|
482
483
|
export { InternalBulkUpdateUserFieldsAllOfFromJSON, InternalBulkUpdateUserFieldsAllOfFromJSONTyped, InternalBulkUpdateUserFieldsAllOfToJSON } from './models/InternalBulkUpdateUserFieldsAllOf.js';
|
package/src/models/Flow.cjs
CHANGED
|
@@ -29,6 +29,7 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'id': json['id'],
|
|
30
30
|
'mode': FlowModeEnum.FlowModeEnumFromJSON(json['mode']),
|
|
31
31
|
'amount': json['amount'],
|
|
32
|
+
'amountUsd': !runtime.exists(json, 'amountUsd') ? undefined : json['amountUsd'],
|
|
32
33
|
'currency': json['currency'],
|
|
33
34
|
'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
|
|
34
35
|
'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
|
|
@@ -77,6 +78,7 @@ function FlowToJSON(value) {
|
|
|
77
78
|
'id': value.id,
|
|
78
79
|
'mode': FlowModeEnum.FlowModeEnumToJSON(value.mode),
|
|
79
80
|
'amount': value.amount,
|
|
81
|
+
'amountUsd': value.amountUsd,
|
|
80
82
|
'currency': value.currency,
|
|
81
83
|
'memo': value.memo,
|
|
82
84
|
'userId': value.userId,
|
package/src/models/Flow.d.ts
CHANGED
|
@@ -46,6 +46,12 @@ export interface Flow {
|
|
|
46
46
|
* @memberof Flow
|
|
47
47
|
*/
|
|
48
48
|
amount: string;
|
|
49
|
+
/**
|
|
50
|
+
* Amount in USD. Equals `amount` when `currency` is USD. For token-denominated currencies it is `amount` multiplied by the settlement token's USD price, calculated when a quote is generated. Absent until then, or if no price is available.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Flow
|
|
53
|
+
*/
|
|
54
|
+
amountUsd?: string;
|
|
49
55
|
/**
|
|
50
56
|
*
|
|
51
57
|
* @type {string}
|
package/src/models/Flow.js
CHANGED
|
@@ -25,6 +25,7 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
'id': json['id'],
|
|
26
26
|
'mode': FlowModeEnumFromJSON(json['mode']),
|
|
27
27
|
'amount': json['amount'],
|
|
28
|
+
'amountUsd': !exists(json, 'amountUsd') ? undefined : json['amountUsd'],
|
|
28
29
|
'currency': json['currency'],
|
|
29
30
|
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
30
31
|
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
|
@@ -73,6 +74,7 @@ function FlowToJSON(value) {
|
|
|
73
74
|
'id': value.id,
|
|
74
75
|
'mode': FlowModeEnumToJSON(value.mode),
|
|
75
76
|
'amount': value.amount,
|
|
77
|
+
'amountUsd': value.amountUsd,
|
|
76
78
|
'currency': value.currency,
|
|
77
79
|
'memo': value.memo,
|
|
78
80
|
'userId': value.userId,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function InlineResponse410FromJSON(json) {
|
|
9
|
+
return InlineResponse410FromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function InlineResponse410FromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'error': !runtime.exists(json, 'error') ? undefined : json['error'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function InlineResponse410ToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'error': value.error,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.InlineResponse410FromJSON = InlineResponse410FromJSON;
|
|
32
|
+
exports.InlineResponse410FromJSONTyped = InlineResponse410FromJSONTyped;
|
|
33
|
+
exports.InlineResponse410ToJSON = InlineResponse410ToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InlineResponse410
|
|
16
|
+
*/
|
|
17
|
+
export interface InlineResponse410 {
|
|
18
|
+
/**
|
|
19
|
+
* Human-readable error message
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InlineResponse410
|
|
22
|
+
*/
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function InlineResponse410FromJSON(json: any): InlineResponse410;
|
|
26
|
+
export declare function InlineResponse410FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineResponse410;
|
|
27
|
+
export declare function InlineResponse410ToJSON(value?: InlineResponse410 | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function InlineResponse410FromJSON(json) {
|
|
5
|
+
return InlineResponse410FromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function InlineResponse410FromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'error': !exists(json, 'error') ? undefined : json['error'],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function InlineResponse410ToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'error': value.error,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { InlineResponse410FromJSON, InlineResponse410FromJSONTyped, InlineResponse410ToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -424,6 +424,7 @@ export * from './InlineResponse2008';
|
|
|
424
424
|
export * from './InlineResponse2009';
|
|
425
425
|
export * from './InlineResponse201';
|
|
426
426
|
export * from './InlineResponse400';
|
|
427
|
+
export * from './InlineResponse410';
|
|
427
428
|
export * from './IntegrationSetting';
|
|
428
429
|
export * from './InternalBulkUpdateUserFields';
|
|
429
430
|
export * from './InternalBulkUpdateUserFieldsAllOf';
|