@dynamic-labs/sdk-api-core 0.0.910 → 0.0.912

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.
Files changed (83) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +129 -0
  3. package/src/apis/SDKApi.d.ts +51 -1
  4. package/src/apis/SDKApi.js +129 -0
  5. package/src/apis/WaasApi.cjs +4 -0
  6. package/src/apis/WaasApi.js +4 -0
  7. package/src/index.cjs +88 -20
  8. package/src/index.js +19 -6
  9. package/src/models/BackupKeySharesToLocationsPendingResponse.cjs +55 -0
  10. package/src/models/BackupKeySharesToLocationsPendingResponse.d.ts +46 -0
  11. package/src/models/BackupKeySharesToLocationsPendingResponse.js +49 -0
  12. package/src/models/BackupKeySharesToLocationsRequest.cjs +3 -0
  13. package/src/models/BackupKeySharesToLocationsRequest.d.ts +6 -0
  14. package/src/models/BackupKeySharesToLocationsRequest.js +3 -0
  15. package/src/models/BackupKeySharesToLocationsResponse.cjs +12 -0
  16. package/src/models/BackupKeySharesToLocationsResponse.d.ts +14 -0
  17. package/src/models/BackupKeySharesToLocationsResponse.js +13 -1
  18. package/src/models/CheckoutTransaction.cjs +5 -5
  19. package/src/models/CheckoutTransaction.d.ts +5 -5
  20. package/src/models/CheckoutTransaction.js +5 -5
  21. package/src/models/CheckoutTransactionCreateRequest.cjs +2 -2
  22. package/src/models/CheckoutTransactionCreateRequest.d.ts +2 -2
  23. package/src/models/CheckoutTransactionCreateRequest.js +2 -2
  24. package/src/models/{CheckoutEvmApprovalData.cjs → SwapEvmApprovalData.cjs} +7 -7
  25. package/src/models/{CheckoutEvmApprovalData.d.ts → SwapEvmApprovalData.d.ts} +8 -8
  26. package/src/models/{CheckoutEvmApprovalData.js → SwapEvmApprovalData.js} +5 -5
  27. package/src/models/SwapEvmTransactionData.cjs +47 -0
  28. package/src/models/SwapEvmTransactionData.d.ts +69 -0
  29. package/src/models/SwapEvmTransactionData.js +41 -0
  30. package/src/models/SwapFee.cjs +42 -0
  31. package/src/models/SwapFee.d.ts +52 -0
  32. package/src/models/SwapFee.js +36 -0
  33. package/src/models/SwapGasCost.cjs +38 -0
  34. package/src/models/SwapGasCost.d.ts +40 -0
  35. package/src/models/SwapGasCost.js +32 -0
  36. package/src/models/{CheckoutPsbtTransactionData.cjs → SwapPsbtTransactionData.cjs} +7 -7
  37. package/src/models/SwapPsbtTransactionData.d.ts +27 -0
  38. package/src/models/{CheckoutPsbtTransactionData.js → SwapPsbtTransactionData.js} +5 -5
  39. package/src/models/SwapQuoteRequest.cjs +51 -0
  40. package/src/models/SwapQuoteRequest.d.ts +60 -0
  41. package/src/models/SwapQuoteRequest.js +45 -0
  42. package/src/models/SwapQuoteRequestSide.cjs +42 -0
  43. package/src/models/SwapQuoteRequestSide.d.ts +52 -0
  44. package/src/models/SwapQuoteRequestSide.js +36 -0
  45. package/src/models/SwapQuoteResponse.cjs +51 -0
  46. package/src/models/SwapQuoteResponse.d.ts +73 -0
  47. package/src/models/SwapQuoteResponse.js +45 -0
  48. package/src/models/SwapQuoteResponseSide.cjs +42 -0
  49. package/src/models/SwapQuoteResponseSide.d.ts +52 -0
  50. package/src/models/SwapQuoteResponseSide.js +36 -0
  51. package/src/models/{CheckoutSerializedTransactionData.cjs → SwapSerializedTransactionData.cjs} +7 -7
  52. package/src/models/SwapSerializedTransactionData.d.ts +27 -0
  53. package/src/models/{CheckoutSerializedTransactionData.js → SwapSerializedTransactionData.js} +5 -5
  54. package/src/models/SwapSigningPayload.cjs +48 -0
  55. package/src/models/SwapSigningPayload.d.ts +62 -0
  56. package/src/models/SwapSigningPayload.js +42 -0
  57. package/src/models/SwapStatusRequest.cjs +38 -0
  58. package/src/models/SwapStatusRequest.d.ts +40 -0
  59. package/src/models/SwapStatusRequest.js +32 -0
  60. package/src/models/SwapStatusRequestChain.cjs +36 -0
  61. package/src/models/SwapStatusRequestChain.d.ts +34 -0
  62. package/src/models/SwapStatusRequestChain.js +30 -0
  63. package/src/models/SwapStatusResponse.cjs +56 -0
  64. package/src/models/SwapStatusResponse.d.ts +73 -0
  65. package/src/models/SwapStatusResponse.js +50 -0
  66. package/src/models/SwapStep.cjs +48 -0
  67. package/src/models/SwapStep.d.ts +66 -0
  68. package/src/models/SwapStep.js +42 -0
  69. package/src/models/SwapStepSide.cjs +40 -0
  70. package/src/models/SwapStepSide.d.ts +46 -0
  71. package/src/models/SwapStepSide.js +34 -0
  72. package/src/models/SwapToken.cjs +47 -0
  73. package/src/models/SwapToken.d.ts +69 -0
  74. package/src/models/SwapToken.js +41 -0
  75. package/src/models/index.d.ts +18 -5
  76. package/src/models/CheckoutEvmTransactionData.cjs +0 -39
  77. package/src/models/CheckoutEvmTransactionData.d.ts +0 -45
  78. package/src/models/CheckoutEvmTransactionData.js +0 -33
  79. package/src/models/CheckoutPsbtTransactionData.d.ts +0 -27
  80. package/src/models/CheckoutSerializedTransactionData.d.ts +0 -27
  81. package/src/models/CheckoutSigningPayload.cjs +0 -48
  82. package/src/models/CheckoutSigningPayload.d.ts +0 -62
  83. package/src/models/CheckoutSigningPayload.js +0 -42
