@clossir-tech/ts-sdk 0.9.1 → 0.9.2
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/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/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,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,
|
package/src/sdk/vaults.ts
CHANGED
|
@@ -18,7 +18,7 @@ export class Vaults extends ClientSDK {
|
|
|
18
18
|
orgId: string,
|
|
19
19
|
assetId: string,
|
|
20
20
|
options?: RequestOptions,
|
|
21
|
-
): Promise<
|
|
21
|
+
): Promise<operations.GetOrgsByOrgIdAssetsByAssetIdVaultResponse> {
|
|
22
22
|
return unwrapAsync(vaultsGetOrgsByOrgIdAssetsByAssetIdVault(
|
|
23
23
|
this,
|
|
24
24
|
orgId,
|
|
@@ -31,7 +31,7 @@ export class Vaults extends ClientSDK {
|
|
|
31
31
|
orgId: string,
|
|
32
32
|
assetId: string,
|
|
33
33
|
options?: RequestOptions,
|
|
34
|
-
): Promise<
|
|
34
|
+
): Promise<operations.GetOrgsByOrgIdAssetsByAssetIdVaultStatusResponse> {
|
|
35
35
|
return unwrapAsync(vaultsGetOrgsByOrgIdAssetsByAssetIdVaultStatus(
|
|
36
36
|
this,
|
|
37
37
|
orgId,
|
|
@@ -44,7 +44,7 @@ export class Vaults extends ClientSDK {
|
|
|
44
44
|
orgId: string,
|
|
45
45
|
assetId: string,
|
|
46
46
|
options?: RequestOptions,
|
|
47
|
-
): Promise<
|
|
47
|
+
): Promise<operations.GetOrgsByOrgIdAssetsByAssetIdVaultEpochsResponse> {
|
|
48
48
|
return unwrapAsync(vaultsGetOrgsByOrgIdAssetsByAssetIdVaultEpochs(
|
|
49
49
|
this,
|
|
50
50
|
orgId,
|