@dynamic-labs/sdk-api 0.0.914 → 0.0.916

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.914",
3
+ "version": "0.0.916",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -39,6 +39,7 @@ exports.ChainEnum = void 0;
39
39
  ChainEnum["Stellar"] = "STELLAR";
40
40
  ChainEnum["Aleo"] = "ALEO";
41
41
  ChainEnum["Tempo"] = "TEMPO";
42
+ ChainEnum["Midnight"] = "MIDNIGHT";
42
43
  })(exports.ChainEnum || (exports.ChainEnum = {}));
43
44
  function ChainEnumFromJSON(json) {
44
45
  return ChainEnumFromJSONTyped(json);
@@ -31,7 +31,8 @@ export declare enum ChainEnum {
31
31
  Ton = "TON",
32
32
  Stellar = "STELLAR",
33
33
  Aleo = "ALEO",
34
- Tempo = "TEMPO"
34
+ Tempo = "TEMPO",
35
+ Midnight = "MIDNIGHT"
35
36
  }
36
37
  export declare function ChainEnumFromJSON(json: any): ChainEnum;
37
38
  export declare function ChainEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainEnum;
@@ -35,6 +35,7 @@ var ChainEnum;
35
35
  ChainEnum["Stellar"] = "STELLAR";
36
36
  ChainEnum["Aleo"] = "ALEO";
37
37
  ChainEnum["Tempo"] = "TEMPO";
38
+ ChainEnum["Midnight"] = "MIDNIGHT";
38
39
  })(ChainEnum || (ChainEnum = {}));
