@dynamic-labs/sdk-api 0.39.0 → 0.41.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/src/index.js CHANGED
@@ -674,6 +674,7 @@ export { PublicKeyCredentialType, PublicKeyCredentialTypeFromJSON, PublicKeyCred
674
674
  export { PublicKeyCredentialUserEntityFromJSON, PublicKeyCredentialUserEntityFromJSONTyped, PublicKeyCredentialUserEntityToJSON } from './models/PublicKeyCredentialUserEntity.js';
675
675
  export { PublishEventsFromJSON, PublishEventsFromJSONTyped, PublishEventsToJSON } from './models/PublishEvents.js';
676
676
  export { PublishEventsEventsFromJSON, PublishEventsEventsFromJSONTyped, PublishEventsEventsToJSON, PublishEventsEventsTypeEnum } from './models/PublishEventsEvents.js';
677
+ export { PutAllowlistsRequestFromJSON, PutAllowlistsRequestFromJSONTyped, PutAllowlistsRequestToJSON } from './models/PutAllowlistsRequest.js';
677
678
  export { RampConfigurationFromJSON, RampConfigurationFromJSONTyped, RampConfigurationToJSON } from './models/RampConfiguration.js';
678
679
  export { ReactSettingsFromJSON, ReactSettingsFromJSONTyped, ReactSettingsToJSON } from './models/ReactSettings.js';
679
680
  export { RealtimeAuthTokenResponseFromJSON, RealtimeAuthTokenResponseFromJSONTyped, RealtimeAuthTokenResponseToJSON } from './models/RealtimeAuthTokenResponse.js';
@@ -979,13 +980,16 @@ export { WebhookMessagesResponseFromJSON, WebhookMessagesResponseFromJSONTyped,
979
980
  export { WebhookUpdateRequestFromJSON, WebhookUpdateRequestFromJSONTyped, WebhookUpdateRequestToJSON } from './models/WebhookUpdateRequest.js';
980
981
  export { WebhooksResponseFromJSON, WebhooksResponseFromJSONTyped, WebhooksResponseToJSON } from './models/WebhooksResponse.js';
981
982
  export { WhenToImplementEnum, WhenToImplementEnumFromJSON, WhenToImplementEnumFromJSONTyped, WhenToImplementEnumToJSON } from './models/WhenToImplementEnum.js';
983
+ export { YieldEarningsFromJSON, YieldEarningsFromJSONTyped, YieldEarningsToJSON } from './models/YieldEarnings.js';
982
984
  export { YieldSigningPayloadFromJSON, YieldSigningPayloadFromJSONTyped, YieldSigningPayloadToJSON } from './models/YieldSigningPayload.js';
983
985
  export { YieldVaultActionRequestFromJSON, YieldVaultActionRequestFromJSONTyped, YieldVaultActionRequestToJSON } from './models/YieldVaultActionRequest.js';
984
986
  export { YieldVaultActionResponseFromJSON, YieldVaultActionResponseFromJSONTyped, YieldVaultActionResponseToJSON } from './models/YieldVaultActionResponse.js';
985
987
  export { YieldVaultClaimRequestFromJSON, YieldVaultClaimRequestFromJSONTyped, YieldVaultClaimRequestToJSON } from './models/YieldVaultClaimRequest.js';
986
988
  export { YieldVaultDetailsFromJSON, YieldVaultDetailsFromJSONTyped, YieldVaultDetailsToJSON } from './models/YieldVaultDetails.js';
989
+ export { YieldVaultEarningsFromJSON, YieldVaultEarningsFromJSONTyped, YieldVaultEarningsToJSON } from './models/YieldVaultEarnings.js';
987
990
  export { YieldVaultListResponseFromJSON, YieldVaultListResponseFromJSONTyped, YieldVaultListResponseToJSON } from './models/YieldVaultListResponse.js';
988
991
  export { YieldVaultPositionFromJSON, YieldVaultPositionFromJSONTyped, YieldVaultPositionToJSON } from './models/YieldVaultPosition.js';
992
+ export { YieldVaultPositionPerformanceFromJSON, YieldVaultPositionPerformanceFromJSONTyped, YieldVaultPositionPerformanceToJSON } from './models/YieldVaultPositionPerformance.js';
989
993
  export { YieldVaultRewardFromJSON, YieldVaultRewardFromJSONTyped, YieldVaultRewardToJSON } from './models/YieldVaultReward.js';
990
994
  export { YieldVaultRewardsResponseFromJSON, YieldVaultRewardsResponseFromJSONTyped, YieldVaultRewardsResponseToJSON } from './models/YieldVaultRewardsResponse.js';
991
995
  export { YieldVaultSummaryFromJSON, YieldVaultSummaryFromJSONTyped, YieldVaultSummaryToJSON } from './models/YieldVaultSummary.js';
@@ -30,8 +30,7 @@ function BusinessAccountApprovalRequirementFromJSONTyped(json, ignoreDiscriminat
30
30
  'mandatoryApproverRoles': !runtime.exists(json, 'mandatoryApproverRoles') ? undefined : json['mandatoryApproverRoles'],
31
31
  'approverCapabilities': !runtime.exists(json, 'approverCapabilities') ? undefined : json['approverCapabilities'],
32
32
  'requiredApprovals': json['requiredApprovals'],
33
- 'approvalWindowSeconds': !runtime.exists(json, 'approvalWindowSeconds') ? undefined : json['approvalWindowSeconds'],
34
- 'executionWindowSeconds': !runtime.exists(json, 'executionWindowSeconds') ? undefined : json['executionWindowSeconds'],
33
+ 'completeWithinSeconds': !runtime.exists(json, 'completeWithinSeconds') ? undefined : json['completeWithinSeconds'],
35
34
  };
36
35
  }
37
36
  function BusinessAccountApprovalRequirementToJSON(value) {
@@ -50,8 +49,7 @@ function BusinessAccountApprovalRequirementToJSON(value) {
50
49
  'mandatoryApproverRoles': value.mandatoryApproverRoles,
51
50
  'approverCapabilities': value.approverCapabilities,
52
51
  'requiredApprovals': value.requiredApprovals,
53
- 'approvalWindowSeconds': value.approvalWindowSeconds,
54
- 'executionWindowSeconds': value.executionWindowSeconds,
52
+ 'completeWithinSeconds': value.completeWithinSeconds,
55
53
  };
56
54
  }
57
55
 
@@ -65,17 +65,11 @@ export interface BusinessAccountApprovalRequirement {
65
65
  */
66
66
  requiredApprovals: number;
67
67
  /**
68
- * How long approvals may be collected, measured from the signed intent. Defaults to 24 hours and is capped at 30 days.
68
+ * Seconds from the signed intent in which the change must be both approved and executed. One deadline, not separate approve-by and execute-by clocks. Defaults to 30 days, the maximum allowed — an unconfigured account has expressed no opinion, so it isn't given a shorter one.
69
69
  * @type {number}
70
70
  * @memberof BusinessAccountApprovalRequirement
71
71
  */
72
- approvalWindowSeconds?: number;
73
- /**
74
- * How long a satisfied set stays spendable, measured from the last approval. Absent means no execution deadline.
75
- * @type {number}
76
- * @memberof BusinessAccountApprovalRequirement
77
- */
78
- executionWindowSeconds?: number;
72
+ completeWithinSeconds?: number;
79
73
  }
80
74
  /**
81
75
  * @export
@@ -26,8 +26,7 @@ function BusinessAccountApprovalRequirementFromJSONTyped(json, ignoreDiscriminat
26
26
  'mandatoryApproverRoles': !exists(json, 'mandatoryApproverRoles') ? undefined : json['mandatoryApproverRoles'],
27
27
  'approverCapabilities': !exists(json, 'approverCapabilities') ? undefined : json['approverCapabilities'],
28
28
  'requiredApprovals': json['requiredApprovals'],
29
- 'approvalWindowSeconds': !exists(json, 'approvalWindowSeconds') ? undefined : json['approvalWindowSeconds'],
30
- 'executionWindowSeconds': !exists(json, 'executionWindowSeconds') ? undefined : json['executionWindowSeconds'],
29
+ 'completeWithinSeconds': !exists(json, 'completeWithinSeconds') ? undefined : json['completeWithinSeconds'],
31
30
  };
32
31
  }
33
32
  function BusinessAccountApprovalRequirementToJSON(value) {
@@ -46,8 +45,7 @@ function BusinessAccountApprovalRequirementToJSON(value) {
46
45
  'mandatoryApproverRoles': value.mandatoryApproverRoles,
47
46
  'approverCapabilities': value.approverCapabilities,
48
47
  'requiredApprovals': value.requiredApprovals,
49
- 'approvalWindowSeconds': value.approvalWindowSeconds,
50
- 'executionWindowSeconds': value.executionWindowSeconds,
48
+ 'completeWithinSeconds': value.completeWithinSeconds,
51
49
  };
52
50
  }
53
51
 
@@ -14,7 +14,7 @@ function PostAllowlistsRequestFromJSONTyped(json, ignoreDiscriminator) {
14
14
  return json;
15
15
  }
16
16
  return {
17
- 'name': !runtime.exists(json, 'name') ? undefined : json['name'],
17
+ 'name': json['name'],
18
18
  'scope': !runtime.exists(json, 'scope') ? undefined : json['scope'],
19
19
  'outcome': !runtime.exists(json, 'outcome') ? undefined : AccessOutcomeEnum.AccessOutcomeEnumFromJSON(json['outcome']),
20
20
  };
@@ -21,7 +21,7 @@ export interface PostAllowlistsRequest {
21
21
  * @type {string}
22
22
  * @memberof PostAllowlistsRequest
23
23
  */
24
- name?: string;
24
+ name: string;
25
25
  /**
26
26
  *
27
27
  * @type {string}
@@ -10,7 +10,7 @@ function PostAllowlistsRequestFromJSONTyped(json, ignoreDiscriminator) {
10
10
  return json;
11
11
  }
12
12
  return {
13
- 'name': !exists(json, 'name') ? undefined : json['name'],
13
+ 'name': json['name'],
14
14
  'scope': !exists(json, 'scope') ? undefined : json['scope'],
15
15
  'outcome': !exists(json, 'outcome') ? undefined : AccessOutcomeEnumFromJSON(json['outcome']),
16
16
  };
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var AccessOutcomeEnum = require('./AccessOutcomeEnum.cjs');
7
+
8
+ /* tslint:disable */
9
+ function PutAllowlistsRequestFromJSON(json) {
10
+ return PutAllowlistsRequestFromJSONTyped(json);
11
+ }
12
+ function PutAllowlistsRequestFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'name': !runtime.exists(json, 'name') ? undefined : json['name'],
18
+ 'scope': !runtime.exists(json, 'scope') ? undefined : json['scope'],
19
+ 'outcome': !runtime.exists(json, 'outcome') ? undefined : AccessOutcomeEnum.AccessOutcomeEnumFromJSON(json['outcome']),
20
+ };
21
+ }
22
+ function PutAllowlistsRequestToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'name': value.name,
31
+ 'scope': value.scope,
32
+ 'outcome': AccessOutcomeEnum.AccessOutcomeEnumToJSON(value.outcome),
33
+ };
34
+ }
35
+
36
+ exports.PutAllowlistsRequestFromJSON = PutAllowlistsRequestFromJSON;
37
+ exports.PutAllowlistsRequestFromJSONTyped = PutAllowlistsRequestFromJSONTyped;
38
+ exports.PutAllowlistsRequestToJSON = PutAllowlistsRequestToJSON;
@@ -0,0 +1,40 @@
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
+ import { AccessOutcomeEnum } from './AccessOutcomeEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PutAllowlistsRequest
17
+ */
18
+ export interface PutAllowlistsRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PutAllowlistsRequest
23
+ */
24
+ name?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PutAllowlistsRequest
29
+ */
30
+ scope?: string;
31
+ /**
32
+ *
33
+ * @type {AccessOutcomeEnum}
34
+ * @memberof PutAllowlistsRequest
35
+ */
36
+ outcome?: AccessOutcomeEnum;
37
+ }
38
+ export declare function PutAllowlistsRequestFromJSON(json: any): PutAllowlistsRequest;
39
+ export declare function PutAllowlistsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutAllowlistsRequest;
40
+ export declare function PutAllowlistsRequestToJSON(value?: PutAllowlistsRequest | null): any;
@@ -0,0 +1,32 @@
1
+ import { exists } from '../runtime.js';
2
+ import { AccessOutcomeEnumFromJSON, AccessOutcomeEnumToJSON } from './AccessOutcomeEnum.js';
3
+
4
+ /* tslint:disable */
5
+ function PutAllowlistsRequestFromJSON(json) {
6
+ return PutAllowlistsRequestFromJSONTyped(json);
7
+ }
8
+ function PutAllowlistsRequestFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'name': !exists(json, 'name') ? undefined : json['name'],
14
+ 'scope': !exists(json, 'scope') ? undefined : json['scope'],
15
+ 'outcome': !exists(json, 'outcome') ? undefined : AccessOutcomeEnumFromJSON(json['outcome']),
16
+ };
17
+ }
18
+ function PutAllowlistsRequestToJSON(value) {
19
+ if (value === undefined) {
20
+ return undefined;
21
+ }
22
+ if (value === null) {
23
+ return null;
24
+ }
25
+ return {
26
+ 'name': value.name,
27
+ 'scope': value.scope,
28
+ 'outcome': AccessOutcomeEnumToJSON(value.outcome),
29
+ };
30
+ }
31
+
32
+ export { PutAllowlistsRequestFromJSON, PutAllowlistsRequestFromJSONTyped, PutAllowlistsRequestToJSON };
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var YieldVaultEarnings = require('./YieldVaultEarnings.cjs');
6
+
7
+ /* tslint:disable */
8
+ function YieldEarningsFromJSON(json) {
9
+ return YieldEarningsFromJSONTyped(json);
10
+ }
11
+ function YieldEarningsFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'chainId': json['chainId'],
17
+ 'ownerAddress': json['ownerAddress'],
18
+ 'totalAssetsUsd': json['totalAssetsUsd'],
19
+ 'totalPnlUsd': json['totalPnlUsd'],
20
+ 'vaults': (json['vaults'].map(YieldVaultEarnings.YieldVaultEarningsFromJSON)),
21
+ };
22
+ }
23
+ function YieldEarningsToJSON(value) {
24
+ if (value === undefined) {
25
+ return undefined;
26
+ }
27
+ if (value === null) {
28
+ return null;
29
+ }
30
+ return {
31
+ 'chainId': value.chainId,
32
+ 'ownerAddress': value.ownerAddress,
33
+ 'totalAssetsUsd': value.totalAssetsUsd,
34
+ 'totalPnlUsd': value.totalPnlUsd,
35
+ 'vaults': (value.vaults.map(YieldVaultEarnings.YieldVaultEarningsToJSON)),
36
+ };
37
+ }
38
+
39
+ exports.YieldEarningsFromJSON = YieldEarningsFromJSON;
40
+ exports.YieldEarningsFromJSONTyped = YieldEarningsFromJSONTyped;
41
+ exports.YieldEarningsToJSON = YieldEarningsToJSON;
@@ -0,0 +1,52 @@
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
+ import { YieldVaultEarnings } from './YieldVaultEarnings';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface YieldEarnings
17
+ */
18
+ export interface YieldEarnings {
19
+ /**
20
+ * EVM chain id the earnings were aggregated on.
21
+ * @type {number}
22
+ * @memberof YieldEarnings
23
+ */
24
+ chainId: number;
25
+ /**
26
+ * Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
27
+ * @type {string}
28
+ * @memberof YieldEarnings
29
+ */
30
+ ownerAddress: string;
31
+ /**
32
+ * Sum of the USD position sizes. Vaults with no USD price are skipped rather than counted as zero.
33
+ * @type {number}
34
+ * @memberof YieldEarnings
35
+ */
36
+ totalAssetsUsd: number;
37
+ /**
38
+ * Sum of the USD earnings. Vaults with no USD price are skipped rather than counted as zero.
39
+ * @type {number}
40
+ * @memberof YieldEarnings
41
+ */
42
+ totalPnlUsd: number;
43
+ /**
44
+ * Per-vault breakdown behind the totals.
45
+ * @type {Array<YieldVaultEarnings>}
46
+ * @memberof YieldEarnings
47
+ */
48
+ vaults: Array<YieldVaultEarnings>;
49
+ }
50
+ export declare function YieldEarningsFromJSON(json: any): YieldEarnings;
51
+ export declare function YieldEarningsFromJSONTyped(json: any, ignoreDiscriminator: boolean): YieldEarnings;
52
+ export declare function YieldEarningsToJSON(value?: YieldEarnings | null): any;
@@ -0,0 +1,35 @@
1
+ import { YieldVaultEarningsFromJSON, YieldVaultEarningsToJSON } from './YieldVaultEarnings.js';
2
+
3
+ /* tslint:disable */
4
+ function YieldEarningsFromJSON(json) {
5
+ return YieldEarningsFromJSONTyped(json);
6
+ }
7
+ function YieldEarningsFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'chainId': json['chainId'],
13
+ 'ownerAddress': json['ownerAddress'],
14
+ 'totalAssetsUsd': json['totalAssetsUsd'],
15
+ 'totalPnlUsd': json['totalPnlUsd'],
16
+ 'vaults': (json['vaults'].map(YieldVaultEarningsFromJSON)),
17
+ };
18
+ }
19
+ function YieldEarningsToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'chainId': value.chainId,
28
+ 'ownerAddress': value.ownerAddress,
29
+ 'totalAssetsUsd': value.totalAssetsUsd,
30
+ 'totalPnlUsd': value.totalPnlUsd,
31
+ 'vaults': (value.vaults.map(YieldVaultEarningsToJSON)),
32
+ };
33
+ }
34
+
35
+ export { YieldEarningsFromJSON, YieldEarningsFromJSONTyped, YieldEarningsToJSON };
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* 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
+ function YieldVaultEarningsFromJSON(json) {
19
+ return YieldVaultEarningsFromJSONTyped(json);
20
+ }
21
+ function YieldVaultEarningsFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'assets': json['assets'],
27
+ 'assetsUsd': json['assetsUsd'],
28
+ 'pnl': json['pnl'],
29
+ 'pnlUsd': json['pnlUsd'],
30
+ 'roe': json['roe'],
31
+ 'vaultAddress': json['vaultAddress'],
32
+ 'vaultId': json['vaultId'],
33
+ };
34
+ }
35
+ function YieldVaultEarningsToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'assets': value.assets,
44
+ 'assetsUsd': value.assetsUsd,
45
+ 'pnl': value.pnl,
46
+ 'pnlUsd': value.pnlUsd,
47
+ 'roe': value.roe,
48
+ 'vaultAddress': value.vaultAddress,
49
+ 'vaultId': value.vaultId,
50
+ };
51
+ }
52
+
53
+ exports.YieldVaultEarningsFromJSON = YieldVaultEarningsFromJSON;
54
+ exports.YieldVaultEarningsFromJSONTyped = YieldVaultEarningsFromJSONTyped;
55
+ exports.YieldVaultEarningsToJSON = YieldVaultEarningsToJSON;
@@ -0,0 +1,63 @@
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 YieldVaultEarnings
16
+ */
17
+ export interface YieldVaultEarnings {
18
+ /**
19
+ * Position size, in raw units of the vault's underlying token.
20
+ * @type {string}
21
+ * @memberof YieldVaultEarnings
22
+ */
23
+ assets: string;
24
+ /**
25
+ * Position size in USD. Null when Morpho has no price for the underlying token.
26
+ * @type {number}
27
+ * @memberof YieldVaultEarnings
28
+ */
29
+ assetsUsd: number | null;
30
+ /**
31
+ * Earnings on the position, in raw units of the vault's underlying token. Null while the position has too little history to compute it.
32
+ * @type {string}
33
+ * @memberof YieldVaultEarnings
34
+ */
35
+ pnl: string | null;
36
+ /**
37
+ * Earnings on the position in USD. Null when Morpho has no price for the underlying token.
38
+ * @type {number}
39
+ * @memberof YieldVaultEarnings
40
+ */
41
+ pnlUsd: number | null;
42
+ /**
43
+ * Time-weighted, non-annualized return on equity since inception, as a decimal. Null while the position has too little history to compute it.
44
+ * @type {number}
45
+ * @memberof YieldVaultEarnings
46
+ */
47
+ roe: number | null;
48
+ /**
49
+ * Vault contract address as reported by Morpho.
50
+ * @type {string}
51
+ * @memberof YieldVaultEarnings
52
+ */
53
+ vaultAddress: string;
54
+ /**
55
+ * Opaque vault identifier, when the vault is one this environment offers. Null for positions in vaults outside the environment's catalog.
56
+ * @type {string}
57
+ * @memberof YieldVaultEarnings
58
+ */
59
+ vaultId: string | null;
60
+ }
61
+ export declare function YieldVaultEarningsFromJSON(json: any): YieldVaultEarnings;
62
+ export declare function YieldVaultEarningsFromJSONTyped(json: any, ignoreDiscriminator: boolean): YieldVaultEarnings;
63
+ export declare function YieldVaultEarningsToJSON(value?: YieldVaultEarnings | null): any;
@@ -0,0 +1,49 @@
1
+ /* 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
+ function YieldVaultEarningsFromJSON(json) {
15
+ return YieldVaultEarningsFromJSONTyped(json);
16
+ }
17
+ function YieldVaultEarningsFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'assets': json['assets'],
23
+ 'assetsUsd': json['assetsUsd'],
24
+ 'pnl': json['pnl'],
25
+ 'pnlUsd': json['pnlUsd'],
26
+ 'roe': json['roe'],
27
+ 'vaultAddress': json['vaultAddress'],
28
+ 'vaultId': json['vaultId'],
29
+ };
30
+ }
31
+ function YieldVaultEarningsToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'assets': value.assets,
40
+ 'assetsUsd': value.assetsUsd,
41
+ 'pnl': value.pnl,
42
+ 'pnlUsd': value.pnlUsd,
43
+ 'roe': value.roe,
44
+ 'vaultAddress': value.vaultAddress,
45
+ 'vaultId': value.vaultId,
46
+ };
47
+ }
48
+
49
+ export { YieldVaultEarningsFromJSON, YieldVaultEarningsFromJSONTyped, YieldVaultEarningsToJSON };
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* 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
+ function YieldVaultPositionPerformanceFromJSON(json) {
19
+ return YieldVaultPositionPerformanceFromJSONTyped(json);
20
+ }
21
+ function YieldVaultPositionPerformanceFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'netEarningsAssets': json['netEarningsAssets'],
27
+ 'ownerAddress': json['ownerAddress'],
28
+ 'returnOnCapital': json['returnOnCapital'],
29
+ 'vaultId': json['vaultId'],
30
+ };
31
+ }
32
+ function YieldVaultPositionPerformanceToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'netEarningsAssets': value.netEarningsAssets,
41
+ 'ownerAddress': value.ownerAddress,
42
+ 'returnOnCapital': value.returnOnCapital,
43
+ 'vaultId': value.vaultId,
44
+ };
45
+ }
46
+
47
+ exports.YieldVaultPositionPerformanceFromJSON = YieldVaultPositionPerformanceFromJSON;
48
+ exports.YieldVaultPositionPerformanceFromJSONTyped = YieldVaultPositionPerformanceFromJSONTyped;
49
+ exports.YieldVaultPositionPerformanceToJSON = YieldVaultPositionPerformanceToJSON;
@@ -0,0 +1,45 @@
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 YieldVaultPositionPerformance
16
+ */
17
+ export interface YieldVaultPositionPerformance {
18
+ /**
19
+ * Net earnings on the position, in raw units of the vault's underlying token. Approximates PNL.
20
+ * @type {string}
21
+ * @memberof YieldVaultPositionPerformance
22
+ */
23
+ netEarningsAssets: string;
24
+ /**
25
+ * Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
26
+ * @type {string}
27
+ * @memberof YieldVaultPositionPerformance
28
+ */
29
+ ownerAddress: string;
30
+ /**
31
+ * Time-weighted, non-annualized return on capital since inception, as a decimal. Null while the position has too little history to compute it.
32
+ * @type {number}
33
+ * @memberof YieldVaultPositionPerformance
34
+ */
35
+ returnOnCapital: number | null;
36
+ /**
37
+ * Opaque vault identifier.
38
+ * @type {string}
39
+ * @memberof YieldVaultPositionPerformance
40
+ */
41
+ vaultId: string;
42
+ }
43
+ export declare function YieldVaultPositionPerformanceFromJSON(json: any): YieldVaultPositionPerformance;
44
+ export declare function YieldVaultPositionPerformanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): YieldVaultPositionPerformance;
45
+ export declare function YieldVaultPositionPerformanceToJSON(value?: YieldVaultPositionPerformance | null): any;