@dalmore/api-contracts 0.0.0-dev.73ad209 → 0.0.0-dev.7560276
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 +8 -0
- package/common/helpers/index.js +15 -0
- package/common/helpers/index.js.map +1 -1
- 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 +4 -3
- 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/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/bonus-tier.types.d.ts +0 -30
- package/common/types/bonus-tier.types.js +1 -2
- package/common/types/bonus-tier.types.js.map +1 -1
- package/common/types/cap-table.types.d.ts +177 -53
- package/common/types/cap-table.types.js +31 -0
- package/common/types/cap-table.types.js.map +1 -1
- package/common/types/common.types.d.ts +357 -8
- package/common/types/common.types.js +73 -4
- package/common/types/common.types.js.map +1 -1
- 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/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 +956 -7
- package/common/types/disbursements.types.js +92 -2
- 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 +38 -11
- package/common/types/file.types.js +14 -0
- package/common/types/file.types.js.map +1 -1
- package/common/types/index.d.ts +4 -2
- package/common/types/index.js +4 -2
- package/common/types/index.js.map +1 -1
- package/common/types/individuals.types.d.ts +207 -5
- package/common/types/individuals.types.js +16 -16
- package/common/types/individuals.types.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/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 +5 -2
- package/common/types/invite.types.js +2 -1
- package/common/types/invite.types.js.map +1 -1
- package/common/types/issuer-offering.types.d.ts +361 -91
- package/common/types/issuer-offering.types.js +205 -75
- package/common/types/issuer-offering.types.js.map +1 -1
- package/common/types/job-item.types.d.ts +14 -14
- 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/note.types.d.ts +15 -15
- 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.d.ts +198 -0
- package/common/types/offering-submission.types.js +17 -4
- package/common/types/offering-submission.types.js.map +1 -1
- package/common/types/offering.types.d.ts +354 -70
- package/common/types/offering.types.js +277 -47
- 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/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/review.types.js +1 -1
- package/common/types/review.types.js.map +1 -1
- 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 +30 -22
- 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 +22 -14
- package/common/types/trade.types.js +20 -7
- package/common/types/trade.types.js.map +1 -1
- package/common/types/transaction.types.d.ts +24 -2
- package/common/types/transaction.types.js +26 -1
- package/common/types/transaction.types.js.map +1 -1
- package/common/types/user.types.d.ts +108 -82
- package/common/types/user.types.js +10 -23
- 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/assets/index.d.ts +0 -66
- package/contracts/clients/csv/index.d.ts +1800 -0
- package/contracts/clients/csv/index.js +96 -0
- package/contracts/clients/csv/index.js.map +1 -0
- 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 +3466 -1178
- package/contracts/clients/index.js +8 -2
- package/contracts/clients/index.js.map +1 -1
- package/contracts/clients/individuals/index.d.ts +5 -5
- package/contracts/clients/legal-entities/index.d.ts +1 -1
- package/contracts/clients/offerings/index.d.ts +91 -46
- 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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ComplianceReview, OfferingType, ManagedByType, SortOrder, SortBy, OfferingVersioningType, OfferingOnboardingStatus, AssetType, DurationType } from './common.types';
|
|
3
|
-
import {
|
|
4
|
-
import { AssetTemplateType, InterestType } from './asset.types';
|
|
2
|
+
import { ComplianceReview, OfferingType, ManagedByType, SortOrder, SortBy, OfferingVersioningType, OfferingOnboardingStatus, AssetType, DurationType, WarrantSharesCalculationMethod } from './common.types';
|
|
3
|
+
import { AssetTemplateType } from './asset.types';
|
|
5
4
|
export declare enum OfferingFeeType {
|
|
6
5
|
FIXED = "FIXED",
|
|
7
6
|
PERCENTAGE = "PERCENTAGE"
|
|
@@ -27,6 +26,14 @@ export declare const OfferingPlatformSettings: z.ZodObject<{
|
|
|
27
26
|
export type OfferingPlatformSettings = z.infer<typeof OfferingPlatformSettings>;
|
|
28
27
|
export declare const IOffering: any;
|
|
29
28
|
export type IOffering = z.infer<typeof IOffering>;
|
|
29
|
+
export declare const QueueSoldOutOfferingsCheckResponseSchema: z.ZodObject<{
|
|
30
|
+
message: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
message: string;
|
|
33
|
+
}, {
|
|
34
|
+
message: string;
|
|
35
|
+
}>;
|
|
36
|
+
export type QueueSoldOutOfferingsCheckResponse = z.infer<typeof QueueSoldOutOfferingsCheckResponseSchema>;
|
|
30
37
|
export declare const IPaginatedOffering: z.ZodObject<{
|
|
31
38
|
items: z.ZodArray<any, "many">;
|
|
32
39
|
meta: z.ZodObject<{
|
|
@@ -68,9 +75,11 @@ export declare const IPaginatedOffering: z.ZodObject<{
|
|
|
68
75
|
};
|
|
69
76
|
}>;
|
|
70
77
|
export type IPaginatedOffering = z.infer<typeof IPaginatedOffering>;
|
|
78
|
+
export declare const OfferingDescriptionZod: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>;
|
|
79
|
+
export type OfferingDescriptionZod = z.infer<typeof OfferingDescriptionZod>;
|
|
71
80
|
export declare const PatchOfferingBase: z.ZodObject<{
|
|
72
81
|
name: z.ZodOptional<z.ZodString>;
|
|
73
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
82
|
+
description: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>;
|
|
74
83
|
tid: z.ZodOptional<z.ZodString>;
|
|
75
84
|
type: z.ZodOptional<z.ZodNativeEnum<typeof OfferingType>>;
|
|
76
85
|
targetAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -113,6 +122,7 @@ export declare const PatchOfferingBase: z.ZodObject<{
|
|
|
113
122
|
cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
114
123
|
showTotalRaised: z.ZodOptional<z.ZodBoolean>;
|
|
115
124
|
issuerId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
125
|
+
shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
116
126
|
}, "strip", z.ZodTypeAny, {
|
|
117
127
|
platformSettings: string | null;
|
|
118
128
|
type?: OfferingType | undefined;
|
|
@@ -135,6 +145,7 @@ export declare const PatchOfferingBase: z.ZodObject<{
|
|
|
135
145
|
memorandumId?: string | null | undefined;
|
|
136
146
|
subscriptionAgreementId?: string | null | undefined;
|
|
137
147
|
showTotalRaised?: boolean | undefined;
|
|
148
|
+
shareClassId?: string | null | undefined;
|
|
138
149
|
entitySubscriptionAgreementTemplateId?: string | null | undefined;
|
|
139
150
|
subscriptionAgreementTemplateId?: string | null | undefined;
|
|
140
151
|
jointSubscriptionAgreementTemplateId?: string | null | undefined;
|
|
@@ -165,13 +176,14 @@ export declare const PatchOfferingBase: z.ZodObject<{
|
|
|
165
176
|
memorandumId?: string | null | undefined;
|
|
166
177
|
subscriptionAgreementId?: string | null | undefined;
|
|
167
178
|
showTotalRaised?: boolean | undefined;
|
|
179
|
+
shareClassId?: string | null | undefined;
|
|
168
180
|
entitySubscriptionAgreementTemplateId?: string | null | undefined;
|
|
169
181
|
subscriptionAgreementTemplateId?: string | null | undefined;
|
|
170
182
|
jointSubscriptionAgreementTemplateId?: string | null | undefined;
|
|
171
183
|
}>;
|
|
172
184
|
export declare const PatchOffering: z.ZodObject<{
|
|
173
185
|
name: z.ZodOptional<z.ZodString>;
|
|
174
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
186
|
+
description: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>;
|
|
175
187
|
tid: z.ZodOptional<z.ZodString>;
|
|
176
188
|
type: z.ZodOptional<z.ZodNativeEnum<typeof OfferingType>>;
|
|
177
189
|
targetAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -214,6 +226,7 @@ export declare const PatchOffering: z.ZodObject<{
|
|
|
214
226
|
cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
215
227
|
showTotalRaised: z.ZodOptional<z.ZodBoolean>;
|
|
216
228
|
issuerId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
229
|
+
shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
217
230
|
} & {
|
|
218
231
|
assetName: z.ZodOptional<z.ZodString>;
|
|
219
232
|
assetType: z.ZodOptional<z.ZodNativeEnum<typeof AssetType>>;
|
|
@@ -225,10 +238,7 @@ export declare const PatchOffering: z.ZodObject<{
|
|
|
225
238
|
template: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNativeEnum<typeof AssetTemplateType>>>>;
|
|
226
239
|
tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
227
240
|
enableBonus: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
-
principalAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
229
|
-
maxTotalRaise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
230
241
|
interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
231
|
-
interestType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>>;
|
|
232
242
|
bonusTiers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
233
243
|
type: z.ZodNativeEnum<typeof import("./bonus-tier.types").BonusType>;
|
|
234
244
|
value: z.ZodEffects<z.ZodNumber, number, number>;
|
|
@@ -265,6 +275,17 @@ export declare const PatchOffering: z.ZodObject<{
|
|
|
265
275
|
startAmount: number;
|
|
266
276
|
endAmount: number;
|
|
267
277
|
}>, "many">>;
|
|
278
|
+
hasEscrow: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
+
bankAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
280
|
+
escrowAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
281
|
+
escrowAgreementFileId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
282
|
+
warrantsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
totalShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
284
|
+
warrantTermYears: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
285
|
+
exercisePrice: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
286
|
+
warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
287
|
+
calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
|
|
288
|
+
incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
268
289
|
}, "strip", z.ZodTypeAny, {
|
|
269
290
|
platformSettings: string | null;
|
|
270
291
|
type?: OfferingType | undefined;
|
|
@@ -288,6 +309,18 @@ export declare const PatchOffering: z.ZodObject<{
|
|
|
288
309
|
memorandumId?: string | null | undefined;
|
|
289
310
|
subscriptionAgreementId?: string | null | undefined;
|
|
290
311
|
showTotalRaised?: boolean | undefined;
|
|
312
|
+
hasEscrow?: boolean | undefined;
|
|
313
|
+
escrowAgreementFileId?: string | null | undefined;
|
|
314
|
+
bankAccountId?: string | null | undefined;
|
|
315
|
+
escrowAccountId?: string | null | undefined;
|
|
316
|
+
warrantsEnabled?: boolean | undefined;
|
|
317
|
+
totalShares?: number | null | undefined;
|
|
318
|
+
warrantTermYears?: number | null | undefined;
|
|
319
|
+
exercisePrice?: number | null | undefined;
|
|
320
|
+
warrantPercentage?: number | null | undefined;
|
|
321
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
322
|
+
incrementThreshold?: number | null | undefined;
|
|
323
|
+
shareClassId?: string | null | undefined;
|
|
291
324
|
assetName?: string | undefined;
|
|
292
325
|
assetType?: AssetType | undefined;
|
|
293
326
|
pricePerUnit?: number | null | undefined;
|
|
@@ -297,10 +330,7 @@ export declare const PatchOffering: z.ZodObject<{
|
|
|
297
330
|
durationType?: DurationType | null | undefined;
|
|
298
331
|
tiers?: number[] | null | undefined;
|
|
299
332
|
enableBonus?: boolean | undefined;
|
|
300
|
-
principalAmount?: number | null | undefined;
|
|
301
|
-
maxTotalRaise?: number | null | undefined;
|
|
302
333
|
interestRate?: number | null | undefined;
|
|
303
|
-
interestType?: InterestType | null | undefined;
|
|
304
334
|
bonusTiers?: {
|
|
305
335
|
value: number;
|
|
306
336
|
type: import("./bonus-tier.types").BonusType;
|
|
@@ -338,6 +368,18 @@ export declare const PatchOffering: z.ZodObject<{
|
|
|
338
368
|
memorandumId?: string | null | undefined;
|
|
339
369
|
subscriptionAgreementId?: string | null | undefined;
|
|
340
370
|
showTotalRaised?: boolean | undefined;
|
|
371
|
+
hasEscrow?: boolean | undefined;
|
|
372
|
+
escrowAgreementFileId?: string | null | undefined;
|
|
373
|
+
bankAccountId?: string | null | undefined;
|
|
374
|
+
escrowAccountId?: string | null | undefined;
|
|
375
|
+
warrantsEnabled?: boolean | undefined;
|
|
376
|
+
totalShares?: number | null | undefined;
|
|
377
|
+
warrantTermYears?: number | null | undefined;
|
|
378
|
+
exercisePrice?: number | null | undefined;
|
|
379
|
+
warrantPercentage?: number | null | undefined;
|
|
380
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
381
|
+
incrementThreshold?: number | null | undefined;
|
|
382
|
+
shareClassId?: string | null | undefined;
|
|
341
383
|
assetName?: string | undefined;
|
|
342
384
|
assetType?: AssetType | undefined;
|
|
343
385
|
pricePerUnit?: number | null | undefined;
|
|
@@ -347,10 +389,7 @@ export declare const PatchOffering: z.ZodObject<{
|
|
|
347
389
|
durationType?: DurationType | null | undefined;
|
|
348
390
|
tiers?: number[] | null | undefined;
|
|
349
391
|
enableBonus?: boolean | undefined;
|
|
350
|
-
principalAmount?: number | null | undefined;
|
|
351
|
-
maxTotalRaise?: number | null | undefined;
|
|
352
392
|
interestRate?: number | null | undefined;
|
|
353
|
-
interestType?: InterestType | null | undefined;
|
|
354
393
|
bonusTiers?: {
|
|
355
394
|
value: number;
|
|
356
395
|
type: import("./bonus-tier.types").BonusType;
|
|
@@ -362,9 +401,51 @@ export declare const PatchOffering: z.ZodObject<{
|
|
|
362
401
|
jointSubscriptionAgreementTemplateId?: string | null | undefined;
|
|
363
402
|
}>;
|
|
364
403
|
export type PatchOffering = z.infer<typeof PatchOffering>;
|
|
404
|
+
/**
|
|
405
|
+
* Optional params for resolveAndValidateOfferingUpdateFields.
|
|
406
|
+
* All fields are optional and nullable; resolution merges with offering/asset values.
|
|
407
|
+
*/
|
|
408
|
+
export declare const ResolveOfferingUpdateFieldsParamsZod: z.ZodObject<{
|
|
409
|
+
minInvestment: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
410
|
+
maxInvestment: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
411
|
+
targetAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
412
|
+
pricePerUnit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
targetAmount?: number | null | undefined;
|
|
415
|
+
minInvestment?: number | null | undefined;
|
|
416
|
+
maxInvestment?: number | null | undefined;
|
|
417
|
+
pricePerUnit?: number | null | undefined;
|
|
418
|
+
}, {
|
|
419
|
+
targetAmount?: number | null | undefined;
|
|
420
|
+
minInvestment?: number | null | undefined;
|
|
421
|
+
maxInvestment?: number | null | undefined;
|
|
422
|
+
pricePerUnit?: number | null | undefined;
|
|
423
|
+
}>;
|
|
424
|
+
export type ResolveOfferingUpdateFieldsParams = z.infer<typeof ResolveOfferingUpdateFieldsParamsZod>;
|
|
425
|
+
/**
|
|
426
|
+
* Resolved, validated offering update fields (price per unit, target amount, min/max investment).
|
|
427
|
+
* Returned by resolveAndValidateOfferingUpdateFields and passed into validateBonusTiersForUpdate.
|
|
428
|
+
*/
|
|
429
|
+
export declare const ResolvedOfferingUpdateFieldsZod: z.ZodObject<{
|
|
430
|
+
pricePerUnit: z.ZodNumber;
|
|
431
|
+
targetAmount: z.ZodNumber;
|
|
432
|
+
minInvestment: z.ZodNullable<z.ZodNumber>;
|
|
433
|
+
maxInvestment: z.ZodNullable<z.ZodNumber>;
|
|
434
|
+
}, "strip", z.ZodTypeAny, {
|
|
435
|
+
targetAmount: number;
|
|
436
|
+
minInvestment: number | null;
|
|
437
|
+
maxInvestment: number | null;
|
|
438
|
+
pricePerUnit: number;
|
|
439
|
+
}, {
|
|
440
|
+
targetAmount: number;
|
|
441
|
+
minInvestment: number | null;
|
|
442
|
+
maxInvestment: number | null;
|
|
443
|
+
pricePerUnit: number;
|
|
444
|
+
}>;
|
|
445
|
+
export type ResolvedOfferingUpdateFields = z.infer<typeof ResolvedOfferingUpdateFieldsZod>;
|
|
365
446
|
export declare const PostComplianceOffering: z.ZodEffects<z.ZodObject<{
|
|
366
447
|
name: z.ZodOptional<z.ZodString>;
|
|
367
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
448
|
+
description: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>;
|
|
368
449
|
tid: z.ZodOptional<z.ZodString>;
|
|
369
450
|
type: z.ZodOptional<z.ZodNativeEnum<typeof OfferingType>>;
|
|
370
451
|
targetAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -404,11 +485,11 @@ export declare const PostComplianceOffering: z.ZodEffects<z.ZodObject<{
|
|
|
404
485
|
subscriptionAgreementId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
405
486
|
jointSubscriptionAgreementTemplateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
406
487
|
cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
407
|
-
showTotalRaised: z.ZodOptional<z.ZodBoolean>;
|
|
408
488
|
issuerId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
409
489
|
} & {
|
|
410
490
|
accountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
411
491
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
492
|
+
shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
412
493
|
assetName: z.ZodString;
|
|
413
494
|
assetType: z.ZodNativeEnum<typeof AssetType>;
|
|
414
495
|
pricePerUnit: z.ZodNullable<z.ZodNumber>;
|
|
@@ -420,13 +501,9 @@ export declare const PostComplianceOffering: z.ZodEffects<z.ZodObject<{
|
|
|
420
501
|
tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
421
502
|
enableBonus: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
422
503
|
hasEscrow: z.ZodOptional<z.ZodBoolean>;
|
|
423
|
-
escrowAgreementFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
504
|
bankAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
425
505
|
escrowAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
426
|
-
principalAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
427
|
-
maxTotalRaise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
428
506
|
interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
429
|
-
interestType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>>;
|
|
430
507
|
bonusTiers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
431
508
|
type: z.ZodNativeEnum<typeof import("./bonus-tier.types").BonusType>;
|
|
432
509
|
value: z.ZodEffects<z.ZodNumber, number, number>;
|
|
@@ -463,10 +540,19 @@ export declare const PostComplianceOffering: z.ZodEffects<z.ZodObject<{
|
|
|
463
540
|
startAmount: number;
|
|
464
541
|
endAmount: number;
|
|
465
542
|
}>, "many">>;
|
|
543
|
+
warrantsEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
544
|
+
totalShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
545
|
+
warrantTermYears: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
546
|
+
exercisePrice: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
547
|
+
warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
548
|
+
calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
|
|
549
|
+
incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
550
|
+
showTotalRaised: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
466
551
|
}, "strip", z.ZodTypeAny, {
|
|
467
552
|
accountId: string;
|
|
468
553
|
template: AssetTemplateType;
|
|
469
554
|
platformSettings: string | null;
|
|
555
|
+
warrantsEnabled: boolean;
|
|
470
556
|
assetName: string;
|
|
471
557
|
assetType: AssetType;
|
|
472
558
|
pricePerUnit: number | null;
|
|
@@ -492,18 +578,21 @@ export declare const PostComplianceOffering: z.ZodEffects<z.ZodObject<{
|
|
|
492
578
|
subscriptionAgreementId?: string | null | undefined;
|
|
493
579
|
showTotalRaised?: boolean | undefined;
|
|
494
580
|
hasEscrow?: boolean | undefined;
|
|
495
|
-
escrowAgreementFileId?: string | null | undefined;
|
|
496
581
|
bankAccountId?: string | null | undefined;
|
|
497
582
|
escrowAccountId?: string | null | undefined;
|
|
583
|
+
totalShares?: number | null | undefined;
|
|
584
|
+
warrantTermYears?: number | null | undefined;
|
|
585
|
+
exercisePrice?: number | null | undefined;
|
|
586
|
+
warrantPercentage?: number | null | undefined;
|
|
587
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
588
|
+
incrementThreshold?: number | null | undefined;
|
|
589
|
+
shareClassId?: string | null | undefined;
|
|
498
590
|
yield?: number | null | undefined;
|
|
499
591
|
duration?: number | null | undefined;
|
|
500
592
|
durationType?: DurationType | null | undefined;
|
|
501
593
|
tiers?: number[] | null | undefined;
|
|
502
594
|
enableBonus?: boolean | undefined;
|
|
503
|
-
principalAmount?: number | null | undefined;
|
|
504
|
-
maxTotalRaise?: number | null | undefined;
|
|
505
595
|
interestRate?: number | null | undefined;
|
|
506
|
-
interestType?: InterestType | null | undefined;
|
|
507
596
|
bonusTiers?: {
|
|
508
597
|
value: number;
|
|
509
598
|
type: import("./bonus-tier.types").BonusType;
|
|
@@ -547,18 +636,22 @@ export declare const PostComplianceOffering: z.ZodEffects<z.ZodObject<{
|
|
|
547
636
|
subscriptionAgreementId?: string | null | undefined;
|
|
548
637
|
showTotalRaised?: boolean | undefined;
|
|
549
638
|
hasEscrow?: boolean | undefined;
|
|
550
|
-
escrowAgreementFileId?: string | null | undefined;
|
|
551
639
|
bankAccountId?: string | null | undefined;
|
|
552
640
|
escrowAccountId?: string | null | undefined;
|
|
641
|
+
warrantsEnabled?: boolean | undefined;
|
|
642
|
+
totalShares?: number | null | undefined;
|
|
643
|
+
warrantTermYears?: number | null | undefined;
|
|
644
|
+
exercisePrice?: number | null | undefined;
|
|
645
|
+
warrantPercentage?: number | null | undefined;
|
|
646
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
647
|
+
incrementThreshold?: number | null | undefined;
|
|
648
|
+
shareClassId?: string | null | undefined;
|
|
553
649
|
yield?: number | null | undefined;
|
|
554
650
|
duration?: number | null | undefined;
|
|
555
651
|
durationType?: DurationType | null | undefined;
|
|
556
652
|
tiers?: number[] | null | undefined;
|
|
557
653
|
enableBonus?: boolean | undefined;
|
|
558
|
-
principalAmount?: number | null | undefined;
|
|
559
|
-
maxTotalRaise?: number | null | undefined;
|
|
560
654
|
interestRate?: number | null | undefined;
|
|
561
|
-
interestType?: InterestType | null | undefined;
|
|
562
655
|
bonusTiers?: {
|
|
563
656
|
value: number;
|
|
564
657
|
type: import("./bonus-tier.types").BonusType;
|
|
@@ -572,6 +665,7 @@ export declare const PostComplianceOffering: z.ZodEffects<z.ZodObject<{
|
|
|
572
665
|
accountId: string;
|
|
573
666
|
template: AssetTemplateType;
|
|
574
667
|
platformSettings: string | null;
|
|
668
|
+
warrantsEnabled: boolean;
|
|
575
669
|
assetName: string;
|
|
576
670
|
assetType: AssetType;
|
|
577
671
|
pricePerUnit: number | null;
|
|
@@ -597,18 +691,21 @@ export declare const PostComplianceOffering: z.ZodEffects<z.ZodObject<{
|
|
|
597
691
|
subscriptionAgreementId?: string | null | undefined;
|
|
598
692
|
showTotalRaised?: boolean | undefined;
|
|
599
693
|
hasEscrow?: boolean | undefined;
|
|
600
|
-
escrowAgreementFileId?: string | null | undefined;
|
|
601
694
|
bankAccountId?: string | null | undefined;
|
|
602
695
|
escrowAccountId?: string | null | undefined;
|
|
696
|
+
totalShares?: number | null | undefined;
|
|
697
|
+
warrantTermYears?: number | null | undefined;
|
|
698
|
+
exercisePrice?: number | null | undefined;
|
|
699
|
+
warrantPercentage?: number | null | undefined;
|
|
700
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
701
|
+
incrementThreshold?: number | null | undefined;
|
|
702
|
+
shareClassId?: string | null | undefined;
|
|
603
703
|
yield?: number | null | undefined;
|
|
604
704
|
duration?: number | null | undefined;
|
|
605
705
|
durationType?: DurationType | null | undefined;
|
|
606
706
|
tiers?: number[] | null | undefined;
|
|
607
707
|
enableBonus?: boolean | undefined;
|
|
608
|
-
principalAmount?: number | null | undefined;
|
|
609
|
-
maxTotalRaise?: number | null | undefined;
|
|
610
708
|
interestRate?: number | null | undefined;
|
|
611
|
-
interestType?: InterestType | null | undefined;
|
|
612
709
|
bonusTiers?: {
|
|
613
710
|
value: number;
|
|
614
711
|
type: import("./bonus-tier.types").BonusType;
|
|
@@ -652,18 +749,22 @@ export declare const PostComplianceOffering: z.ZodEffects<z.ZodObject<{
|
|
|
652
749
|
subscriptionAgreementId?: string | null | undefined;
|
|
653
750
|
showTotalRaised?: boolean | undefined;
|
|
654
751
|
hasEscrow?: boolean | undefined;
|
|
655
|
-
escrowAgreementFileId?: string | null | undefined;
|
|
656
752
|
bankAccountId?: string | null | undefined;
|
|
657
753
|
escrowAccountId?: string | null | undefined;
|
|
754
|
+
warrantsEnabled?: boolean | undefined;
|
|
755
|
+
totalShares?: number | null | undefined;
|
|
756
|
+
warrantTermYears?: number | null | undefined;
|
|
757
|
+
exercisePrice?: number | null | undefined;
|
|
758
|
+
warrantPercentage?: number | null | undefined;
|
|
759
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
760
|
+
incrementThreshold?: number | null | undefined;
|
|
761
|
+
shareClassId?: string | null | undefined;
|
|
658
762
|
yield?: number | null | undefined;
|
|
659
763
|
duration?: number | null | undefined;
|
|
660
764
|
durationType?: DurationType | null | undefined;
|
|
661
765
|
tiers?: number[] | null | undefined;
|
|
662
766
|
enableBonus?: boolean | undefined;
|
|
663
|
-
principalAmount?: number | null | undefined;
|
|
664
|
-
maxTotalRaise?: number | null | undefined;
|
|
665
767
|
interestRate?: number | null | undefined;
|
|
666
|
-
interestType?: InterestType | null | undefined;
|
|
667
768
|
bonusTiers?: {
|
|
668
769
|
value: number;
|
|
669
770
|
type: import("./bonus-tier.types").BonusType;
|
|
@@ -675,7 +776,7 @@ export declare const PostComplianceOffering: z.ZodEffects<z.ZodObject<{
|
|
|
675
776
|
jointSubscriptionAgreementTemplateId?: string | null | undefined;
|
|
676
777
|
}>;
|
|
677
778
|
export type PostComplianceOffering = z.infer<typeof PostComplianceOffering>;
|
|
678
|
-
export declare const offeringsInclude: z.ZodEnum<["account", "issuer", "trades", "assets", "disbursements", "draftVersion", "publishedVersion", "revisions", "onboardingReviewedBy"]>;
|
|
779
|
+
export declare const offeringsInclude: z.ZodEnum<["account", "issuer", "trades", "assets", "disbursements", "draftVersion", "publishedVersion", "revisions", "onboardingReviewedBy", "bankAccount", "escrowAccount", "shareClass"]>;
|
|
679
780
|
/**
|
|
680
781
|
* @description Query parameters for including related entities
|
|
681
782
|
* @xample in contract us as -> query: z.object({}).merge(UsersIncludeQuery),
|
|
@@ -690,23 +791,27 @@ export declare const OfferingsIncludeQuery: z.ZodObject<{
|
|
|
690
791
|
export interface OfferingsIncludeQuery extends z.infer<typeof OfferingsIncludeQuery> {
|
|
691
792
|
}
|
|
692
793
|
/**
|
|
693
|
-
*
|
|
694
|
-
* Filters for querying offerings.
|
|
794
|
+
* Filters supported for querying offerings.
|
|
695
795
|
*
|
|
696
|
-
*
|
|
697
|
-
* -
|
|
698
|
-
* -
|
|
699
|
-
* -
|
|
796
|
+
* Available fields:
|
|
797
|
+
* - `issuerName`: (string, optional) Filter by name of the issuer.
|
|
798
|
+
* - `name`: (string, optional) Filter by offering name.
|
|
799
|
+
* - `accountId`: (AccountId, optional) Filter by tenant/account ID.
|
|
800
|
+
* - `issuerId`: (IssuerId, optional) Filter by issuer ID.
|
|
801
|
+
* - `type`: (OfferingType, optional) Filter by offering type.
|
|
802
|
+
* - `status`: (ComplianceReview, optional) Filter by compliance review status.
|
|
803
|
+
* - `enabled`: (boolean, optional) Filter for enabled/active offerings.
|
|
804
|
+
* - `managedBy`: (ManagedByType, optional) Filter by which system or user manages the offering.
|
|
805
|
+
* - `versioningType`: (OfferingVersioningType, optional) Filter by versioning strategy.
|
|
806
|
+
* - `onboardingStatus`: (OfferingOnboardingStatus, optional) Filter by issuer onboarding status.
|
|
700
807
|
*
|
|
701
|
-
*
|
|
702
|
-
*
|
|
703
|
-
* 2. Else if complianceReview is not "APPROVED" → combinedStatus = "IN_COMPLIANCE_REVIEW"
|
|
704
|
-
* 3. Else if onboardingStatus is "COMPLETE" and complianceReview is "APPROVED" →
|
|
705
|
-
* - If enabled is true → combinedStatus = "ACTIVE"
|
|
706
|
-
* - If enabled is false → combinedStatus = "PAUSED"
|
|
808
|
+
* @remarks
|
|
809
|
+
* These filters can be combined to query offerings across multiple dimensions.
|
|
707
810
|
*
|
|
708
|
-
*
|
|
709
|
-
*
|
|
811
|
+
* Example use:
|
|
812
|
+
* ```ts
|
|
813
|
+
* { issuerName: "ABC Capital", type: OfferingType.REG_A }
|
|
814
|
+
* ```
|
|
710
815
|
*/
|
|
711
816
|
export declare const OfferingFiltersZod: z.ZodObject<{
|
|
712
817
|
issuerName: z.ZodOptional<z.ZodString>;
|
|
@@ -718,32 +823,32 @@ export declare const OfferingFiltersZod: z.ZodObject<{
|
|
|
718
823
|
enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
719
824
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
720
825
|
versioningType: z.ZodOptional<z.ZodNativeEnum<typeof OfferingVersioningType>>;
|
|
721
|
-
combinedStatus: z.ZodOptional<z.ZodNativeEnum<typeof OfferingStatus>>;
|
|
722
826
|
onboardingStatus: z.ZodOptional<z.ZodNativeEnum<typeof OfferingOnboardingStatus>>;
|
|
827
|
+
complianceReview: z.ZodOptional<z.ZodNativeEnum<typeof ComplianceReview>>;
|
|
723
828
|
}, "strip", z.ZodTypeAny, {
|
|
724
829
|
type?: OfferingType | undefined;
|
|
725
830
|
status?: ComplianceReview | undefined;
|
|
726
831
|
accountId?: string | undefined;
|
|
727
832
|
name?: string | undefined;
|
|
728
833
|
managedBy?: ManagedByType | undefined;
|
|
834
|
+
complianceReview?: ComplianceReview | undefined;
|
|
729
835
|
onboardingStatus?: OfferingOnboardingStatus | undefined;
|
|
730
836
|
enabled?: boolean | undefined;
|
|
731
837
|
issuerId?: string | undefined;
|
|
732
838
|
issuerName?: string | undefined;
|
|
733
839
|
versioningType?: OfferingVersioningType | undefined;
|
|
734
|
-
combinedStatus?: OfferingStatus | undefined;
|
|
735
840
|
}, {
|
|
736
841
|
type?: OfferingType | undefined;
|
|
737
842
|
status?: ComplianceReview | undefined;
|
|
738
843
|
accountId?: string | undefined;
|
|
739
844
|
name?: string | undefined;
|
|
740
845
|
managedBy?: ManagedByType | undefined;
|
|
846
|
+
complianceReview?: ComplianceReview | undefined;
|
|
741
847
|
onboardingStatus?: OfferingOnboardingStatus | undefined;
|
|
742
848
|
enabled?: unknown;
|
|
743
849
|
issuerId?: string | undefined;
|
|
744
850
|
issuerName?: string | undefined;
|
|
745
851
|
versioningType?: OfferingVersioningType | undefined;
|
|
746
|
-
combinedStatus?: OfferingStatus | undefined;
|
|
747
852
|
}>;
|
|
748
853
|
export type OfferingFiltersZod = z.infer<typeof OfferingFiltersZod>;
|
|
749
854
|
export declare const OfferingSortZod: z.ZodObject<{
|
|
@@ -1170,7 +1275,7 @@ export declare const OfferingSettings: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.
|
|
|
1170
1275
|
export type OfferingSettings = z.infer<typeof OfferingSettings>;
|
|
1171
1276
|
export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
1172
1277
|
name: z.ZodOptional<z.ZodString>;
|
|
1173
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1278
|
+
description: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>;
|
|
1174
1279
|
tid: z.ZodOptional<z.ZodString>;
|
|
1175
1280
|
type: z.ZodOptional<z.ZodNativeEnum<typeof OfferingType>>;
|
|
1176
1281
|
targetAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1213,6 +1318,7 @@ export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.Z
|
|
|
1213
1318
|
cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1214
1319
|
showTotalRaised: z.ZodOptional<z.ZodBoolean>;
|
|
1215
1320
|
issuerId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1321
|
+
shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
1216
1322
|
} & {
|
|
1217
1323
|
assetName: z.ZodOptional<z.ZodString>;
|
|
1218
1324
|
assetType: z.ZodOptional<z.ZodNativeEnum<typeof AssetType>>;
|
|
@@ -1224,10 +1330,7 @@ export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.Z
|
|
|
1224
1330
|
template: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNativeEnum<typeof AssetTemplateType>>>>;
|
|
1225
1331
|
tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
1226
1332
|
enableBonus: z.ZodOptional<z.ZodBoolean>;
|
|
1227
|
-
principalAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1228
|
-
maxTotalRaise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1229
1333
|
interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1230
|
-
interestType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>>;
|
|
1231
1334
|
bonusTiers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1232
1335
|
type: z.ZodNativeEnum<typeof import("./bonus-tier.types").BonusType>;
|
|
1233
1336
|
value: z.ZodEffects<z.ZodNumber, number, number>;
|
|
@@ -1264,6 +1367,17 @@ export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.Z
|
|
|
1264
1367
|
startAmount: number;
|
|
1265
1368
|
endAmount: number;
|
|
1266
1369
|
}>, "many">>;
|
|
1370
|
+
hasEscrow: z.ZodOptional<z.ZodBoolean>;
|
|
1371
|
+
bankAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
1372
|
+
escrowAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
1373
|
+
escrowAgreementFileId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
1374
|
+
warrantsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1375
|
+
totalShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1376
|
+
warrantTermYears: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1377
|
+
exercisePrice: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1378
|
+
warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1379
|
+
calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
|
|
1380
|
+
incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1267
1381
|
}, "strip", z.ZodTypeAny, {
|
|
1268
1382
|
platformSettings: string | null;
|
|
1269
1383
|
type?: OfferingType | undefined;
|
|
@@ -1287,6 +1401,18 @@ export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.Z
|
|
|
1287
1401
|
memorandumId?: string | null | undefined;
|
|
1288
1402
|
subscriptionAgreementId?: string | null | undefined;
|
|
1289
1403
|
showTotalRaised?: boolean | undefined;
|
|
1404
|
+
hasEscrow?: boolean | undefined;
|
|
1405
|
+
escrowAgreementFileId?: string | null | undefined;
|
|
1406
|
+
bankAccountId?: string | null | undefined;
|
|
1407
|
+
escrowAccountId?: string | null | undefined;
|
|
1408
|
+
warrantsEnabled?: boolean | undefined;
|
|
1409
|
+
totalShares?: number | null | undefined;
|
|
1410
|
+
warrantTermYears?: number | null | undefined;
|
|
1411
|
+
exercisePrice?: number | null | undefined;
|
|
1412
|
+
warrantPercentage?: number | null | undefined;
|
|
1413
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1414
|
+
incrementThreshold?: number | null | undefined;
|
|
1415
|
+
shareClassId?: string | null | undefined;
|
|
1290
1416
|
assetName?: string | undefined;
|
|
1291
1417
|
assetType?: AssetType | undefined;
|
|
1292
1418
|
pricePerUnit?: number | null | undefined;
|
|
@@ -1296,10 +1422,7 @@ export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.Z
|
|
|
1296
1422
|
durationType?: DurationType | null | undefined;
|
|
1297
1423
|
tiers?: number[] | null | undefined;
|
|
1298
1424
|
enableBonus?: boolean | undefined;
|
|
1299
|
-
principalAmount?: number | null | undefined;
|
|
1300
|
-
maxTotalRaise?: number | null | undefined;
|
|
1301
1425
|
interestRate?: number | null | undefined;
|
|
1302
|
-
interestType?: InterestType | null | undefined;
|
|
1303
1426
|
bonusTiers?: {
|
|
1304
1427
|
value: number;
|
|
1305
1428
|
type: import("./bonus-tier.types").BonusType;
|
|
@@ -1337,6 +1460,18 @@ export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.Z
|
|
|
1337
1460
|
memorandumId?: string | null | undefined;
|
|
1338
1461
|
subscriptionAgreementId?: string | null | undefined;
|
|
1339
1462
|
showTotalRaised?: boolean | undefined;
|
|
1463
|
+
hasEscrow?: boolean | undefined;
|
|
1464
|
+
escrowAgreementFileId?: string | null | undefined;
|
|
1465
|
+
bankAccountId?: string | null | undefined;
|
|
1466
|
+
escrowAccountId?: string | null | undefined;
|
|
1467
|
+
warrantsEnabled?: boolean | undefined;
|
|
1468
|
+
totalShares?: number | null | undefined;
|
|
1469
|
+
warrantTermYears?: number | null | undefined;
|
|
1470
|
+
exercisePrice?: number | null | undefined;
|
|
1471
|
+
warrantPercentage?: number | null | undefined;
|
|
1472
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1473
|
+
incrementThreshold?: number | null | undefined;
|
|
1474
|
+
shareClassId?: string | null | undefined;
|
|
1340
1475
|
assetName?: string | undefined;
|
|
1341
1476
|
assetType?: AssetType | undefined;
|
|
1342
1477
|
pricePerUnit?: number | null | undefined;
|
|
@@ -1346,10 +1481,7 @@ export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.Z
|
|
|
1346
1481
|
durationType?: DurationType | null | undefined;
|
|
1347
1482
|
tiers?: number[] | null | undefined;
|
|
1348
1483
|
enableBonus?: boolean | undefined;
|
|
1349
|
-
principalAmount?: number | null | undefined;
|
|
1350
|
-
maxTotalRaise?: number | null | undefined;
|
|
1351
1484
|
interestRate?: number | null | undefined;
|
|
1352
|
-
interestType?: InterestType | null | undefined;
|
|
1353
1485
|
bonusTiers?: {
|
|
1354
1486
|
value: number;
|
|
1355
1487
|
type: import("./bonus-tier.types").BonusType;
|
|
@@ -1613,6 +1745,18 @@ export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.Z
|
|
|
1613
1745
|
memorandumId?: string | null | undefined;
|
|
1614
1746
|
subscriptionAgreementId?: string | null | undefined;
|
|
1615
1747
|
showTotalRaised?: boolean | undefined;
|
|
1748
|
+
hasEscrow?: boolean | undefined;
|
|
1749
|
+
escrowAgreementFileId?: string | null | undefined;
|
|
1750
|
+
bankAccountId?: string | null | undefined;
|
|
1751
|
+
escrowAccountId?: string | null | undefined;
|
|
1752
|
+
warrantsEnabled?: boolean | undefined;
|
|
1753
|
+
totalShares?: number | null | undefined;
|
|
1754
|
+
warrantTermYears?: number | null | undefined;
|
|
1755
|
+
exercisePrice?: number | null | undefined;
|
|
1756
|
+
warrantPercentage?: number | null | undefined;
|
|
1757
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1758
|
+
incrementThreshold?: number | null | undefined;
|
|
1759
|
+
shareClassId?: string | null | undefined;
|
|
1616
1760
|
assetName?: string | undefined;
|
|
1617
1761
|
assetType?: AssetType | undefined;
|
|
1618
1762
|
pricePerUnit?: number | null | undefined;
|
|
@@ -1622,10 +1766,7 @@ export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.Z
|
|
|
1622
1766
|
durationType?: DurationType | null | undefined;
|
|
1623
1767
|
tiers?: number[] | null | undefined;
|
|
1624
1768
|
enableBonus?: boolean | undefined;
|
|
1625
|
-
principalAmount?: number | null | undefined;
|
|
1626
|
-
maxTotalRaise?: number | null | undefined;
|
|
1627
1769
|
interestRate?: number | null | undefined;
|
|
1628
|
-
interestType?: InterestType | null | undefined;
|
|
1629
1770
|
bonusTiers?: {
|
|
1630
1771
|
value: number;
|
|
1631
1772
|
type: import("./bonus-tier.types").BonusType;
|
|
@@ -1674,6 +1815,18 @@ export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.Z
|
|
|
1674
1815
|
memorandumId?: string | null | undefined;
|
|
1675
1816
|
subscriptionAgreementId?: string | null | undefined;
|
|
1676
1817
|
showTotalRaised?: boolean | undefined;
|
|
1818
|
+
hasEscrow?: boolean | undefined;
|
|
1819
|
+
escrowAgreementFileId?: string | null | undefined;
|
|
1820
|
+
bankAccountId?: string | null | undefined;
|
|
1821
|
+
escrowAccountId?: string | null | undefined;
|
|
1822
|
+
warrantsEnabled?: boolean | undefined;
|
|
1823
|
+
totalShares?: number | null | undefined;
|
|
1824
|
+
warrantTermYears?: number | null | undefined;
|
|
1825
|
+
exercisePrice?: number | null | undefined;
|
|
1826
|
+
warrantPercentage?: number | null | undefined;
|
|
1827
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1828
|
+
incrementThreshold?: number | null | undefined;
|
|
1829
|
+
shareClassId?: string | null | undefined;
|
|
1677
1830
|
assetName?: string | undefined;
|
|
1678
1831
|
assetType?: AssetType | undefined;
|
|
1679
1832
|
pricePerUnit?: number | null | undefined;
|
|
@@ -1683,10 +1836,7 @@ export declare const PatchComplianceOffering: z.ZodEffects<z.ZodIntersection<z.Z
|
|
|
1683
1836
|
durationType?: DurationType | null | undefined;
|
|
1684
1837
|
tiers?: number[] | null | undefined;
|
|
1685
1838
|
enableBonus?: boolean | undefined;
|
|
1686
|
-
principalAmount?: number | null | undefined;
|
|
1687
|
-
maxTotalRaise?: number | null | undefined;
|
|
1688
1839
|
interestRate?: number | null | undefined;
|
|
1689
|
-
interestType?: InterestType | null | undefined;
|
|
1690
1840
|
bonusTiers?: {
|
|
1691
1841
|
value: number;
|
|
1692
1842
|
type: import("./bonus-tier.types").BonusType;
|
|
@@ -2430,6 +2580,7 @@ export type OfferingUpdateFields = {
|
|
|
2430
2580
|
managedBy?: ManagedByType | null;
|
|
2431
2581
|
showTotalRaised?: boolean;
|
|
2432
2582
|
enabled?: boolean;
|
|
2583
|
+
shareClassId?: string | null;
|
|
2433
2584
|
};
|
|
2434
2585
|
export declare const ReviewOfferingOnboarding: z.ZodObject<{
|
|
2435
2586
|
onboardingStatus: z.ZodNativeEnum<typeof OfferingOnboardingStatus>;
|
|
@@ -2573,3 +2724,136 @@ export declare const IPaginatedOnboardingOfferingSummaryResponse: z.ZodObject<{
|
|
|
2573
2724
|
};
|
|
2574
2725
|
}>;
|
|
2575
2726
|
export type IPaginatedOnboardingOfferingSummaryResponse = z.infer<typeof IPaginatedOnboardingOfferingSummaryResponse>;
|
|
2727
|
+
/**
|
|
2728
|
+
* Maps asset types to fields that should be reset (nullified) when converting
|
|
2729
|
+
* from one asset type to another. This ensures incompatible fields from the
|
|
2730
|
+
* previous type are cleared when the asset type changes.
|
|
2731
|
+
*/
|
|
2732
|
+
export declare const ESCROW_ENABLED_OFFERING_FIELD_RESETS: Partial<IOffering>;
|
|
2733
|
+
/**
|
|
2734
|
+
* Schema for escrow validation data input
|
|
2735
|
+
*/
|
|
2736
|
+
export declare const EscrowValidationDataZod: z.ZodObject<{
|
|
2737
|
+
hasEscrow: z.ZodOptional<z.ZodBoolean>;
|
|
2738
|
+
bankAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2739
|
+
escrowAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2740
|
+
escrowAgreementFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2741
|
+
}, "strip", z.ZodTypeAny, {
|
|
2742
|
+
hasEscrow?: boolean | undefined;
|
|
2743
|
+
escrowAgreementFileId?: string | null | undefined;
|
|
2744
|
+
bankAccountId?: string | null | undefined;
|
|
2745
|
+
escrowAccountId?: string | null | undefined;
|
|
2746
|
+
}, {
|
|
2747
|
+
hasEscrow?: boolean | undefined;
|
|
2748
|
+
escrowAgreementFileId?: string | null | undefined;
|
|
2749
|
+
bankAccountId?: string | null | undefined;
|
|
2750
|
+
escrowAccountId?: string | null | undefined;
|
|
2751
|
+
}>;
|
|
2752
|
+
export type EscrowValidationData = z.infer<typeof EscrowValidationDataZod>;
|
|
2753
|
+
/**
|
|
2754
|
+
* Schema for escrow validation context
|
|
2755
|
+
*/
|
|
2756
|
+
export declare const EscrowValidationContextZod: z.ZodObject<{
|
|
2757
|
+
accountId: z.ZodString;
|
|
2758
|
+
issuerId: z.ZodString;
|
|
2759
|
+
offeringId: z.ZodString;
|
|
2760
|
+
currentBankAccountId: z.ZodNullable<z.ZodString>;
|
|
2761
|
+
currentEscrowAccountId: z.ZodNullable<z.ZodString>;
|
|
2762
|
+
currentEscrowAgreementFileId: z.ZodNullable<z.ZodString>;
|
|
2763
|
+
}, "strip", z.ZodTypeAny, {
|
|
2764
|
+
accountId: string;
|
|
2765
|
+
offeringId: string;
|
|
2766
|
+
issuerId: string;
|
|
2767
|
+
currentBankAccountId: string | null;
|
|
2768
|
+
currentEscrowAccountId: string | null;
|
|
2769
|
+
currentEscrowAgreementFileId: string | null;
|
|
2770
|
+
}, {
|
|
2771
|
+
accountId: string;
|
|
2772
|
+
offeringId: string;
|
|
2773
|
+
issuerId: string;
|
|
2774
|
+
currentBankAccountId: string | null;
|
|
2775
|
+
currentEscrowAccountId: string | null;
|
|
2776
|
+
currentEscrowAgreementFileId: string | null;
|
|
2777
|
+
}>;
|
|
2778
|
+
export type EscrowValidationContext = z.infer<typeof EscrowValidationContextZod>;
|
|
2779
|
+
/**
|
|
2780
|
+
* Shape of warrant fields shared by Offering and OfferingRevision for validation.
|
|
2781
|
+
*/
|
|
2782
|
+
export declare const WarrantSharesBaseZod: z.ZodObject<{
|
|
2783
|
+
warrantsEnabled: z.ZodBoolean;
|
|
2784
|
+
totalShares: z.ZodNullable<z.ZodNumber>;
|
|
2785
|
+
warrantTermYears: z.ZodNullable<z.ZodNumber>;
|
|
2786
|
+
exercisePrice: z.ZodNullable<z.ZodNumber>;
|
|
2787
|
+
warrantPercentage: z.ZodNullable<z.ZodNumber>;
|
|
2788
|
+
calculationMethod: z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>;
|
|
2789
|
+
incrementThreshold: z.ZodNullable<z.ZodNumber>;
|
|
2790
|
+
fullyDilutedShares: z.ZodNullable<z.ZodNumber>;
|
|
2791
|
+
}, "strip", z.ZodTypeAny, {
|
|
2792
|
+
warrantsEnabled: boolean;
|
|
2793
|
+
totalShares: number | null;
|
|
2794
|
+
warrantTermYears: number | null;
|
|
2795
|
+
exercisePrice: number | null;
|
|
2796
|
+
warrantPercentage: number | null;
|
|
2797
|
+
calculationMethod: WarrantSharesCalculationMethod | null;
|
|
2798
|
+
incrementThreshold: number | null;
|
|
2799
|
+
fullyDilutedShares: number | null;
|
|
2800
|
+
}, {
|
|
2801
|
+
warrantsEnabled: boolean;
|
|
2802
|
+
totalShares: number | null;
|
|
2803
|
+
warrantTermYears: number | null;
|
|
2804
|
+
exercisePrice: number | null;
|
|
2805
|
+
warrantPercentage: number | null;
|
|
2806
|
+
calculationMethod: WarrantSharesCalculationMethod | null;
|
|
2807
|
+
incrementThreshold: number | null;
|
|
2808
|
+
fullyDilutedShares: number | null;
|
|
2809
|
+
}>;
|
|
2810
|
+
export type WarrantSharesBase = z.infer<typeof WarrantSharesBaseZod>;
|
|
2811
|
+
/**
|
|
2812
|
+
* All warrant field keys used when picking warrant data from base or patch.
|
|
2813
|
+
*/
|
|
2814
|
+
export declare const WARRANT_FIELD_KEYS: (keyof WarrantSharesBase)[];
|
|
2815
|
+
/**
|
|
2816
|
+
* Warrant field keys required when enabling warrants (turning warrants on).
|
|
2817
|
+
*/
|
|
2818
|
+
export declare const WARRANT_REQUIRED_WHEN_ENABLED_KEYS: (keyof WarrantSharesBase)[];
|
|
2819
|
+
/**
|
|
2820
|
+
* Patch input for warrant validation (optional warrant fields from PATCH body).
|
|
2821
|
+
*/
|
|
2822
|
+
export declare const WarrantValidationDataZod: z.ZodObject<{
|
|
2823
|
+
warrantsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
2824
|
+
totalShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2825
|
+
warrantTermYears: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2826
|
+
exercisePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2827
|
+
warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2828
|
+
calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
|
|
2829
|
+
incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2830
|
+
fullyDilutedShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2831
|
+
}, "strip", z.ZodTypeAny, {
|
|
2832
|
+
warrantsEnabled?: boolean | undefined;
|
|
2833
|
+
totalShares?: number | null | undefined;
|
|
2834
|
+
warrantTermYears?: number | null | undefined;
|
|
2835
|
+
exercisePrice?: number | null | undefined;
|
|
2836
|
+
warrantPercentage?: number | null | undefined;
|
|
2837
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
2838
|
+
incrementThreshold?: number | null | undefined;
|
|
2839
|
+
fullyDilutedShares?: number | null | undefined;
|
|
2840
|
+
}, {
|
|
2841
|
+
warrantsEnabled?: boolean | undefined;
|
|
2842
|
+
totalShares?: number | null | undefined;
|
|
2843
|
+
warrantTermYears?: number | null | undefined;
|
|
2844
|
+
exercisePrice?: number | null | undefined;
|
|
2845
|
+
warrantPercentage?: number | null | undefined;
|
|
2846
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
2847
|
+
incrementThreshold?: number | null | undefined;
|
|
2848
|
+
fullyDilutedShares?: number | null | undefined;
|
|
2849
|
+
}>;
|
|
2850
|
+
export type WarrantValidationData = z.infer<typeof WarrantValidationDataZod>;
|
|
2851
|
+
/**
|
|
2852
|
+
* Validated warrant payload to persist on revision and offering.
|
|
2853
|
+
*/
|
|
2854
|
+
export type WarrantValidationResult = WarrantSharesBase;
|
|
2855
|
+
/**
|
|
2856
|
+
* Warrant-related fields to reset (nullify) when warrants are disabled.
|
|
2857
|
+
* Used when warrantsEnabled is set to false so revision and offering stay in sync.
|
|
2858
|
+
*/
|
|
2859
|
+
export declare const WARRANT_DISABLED_FIELD_RESETS: WarrantValidationResult;
|