39
40
  function ChainEnumFromJSON(json) {
40
41
  return ChainEnumFromJSONTyped(json);
@@ -20,11 +20,9 @@ function CheckoutFromJSONTyped(json, ignoreDiscriminator) {
20
20
  'id': json['id'],
21
21
  'mode': CheckoutModeEnum.CheckoutModeEnumFromJSON(json['mode']),
22
22
  'settlementConfig': SettlementConfigInput.SettlementConfigInputFromJSON(json['settlementConfig']),
23
- 'destinationConfig': DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
23
+ 'destinationConfig': !runtime.exists(json, 'destinationConfig') ? undefined : DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
24
24
  'depositConfig': !runtime.exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInput.DepositAmountsConfigInputFromJSON(json['depositConfig']),
25
25
  'enableOrchestration': json['enableOrchestration'],
26
- 'geoRestrictions': !runtime.exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
27
- 'exchangeRestrictions': !runtime.exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
28
26
  'createdAt': (new Date(json['createdAt'])),
29
27
  'updatedAt': (new Date(json['updatedAt'])),
30
28
  };
@@ -43,8 +41,6 @@ function CheckoutToJSON(value) {
43
41
  'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
44
42
  'depositConfig': DepositAmountsConfigInput.DepositAmountsConfigInputToJSON(value.depositConfig),
45
43
  'enableOrchestration': value.enableOrchestration,
46
- 'geoRestrictions': value.geoRestrictions,
47
- 'exchangeRestrictions': value.exchangeRestrictions,
48
44
  'createdAt': (value.createdAt.toISOString()),
49
45
  'updatedAt': (value.updatedAt.toISOString()),
50
46
  };
@@ -42,7 +42,7 @@ export interface Checkout {
42
42
  * @type {DestinationConfigInput}
43
43
  * @memberof Checkout
44
44
  */
45
- destinationConfig: DestinationConfigInput;
45
+ destinationConfig?: DestinationConfigInput;
46
46
  /**
47
47
  *
48
48
  * @type {DepositAmountsConfigInput}
@@ -55,18 +55,6 @@ export interface Checkout {
55
55
  * @memberof Checkout
56
56
  */
57
57
  enableOrchestration: boolean;
58
- /**
59
- *
60
- * @type {Array<string>}
61
- * @memberof Checkout
62
- */
63
- geoRestrictions?: Array<string>;
64
- /**
65
- *
66
- * @type {Array<string>}
67
- * @memberof Checkout
68
- */
69
- exchangeRestrictions?: Array<string>;
70
58
  /**
71
59
  *
72
60
  * @type {Date}
@@ -16,11 +16,9 @@ function CheckoutFromJSONTyped(json, ignoreDiscriminator) {
16
16
  'id': json['id'],
17
17
  'mode': CheckoutModeEnumFromJSON(json['mode']),
18
18
  'settlementConfig': SettlementConfigInputFromJSON(json['settlementConfig']),
19
- 'destinationConfig': DestinationConfigInputFromJSON(json['destinationConfig']),
19
+ 'destinationConfig': !exists(json, 'destinationConfig') ? undefined : DestinationConfigInputFromJSON(json['destinationConfig']),
20
20
  'depositConfig': !exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInputFromJSON(json['depositConfig']),
21
21
  'enableOrchestration': json['enableOrchestration'],
22
- 'geoRestrictions': !exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
23
- 'exchangeRestrictions': !exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
24
22
  'createdAt': (new Date(json['createdAt'])),
25
23
  'updatedAt': (new Date(json['updatedAt'])),
26
24
  };
@@ -39,8 +37,6 @@ function CheckoutToJSON(value) {
39
37
  'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
40
38
  'depositConfig': DepositAmountsConfigInputToJSON(value.depositConfig),
41
39
  'enableOrchestration': value.enableOrchestration,
42
- 'geoRestrictions': value.geoRestrictions,
43
- 'exchangeRestrictions': value.exchangeRestrictions,
44
40
  'createdAt': (value.createdAt.toISOString()),
45
41
  'updatedAt': (value.updatedAt.toISOString()),
46
42
  };
@@ -22,8 +22,6 @@ function CheckoutCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
22
22
  'destinationConfig': DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
23
23
  'depositConfig': !runtime.exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInput.DepositAmountsConfigInputFromJSON(json['depositConfig']),
24
24
  'enableOrchestration': !runtime.exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
25
- 'geoRestrictions': !runtime.exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
26
- 'exchangeRestrictions': !runtime.exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
27
25
  };
28
26
  }
29
27
  function CheckoutCreateRequestToJSON(value) {
@@ -39,8 +37,6 @@ function CheckoutCreateRequestToJSON(value) {
39
37
  'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
40
38
  'depositConfig': DepositAmountsConfigInput.DepositAmountsConfigInputToJSON(value.depositConfig),
41
39
  'enableOrchestration': value.enableOrchestration,
42
- 'geoRestrictions': value.geoRestrictions,
43
- 'exchangeRestrictions': value.exchangeRestrictions,
44
40
  };
45
41
  }
46
42
 
@@ -49,18 +49,6 @@ export interface CheckoutCreateRequest {
49
49
  * @memberof CheckoutCreateRequest
50
50
  */
51
51
  enableOrchestration?: boolean;
52
- /**
53
- *
54
- * @type {Array<string>}
55
- * @memberof CheckoutCreateRequest
56
- */
57
- geoRestrictions?: Array<string>;
58
- /**
59
- *
60
- * @type {Array<string>}
61
- * @memberof CheckoutCreateRequest
62
- */
63
- exchangeRestrictions?: Array<string>;
64
52
  }
65
53
  export declare function CheckoutCreateRequestFromJSON(json: any): CheckoutCreateRequest;
66
54
  export declare function CheckoutCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutCreateRequest;
@@ -18,8 +18,6 @@ function CheckoutCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
18
18
  'destinationConfig': DestinationConfigInputFromJSON(json['destinationConfig']),
19
19
  'depositConfig': !exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInputFromJSON(json['depositConfig']),
20
20
  'enableOrchestration': !exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
21
- 'geoRestrictions': !exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
22
- 'exchangeRestrictions': !exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
23
21
  };
24
22
  }
