@dynamic-labs/sdk-api 0.113.0 → 0.114.0

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.113.0",
3
+ "version": "0.114.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -2,19 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var runtime = require('../runtime.cjs');
6
+
5
7
  /* 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
8
  function BadGatewayFromJSON(json) {
19
9
  return BadGatewayFromJSONTyped(json);
20
10
  }
@@ -24,6 +14,7 @@ function BadGatewayFromJSONTyped(json, ignoreDiscriminator) {
24
14
  }
25
15
  return {
26
16
  'error': json['error'],
17
+ 'code': !runtime.exists(json, 'code') ? undefined : json['code'],
27
18
  };
28
19
  }
29
20
  function BadGatewayToJSON(value) {
@@ -35,6 +26,7 @@ function BadGatewayToJSON(value) {
35
26
  }
36
27
  return {
37
28
  'error': value.error,
29
+ 'code': value.code,
38
30
  };
39
31
  }
40
32
 
@@ -21,6 +21,12 @@ export interface BadGateway {
21
21
  * @memberof BadGateway
22
22
  */
23
23
  error: string;
24
+ /**
25
+ * Machine-readable reason for the 502, set only by endpoints that distinguish rejections. Flow endpoints use exchange_unavailable.
26
+ * @type {string}
27
+ * @memberof BadGateway
28
+ */
29
+ code?: string;
24
30
  }
25
31
  export declare function BadGatewayFromJSON(json: any): BadGateway;
26
32
  export declare function BadGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): BadGateway;
@@ -1,16 +1,6 @@
1
+ import { exists } from '../runtime.js';
2
+
1
3
  /* 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
4
  function BadGatewayFromJSON(json) {
15
5
  return BadGatewayFromJSONTyped(json);
16
6
  }
@@ -20,6 +10,7 @@ function BadGatewayFromJSONTyped(json, ignoreDiscriminator) {
20
10
  }
21
11
  return {
22
12
  'error': json['error'],
13
+ 'code': !exists(json, 'code') ? undefined : json['code'],
23
14
  };
24
15
  }
25
16
  function BadGatewayToJSON(value) {
@@ -31,6 +22,7 @@ function BadGatewayToJSON(value) {
31
22
  }
32
23
  return {
33
24
  'error': value.error,
25
+ 'code': value.code,
34
26
  };
35
27
  }
36
28
 
@@ -14,6 +14,7 @@ function BadRequestFromJSONTyped(json, ignoreDiscriminator) {
14
14
  }
15
15
  return {
16
16
  'error': !runtime.exists(json, 'error') ? undefined : json['error'],
17
+ 'code': !runtime.exists(json, 'code') ? undefined : json['code'],
17
18
  };
18
19
  }
19
20
  function BadRequestToJSON(value) {
@@ -25,6 +26,7 @@ function BadRequestToJSON(value) {
25
26
  }
26
27
  return {
27
28
  'error': value.error,
29
+ 'code': value.code,
28
30
  };
29
31
  }
30
32
 
@@ -21,6 +21,12 @@ export interface BadRequest {
21
21
  * @memberof BadRequest
22
22
  */
23
23
  error?: string;
24
+ /**
25
+ * Machine-readable reason for the 400, set only by endpoints that distinguish rejections. Flow endpoints use exchange_not_supported and exchange_currency_unsupported.
26
+ * @type {string}
27
+ * @memberof BadRequest
28
+ */
29
+ code?: string;
24
30
  }
25
31
  export declare function BadRequestFromJSON(json: any): BadRequest;
26
32
  export declare function BadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BadRequest;
@@ -10,6 +10,7 @@ function BadRequestFromJSONTyped(json, ignoreDiscriminator) {
10
10
  }
11
11
  return {
12
12
  'error': !exists(json, 'error') ? undefined : json['error'],
13
+ 'code': !exists(json, 'code') ? undefined : json['code'],
13
14
  };
14
15
  }
15
16
  function BadRequestToJSON(value) {
@@ -21,6 +22,7 @@ function BadRequestToJSON(value) {
21
22
  }
22
23
  return {
23
24
  'error': value.error,
25
+ 'code': value.code,
24
26
  };
25
27
  }
26
28
 
@@ -22,7 +22,7 @@ export interface NotFound {
22
22
  */
23
23
  error: string;
24
24
  /**
25
- * Machine-readable error code
25
+ * Machine-readable error code. Flow endpoints use exchange_not_configured when the requested exchange isn't set up for the environment.
26
26
  * @type {string}
27
27
  * @memberof NotFound
28
28
  */
@@ -180,6 +180,7 @@ exports.UnprocessableEntityErrorCode = void 0;
180
180
  UnprocessableEntityErrorCode["OfflineRecoveryCloudBackupConflict"] = "offline_recovery_cloud_backup_conflict";
181
181
  UnprocessableEntityErrorCode["QuoteExpired"] = "quote_expired";
182
182
  UnprocessableEntityErrorCode["InsufficientBalance"] = "insufficient_balance";
183
+ UnprocessableEntityErrorCode["ExchangeSettlementUnsupported"] = "exchange_settlement_unsupported";
183
184
  })(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
184
185
  function UnprocessableEntityErrorCodeFromJSON(json) {
185
186
  return UnprocessableEntityErrorCodeFromJSONTyped(json);
@@ -172,7 +172,8 @@ export declare enum UnprocessableEntityErrorCode {
172
172
  AmbiguousBroadcastIdentifier = "ambiguous_broadcast_identifier",
173
173
  OfflineRecoveryCloudBackupConflict = "offline_recovery_cloud_backup_conflict",
174
174
  QuoteExpired = "quote_expired",
175
- InsufficientBalance = "insufficient_balance"
175
+ InsufficientBalance = "insufficient_balance",
176
+ ExchangeSettlementUnsupported = "exchange_settlement_unsupported"
176
177
  }
177
178
  export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
178
179
  export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
@@ -176,6 +176,7 @@ var UnprocessableEntityErrorCode;
176
176
  UnprocessableEntityErrorCode["OfflineRecoveryCloudBackupConflict"] = "offline_recovery_cloud_backup_conflict";
177
177
  UnprocessableEntityErrorCode["QuoteExpired"] = "quote_expired";
178
178
  UnprocessableEntityErrorCode["InsufficientBalance"] = "insufficient_balance";
179
+ UnprocessableEntityErrorCode["ExchangeSettlementUnsupported"] = "exchange_settlement_unsupported";
179
180
  })(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
180
181
  function UnprocessableEntityErrorCodeFromJSON(json) {
181
182
  return UnprocessableEntityErrorCodeFromJSONTyped(json);