@dynamic-labs/sdk-api-core 0.0.711 → 0.0.713

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-core",
3
- "version": "0.0.711",
3
+ "version": "0.0.713",
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 ExchangeTransferResponseFromJSON(json) {
19
9
  return ExchangeTransferResponseFromJSONTyped(json);
20
10
  }
@@ -24,11 +14,11 @@ function ExchangeTransferResponseFromJSONTyped(json, ignoreDiscriminator) {
24
14
  }
25
15
  return {
26
16
  'id': json['id'],
27
- 'exchangeAccountId': json['exchangeAccountId'],
28
- 'status': json['status'],
17
+ 'exchangeAccountId': !runtime.exists(json, 'exchangeAccountId') ? undefined : json['exchangeAccountId'],
18
+ 'status': !runtime.exists(json, 'status') ? undefined : json['status'],
29
19
  'amount': json['amount'],
30
20
  'currency': json['currency'],
31
- 'createdAt': (new Date(json['createdAt'])),
21
+ 'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
32
22
  };
33
23
  }
34
24
  function ExchangeTransferResponseToJSON(value) {
@@ -44,7 +34,7 @@ function ExchangeTransferResponseToJSON(value) {
44
34
  'status': value.status,
45
35
  'amount': value.amount,
46
36
  'currency': value.currency,
47
- 'createdAt': (value.createdAt.toISOString()),
37
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
48
38
  };
49
39
  }
50
40
 
@@ -26,13 +26,13 @@ export interface ExchangeTransferResponse {
26
26
  * @type {string}
27
27
  * @memberof ExchangeTransferResponse
28
28
  */
29
- exchangeAccountId: string;
29
+ exchangeAccountId?: string;
30
30
  /**
31
31
  * Current status of the transaction
32
32
  * @type {string}
33
33
  * @memberof ExchangeTransferResponse
34
34
  */
35
- status: string;
35
+ status?: string;
36
36
  /**
37
37
  * the amount to transfer
38
38
  * @type {number}
@@ -50,7 +50,7 @@ export interface ExchangeTransferResponse {
50
50
  * @type {Date}
51
51
  * @memberof ExchangeTransferResponse
52
52
  */
53
- createdAt: Date;
53
+ createdAt?: Date;
54
54
  }
55
55
  export declare function ExchangeTransferResponseFromJSON(json: any): ExchangeTransferResponse;
56
56
  export declare function ExchangeTransferResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeTransferResponse;
@@ -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 ExchangeTransferResponseFromJSON(json) {
15
5
  return ExchangeTransferResponseFromJSONTyped(json);
16
6
  }
@@ -20,11 +10,11 @@ function ExchangeTransferResponseFromJSONTyped(json, ignoreDiscriminator) {
20
10
  }
21
11
  return {
22
12
  'id': json['id'],
23
- 'exchangeAccountId': json['exchangeAccountId'],
24
- 'status': json['status'],
13
+ 'exchangeAccountId': !exists(json, 'exchangeAccountId') ? undefined : json['exchangeAccountId'],
14
+ 'status': !exists(json, 'status') ? undefined : json['status'],
25
15
  'amount': json['amount'],
26
16
  'currency': json['currency'],
27
- 'createdAt': (new Date(json['createdAt'])),
17
+ 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
28
18
  };
29
19
  }
30
20
  function ExchangeTransferResponseToJSON(value) {
@@ -40,7 +30,7 @@ function ExchangeTransferResponseToJSON(value) {
40
30
  'status': value.status,
41
31
  'amount': value.amount,
42
32
  'currency': value.currency,
43
- 'createdAt': (value.createdAt.toISOString()),
33
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
44
34
  };
45
35
  }
46
36
 
@@ -22,6 +22,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
22
22
  */
23
23
  exports.UnprocessableEntityErrorCode = void 0;
24
24
  (function (UnprocessableEntityErrorCode) {
25
+ UnprocessableEntityErrorCode["TransferAddressNotWhitelisted"] = "transfer_address_not_whitelisted";
25
26
  UnprocessableEntityErrorCode["InvalidScopes"] = "invalid_scopes";
26
27
  UnprocessableEntityErrorCode["UnknownTransferError"] = "unknown_transfer_error";
27
28
  UnprocessableEntityErrorCode["TransferMfaRequired"] = "transfer_mfa_required";
@@ -15,6 +15,7 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum UnprocessableEntityErrorCode {
18
+ TransferAddressNotWhitelisted = "transfer_address_not_whitelisted",
18
19
  InvalidScopes = "invalid_scopes",
19
20
  UnknownTransferError = "unknown_transfer_error",
20
21
  TransferMfaRequired = "transfer_mfa_required",
@@ -18,6 +18,7 @@
18
18
  */
19
19
  var UnprocessableEntityErrorCode;
20
20
  (function (UnprocessableEntityErrorCode) {
21
+ UnprocessableEntityErrorCode["TransferAddressNotWhitelisted"] = "transfer_address_not_whitelisted";
21
22
  UnprocessableEntityErrorCode["InvalidScopes"] = "invalid_scopes";
22
23
  UnprocessableEntityErrorCode["UnknownTransferError"] = "unknown_transfer_error";
23
24
  UnprocessableEntityErrorCode["TransferMfaRequired"] = "transfer_mfa_required";