@dynamic-labs/sdk-api 0.0.919 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.919",
3
+ "version": "0.0.920",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
package/src/index.cjs CHANGED
@@ -120,6 +120,7 @@ var CheckoutCreateRequest = require('./models/CheckoutCreateRequest.cjs');
120
120
  var CheckoutExecutionStateEnum = require('./models/CheckoutExecutionStateEnum.cjs');
121
121
  var CheckoutFailure = require('./models/CheckoutFailure.cjs');
122
122
  var CheckoutFeeBreakdown = require('./models/CheckoutFeeBreakdown.cjs');
123
+ var CheckoutGasEstimate = require('./models/CheckoutGasEstimate.cjs');
123
124
  var CheckoutModeEnum = require('./models/CheckoutModeEnum.cjs');
124
125
  var CheckoutQuoteSnapshot = require('./models/CheckoutQuoteSnapshot.cjs');
125
126
  var CheckoutRiskStateEnum = require('./models/CheckoutRiskStateEnum.cjs');
@@ -1050,6 +1051,9 @@ exports.CheckoutFailureToJSON = CheckoutFailure.CheckoutFailureToJSON;
1050
1051
  exports.CheckoutFeeBreakdownFromJSON = CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSON;
1051
1052
  exports.CheckoutFeeBreakdownFromJSONTyped = CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSONTyped;
1052
1053
  exports.CheckoutFeeBreakdownToJSON = CheckoutFeeBreakdown.CheckoutFeeBreakdownToJSON;
1054
+ exports.CheckoutGasEstimateFromJSON = CheckoutGasEstimate.CheckoutGasEstimateFromJSON;
1055
+ exports.CheckoutGasEstimateFromJSONTyped = CheckoutGasEstimate.CheckoutGasEstimateFromJSONTyped;
1056
+ exports.CheckoutGasEstimateToJSON = CheckoutGasEstimate.CheckoutGasEstimateToJSON;
1053
1057
  Object.defineProperty(exports, 'CheckoutModeEnum', {
1054
1058
  enumerable: true,
1055
1059
  get: function () { return CheckoutModeEnum.CheckoutModeEnum; }
package/src/index.js CHANGED
@@ -116,6 +116,7 @@ export { CheckoutCreateRequestFromJSON, CheckoutCreateRequestFromJSONTyped, Chec
116
116
  export { CheckoutExecutionStateEnum, CheckoutExecutionStateEnumFromJSON, CheckoutExecutionStateEnumFromJSONTyped, CheckoutExecutionStateEnumToJSON } from './models/CheckoutExecutionStateEnum.js';
117
117
  export { CheckoutFailureFromJSON, CheckoutFailureFromJSONTyped, CheckoutFailureToJSON } from './models/CheckoutFailure.js';
118
118
  export { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownFromJSONTyped, CheckoutFeeBreakdownToJSON } from './models/CheckoutFeeBreakdown.js';
119
+ export { CheckoutGasEstimateFromJSON, CheckoutGasEstimateFromJSONTyped, CheckoutGasEstimateToJSON } from './models/CheckoutGasEstimate.js';
119
120
  export { CheckoutModeEnum, CheckoutModeEnumFromJSON, CheckoutModeEnumFromJSONTyped, CheckoutModeEnumToJSON } from './models/CheckoutModeEnum.js';
120
121
  export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON } from './models/CheckoutQuoteSnapshot.js';
121
122
  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
- 'gasCostUsd': json['gasCostUsd'],
27
- 'bridgeCostUsd': json['bridgeCostUsd'],
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
- gasCostUsd: string;
24
+ totalFeeUsd?: string;
24
25
  /**
25
26
  *
26
- * @type {string}
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
- totalFeeUsd: string;
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
- 'gasCostUsd': json['gasCostUsd'],
23
- 'bridgeCostUsd': json['bridgeCostUsd'],
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 };
@@ -77,6 +77,7 @@ export * from './CheckoutCreateRequest';
77
77
  export * from './CheckoutExecutionStateEnum';
78
78
  export * from './CheckoutFailure';
79
79
  export * from './CheckoutFeeBreakdown';
80
+ export * from './CheckoutGasEstimate';
80
81
  export * from './CheckoutModeEnum';
81
82
  export * from './CheckoutQuoteSnapshot';
82
83
  export * from './CheckoutRiskStateEnum';