25
23
  function CheckoutCreateRequestToJSON(value) {
@@ -35,8 +33,6 @@ function CheckoutCreateRequestToJSON(value) {
35
33
  'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
36
34
  'depositConfig': DepositAmountsConfigInputToJSON(value.depositConfig),
37
35
  'enableOrchestration': value.enableOrchestration,
38
- 'geoRestrictions': value.geoRestrictions,
39
- 'exchangeRestrictions': value.exchangeRestrictions,
40
36
  };
41
37
  }
42
38
 
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var CheckoutTransactionDestinationAddress = require('./CheckoutTransactionDestinationAddress.cjs');
6
7
 
7
8
  /* tslint:disable */
8
9
  function CheckoutTransactionCreateRequestFromJSON(json) {
@@ -15,6 +16,7 @@ function CheckoutTransactionCreateRequestFromJSONTyped(json, ignoreDiscriminator
15
16
  return {
16
17
  'amount': json['amount'],
17
18
  'currency': json['currency'],
19
+ 'destinationAddresses': !runtime.exists(json, 'destinationAddresses') ? undefined : (json['destinationAddresses'].map(CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSON)),
18
20
  'expiresIn': !runtime.exists(json, 'expiresIn') ? undefined : json['expiresIn'],
19
21
  'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
20
22
  };
@@ -29,6 +31,7 @@ function CheckoutTransactionCreateRequestToJSON(value) {
29
31
  return {
30
32
  'amount': value.amount,
31
33
  'currency': value.currency,
34
+ 'destinationAddresses': value.destinationAddresses === undefined ? undefined : (value.destinationAddresses.map(CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressToJSON)),
32
35
  'expiresIn': value.expiresIn,
33
36
  'memo': value.memo,
34
37
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CheckoutTransactionDestinationAddress } from './CheckoutTransactionDestinationAddress';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -27,6 +28,12 @@ export interface CheckoutTransactionCreateRequest {
27
28
  * @memberof CheckoutTransactionCreateRequest
28
29
  */
29
30
  currency: string;
31
+ /**
32
+ *
33
+ * @type {Array<CheckoutTransactionDestinationAddress>}
34
+ * @memberof CheckoutTransactionCreateRequest
35
+ */
36
+ destinationAddresses?: Array<CheckoutTransactionDestinationAddress>;
30
37
  /**
31
38
  * Seconds until the transaction expires (default 3600)
32
39
  * @type {number}
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressToJSON } from './CheckoutTransactionDestinationAddress.js';
2
3
 
3
4
  /* tslint:disable */
4
5
  function CheckoutTransactionCreateRequestFromJSON(json) {
@@ -11,6 +12,7 @@ function CheckoutTransactionCreateRequestFromJSONTyped(json, ignoreDiscriminator
11
12
  return {
12
13
  'amount': json['amount'],
13
14
  'currency': json['currency'],
15
+ 'destinationAddresses': !exists(json, 'destinationAddresses') ? undefined : (json['destinationAddresses'].map(CheckoutTransactionDestinationAddressFromJSON)),
14
16
  'expiresIn': !exists(json, 'expiresIn') ? undefined : json['expiresIn'],
15
17
  'memo': !exists(json, 'memo') ? undefined : json['memo'],
16
18
  };
@@ -25,6 +27,7 @@ function CheckoutTransactionCreateRequestToJSON(value) {
25
27
  return {
26
28
  'amount': value.amount,
27
29
  'currency': value.currency,
30
+ 'destinationAddresses': value.destinationAddresses === undefined ? undefined : (value.destinationAddresses.map(CheckoutTransactionDestinationAddressToJSON)),
28
31
  'expiresIn': value.expiresIn,
29
32
  'memo': value.memo,
30
33
  };
@@ -20,8 +20,6 @@ function CheckoutUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
20
20
  'destinationConfig': !runtime.exists(json, 'destinationConfig') ? undefined : DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
21
21
  'depositConfig': !runtime.exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInput.DepositAmountsConfigInputFromJSON(json['depositConfig']),
22
22
  'enableOrchestration': !runtime.exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
23
- 'geoRestrictions': !runtime.exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
24
- 'exchangeRestrictions': !runtime.exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
25
23
  };
26
24
  }
27
25
  function CheckoutUpdateRequestToJSON(value) {
@@ -36,8 +34,6 @@ function CheckoutUpdateRequestToJSON(value) {
36
34
  'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
37
35
  'depositConfig': DepositAmountsConfigInput.DepositAmountsConfigInputToJSON(value.depositConfig),
38
36
  'enableOrchestration': value.enableOrchestration,
39
- 'geoRestrictions': value.geoRestrictions,
40
- 'exchangeRestrictions': value.exchangeRestrictions,
41
37
  };
42
38
  }
43
39
 
@@ -42,18 +42,6 @@ export interface CheckoutUpdateRequest {
42
42
  * @memberof CheckoutUpdateRequest
43
43
  */
44
44
  enableOrchestration?: boolean;
45
- /**
46
- *
47
- * @type {Array<string>}
48
- * @memberof CheckoutUpdateRequest
49
- */
50
- geoRestrictions?: Array<string>;
51
- /**
52
- *
53
- * @type {Array<string>}
54
- * @memberof CheckoutUpdateRequest
55
- */
56
- exchangeRestrictions?: Array<string>;
57
45
  }
58
46
  export declare function CheckoutUpdateRequestFromJSON(json: any): CheckoutUpdateRequest;
59
47
  export declare function CheckoutUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutUpdateRequest;
@@ -16,8 +16,6 @@ function CheckoutUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
16
16
  'destinationConfig': !exists(json, 'destinationConfig') ? undefined : DestinationConfigInputFromJSON(json['destinationConfig']),
17
17
  'depositConfig': !exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInputFromJSON(json['depositConfig']),
18
18
  'enableOrchestration': !exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
19
- 'geoRestrictions': !exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
20
- 'exchangeRestrictions': !exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
21
19
  };
22
20
  }
23
21
  function CheckoutUpdateRequestToJSON(value) {
@@ -32,8 +30,6 @@ function CheckoutUpdateRequestToJSON(value) {
32
30
  'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
33
31
  'depositConfig': DepositAmountsConfigInputToJSON(value.depositConfig),
34
32
  'enableOrchestration': value.enableOrchestration,
35
- 'geoRestrictions': value.geoRestrictions,
36
- 'exchangeRestrictions': value.exchangeRestrictions,
37
33
  };
38
34
  }
39
35
 
@@ -23,8 +23,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
23
23
  exports.DestinationTypeEnum = void 0;
24
24
  (function (DestinationTypeEnum) {
25
25
  DestinationTypeEnum["Address"] = "address";
26
- DestinationTypeEnum["Embedded"] = "embedded";
27
- DestinationTypeEnum["Fireblocks"] = "fireblocks";
28
26
  })(exports.DestinationTypeEnum || (exports.DestinationTypeEnum = {}));
29
27
  function DestinationTypeEnumFromJSON(json) {
30
28
  return DestinationTypeEnumFromJSONTyped(json);
@@ -15,9 +15,7 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum DestinationTypeEnum {
18
- Address = "address",
19
- Embedded = "embedded",
20
- Fireblocks = "fireblocks"
18
+ Address = "address"
21
19
  }
22
20
  export declare function DestinationTypeEnumFromJSON(json: any): DestinationTypeEnum;
23
21
  export declare function DestinationTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DestinationTypeEnum;
@@ -19,8 +19,6 @@
19
19
  var DestinationTypeEnum;
20
20
  (function (DestinationTypeEnum) {
21
21
  DestinationTypeEnum["Address"] = "address";
22
- DestinationTypeEnum["Embedded"] = "embedded";
23
- DestinationTypeEnum["Fireblocks"] = "fireblocks";
24
22
  })(DestinationTypeEnum || (DestinationTypeEnum = {}));
25
23
  function DestinationTypeEnumFromJSON(json) {
26
24
  return DestinationTypeEnumFromJSONTyped(json);