@dalmore/api-contracts 0.0.0-dev.f1cb508 → 0.0.0-dev.fbcf2bc
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/common/types/account-setting.types.d.ts +22 -66
- package/common/types/account-setting.types.js +2 -31
- package/common/types/account-setting.types.js.map +1 -1
- package/common/types/account.types.d.ts +32 -23
- package/common/types/account.types.js +1 -0
- package/common/types/account.types.js.map +1 -1
- package/common/types/activity.types.d.ts +34 -25
- package/common/types/activity.types.js +11 -0
- package/common/types/activity.types.js.map +1 -1
- package/common/types/asset.types.d.ts +25 -111
- package/common/types/asset.types.js +24 -100
- package/common/types/asset.types.js.map +1 -1
- package/common/types/bonus-tier.types.d.ts +0 -30
- package/common/types/cap-table.types.d.ts +69 -54
- package/common/types/cap-table.types.js +17 -0
- package/common/types/cap-table.types.js.map +1 -1
- package/common/types/common.types.d.ts +340 -3
- package/common/types/common.types.js +59 -1
- package/common/types/common.types.js.map +1 -1
- package/common/types/dashboard.types.d.ts +7 -7
- package/common/types/disbursement-transaction.types.d.ts +1 -1
- package/common/types/disbursement-transaction.types.js +1 -1
- package/common/types/disbursement-transaction.types.js.map +1 -1
- package/common/types/disbursements.types.d.ts +834 -0
- package/common/types/disbursements.types.js +63 -0
- package/common/types/disbursements.types.js.map +1 -1
- package/common/types/escrow-account.types.d.ts +17 -0
- package/common/types/escrow-account.types.js +3 -0
- package/common/types/escrow-account.types.js.map +1 -1
- package/common/types/exchange-provider.types.d.ts +12 -12
- package/common/types/file.types.d.ts +30 -9
- package/common/types/file.types.js +9 -0
- package/common/types/file.types.js.map +1 -1
- package/common/types/index.d.ts +3 -0
- package/common/types/index.js +3 -0
- package/common/types/index.js.map +1 -1
- package/common/types/investor-account.types.d.ts +1 -1
- package/common/types/investor-account.types.js +1 -2
- package/common/types/investor-account.types.js.map +1 -1
- package/common/types/invite.types.d.ts +2 -2
- package/common/types/invite.types.js +1 -1
- package/common/types/invite.types.js.map +1 -1
- package/common/types/issuer-offering.types.d.ts +181 -77
- package/common/types/issuer-offering.types.js +180 -45
- package/common/types/issuer-offering.types.js.map +1 -1
- package/common/types/job-item.types.d.ts +14 -14
- package/common/types/note.types.d.ts +15 -15
- package/common/types/offering-submission.types.d.ts +198 -0
- package/common/types/offering-submission.types.js +16 -3
- package/common/types/offering-submission.types.js.map +1 -1
- package/common/types/offering.types.d.ts +255 -60
- package/common/types/offering.types.js +205 -53
- package/common/types/offering.types.js.map +1 -1
- package/common/types/portfolio.types.d.ts +6 -6
- package/common/types/reports.types.d.ts +345 -0
- package/common/types/reports.types.js +69 -0
- package/common/types/reports.types.js.map +1 -0
- package/common/types/secondary-order.types.d.ts +10 -10
- package/common/types/secondary-trade.types.d.ts +10 -10
- package/common/types/site.types.d.ts +12 -27
- package/common/types/task.types.d.ts +22 -22
- package/common/types/trade.types.d.ts +9 -0
- package/common/types/trade.types.js +2 -0
- package/common/types/trade.types.js.map +1 -1
- package/common/types/transaction.types.d.ts +0 -1
- package/common/types/transaction.types.js +0 -1
- package/common/types/transaction.types.js.map +1 -1
- package/common/types/user.types.d.ts +191 -59
- package/common/types/user.types.js +9 -1
- package/common/types/user.types.js.map +1 -1
- package/contracts/clients/assets/index.d.ts +0 -66
- package/contracts/clients/files/index.d.ts +3 -3
- package/contracts/clients/files-public/index.d.ts +3 -3
- package/contracts/clients/index.d.ts +89 -105
- package/contracts/clients/offerings/index.d.ts +83 -33
- package/package.json +1 -1
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare enum ReportType {
|
|
3
|
+
COMPLIANCE_OFFICER_REPORT = "COMPLIANCE_OFFICER_REPORT",
|
|
4
|
+
OFFERING_REPORT = "OFFERING_REPORT"
|
|
5
|
+
}
|
|
6
|
+
export declare const ComplianceOfficerReportFiltersZod: z.ZodObject<{
|
|
7
|
+
search: z.ZodOptional<z.ZodString>;
|
|
8
|
+
complianceOfficerIds: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string[], string | undefined>, string[], string | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* Optional date range filter on when the trade was reviewed.
|
|
11
|
+
*/
|
|
12
|
+
from: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>;
|
|
13
|
+
to: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
complianceOfficerIds: string[];
|
|
16
|
+
from?: Date | null | undefined;
|
|
17
|
+
to?: Date | null | undefined;
|
|
18
|
+
search?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
from?: string | null | undefined;
|
|
21
|
+
to?: string | null | undefined;
|
|
22
|
+
search?: string | undefined;
|
|
23
|
+
complianceOfficerIds?: string | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
export type ComplianceOfficerReportFiltersZod = z.infer<typeof ComplianceOfficerReportFiltersZod>;
|
|
26
|
+
export declare const IComplianceOfficerReportRow: z.ZodObject<{
|
|
27
|
+
complianceOfficerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
28
|
+
complianceOfficerName: z.ZodString;
|
|
29
|
+
accountCount: z.ZodNumber;
|
|
30
|
+
issuerCount: z.ZodNumber;
|
|
31
|
+
offeringCount: z.ZodNumber;
|
|
32
|
+
approvedTradesCount: z.ZodNumber;
|
|
33
|
+
rejectedTradesCount: z.ZodNumber;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
complianceOfficerId: string;
|
|
36
|
+
complianceOfficerName: string;
|
|
37
|
+
accountCount: number;
|
|
38
|
+
issuerCount: number;
|
|
39
|
+
offeringCount: number;
|
|
40
|
+
approvedTradesCount: number;
|
|
41
|
+
rejectedTradesCount: number;
|
|
42
|
+
}, {
|
|
43
|
+
complianceOfficerId: string;
|
|
44
|
+
complianceOfficerName: string;
|
|
45
|
+
accountCount: number;
|
|
46
|
+
issuerCount: number;
|
|
47
|
+
offeringCount: number;
|
|
48
|
+
approvedTradesCount: number;
|
|
49
|
+
rejectedTradesCount: number;
|
|
50
|
+
}>;
|
|
51
|
+
export type IComplianceOfficerReportRow = z.infer<typeof IComplianceOfficerReportRow>;
|
|
52
|
+
export declare const IComplianceOfficerReportDetailRow: z.ZodObject<{
|
|
53
|
+
accountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
54
|
+
accountName: z.ZodString;
|
|
55
|
+
issuerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
56
|
+
issuerName: z.ZodString;
|
|
57
|
+
offeringId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
58
|
+
offeringName: z.ZodString;
|
|
59
|
+
approvedTradesCount: z.ZodNumber;
|
|
60
|
+
rejectedTradesCount: z.ZodNumber;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
accountId: string;
|
|
63
|
+
accountName: string;
|
|
64
|
+
offeringId: string;
|
|
65
|
+
issuerId: string;
|
|
66
|
+
issuerName: string;
|
|
67
|
+
offeringName: string;
|
|
68
|
+
approvedTradesCount: number;
|
|
69
|
+
rejectedTradesCount: number;
|
|
70
|
+
}, {
|
|
71
|
+
accountId: string;
|
|
72
|
+
accountName: string;
|
|
73
|
+
offeringId: string;
|
|
74
|
+
issuerId: string;
|
|
75
|
+
issuerName: string;
|
|
76
|
+
offeringName: string;
|
|
77
|
+
approvedTradesCount: number;
|
|
78
|
+
rejectedTradesCount: number;
|
|
79
|
+
}>;
|
|
80
|
+
export type IComplianceOfficerReportDetailRow = z.infer<typeof IComplianceOfficerReportDetailRow>;
|
|
81
|
+
export declare const IComplianceOfficerReportRowWithDetails: z.ZodObject<{
|
|
82
|
+
complianceOfficerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
83
|
+
complianceOfficerName: z.ZodString;
|
|
84
|
+
accountCount: z.ZodNumber;
|
|
85
|
+
issuerCount: z.ZodNumber;
|
|
86
|
+
offeringCount: z.ZodNumber;
|
|
87
|
+
approvedTradesCount: z.ZodNumber;
|
|
88
|
+
rejectedTradesCount: z.ZodNumber;
|
|
89
|
+
} & {
|
|
90
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
91
|
+
accountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
92
|
+
accountName: z.ZodString;
|
|
93
|
+
issuerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
94
|
+
issuerName: z.ZodString;
|
|
95
|
+
offeringId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
96
|
+
offeringName: z.ZodString;
|
|
97
|
+
approvedTradesCount: z.ZodNumber;
|
|
98
|
+
rejectedTradesCount: z.ZodNumber;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
accountId: string;
|
|
101
|
+
accountName: string;
|
|
102
|
+
offeringId: string;
|
|
103
|
+
issuerId: string;
|
|
104
|
+
issuerName: string;
|
|
105
|
+
offeringName: string;
|
|
106
|
+
approvedTradesCount: number;
|
|
107
|
+
rejectedTradesCount: number;
|
|
108
|
+
}, {
|
|
109
|
+
accountId: string;
|
|
110
|
+
accountName: string;
|
|
111
|
+
offeringId: string;
|
|
112
|
+
issuerId: string;
|
|
113
|
+
issuerName: string;
|
|
114
|
+
offeringName: string;
|
|
115
|
+
approvedTradesCount: number;
|
|
116
|
+
rejectedTradesCount: number;
|
|
117
|
+
}>, "many">;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
complianceOfficerId: string;
|
|
120
|
+
complianceOfficerName: string;
|
|
121
|
+
accountCount: number;
|
|
122
|
+
issuerCount: number;
|
|
123
|
+
offeringCount: number;
|
|
124
|
+
approvedTradesCount: number;
|
|
125
|
+
rejectedTradesCount: number;
|
|
126
|
+
rows: {
|
|
127
|
+
accountId: string;
|
|
128
|
+
accountName: string;
|
|
129
|
+
offeringId: string;
|
|
130
|
+
issuerId: string;
|
|
131
|
+
issuerName: string;
|
|
132
|
+
offeringName: string;
|
|
133
|
+
approvedTradesCount: number;
|
|
134
|
+
rejectedTradesCount: number;
|
|
135
|
+
}[];
|
|
136
|
+
}, {
|
|
137
|
+
complianceOfficerId: string;
|
|
138
|
+
complianceOfficerName: string;
|
|
139
|
+
accountCount: number;
|
|
140
|
+
issuerCount: number;
|
|
141
|
+
offeringCount: number;
|
|
142
|
+
approvedTradesCount: number;
|
|
143
|
+
rejectedTradesCount: number;
|
|
144
|
+
rows: {
|
|
145
|
+
accountId: string;
|
|
146
|
+
accountName: string;
|
|
147
|
+
offeringId: string;
|
|
148
|
+
issuerId: string;
|
|
149
|
+
issuerName: string;
|
|
150
|
+
offeringName: string;
|
|
151
|
+
approvedTradesCount: number;
|
|
152
|
+
rejectedTradesCount: number;
|
|
153
|
+
}[];
|
|
154
|
+
}>;
|
|
155
|
+
export type IComplianceOfficerReportRowWithDetails = z.infer<typeof IComplianceOfficerReportRowWithDetails>;
|
|
156
|
+
export declare const IReportSummary: z.ZodObject<{
|
|
157
|
+
type: z.ZodNativeEnum<typeof ReportType>;
|
|
158
|
+
count: z.ZodNumber;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
type: ReportType;
|
|
161
|
+
count: number;
|
|
162
|
+
}, {
|
|
163
|
+
type: ReportType;
|
|
164
|
+
count: number;
|
|
165
|
+
}>;
|
|
166
|
+
export type IReportSummary = z.infer<typeof IReportSummary>;
|
|
167
|
+
export declare const IPaginatedComplianceOfficerReport: z.ZodObject<{
|
|
168
|
+
items: z.ZodArray<z.ZodObject<{
|
|
169
|
+
complianceOfficerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
170
|
+
complianceOfficerName: z.ZodString;
|
|
171
|
+
accountCount: z.ZodNumber;
|
|
172
|
+
issuerCount: z.ZodNumber;
|
|
173
|
+
offeringCount: z.ZodNumber;
|
|
174
|
+
approvedTradesCount: z.ZodNumber;
|
|
175
|
+
rejectedTradesCount: z.ZodNumber;
|
|
176
|
+
} & {
|
|
177
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
178
|
+
accountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
179
|
+
accountName: z.ZodString;
|
|
180
|
+
issuerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
181
|
+
issuerName: z.ZodString;
|
|
182
|
+
offeringId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
183
|
+
offeringName: z.ZodString;
|
|
184
|
+
approvedTradesCount: z.ZodNumber;
|
|
185
|
+
rejectedTradesCount: z.ZodNumber;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
accountId: string;
|
|
188
|
+
accountName: string;
|
|
189
|
+
offeringId: string;
|
|
190
|
+
issuerId: string;
|
|
191
|
+
issuerName: string;
|
|
192
|
+
offeringName: string;
|
|
193
|
+
approvedTradesCount: number;
|
|
194
|
+
rejectedTradesCount: number;
|
|
195
|
+
}, {
|
|
196
|
+
accountId: string;
|
|
197
|
+
accountName: string;
|
|
198
|
+
offeringId: string;
|
|
199
|
+
issuerId: string;
|
|
200
|
+
issuerName: string;
|
|
201
|
+
offeringName: string;
|
|
202
|
+
approvedTradesCount: number;
|
|
203
|
+
rejectedTradesCount: number;
|
|
204
|
+
}>, "many">;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
complianceOfficerId: string;
|
|
207
|
+
complianceOfficerName: string;
|
|
208
|
+
accountCount: number;
|
|
209
|
+
issuerCount: number;
|
|
210
|
+
offeringCount: number;
|
|
211
|
+
approvedTradesCount: number;
|
|
212
|
+
rejectedTradesCount: number;
|
|
213
|
+
rows: {
|
|
214
|
+
accountId: string;
|
|
215
|
+
accountName: string;
|
|
216
|
+
offeringId: string;
|
|
217
|
+
issuerId: string;
|
|
218
|
+
issuerName: string;
|
|
219
|
+
offeringName: string;
|
|
220
|
+
approvedTradesCount: number;
|
|
221
|
+
rejectedTradesCount: number;
|
|
222
|
+
}[];
|
|
223
|
+
}, {
|
|
224
|
+
complianceOfficerId: string;
|
|
225
|
+
complianceOfficerName: string;
|
|
226
|
+
accountCount: number;
|
|
227
|
+
issuerCount: number;
|
|
228
|
+
offeringCount: number;
|
|
229
|
+
approvedTradesCount: number;
|
|
230
|
+
rejectedTradesCount: number;
|
|
231
|
+
rows: {
|
|
232
|
+
accountId: string;
|
|
233
|
+
accountName: string;
|
|
234
|
+
offeringId: string;
|
|
235
|
+
issuerId: string;
|
|
236
|
+
issuerName: string;
|
|
237
|
+
offeringName: string;
|
|
238
|
+
approvedTradesCount: number;
|
|
239
|
+
rejectedTradesCount: number;
|
|
240
|
+
}[];
|
|
241
|
+
}>, "many">;
|
|
242
|
+
meta: z.ZodObject<{
|
|
243
|
+
itemCount: z.ZodNumber;
|
|
244
|
+
totalItems: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
itemsPerPage: z.ZodNumber;
|
|
246
|
+
totalPages: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
currentPage: z.ZodNumber;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
itemCount: number;
|
|
250
|
+
itemsPerPage: number;
|
|
251
|
+
currentPage: number;
|
|
252
|
+
totalItems?: number | undefined;
|
|
253
|
+
totalPages?: number | undefined;
|
|
254
|
+
}, {
|
|
255
|
+
itemCount: number;
|
|
256
|
+
itemsPerPage: number;
|
|
257
|
+
currentPage: number;
|
|
258
|
+
totalItems?: number | undefined;
|
|
259
|
+
totalPages?: number | undefined;
|
|
260
|
+
}>;
|
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
|
262
|
+
items: {
|
|
263
|
+
complianceOfficerId: string;
|
|
264
|
+
complianceOfficerName: string;
|
|
265
|
+
accountCount: number;
|
|
266
|
+
issuerCount: number;
|
|
267
|
+
offeringCount: number;
|
|
268
|
+
approvedTradesCount: number;
|
|
269
|
+
rejectedTradesCount: number;
|
|
270
|
+
rows: {
|
|
271
|
+
accountId: string;
|
|
272
|
+
accountName: string;
|
|
273
|
+
offeringId: string;
|
|
274
|
+
issuerId: string;
|
|
275
|
+
issuerName: string;
|
|
276
|
+
offeringName: string;
|
|
277
|
+
approvedTradesCount: number;
|
|
278
|
+
rejectedTradesCount: number;
|
|
279
|
+
}[];
|
|
280
|
+
}[];
|
|
281
|
+
meta: {
|
|
282
|
+
itemCount: number;
|
|
283
|
+
itemsPerPage: number;
|
|
284
|
+
currentPage: number;
|
|
285
|
+
totalItems?: number | undefined;
|
|
286
|
+
totalPages?: number | undefined;
|
|
287
|
+
};
|
|
288
|
+
}, {
|
|
289
|
+
items: {
|
|
290
|
+
complianceOfficerId: string;
|
|
291
|
+
complianceOfficerName: string;
|
|
292
|
+
accountCount: number;
|
|
293
|
+
issuerCount: number;
|
|
294
|
+
offeringCount: number;
|
|
295
|
+
approvedTradesCount: number;
|
|
296
|
+
rejectedTradesCount: number;
|
|
297
|
+
rows: {
|
|
298
|
+
accountId: string;
|
|
299
|
+
accountName: string;
|
|
300
|
+
offeringId: string;
|
|
301
|
+
issuerId: string;
|
|
302
|
+
issuerName: string;
|
|
303
|
+
offeringName: string;
|
|
304
|
+
approvedTradesCount: number;
|
|
305
|
+
rejectedTradesCount: number;
|
|
306
|
+
}[];
|
|
307
|
+
}[];
|
|
308
|
+
meta: {
|
|
309
|
+
itemCount: number;
|
|
310
|
+
itemsPerPage: number;
|
|
311
|
+
currentPage: number;
|
|
312
|
+
totalItems?: number | undefined;
|
|
313
|
+
totalPages?: number | undefined;
|
|
314
|
+
};
|
|
315
|
+
}>;
|
|
316
|
+
export type IPaginatedComplianceOfficerReport = z.infer<typeof IPaginatedComplianceOfficerReport>;
|
|
317
|
+
/** Common filter parameters for compliance officer queries */
|
|
318
|
+
export interface ComplianceOfficerFilterParams {
|
|
319
|
+
fromDate: Date | null;
|
|
320
|
+
toDate: Date | null;
|
|
321
|
+
search: string | undefined;
|
|
322
|
+
complianceOfficerIds: string[];
|
|
323
|
+
}
|
|
324
|
+
/** Raw row type from compliance officer aggregate query */
|
|
325
|
+
export interface ComplianceOfficerAggregateRow {
|
|
326
|
+
compliance_officer_id: string;
|
|
327
|
+
compliance_officer_name: string;
|
|
328
|
+
account_count: string | number;
|
|
329
|
+
issuer_count: string | number;
|
|
330
|
+
offering_count: string | number;
|
|
331
|
+
approved_trades_count: string | number;
|
|
332
|
+
rejected_trades_count: string | number;
|
|
333
|
+
}
|
|
334
|
+
/** Raw row type from compliance officer detail query */
|
|
335
|
+
export interface ComplianceOfficerDetailQueryRow {
|
|
336
|
+
compliance_officer_id: string;
|
|
337
|
+
account_id: string | null;
|
|
338
|
+
account_name: string | null;
|
|
339
|
+
issuer_id: string | null;
|
|
340
|
+
issuer_name: string | null;
|
|
341
|
+
offering_id: string | null;
|
|
342
|
+
offering_name: string | null;
|
|
343
|
+
approved_trades_count: string | number;
|
|
344
|
+
rejected_trades_count: string | number;
|
|
345
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { accountIdSchema } from './account.types.js';
|
|
4
|
+
import { dateSchema, IPaginationMeta } from './common.types.js';
|
|
5
|
+
import { issuerIdSchema } from './issuer.types.js';
|
|
6
|
+
import { offeringIdSchema } from './offering.types.js';
|
|
7
|
+
import { userIdSchema } from './user.types.js';
|
|
8
|
+
extendZodWithOpenApi(z);
|
|
9
|
+
export var ReportType;
|
|
10
|
+
(function (ReportType) {
|
|
11
|
+
ReportType["COMPLIANCE_OFFICER_REPORT"] = "COMPLIANCE_OFFICER_REPORT";
|
|
12
|
+
ReportType["OFFERING_REPORT"] = "OFFERING_REPORT";
|
|
13
|
+
})(ReportType || (ReportType = {}));
|
|
14
|
+
export const ComplianceOfficerReportFiltersZod = z.object({
|
|
15
|
+
search: z.string().trim().max(50).optional(),
|
|
16
|
+
complianceOfficerIds: z
|
|
17
|
+
.string()
|
|
18
|
+
.optional()
|
|
19
|
+
.transform((value) => {
|
|
20
|
+
if (!value) {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
const ids = value.split(',').map((id) => id.trim());
|
|
24
|
+
return Array.from(new Set(ids));
|
|
25
|
+
})
|
|
26
|
+
.refine((value) => {
|
|
27
|
+
if (!value || value.length === 0)
|
|
28
|
+
return true;
|
|
29
|
+
return value.every((id) => userIdSchema.safeParse(id).success);
|
|
30
|
+
}, {
|
|
31
|
+
message: 'Invalid compliance officer IDs. Must be a valid user ID. Example: user_01j6aqmtfyfwy9spjdcnh7yqk7',
|
|
32
|
+
}),
|
|
33
|
+
/**
|
|
34
|
+
* Optional date range filter on when the trade was reviewed.
|
|
35
|
+
*/
|
|
36
|
+
from: dateSchema.optional().openapi({ example: 'MM/DD/YYYY' }),
|
|
37
|
+
to: dateSchema.optional().openapi({ example: 'MM/DD/YYYY' }),
|
|
38
|
+
});
|
|
39
|
+
export const IComplianceOfficerReportRow = z.object({
|
|
40
|
+
complianceOfficerId: z.lazy(() => userIdSchema),
|
|
41
|
+
complianceOfficerName: z.string(),
|
|
42
|
+
accountCount: z.number(),
|
|
43
|
+
issuerCount: z.number(),
|
|
44
|
+
offeringCount: z.number(),
|
|
45
|
+
approvedTradesCount: z.number(),
|
|
46
|
+
rejectedTradesCount: z.number(),
|
|
47
|
+
});
|
|
48
|
+
export const IComplianceOfficerReportDetailRow = z.object({
|
|
49
|
+
accountId: z.lazy(() => accountIdSchema),
|
|
50
|
+
accountName: z.string(),
|
|
51
|
+
issuerId: z.lazy(() => issuerIdSchema),
|
|
52
|
+
issuerName: z.string(),
|
|
53
|
+
offeringId: z.lazy(() => offeringIdSchema),
|
|
54
|
+
offeringName: z.string(),
|
|
55
|
+
approvedTradesCount: z.number(),
|
|
56
|
+
rejectedTradesCount: z.number(),
|
|
57
|
+
});
|
|
58
|
+
export const IComplianceOfficerReportRowWithDetails = IComplianceOfficerReportRow.extend({
|
|
59
|
+
rows: z.array(IComplianceOfficerReportDetailRow),
|
|
60
|
+
});
|
|
61
|
+
export const IReportSummary = z.object({
|
|
62
|
+
type: z.nativeEnum(ReportType),
|
|
63
|
+
count: z.number(),
|
|
64
|
+
});
|
|
65
|
+
export const IPaginatedComplianceOfficerReport = z.object({
|
|
66
|
+
items: z.array(IComplianceOfficerReportRowWithDetails),
|
|
67
|
+
meta: IPaginationMeta,
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=reports.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.types.js","sourceRoot":"","sources":["reports.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -19,6 +19,7 @@ export declare const SecondaryOrder: z.ZodObject<{
|
|
|
19
19
|
accountName: string;
|
|
20
20
|
token: string;
|
|
21
21
|
amount: string;
|
|
22
|
+
shares: string;
|
|
22
23
|
expirationDate: string;
|
|
23
24
|
contingencies: string;
|
|
24
25
|
solicited: string;
|
|
@@ -29,7 +30,6 @@ export declare const SecondaryOrder: z.ZodObject<{
|
|
|
29
30
|
memberId: string;
|
|
30
31
|
orderId: string;
|
|
31
32
|
securityType: string;
|
|
32
|
-
shares: string;
|
|
33
33
|
remainingShares: string;
|
|
34
34
|
sharePrice: string;
|
|
35
35
|
priceNotDisplayed: string;
|
|
@@ -54,6 +54,7 @@ export declare const SecondaryOrder: z.ZodObject<{
|
|
|
54
54
|
accountName: string;
|
|
55
55
|
token: string;
|
|
56
56
|
amount: string;
|
|
57
|
+
shares: string;
|
|
57
58
|
expirationDate: string;
|
|
58
59
|
contingencies: string;
|
|
59
60
|
solicited: string;
|
|
@@ -64,7 +65,6 @@ export declare const SecondaryOrder: z.ZodObject<{
|
|
|
64
65
|
memberId: string;
|
|
65
66
|
orderId: string;
|
|
66
67
|
securityType: string;
|
|
67
|
-
shares: string;
|
|
68
68
|
remainingShares: string;
|
|
69
69
|
sharePrice: string;
|
|
70
70
|
priceNotDisplayed: string;
|
|
@@ -98,6 +98,7 @@ export declare const SecondaryOrder: z.ZodObject<{
|
|
|
98
98
|
accountName: string;
|
|
99
99
|
token: string;
|
|
100
100
|
amount: string;
|
|
101
|
+
shares: string;
|
|
101
102
|
expirationDate: string;
|
|
102
103
|
contingencies: string;
|
|
103
104
|
solicited: string;
|
|
@@ -108,7 +109,6 @@ export declare const SecondaryOrder: z.ZodObject<{
|
|
|
108
109
|
memberId: string;
|
|
109
110
|
orderId: string;
|
|
110
111
|
securityType: string;
|
|
111
|
-
shares: string;
|
|
112
112
|
remainingShares: string;
|
|
113
113
|
sharePrice: string;
|
|
114
114
|
priceNotDisplayed: string;
|
|
@@ -143,6 +143,7 @@ export declare const SecondaryOrder: z.ZodObject<{
|
|
|
143
143
|
accountName: string;
|
|
144
144
|
token: string;
|
|
145
145
|
amount: string;
|
|
146
|
+
shares: string;
|
|
146
147
|
expirationDate: string;
|
|
147
148
|
contingencies: string;
|
|
148
149
|
solicited: string;
|
|
@@ -153,7 +154,6 @@ export declare const SecondaryOrder: z.ZodObject<{
|
|
|
153
154
|
memberId: string;
|
|
154
155
|
orderId: string;
|
|
155
156
|
securityType: string;
|
|
156
|
-
shares: string;
|
|
157
157
|
remainingShares: string;
|
|
158
158
|
sharePrice: string;
|
|
159
159
|
priceNotDisplayed: string;
|
|
@@ -193,6 +193,7 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
193
193
|
accountName: string;
|
|
194
194
|
token: string;
|
|
195
195
|
amount: string;
|
|
196
|
+
shares: string;
|
|
196
197
|
expirationDate: string;
|
|
197
198
|
contingencies: string;
|
|
198
199
|
solicited: string;
|
|
@@ -203,7 +204,6 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
203
204
|
memberId: string;
|
|
204
205
|
orderId: string;
|
|
205
206
|
securityType: string;
|
|
206
|
-
shares: string;
|
|
207
207
|
remainingShares: string;
|
|
208
208
|
sharePrice: string;
|
|
209
209
|
priceNotDisplayed: string;
|
|
@@ -228,6 +228,7 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
228
228
|
accountName: string;
|
|
229
229
|
token: string;
|
|
230
230
|
amount: string;
|
|
231
|
+
shares: string;
|
|
231
232
|
expirationDate: string;
|
|
232
233
|
contingencies: string;
|
|
233
234
|
solicited: string;
|
|
@@ -238,7 +239,6 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
238
239
|
memberId: string;
|
|
239
240
|
orderId: string;
|
|
240
241
|
securityType: string;
|
|
241
|
-
shares: string;
|
|
242
242
|
remainingShares: string;
|
|
243
243
|
sharePrice: string;
|
|
244
244
|
priceNotDisplayed: string;
|
|
@@ -272,6 +272,7 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
272
272
|
accountName: string;
|
|
273
273
|
token: string;
|
|
274
274
|
amount: string;
|
|
275
|
+
shares: string;
|
|
275
276
|
expirationDate: string;
|
|
276
277
|
contingencies: string;
|
|
277
278
|
solicited: string;
|
|
@@ -282,7 +283,6 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
282
283
|
memberId: string;
|
|
283
284
|
orderId: string;
|
|
284
285
|
securityType: string;
|
|
285
|
-
shares: string;
|
|
286
286
|
remainingShares: string;
|
|
287
287
|
sharePrice: string;
|
|
288
288
|
priceNotDisplayed: string;
|
|
@@ -317,6 +317,7 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
317
317
|
accountName: string;
|
|
318
318
|
token: string;
|
|
319
319
|
amount: string;
|
|
320
|
+
shares: string;
|
|
320
321
|
expirationDate: string;
|
|
321
322
|
contingencies: string;
|
|
322
323
|
solicited: string;
|
|
@@ -327,7 +328,6 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
327
328
|
memberId: string;
|
|
328
329
|
orderId: string;
|
|
329
330
|
securityType: string;
|
|
330
|
-
shares: string;
|
|
331
331
|
remainingShares: string;
|
|
332
332
|
sharePrice: string;
|
|
333
333
|
priceNotDisplayed: string;
|
|
@@ -383,6 +383,7 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
383
383
|
accountName: string;
|
|
384
384
|
token: string;
|
|
385
385
|
amount: string;
|
|
386
|
+
shares: string;
|
|
386
387
|
expirationDate: string;
|
|
387
388
|
contingencies: string;
|
|
388
389
|
solicited: string;
|
|
@@ -393,7 +394,6 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
393
394
|
memberId: string;
|
|
394
395
|
orderId: string;
|
|
395
396
|
securityType: string;
|
|
396
|
-
shares: string;
|
|
397
397
|
remainingShares: string;
|
|
398
398
|
sharePrice: string;
|
|
399
399
|
priceNotDisplayed: string;
|
|
@@ -437,6 +437,7 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
437
437
|
accountName: string;
|
|
438
438
|
token: string;
|
|
439
439
|
amount: string;
|
|
440
|
+
shares: string;
|
|
440
441
|
expirationDate: string;
|
|
441
442
|
contingencies: string;
|
|
442
443
|
solicited: string;
|
|
@@ -447,7 +448,6 @@ export declare const IPaginatedSecondaryOrders: z.ZodObject<{
|
|
|
447
448
|
memberId: string;
|
|
448
449
|
orderId: string;
|
|
449
450
|
securityType: string;
|
|
450
|
-
shares: string;
|
|
451
451
|
remainingShares: string;
|
|
452
452
|
sharePrice: string;
|
|
453
453
|
priceNotDisplayed: string;
|
|
@@ -20,8 +20,8 @@ export declare const SecondaryTradeZod: z.ZodObject<{
|
|
|
20
20
|
offeringId: string;
|
|
21
21
|
amount: string;
|
|
22
22
|
tradeId: string;
|
|
23
|
-
memberId: string;
|
|
24
23
|
shares: string;
|
|
24
|
+
memberId: string;
|
|
25
25
|
sharePrice: string;
|
|
26
26
|
deleted: string;
|
|
27
27
|
createdDate: string;
|
|
@@ -38,8 +38,8 @@ export declare const SecondaryTradeZod: z.ZodObject<{
|
|
|
38
38
|
offeringId: string;
|
|
39
39
|
amount: string;
|
|
40
40
|
tradeId: string;
|
|
41
|
-
memberId: string;
|
|
42
41
|
shares: string;
|
|
42
|
+
memberId: string;
|
|
43
43
|
sharePrice: string;
|
|
44
44
|
deleted: string;
|
|
45
45
|
createdDate: string;
|
|
@@ -68,8 +68,8 @@ export declare const SecondaryTradeZod: z.ZodObject<{
|
|
|
68
68
|
offeringId: string;
|
|
69
69
|
amount: string;
|
|
70
70
|
tradeId: string;
|
|
71
|
-
memberId: string;
|
|
72
71
|
shares: string;
|
|
72
|
+
memberId: string;
|
|
73
73
|
sharePrice: string;
|
|
74
74
|
deleted: string;
|
|
75
75
|
createdDate: string;
|
|
@@ -99,8 +99,8 @@ export declare const SecondaryTradeZod: z.ZodObject<{
|
|
|
99
99
|
offeringId: string;
|
|
100
100
|
amount: string;
|
|
101
101
|
tradeId: string;
|
|
102
|
-
memberId: string;
|
|
103
102
|
shares: string;
|
|
103
|
+
memberId: string;
|
|
104
104
|
sharePrice: string;
|
|
105
105
|
deleted: string;
|
|
106
106
|
createdDate: string;
|
|
@@ -135,8 +135,8 @@ export declare const IPaginatedSecondaryTrades: z.ZodObject<{
|
|
|
135
135
|
offeringId: string;
|
|
136
136
|
amount: string;
|
|
137
137
|
tradeId: string;
|
|
138
|
-
memberId: string;
|
|
139
138
|
shares: string;
|
|
139
|
+
memberId: string;
|
|
140
140
|
sharePrice: string;
|
|
141
141
|
deleted: string;
|
|
142
142
|
createdDate: string;
|
|
@@ -153,8 +153,8 @@ export declare const IPaginatedSecondaryTrades: z.ZodObject<{
|
|
|
153
153
|
offeringId: string;
|
|
154
154
|
amount: string;
|
|
155
155
|
tradeId: string;
|
|
156
|
-
memberId: string;
|
|
157
156
|
shares: string;
|
|
157
|
+
memberId: string;
|
|
158
158
|
sharePrice: string;
|
|
159
159
|
deleted: string;
|
|
160
160
|
createdDate: string;
|
|
@@ -183,8 +183,8 @@ export declare const IPaginatedSecondaryTrades: z.ZodObject<{
|
|
|
183
183
|
offeringId: string;
|
|
184
184
|
amount: string;
|
|
185
185
|
tradeId: string;
|
|
186
|
-
memberId: string;
|
|
187
186
|
shares: string;
|
|
187
|
+
memberId: string;
|
|
188
188
|
sharePrice: string;
|
|
189
189
|
deleted: string;
|
|
190
190
|
createdDate: string;
|
|
@@ -214,8 +214,8 @@ export declare const IPaginatedSecondaryTrades: z.ZodObject<{
|
|
|
214
214
|
offeringId: string;
|
|
215
215
|
amount: string;
|
|
216
216
|
tradeId: string;
|
|
217
|
-
memberId: string;
|
|
218
217
|
shares: string;
|
|
218
|
+
memberId: string;
|
|
219
219
|
sharePrice: string;
|
|
220
220
|
deleted: string;
|
|
221
221
|
createdDate: string;
|
|
@@ -266,8 +266,8 @@ export declare const IPaginatedSecondaryTrades: z.ZodObject<{
|
|
|
266
266
|
offeringId: string;
|
|
267
267
|
amount: string;
|
|
268
268
|
tradeId: string;
|
|
269
|
-
memberId: string;
|
|
270
269
|
shares: string;
|
|
270
|
+
memberId: string;
|
|
271
271
|
sharePrice: string;
|
|
272
272
|
deleted: string;
|
|
273
273
|
createdDate: string;
|
|
@@ -306,8 +306,8 @@ export declare const IPaginatedSecondaryTrades: z.ZodObject<{
|
|
|
306
306
|
offeringId: string;
|
|
307
307
|
amount: string;
|
|
308
308
|
tradeId: string;
|
|
309
|
-
memberId: string;
|
|
310
309
|
shares: string;
|
|
310
|
+
memberId: string;
|
|
311
311
|
sharePrice: string;
|
|
312
312
|
deleted: string;
|
|
313
313
|
createdDate: string;
|