@@ -0,0 +1,42 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
3
+ import { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataToJSON } from './SwapEvmApprovalData.js';
4
+ import { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataToJSON } from './SwapEvmTransactionData.js';
5
+ import { SwapPsbtTransactionDataFromJSON, SwapPsbtTransactionDataToJSON } from './SwapPsbtTransactionData.js';
6
+ import { SwapSerializedTransactionDataFromJSON, SwapSerializedTransactionDataToJSON } from './SwapSerializedTransactionData.js';
7
+
8
+ /* tslint:disable */
9
+ function SwapSigningPayloadFromJSON(json) {
10
+ return SwapSigningPayloadFromJSONTyped(json);
11
+ }
12
+ function SwapSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'chainName': ChainEnumFromJSON(json['chainName']),
18
+ 'chainId': json['chainId'],
19
+ 'evmTransaction': !exists(json, 'evmTransaction') ? undefined : SwapEvmTransactionDataFromJSON(json['evmTransaction']),
20
+ 'evmApproval': !exists(json, 'evmApproval') ? undefined : SwapEvmApprovalDataFromJSON(json['evmApproval']),
21
+ 'serializedTransaction': !exists(json, 'serializedTransaction') ? undefined : SwapSerializedTransactionDataFromJSON(json['serializedTransaction']),
22
+ 'psbtTransaction': !exists(json, 'psbtTransaction') ? undefined : SwapPsbtTransactionDataFromJSON(json['psbtTransaction']),
23
+ };
24
+ }
25
+ function SwapSigningPayloadToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'chainName': ChainEnumToJSON(value.chainName),
34
+ 'chainId': value.chainId,
35
+ 'evmTransaction': SwapEvmTransactionDataToJSON(value.evmTransaction),
36
+ 'evmApproval': SwapEvmApprovalDataToJSON(value.evmApproval),
37
+ 'serializedTransaction': SwapSerializedTransactionDataToJSON(value.serializedTransaction),
38
+ 'psbtTransaction': SwapPsbtTransactionDataToJSON(value.psbtTransaction),
39
+ };
40
+ }
41
+
42
+ export { SwapSigningPayloadFromJSON, SwapSigningPayloadFromJSONTyped, SwapSigningPayloadToJSON };
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var SwapStatusRequestChain = require('./SwapStatusRequestChain.cjs');
7
+
8
+ /* tslint:disable */
9
+ function SwapStatusRequestFromJSON(json) {
10
+ return SwapStatusRequestFromJSONTyped(json);
11
+ }
12
+ function SwapStatusRequestFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'from': !runtime.exists(json, 'from') ? undefined : SwapStatusRequestChain.SwapStatusRequestChainFromJSON(json['from']),
18
+ 'to': !runtime.exists(json, 'to') ? undefined : SwapStatusRequestChain.SwapStatusRequestChainFromJSON(json['to']),
19
+ 'txHash': json['txHash'],
20
+ };
21
+ }
22
+ function SwapStatusRequestToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'from': SwapStatusRequestChain.SwapStatusRequestChainToJSON(value.from),
31
+ 'to': SwapStatusRequestChain.SwapStatusRequestChainToJSON(value.to),
32
+ 'txHash': value.txHash,
33
+ };
34
+ }
35
+
36
+ exports.SwapStatusRequestFromJSON = SwapStatusRequestFromJSON;
37
+ exports.SwapStatusRequestFromJSONTyped = SwapStatusRequestFromJSONTyped;
38
+ exports.SwapStatusRequestToJSON = SwapStatusRequestToJSON;
@@ -0,0 +1,40 @@
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 { SwapStatusRequestChain } from './SwapStatusRequestChain';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SwapStatusRequest
17
+ */
18
+ export interface SwapStatusRequest {
19
+ /**
20
+ *
21
+ * @type {SwapStatusRequestChain}
22
+ * @memberof SwapStatusRequest
23
+ */
24
+ from?: SwapStatusRequestChain;
25
+ /**
26
+ *
27
+ * @type {SwapStatusRequestChain}
28
+ * @memberof SwapStatusRequest
29
+ */
30
+ to?: SwapStatusRequestChain;
31
+ /**
32
+ * The on-chain transaction hash.
33
+ * @type {string}
34
+ * @memberof SwapStatusRequest
35
+ */
36
+ txHash: string;
37
+ }
38
+ export declare function SwapStatusRequestFromJSON(json: any): SwapStatusRequest;
39
+ export declare function SwapStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapStatusRequest;
40
+ export declare function SwapStatusRequestToJSON(value?: SwapStatusRequest | null): any;
@@ -0,0 +1,32 @@
1
+ import { exists } from '../runtime.js';
2
+ import { SwapStatusRequestChainFromJSON, SwapStatusRequestChainToJSON } from './SwapStatusRequestChain.js';
3
+
4
+ /* tslint:disable */
5
+ function SwapStatusRequestFromJSON(json) {
6
+ return SwapStatusRequestFromJSONTyped(json);
7
+ }
8
+ function SwapStatusRequestFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'from': !exists(json, 'from') ? undefined : SwapStatusRequestChainFromJSON(json['from']),
14
+ 'to': !exists(json, 'to') ? undefined : SwapStatusRequestChainFromJSON(json['to']),
15
+ 'txHash': json['txHash'],
16
+ };
17
+ }
18
+ function SwapStatusRequestToJSON(value) {
19
+ if (value === undefined) {
20
+ return undefined;
21
+ }
22
+ if (value === null) {
23
+ return null;
24
+ }
25
+ return {
26
+ 'from': SwapStatusRequestChainToJSON(value.from),
27
+ 'to': SwapStatusRequestChainToJSON(value.to),
28
+ 'txHash': value.txHash,
29
+ };
30
+ }
31
+
32
+ export { SwapStatusRequestFromJSON, SwapStatusRequestFromJSONTyped, SwapStatusRequestToJSON };
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var ChainEnum = require('./ChainEnum.cjs');
7
+
8
+ /* tslint:disable */
9
+ function SwapStatusRequestChainFromJSON(json) {
10
+ return SwapStatusRequestChainFromJSONTyped(json);
11
+ }
12
+ function SwapStatusRequestChainFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
18
+ 'chainName': !runtime.exists(json, 'chainName') ? undefined : ChainEnum.ChainEnumFromJSON(json['chainName']),
19
+ };
20
+ }
21
+ function SwapStatusRequestChainToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'chainId': value.chainId,
30
+ 'chainName': ChainEnum.ChainEnumToJSON(value.chainName),
31
+ };
32
+ }
33
+
34
+ exports.SwapStatusRequestChainFromJSON = SwapStatusRequestChainFromJSON;
35
+ exports.SwapStatusRequestChainFromJSONTyped = SwapStatusRequestChainFromJSONTyped;
36
+ exports.SwapStatusRequestChainToJSON = SwapStatusRequestChainToJSON;
@@ -0,0 +1,34 @@
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 { ChainEnum } from './ChainEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SwapStatusRequestChain
17
+ */
18
+ export interface SwapStatusRequestChain {
19
+ /**
20
+ * Chain ID. Speeds up the lookup when provided.
21
+ * @type {string}
22
+ * @memberof SwapStatusRequestChain
23
+ */
24
+ chainId?: string;
25
+ /**
26
+ *
27
+ * @type {ChainEnum}
28
+ * @memberof SwapStatusRequestChain
29
+ */
30
+ chainName?: ChainEnum;
31
+ }
32
+ export declare function SwapStatusRequestChainFromJSON(json: any): SwapStatusRequestChain;
33
+ export declare function SwapStatusRequestChainFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapStatusRequestChain;
34
+ export declare function SwapStatusRequestChainToJSON(value?: SwapStatusRequestChain | null): any;
@@ -0,0 +1,30 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
3
+
4
+ /* tslint:disable */
5
+ function SwapStatusRequestChainFromJSON(json) {
6
+ return SwapStatusRequestChainFromJSONTyped(json);
7
+ }
8
+ function SwapStatusRequestChainFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
14
+ 'chainName': !exists(json, 'chainName') ? undefined : ChainEnumFromJSON(json['chainName']),
15
+ };
16
+ }
17
+ function SwapStatusRequestChainToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'chainId': value.chainId,
26
+ 'chainName': ChainEnumToJSON(value.chainName),
27
+ };
28
+ }
29
+
30
+ export { SwapStatusRequestChainFromJSON, SwapStatusRequestChainFromJSONTyped, SwapStatusRequestChainToJSON };
@@ -0,0 +1,56 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ /**
9
+ * @export
10
+ * @enum {string}
11
+ */
12
+ exports.SwapStatusResponseStatusEnum = void 0;
13
+ (function (SwapStatusResponseStatusEnum) {
14
+ SwapStatusResponseStatusEnum["Pending"] = "PENDING";
15
+ SwapStatusResponseStatusEnum["Done"] = "DONE";
16
+ SwapStatusResponseStatusEnum["Failed"] = "FAILED";
17
+ SwapStatusResponseStatusEnum["NotFound"] = "NOT_FOUND";
18
+ })(exports.SwapStatusResponseStatusEnum || (exports.SwapStatusResponseStatusEnum = {}));
19
+ function SwapStatusResponseFromJSON(json) {
20
+ return SwapStatusResponseFromJSONTyped(json);
21
+ }
22
+ function SwapStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'error': !runtime.exists(json, 'error') ? undefined : json['error'],
28
+ 'explorerLink': !runtime.exists(json, 'explorerLink') ? undefined : json['explorerLink'],
29
+ 'message': !runtime.exists(json, 'message') ? undefined : json['message'],
30
+ 'receivingTxLink': !runtime.exists(json, 'receivingTxLink') ? undefined : json['receivingTxLink'],
31
+ 'sendingTxLink': !runtime.exists(json, 'sendingTxLink') ? undefined : json['sendingTxLink'],
32
+ 'status': json['status'],
33
+ 'substatus': !runtime.exists(json, 'substatus') ? undefined : json['substatus'],
34
+ };
35
+ }
36
+ function SwapStatusResponseToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'error': value.error,
45
+ 'explorerLink': value.explorerLink,
46
+ 'message': value.message,
47
+ 'receivingTxLink': value.receivingTxLink,
48
+ 'sendingTxLink': value.sendingTxLink,
49
+ 'status': value.status,
50
+ 'substatus': value.substatus,
51
+ };
52
+ }
53
+
54
+ exports.SwapStatusResponseFromJSON = SwapStatusResponseFromJSON;
55
+ exports.SwapStatusResponseFromJSONTyped = SwapStatusResponseFromJSONTyped;
56
+ exports.SwapStatusResponseToJSON = SwapStatusResponseToJSON;
@@ -0,0 +1,73 @@
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 SwapStatusResponse
16
+ */
17
+ export interface SwapStatusResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SwapStatusResponse
22
+ */
23
+ error?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SwapStatusResponse
28
+ */
29
+ explorerLink?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SwapStatusResponse
34
+ */
35
+ message?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SwapStatusResponse
40
+ */
41
+ receivingTxLink?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SwapStatusResponse
46
+ */
47
+ sendingTxLink?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof SwapStatusResponse
52
+ */
53
+ status: SwapStatusResponseStatusEnum;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof SwapStatusResponse
58
+ */
59
+ substatus?: string;
60
+ }
61
+ /**
62
+ * @export
63
+ * @enum {string}
64
+ */
65
+ export declare enum SwapStatusResponseStatusEnum {
66
+ Pending = "PENDING",
67
+ Done = "DONE",
68
+ Failed = "FAILED",
69
+ NotFound = "NOT_FOUND"
70
+ }
71
+ export declare function SwapStatusResponseFromJSON(json: any): SwapStatusResponse;
72
+ export declare function SwapStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapStatusResponse;
73
+ export declare function SwapStatusResponseToJSON(value?: SwapStatusResponse | null): any;
@@ -0,0 +1,50 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var SwapStatusResponseStatusEnum;
9
+ (function (SwapStatusResponseStatusEnum) {
10
+ SwapStatusResponseStatusEnum["Pending"] = "PENDING";
11
+ SwapStatusResponseStatusEnum["Done"] = "DONE";
12
+ SwapStatusResponseStatusEnum["Failed"] = "FAILED";
13
+ SwapStatusResponseStatusEnum["NotFound"] = "NOT_FOUND";
14
+ })(SwapStatusResponseStatusEnum || (SwapStatusResponseStatusEnum = {}));
15
+ function SwapStatusResponseFromJSON(json) {
16
+ return SwapStatusResponseFromJSONTyped(json);
17
+ }
18
+ function SwapStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
19
+ if ((json === undefined) || (json === null)) {
20
+ return json;
21
+ }
22
+ return {
23
+ 'error': !exists(json, 'error') ? undefined : json['error'],
24
+ 'explorerLink': !exists(json, 'explorerLink') ? undefined : json['explorerLink'],
25
+ 'message': !exists(json, 'message') ? undefined : json['message'],
26
+ 'receivingTxLink': !exists(json, 'receivingTxLink') ? undefined : json['receivingTxLink'],
27
+ 'sendingTxLink': !exists(json, 'sendingTxLink') ? undefined : json['sendingTxLink'],
28
+ 'status': json['status'],
29
+ 'substatus': !exists(json, 'substatus') ? undefined : json['substatus'],
30
+ };
31
+ }
32
+ function SwapStatusResponseToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'error': value.error,
41
+ 'explorerLink': value.explorerLink,
42
+ 'message': value.message,
43
+ 'receivingTxLink': value.receivingTxLink,
44
+ 'sendingTxLink': value.sendingTxLink,
45
+ 'status': value.status,
46
+ 'substatus': value.substatus,
47
+ };
48
+ }
49
+
50
+ export { SwapStatusResponseFromJSON, SwapStatusResponseFromJSONTyped, SwapStatusResponseStatusEnum, SwapStatusResponseToJSON };
@@ -0,0 +1,48 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var SwapFee = require('./SwapFee.cjs');
7
+ var SwapGasCost = require('./SwapGasCost.cjs');
8
+ var SwapStepSide = require('./SwapStepSide.cjs');
9
+
10
+ /* tslint:disable */
11
+ function SwapStepFromJSON(json) {
12
+ return SwapStepFromJSONTyped(json);
13
+ }
14
+ function SwapStepFromJSONTyped(json, ignoreDiscriminator) {
15
+ if ((json === undefined) || (json === null)) {
16
+ return json;
17
+ }
18
+ return {
19
+ 'feeCosts': !runtime.exists(json, 'feeCosts') ? undefined : (json['feeCosts'].map(SwapFee.SwapFeeFromJSON)),
20
+ 'from': SwapStepSide.SwapStepSideFromJSON(json['from']),
21
+ 'gasCosts': !runtime.exists(json, 'gasCosts') ? undefined : (json['gasCosts'].map(SwapGasCost.SwapGasCostFromJSON)),
22
+ 'id': json['id'],
23
+ 'to': SwapStepSide.SwapStepSideFromJSON(json['to']),
24
+ 'tool': json['tool'],
25
+ 'type': json['type'],
26
+ };
27
+ }
28
+ function SwapStepToJSON(value) {
29
+ if (value === undefined) {
30
+ return undefined;
31
+ }
32
+ if (value === null) {
33
+ return null;
34
+ }
35
+ return {
36
+ 'feeCosts': value.feeCosts === undefined ? undefined : (value.feeCosts.map(SwapFee.SwapFeeToJSON)),
37
+ 'from': SwapStepSide.SwapStepSideToJSON(value.from),
38
+ 'gasCosts': value.gasCosts === undefined ? undefined : (value.gasCosts.map(SwapGasCost.SwapGasCostToJSON)),
39
+ 'id': value.id,
40
+ 'to': SwapStepSide.SwapStepSideToJSON(value.to),
41
+ 'tool': value.tool,
42
+ 'type': value.type,
43
+ };
44
+ }
45
+
46
+ exports.SwapStepFromJSON = SwapStepFromJSON;
47
+ exports.SwapStepFromJSONTyped = SwapStepFromJSONTyped;
48
+ exports.SwapStepToJSON = SwapStepToJSON;
@@ -0,0 +1,66 @@
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 { SwapFee } from './SwapFee';
13
+ import { SwapGasCost } from './SwapGasCost';
14
+ import { SwapStepSide } from './SwapStepSide';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface SwapStep
19
+ */
20
+ export interface SwapStep {
21
+ /**
22
+ *
23
+ * @type {Array<SwapFee>}
24
+ * @memberof SwapStep
25
+ */
26
+ feeCosts?: Array<SwapFee>;
27
+ /**
28
+ *
29
+ * @type {SwapStepSide}
30
+ * @memberof SwapStep
31
+ */
32
+ from: SwapStepSide;
33
+ /**
34
+ *
35
+ * @type {Array<SwapGasCost>}
36
+ * @memberof SwapStep
37
+ */
38
+ gasCosts?: Array<SwapGasCost>;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof SwapStep
43
+ */
44
+ id: string;
45
+ /**
46
+ *
47
+ * @type {SwapStepSide}
48
+ * @memberof SwapStep
49
+ */
50
+ to: SwapStepSide;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof SwapStep
55
+ */
56
+ tool: string;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof SwapStep
61
+ */
62
+ type: string;
63
+ }
64
+ export declare function SwapStepFromJSON(json: any): SwapStep;
65
+ export declare function SwapStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapStep;
66
+ export declare function SwapStepToJSON(value?: SwapStep | null): any;
@@ -0,0 +1,42 @@
1
+ import { exists } from '../runtime.js';
2
+ import { SwapFeeFromJSON, SwapFeeToJSON } from './SwapFee.js';
3
+ import { SwapGasCostFromJSON, SwapGasCostToJSON } from './SwapGasCost.js';
4
+ import { SwapStepSideFromJSON, SwapStepSideToJSON } from './SwapStepSide.js';
5
+
6
+ /* tslint:disable */
7
+ function SwapStepFromJSON(json) {
8
+ return SwapStepFromJSONTyped(json);
9
+ }
10
+ function SwapStepFromJSONTyped(json, ignoreDiscriminator) {
11
+ if ((json === undefined) || (json === null)) {
12
+ return json;
13
+ }
14
+ return {
15
+ 'feeCosts': !exists(json, 'feeCosts') ? undefined : (json['feeCosts'].map(SwapFeeFromJSON)),
16
+ 'from': SwapStepSideFromJSON(json['from']),
17
+ 'gasCosts': !exists(json, 'gasCosts') ? undefined : (json['gasCosts'].map(SwapGasCostFromJSON)),
18
+ 'id': json['id'],
19
+ 'to': SwapStepSideFromJSON(json['to']),
20
+ 'tool': json['tool'],
21
+ 'type': json['type'],
22
+ };
23
+ }
24
+ function SwapStepToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'feeCosts': value.feeCosts === undefined ? undefined : (value.feeCosts.map(SwapFeeToJSON)),
33
+ 'from': SwapStepSideToJSON(value.from),
34
+ 'gasCosts': value.gasCosts === undefined ? undefined : (value.gasCosts.map(SwapGasCostToJSON)),
35
+ 'id': value.id,
36
+ 'to': SwapStepSideToJSON(value.to),
37
+ 'tool': value.tool,
38
+ 'type': value.type,
39
+ };
40
+ }
41
+
42
+ export { SwapStepFromJSON, SwapStepFromJSONTyped, SwapStepToJSON };
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var SwapToken = require('./SwapToken.cjs');
7
+
8
+ /* tslint:disable */
9
+ function SwapStepSideFromJSON(json) {
10
+ return SwapStepSideFromJSONTyped(json);
11
+ }
12
+ function SwapStepSideFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'amount': json['amount'],
18
+ 'amountMin': !runtime.exists(json, 'amountMin') ? undefined : json['amountMin'],
19
+ 'amountUSD': !runtime.exists(json, 'amountUSD') ? undefined : json['amountUSD'],
20
+ 'token': SwapToken.SwapTokenFromJSON(json['token']),
21
+ };
22
+ }
23
+ function SwapStepSideToJSON(value) {
24
+ if (value === undefined) {
25
+ return undefined;
26
+ }
27
+ if (value === null) {
28
+ return null;
29
+ }
30
+ return {
31
+ 'amount': value.amount,
32
+ 'amountMin': value.amountMin,
33
+ 'amountUSD': value.amountUSD,
34
+ 'token': SwapToken.SwapTokenToJSON(value.token),
35
+ };
36
+ }
37
+
38
+ exports.SwapStepSideFromJSON = SwapStepSideFromJSON;
39
+ exports.SwapStepSideFromJSONTyped = SwapStepSideFromJSONTyped;
40
+ exports.SwapStepSideToJSON = SwapStepSideToJSON;
@@ -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 { SwapToken } from './SwapToken';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SwapStepSide
17
+ */
18
+ export interface SwapStepSide {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SwapStepSide
23
+ */
24
+ amount: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SwapStepSide
29
+ */
30
+ amountMin?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof SwapStepSide
35
+ */
36
+ amountUSD?: string;
37
+ /**
38
+ *
39
+ * @type {SwapToken}
40
+ * @memberof SwapStepSide
41
+ */
42
+ token: SwapToken;
43
+ }
44
+ export declare function SwapStepSideFromJSON(json: any): SwapStepSide;
45
+ export declare function SwapStepSideFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapStepSide;
46
+ export declare function SwapStepSideToJSON(value?: SwapStepSide | null): any;