@dynamic-labs/sdk-api-core 0.0.672 → 0.0.674
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 +146 -0
- package/src/apis/SDKApi.d.ts +53 -1
- package/src/apis/SDKApi.js +146 -0
- package/src/index.cjs +24 -4
- package/src/index.js +5 -1
- package/src/models/Account.cjs +45 -0
- package/src/models/Account.d.ts +59 -0
- package/src/models/Account.js +39 -0
- package/src/models/AccountBalances.cjs +37 -0
- package/src/models/AccountBalances.d.ts +39 -0
- package/src/models/AccountBalances.js +31 -0
- package/src/models/ExchangeKeyEnum.cjs +39 -0
- package/src/models/ExchangeKeyEnum.d.ts +22 -0
- package/src/models/ExchangeKeyEnum.js +33 -0
- package/src/models/RampConfiguration.cjs +39 -0
- package/src/models/RampConfiguration.d.ts +46 -0
- package/src/models/RampConfiguration.js +33 -0
- package/src/models/SupportedOfframpsResponse.cjs +34 -0
- package/src/models/SupportedOfframpsResponse.d.ts +28 -0
- package/src/models/SupportedOfframpsResponse.js +28 -0
- package/src/models/SupportedOnrampsResponse.cjs +3 -3
- package/src/models/SupportedOnrampsResponse.d.ts +3 -3
- package/src/models/SupportedOnrampsResponse.js +3 -3
- package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +1 -0
- package/src/models/UnprocessableEntityErrorCode.js +1 -0
- package/src/models/index.d.ts +5 -1
- package/src/models/OnrampConfiguration.cjs +0 -40
- package/src/models/OnrampConfiguration.d.ts +0 -46
- package/src/models/OnrampConfiguration.js +0 -34
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var AccountBalances = require('./AccountBalances.cjs');
|
|
7
|
+
var ExchangeKeyEnum = require('./ExchangeKeyEnum.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function AccountFromJSON(json) {
|
|
11
|
+
return AccountFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function AccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'id': json['id'],
|
|
19
|
+
'exchange': ExchangeKeyEnum.ExchangeKeyEnumFromJSON(json['exchange']),
|
|
20
|
+
'type': !runtime.exists(json, 'type') ? undefined : json['type'],
|
|
21
|
+
'balances': (json['balances'].map(AccountBalances.AccountBalancesFromJSON)),
|
|
22
|
+
'name': !runtime.exists(json, 'name') ? undefined : json['name'],
|
|
23
|
+
'chain': !runtime.exists(json, 'chain') ? undefined : json['chain'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function AccountToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': value.id,
|
|
35
|
+
'exchange': ExchangeKeyEnum.ExchangeKeyEnumToJSON(value.exchange),
|
|
36
|
+
'type': value.type,
|
|
37
|
+
'balances': (value.balances.map(AccountBalances.AccountBalancesToJSON)),
|
|
38
|
+
'name': value.name,
|
|
39
|
+
'chain': value.chain,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.AccountFromJSON = AccountFromJSON;
|
|
44
|
+
exports.AccountFromJSONTyped = AccountFromJSONTyped;
|
|
45
|
+
exports.AccountToJSON = AccountToJSON;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
import { AccountBalances } from './AccountBalances';
|
|
13
|
+
import { ExchangeKeyEnum } from './ExchangeKeyEnum';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface Account
|
|
18
|
+
*/
|
|
19
|
+
export interface Account {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof Account
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ExchangeKeyEnum}
|
|
29
|
+
* @memberof Account
|
|
30
|
+
*/
|
|
31
|
+
exchange: ExchangeKeyEnum;
|
|
32
|
+
/**
|
|
33
|
+
* Account type as reported by the exchange
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Account
|
|
36
|
+
*/
|
|
37
|
+
type?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<AccountBalances>}
|
|
41
|
+
* @memberof Account
|
|
42
|
+
*/
|
|
43
|
+
balances: Array<AccountBalances>;
|
|
44
|
+
/**
|
|
45
|
+
* Human-friendly label if supplied by the exchange.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof Account
|
|
48
|
+
*/
|
|
49
|
+
name?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Blockchain network if relevant
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Account
|
|
54
|
+
*/
|
|
55
|
+
chain?: string;
|
|
56
|
+
}
|
|
57
|
+
export declare function AccountFromJSON(json: any): Account;
|
|
58
|
+
export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account;
|
|
59
|
+
export declare function AccountToJSON(value?: Account | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { AccountBalancesFromJSON, AccountBalancesToJSON } from './AccountBalances.js';
|
|
3
|
+
import { ExchangeKeyEnumFromJSON, ExchangeKeyEnumToJSON } from './ExchangeKeyEnum.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
function AccountFromJSON(json) {
|
|
7
|
+
return AccountFromJSONTyped(json);
|
|
8
|
+
}
|
|
9
|
+
function AccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if ((json === undefined) || (json === null)) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
'id': json['id'],
|
|
15
|
+
'exchange': ExchangeKeyEnumFromJSON(json['exchange']),
|
|
16
|
+
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
17
|
+
'balances': (json['balances'].map(AccountBalancesFromJSON)),
|
|
18
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
19
|
+
'chain': !exists(json, 'chain') ? undefined : json['chain'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function AccountToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': value.id,
|
|
31
|
+
'exchange': ExchangeKeyEnumToJSON(value.exchange),
|
|
32
|
+
'type': value.type,
|
|
33
|
+
'balances': (value.balances.map(AccountBalancesToJSON)),
|
|
34
|
+
'name': value.name,
|
|
35
|
+
'chain': value.chain,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { AccountFromJSON, AccountFromJSONTyped, AccountToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function AccountBalancesFromJSON(json) {
|
|
9
|
+
return AccountBalancesFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function AccountBalancesFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'currency': json['currency'],
|
|
17
|
+
'balance': json['balance'],
|
|
18
|
+
'availableBalance': !runtime.exists(json, 'availableBalance') ? undefined : json['availableBalance'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function AccountBalancesToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'currency': value.currency,
|
|
30
|
+
'balance': value.balance,
|
|
31
|
+
'availableBalance': value.availableBalance,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.AccountBalancesFromJSON = AccountBalancesFromJSON;
|
|
36
|
+
exports.AccountBalancesFromJSONTyped = AccountBalancesFromJSONTyped;
|
|
37
|
+
exports.AccountBalancesToJSON = AccountBalancesToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 AccountBalances
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountBalances {
|
|
18
|
+
/**
|
|
19
|
+
* Chain symbol that funds are denominated in.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountBalances
|
|
22
|
+
*/
|
|
23
|
+
currency: string;
|
|
24
|
+
/**
|
|
25
|
+
* amount held in associated currency
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AccountBalances
|
|
28
|
+
*/
|
|
29
|
+
balance: number;
|
|
30
|
+
/**
|
|
31
|
+
* Funds immediately available for withdrawal or trading
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AccountBalances
|
|
34
|
+
*/
|
|
35
|
+
availableBalance?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare function AccountBalancesFromJSON(json: any): AccountBalances;
|
|
38
|
+
export declare function AccountBalancesFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBalances;
|
|
39
|
+
export declare function AccountBalancesToJSON(value?: AccountBalances | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function AccountBalancesFromJSON(json) {
|
|
5
|
+
return AccountBalancesFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function AccountBalancesFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'currency': json['currency'],
|
|
13
|
+
'balance': json['balance'],
|
|
14
|
+
'availableBalance': !exists(json, 'availableBalance') ? undefined : json['availableBalance'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function AccountBalancesToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'currency': value.currency,
|
|
26
|
+
'balance': value.balance,
|
|
27
|
+
'availableBalance': value.availableBalance,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { AccountBalancesFromJSON, AccountBalancesFromJSONTyped, AccountBalancesToJSON };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Source exchange identifier
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.ExchangeKeyEnum = void 0;
|
|
24
|
+
(function (ExchangeKeyEnum) {
|
|
25
|
+
ExchangeKeyEnum["Coinbase"] = "coinbase";
|
|
26
|
+
})(exports.ExchangeKeyEnum || (exports.ExchangeKeyEnum = {}));
|
|
27
|
+
function ExchangeKeyEnumFromJSON(json) {
|
|
28
|
+
return ExchangeKeyEnumFromJSONTyped(json);
|
|
29
|
+
}
|
|
30
|
+
function ExchangeKeyEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
function ExchangeKeyEnumToJSON(value) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.ExchangeKeyEnumFromJSON = ExchangeKeyEnumFromJSON;
|
|
38
|
+
exports.ExchangeKeyEnumFromJSONTyped = ExchangeKeyEnumFromJSONTyped;
|
|
39
|
+
exports.ExchangeKeyEnumToJSON = ExchangeKeyEnumToJSON;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
* Source exchange identifier
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum ExchangeKeyEnum {
|
|
18
|
+
Coinbase = "coinbase"
|
|
19
|
+
}
|
|
20
|
+
export declare function ExchangeKeyEnumFromJSON(json: any): ExchangeKeyEnum;
|
|
21
|
+
export declare function ExchangeKeyEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeKeyEnum;
|
|
22
|
+
export declare function ExchangeKeyEnumToJSON(value?: ExchangeKeyEnum | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Source exchange identifier
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var ExchangeKeyEnum;
|
|
20
|
+
(function (ExchangeKeyEnum) {
|
|
21
|
+
ExchangeKeyEnum["Coinbase"] = "coinbase";
|
|
22
|
+
})(ExchangeKeyEnum || (ExchangeKeyEnum = {}));
|
|
23
|
+
function ExchangeKeyEnumFromJSON(json) {
|
|
24
|
+
return ExchangeKeyEnumFromJSONTyped(json);
|
|
25
|
+
}
|
|
26
|
+
function ExchangeKeyEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
function ExchangeKeyEnumToJSON(value) {
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { ExchangeKeyEnum, ExchangeKeyEnumFromJSON, ExchangeKeyEnumFromJSONTyped, ExchangeKeyEnumToJSON };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ProviderEnum = require('./ProviderEnum.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function RampConfigurationFromJSON(json) {
|
|
9
|
+
return RampConfigurationFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function RampConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'provider': ProviderEnum.ProviderEnumFromJSON(json['provider']),
|
|
17
|
+
'name': json['name'],
|
|
18
|
+
'iconUrl': json['iconUrl'],
|
|
19
|
+
'url': json['url'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function RampConfigurationToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'provider': ProviderEnum.ProviderEnumToJSON(value.provider),
|
|
31
|
+
'name': value.name,
|
|
32
|
+
'iconUrl': value.iconUrl,
|
|
33
|
+
'url': value.url,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.RampConfigurationFromJSON = RampConfigurationFromJSON;
|
|
38
|
+
exports.RampConfigurationFromJSONTyped = RampConfigurationFromJSONTyped;
|
|
39
|
+
exports.RampConfigurationToJSON = RampConfigurationToJSON;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import { ProviderEnum } from './ProviderEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RampConfiguration
|
|
17
|
+
*/
|
|
18
|
+
export interface RampConfiguration {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ProviderEnum}
|
|
22
|
+
* @memberof RampConfiguration
|
|
23
|
+
*/
|
|
24
|
+
provider: ProviderEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RampConfiguration
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof RampConfiguration
|
|
35
|
+
*/
|
|
36
|
+
iconUrl: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof RampConfiguration
|
|
41
|
+
*/
|
|
42
|
+
url: string;
|
|
43
|
+
}
|
|
44
|
+
export declare function RampConfigurationFromJSON(json: any): RampConfiguration;
|
|
45
|
+
export declare function RampConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RampConfiguration;
|
|
46
|
+
export declare function RampConfigurationToJSON(value?: RampConfiguration | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ProviderEnumFromJSON, ProviderEnumToJSON } from './ProviderEnum.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function RampConfigurationFromJSON(json) {
|
|
5
|
+
return RampConfigurationFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function RampConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'provider': ProviderEnumFromJSON(json['provider']),
|
|
13
|
+
'name': json['name'],
|
|
14
|
+
'iconUrl': json['iconUrl'],
|
|
15
|
+
'url': json['url'],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function RampConfigurationToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'provider': ProviderEnumToJSON(value.provider),
|
|
27
|
+
'name': value.name,
|
|
28
|
+
'iconUrl': value.iconUrl,
|
|
29
|
+
'url': value.url,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { RampConfigurationFromJSON, RampConfigurationFromJSONTyped, RampConfigurationToJSON };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var RampConfiguration = require('./RampConfiguration.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function SupportedOfframpsResponseFromJSON(json) {
|
|
10
|
+
return SupportedOfframpsResponseFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function SupportedOfframpsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'offramps': !runtime.exists(json, 'offramps') ? undefined : (json['offramps'].map(RampConfiguration.RampConfigurationFromJSON)),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function SupportedOfframpsResponseToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'offramps': value.offramps === undefined ? undefined : (value.offramps.map(RampConfiguration.RampConfigurationToJSON)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
exports.SupportedOfframpsResponseFromJSON = SupportedOfframpsResponseFromJSON;
|
|
33
|
+
exports.SupportedOfframpsResponseFromJSONTyped = SupportedOfframpsResponseFromJSONTyped;
|
|
34
|
+
exports.SupportedOfframpsResponseToJSON = SupportedOfframpsResponseToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
import { RampConfiguration } from './RampConfiguration';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SupportedOfframpsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SupportedOfframpsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<RampConfiguration>}
|
|
22
|
+
* @memberof SupportedOfframpsResponse
|
|
23
|
+
*/
|
|
24
|
+
offramps?: Array<RampConfiguration>;
|
|
25
|
+
}
|
|
26
|
+
export declare function SupportedOfframpsResponseFromJSON(json: any): SupportedOfframpsResponse;
|
|
27
|
+
export declare function SupportedOfframpsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupportedOfframpsResponse;
|
|
28
|
+
export declare function SupportedOfframpsResponseToJSON(value?: SupportedOfframpsResponse | null): any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { RampConfigurationFromJSON, RampConfigurationToJSON } from './RampConfiguration.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function SupportedOfframpsResponseFromJSON(json) {
|
|
6
|
+
return SupportedOfframpsResponseFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function SupportedOfframpsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'offramps': !exists(json, 'offramps') ? undefined : (json['offramps'].map(RampConfigurationFromJSON)),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function SupportedOfframpsResponseToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'offramps': value.offramps === undefined ? undefined : (value.offramps.map(RampConfigurationToJSON)),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { SupportedOfframpsResponseFromJSON, SupportedOfframpsResponseFromJSONTyped, SupportedOfframpsResponseToJSON };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
-
var
|
|
6
|
+
var RampConfiguration = require('./RampConfiguration.cjs');
|
|
7
7
|
|
|
8
8
|
/* tslint:disable */
|
|
9
9
|
function SupportedOnrampsResponseFromJSON(json) {
|
|
@@ -14,7 +14,7 @@ function SupportedOnrampsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
14
|
return json;
|
|
15
15
|
}
|
|
16
16
|
return {
|
|
17
|
-
'onramps': !runtime.exists(json, 'onramps') ? undefined : (json['onramps'].map(
|
|
17
|
+
'onramps': !runtime.exists(json, 'onramps') ? undefined : (json['onramps'].map(RampConfiguration.RampConfigurationFromJSON)),
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
function SupportedOnrampsResponseToJSON(value) {
|
|
@@ -25,7 +25,7 @@ function SupportedOnrampsResponseToJSON(value) {
|
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
-
'onramps': value.onramps === undefined ? undefined : (value.onramps.map(
|
|
28
|
+
'onramps': value.onramps === undefined ? undefined : (value.onramps.map(RampConfiguration.RampConfigurationToJSON)),
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { RampConfiguration } from './RampConfiguration';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import { OnrampConfiguration } from './OnrampConfiguration';
|
|
|
18
18
|
export interface SupportedOnrampsResponse {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {Array<
|
|
21
|
+
* @type {Array<RampConfiguration>}
|
|
22
22
|
* @memberof SupportedOnrampsResponse
|
|
23
23
|
*/
|
|
24
|
-
onramps?: Array<
|
|
24
|
+
onramps?: Array<RampConfiguration>;
|
|
25
25
|
}
|
|
26
26
|
export declare function SupportedOnrampsResponseFromJSON(json: any): SupportedOnrampsResponse;
|
|
27
27
|
export declare function SupportedOnrampsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupportedOnrampsResponse;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
-
import {
|
|
2
|
+
import { RampConfigurationFromJSON, RampConfigurationToJSON } from './RampConfiguration.js';
|
|
3
3
|
|
|
4
4
|
/* tslint:disable */
|
|
5
5
|
function SupportedOnrampsResponseFromJSON(json) {
|
|
@@ -10,7 +10,7 @@ function SupportedOnrampsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
10
10
|
return json;
|
|
11
11
|
}
|
|
12
12
|
return {
|
|
13
|
-
'onramps': !exists(json, 'onramps') ? undefined : (json['onramps'].map(
|
|
13
|
+
'onramps': !exists(json, 'onramps') ? undefined : (json['onramps'].map(RampConfigurationFromJSON)),
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
function SupportedOnrampsResponseToJSON(value) {
|
|
@@ -21,7 +21,7 @@ function SupportedOnrampsResponseToJSON(value) {
|
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
return {
|
|
24
|
-
'onramps': value.onramps === undefined ? undefined : (value.onramps.map(
|
|
24
|
+
'onramps': value.onramps === undefined ? undefined : (value.onramps.map(RampConfigurationToJSON)),
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -22,6 +22,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
22
22
|
*/
|
|
23
23
|
exports.UnprocessableEntityErrorCode = void 0;
|
|
24
24
|
(function (UnprocessableEntityErrorCode) {
|
|
25
|
+
UnprocessableEntityErrorCode["InvalidExchangeProvider"] = "invalid_exchange_provider";
|
|
25
26
|
UnprocessableEntityErrorCode["InvalidEmail"] = "invalid_email";
|
|
26
27
|
UnprocessableEntityErrorCode["EmailAlreadyExists"] = "email_already_exists";
|
|
27
28
|
UnprocessableEntityErrorCode["AllowlistAlreadyExists"] = "allowlist_already_exists";
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
17
|
export declare enum UnprocessableEntityErrorCode {
|
|
18
|
+
InvalidExchangeProvider = "invalid_exchange_provider",
|
|
18
19
|
InvalidEmail = "invalid_email",
|
|
19
20
|
EmailAlreadyExists = "email_already_exists",
|
|
20
21
|
AllowlistAlreadyExists = "allowlist_already_exists",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
var UnprocessableEntityErrorCode;
|
|
20
20
|
(function (UnprocessableEntityErrorCode) {
|
|
21
|
+
UnprocessableEntityErrorCode["InvalidExchangeProvider"] = "invalid_exchange_provider";
|
|
21
22
|
UnprocessableEntityErrorCode["InvalidEmail"] = "invalid_email";
|
|
22
23
|
UnprocessableEntityErrorCode["EmailAlreadyExists"] = "email_already_exists";
|
|
23
24
|
UnprocessableEntityErrorCode["AllowlistAlreadyExists"] = "allowlist_already_exists";
|