@dynamic-labs/sdk-api-core 0.0.918 → 0.0.920
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/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/CheckoutFeeBreakdown.cjs +6 -21
- package/src/models/CheckoutFeeBreakdown.d.ts +4 -21
- package/src/models/CheckoutFeeBreakdown.js +6 -21
- package/src/models/CheckoutGasEstimate.cjs +37 -0
- package/src/models/CheckoutGasEstimate.d.ts +39 -0
- package/src/models/CheckoutGasEstimate.js +31 -0
- package/src/models/JwtVerifiedCredentialFormatEnum.cjs +1 -0
- package/src/models/JwtVerifiedCredentialFormatEnum.d.ts +2 -1
- package/src/models/JwtVerifiedCredentialFormatEnum.js +1 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -45,6 +45,7 @@ var CheckoutCreateRequest = require('./models/CheckoutCreateRequest.cjs');
|
|
|
45
45
|
var CheckoutExecutionStateEnum = require('./models/CheckoutExecutionStateEnum.cjs');
|
|
46
46
|
var CheckoutFailure = require('./models/CheckoutFailure.cjs');
|
|
47
47
|
var CheckoutFeeBreakdown = require('./models/CheckoutFeeBreakdown.cjs');
|
|
48
|
+
var CheckoutGasEstimate = require('./models/CheckoutGasEstimate.cjs');
|
|
48
49
|
var CheckoutModeEnum = require('./models/CheckoutModeEnum.cjs');
|
|
49
50
|
var CheckoutQuoteSnapshot = require('./models/CheckoutQuoteSnapshot.cjs');
|
|
50
51
|
var CheckoutRiskStateEnum = require('./models/CheckoutRiskStateEnum.cjs');
|
|
@@ -622,6 +623,9 @@ exports.CheckoutFailureToJSON = CheckoutFailure.CheckoutFailureToJSON;
|
|
|
622
623
|
exports.CheckoutFeeBreakdownFromJSON = CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSON;
|
|
623
624
|
exports.CheckoutFeeBreakdownFromJSONTyped = CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSONTyped;
|
|
624
625
|
exports.CheckoutFeeBreakdownToJSON = CheckoutFeeBreakdown.CheckoutFeeBreakdownToJSON;
|
|
626
|
+
exports.CheckoutGasEstimateFromJSON = CheckoutGasEstimate.CheckoutGasEstimateFromJSON;
|
|
627
|
+
exports.CheckoutGasEstimateFromJSONTyped = CheckoutGasEstimate.CheckoutGasEstimateFromJSONTyped;
|
|
628
|
+
exports.CheckoutGasEstimateToJSON = CheckoutGasEstimate.CheckoutGasEstimateToJSON;
|
|
625
629
|
Object.defineProperty(exports, 'CheckoutModeEnum', {
|
|
626
630
|
enumerable: true,
|
|
627
631
|
get: function () { return CheckoutModeEnum.CheckoutModeEnum; }
|
package/src/index.js
CHANGED
|
@@ -41,6 +41,7 @@ export { CheckoutCreateRequestFromJSON, CheckoutCreateRequestFromJSONTyped, Chec
|
|
|
41
41
|
export { CheckoutExecutionStateEnum, CheckoutExecutionStateEnumFromJSON, CheckoutExecutionStateEnumFromJSONTyped, CheckoutExecutionStateEnumToJSON } from './models/CheckoutExecutionStateEnum.js';
|
|
42
42
|
export { CheckoutFailureFromJSON, CheckoutFailureFromJSONTyped, CheckoutFailureToJSON } from './models/CheckoutFailure.js';
|
|
43
43
|
export { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownFromJSONTyped, CheckoutFeeBreakdownToJSON } from './models/CheckoutFeeBreakdown.js';
|
|
44
|
+
export { CheckoutGasEstimateFromJSON, CheckoutGasEstimateFromJSONTyped, CheckoutGasEstimateToJSON } from './models/CheckoutGasEstimate.js';
|
|
44
45
|
export { CheckoutModeEnum, CheckoutModeEnumFromJSON, CheckoutModeEnumFromJSONTyped, CheckoutModeEnumToJSON } from './models/CheckoutModeEnum.js';
|
|
45
46
|
export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON } from './models/CheckoutQuoteSnapshot.js';
|
|
46
47
|
export { CheckoutRiskStateEnum, CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumFromJSONTyped, CheckoutRiskStateEnumToJSON } from './models/CheckoutRiskStateEnum.js';
|
|
@@ -2,19 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var CheckoutGasEstimate = require('./CheckoutGasEstimate.cjs');
|
|
7
|
+
|
|
5
8
|
/* 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
9
|
function CheckoutFeeBreakdownFromJSON(json) {
|
|
19
10
|
return CheckoutFeeBreakdownFromJSONTyped(json);
|
|
20
11
|
}
|
|
@@ -23,11 +14,8 @@ function CheckoutFeeBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
14
|
return json;
|
|
24
15
|
}
|
|
25
16
|
return {
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'providerFeeUsd': json['providerFeeUsd'],
|
|
29
|
-
'integratorFeeUsd': json['integratorFeeUsd'],
|
|
30
|
-
'totalFeeUsd': json['totalFeeUsd'],
|
|
17
|
+
'totalFeeUsd': !runtime.exists(json, 'totalFeeUsd') ? undefined : json['totalFeeUsd'],
|
|
18
|
+
'gasEstimate': !runtime.exists(json, 'gasEstimate') ? undefined : CheckoutGasEstimate.CheckoutGasEstimateFromJSON(json['gasEstimate']),
|
|
31
19
|
};
|
|
32
20
|
}
|
|
33
21
|
function CheckoutFeeBreakdownToJSON(value) {
|
|
@@ -38,11 +26,8 @@ function CheckoutFeeBreakdownToJSON(value) {
|
|
|
38
26
|
return null;
|
|
39
27
|
}
|
|
40
28
|
return {
|
|
41
|
-
'gasCostUsd': value.gasCostUsd,
|
|
42
|
-
'bridgeCostUsd': value.bridgeCostUsd,
|
|
43
|
-
'providerFeeUsd': value.providerFeeUsd,
|
|
44
|
-
'integratorFeeUsd': value.integratorFeeUsd,
|
|
45
29
|
'totalFeeUsd': value.totalFeeUsd,
|
|
30
|
+
'gasEstimate': CheckoutGasEstimate.CheckoutGasEstimateToJSON(value.gasEstimate),
|
|
46
31
|
};
|
|
47
32
|
}
|
|
48
33
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CheckoutGasEstimate } from './CheckoutGasEstimate';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -20,31 +21,13 @@ export interface CheckoutFeeBreakdown {
|
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof CheckoutFeeBreakdown
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
totalFeeUsd?: string;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
|
-
* @type {
|
|
27
|
-
* @memberof CheckoutFeeBreakdown
|
|
28
|
-
*/
|
|
29
|
-
bridgeCostUsd: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CheckoutFeeBreakdown
|
|
34
|
-
*/
|
|
35
|
-
providerFeeUsd: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof CheckoutFeeBreakdown
|
|
40
|
-
*/
|
|
41
|
-
integratorFeeUsd: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
27
|
+
* @type {CheckoutGasEstimate}
|
|
45
28
|
* @memberof CheckoutFeeBreakdown
|
|
46
29
|
*/
|
|
47
|
-
|
|
30
|
+
gasEstimate?: CheckoutGasEstimate;
|
|
48
31
|
}
|
|
49
32
|
export declare function CheckoutFeeBreakdownFromJSON(json: any): CheckoutFeeBreakdown;
|
|
50
33
|
export declare function CheckoutFeeBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutFeeBreakdown;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { CheckoutGasEstimateFromJSON, CheckoutGasEstimateToJSON } from './CheckoutGasEstimate.js';
|
|
3
|
+
|
|
1
4
|
/* 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
5
|
function CheckoutFeeBreakdownFromJSON(json) {
|
|
15
6
|
return CheckoutFeeBreakdownFromJSONTyped(json);
|
|
16
7
|
}
|
|
@@ -19,11 +10,8 @@ function CheckoutFeeBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
10
|
return json;
|
|
20
11
|
}
|
|
21
12
|
return {
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'providerFeeUsd': json['providerFeeUsd'],
|
|
25
|
-
'integratorFeeUsd': json['integratorFeeUsd'],
|
|
26
|
-
'totalFeeUsd': json['totalFeeUsd'],
|
|
13
|
+
'totalFeeUsd': !exists(json, 'totalFeeUsd') ? undefined : json['totalFeeUsd'],
|
|
14
|
+
'gasEstimate': !exists(json, 'gasEstimate') ? undefined : CheckoutGasEstimateFromJSON(json['gasEstimate']),
|
|
27
15
|
};
|
|
28
16
|
}
|
|
29
17
|
function CheckoutFeeBreakdownToJSON(value) {
|
|
@@ -34,11 +22,8 @@ function CheckoutFeeBreakdownToJSON(value) {
|
|
|
34
22
|
return null;
|
|
35
23
|
}
|
|
36
24
|
return {
|
|
37
|
-
'gasCostUsd': value.gasCostUsd,
|
|
38
|
-
'bridgeCostUsd': value.bridgeCostUsd,
|
|
39
|
-
'providerFeeUsd': value.providerFeeUsd,
|
|
40
|
-
'integratorFeeUsd': value.integratorFeeUsd,
|
|
41
25
|
'totalFeeUsd': value.totalFeeUsd,
|
|
26
|
+
'gasEstimate': CheckoutGasEstimateToJSON(value.gasEstimate),
|
|
42
27
|
};
|
|
43
28
|
}
|
|
44
29
|
|
|
@@ -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 CheckoutGasEstimateFromJSON(json) {
|
|
9
|
+
return CheckoutGasEstimateFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function CheckoutGasEstimateFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'usdValue': !runtime.exists(json, 'usdValue') ? undefined : json['usdValue'],
|
|
17
|
+
'nativeValue': !runtime.exists(json, 'nativeValue') ? undefined : json['nativeValue'],
|
|
18
|
+
'nativeSymbol': !runtime.exists(json, 'nativeSymbol') ? undefined : json['nativeSymbol'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function CheckoutGasEstimateToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'usdValue': value.usdValue,
|
|
30
|
+
'nativeValue': value.nativeValue,
|
|
31
|
+
'nativeSymbol': value.nativeSymbol,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.CheckoutGasEstimateFromJSON = CheckoutGasEstimateFromJSON;
|
|
36
|
+
exports.CheckoutGasEstimateFromJSONTyped = CheckoutGasEstimateFromJSONTyped;
|
|
37
|
+
exports.CheckoutGasEstimateToJSON = CheckoutGasEstimateToJSON;
|
|
@@ -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 CheckoutGasEstimate
|
|
16
|
+
*/
|
|
17
|
+
export interface CheckoutGasEstimate {
|
|
18
|
+
/**
|
|
19
|
+
* Estimated gas cost in USD
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CheckoutGasEstimate
|
|
22
|
+
*/
|
|
23
|
+
usdValue?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Estimated gas cost in the source chain's native token
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CheckoutGasEstimate
|
|
28
|
+
*/
|
|
29
|
+
nativeValue?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Symbol of the native token (e.g. "ETH", "SOL")
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CheckoutGasEstimate
|
|
34
|
+
*/
|
|
35
|
+
nativeSymbol?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function CheckoutGasEstimateFromJSON(json: any): CheckoutGasEstimate;
|
|
38
|
+
export declare function CheckoutGasEstimateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutGasEstimate;
|
|
39
|
+
export declare function CheckoutGasEstimateToJSON(value?: CheckoutGasEstimate | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function CheckoutGasEstimateFromJSON(json) {
|
|
5
|
+
return CheckoutGasEstimateFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function CheckoutGasEstimateFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'usdValue': !exists(json, 'usdValue') ? undefined : json['usdValue'],
|
|
13
|
+
'nativeValue': !exists(json, 'nativeValue') ? undefined : json['nativeValue'],
|
|
14
|
+
'nativeSymbol': !exists(json, 'nativeSymbol') ? undefined : json['nativeSymbol'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function CheckoutGasEstimateToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'usdValue': value.usdValue,
|
|
26
|
+
'nativeValue': value.nativeValue,
|
|
27
|
+
'nativeSymbol': value.nativeSymbol,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { CheckoutGasEstimateFromJSON, CheckoutGasEstimateFromJSONTyped, CheckoutGasEstimateToJSON };
|
|
@@ -28,6 +28,7 @@ exports.JwtVerifiedCredentialFormatEnum = void 0;
|
|
|
28
28
|
JwtVerifiedCredentialFormatEnum["Passkey"] = "passkey";
|
|
29
29
|
JwtVerifiedCredentialFormatEnum["PhoneNumber"] = "phoneNumber";
|
|
30
30
|
JwtVerifiedCredentialFormatEnum["ExternalUser"] = "externalUser";
|
|
31
|
+
JwtVerifiedCredentialFormatEnum["Totp"] = "totp";
|
|
31
32
|
})(exports.JwtVerifiedCredentialFormatEnum || (exports.JwtVerifiedCredentialFormatEnum = {}));
|
|
32
33
|
function JwtVerifiedCredentialFormatEnumFromJSON(json) {
|
|
33
34
|
return JwtVerifiedCredentialFormatEnumFromJSONTyped(json);
|
|
@@ -20,7 +20,8 @@ export declare enum JwtVerifiedCredentialFormatEnum {
|
|
|
20
20
|
Oauth = "oauth",
|
|
21
21
|
Passkey = "passkey",
|
|
22
22
|
PhoneNumber = "phoneNumber",
|
|
23
|
-
ExternalUser = "externalUser"
|
|
23
|
+
ExternalUser = "externalUser",
|
|
24
|
+
Totp = "totp"
|
|
24
25
|
}
|
|
25
26
|
export declare function JwtVerifiedCredentialFormatEnumFromJSON(json: any): JwtVerifiedCredentialFormatEnum;
|
|
26
27
|
export declare function JwtVerifiedCredentialFormatEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): JwtVerifiedCredentialFormatEnum;
|
|
@@ -24,6 +24,7 @@ var JwtVerifiedCredentialFormatEnum;
|
|
|
24
24
|
JwtVerifiedCredentialFormatEnum["Passkey"] = "passkey";
|
|
25
25
|
JwtVerifiedCredentialFormatEnum["PhoneNumber"] = "phoneNumber";
|
|
26
26
|
JwtVerifiedCredentialFormatEnum["ExternalUser"] = "externalUser";
|
|
27
|
+
JwtVerifiedCredentialFormatEnum["Totp"] = "totp";
|
|
27
28
|
})(JwtVerifiedCredentialFormatEnum || (JwtVerifiedCredentialFormatEnum = {}));
|
|
28
29
|
function JwtVerifiedCredentialFormatEnumFromJSON(json) {
|
|
29
30
|
return JwtVerifiedCredentialFormatEnumFromJSONTyped(json);
|
package/src/models/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export * from './CheckoutCreateRequest';
|
|
|
38
38
|
export * from './CheckoutExecutionStateEnum';
|
|
39
39
|
export * from './CheckoutFailure';
|
|
40
40
|
export * from './CheckoutFeeBreakdown';
|
|
41
|
+
export * from './CheckoutGasEstimate';
|
|
41
42
|
export * from './CheckoutModeEnum';
|
|
42
43
|
export * from './CheckoutQuoteSnapshot';
|
|
43
44
|
export * from './CheckoutRiskStateEnum';
|