@clossir-tech/ts-sdk 0.9.1 → 0.9.3
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/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.d.ts +2 -1
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.d.ts.map +1 -1
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.js +3 -2
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.js.map +1 -1
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions.d.ts +2 -1
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions.d.ts.map +1 -1
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions.js +3 -2
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions.js.map +1 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-distributions.d.ts +2 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-distributions.d.ts.map +1 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-distributions.js +2 -2
- package/esm/funcs/fees-get-orgs-by-org-id-fee-distributions.js.map +1 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-splits.d.ts +2 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-splits.d.ts.map +1 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-splits.js +2 -2
- package/esm/funcs/fees-get-orgs-by-org-id-fee-splits.js.map +1 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-history.d.ts +2 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-history.d.ts.map +1 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-history.js +2 -2
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-history.js.map +1 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-latest.d.ts +2 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-latest.d.ts.map +1 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-latest.js +2 -2
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-latest.js.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-epochs.d.ts +2 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-epochs.d.ts.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-epochs.js +2 -2
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-epochs.js.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-status.d.ts +2 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-status.d.ts.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-status.js +2 -2
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-status.js.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault.d.ts +2 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault.d.ts.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault.js +2 -2
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/errors/problem-details-error.d.ts +8 -0
- package/esm/models/errors/problem-details-error.d.ts.map +1 -1
- package/esm/models/errors/problem-details-error.js +7 -0
- package/esm/models/errors/problem-details-error.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.d.ts +59 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.js +84 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions.d.ts +68 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions.js +86 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-history.d.ts +54 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-history.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-history.js +59 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-history.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-latest.d.ts +42 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-latest.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-latest.js +56 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-latest.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-epochs.d.ts +77 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-epochs.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-epochs.js +92 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-epochs.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-status.d.ts +34 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-status.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-status.js +45 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-status.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault.d.ts +34 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault.js +42 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-fee-distributions.d.ts +60 -0
- package/esm/models/operations/get-orgs-by-org-id-fee-distributions.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-fee-distributions.js +66 -0
- package/esm/models/operations/get-orgs-by-org-id-fee-distributions.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-fee-splits.d.ts +31 -0
- package/esm/models/operations/get-orgs-by-org-id-fee-splits.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-fee-splits.js +39 -0
- package/esm/models/operations/get-orgs-by-org-id-fee-splits.js.map +1 -1
- package/esm/sdk/distributions.d.ts +2 -2
- package/esm/sdk/distributions.d.ts.map +1 -1
- package/esm/sdk/distributions.js.map +1 -1
- package/esm/sdk/fees.d.ts +2 -2
- package/esm/sdk/fees.d.ts.map +1 -1
- package/esm/sdk/fees.js.map +1 -1
- package/esm/sdk/nav.d.ts +2 -2
- package/esm/sdk/nav.d.ts.map +1 -1
- package/esm/sdk/nav.js.map +1 -1
- package/esm/sdk/vaults.d.ts +3 -3
- package/esm/sdk/vaults.d.ts.map +1 -1
- package/esm/sdk/vaults.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.ts +10 -6
- package/src/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions.ts +10 -6
- package/src/funcs/fees-get-orgs-by-org-id-fee-distributions.ts +9 -6
- package/src/funcs/fees-get-orgs-by-org-id-fee-splits.ts +6 -6
- package/src/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-history.ts +9 -6
- package/src/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-latest.ts +9 -6
- package/src/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-epochs.ts +9 -6
- package/src/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-status.ts +9 -6
- package/src/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault.ts +9 -6
- package/src/lib/config.ts +2 -2
- package/src/models/errors/problem-details-error.ts +10 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.ts +251 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions.ts +265 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-history.ts +172 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-latest.ts +155 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-epochs.ts +274 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-status.ts +149 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault.ts +144 -0
- package/src/models/operations/get-orgs-by-org-id-fee-distributions.ts +202 -0
- package/src/models/operations/get-orgs-by-org-id-fee-splits.ts +91 -0
- package/src/sdk/distributions.ts +4 -2
- package/src/sdk/fees.ts +2 -2
- package/src/sdk/nav.ts +2 -2
- package/src/sdk/vaults.ts +3 -3
|
@@ -3,12 +3,44 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
6
12
|
|
|
7
13
|
export type GetOrgsByOrgIdAssetsByAssetIdVaultStatusRequest = {
|
|
8
14
|
orgId: string;
|
|
9
15
|
assetId: string;
|
|
10
16
|
};
|
|
11
17
|
|
|
18
|
+
export type GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNav = string | number;
|
|
19
|
+
|
|
20
|
+
export type GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNavRound =
|
|
21
|
+
| string
|
|
22
|
+
| number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Vault columns projected from the asset's `org_assets` row.
|
|
26
|
+
*/
|
|
27
|
+
export type GetOrgsByOrgIdAssetsByAssetIdVaultStatusVault = {
|
|
28
|
+
vaultAddress?: string | null | undefined;
|
|
29
|
+
vaultStatus?: string | null | undefined;
|
|
30
|
+
feesSplitterAddress?: string | null | undefined;
|
|
31
|
+
latestNav?: string | number | null | undefined;
|
|
32
|
+
latestNavRound?: string | number | null | undefined;
|
|
33
|
+
latestNavAt?: string | null | undefined;
|
|
34
|
+
[additionalProperties: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Response
|
|
39
|
+
*/
|
|
40
|
+
export type GetOrgsByOrgIdAssetsByAssetIdVaultStatusResponse = {
|
|
41
|
+
vault: GetOrgsByOrgIdAssetsByAssetIdVaultStatusVault | null;
|
|
42
|
+
};
|
|
43
|
+
|
|
12
44
|
/** @internal */
|
|
13
45
|
export type GetOrgsByOrgIdAssetsByAssetIdVaultStatusRequest$Outbound = {
|
|
14
46
|
orgId: string;
|
|
@@ -35,3 +67,120 @@ export function getOrgsByOrgIdAssetsByAssetIdVaultStatusRequestToJSON(
|
|
|
35
67
|
),
|
|
36
68
|
);
|
|
37
69
|
}
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNav$inboundSchema:
|
|
73
|
+
z.ZodMiniType<GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNav, unknown> =
|
|
74
|
+
smartUnion([types.string(), types.number()]);
|
|
75
|
+
|
|
76
|
+
export function getOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNavFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<
|
|
79
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNav,
|
|
80
|
+
SDKValidationError
|
|
81
|
+
> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) =>
|
|
85
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNav$inboundSchema.parse(
|
|
86
|
+
JSON.parse(x),
|
|
87
|
+
),
|
|
88
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNav' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNavRound$inboundSchema:
|
|
94
|
+
z.ZodMiniType<
|
|
95
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNavRound,
|
|
96
|
+
unknown
|
|
97
|
+
> = smartUnion([types.string(), types.number()]);
|
|
98
|
+
|
|
99
|
+
export function getOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNavRoundFromJSON(
|
|
100
|
+
jsonString: string,
|
|
101
|
+
): SafeParseResult<
|
|
102
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNavRound,
|
|
103
|
+
SDKValidationError
|
|
104
|
+
> {
|
|
105
|
+
return safeParse(
|
|
106
|
+
jsonString,
|
|
107
|
+
(x) =>
|
|
108
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNavRound$inboundSchema
|
|
109
|
+
.parse(JSON.parse(x)),
|
|
110
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdVaultStatusLatestNavRound' from JSON`,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const GetOrgsByOrgIdAssetsByAssetIdVaultStatusVault$inboundSchema:
|
|
116
|
+
z.ZodMiniType<GetOrgsByOrgIdAssetsByAssetIdVaultStatusVault, unknown> = z
|
|
117
|
+
.pipe(
|
|
118
|
+
z.catchall(
|
|
119
|
+
z.object({
|
|
120
|
+
vault_address: z.optional(z.nullable(types.string())),
|
|
121
|
+
vault_status: z.optional(z.nullable(types.string())),
|
|
122
|
+
fees_splitter_address: z.optional(z.nullable(types.string())),
|
|
123
|
+
latest_nav: z.optional(
|
|
124
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
125
|
+
),
|
|
126
|
+
latest_nav_round: z.optional(
|
|
127
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
128
|
+
),
|
|
129
|
+
latest_nav_at: z.optional(z.nullable(types.string())),
|
|
130
|
+
}),
|
|
131
|
+
z.any(),
|
|
132
|
+
),
|
|
133
|
+
z.transform((v) => {
|
|
134
|
+
return remap$(v, {
|
|
135
|
+
"vault_address": "vaultAddress",
|
|
136
|
+
"vault_status": "vaultStatus",
|
|
137
|
+
"fees_splitter_address": "feesSplitterAddress",
|
|
138
|
+
"latest_nav": "latestNav",
|
|
139
|
+
"latest_nav_round": "latestNavRound",
|
|
140
|
+
"latest_nav_at": "latestNavAt",
|
|
141
|
+
});
|
|
142
|
+
}),
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
export function getOrgsByOrgIdAssetsByAssetIdVaultStatusVaultFromJSON(
|
|
146
|
+
jsonString: string,
|
|
147
|
+
): SafeParseResult<
|
|
148
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultStatusVault,
|
|
149
|
+
SDKValidationError
|
|
150
|
+
> {
|
|
151
|
+
return safeParse(
|
|
152
|
+
jsonString,
|
|
153
|
+
(x) =>
|
|
154
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultStatusVault$inboundSchema.parse(
|
|
155
|
+
JSON.parse(x),
|
|
156
|
+
),
|
|
157
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdVaultStatusVault' from JSON`,
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/** @internal */
|
|
162
|
+
export const GetOrgsByOrgIdAssetsByAssetIdVaultStatusResponse$inboundSchema:
|
|
163
|
+
z.ZodMiniType<GetOrgsByOrgIdAssetsByAssetIdVaultStatusResponse, unknown> = z
|
|
164
|
+
.object({
|
|
165
|
+
vault: types.nullable(
|
|
166
|
+
z.lazy(() =>
|
|
167
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultStatusVault$inboundSchema
|
|
168
|
+
),
|
|
169
|
+
),
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
export function getOrgsByOrgIdAssetsByAssetIdVaultStatusResponseFromJSON(
|
|
173
|
+
jsonString: string,
|
|
174
|
+
): SafeParseResult<
|
|
175
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultStatusResponse,
|
|
176
|
+
SDKValidationError
|
|
177
|
+
> {
|
|
178
|
+
return safeParse(
|
|
179
|
+
jsonString,
|
|
180
|
+
(x) =>
|
|
181
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultStatusResponse$inboundSchema.parse(
|
|
182
|
+
JSON.parse(x),
|
|
183
|
+
),
|
|
184
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdVaultStatusResponse' from JSON`,
|
|
185
|
+
);
|
|
186
|
+
}
|
|
@@ -3,12 +3,42 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
6
12
|
|
|
7
13
|
export type GetOrgsByOrgIdAssetsByAssetIdVaultRequest = {
|
|
8
14
|
orgId: string;
|
|
9
15
|
assetId: string;
|
|
10
16
|
};
|
|
11
17
|
|
|
18
|
+
export type GetOrgsByOrgIdAssetsByAssetIdVaultLatestNav = string | number;
|
|
19
|
+
|
|
20
|
+
export type GetOrgsByOrgIdAssetsByAssetIdVaultLatestNavRound = string | number;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Vault columns projected from the asset's `org_assets` row.
|
|
24
|
+
*/
|
|
25
|
+
export type GetOrgsByOrgIdAssetsByAssetIdVaultVault = {
|
|
26
|
+
vaultAddress?: string | null | undefined;
|
|
27
|
+
vaultStatus?: string | null | undefined;
|
|
28
|
+
feesSplitterAddress?: string | null | undefined;
|
|
29
|
+
latestNav?: string | number | null | undefined;
|
|
30
|
+
latestNavRound?: string | number | null | undefined;
|
|
31
|
+
latestNavAt?: string | null | undefined;
|
|
32
|
+
[additionalProperties: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Response
|
|
37
|
+
*/
|
|
38
|
+
export type GetOrgsByOrgIdAssetsByAssetIdVaultResponse = {
|
|
39
|
+
vault: GetOrgsByOrgIdAssetsByAssetIdVaultVault | null;
|
|
40
|
+
};
|
|
41
|
+
|
|
12
42
|
/** @internal */
|
|
13
43
|
export type GetOrgsByOrgIdAssetsByAssetIdVaultRequest$Outbound = {
|
|
14
44
|
orgId: string;
|
|
@@ -35,3 +65,117 @@ export function getOrgsByOrgIdAssetsByAssetIdVaultRequestToJSON(
|
|
|
35
65
|
),
|
|
36
66
|
);
|
|
37
67
|
}
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const GetOrgsByOrgIdAssetsByAssetIdVaultLatestNav$inboundSchema:
|
|
71
|
+
z.ZodMiniType<GetOrgsByOrgIdAssetsByAssetIdVaultLatestNav, unknown> =
|
|
72
|
+
smartUnion([types.string(), types.number()]);
|
|
73
|
+
|
|
74
|
+
export function getOrgsByOrgIdAssetsByAssetIdVaultLatestNavFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<
|
|
77
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultLatestNav,
|
|
78
|
+
SDKValidationError
|
|
79
|
+
> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) =>
|
|
83
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultLatestNav$inboundSchema.parse(
|
|
84
|
+
JSON.parse(x),
|
|
85
|
+
),
|
|
86
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdVaultLatestNav' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** @internal */
|
|
91
|
+
export const GetOrgsByOrgIdAssetsByAssetIdVaultLatestNavRound$inboundSchema:
|
|
92
|
+
z.ZodMiniType<GetOrgsByOrgIdAssetsByAssetIdVaultLatestNavRound, unknown> =
|
|
93
|
+
smartUnion([types.string(), types.number()]);
|
|
94
|
+
|
|
95
|
+
export function getOrgsByOrgIdAssetsByAssetIdVaultLatestNavRoundFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<
|
|
98
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultLatestNavRound,
|
|
99
|
+
SDKValidationError
|
|
100
|
+
> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) =>
|
|
104
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultLatestNavRound$inboundSchema.parse(
|
|
105
|
+
JSON.parse(x),
|
|
106
|
+
),
|
|
107
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdVaultLatestNavRound' from JSON`,
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const GetOrgsByOrgIdAssetsByAssetIdVaultVault$inboundSchema:
|
|
113
|
+
z.ZodMiniType<GetOrgsByOrgIdAssetsByAssetIdVaultVault, unknown> = z.pipe(
|
|
114
|
+
z.catchall(
|
|
115
|
+
z.object({
|
|
116
|
+
vault_address: z.optional(z.nullable(types.string())),
|
|
117
|
+
vault_status: z.optional(z.nullable(types.string())),
|
|
118
|
+
fees_splitter_address: z.optional(z.nullable(types.string())),
|
|
119
|
+
latest_nav: z.optional(
|
|
120
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
121
|
+
),
|
|
122
|
+
latest_nav_round: z.optional(
|
|
123
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
124
|
+
),
|
|
125
|
+
latest_nav_at: z.optional(z.nullable(types.string())),
|
|
126
|
+
}),
|
|
127
|
+
z.any(),
|
|
128
|
+
),
|
|
129
|
+
z.transform((v) => {
|
|
130
|
+
return remap$(v, {
|
|
131
|
+
"vault_address": "vaultAddress",
|
|
132
|
+
"vault_status": "vaultStatus",
|
|
133
|
+
"fees_splitter_address": "feesSplitterAddress",
|
|
134
|
+
"latest_nav": "latestNav",
|
|
135
|
+
"latest_nav_round": "latestNavRound",
|
|
136
|
+
"latest_nav_at": "latestNavAt",
|
|
137
|
+
});
|
|
138
|
+
}),
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
export function getOrgsByOrgIdAssetsByAssetIdVaultVaultFromJSON(
|
|
142
|
+
jsonString: string,
|
|
143
|
+
): SafeParseResult<
|
|
144
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultVault,
|
|
145
|
+
SDKValidationError
|
|
146
|
+
> {
|
|
147
|
+
return safeParse(
|
|
148
|
+
jsonString,
|
|
149
|
+
(x) =>
|
|
150
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultVault$inboundSchema.parse(
|
|
151
|
+
JSON.parse(x),
|
|
152
|
+
),
|
|
153
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdVaultVault' from JSON`,
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const GetOrgsByOrgIdAssetsByAssetIdVaultResponse$inboundSchema:
|
|
159
|
+
z.ZodMiniType<GetOrgsByOrgIdAssetsByAssetIdVaultResponse, unknown> = z.object(
|
|
160
|
+
{
|
|
161
|
+
vault: types.nullable(z.lazy(() =>
|
|
162
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultVault$inboundSchema
|
|
163
|
+
)),
|
|
164
|
+
},
|
|
165
|
+
);
|
|
166
|
+
|
|
167
|
+
export function getOrgsByOrgIdAssetsByAssetIdVaultResponseFromJSON(
|
|
168
|
+
jsonString: string,
|
|
169
|
+
): SafeParseResult<
|
|
170
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultResponse,
|
|
171
|
+
SDKValidationError
|
|
172
|
+
> {
|
|
173
|
+
return safeParse(
|
|
174
|
+
jsonString,
|
|
175
|
+
(x) =>
|
|
176
|
+
GetOrgsByOrgIdAssetsByAssetIdVaultResponse$inboundSchema.parse(
|
|
177
|
+
JSON.parse(x),
|
|
178
|
+
),
|
|
179
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdVaultResponse' from JSON`,
|
|
180
|
+
);
|
|
181
|
+
}
|
|
@@ -3,11 +3,63 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
6
12
|
|
|
7
13
|
export type GetOrgsByOrgIdFeeDistributionsRequest = {
|
|
8
14
|
orgId: string;
|
|
9
15
|
};
|
|
10
16
|
|
|
17
|
+
export type GetOrgsByOrgIdFeeDistributionsTotalAmount = string | number;
|
|
18
|
+
|
|
19
|
+
export type PlatformAmount = string | number;
|
|
20
|
+
|
|
21
|
+
export type ParentOrgAmount = string | number;
|
|
22
|
+
|
|
23
|
+
export type SubOrgAmount = string | number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A row of the `fee_distributions` table.
|
|
27
|
+
*/
|
|
28
|
+
export type GetOrgsByOrgIdFeeDistributionsDistribution = {
|
|
29
|
+
id?: string | null | undefined;
|
|
30
|
+
splitterAddress?: string | null | undefined;
|
|
31
|
+
assetId?: string | null | undefined;
|
|
32
|
+
distributionId?: string | null | undefined;
|
|
33
|
+
tokenAddress?: string | null | undefined;
|
|
34
|
+
totalAmount?: string | number | null | undefined;
|
|
35
|
+
platformAmount?: string | number | null | undefined;
|
|
36
|
+
parentOrgAmount?: string | number | null | undefined;
|
|
37
|
+
subOrgAmount?: string | number | null | undefined;
|
|
38
|
+
txHash?: string | null | undefined;
|
|
39
|
+
chainEid?: number | null | undefined;
|
|
40
|
+
createdAt?: string | null | undefined;
|
|
41
|
+
[additionalProperties: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Response
|
|
46
|
+
*/
|
|
47
|
+
export type GetOrgsByOrgIdFeeDistributionsResponse = {
|
|
48
|
+
distributions: Array<GetOrgsByOrgIdFeeDistributionsDistribution>;
|
|
49
|
+
/**
|
|
50
|
+
* Total matching rows, ignoring limit/offset
|
|
51
|
+
*/
|
|
52
|
+
total: number;
|
|
53
|
+
/**
|
|
54
|
+
* Page size that was applied
|
|
55
|
+
*/
|
|
56
|
+
limit: number;
|
|
57
|
+
/**
|
|
58
|
+
* Row offset that was applied
|
|
59
|
+
*/
|
|
60
|
+
offset: number;
|
|
61
|
+
};
|
|
62
|
+
|
|
11
63
|
/** @internal */
|
|
12
64
|
export type GetOrgsByOrgIdFeeDistributionsRequest$Outbound = {
|
|
13
65
|
orgId: string;
|
|
@@ -31,3 +83,153 @@ export function getOrgsByOrgIdFeeDistributionsRequestToJSON(
|
|
|
31
83
|
),
|
|
32
84
|
);
|
|
33
85
|
}
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const GetOrgsByOrgIdFeeDistributionsTotalAmount$inboundSchema:
|
|
89
|
+
z.ZodMiniType<GetOrgsByOrgIdFeeDistributionsTotalAmount, unknown> =
|
|
90
|
+
smartUnion([types.string(), types.number()]);
|
|
91
|
+
|
|
92
|
+
export function getOrgsByOrgIdFeeDistributionsTotalAmountFromJSON(
|
|
93
|
+
jsonString: string,
|
|
94
|
+
): SafeParseResult<
|
|
95
|
+
GetOrgsByOrgIdFeeDistributionsTotalAmount,
|
|
96
|
+
SDKValidationError
|
|
97
|
+
> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) =>
|
|
101
|
+
GetOrgsByOrgIdFeeDistributionsTotalAmount$inboundSchema.parse(
|
|
102
|
+
JSON.parse(x),
|
|
103
|
+
),
|
|
104
|
+
`Failed to parse 'GetOrgsByOrgIdFeeDistributionsTotalAmount' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** @internal */
|
|
109
|
+
export const PlatformAmount$inboundSchema: z.ZodMiniType<
|
|
110
|
+
PlatformAmount,
|
|
111
|
+
unknown
|
|
112
|
+
> = smartUnion([types.string(), types.number()]);
|
|
113
|
+
|
|
114
|
+
export function platformAmountFromJSON(
|
|
115
|
+
jsonString: string,
|
|
116
|
+
): SafeParseResult<PlatformAmount, SDKValidationError> {
|
|
117
|
+
return safeParse(
|
|
118
|
+
jsonString,
|
|
119
|
+
(x) => PlatformAmount$inboundSchema.parse(JSON.parse(x)),
|
|
120
|
+
`Failed to parse 'PlatformAmount' from JSON`,
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const ParentOrgAmount$inboundSchema: z.ZodMiniType<
|
|
126
|
+
ParentOrgAmount,
|
|
127
|
+
unknown
|
|
128
|
+
> = smartUnion([types.string(), types.number()]);
|
|
129
|
+
|
|
130
|
+
export function parentOrgAmountFromJSON(
|
|
131
|
+
jsonString: string,
|
|
132
|
+
): SafeParseResult<ParentOrgAmount, SDKValidationError> {
|
|
133
|
+
return safeParse(
|
|
134
|
+
jsonString,
|
|
135
|
+
(x) => ParentOrgAmount$inboundSchema.parse(JSON.parse(x)),
|
|
136
|
+
`Failed to parse 'ParentOrgAmount' from JSON`,
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const SubOrgAmount$inboundSchema: z.ZodMiniType<SubOrgAmount, unknown> =
|
|
142
|
+
smartUnion([types.string(), types.number()]);
|
|
143
|
+
|
|
144
|
+
export function subOrgAmountFromJSON(
|
|
145
|
+
jsonString: string,
|
|
146
|
+
): SafeParseResult<SubOrgAmount, SDKValidationError> {
|
|
147
|
+
return safeParse(
|
|
148
|
+
jsonString,
|
|
149
|
+
(x) => SubOrgAmount$inboundSchema.parse(JSON.parse(x)),
|
|
150
|
+
`Failed to parse 'SubOrgAmount' from JSON`,
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const GetOrgsByOrgIdFeeDistributionsDistribution$inboundSchema:
|
|
156
|
+
z.ZodMiniType<GetOrgsByOrgIdFeeDistributionsDistribution, unknown> = z.pipe(
|
|
157
|
+
z.catchall(
|
|
158
|
+
z.object({
|
|
159
|
+
id: z.optional(z.nullable(types.string())),
|
|
160
|
+
splitter_address: z.optional(z.nullable(types.string())),
|
|
161
|
+
asset_id: z.optional(z.nullable(types.string())),
|
|
162
|
+
distribution_id: z.optional(z.nullable(types.string())),
|
|
163
|
+
token_address: z.optional(z.nullable(types.string())),
|
|
164
|
+
total_amount: z.optional(
|
|
165
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
166
|
+
),
|
|
167
|
+
platform_amount: z.optional(
|
|
168
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
169
|
+
),
|
|
170
|
+
parent_org_amount: z.optional(
|
|
171
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
172
|
+
),
|
|
173
|
+
sub_org_amount: z.optional(
|
|
174
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
175
|
+
),
|
|
176
|
+
tx_hash: z.optional(z.nullable(types.string())),
|
|
177
|
+
chain_eid: z.optional(z.nullable(types.number())),
|
|
178
|
+
created_at: z.optional(z.nullable(types.string())),
|
|
179
|
+
}),
|
|
180
|
+
z.any(),
|
|
181
|
+
),
|
|
182
|
+
z.transform((v) => {
|
|
183
|
+
return remap$(v, {
|
|
184
|
+
"splitter_address": "splitterAddress",
|
|
185
|
+
"asset_id": "assetId",
|
|
186
|
+
"distribution_id": "distributionId",
|
|
187
|
+
"token_address": "tokenAddress",
|
|
188
|
+
"total_amount": "totalAmount",
|
|
189
|
+
"platform_amount": "platformAmount",
|
|
190
|
+
"parent_org_amount": "parentOrgAmount",
|
|
191
|
+
"sub_org_amount": "subOrgAmount",
|
|
192
|
+
"tx_hash": "txHash",
|
|
193
|
+
"chain_eid": "chainEid",
|
|
194
|
+
"created_at": "createdAt",
|
|
195
|
+
});
|
|
196
|
+
}),
|
|
197
|
+
);
|
|
198
|
+
|
|
199
|
+
export function getOrgsByOrgIdFeeDistributionsDistributionFromJSON(
|
|
200
|
+
jsonString: string,
|
|
201
|
+
): SafeParseResult<
|
|
202
|
+
GetOrgsByOrgIdFeeDistributionsDistribution,
|
|
203
|
+
SDKValidationError
|
|
204
|
+
> {
|
|
205
|
+
return safeParse(
|
|
206
|
+
jsonString,
|
|
207
|
+
(x) =>
|
|
208
|
+
GetOrgsByOrgIdFeeDistributionsDistribution$inboundSchema.parse(
|
|
209
|
+
JSON.parse(x),
|
|
210
|
+
),
|
|
211
|
+
`Failed to parse 'GetOrgsByOrgIdFeeDistributionsDistribution' from JSON`,
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/** @internal */
|
|
216
|
+
export const GetOrgsByOrgIdFeeDistributionsResponse$inboundSchema:
|
|
217
|
+
z.ZodMiniType<GetOrgsByOrgIdFeeDistributionsResponse, unknown> = z.object({
|
|
218
|
+
distributions: z.array(
|
|
219
|
+
z.lazy(() => GetOrgsByOrgIdFeeDistributionsDistribution$inboundSchema),
|
|
220
|
+
),
|
|
221
|
+
total: types.number(),
|
|
222
|
+
limit: types.number(),
|
|
223
|
+
offset: types.number(),
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
export function getOrgsByOrgIdFeeDistributionsResponseFromJSON(
|
|
227
|
+
jsonString: string,
|
|
228
|
+
): SafeParseResult<GetOrgsByOrgIdFeeDistributionsResponse, SDKValidationError> {
|
|
229
|
+
return safeParse(
|
|
230
|
+
jsonString,
|
|
231
|
+
(x) =>
|
|
232
|
+
GetOrgsByOrgIdFeeDistributionsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
233
|
+
`Failed to parse 'GetOrgsByOrgIdFeeDistributionsResponse' from JSON`,
|
|
234
|
+
);
|
|
235
|
+
}
|
|
@@ -3,11 +3,41 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
6
11
|
|
|
7
12
|
export type GetOrgsByOrgIdFeeSplitsRequest = {
|
|
8
13
|
orgId: string;
|
|
9
14
|
};
|
|
10
15
|
|
|
16
|
+
/**
|
|
17
|
+
* A row of the `org_fee_splits` table.
|
|
18
|
+
*/
|
|
19
|
+
export type Split = {
|
|
20
|
+
id?: string | null | undefined;
|
|
21
|
+
parentOrgId?: string | null | undefined;
|
|
22
|
+
subOrgId?: string | null | undefined;
|
|
23
|
+
platformShareBps?: number | null | undefined;
|
|
24
|
+
parentShareBps?: number | null | undefined;
|
|
25
|
+
platformShareEnabled?: boolean | null | undefined;
|
|
26
|
+
parentShareEnabled?: boolean | null | undefined;
|
|
27
|
+
effectiveFrom?: string | null | undefined;
|
|
28
|
+
effectiveUntil?: string | null | undefined;
|
|
29
|
+
notes?: string | null | undefined;
|
|
30
|
+
createdAt?: string | null | undefined;
|
|
31
|
+
[additionalProperties: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Response
|
|
36
|
+
*/
|
|
37
|
+
export type GetOrgsByOrgIdFeeSplitsResponse = {
|
|
38
|
+
splits: Array<Split>;
|
|
39
|
+
};
|
|
40
|
+
|
|
11
41
|
/** @internal */
|
|
12
42
|
export type GetOrgsByOrgIdFeeSplitsRequest$Outbound = {
|
|
13
43
|
orgId: string;
|
|
@@ -30,3 +60,64 @@ export function getOrgsByOrgIdFeeSplitsRequestToJSON(
|
|
|
30
60
|
),
|
|
31
61
|
);
|
|
32
62
|
}
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const Split$inboundSchema: z.ZodMiniType<Split, unknown> = z.pipe(
|
|
66
|
+
z.catchall(
|
|
67
|
+
z.object({
|
|
68
|
+
id: z.optional(z.nullable(types.string())),
|
|
69
|
+
parent_org_id: z.optional(z.nullable(types.string())),
|
|
70
|
+
sub_org_id: z.optional(z.nullable(types.string())),
|
|
71
|
+
platform_share_bps: z.optional(z.nullable(types.number())),
|
|
72
|
+
parent_share_bps: z.optional(z.nullable(types.number())),
|
|
73
|
+
platform_share_enabled: z.optional(z.nullable(types.boolean())),
|
|
74
|
+
parent_share_enabled: z.optional(z.nullable(types.boolean())),
|
|
75
|
+
effective_from: z.optional(z.nullable(types.string())),
|
|
76
|
+
effective_until: z.optional(z.nullable(types.string())),
|
|
77
|
+
notes: z.optional(z.nullable(types.string())),
|
|
78
|
+
created_at: z.optional(z.nullable(types.string())),
|
|
79
|
+
}),
|
|
80
|
+
z.any(),
|
|
81
|
+
),
|
|
82
|
+
z.transform((v) => {
|
|
83
|
+
return remap$(v, {
|
|
84
|
+
"parent_org_id": "parentOrgId",
|
|
85
|
+
"sub_org_id": "subOrgId",
|
|
86
|
+
"platform_share_bps": "platformShareBps",
|
|
87
|
+
"parent_share_bps": "parentShareBps",
|
|
88
|
+
"platform_share_enabled": "platformShareEnabled",
|
|
89
|
+
"parent_share_enabled": "parentShareEnabled",
|
|
90
|
+
"effective_from": "effectiveFrom",
|
|
91
|
+
"effective_until": "effectiveUntil",
|
|
92
|
+
"created_at": "createdAt",
|
|
93
|
+
});
|
|
94
|
+
}),
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
export function splitFromJSON(
|
|
98
|
+
jsonString: string,
|
|
99
|
+
): SafeParseResult<Split, SDKValidationError> {
|
|
100
|
+
return safeParse(
|
|
101
|
+
jsonString,
|
|
102
|
+
(x) => Split$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
+
`Failed to parse 'Split' from JSON`,
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const GetOrgsByOrgIdFeeSplitsResponse$inboundSchema: z.ZodMiniType<
|
|
109
|
+
GetOrgsByOrgIdFeeSplitsResponse,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
splits: z.array(z.lazy(() => Split$inboundSchema)),
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export function getOrgsByOrgIdFeeSplitsResponseFromJSON(
|
|
116
|
+
jsonString: string,
|
|
117
|
+
): SafeParseResult<GetOrgsByOrgIdFeeSplitsResponse, SDKValidationError> {
|
|
118
|
+
return safeParse(
|
|
119
|
+
jsonString,
|
|
120
|
+
(x) => GetOrgsByOrgIdFeeSplitsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
+
`Failed to parse 'GetOrgsByOrgIdFeeSplitsResponse' from JSON`,
|
|
122
|
+
);
|
|
123
|
+
}
|
package/src/sdk/distributions.ts
CHANGED
|
@@ -15,7 +15,7 @@ export class Distributions extends ClientSDK {
|
|
|
15
15
|
orgId: string,
|
|
16
16
|
assetId: string,
|
|
17
17
|
options?: RequestOptions,
|
|
18
|
-
): Promise<
|
|
18
|
+
): Promise<operations.GetOrgsByOrgIdAssetsByAssetIdDistributionsResponse> {
|
|
19
19
|
return unwrapAsync(distributionsGetOrgsByOrgIdAssetsByAssetIdDistributions(
|
|
20
20
|
this,
|
|
21
21
|
orgId,
|
|
@@ -44,7 +44,9 @@ export class Distributions extends ClientSDK {
|
|
|
44
44
|
assetId: string,
|
|
45
45
|
distId: string,
|
|
46
46
|
options?: RequestOptions,
|
|
47
|
-
): Promise<
|
|
47
|
+
): Promise<
|
|
48
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdResponse
|
|
49
|
+
> {
|
|
48
50
|
return unwrapAsync(
|
|
49
51
|
distributionsGetOrgsByOrgIdAssetsByAssetIdDistributionsByDistId(
|
|
50
52
|
this,
|
package/src/sdk/fees.ts
CHANGED
|
@@ -13,7 +13,7 @@ export class Fees extends ClientSDK {
|
|
|
13
13
|
async getOrgsByOrgIdFeeSplits(
|
|
14
14
|
orgId: string,
|
|
15
15
|
options?: RequestOptions,
|
|
16
|
-
): Promise<
|
|
16
|
+
): Promise<operations.GetOrgsByOrgIdFeeSplitsResponse> {
|
|
17
17
|
return unwrapAsync(feesGetOrgsByOrgIdFeeSplits(
|
|
18
18
|
this,
|
|
19
19
|
orgId,
|
|
@@ -24,7 +24,7 @@ export class Fees extends ClientSDK {
|
|
|
24
24
|
async getOrgsByOrgIdFeeDistributions(
|
|
25
25
|
orgId: string,
|
|
26
26
|
options?: RequestOptions,
|
|
27
|
-
): Promise<
|
|
27
|
+
): Promise<operations.GetOrgsByOrgIdFeeDistributionsResponse> {
|
|
28
28
|
return unwrapAsync(feesGetOrgsByOrgIdFeeDistributions(
|
|
29
29
|
this,
|
|
30
30
|
orgId,
|
package/src/sdk/nav.ts
CHANGED
|
@@ -15,7 +15,7 @@ export class Nav extends ClientSDK {
|
|
|
15
15
|
orgId: string,
|
|
16
16
|
assetId: string,
|
|
17
17
|
options?: RequestOptions,
|
|
18
|
-
): Promise<
|
|
18
|
+
): Promise<operations.GetOrgsByOrgIdAssetsByAssetIdNavLatestResponse> {
|
|
19
19
|
return unwrapAsync(navGetOrgsByOrgIdAssetsByAssetIdNAVLatest(
|
|
20
20
|
this,
|
|
21
21
|
orgId,
|
|
@@ -28,7 +28,7 @@ export class Nav extends ClientSDK {
|
|
|
28
28
|
orgId: string,
|
|
29
29
|
assetId: string,
|
|
30
30
|
options?: RequestOptions,
|
|
31
|
-
): Promise<
|
|
31
|
+
): Promise<operations.GetOrgsByOrgIdAssetsByAssetIdNavHistoryResponse> {
|
|
32
32
|
return unwrapAsync(navGetOrgsByOrgIdAssetsByAssetIdNAVHistory(
|
|
33
33
|
this,
|
|
34
34
|
orgId,
|