@dynamic-labs/sdk-api-core 0.0.920 → 0.0.922
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 +6135 -7301
- package/src/apis/SDKApi.d.ts +3 -3
- package/src/apis/SDKApi.js +6135 -7301
- package/src/apis/WaasApi.cjs +31 -40
- package/src/apis/WaasApi.js +31 -40
- package/src/deviceNonceSignatureEndpoints.cjs +1 -1
- package/src/deviceNonceSignatureEndpoints.js +1 -1
- package/src/index.cjs +8 -16
- package/src/index.js +2 -4
- package/src/models/CheckoutTransaction.cjs +3 -10
- package/src/models/CheckoutTransaction.d.ts +3 -22
- package/src/models/CheckoutTransaction.js +3 -10
- package/src/models/CheckoutTransactionQuote.cjs +51 -0
- package/src/models/CheckoutTransactionQuote.d.ts +77 -0
- package/src/models/CheckoutTransactionQuote.js +45 -0
- package/src/models/CreateEmbeddedWalletSpecificOpts.cjs +2 -2
- package/src/models/CreateEmbeddedWalletSpecificOpts.js +2 -2
- package/src/models/Provider.cjs +2 -0
- package/src/models/Provider.d.ts +6 -0
- package/src/models/Provider.js +2 -0
- package/src/models/SwapSigningPayload.cjs +4 -6
- package/src/models/SwapSigningPayload.d.ts +7 -9
- package/src/models/SwapSigningPayload.js +4 -6
- package/src/models/TransactionFeeEstimateRequest.cjs +37 -0
- package/src/models/TransactionFeeEstimateRequest.d.ts +39 -0
- package/src/models/TransactionFeeEstimateRequest.js +31 -0
- package/src/models/index.d.ts +2 -4
- package/src/runtime.cjs +45 -36
- package/src/runtime.js +45 -36
- package/_virtual/_tslib.cjs +0 -35
- package/_virtual/_tslib.js +0 -31
- package/src/models/CheckoutQuoteSnapshot.cjs +0 -50
- package/src/models/CheckoutQuoteSnapshot.d.ts +0 -76
- package/src/models/CheckoutQuoteSnapshot.js +0 -44
- package/src/models/InlineObject.cjs +0 -43
- package/src/models/InlineObject.d.ts +0 -27
- package/src/models/InlineObject.js +0 -37
- package/src/models/SwapPsbtTransactionData.cjs +0 -43
- package/src/models/SwapPsbtTransactionData.d.ts +0 -27
- package/src/models/SwapPsbtTransactionData.js +0 -37
- package/src/models/SwapSerializedTransactionData.cjs +0 -43
- package/src/models/SwapSerializedTransactionData.d.ts +0 -27
- package/src/models/SwapSerializedTransactionData.js +0 -37
package/src/apis/WaasApi.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
6
5
|
var runtime = require('../runtime.cjs');
|
|
7
6
|
require('../models/ExchangeKeyEnum.cjs');
|
|
8
7
|
require('../models/ChainEnum.cjs');
|
|
@@ -99,60 +98,52 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
99
98
|
* Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
|
|
100
99
|
* Get delegated access encryption public key for an environment
|
|
101
100
|
*/
|
|
102
|
-
getDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => DelegatedAccessEncryptionPublicKeyResponse.DelegatedAccessEncryptionPublicKeyResponseFromJSON(jsonValue));
|
|
116
|
-
});
|
|
101
|
+
async getDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
|
|
102
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
103
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getDelegatedAccessEncryptionPublicKey.');
|
|
104
|
+
}
|
|
105
|
+
const queryParameters = {};
|
|
106
|
+
const headerParameters = {};
|
|
107
|
+
const response = await this.request({
|
|
108
|
+
path: `/sdk/{environmentId}/waas/delegatedAccess/encryptionPublicKey`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
109
|
+
method: 'GET',
|
|
110
|
+
headers: headerParameters,
|
|
111
|
+
query: queryParameters,
|
|
112
|
+
}, initOverrides);
|
|
113
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DelegatedAccessEncryptionPublicKeyResponse.DelegatedAccessEncryptionPublicKeyResponseFromJSON(jsonValue));
|
|
117
114
|
}
|
|
118
115
|
/**
|
|
119
116
|
* Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
|
|
120
117
|
* Get delegated access encryption public key for an environment
|
|
121
118
|
*/
|
|
122
|
-
getDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
return yield response.value();
|
|
126
|
-
});
|
|
119
|
+
async getDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
|
|
120
|
+
const response = await this.getDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
|
|
121
|
+
return await response.value();
|
|
127
122
|
}
|
|
128
123
|
/**
|
|
129
124
|
* Returns the allowed HTTP methods and CORS headers for this endpoint.
|
|
130
125
|
* Get CORS and allowed methods for delegated access encryption public keys endpoint
|
|
131
126
|
*/
|
|
132
|
-
optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
return new runtime.VoidApiResponse(response);
|
|
146
|
-
});
|
|
127
|
+
async optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
|
|
128
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
129
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling optionsDelegatedAccessEncryptionPublicKey.');
|
|
130
|
+
}
|
|
131
|
+
const queryParameters = {};
|
|
132
|
+
const headerParameters = {};
|
|
133
|
+
const response = await this.request({
|
|
134
|
+
path: `/sdk/{environmentId}/waas/delegatedAccess/encryptionPublicKey`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
135
|
+
method: 'OPTIONS',
|
|
136
|
+
headers: headerParameters,
|
|
137
|
+
query: queryParameters,
|
|
138
|
+
}, initOverrides);
|
|
139
|
+
return new runtime.VoidApiResponse(response);
|
|
147
140
|
}
|
|
148
141
|
/**
|
|
149
142
|
* Returns the allowed HTTP methods and CORS headers for this endpoint.
|
|
150
143
|
* Get CORS and allowed methods for delegated access encryption public keys endpoint
|
|
151
144
|
*/
|
|
152
|
-
optionsDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
|
|
153
|
-
|
|
154
|
-
yield this.optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
|
|
155
|
-
});
|
|
145
|
+
async optionsDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
|
|
146
|
+
await this.optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
|
|
156
147
|
}
|
|
157
148
|
}
|
|
158
149
|
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
2
1
|
import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse } from '../runtime.js';
|
|
3
2
|
import '../models/ExchangeKeyEnum.js';
|
|
4
3
|
import '../models/ChainEnum.js';
|
|
@@ -95,60 +94,52 @@ class WaasApi extends BaseAPI {
|
|
|
95
94
|
* Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
|
|
96
95
|
* Get delegated access encryption public key for an environment
|
|
97
96
|
*/
|
|
98
|
-
getDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return new JSONApiResponse(response, (jsonValue) => DelegatedAccessEncryptionPublicKeyResponseFromJSON(jsonValue));
|
|
112
|
-
});
|
|
97
|
+
async getDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
|
|
98
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
99
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getDelegatedAccessEncryptionPublicKey.');
|
|
100
|
+
}
|
|
101
|
+
const queryParameters = {};
|
|
102
|
+
const headerParameters = {};
|
|
103
|
+
const response = await this.request({
|
|
104
|
+
path: `/sdk/{environmentId}/waas/delegatedAccess/encryptionPublicKey`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
105
|
+
method: 'GET',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
return new JSONApiResponse(response, (jsonValue) => DelegatedAccessEncryptionPublicKeyResponseFromJSON(jsonValue));
|
|
113
110
|
}
|
|
114
111
|
/**
|
|
115
112
|
* Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
|
|
116
113
|
* Get delegated access encryption public key for an environment
|
|
117
114
|
*/
|
|
118
|
-
getDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
return yield response.value();
|
|
122
|
-
});
|
|
115
|
+
async getDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
|
|
116
|
+
const response = await this.getDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
|
|
117
|
+
return await response.value();
|
|
123
118
|
}
|
|
124
119
|
/**
|
|
125
120
|
* Returns the allowed HTTP methods and CORS headers for this endpoint.
|
|
126
121
|
* Get CORS and allowed methods for delegated access encryption public keys endpoint
|
|
127
122
|
*/
|
|
128
|
-
optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return new VoidApiResponse(response);
|
|
142
|
-
});
|
|
123
|
+
async optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
|
|
124
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
125
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling optionsDelegatedAccessEncryptionPublicKey.');
|
|
126
|
+
}
|
|
127
|
+
const queryParameters = {};
|
|
128
|
+
const headerParameters = {};
|
|
129
|
+
const response = await this.request({
|
|
130
|
+
path: `/sdk/{environmentId}/waas/delegatedAccess/encryptionPublicKey`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
131
|
+
method: 'OPTIONS',
|
|
132
|
+
headers: headerParameters,
|
|
133
|
+
query: queryParameters,
|
|
134
|
+
}, initOverrides);
|
|
135
|
+
return new VoidApiResponse(response);
|
|
143
136
|
}
|
|
144
137
|
/**
|
|
145
138
|
* Returns the allowed HTTP methods and CORS headers for this endpoint.
|
|
146
139
|
* Get CORS and allowed methods for delegated access encryption public keys endpoint
|
|
147
140
|
*/
|
|
148
|
-
optionsDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
|
|
149
|
-
|
|
150
|
-
yield this.optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
|
|
151
|
-
});
|
|
141
|
+
async optionsDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
|
|
142
|
+
await this.optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
|
|
152
143
|
}
|
|
153
144
|
}
|
|
154
145
|
|
|
@@ -49,7 +49,7 @@ const isDeviceNonceSignatureRequiredForUrl = (url) => {
|
|
|
49
49
|
const pathname = new URL(url).pathname;
|
|
50
50
|
return NONCE_SIGNATURE_REGEXPS.some((re) => re.test(pathname));
|
|
51
51
|
}
|
|
52
|
-
catch
|
|
52
|
+
catch {
|
|
53
53
|
return NONCE_SIGNATURE_REGEXPS.some((re) => re.test(url));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
@@ -45,7 +45,7 @@ const isDeviceNonceSignatureRequiredForUrl = (url) => {
|
|
|
45
45
|
const pathname = new URL(url).pathname;
|
|
46
46
|
return NONCE_SIGNATURE_REGEXPS.some((re) => re.test(pathname));
|
|
47
47
|
}
|
|
48
|
-
catch
|
|
48
|
+
catch {
|
|
49
49
|
return NONCE_SIGNATURE_REGEXPS.some((re) => re.test(url));
|
|
50
50
|
}
|
|
51
51
|
};
|
package/src/index.cjs
CHANGED
|
@@ -47,7 +47,6 @@ var CheckoutFailure = require('./models/CheckoutFailure.cjs');
|
|
|
47
47
|
var CheckoutFeeBreakdown = require('./models/CheckoutFeeBreakdown.cjs');
|
|
48
48
|
var CheckoutGasEstimate = require('./models/CheckoutGasEstimate.cjs');
|
|
49
49
|
var CheckoutModeEnum = require('./models/CheckoutModeEnum.cjs');
|
|
50
|
-
var CheckoutQuoteSnapshot = require('./models/CheckoutQuoteSnapshot.cjs');
|
|
51
50
|
var CheckoutRiskStateEnum = require('./models/CheckoutRiskStateEnum.cjs');
|
|
52
51
|
var CheckoutSettlementData = require('./models/CheckoutSettlementData.cjs');
|
|
53
52
|
var CheckoutSettlementStateEnum = require('./models/CheckoutSettlementStateEnum.cjs');
|
|
@@ -56,6 +55,7 @@ var CheckoutTransaction = require('./models/CheckoutTransaction.cjs');
|
|
|
56
55
|
var CheckoutTransactionCreateRequest = require('./models/CheckoutTransactionCreateRequest.cjs');
|
|
57
56
|
var CheckoutTransactionCreateResponse = require('./models/CheckoutTransactionCreateResponse.cjs');
|
|
58
57
|
var CheckoutTransactionDestinationAddress = require('./models/CheckoutTransactionDestinationAddress.cjs');
|
|
58
|
+
var CheckoutTransactionQuote = require('./models/CheckoutTransactionQuote.cjs');
|
|
59
59
|
var CheckoutUpdateRequest = require('./models/CheckoutUpdateRequest.cjs');
|
|
60
60
|
var CheckoutsResponse = require('./models/CheckoutsResponse.cjs');
|
|
61
61
|
var CoinbaseMpcWalletProperties = require('./models/CoinbaseMpcWalletProperties.cjs');
|
|
@@ -177,7 +177,6 @@ var InitEmailAuthRequest = require('./models/InitEmailAuthRequest.cjs');
|
|
|
177
177
|
var InitEmailAuthResponse = require('./models/InitEmailAuthResponse.cjs');
|
|
178
178
|
var InitPasskeyRecoveryRequest = require('./models/InitPasskeyRecoveryRequest.cjs');
|
|
179
179
|
var InitPasskeyRecoveryResponse = require('./models/InitPasskeyRecoveryResponse.cjs');
|
|
180
|
-
var InlineObject = require('./models/InlineObject.cjs');
|
|
181
180
|
var IntegrationSetting = require('./models/IntegrationSetting.cjs');
|
|
182
181
|
var InternalServerError = require('./models/InternalServerError.cjs');
|
|
183
182
|
var JwksKey = require('./models/JwksKey.cjs');
|
|
@@ -372,12 +371,10 @@ var SwapEvmApprovalData = require('./models/SwapEvmApprovalData.cjs');
|
|
|
372
371
|
var SwapEvmTransactionData = require('./models/SwapEvmTransactionData.cjs');
|
|
373
372
|
var SwapFee = require('./models/SwapFee.cjs');
|
|
374
373
|
var SwapGasCost = require('./models/SwapGasCost.cjs');
|
|
375
|
-
var SwapPsbtTransactionData = require('./models/SwapPsbtTransactionData.cjs');
|
|
376
374
|
var SwapQuoteRequest = require('./models/SwapQuoteRequest.cjs');
|
|
377
375
|
var SwapQuoteRequestSide = require('./models/SwapQuoteRequestSide.cjs');
|
|
378
376
|
var SwapQuoteResponse = require('./models/SwapQuoteResponse.cjs');
|
|
379
377
|
var SwapQuoteResponseSide = require('./models/SwapQuoteResponseSide.cjs');
|
|
380
|
-
var SwapSerializedTransactionData = require('./models/SwapSerializedTransactionData.cjs');
|
|
381
378
|
var SwapSigningPayload = require('./models/SwapSigningPayload.cjs');
|
|
382
379
|
var SwapStatusRequest = require('./models/SwapStatusRequest.cjs');
|
|
383
380
|
var SwapStatusRequestChain = require('./models/SwapStatusRequestChain.cjs');
|
|
@@ -392,6 +389,7 @@ var TimeUnitEnum = require('./models/TimeUnitEnum.cjs');
|
|
|
392
389
|
var TokenBalance = require('./models/TokenBalance.cjs');
|
|
393
390
|
var TokenScope = require('./models/TokenScope.cjs');
|
|
394
391
|
var TooManyRequests = require('./models/TooManyRequests.cjs');
|
|
392
|
+
var TransactionFeeEstimateRequest = require('./models/TransactionFeeEstimateRequest.cjs');
|
|
395
393
|
var TransactionFeeEstimateResponse = require('./models/TransactionFeeEstimateResponse.cjs');
|
|
396
394
|
var TransferDestination = require('./models/TransferDestination.cjs');
|
|
397
395
|
var TransferDestinationResponse = require('./models/TransferDestinationResponse.cjs');
|
|
@@ -633,9 +631,6 @@ Object.defineProperty(exports, 'CheckoutModeEnum', {
|
|
|
633
631
|
exports.CheckoutModeEnumFromJSON = CheckoutModeEnum.CheckoutModeEnumFromJSON;
|
|
634
632
|
exports.CheckoutModeEnumFromJSONTyped = CheckoutModeEnum.CheckoutModeEnumFromJSONTyped;
|
|
635
633
|
exports.CheckoutModeEnumToJSON = CheckoutModeEnum.CheckoutModeEnumToJSON;
|
|
636
|
-
exports.CheckoutQuoteSnapshotFromJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSON;
|
|
637
|
-
exports.CheckoutQuoteSnapshotFromJSONTyped = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSONTyped;
|
|
638
|
-
exports.CheckoutQuoteSnapshotToJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotToJSON;
|
|
639
634
|
Object.defineProperty(exports, 'CheckoutRiskStateEnum', {
|
|
640
635
|
enumerable: true,
|
|
641
636
|
get: function () { return CheckoutRiskStateEnum.CheckoutRiskStateEnum; }
|
|
@@ -672,6 +667,9 @@ exports.CheckoutTransactionCreateResponseToJSON = CheckoutTransactionCreateRespo
|
|
|
672
667
|
exports.CheckoutTransactionDestinationAddressFromJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSON;
|
|
673
668
|
exports.CheckoutTransactionDestinationAddressFromJSONTyped = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSONTyped;
|
|
674
669
|
exports.CheckoutTransactionDestinationAddressToJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressToJSON;
|
|
670
|
+
exports.CheckoutTransactionQuoteFromJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSON;
|
|
671
|
+
exports.CheckoutTransactionQuoteFromJSONTyped = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSONTyped;
|
|
672
|
+
exports.CheckoutTransactionQuoteToJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteToJSON;
|
|
675
673
|
exports.CheckoutUpdateRequestFromJSON = CheckoutUpdateRequest.CheckoutUpdateRequestFromJSON;
|
|
676
674
|
exports.CheckoutUpdateRequestFromJSONTyped = CheckoutUpdateRequest.CheckoutUpdateRequestFromJSONTyped;
|
|
677
675
|
exports.CheckoutUpdateRequestToJSON = CheckoutUpdateRequest.CheckoutUpdateRequestToJSON;
|
|
@@ -1135,9 +1133,6 @@ exports.InitPasskeyRecoveryRequestToJSON = InitPasskeyRecoveryRequest.InitPasske
|
|
|
1135
1133
|
exports.InitPasskeyRecoveryResponseFromJSON = InitPasskeyRecoveryResponse.InitPasskeyRecoveryResponseFromJSON;
|
|
1136
1134
|
exports.InitPasskeyRecoveryResponseFromJSONTyped = InitPasskeyRecoveryResponse.InitPasskeyRecoveryResponseFromJSONTyped;
|
|
1137
1135
|
exports.InitPasskeyRecoveryResponseToJSON = InitPasskeyRecoveryResponse.InitPasskeyRecoveryResponseToJSON;
|
|
1138
|
-
exports.InlineObjectFromJSON = InlineObject.InlineObjectFromJSON;
|
|
1139
|
-
exports.InlineObjectFromJSONTyped = InlineObject.InlineObjectFromJSONTyped;
|
|
1140
|
-
exports.InlineObjectToJSON = InlineObject.InlineObjectToJSON;
|
|
1141
1136
|
exports.IntegrationSettingFromJSON = IntegrationSetting.IntegrationSettingFromJSON;
|
|
1142
1137
|
exports.IntegrationSettingFromJSONTyped = IntegrationSetting.IntegrationSettingFromJSONTyped;
|
|
1143
1138
|
exports.IntegrationSettingToJSON = IntegrationSetting.IntegrationSettingToJSON;
|
|
@@ -1844,9 +1839,6 @@ exports.SwapFeeToJSON = SwapFee.SwapFeeToJSON;
|
|
|
1844
1839
|
exports.SwapGasCostFromJSON = SwapGasCost.SwapGasCostFromJSON;
|
|
1845
1840
|
exports.SwapGasCostFromJSONTyped = SwapGasCost.SwapGasCostFromJSONTyped;
|
|
1846
1841
|
exports.SwapGasCostToJSON = SwapGasCost.SwapGasCostToJSON;
|
|
1847
|
-
exports.SwapPsbtTransactionDataFromJSON = SwapPsbtTransactionData.SwapPsbtTransactionDataFromJSON;
|
|
1848
|
-
exports.SwapPsbtTransactionDataFromJSONTyped = SwapPsbtTransactionData.SwapPsbtTransactionDataFromJSONTyped;
|
|
1849
|
-
exports.SwapPsbtTransactionDataToJSON = SwapPsbtTransactionData.SwapPsbtTransactionDataToJSON;
|
|
1850
1842
|
exports.SwapQuoteRequestFromJSON = SwapQuoteRequest.SwapQuoteRequestFromJSON;
|
|
1851
1843
|
exports.SwapQuoteRequestFromJSONTyped = SwapQuoteRequest.SwapQuoteRequestFromJSONTyped;
|
|
1852
1844
|
Object.defineProperty(exports, 'SwapQuoteRequestOrderEnum', {
|
|
@@ -1863,9 +1855,6 @@ exports.SwapQuoteResponseToJSON = SwapQuoteResponse.SwapQuoteResponseToJSON;
|
|
|
1863
1855
|
exports.SwapQuoteResponseSideFromJSON = SwapQuoteResponseSide.SwapQuoteResponseSideFromJSON;
|
|
1864
1856
|
exports.SwapQuoteResponseSideFromJSONTyped = SwapQuoteResponseSide.SwapQuoteResponseSideFromJSONTyped;
|
|
1865
1857
|
exports.SwapQuoteResponseSideToJSON = SwapQuoteResponseSide.SwapQuoteResponseSideToJSON;
|
|
1866
|
-
exports.SwapSerializedTransactionDataFromJSON = SwapSerializedTransactionData.SwapSerializedTransactionDataFromJSON;
|
|
1867
|
-
exports.SwapSerializedTransactionDataFromJSONTyped = SwapSerializedTransactionData.SwapSerializedTransactionDataFromJSONTyped;
|
|
1868
|
-
exports.SwapSerializedTransactionDataToJSON = SwapSerializedTransactionData.SwapSerializedTransactionDataToJSON;
|
|
1869
1858
|
exports.SwapSigningPayloadFromJSON = SwapSigningPayload.SwapSigningPayloadFromJSON;
|
|
1870
1859
|
exports.SwapSigningPayloadFromJSONTyped = SwapSigningPayload.SwapSigningPayloadFromJSONTyped;
|
|
1871
1860
|
exports.SwapSigningPayloadToJSON = SwapSigningPayload.SwapSigningPayloadToJSON;
|
|
@@ -1924,6 +1913,9 @@ exports.TokenScopeToJSON = TokenScope.TokenScopeToJSON;
|
|
|
1924
1913
|
exports.TooManyRequestsFromJSON = TooManyRequests.TooManyRequestsFromJSON;
|
|
1925
1914
|
exports.TooManyRequestsFromJSONTyped = TooManyRequests.TooManyRequestsFromJSONTyped;
|
|
1926
1915
|
exports.TooManyRequestsToJSON = TooManyRequests.TooManyRequestsToJSON;
|
|
1916
|
+
exports.TransactionFeeEstimateRequestFromJSON = TransactionFeeEstimateRequest.TransactionFeeEstimateRequestFromJSON;
|
|
1917
|
+
exports.TransactionFeeEstimateRequestFromJSONTyped = TransactionFeeEstimateRequest.TransactionFeeEstimateRequestFromJSONTyped;
|
|
1918
|
+
exports.TransactionFeeEstimateRequestToJSON = TransactionFeeEstimateRequest.TransactionFeeEstimateRequestToJSON;
|
|
1927
1919
|
exports.TransactionFeeEstimateResponseFromJSON = TransactionFeeEstimateResponse.TransactionFeeEstimateResponseFromJSON;
|
|
1928
1920
|
exports.TransactionFeeEstimateResponseFromJSONTyped = TransactionFeeEstimateResponse.TransactionFeeEstimateResponseFromJSONTyped;
|
|
1929
1921
|
exports.TransactionFeeEstimateResponseToJSON = TransactionFeeEstimateResponse.TransactionFeeEstimateResponseToJSON;
|
package/src/index.js
CHANGED
|
@@ -43,7 +43,6 @@ export { CheckoutFailureFromJSON, CheckoutFailureFromJSONTyped, CheckoutFailureT
|
|
|
43
43
|
export { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownFromJSONTyped, CheckoutFeeBreakdownToJSON } from './models/CheckoutFeeBreakdown.js';
|
|
44
44
|
export { CheckoutGasEstimateFromJSON, CheckoutGasEstimateFromJSONTyped, CheckoutGasEstimateToJSON } from './models/CheckoutGasEstimate.js';
|
|
45
45
|
export { CheckoutModeEnum, CheckoutModeEnumFromJSON, CheckoutModeEnumFromJSONTyped, CheckoutModeEnumToJSON } from './models/CheckoutModeEnum.js';
|
|
46
|
-
export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON } from './models/CheckoutQuoteSnapshot.js';
|
|
47
46
|
export { CheckoutRiskStateEnum, CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumFromJSONTyped, CheckoutRiskStateEnumToJSON } from './models/CheckoutRiskStateEnum.js';
|
|
48
47
|
export { CheckoutSettlementDataFromJSON, CheckoutSettlementDataFromJSONTyped, CheckoutSettlementDataToJSON } from './models/CheckoutSettlementData.js';
|
|
49
48
|
export { CheckoutSettlementStateEnum, CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumFromJSONTyped, CheckoutSettlementStateEnumToJSON } from './models/CheckoutSettlementStateEnum.js';
|
|
@@ -52,6 +51,7 @@ export { CheckoutTransactionFromJSON, CheckoutTransactionFromJSONTyped, Checkout
|
|
|
52
51
|
export { CheckoutTransactionCreateRequestFromJSON, CheckoutTransactionCreateRequestFromJSONTyped, CheckoutTransactionCreateRequestToJSON } from './models/CheckoutTransactionCreateRequest.js';
|
|
53
52
|
export { CheckoutTransactionCreateResponseFromJSON, CheckoutTransactionCreateResponseFromJSONTyped, CheckoutTransactionCreateResponseToJSON } from './models/CheckoutTransactionCreateResponse.js';
|
|
54
53
|
export { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressFromJSONTyped, CheckoutTransactionDestinationAddressToJSON } from './models/CheckoutTransactionDestinationAddress.js';
|
|
54
|
+
export { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteFromJSONTyped, CheckoutTransactionQuoteToJSON } from './models/CheckoutTransactionQuote.js';
|
|
55
55
|
export { CheckoutUpdateRequestFromJSON, CheckoutUpdateRequestFromJSONTyped, CheckoutUpdateRequestToJSON } from './models/CheckoutUpdateRequest.js';
|
|
56
56
|
export { CheckoutsResponseFromJSON, CheckoutsResponseFromJSONTyped, CheckoutsResponseToJSON } from './models/CheckoutsResponse.js';
|
|
57
57
|
export { CoinbaseMpcWalletPropertiesFromJSON, CoinbaseMpcWalletPropertiesFromJSONTyped, CoinbaseMpcWalletPropertiesToJSON } from './models/CoinbaseMpcWalletProperties.js';
|
|
@@ -173,7 +173,6 @@ export { InitEmailAuthRequestFromJSON, InitEmailAuthRequestFromJSONTyped, InitEm
|
|
|
173
173
|
export { InitEmailAuthResponseFromJSON, InitEmailAuthResponseFromJSONTyped, InitEmailAuthResponseToJSON } from './models/InitEmailAuthResponse.js';
|
|
174
174
|
export { InitPasskeyRecoveryRequestFromJSON, InitPasskeyRecoveryRequestFromJSONTyped, InitPasskeyRecoveryRequestToJSON } from './models/InitPasskeyRecoveryRequest.js';
|
|
175
175
|
export { InitPasskeyRecoveryResponseFromJSON, InitPasskeyRecoveryResponseFromJSONTyped, InitPasskeyRecoveryResponseToJSON } from './models/InitPasskeyRecoveryResponse.js';
|
|
176
|
-
export { InlineObjectFromJSON, InlineObjectFromJSONTyped, InlineObjectToJSON } from './models/InlineObject.js';
|
|
177
176
|
export { IntegrationSettingFromJSON, IntegrationSettingFromJSONTyped, IntegrationSettingToJSON } from './models/IntegrationSetting.js';
|
|
178
177
|
export { InternalServerErrorFromJSON, InternalServerErrorFromJSONTyped, InternalServerErrorToJSON } from './models/InternalServerError.js';
|
|
179
178
|
export { JwksKeyFromJSON, JwksKeyFromJSONTyped, JwksKeyToJSON } from './models/JwksKey.js';
|
|
@@ -368,12 +367,10 @@ export { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataFromJSONTyped, SwapEvmA
|
|
|
368
367
|
export { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataFromJSONTyped, SwapEvmTransactionDataToJSON } from './models/SwapEvmTransactionData.js';
|
|
369
368
|
export { SwapFeeFromJSON, SwapFeeFromJSONTyped, SwapFeeToJSON } from './models/SwapFee.js';
|
|
370
369
|
export { SwapGasCostFromJSON, SwapGasCostFromJSONTyped, SwapGasCostToJSON } from './models/SwapGasCost.js';
|
|
371
|
-
export { SwapPsbtTransactionDataFromJSON, SwapPsbtTransactionDataFromJSONTyped, SwapPsbtTransactionDataToJSON } from './models/SwapPsbtTransactionData.js';
|
|
372
370
|
export { SwapQuoteRequestFromJSON, SwapQuoteRequestFromJSONTyped, SwapQuoteRequestOrderEnum, SwapQuoteRequestToJSON } from './models/SwapQuoteRequest.js';
|
|
373
371
|
export { SwapQuoteRequestSideFromJSON, SwapQuoteRequestSideFromJSONTyped, SwapQuoteRequestSideToJSON } from './models/SwapQuoteRequestSide.js';
|
|
374
372
|
export { SwapQuoteResponseFromJSON, SwapQuoteResponseFromJSONTyped, SwapQuoteResponseToJSON } from './models/SwapQuoteResponse.js';
|
|
375
373
|
export { SwapQuoteResponseSideFromJSON, SwapQuoteResponseSideFromJSONTyped, SwapQuoteResponseSideToJSON } from './models/SwapQuoteResponseSide.js';
|
|
376
|
-
export { SwapSerializedTransactionDataFromJSON, SwapSerializedTransactionDataFromJSONTyped, SwapSerializedTransactionDataToJSON } from './models/SwapSerializedTransactionData.js';
|
|
377
374
|
export { SwapSigningPayloadFromJSON, SwapSigningPayloadFromJSONTyped, SwapSigningPayloadToJSON } from './models/SwapSigningPayload.js';
|
|
378
375
|
export { SwapStatusRequestFromJSON, SwapStatusRequestFromJSONTyped, SwapStatusRequestToJSON } from './models/SwapStatusRequest.js';
|
|
379
376
|
export { SwapStatusRequestChainFromJSON, SwapStatusRequestChainFromJSONTyped, SwapStatusRequestChainToJSON } from './models/SwapStatusRequestChain.js';
|
|
@@ -388,6 +385,7 @@ export { TimeUnitEnum, TimeUnitEnumFromJSON, TimeUnitEnumFromJSONTyped, TimeUnit
|
|
|
388
385
|
export { TokenBalanceFromJSON, TokenBalanceFromJSONTyped, TokenBalanceToJSON } from './models/TokenBalance.js';
|
|
389
386
|
export { TokenScope, TokenScopeFromJSON, TokenScopeFromJSONTyped, TokenScopeToJSON } from './models/TokenScope.js';
|
|
390
387
|
export { TooManyRequestsFromJSON, TooManyRequestsFromJSONTyped, TooManyRequestsToJSON } from './models/TooManyRequests.js';
|
|
388
|
+
export { TransactionFeeEstimateRequestFromJSON, TransactionFeeEstimateRequestFromJSONTyped, TransactionFeeEstimateRequestToJSON } from './models/TransactionFeeEstimateRequest.js';
|
|
391
389
|
export { TransactionFeeEstimateResponseFromJSON, TransactionFeeEstimateResponseFromJSONTyped, TransactionFeeEstimateResponseToJSON } from './models/TransactionFeeEstimateResponse.js';
|
|
392
390
|
export { TransferDestinationFromJSON, TransferDestinationFromJSONTyped, TransferDestinationToJSON } from './models/TransferDestination.js';
|
|
393
391
|
export { TransferDestinationResponseFromJSON, TransferDestinationResponseFromJSONTyped, TransferDestinationResponseToJSON } from './models/TransferDestinationResponse.js';
|
|
@@ -6,13 +6,12 @@ var runtime = require('../runtime.cjs');
|
|
|
6
6
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
7
|
var CheckoutExecutionStateEnum = require('./CheckoutExecutionStateEnum.cjs');
|
|
8
8
|
var CheckoutFailure = require('./CheckoutFailure.cjs');
|
|
9
|
-
var CheckoutQuoteSnapshot = require('./CheckoutQuoteSnapshot.cjs');
|
|
10
9
|
var CheckoutRiskStateEnum = require('./CheckoutRiskStateEnum.cjs');
|
|
11
10
|
var CheckoutSettlementData = require('./CheckoutSettlementData.cjs');
|
|
12
11
|
var CheckoutSettlementStateEnum = require('./CheckoutSettlementStateEnum.cjs');
|
|
13
12
|
var CheckoutSourceTypeEnum = require('./CheckoutSourceTypeEnum.cjs');
|
|
14
13
|
var CheckoutTransactionDestinationAddress = require('./CheckoutTransactionDestinationAddress.cjs');
|
|
15
|
-
var
|
|
14
|
+
var CheckoutTransactionQuote = require('./CheckoutTransactionQuote.cjs');
|
|
16
15
|
|
|
17
16
|
/* tslint:disable */
|
|
18
17
|
function CheckoutTransactionFromJSON(json) {
|
|
@@ -43,10 +42,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
42
|
'toChainName': !runtime.exists(json, 'toChainName') ? undefined : ChainEnum.ChainEnumFromJSON(json['toChainName']),
|
|
44
43
|
'toToken': !runtime.exists(json, 'toToken') ? undefined : json['toToken'],
|
|
45
44
|
'quoteVersion': json['quoteVersion'],
|
|
46
|
-
'quote': !runtime.exists(json, 'quote') ? undefined :
|
|
47
|
-
'quoteExpiresAt': !runtime.exists(json, 'quoteExpiresAt') ? undefined : (new Date(json['quoteExpiresAt'])),
|
|
48
|
-
'lastQuotedAt': !runtime.exists(json, 'lastQuotedAt') ? undefined : (new Date(json['lastQuotedAt'])),
|
|
49
|
-
'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : SwapSigningPayload.SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
45
|
+
'quote': !runtime.exists(json, 'quote') ? undefined : CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSON(json['quote']),
|
|
50
46
|
'txHash': !runtime.exists(json, 'txHash') ? undefined : json['txHash'],
|
|
51
47
|
'broadcastedAt': !runtime.exists(json, 'broadcastedAt') ? undefined : (new Date(json['broadcastedAt'])),
|
|
52
48
|
'sourceConfirmedAt': !runtime.exists(json, 'sourceConfirmedAt') ? undefined : (new Date(json['sourceConfirmedAt'])),
|
|
@@ -87,10 +83,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
87
83
|
'toChainName': ChainEnum.ChainEnumToJSON(value.toChainName),
|
|
88
84
|
'toToken': value.toToken,
|
|
89
85
|
'quoteVersion': value.quoteVersion,
|
|
90
|
-
'quote':
|
|
91
|
-
'quoteExpiresAt': value.quoteExpiresAt === undefined ? undefined : (value.quoteExpiresAt.toISOString()),
|
|
92
|
-
'lastQuotedAt': value.lastQuotedAt === undefined ? undefined : (value.lastQuotedAt.toISOString()),
|
|
93
|
-
'signingPayload': SwapSigningPayload.SwapSigningPayloadToJSON(value.signingPayload),
|
|
86
|
+
'quote': CheckoutTransactionQuote.CheckoutTransactionQuoteToJSON(value.quote),
|
|
94
87
|
'txHash': value.txHash,
|
|
95
88
|
'broadcastedAt': value.broadcastedAt === undefined ? undefined : (value.broadcastedAt.toISOString()),
|
|
96
89
|
'sourceConfirmedAt': value.sourceConfirmedAt === undefined ? undefined : (value.sourceConfirmedAt.toISOString()),
|
|
@@ -12,13 +12,12 @@
|
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
13
|
import { CheckoutExecutionStateEnum } from './CheckoutExecutionStateEnum';
|
|
14
14
|
import { CheckoutFailure } from './CheckoutFailure';
|
|
15
|
-
import { CheckoutQuoteSnapshot } from './CheckoutQuoteSnapshot';
|
|
16
15
|
import { CheckoutRiskStateEnum } from './CheckoutRiskStateEnum';
|
|
17
16
|
import { CheckoutSettlementData } from './CheckoutSettlementData';
|
|
18
17
|
import { CheckoutSettlementStateEnum } from './CheckoutSettlementStateEnum';
|
|
19
18
|
import { CheckoutSourceTypeEnum } from './CheckoutSourceTypeEnum';
|
|
20
19
|
import { CheckoutTransactionDestinationAddress } from './CheckoutTransactionDestinationAddress';
|
|
21
|
-
import {
|
|
20
|
+
import { CheckoutTransactionQuote } from './CheckoutTransactionQuote';
|
|
22
21
|
/**
|
|
23
22
|
*
|
|
24
23
|
* @export
|
|
@@ -147,28 +146,10 @@ export interface CheckoutTransaction {
|
|
|
147
146
|
quoteVersion: number;
|
|
148
147
|
/**
|
|
149
148
|
*
|
|
150
|
-
* @type {
|
|
149
|
+
* @type {CheckoutTransactionQuote}
|
|
151
150
|
* @memberof CheckoutTransaction
|
|
152
151
|
*/
|
|
153
|
-
quote?:
|
|
154
|
-
/**
|
|
155
|
-
*
|
|
156
|
-
* @type {Date}
|
|
157
|
-
* @memberof CheckoutTransaction
|
|
158
|
-
*/
|
|
159
|
-
quoteExpiresAt?: Date;
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @type {Date}
|
|
163
|
-
* @memberof CheckoutTransaction
|
|
164
|
-
*/
|
|
165
|
-
lastQuotedAt?: Date;
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
* @type {SwapSigningPayload}
|
|
169
|
-
* @memberof CheckoutTransaction
|
|
170
|
-
*/
|
|
171
|
-
signingPayload?: SwapSigningPayload;
|
|
152
|
+
quote?: CheckoutTransactionQuote;
|
|
172
153
|
/**
|
|
173
154
|
* A string with a max length of 4096 characters
|
|
174
155
|
* @type {string}
|
|
@@ -2,13 +2,12 @@ import { exists } from '../runtime.js';
|
|
|
2
2
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
3
|
import { CheckoutExecutionStateEnumFromJSON, CheckoutExecutionStateEnumToJSON } from './CheckoutExecutionStateEnum.js';
|
|
4
4
|
import { CheckoutFailureFromJSON, CheckoutFailureToJSON } from './CheckoutFailure.js';
|
|
5
|
-
import { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotToJSON } from './CheckoutQuoteSnapshot.js';
|
|
6
5
|
import { CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumToJSON } from './CheckoutRiskStateEnum.js';
|
|
7
6
|
import { CheckoutSettlementDataFromJSON, CheckoutSettlementDataToJSON } from './CheckoutSettlementData.js';
|
|
8
7
|
import { CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumToJSON } from './CheckoutSettlementStateEnum.js';
|
|
9
8
|
import { CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumToJSON } from './CheckoutSourceTypeEnum.js';
|
|
10
9
|
import { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressToJSON } from './CheckoutTransactionDestinationAddress.js';
|
|
11
|
-
import {
|
|
10
|
+
import { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteToJSON } from './CheckoutTransactionQuote.js';
|
|
12
11
|
|
|
13
12
|
/* tslint:disable */
|
|
14
13
|
function CheckoutTransactionFromJSON(json) {
|
|
@@ -39,10 +38,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
38
|
'toChainName': !exists(json, 'toChainName') ? undefined : ChainEnumFromJSON(json['toChainName']),
|
|
40
39
|
'toToken': !exists(json, 'toToken') ? undefined : json['toToken'],
|
|
41
40
|
'quoteVersion': json['quoteVersion'],
|
|
42
|
-
'quote': !exists(json, 'quote') ? undefined :
|
|
43
|
-
'quoteExpiresAt': !exists(json, 'quoteExpiresAt') ? undefined : (new Date(json['quoteExpiresAt'])),
|
|
44
|
-
'lastQuotedAt': !exists(json, 'lastQuotedAt') ? undefined : (new Date(json['lastQuotedAt'])),
|
|
45
|
-
'signingPayload': !exists(json, 'signingPayload') ? undefined : SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
41
|
+
'quote': !exists(json, 'quote') ? undefined : CheckoutTransactionQuoteFromJSON(json['quote']),
|
|
46
42
|
'txHash': !exists(json, 'txHash') ? undefined : json['txHash'],
|
|
47
43
|
'broadcastedAt': !exists(json, 'broadcastedAt') ? undefined : (new Date(json['broadcastedAt'])),
|
|
48
44
|
'sourceConfirmedAt': !exists(json, 'sourceConfirmedAt') ? undefined : (new Date(json['sourceConfirmedAt'])),
|
|
@@ -83,10 +79,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
83
79
|
'toChainName': ChainEnumToJSON(value.toChainName),
|
|
84
80
|
'toToken': value.toToken,
|
|
85
81
|
'quoteVersion': value.quoteVersion,
|
|
86
|
-
'quote':
|
|
87
|
-
'quoteExpiresAt': value.quoteExpiresAt === undefined ? undefined : (value.quoteExpiresAt.toISOString()),
|
|
88
|
-
'lastQuotedAt': value.lastQuotedAt === undefined ? undefined : (value.lastQuotedAt.toISOString()),
|
|
89
|
-
'signingPayload': SwapSigningPayloadToJSON(value.signingPayload),
|
|
82
|
+
'quote': CheckoutTransactionQuoteToJSON(value.quote),
|
|
90
83
|
'txHash': value.txHash,
|
|
91
84
|
'broadcastedAt': value.broadcastedAt === undefined ? undefined : (value.broadcastedAt.toISOString()),
|
|
92
85
|
'sourceConfirmedAt': value.sourceConfirmedAt === undefined ? undefined : (value.sourceConfirmedAt.toISOString()),
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var CheckoutFeeBreakdown = require('./CheckoutFeeBreakdown.cjs');
|
|
7
|
+
var SwapSigningPayload = require('./SwapSigningPayload.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function CheckoutTransactionQuoteFromJSON(json) {
|
|
11
|
+
return CheckoutTransactionQuoteFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function CheckoutTransactionQuoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'version': json['version'],
|
|
19
|
+
'fromAmount': json['fromAmount'],
|
|
20
|
+
'toAmount': json['toAmount'],
|
|
21
|
+
'fees': !runtime.exists(json, 'fees') ? undefined : CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSON(json['fees']),
|
|
22
|
+
'estimatedTimeSec': !runtime.exists(json, 'estimatedTimeSec') ? undefined : json['estimatedTimeSec'],
|
|
23
|
+
'rawQuote': !runtime.exists(json, 'rawQuote') ? undefined : json['rawQuote'],
|
|
24
|
+
'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : SwapSigningPayload.SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
25
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
26
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function CheckoutTransactionQuoteToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'version': value.version,
|
|
38
|
+
'fromAmount': value.fromAmount,
|
|
39
|
+
'toAmount': value.toAmount,
|
|
40
|
+
'fees': CheckoutFeeBreakdown.CheckoutFeeBreakdownToJSON(value.fees),
|
|
41
|
+
'estimatedTimeSec': value.estimatedTimeSec,
|
|
42
|
+
'rawQuote': value.rawQuote,
|
|
43
|
+
'signingPayload': SwapSigningPayload.SwapSigningPayloadToJSON(value.signingPayload),
|
|
44
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
45
|
+
'expiresAt': (value.expiresAt.toISOString()),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
exports.CheckoutTransactionQuoteFromJSON = CheckoutTransactionQuoteFromJSON;
|
|
50
|
+
exports.CheckoutTransactionQuoteFromJSONTyped = CheckoutTransactionQuoteFromJSONTyped;
|
|
51
|
+
exports.CheckoutTransactionQuoteToJSON = CheckoutTransactionQuoteToJSON;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { CheckoutFeeBreakdown } from './CheckoutFeeBreakdown';
|
|
13
|
+
import { SwapSigningPayload } from './SwapSigningPayload';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CheckoutTransactionQuote
|
|
18
|
+
*/
|
|
19
|
+
export interface CheckoutTransactionQuote {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof CheckoutTransactionQuote
|
|
24
|
+
*/
|
|
25
|
+
version: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CheckoutTransactionQuote
|
|
30
|
+
*/
|
|
31
|
+
fromAmount: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CheckoutTransactionQuote
|
|
36
|
+
*/
|
|
37
|
+
toAmount: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {CheckoutFeeBreakdown}
|
|
41
|
+
* @memberof CheckoutTransactionQuote
|
|
42
|
+
*/
|
|
43
|
+
fees?: CheckoutFeeBreakdown;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof CheckoutTransactionQuote
|
|
48
|
+
*/
|
|
49
|
+
estimatedTimeSec?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Raw quote result data from the swap provider
|
|
52
|
+
* @type {object}
|
|
53
|
+
* @memberof CheckoutTransactionQuote
|
|
54
|
+
*/
|
|
55
|
+
rawQuote?: object;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SwapSigningPayload}
|
|
59
|
+
* @memberof CheckoutTransactionQuote
|
|
60
|
+
*/
|
|
61
|
+
signingPayload?: SwapSigningPayload;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof CheckoutTransactionQuote
|
|
66
|
+
*/
|
|
67
|
+
createdAt: Date;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof CheckoutTransactionQuote
|
|
72
|
+
*/
|
|
73
|
+
expiresAt: Date;
|
|
74
|
+
}
|
|
75
|
+
export declare function CheckoutTransactionQuoteFromJSON(json: any): CheckoutTransactionQuote;
|
|
76
|
+
export declare function CheckoutTransactionQuoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutTransactionQuote;
|
|
77
|
+
export declare function CheckoutTransactionQuoteToJSON(value?: CheckoutTransactionQuote | null): any;
|