@dalmore/api-contracts 0.0.0-dev.c751882 → 0.0.0-dev.c81baa3
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/constants.d.ts +43 -0
- package/common/constants.js +77 -0
- package/common/constants.js.map +1 -0
- package/common/helpers/index.d.ts +27 -0
- package/common/helpers/index.js +43 -0
- package/common/helpers/index.js.map +1 -1
- package/common/types/account.types.js +3 -3
- package/common/types/account.types.js.map +1 -1
- package/common/types/attribution.types.d.ts +582 -0
- package/common/types/attribution.types.js +126 -0
- package/common/types/attribution.types.js.map +1 -0
- package/common/types/auth.types.d.ts +36 -0
- package/common/types/auth.types.js +3 -2
- package/common/types/auth.types.js.map +1 -1
- package/common/types/cap-table.types.d.ts +172 -0
- package/common/types/cap-table.types.js +35 -0
- package/common/types/cap-table.types.js.map +1 -1
- package/common/types/cart.types.d.ts +3 -0
- package/common/types/cart.types.js +1 -0
- package/common/types/cart.types.js.map +1 -1
- package/common/types/common.types.d.ts +14 -4
- package/common/types/common.types.js +13 -3
- package/common/types/common.types.js.map +1 -1
- package/common/types/comply-advantage-api.types.d.ts +12 -12
- package/common/types/csv.types.d.ts +3612 -0
- package/common/types/csv.types.js +290 -0
- package/common/types/csv.types.js.map +1 -0
- package/common/types/disbursements.types.d.ts +211 -19
- package/common/types/disbursements.types.js +42 -3
- package/common/types/disbursements.types.js.map +1 -1
- package/common/types/file.types.d.ts +3 -0
- package/common/types/file.types.js +3 -0
- package/common/types/file.types.js.map +1 -1
- package/common/types/index.d.ts +2 -2
- package/common/types/index.js +2 -2
- package/common/types/index.js.map +1 -1
- package/common/types/individuals.types.d.ts +395 -5
- package/common/types/individuals.types.js +9 -12
- package/common/types/individuals.types.js.map +1 -1
- package/common/types/investor-account.types.js +2 -0
- package/common/types/investor-account.types.js.map +1 -1
- package/common/types/investors-offering.types.d.ts +8 -0
- package/common/types/investors-offering.types.js +1 -0
- package/common/types/investors-offering.types.js.map +1 -1
- package/common/types/invite.types.d.ts +3 -0
- package/common/types/invite.types.js +1 -0
- package/common/types/invite.types.js.map +1 -1
- package/common/types/issuer-offering.types.d.ts +173 -2
- package/common/types/issuer-offering.types.js +11 -22
- package/common/types/issuer-offering.types.js.map +1 -1
- package/common/types/legal-entity.types.d.ts +39 -1
- package/common/types/legal-entity.types.js +8 -5
- package/common/types/legal-entity.types.js.map +1 -1
- package/common/types/mail-template.types.d.ts +4 -4
- package/common/types/notification.types.d.ts +1 -0
- package/common/types/notification.types.js +3 -0
- package/common/types/notification.types.js.map +1 -1
- package/common/types/offering-submission.types.js +1 -1
- package/common/types/offering.types.d.ts +20 -10
- package/common/types/offering.types.js +32 -3
- package/common/types/offering.types.js.map +1 -1
- package/common/types/payment-methods.types.d.ts +365 -0
- package/common/types/payment-methods.types.js +121 -0
- package/common/types/payment-methods.types.js.map +1 -1
- package/common/types/reports.types.d.ts +12 -12
- package/common/types/review.types.js +1 -1
- package/common/types/review.types.js.map +1 -1
- package/common/types/state-machine.types.d.ts +3 -3
- package/common/types/state-machine.types.js +1 -1
- package/common/types/state-machine.types.js.map +1 -1
- package/common/types/task.types.d.ts +8 -0
- package/common/types/task.types.js +3 -0
- package/common/types/task.types.js.map +1 -1
- package/common/types/trade-line-item.types.d.ts +24 -0
- package/common/types/trade-line-item.types.js +3 -0
- package/common/types/trade-line-item.types.js.map +1 -1
- package/common/types/trade.types.d.ts +11 -14
- package/common/types/trade.types.js +16 -7
- package/common/types/trade.types.js.map +1 -1
- package/common/types/transaction.types.d.ts +24 -1
- package/common/types/transaction.types.js +26 -0
- package/common/types/transaction.types.js.map +1 -1
- package/common/types/user.types.d.ts +6 -112
- package/common/types/user.types.js +5 -26
- package/common/types/user.types.js.map +1 -1
- package/common/types/zapier.types.d.ts +126 -0
- package/common/types/zapier.types.js +247 -0
- package/common/types/zapier.types.js.map +1 -0
- package/contracts/clients/cart/index.d.ts +3 -0
- package/contracts/clients/csv/index.d.ts +1988 -0
- package/contracts/clients/csv/index.js +96 -0
- package/contracts/clients/csv/index.js.map +1 -0
- package/contracts/clients/index.d.ts +3934 -1058
- package/contracts/clients/index.js +8 -2
- package/contracts/clients/index.js.map +1 -1
- package/contracts/clients/individuals/index.d.ts +381 -5
- package/contracts/clients/legal-entities/index.d.ts +1 -1
- package/contracts/clients/offerings/index.d.ts +2 -2
- package/contracts/clients/review/index.d.ts +85 -0
- package/contracts/clients/review/index.js +27 -0
- package/contracts/clients/review/index.js.map +1 -0
- package/contracts/clients/webhooks/index.d.ts +506 -0
- package/contracts/clients/webhooks/index.js +118 -0
- package/contracts/clients/webhooks/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
3
|
+
import { InvestorAccountType, AicAccreditationType, StringToBooleanSchema, } from './common.types.js';
|
|
4
|
+
import { investorAccountIdSchema, PostClientInvestorAccountBodySchema, } from './investor-account.types.js';
|
|
5
|
+
import { IndividualRole, PostIndividualBaseObject, aicQuestionnaire, UpdateIndividualBaseObject, individualIdSchema, } from './individuals.types.js';
|
|
6
|
+
import { userIdSchema } from './user.types.js';
|
|
7
|
+
import { RegisterBodyInvestorsBase, IRegisterClientIssuerBodyZod, } from './auth.types.js';
|
|
8
|
+
import { AddressSchema } from './address.types.js';
|
|
9
|
+
import { fileIdSchema } from './file.types.js';
|
|
10
|
+
import { PostKycBodySchema } from './kyc.types.js';
|
|
11
|
+
import { PostIssuerZod } from './issuer.types.js';
|
|
12
|
+
import { issuerIdSchema } from './issuer.types.js';
|
|
13
|
+
import { IOffering } from './offering.types.js';
|
|
14
|
+
import { IAsset } from './asset.types.js';
|
|
15
|
+
import { PostIssuerOfferingBaseObject } from './issuer-offering.types.js';
|
|
16
|
+
extendZodWithOpenApi(z);
|
|
17
|
+
/**
|
|
18
|
+
* Zod schema for CSV validation result (for API contracts)
|
|
19
|
+
*/
|
|
20
|
+
export const CsvValidationResultZod = z.object({
|
|
21
|
+
valid: z.boolean(),
|
|
22
|
+
totalRows: z.number(),
|
|
23
|
+
validRows: z.number(),
|
|
24
|
+
invalidRows: z.number(),
|
|
25
|
+
data: z.array(z.record(z.any())),
|
|
26
|
+
errors: z
|
|
27
|
+
.array(z.object({
|
|
28
|
+
row: z.number(),
|
|
29
|
+
issues: z.array(z.string()),
|
|
30
|
+
}))
|
|
31
|
+
.optional(),
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* Zod schema for created investor account info
|
|
35
|
+
*/
|
|
36
|
+
const CreatedInvestorAccountInfoZod = z.object({
|
|
37
|
+
row: z.number(),
|
|
38
|
+
userId: z.string(),
|
|
39
|
+
investorAccountId: z.string(),
|
|
40
|
+
});
|
|
41
|
+
/**
|
|
42
|
+
* Zod schema for created issuer account info
|
|
43
|
+
*/
|
|
44
|
+
const CreatedIssuerAccountInfoZod = z.object({
|
|
45
|
+
row: z.number(),
|
|
46
|
+
userId: z.string(),
|
|
47
|
+
accountId: z.string(),
|
|
48
|
+
});
|
|
49
|
+
/**
|
|
50
|
+
* Zod schema for CSV persistence result (for API contracts)
|
|
51
|
+
*
|
|
52
|
+
* Note: With all-or-nothing transactions:
|
|
53
|
+
* - Success returns this schema with all accounts created
|
|
54
|
+
* - Failure returns ExtendedErrorResult with transaction rollback
|
|
55
|
+
* - failedRows removed: always 0 on success, redundant
|
|
56
|
+
*
|
|
57
|
+
* Schema supports both investor and issuer accounts using discriminated union
|
|
58
|
+
*/
|
|
59
|
+
export const CsvPersistenceResultZod = z.object({
|
|
60
|
+
totalRows: z.number(),
|
|
61
|
+
successfulRows: z.number(),
|
|
62
|
+
createdAccounts: z.array(z.union([CreatedInvestorAccountInfoZod, CreatedIssuerAccountInfoZod])),
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* Common schema extensions used across all investor CSV types
|
|
66
|
+
* Extracted to follow DRY principle and avoid code duplication
|
|
67
|
+
*/
|
|
68
|
+
const CommonInvestorCsvExtensions = RegisterBodyInvestorsBase.extend({
|
|
69
|
+
site: z
|
|
70
|
+
.string()
|
|
71
|
+
.min(2, 'site is less than 2 characters')
|
|
72
|
+
.max(253, 'site is more than 253 characters')
|
|
73
|
+
.openapi({
|
|
74
|
+
example: 'func.co',
|
|
75
|
+
})
|
|
76
|
+
.optional(),
|
|
77
|
+
})
|
|
78
|
+
.and(PostClientInvestorAccountBodySchema.extend({
|
|
79
|
+
investorAccountType: z.nativeEnum(InvestorAccountType).optional(),
|
|
80
|
+
userId: z
|
|
81
|
+
.lazy(() => {
|
|
82
|
+
return userIdSchema;
|
|
83
|
+
})
|
|
84
|
+
.optional(),
|
|
85
|
+
}))
|
|
86
|
+
.and(PostIndividualBaseObject.extend({
|
|
87
|
+
investorAccountId: z.string().optional(),
|
|
88
|
+
role: z.nativeEnum(IndividualRole).optional(),
|
|
89
|
+
}));
|
|
90
|
+
/**
|
|
91
|
+
* Base schema for INDIVIDUAL investor accounts
|
|
92
|
+
* Includes common registration fields, individual updates, and address
|
|
93
|
+
*/
|
|
94
|
+
export const BaseIndividualCsvFields = CommonInvestorCsvExtensions.and(UpdateIndividualBaseObject.omit({
|
|
95
|
+
firstName: true,
|
|
96
|
+
lastName: true,
|
|
97
|
+
}))
|
|
98
|
+
.and(AddressSchema)
|
|
99
|
+
.refine((data) => data.password === data.confirmPassword, {
|
|
100
|
+
message: 'Passwords do not match',
|
|
101
|
+
path: ['confirmPassword'],
|
|
102
|
+
});
|
|
103
|
+
/**
|
|
104
|
+
* Base schema for JOINT investor accounts
|
|
105
|
+
* Extends INDIVIDUAL schema with required second holder fields
|
|
106
|
+
*/
|
|
107
|
+
export const BaseJointCsvFields = z
|
|
108
|
+
.object({
|
|
109
|
+
// Second holder fields for JOINT accounts (required for JOINT type)
|
|
110
|
+
secondHolderFirstName: z
|
|
111
|
+
.string()
|
|
112
|
+
.min(2, 'secondHolderFirstName must be at least 2 characters')
|
|
113
|
+
.max(20, 'secondHolderFirstName must be at most 20 characters'),
|
|
114
|
+
secondHolderLastName: z
|
|
115
|
+
.string()
|
|
116
|
+
.min(2, 'secondHolderLastName must be at least 2 characters')
|
|
117
|
+
.max(20, 'secondHolderLastName must be at most 20 characters'),
|
|
118
|
+
secondHolderEmail: z
|
|
119
|
+
.string()
|
|
120
|
+
.email('secondHolderEmail must be a valid email'),
|
|
121
|
+
secondHolderPhone: z.string().min(1, 'secondHolderPhone is required'),
|
|
122
|
+
secondHolderDob: z.coerce
|
|
123
|
+
.date({
|
|
124
|
+
required_error: 'secondHolderDob is required',
|
|
125
|
+
invalid_type_error: 'secondHolderDob must be a valid date',
|
|
126
|
+
})
|
|
127
|
+
.optional(),
|
|
128
|
+
secondHolderDateOfBirth: z.coerce
|
|
129
|
+
.date({
|
|
130
|
+
invalid_type_error: 'secondHolderDateOfBirth must be a valid date',
|
|
131
|
+
})
|
|
132
|
+
.optional(),
|
|
133
|
+
secondHolderSsn: z
|
|
134
|
+
.string()
|
|
135
|
+
.length(9, 'secondHolderSsn must be exactly 9 digits'),
|
|
136
|
+
secondHolderOwnership: z.coerce
|
|
137
|
+
.number({
|
|
138
|
+
required_error: 'secondHolderOwnership is required',
|
|
139
|
+
invalid_type_error: 'secondHolderOwnership must be a number',
|
|
140
|
+
})
|
|
141
|
+
.min(0, 'secondHolderOwnership must be at least 0')
|
|
142
|
+
.max(100, 'secondHolderOwnership must be at most 100'),
|
|
143
|
+
secondHolderIsUsCitizenOrGreenCardHolder: StringToBooleanSchema,
|
|
144
|
+
secondHolderCitizenship: z
|
|
145
|
+
.string()
|
|
146
|
+
.min(1, 'secondHolderCitizenship is required'),
|
|
147
|
+
})
|
|
148
|
+
.and(BaseIndividualCsvFields);
|
|
149
|
+
/**
|
|
150
|
+
* Base schema for LEGAL_ENTITY investor accounts
|
|
151
|
+
* Extends INDIVIDUAL schema with required entity fields and optional second holder (UBO2)
|
|
152
|
+
*/
|
|
153
|
+
export const BaseLegalEntityCsvFields = z
|
|
154
|
+
.object({
|
|
155
|
+
// Entity-specific fields (required for LEGAL_ENTITY type)
|
|
156
|
+
entityName: z
|
|
157
|
+
.string()
|
|
158
|
+
.min(2, 'entityName must be at least 2 characters')
|
|
159
|
+
.max(100, 'entityName must be at most 100 characters'),
|
|
160
|
+
ein: z.string().min(1, 'ein is required'),
|
|
161
|
+
companyType: z.string().min(1, 'companyType is required'),
|
|
162
|
+
dateOfIncorporation: z.coerce.date({
|
|
163
|
+
required_error: 'dateOfIncorporation is required',
|
|
164
|
+
invalid_type_error: 'dateOfIncorporation must be a valid date',
|
|
165
|
+
}),
|
|
166
|
+
stateOfIncorporation: z.string().min(1, 'stateOfIncorporation is required'),
|
|
167
|
+
// Second holder fields for LEGAL_ENTITY (optional UBO2)
|
|
168
|
+
secondHolderFirstName: z.string().min(2).max(20).optional(),
|
|
169
|
+
secondHolderLastName: z.string().min(2).max(20).optional(),
|
|
170
|
+
secondHolderEmail: z.string().email().optional(),
|
|
171
|
+
secondHolderPhone: z.string().optional(),
|
|
172
|
+
secondHolderDob: z.coerce.date().optional(),
|
|
173
|
+
secondHolderDateOfBirth: z.coerce.date().optional(),
|
|
174
|
+
secondHolderSsn: z.string().length(9).optional(),
|
|
175
|
+
secondHolderOwnership: z.coerce.number().min(0).max(100).optional(),
|
|
176
|
+
secondHolderIsUsCitizenOrGreenCardHolder: StringToBooleanSchema.optional(),
|
|
177
|
+
secondHolderCitizenship: z.string().optional(),
|
|
178
|
+
})
|
|
179
|
+
.and(BaseIndividualCsvFields);
|
|
180
|
+
// Validation schemas with type discriminators for CSV upload
|
|
181
|
+
export const IndividualCsvSchemaWithType = z
|
|
182
|
+
.object({
|
|
183
|
+
type: z.literal('INDIVIDUAL'),
|
|
184
|
+
})
|
|
185
|
+
.and(BaseIndividualCsvFields);
|
|
186
|
+
export const JointCsvSchemaWithType = z
|
|
187
|
+
.object({
|
|
188
|
+
type: z.literal('JOINT'),
|
|
189
|
+
})
|
|
190
|
+
.and(BaseJointCsvFields);
|
|
191
|
+
export const LegalEntityCsvSchemaWithType = z
|
|
192
|
+
.object({
|
|
193
|
+
type: z.literal('LEGAL_ENTITY'),
|
|
194
|
+
})
|
|
195
|
+
.and(BaseLegalEntityCsvFields);
|
|
196
|
+
/**
|
|
197
|
+
* Base schema for unified CSV that only validates the type field
|
|
198
|
+
* The actual type-specific validation happens in the service layer
|
|
199
|
+
* to avoid duplicate error messages from overlapping field definitions
|
|
200
|
+
*/
|
|
201
|
+
export const UnifiedInvestorCsvBaseSchema = z.object({
|
|
202
|
+
type: z.enum(['INDIVIDUAL', 'JOINT', 'LEGAL_ENTITY']),
|
|
203
|
+
});
|
|
204
|
+
/**
|
|
205
|
+
* Zod schema for AIC questionnaire CSV validation
|
|
206
|
+
* Reuses the existing aicQuestionnaire schema from individuals.types.ts
|
|
207
|
+
*/
|
|
208
|
+
export const AicQuestionnaireCsvSchema = aicQuestionnaire.shape.AIC_Questionnaire;
|
|
209
|
+
/**
|
|
210
|
+
* Query parameters for investor account CSV upload
|
|
211
|
+
*/
|
|
212
|
+
export const UploadInvestorCsvQuery = z.object({
|
|
213
|
+
type: z.nativeEnum(InvestorAccountType),
|
|
214
|
+
});
|
|
215
|
+
/**
|
|
216
|
+
* Query parameters for AIC questionnaire CSV upload
|
|
217
|
+
*/
|
|
218
|
+
export const UploadAicCsvQuery = z.object({
|
|
219
|
+
accredited: z.coerce.boolean(),
|
|
220
|
+
aicAccreditationType: z.nativeEnum(AicAccreditationType),
|
|
221
|
+
investorAccountId: investorAccountIdSchema,
|
|
222
|
+
});
|
|
223
|
+
/**
|
|
224
|
+
* KYC CSV row structure
|
|
225
|
+
* Omits file ID fields (kycDocumentFrontFileId, kycDocumentBackFileId, kycSelfieFileId)
|
|
226
|
+
* because they come from query parameters, not the CSV file
|
|
227
|
+
* Accepts string dates for CSV parsing which will be coerced to Date objects
|
|
228
|
+
*/
|
|
229
|
+
export const KycCsvSchema = PostKycBodySchema.omit({
|
|
230
|
+
kycDocumentFrontFileId: true,
|
|
231
|
+
kycDocumentBackFileId: true,
|
|
232
|
+
kycSelfieFileId: true,
|
|
233
|
+
}).extend({
|
|
234
|
+
kycDocumentIssuedDate: z.coerce.date(),
|
|
235
|
+
kycDocumentExpirationDate: z.coerce.date(),
|
|
236
|
+
kycDocumentDob: z.coerce.date(),
|
|
237
|
+
});
|
|
238
|
+
/**
|
|
239
|
+
* Query parameters for KYC CSV upload
|
|
240
|
+
*/
|
|
241
|
+
export const UploadKycCsvQuery = z.object({
|
|
242
|
+
individualId: individualIdSchema,
|
|
243
|
+
frontFileId: fileIdSchema,
|
|
244
|
+
backFileId: fileIdSchema.optional(),
|
|
245
|
+
selfieFileId: fileIdSchema.optional(),
|
|
246
|
+
});
|
|
247
|
+
/**
|
|
248
|
+
* Base issuer CSV fields schema
|
|
249
|
+
* Combines IRegisterClientIssuerBodyZod and PostIssuerZod with accountName type override
|
|
250
|
+
*/
|
|
251
|
+
export const BaseIssuerCsvFields = IRegisterClientIssuerBodyZod.and(PostIssuerZod).and(z.object({
|
|
252
|
+
accountName: z.string().min(2).max(50).optional().openapi({
|
|
253
|
+
example: 'Example Account',
|
|
254
|
+
}),
|
|
255
|
+
}));
|
|
256
|
+
/**
|
|
257
|
+
* Offering CSV row structure with coercion for CSV string values
|
|
258
|
+
* CSV files contain all values as strings, so we need to coerce them to proper types
|
|
259
|
+
*/
|
|
260
|
+
export const OfferingCsvSchema = PostIssuerOfferingBaseObject.extend({
|
|
261
|
+
issuerId: issuerIdSchema.optional(),
|
|
262
|
+
targetAmount: z.coerce.number().min(0.01).max(10000000000),
|
|
263
|
+
raiseAmount: z.coerce.number().min(0).max(10000000000).optional(),
|
|
264
|
+
minInvestment: z.coerce.number().min(0).max(10000000000).optional(),
|
|
265
|
+
maxInvestment: z.coerce.number().min(0).max(10000000000).optional(),
|
|
266
|
+
contingencyAmount: z.coerce.number().min(0).max(10000000000).optional(),
|
|
267
|
+
cancellationPeriod: z.coerce.number().min(1).max(30).optional().nullable(),
|
|
268
|
+
active: StringToBooleanSchema.optional(),
|
|
269
|
+
pricePerUnit: z.coerce.number().min(0.01).max(10000000000).nullable(),
|
|
270
|
+
totalUnits: z.coerce.number().min(1).max(10000000000).nullable(),
|
|
271
|
+
yield: z.coerce.number().min(0.01).max(10000000000).nullable().optional(),
|
|
272
|
+
duration: z.coerce.number().min(1).max(1000).nullable().optional(),
|
|
273
|
+
enableBonus: StringToBooleanSchema.optional(),
|
|
274
|
+
interestRate: z.coerce.number().min(0.01).max(100).nullable().optional(),
|
|
275
|
+
});
|
|
276
|
+
/**
|
|
277
|
+
* Query parameters for offering CSV upload
|
|
278
|
+
*/
|
|
279
|
+
export const UploadOfferingCsvQuery = z.object({
|
|
280
|
+
issuerId: issuerIdSchema,
|
|
281
|
+
});
|
|
282
|
+
/**
|
|
283
|
+
* Response type for offering CSV upload
|
|
284
|
+
* Returns the full offering object with its assets array
|
|
285
|
+
* Reuses IOffering schema for consistency with other offering endpoints
|
|
286
|
+
*/
|
|
287
|
+
export const OfferingCsvResponseZod = z.lazy(() => IOffering.extend({
|
|
288
|
+
assets: z.array(IAsset).optional(),
|
|
289
|
+
}));
|
|
290
|
+
//# sourceMappingURL=csv.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csv.types.js","sourceRoot":"","sources":["csv.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GAEtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,uBAAuB,EACvB,mCAAmC,GACpC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,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AC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;CACnC,CAAC,CACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ComplianceReview } from './common.types';
|
|
2
|
+
import { ComplianceReview, UserRole } from './common.types';
|
|
3
3
|
import { DisbursementAdjustmentType } from './disbursement-adjustment.types';
|
|
4
4
|
export declare const disbursementIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
export declare enum DisbursementStatus {
|
|
@@ -1032,7 +1032,7 @@ export declare const DisbursementsIncludeQuery: z.ZodObject<{
|
|
|
1032
1032
|
export interface DisbursementsIncludeQuery extends z.infer<typeof DisbursementsIncludeQuery> {
|
|
1033
1033
|
}
|
|
1034
1034
|
export declare const PostDisbursementZod: z.ZodObject<{
|
|
1035
|
-
name: z.ZodString
|
|
1035
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1036
1036
|
offeringId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
1037
1037
|
issuerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
1038
1038
|
issuerBankAccountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -1061,12 +1061,10 @@ export declare const PostDisbursementZod: z.ZodObject<{
|
|
|
1061
1061
|
type: DisbursementAdjustmentType;
|
|
1062
1062
|
description: string;
|
|
1063
1063
|
}[]>;
|
|
1064
|
-
escrowAccountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string
|
|
1064
|
+
escrowAccountId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1065
1065
|
}, "strip", z.ZodTypeAny, {
|
|
1066
|
-
name: string;
|
|
1067
1066
|
offeringId: string;
|
|
1068
1067
|
issuerId: string;
|
|
1069
|
-
escrowAccountId: string;
|
|
1070
1068
|
tradeIds: string[];
|
|
1071
1069
|
requestedAmount: number;
|
|
1072
1070
|
netAmount: number;
|
|
@@ -1076,12 +1074,12 @@ export declare const PostDisbursementZod: z.ZodObject<{
|
|
|
1076
1074
|
description: string;
|
|
1077
1075
|
}[];
|
|
1078
1076
|
issuerBankAccountId: string;
|
|
1077
|
+
name?: string | undefined;
|
|
1078
|
+
escrowAccountId?: string | undefined;
|
|
1079
1079
|
disbursedAt?: Date | null | undefined;
|
|
1080
1080
|
}, {
|
|
1081
|
-
name: string;
|
|
1082
1081
|
offeringId: string;
|
|
1083
1082
|
issuerId: string;
|
|
1084
|
-
escrowAccountId: string;
|
|
1085
1083
|
tradeIds: string[];
|
|
1086
1084
|
requestedAmount: number;
|
|
1087
1085
|
netAmount: number;
|
|
@@ -1091,11 +1089,13 @@ export declare const PostDisbursementZod: z.ZodObject<{
|
|
|
1091
1089
|
description: string;
|
|
1092
1090
|
}[];
|
|
1093
1091
|
issuerBankAccountId: string;
|
|
1092
|
+
name?: string | undefined;
|
|
1093
|
+
escrowAccountId?: string | undefined;
|
|
1094
1094
|
disbursedAt?: string | null | undefined;
|
|
1095
1095
|
}>;
|
|
1096
1096
|
export type PostDisbursementZod = z.infer<typeof PostDisbursementZod>;
|
|
1097
1097
|
export declare const CompliancePostDisbursementZod: z.ZodObject<{
|
|
1098
|
-
name: z.ZodString
|
|
1098
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1099
1099
|
offeringId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
1100
1100
|
issuerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
1101
1101
|
issuerBankAccountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -1124,15 +1124,13 @@ export declare const CompliancePostDisbursementZod: z.ZodObject<{
|
|
|
1124
1124
|
type: DisbursementAdjustmentType;
|
|
1125
1125
|
description: string;
|
|
1126
1126
|
}[]>;
|
|
1127
|
-
escrowAccountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string
|
|
1127
|
+
escrowAccountId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1128
1128
|
} & {
|
|
1129
1129
|
accountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
1130
1130
|
}, "strip", z.ZodTypeAny, {
|
|
1131
1131
|
accountId: string;
|
|
1132
|
-
name: string;
|
|
1133
1132
|
offeringId: string;
|
|
1134
1133
|
issuerId: string;
|
|
1135
|
-
escrowAccountId: string;
|
|
1136
1134
|
tradeIds: string[];
|
|
1137
1135
|
requestedAmount: number;
|
|
1138
1136
|
netAmount: number;
|
|
@@ -1142,13 +1140,13 @@ export declare const CompliancePostDisbursementZod: z.ZodObject<{
|
|
|
1142
1140
|
description: string;
|
|
1143
1141
|
}[];
|
|
1144
1142
|
issuerBankAccountId: string;
|
|
1143
|
+
name?: string | undefined;
|
|
1144
|
+
escrowAccountId?: string | undefined;
|
|
1145
1145
|
disbursedAt?: Date | null | undefined;
|
|
1146
1146
|
}, {
|
|
1147
1147
|
accountId: string;
|
|
1148
|
-
name: string;
|
|
1149
1148
|
offeringId: string;
|
|
1150
1149
|
issuerId: string;
|
|
1151
|
-
escrowAccountId: string;
|
|
1152
1150
|
tradeIds: string[];
|
|
1153
1151
|
requestedAmount: number;
|
|
1154
1152
|
netAmount: number;
|
|
@@ -1158,6 +1156,8 @@ export declare const CompliancePostDisbursementZod: z.ZodObject<{
|
|
|
1158
1156
|
description: string;
|
|
1159
1157
|
}[];
|
|
1160
1158
|
issuerBankAccountId: string;
|
|
1159
|
+
name?: string | undefined;
|
|
1160
|
+
escrowAccountId?: string | undefined;
|
|
1161
1161
|
disbursedAt?: string | null | undefined;
|
|
1162
1162
|
}>;
|
|
1163
1163
|
export type CompliancePostDisbursementZod = z.infer<typeof CompliancePostDisbursementZod>;
|
|
@@ -1524,6 +1524,35 @@ export declare const DisbursementPreviewTradeSummaryZod: z.ZodObject<{
|
|
|
1524
1524
|
selectedTradesTotalAmount: number;
|
|
1525
1525
|
}>;
|
|
1526
1526
|
export type DisbursementPreviewTradeSummaryZod = z.infer<typeof DisbursementPreviewTradeSummaryZod>;
|
|
1527
|
+
export declare const DisbursementPreviewTradeZod: z.ZodObject<{
|
|
1528
|
+
tradeId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
1529
|
+
tradeNo: z.ZodString;
|
|
1530
|
+
investorName: z.ZodString;
|
|
1531
|
+
investmentName: z.ZodString;
|
|
1532
|
+
numberOfShares: z.ZodNumber;
|
|
1533
|
+
totalAmount: z.ZodNumber;
|
|
1534
|
+
date: z.ZodNullable<z.ZodDate>;
|
|
1535
|
+
status: z.ZodString;
|
|
1536
|
+
}, "strip", z.ZodTypeAny, {
|
|
1537
|
+
status: string;
|
|
1538
|
+
date: Date | null;
|
|
1539
|
+
tradeId: string;
|
|
1540
|
+
totalAmount: number;
|
|
1541
|
+
investorName: string;
|
|
1542
|
+
numberOfShares: number;
|
|
1543
|
+
tradeNo: string;
|
|
1544
|
+
investmentName: string;
|
|
1545
|
+
}, {
|
|
1546
|
+
status: string;
|
|
1547
|
+
date: Date | null;
|
|
1548
|
+
tradeId: string;
|
|
1549
|
+
totalAmount: number;
|
|
1550
|
+
investorName: string;
|
|
1551
|
+
numberOfShares: number;
|
|
1552
|
+
tradeNo: string;
|
|
1553
|
+
investmentName: string;
|
|
1554
|
+
}>;
|
|
1555
|
+
export type DisbursementPreviewTradeZod = z.infer<typeof DisbursementPreviewTradeZod>;
|
|
1527
1556
|
export declare const DisbursementPreviewContingencyZod: z.ZodObject<{
|
|
1528
1557
|
contingencyPassed: z.ZodBoolean;
|
|
1529
1558
|
contingencyMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -1760,6 +1789,34 @@ export declare const DisbursementPreviewZod: z.ZodObject<{
|
|
|
1760
1789
|
disbursementFee: number;
|
|
1761
1790
|
availableForDisbursement: number;
|
|
1762
1791
|
}>;
|
|
1792
|
+
eligibleTrades: z.ZodArray<z.ZodObject<{
|
|
1793
|
+
tradeId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
1794
|
+
tradeNo: z.ZodString;
|
|
1795
|
+
investorName: z.ZodString;
|
|
1796
|
+
investmentName: z.ZodString;
|
|
1797
|
+
numberOfShares: z.ZodNumber;
|
|
1798
|
+
totalAmount: z.ZodNumber;
|
|
1799
|
+
date: z.ZodNullable<z.ZodDate>;
|
|
1800
|
+
status: z.ZodString;
|
|
1801
|
+
}, "strip", z.ZodTypeAny, {
|
|
1802
|
+
status: string;
|
|
1803
|
+
date: Date | null;
|
|
1804
|
+
tradeId: string;
|
|
1805
|
+
totalAmount: number;
|
|
1806
|
+
investorName: string;
|
|
1807
|
+
numberOfShares: number;
|
|
1808
|
+
tradeNo: string;
|
|
1809
|
+
investmentName: string;
|
|
1810
|
+
}, {
|
|
1811
|
+
status: string;
|
|
1812
|
+
date: Date | null;
|
|
1813
|
+
tradeId: string;
|
|
1814
|
+
totalAmount: number;
|
|
1815
|
+
investorName: string;
|
|
1816
|
+
numberOfShares: number;
|
|
1817
|
+
tradeNo: string;
|
|
1818
|
+
investmentName: string;
|
|
1819
|
+
}>, "many">;
|
|
1763
1820
|
tradeSummary: z.ZodObject<{
|
|
1764
1821
|
selectedTradesCount: z.ZodNumber;
|
|
1765
1822
|
selectedTradesTotalAmount: z.ZodNumber;
|
|
@@ -1845,6 +1902,16 @@ export declare const DisbursementPreviewZod: z.ZodObject<{
|
|
|
1845
1902
|
disbursementFee: number;
|
|
1846
1903
|
availableForDisbursement: number;
|
|
1847
1904
|
};
|
|
1905
|
+
eligibleTrades: {
|
|
1906
|
+
status: string;
|
|
1907
|
+
date: Date | null;
|
|
1908
|
+
tradeId: string;
|
|
1909
|
+
totalAmount: number;
|
|
1910
|
+
investorName: string;
|
|
1911
|
+
numberOfShares: number;
|
|
1912
|
+
tradeNo: string;
|
|
1913
|
+
investmentName: string;
|
|
1914
|
+
}[];
|
|
1848
1915
|
tradeSummary: {
|
|
1849
1916
|
selectedTradesCount: number;
|
|
1850
1917
|
selectedTradesTotalAmount: number;
|
|
@@ -1903,6 +1970,16 @@ export declare const DisbursementPreviewZod: z.ZodObject<{
|
|
|
1903
1970
|
disbursementFee: number;
|
|
1904
1971
|
availableForDisbursement: number;
|
|
1905
1972
|
};
|
|
1973
|
+
eligibleTrades: {
|
|
1974
|
+
status: string;
|
|
1975
|
+
date: Date | null;
|
|
1976
|
+
tradeId: string;
|
|
1977
|
+
totalAmount: number;
|
|
1978
|
+
investorName: string;
|
|
1979
|
+
numberOfShares: number;
|
|
1980
|
+
tradeNo: string;
|
|
1981
|
+
investmentName: string;
|
|
1982
|
+
}[];
|
|
1906
1983
|
tradeSummary: {
|
|
1907
1984
|
selectedTradesCount: number;
|
|
1908
1985
|
selectedTradesTotalAmount: number;
|
|
@@ -2586,6 +2663,121 @@ export declare const DisbursementDetailZod: z.ZodObject<{
|
|
|
2586
2663
|
disbursementTransactions?: any[] | undefined;
|
|
2587
2664
|
}>;
|
|
2588
2665
|
export type DisbursementDetailZod = z.infer<typeof DisbursementDetailZod>;
|
|
2666
|
+
export declare const DisbursementApproverZod: z.ZodObject<{
|
|
2667
|
+
name: z.ZodString;
|
|
2668
|
+
email: z.ZodString;
|
|
2669
|
+
reviewedAt: z.ZodNullable<z.ZodDate>;
|
|
2670
|
+
status: z.ZodNativeEnum<typeof DisbursementStatus>;
|
|
2671
|
+
role: z.ZodNativeEnum<typeof UserRole>;
|
|
2672
|
+
}, "strip", z.ZodTypeAny, {
|
|
2673
|
+
status: DisbursementStatus;
|
|
2674
|
+
email: string;
|
|
2675
|
+
name: string;
|
|
2676
|
+
role: UserRole;
|
|
2677
|
+
reviewedAt: Date | null;
|
|
2678
|
+
}, {
|
|
2679
|
+
status: DisbursementStatus;
|
|
2680
|
+
email: string;
|
|
2681
|
+
name: string;
|
|
2682
|
+
role: UserRole;
|
|
2683
|
+
reviewedAt: Date | null;
|
|
2684
|
+
}>;
|
|
2685
|
+
export type DisbursementApproverZod = z.infer<typeof DisbursementApproverZod>;
|
|
2686
|
+
export declare const DisbursementDeclinedBannerZod: z.ZodObject<{
|
|
2687
|
+
disbursementStatus: z.ZodNativeEnum<typeof DisbursementStatus>;
|
|
2688
|
+
declinedByName: z.ZodString;
|
|
2689
|
+
declinedByRole: z.ZodNativeEnum<typeof UserRole>;
|
|
2690
|
+
declinedAt: z.ZodDate;
|
|
2691
|
+
}, "strip", z.ZodTypeAny, {
|
|
2692
|
+
disbursementStatus: DisbursementStatus;
|
|
2693
|
+
declinedByName: string;
|
|
2694
|
+
declinedByRole: UserRole;
|
|
2695
|
+
declinedAt: Date;
|
|
2696
|
+
}, {
|
|
2697
|
+
disbursementStatus: DisbursementStatus;
|
|
2698
|
+
declinedByName: string;
|
|
2699
|
+
declinedByRole: UserRole;
|
|
2700
|
+
declinedAt: Date;
|
|
2701
|
+
}>;
|
|
2702
|
+
export type DisbursementDeclinedBannerZod = z.infer<typeof DisbursementDeclinedBannerZod>;
|
|
2703
|
+
export declare const DisbursementApprovalsTabZod: z.ZodObject<{
|
|
2704
|
+
disbursementId: z.ZodString;
|
|
2705
|
+
disbursementName: z.ZodString;
|
|
2706
|
+
issuerName: z.ZodString;
|
|
2707
|
+
offeringName: z.ZodString;
|
|
2708
|
+
approvers: z.ZodArray<z.ZodObject<{
|
|
2709
|
+
name: z.ZodString;
|
|
2710
|
+
email: z.ZodString;
|
|
2711
|
+
reviewedAt: z.ZodNullable<z.ZodDate>;
|
|
2712
|
+
status: z.ZodNativeEnum<typeof DisbursementStatus>;
|
|
2713
|
+
role: z.ZodNativeEnum<typeof UserRole>;
|
|
2714
|
+
}, "strip", z.ZodTypeAny, {
|
|
2715
|
+
status: DisbursementStatus;
|
|
2716
|
+
email: string;
|
|
2717
|
+
name: string;
|
|
2718
|
+
role: UserRole;
|
|
2719
|
+
reviewedAt: Date | null;
|
|
2720
|
+
}, {
|
|
2721
|
+
status: DisbursementStatus;
|
|
2722
|
+
email: string;
|
|
2723
|
+
name: string;
|
|
2724
|
+
role: UserRole;
|
|
2725
|
+
reviewedAt: Date | null;
|
|
2726
|
+
}>, "many">;
|
|
2727
|
+
declinedBanner: z.ZodNullable<z.ZodObject<{
|
|
2728
|
+
disbursementStatus: z.ZodNativeEnum<typeof DisbursementStatus>;
|
|
2729
|
+
declinedByName: z.ZodString;
|
|
2730
|
+
declinedByRole: z.ZodNativeEnum<typeof UserRole>;
|
|
2731
|
+
declinedAt: z.ZodDate;
|
|
2732
|
+
}, "strip", z.ZodTypeAny, {
|
|
2733
|
+
disbursementStatus: DisbursementStatus;
|
|
2734
|
+
declinedByName: string;
|
|
2735
|
+
declinedByRole: UserRole;
|
|
2736
|
+
declinedAt: Date;
|
|
2737
|
+
}, {
|
|
2738
|
+
disbursementStatus: DisbursementStatus;
|
|
2739
|
+
declinedByName: string;
|
|
2740
|
+
declinedByRole: UserRole;
|
|
2741
|
+
declinedAt: Date;
|
|
2742
|
+
}>>;
|
|
2743
|
+
}, "strip", z.ZodTypeAny, {
|
|
2744
|
+
offeringName: string;
|
|
2745
|
+
issuerName: string;
|
|
2746
|
+
disbursementId: string;
|
|
2747
|
+
disbursementName: string;
|
|
2748
|
+
approvers: {
|
|
2749
|
+
status: DisbursementStatus;
|
|
2750
|
+
email: string;
|
|
2751
|
+
name: string;
|
|
2752
|
+
role: UserRole;
|
|
2753
|
+
reviewedAt: Date | null;
|
|
2754
|
+
}[];
|
|
2755
|
+
declinedBanner: {
|
|
2756
|
+
disbursementStatus: DisbursementStatus;
|
|
2757
|
+
declinedByName: string;
|
|
2758
|
+
declinedByRole: UserRole;
|
|
2759
|
+
declinedAt: Date;
|
|
2760
|
+
} | null;
|
|
2761
|
+
}, {
|
|
2762
|
+
offeringName: string;
|
|
2763
|
+
issuerName: string;
|
|
2764
|
+
disbursementId: string;
|
|
2765
|
+
disbursementName: string;
|
|
2766
|
+
approvers: {
|
|
2767
|
+
status: DisbursementStatus;
|
|
2768
|
+
email: string;
|
|
2769
|
+
name: string;
|
|
2770
|
+
role: UserRole;
|
|
2771
|
+
reviewedAt: Date | null;
|
|
2772
|
+
}[];
|
|
2773
|
+
declinedBanner: {
|
|
2774
|
+
disbursementStatus: DisbursementStatus;
|
|
2775
|
+
declinedByName: string;
|
|
2776
|
+
declinedByRole: UserRole;
|
|
2777
|
+
declinedAt: Date;
|
|
2778
|
+
} | null;
|
|
2779
|
+
}>;
|
|
2780
|
+
export type DisbursementApprovalsTabZod = z.infer<typeof DisbursementApprovalsTabZod>;
|
|
2589
2781
|
export declare const DisbursementDetailsTabHeaderZod: z.ZodObject<{
|
|
2590
2782
|
disbursementId: z.ZodEffects<z.ZodString, string, string>;
|
|
2591
2783
|
disbursementDate: z.ZodNullable<z.ZodDate>;
|
|
@@ -2745,8 +2937,8 @@ export declare const DisbursementDetailsTabGeneralInfoZod: z.ZodObject<{
|
|
|
2745
2937
|
company?: string | null | undefined;
|
|
2746
2938
|
} | null;
|
|
2747
2939
|
offeringId: string;
|
|
2748
|
-
issuerName: string;
|
|
2749
2940
|
offeringName: string;
|
|
2941
|
+
issuerName: string;
|
|
2750
2942
|
to?: any;
|
|
2751
2943
|
}, {
|
|
2752
2944
|
from: {
|
|
@@ -2778,8 +2970,8 @@ export declare const DisbursementDetailsTabGeneralInfoZod: z.ZodObject<{
|
|
|
2778
2970
|
company?: string | null | undefined;
|
|
2779
2971
|
} | null;
|
|
2780
2972
|
offeringId: string;
|
|
2781
|
-
issuerName: string;
|
|
2782
2973
|
offeringName: string;
|
|
2974
|
+
issuerName: string;
|
|
2783
2975
|
to?: any;
|
|
2784
2976
|
}>;
|
|
2785
2977
|
export type DisbursementDetailsTabGeneralInfoZod = z.infer<typeof DisbursementDetailsTabGeneralInfoZod>;
|
|
@@ -3072,8 +3264,8 @@ export declare const DisbursementDetailsTabZod: z.ZodObject<{
|
|
|
3072
3264
|
company?: string | null | undefined;
|
|
3073
3265
|
} | null;
|
|
3074
3266
|
offeringId: string;
|
|
3075
|
-
issuerName: string;
|
|
3076
3267
|
offeringName: string;
|
|
3268
|
+
issuerName: string;
|
|
3077
3269
|
to?: any;
|
|
3078
3270
|
}, {
|
|
3079
3271
|
from: {
|
|
@@ -3105,8 +3297,8 @@ export declare const DisbursementDetailsTabZod: z.ZodObject<{
|
|
|
3105
3297
|
company?: string | null | undefined;
|
|
3106
3298
|
} | null;
|
|
3107
3299
|
offeringId: string;
|
|
3108
|
-
issuerName: string;
|
|
3109
3300
|
offeringName: string;
|
|
3301
|
+
issuerName: string;
|
|
3110
3302
|
to?: any;
|
|
3111
3303
|
}>;
|
|
3112
3304
|
financials: z.ZodObject<{
|
|
@@ -3271,8 +3463,8 @@ export declare const DisbursementDetailsTabZod: z.ZodObject<{
|
|
|
3271
3463
|
company?: string | null | undefined;
|
|
3272
3464
|
} | null;
|
|
3273
3465
|
offeringId: string;
|
|
3274
|
-
issuerName: string;
|
|
3275
3466
|
offeringName: string;
|
|
3467
|
+
issuerName: string;
|
|
3276
3468
|
to?: any;
|
|
3277
3469
|
};
|
|
3278
3470
|
financials: {
|
|
@@ -3347,8 +3539,8 @@ export declare const DisbursementDetailsTabZod: z.ZodObject<{
|
|
|
3347
3539
|
company?: string | null | undefined;
|
|
3348
3540
|
} | null;
|
|
3349
3541
|
offeringId: string;
|
|
3350
|
-
issuerName: string;
|
|
3351
3542
|
offeringName: string;
|
|
3543
|
+
issuerName: string;
|
|
3352
3544
|
to?: any;
|
|
3353
3545
|
};
|
|
3354
3546
|
financials: {
|