@dynamic-labs/sdk-api-core 0.0.556 → 0.0.558

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.556",
3
+ "version": "0.0.558",
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 AssetTransferFromJSON(json) {
19
9
  return AssetTransferFromJSONTyped(json);
20
10
  }
@@ -23,10 +13,10 @@ function AssetTransferFromJSONTyped(json, ignoreDiscriminator) {
23
13
  return json;
24
14
  }
25
15
  return {
26
- 'rawValue': json['rawValue'],
27
- 'summary': json['summary'],
28
- 'usdPrice': json['usdPrice'],
29
- 'value': json['value'],
16
+ 'rawValue': !runtime.exists(json, 'rawValue') ? undefined : json['rawValue'],
17
+ 'summary': !runtime.exists(json, 'summary') ? undefined : json['summary'],
18
+ 'usdPrice': !runtime.exists(json, 'usdPrice') ? undefined : json['usdPrice'],
19
+ 'value': !runtime.exists(json, 'value') ? undefined : json['value'],
30
20
  };
31
21
  }
32
22
  function AssetTransferToJSON(value) {
@@ -20,25 +20,25 @@ export interface AssetTransfer {
20
20
  * @type {string}
21
21
  * @memberof AssetTransfer
22
22
  */
23
- rawValue: string;
23
+ rawValue?: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof AssetTransfer
28
28
  */
29
- summary: string;
29
+ summary?: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof AssetTransfer
34
34
  */
35
- usdPrice: string;
35
+ usdPrice?: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
39
  * @memberof AssetTransfer
40
40
  */
41
- value: string;
41
+ value?: string;
42
42
  }
43
43
  export declare function AssetTransferFromJSON(json: any): AssetTransfer;
44
44
  export declare function AssetTransferFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetTransfer;
@@ -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 AssetTransferFromJSON(json) {
15
5
  return AssetTransferFromJSONTyped(json);
16
6
  }
@@ -19,10 +9,10 @@ function AssetTransferFromJSONTyped(json, ignoreDiscriminator) {
19
9
  return json;
20
10
  }
21
11
  return {
22
- 'rawValue': json['rawValue'],
23
- 'summary': json['summary'],
24
- 'usdPrice': json['usdPrice'],
25
- 'value': json['value'],
12
+ 'rawValue': !exists(json, 'rawValue') ? undefined : json['rawValue'],
13
+ 'summary': !exists(json, 'summary') ? undefined : json['summary'],
14
+ 'usdPrice': !exists(json, 'usdPrice') ? undefined : json['usdPrice'],
15
+ 'value': !exists(json, 'value') ? undefined : json['value'],
26
16
  };
27
17
  }
28
18
  function AssetTransferToJSON(value) {
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var runtime = require('../runtime.cjs');
5
6
  var AssetDiff = require('./AssetDiff.cjs');
6
7
 
7
8
  /* tslint:disable */
@@ -15,6 +16,7 @@ function SimulateTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
15
16
  return {
16
17
  'inAssets': (json['inAssets'].map(AssetDiff.AssetDiffFromJSON)),
17
18
  'outAssets': (json['outAssets'].map(AssetDiff.AssetDiffFromJSON)),
19
+ 'counterparties': !runtime.exists(json, 'counterparties') ? undefined : json['counterparties'],
18
20
  };
19
21
  }
20
22
  function SimulateTransactionResponseToJSON(value) {
@@ -27,6 +29,7 @@ function SimulateTransactionResponseToJSON(value) {
27
29
  return {
28
30
  'inAssets': (value.inAssets.map(AssetDiff.AssetDiffToJSON)),
29
31
  'outAssets': (value.outAssets.map(AssetDiff.AssetDiffToJSON)),
32
+ 'counterparties': value.counterparties,
30
33
  };
31
34
  }
32
35
 
@@ -28,6 +28,12 @@ export interface SimulateTransactionResponse {
28
28
  * @memberof SimulateTransactionResponse
29
29
  */
30
30
  outAssets: Array<AssetDiff>;
31
+ /**
32
+ *
33
+ * @type {Array<string>}
34
+ * @memberof SimulateTransactionResponse
35
+ */
36
+ counterparties?: Array<string>;
31
37
  }
32
38
  export declare function SimulateTransactionResponseFromJSON(json: any): SimulateTransactionResponse;
33
39
  export declare function SimulateTransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimulateTransactionResponse;
@@ -1,3 +1,4 @@
1
+ import { exists } from '../runtime.js';
1
2
  import { AssetDiffFromJSON, AssetDiffToJSON } from './AssetDiff.js';
2
3
 
3
4
  /* tslint:disable */
@@ -11,6 +12,7 @@ function SimulateTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
11
12
  return {
12
13
  'inAssets': (json['inAssets'].map(AssetDiffFromJSON)),
13
14
  'outAssets': (json['outAssets'].map(AssetDiffFromJSON)),
15
+ 'counterparties': !exists(json, 'counterparties') ? undefined : json['counterparties'],
14
16
  };
15
17
  }
16
18
  function SimulateTransactionResponseToJSON(value) {
@@ -23,6 +25,7 @@ function SimulateTransactionResponseToJSON(value) {
23
25
  return {
24
26
  'inAssets': (value.inAssets.map(AssetDiffToJSON)),
25
27
  'outAssets': (value.outAssets.map(AssetDiffToJSON)),
28
+ 'counterparties': value.counterparties,
26
29
  };
27
30
  }
28
31