@dalmore/api-contracts 0.0.0-dev.9a3cfcd → 0.0.0-dev.9c4aa34
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 +5 -0
- package/common/types/account.types.d.ts +6 -6
- package/common/types/activity.types.d.ts +8 -1
- package/common/types/activity.types.js +7 -0
- package/common/types/activity.types.js.map +1 -1
- package/common/types/cap-table.types.d.ts +54 -54
- package/common/types/common.types.d.ts +40 -2
- package/common/types/common.types.js +24 -1
- package/common/types/common.types.js.map +1 -1
- 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 +817 -0
- package/common/types/disbursements.types.js +63 -0
- package/common/types/disbursements.types.js.map +1 -1
- package/common/types/exchange-provider.types.d.ts +12 -12
- package/common/types/index.d.ts +1 -0
- package/common/types/index.js +1 -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 +166 -10
- package/common/types/issuer-offering.types.js +152 -10
- package/common/types/issuer-offering.types.js.map +1 -1
- package/common/types/offering.types.d.ts +254 -20
- package/common/types/offering.types.js +203 -17
- package/common/types/offering.types.js.map +1 -1
- package/common/types/portfolio.types.d.ts +6 -6
- 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 -12
- 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 +108 -5
- package/common/types/user.types.js +6 -1
- package/common/types/user.types.js.map +1 -1
- package/contracts/clients/index.d.ts +83 -3
- package/contracts/clients/offerings/index.d.ts +83 -3
- package/package.json +1 -1
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { OfferingType, ManagedByType, OfferingVersioningType, ComplianceReview, DurationType, AssetType, HttpMethod } from './common.types';
|
|
2
|
+
import { OfferingType, ManagedByType, OfferingVersioningType, ComplianceReview, DurationType, AssetType, HttpMethod, WarrantSharesCalculationMethod, OfferingStatus } from './common.types';
|
|
3
3
|
import { AssetTemplateType } from './asset.types';
|
|
4
4
|
import { PostComplianceOffering } from './offering.types';
|
|
5
|
-
export declare enum OfferingStatus {
|
|
6
|
-
ONBOARDING = "ONBOARDING",
|
|
7
|
-
IN_COMPLIANCE_REVIEW = "IN_COMPLIANCE_REVIEW",
|
|
8
|
-
ACTIVE = "ACTIVE",
|
|
9
|
-
PAUSED = "PAUSED"
|
|
10
|
-
}
|
|
11
5
|
export declare const IIssuerOffering: z.ZodObject<{
|
|
12
6
|
id: z.ZodString;
|
|
13
7
|
__entity: z.ZodOptional<z.ZodString>;
|
|
@@ -331,6 +325,15 @@ export declare const IIssuerOffering: z.ZodObject<{
|
|
|
331
325
|
routingNumber?: string | null | undefined;
|
|
332
326
|
company?: string | null | undefined;
|
|
333
327
|
}>>>>;
|
|
328
|
+
warrantsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
329
|
+
totalShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
330
|
+
warrantTermYears: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
331
|
+
exercisePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
332
|
+
warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
333
|
+
calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
|
|
334
|
+
incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
335
|
+
fullyDilutedShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
336
|
+
shareClassId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
334
337
|
}, "strip", z.ZodTypeAny, {
|
|
335
338
|
type: OfferingType | null;
|
|
336
339
|
id: string;
|
|
@@ -446,6 +449,15 @@ export declare const IIssuerOffering: z.ZodObject<{
|
|
|
446
449
|
routingNumber?: string | null | undefined;
|
|
447
450
|
company?: string | null | undefined;
|
|
448
451
|
} | null | undefined;
|
|
452
|
+
warrantsEnabled?: boolean | undefined;
|
|
453
|
+
totalShares?: number | null | undefined;
|
|
454
|
+
warrantTermYears?: number | null | undefined;
|
|
455
|
+
exercisePrice?: number | null | undefined;
|
|
456
|
+
warrantPercentage?: number | null | undefined;
|
|
457
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
458
|
+
incrementThreshold?: number | null | undefined;
|
|
459
|
+
fullyDilutedShares?: number | null | undefined;
|
|
460
|
+
shareClassId?: string | null | undefined;
|
|
449
461
|
}, {
|
|
450
462
|
type: OfferingType | null;
|
|
451
463
|
id: string;
|
|
@@ -561,6 +573,15 @@ export declare const IIssuerOffering: z.ZodObject<{
|
|
|
561
573
|
routingNumber?: string | null | undefined;
|
|
562
574
|
company?: string | null | undefined;
|
|
563
575
|
} | null | undefined;
|
|
576
|
+
warrantsEnabled?: boolean | undefined;
|
|
577
|
+
totalShares?: number | null | undefined;
|
|
578
|
+
warrantTermYears?: number | null | undefined;
|
|
579
|
+
exercisePrice?: number | null | undefined;
|
|
580
|
+
warrantPercentage?: number | null | undefined;
|
|
581
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
582
|
+
incrementThreshold?: number | null | undefined;
|
|
583
|
+
fullyDilutedShares?: number | null | undefined;
|
|
584
|
+
shareClassId?: string | null | undefined;
|
|
564
585
|
}>;
|
|
565
586
|
export type IIssuerOffering = z.infer<typeof IIssuerOffering>;
|
|
566
587
|
export declare const IPaginatedIssuerOffering: z.ZodObject<{
|
|
@@ -887,6 +908,15 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
|
|
|
887
908
|
routingNumber?: string | null | undefined;
|
|
888
909
|
company?: string | null | undefined;
|
|
889
910
|
}>>>>;
|
|
911
|
+
warrantsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
912
|
+
totalShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
913
|
+
warrantTermYears: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
914
|
+
exercisePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
915
|
+
warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
916
|
+
calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
|
|
917
|
+
incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
918
|
+
fullyDilutedShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
919
|
+
shareClassId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
890
920
|
}, "strip", z.ZodTypeAny, {
|
|
891
921
|
type: OfferingType | null;
|
|
892
922
|
id: string;
|
|
@@ -1002,6 +1032,15 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
|
|
|
1002
1032
|
routingNumber?: string | null | undefined;
|
|
1003
1033
|
company?: string | null | undefined;
|
|
1004
1034
|
} | null | undefined;
|
|
1035
|
+
warrantsEnabled?: boolean | undefined;
|
|
1036
|
+
totalShares?: number | null | undefined;
|
|
1037
|
+
warrantTermYears?: number | null | undefined;
|
|
1038
|
+
exercisePrice?: number | null | undefined;
|
|
1039
|
+
warrantPercentage?: number | null | undefined;
|
|
1040
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1041
|
+
incrementThreshold?: number | null | undefined;
|
|
1042
|
+
fullyDilutedShares?: number | null | undefined;
|
|
1043
|
+
shareClassId?: string | null | undefined;
|
|
1005
1044
|
}, {
|
|
1006
1045
|
type: OfferingType | null;
|
|
1007
1046
|
id: string;
|
|
@@ -1117,6 +1156,15 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
|
|
|
1117
1156
|
routingNumber?: string | null | undefined;
|
|
1118
1157
|
company?: string | null | undefined;
|
|
1119
1158
|
} | null | undefined;
|
|
1159
|
+
warrantsEnabled?: boolean | undefined;
|
|
1160
|
+
totalShares?: number | null | undefined;
|
|
1161
|
+
warrantTermYears?: number | null | undefined;
|
|
1162
|
+
exercisePrice?: number | null | undefined;
|
|
1163
|
+
warrantPercentage?: number | null | undefined;
|
|
1164
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1165
|
+
incrementThreshold?: number | null | undefined;
|
|
1166
|
+
fullyDilutedShares?: number | null | undefined;
|
|
1167
|
+
shareClassId?: string | null | undefined;
|
|
1120
1168
|
}>, "many">;
|
|
1121
1169
|
meta: z.ZodObject<{
|
|
1122
1170
|
itemCount: z.ZodNumber;
|
|
@@ -1253,6 +1301,15 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
|
|
|
1253
1301
|
routingNumber?: string | null | undefined;
|
|
1254
1302
|
company?: string | null | undefined;
|
|
1255
1303
|
} | null | undefined;
|
|
1304
|
+
warrantsEnabled?: boolean | undefined;
|
|
1305
|
+
totalShares?: number | null | undefined;
|
|
1306
|
+
warrantTermYears?: number | null | undefined;
|
|
1307
|
+
exercisePrice?: number | null | undefined;
|
|
1308
|
+
warrantPercentage?: number | null | undefined;
|
|
1309
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1310
|
+
incrementThreshold?: number | null | undefined;
|
|
1311
|
+
fullyDilutedShares?: number | null | undefined;
|
|
1312
|
+
shareClassId?: string | null | undefined;
|
|
1256
1313
|
}[];
|
|
1257
1314
|
meta: {
|
|
1258
1315
|
itemCount: number;
|
|
@@ -1377,6 +1434,15 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
|
|
|
1377
1434
|
routingNumber?: string | null | undefined;
|
|
1378
1435
|
company?: string | null | undefined;
|
|
1379
1436
|
} | null | undefined;
|
|
1437
|
+
warrantsEnabled?: boolean | undefined;
|
|
1438
|
+
totalShares?: number | null | undefined;
|
|
1439
|
+
warrantTermYears?: number | null | undefined;
|
|
1440
|
+
exercisePrice?: number | null | undefined;
|
|
1441
|
+
warrantPercentage?: number | null | undefined;
|
|
1442
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1443
|
+
incrementThreshold?: number | null | undefined;
|
|
1444
|
+
fullyDilutedShares?: number | null | undefined;
|
|
1445
|
+
shareClassId?: string | null | undefined;
|
|
1380
1446
|
}[];
|
|
1381
1447
|
meta: {
|
|
1382
1448
|
itemCount: number;
|
|
@@ -1390,6 +1456,7 @@ export type IPaginatedIssuerOffering = z.infer<typeof IPaginatedIssuerOffering>;
|
|
|
1390
1456
|
export declare const postOfferingRefinement: (data: PostIssuerOffering | PostComplianceOffering, ctx: z.RefinementCtx) => void;
|
|
1391
1457
|
export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
1392
1458
|
issuerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
1459
|
+
shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
1393
1460
|
name: z.ZodString;
|
|
1394
1461
|
type: z.ZodNativeEnum<typeof OfferingType>;
|
|
1395
1462
|
targetAmount: z.ZodNumber;
|
|
@@ -1453,12 +1520,20 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1453
1520
|
startAmount: number;
|
|
1454
1521
|
endAmount: number;
|
|
1455
1522
|
}>, "many">>;
|
|
1523
|
+
warrantsEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1524
|
+
totalShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1525
|
+
warrantTermYears: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1526
|
+
exercisePrice: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1527
|
+
warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1528
|
+
calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
|
|
1529
|
+
incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1456
1530
|
}, "strip", z.ZodTypeAny, {
|
|
1457
1531
|
type: OfferingType;
|
|
1458
1532
|
name: string;
|
|
1459
1533
|
template: AssetTemplateType;
|
|
1460
1534
|
targetAmount: number;
|
|
1461
1535
|
issuerId: string;
|
|
1536
|
+
warrantsEnabled: boolean;
|
|
1462
1537
|
assetName: string;
|
|
1463
1538
|
assetType: AssetType;
|
|
1464
1539
|
pricePerUnit: number | null;
|
|
@@ -1476,6 +1551,13 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1476
1551
|
hasEscrow?: boolean | undefined;
|
|
1477
1552
|
bankAccountId?: string | null | undefined;
|
|
1478
1553
|
escrowAccountId?: string | null | undefined;
|
|
1554
|
+
totalShares?: number | null | undefined;
|
|
1555
|
+
warrantTermYears?: number | null | undefined;
|
|
1556
|
+
exercisePrice?: number | null | undefined;
|
|
1557
|
+
warrantPercentage?: number | null | undefined;
|
|
1558
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1559
|
+
incrementThreshold?: number | null | undefined;
|
|
1560
|
+
shareClassId?: string | null | undefined;
|
|
1479
1561
|
yield?: number | null | undefined;
|
|
1480
1562
|
duration?: number | null | undefined;
|
|
1481
1563
|
durationType?: DurationType | null | undefined;
|
|
@@ -1511,6 +1593,14 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1511
1593
|
hasEscrow?: boolean | undefined;
|
|
1512
1594
|
bankAccountId?: string | null | undefined;
|
|
1513
1595
|
escrowAccountId?: string | null | undefined;
|
|
1596
|
+
warrantsEnabled?: boolean | undefined;
|
|
1597
|
+
totalShares?: number | null | undefined;
|
|
1598
|
+
warrantTermYears?: number | null | undefined;
|
|
1599
|
+
exercisePrice?: number | null | undefined;
|
|
1600
|
+
warrantPercentage?: number | null | undefined;
|
|
1601
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1602
|
+
incrementThreshold?: number | null | undefined;
|
|
1603
|
+
shareClassId?: string | null | undefined;
|
|
1514
1604
|
yield?: number | null | undefined;
|
|
1515
1605
|
duration?: number | null | undefined;
|
|
1516
1606
|
durationType?: DurationType | null | undefined;
|
|
@@ -1529,6 +1619,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1529
1619
|
template: AssetTemplateType;
|
|
1530
1620
|
targetAmount: number;
|
|
1531
1621
|
issuerId: string;
|
|
1622
|
+
warrantsEnabled: boolean;
|
|
1532
1623
|
assetName: string;
|
|
1533
1624
|
assetType: AssetType;
|
|
1534
1625
|
pricePerUnit: number | null;
|
|
@@ -1546,6 +1637,13 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1546
1637
|
hasEscrow?: boolean | undefined;
|
|
1547
1638
|
bankAccountId?: string | null | undefined;
|
|
1548
1639
|
escrowAccountId?: string | null | undefined;
|
|
1640
|
+
totalShares?: number | null | undefined;
|
|
1641
|
+
warrantTermYears?: number | null | undefined;
|
|
1642
|
+
exercisePrice?: number | null | undefined;
|
|
1643
|
+
warrantPercentage?: number | null | undefined;
|
|
1644
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1645
|
+
incrementThreshold?: number | null | undefined;
|
|
1646
|
+
shareClassId?: string | null | undefined;
|
|
1549
1647
|
yield?: number | null | undefined;
|
|
1550
1648
|
duration?: number | null | undefined;
|
|
1551
1649
|
durationType?: DurationType | null | undefined;
|
|
@@ -1581,6 +1679,14 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1581
1679
|
hasEscrow?: boolean | undefined;
|
|
1582
1680
|
bankAccountId?: string | null | undefined;
|
|
1583
1681
|
escrowAccountId?: string | null | undefined;
|
|
1682
|
+
warrantsEnabled?: boolean | undefined;
|
|
1683
|
+
totalShares?: number | null | undefined;
|
|
1684
|
+
warrantTermYears?: number | null | undefined;
|
|
1685
|
+
exercisePrice?: number | null | undefined;
|
|
1686
|
+
warrantPercentage?: number | null | undefined;
|
|
1687
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1688
|
+
incrementThreshold?: number | null | undefined;
|
|
1689
|
+
shareClassId?: string | null | undefined;
|
|
1584
1690
|
yield?: number | null | undefined;
|
|
1585
1691
|
duration?: number | null | undefined;
|
|
1586
1692
|
durationType?: DurationType | null | undefined;
|
|
@@ -1596,6 +1702,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1596
1702
|
}>;
|
|
1597
1703
|
export type PostIssuerOffering = z.infer<typeof PostIssuerOffering>;
|
|
1598
1704
|
export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
1705
|
+
shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
1599
1706
|
name: z.ZodOptional<z.ZodString>;
|
|
1600
1707
|
type: z.ZodOptional<z.ZodNativeEnum<typeof OfferingType>>;
|
|
1601
1708
|
targetAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1663,6 +1770,13 @@ export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1663
1770
|
startAmount: number;
|
|
1664
1771
|
endAmount: number;
|
|
1665
1772
|
}>, "many">>;
|
|
1773
|
+
warrantsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1774
|
+
totalShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1775
|
+
warrantTermYears: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1776
|
+
exercisePrice: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1777
|
+
warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1778
|
+
calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
|
|
1779
|
+
incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1666
1780
|
}, "strip", z.ZodTypeAny, {
|
|
1667
1781
|
type?: OfferingType | undefined;
|
|
1668
1782
|
name?: string | undefined;
|
|
@@ -1685,6 +1799,14 @@ export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1685
1799
|
escrowAgreementFileId?: string | null | undefined;
|
|
1686
1800
|
bankAccountId?: string | null | undefined;
|
|
1687
1801
|
escrowAccountId?: string | null | undefined;
|
|
1802
|
+
warrantsEnabled?: boolean | undefined;
|
|
1803
|
+
totalShares?: number | null | undefined;
|
|
1804
|
+
warrantTermYears?: number | null | undefined;
|
|
1805
|
+
exercisePrice?: number | null | undefined;
|
|
1806
|
+
warrantPercentage?: number | null | undefined;
|
|
1807
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1808
|
+
incrementThreshold?: number | null | undefined;
|
|
1809
|
+
shareClassId?: string | null | undefined;
|
|
1688
1810
|
assetName?: string | undefined;
|
|
1689
1811
|
assetType?: AssetType | undefined;
|
|
1690
1812
|
pricePerUnit?: number | null | undefined;
|
|
@@ -1723,6 +1845,14 @@ export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1723
1845
|
escrowAgreementFileId?: string | null | undefined;
|
|
1724
1846
|
bankAccountId?: string | null | undefined;
|
|
1725
1847
|
escrowAccountId?: string | null | undefined;
|
|
1848
|
+
warrantsEnabled?: boolean | undefined;
|
|
1849
|
+
totalShares?: number | null | undefined;
|
|
1850
|
+
warrantTermYears?: number | null | undefined;
|
|
1851
|
+
exercisePrice?: number | null | undefined;
|
|
1852
|
+
warrantPercentage?: number | null | undefined;
|
|
1853
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1854
|
+
incrementThreshold?: number | null | undefined;
|
|
1855
|
+
shareClassId?: string | null | undefined;
|
|
1726
1856
|
assetName?: string | undefined;
|
|
1727
1857
|
assetType?: AssetType | undefined;
|
|
1728
1858
|
pricePerUnit?: number | null | undefined;
|
|
@@ -1761,6 +1891,14 @@ export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1761
1891
|
escrowAgreementFileId?: string | null | undefined;
|
|
1762
1892
|
bankAccountId?: string | null | undefined;
|
|
1763
1893
|
escrowAccountId?: string | null | undefined;
|
|
1894
|
+
warrantsEnabled?: boolean | undefined;
|
|
1895
|
+
totalShares?: number | null | undefined;
|
|
1896
|
+
warrantTermYears?: number | null | undefined;
|
|
1897
|
+
exercisePrice?: number | null | undefined;
|
|
1898
|
+
warrantPercentage?: number | null | undefined;
|
|
1899
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1900
|
+
incrementThreshold?: number | null | undefined;
|
|
1901
|
+
shareClassId?: string | null | undefined;
|
|
1764
1902
|
assetName?: string | undefined;
|
|
1765
1903
|
assetType?: AssetType | undefined;
|
|
1766
1904
|
pricePerUnit?: number | null | undefined;
|
|
@@ -1799,6 +1937,14 @@ export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
|
|
|
1799
1937
|
escrowAgreementFileId?: string | null | undefined;
|
|
1800
1938
|
bankAccountId?: string | null | undefined;
|
|
1801
1939
|
escrowAccountId?: string | null | undefined;
|
|
1940
|
+
warrantsEnabled?: boolean | undefined;
|
|
1941
|
+
totalShares?: number | null | undefined;
|
|
1942
|
+
warrantTermYears?: number | null | undefined;
|
|
1943
|
+
exercisePrice?: number | null | undefined;
|
|
1944
|
+
warrantPercentage?: number | null | undefined;
|
|
1945
|
+
calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
|
|
1946
|
+
incrementThreshold?: number | null | undefined;
|
|
1947
|
+
shareClassId?: string | null | undefined;
|
|
1802
1948
|
assetName?: string | undefined;
|
|
1803
1949
|
assetType?: AssetType | undefined;
|
|
1804
1950
|
pricePerUnit?: number | null | undefined;
|
|
@@ -1870,10 +2016,10 @@ export declare const IssuerOfferingsFilterZod: z.ZodObject<{
|
|
|
1870
2016
|
issuerId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1871
2017
|
type: z.ZodOptional<z.ZodNativeEnum<typeof OfferingType>>;
|
|
1872
2018
|
status: z.ZodOptional<z.ZodNativeEnum<typeof ComplianceReview>>;
|
|
2019
|
+
complianceReview: z.ZodOptional<z.ZodNativeEnum<typeof ComplianceReview>>;
|
|
1873
2020
|
enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
1874
2021
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
1875
2022
|
versioningType: z.ZodOptional<z.ZodNativeEnum<typeof OfferingVersioningType>>;
|
|
1876
|
-
combinedStatus: z.ZodOptional<z.ZodNativeEnum<typeof OfferingStatus>>;
|
|
1877
2023
|
sortByNameASC: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>, boolean, unknown>;
|
|
1878
2024
|
}, "strip", z.ZodTypeAny, {
|
|
1879
2025
|
sortByNameASC: boolean;
|
|
@@ -1882,23 +2028,33 @@ export declare const IssuerOfferingsFilterZod: z.ZodObject<{
|
|
|
1882
2028
|
accountId?: string | undefined;
|
|
1883
2029
|
name?: string | undefined;
|
|
1884
2030
|
managedBy?: ManagedByType | undefined;
|
|
2031
|
+
complianceReview?: ComplianceReview | undefined;
|
|
1885
2032
|
enabled?: boolean | undefined;
|
|
1886
2033
|
issuerId?: string | undefined;
|
|
1887
2034
|
issuerName?: string | undefined;
|
|
1888
2035
|
versioningType?: OfferingVersioningType | undefined;
|
|
1889
|
-
combinedStatus?: OfferingStatus | undefined;
|
|
1890
2036
|
}, {
|
|
1891
2037
|
type?: OfferingType | undefined;
|
|
1892
2038
|
status?: ComplianceReview | undefined;
|
|
1893
2039
|
accountId?: string | undefined;
|
|
1894
2040
|
name?: string | undefined;
|
|
1895
2041
|
managedBy?: ManagedByType | undefined;
|
|
2042
|
+
complianceReview?: ComplianceReview | undefined;
|
|
1896
2043
|
enabled?: unknown;
|
|
1897
2044
|
issuerId?: string | undefined;
|
|
1898
2045
|
issuerName?: string | undefined;
|
|
1899
2046
|
versioningType?: OfferingVersioningType | undefined;
|
|
1900
|
-
combinedStatus?: OfferingStatus | undefined;
|
|
1901
2047
|
sortByNameASC?: unknown;
|
|
1902
2048
|
}>;
|
|
1903
2049
|
export type IssuerOfferingsFilterZod = z.infer<typeof IssuerOfferingsFilterZod>;
|
|
1904
2050
|
export declare const escrowValidationRefinement: (data: any, ctx: any, httpMethod: HttpMethod) => void;
|
|
2051
|
+
/**
|
|
2052
|
+
* Adds validation issues to the context if warrant-related fields are missing
|
|
2053
|
+
* when warrants are enabled on an offering. This function checks required fields for
|
|
2054
|
+
* offerings with warrants enabled, including totalShares, warrantTermYears, exercisePrice,
|
|
2055
|
+
* warrantPercentage, calculationMethod, and incrementThreshold (when calculationMethod is INCREMENT).
|
|
2056
|
+
*
|
|
2057
|
+
* @param data - The offering data to be validated (PostIssuerOffering or PostComplianceOffering)
|
|
2058
|
+
* @param ctx - The Zod refinement context to which validation issues will be added
|
|
2059
|
+
*/
|
|
2060
|
+
export declare const warrantsValidationRefinement: (data: PostIssuerOffering | PostComplianceOffering, ctx: z.RefinementCtx) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { AccountZod, dateSchema, IPaginationMeta, OfferingType, ManagedByType, OfferingVersioningType, ComplianceReview, DurationType, AssetType, StringToBooleanSchema, HttpMethod, } from './common.types.js';
|
|
3
|
+
import { AccountZod, dateSchema, IPaginationMeta, OfferingType, ManagedByType, OfferingVersioningType, ComplianceReview, DurationType, AssetType, StringToBooleanSchema, HttpMethod, numberPrecisionSchema, WarrantSharesCalculationMethod, OfferingStatus, } from './common.types.js';
|
|
4
4
|
import { IBaseEntity } from './entity.types.js';
|
|
5
5
|
import { IIssuer, issuerIdSchema } from './issuer.types.js';
|
|
6
6
|
import { IAsset, postAssetRefinement, AssetTemplateType } from './asset.types.js';
|
|
@@ -9,14 +9,8 @@ import { accountIdSchema } from './account.types.js';
|
|
|
9
9
|
import { IIssuerBankAccount, issuerBankAccountIdSchema, } from './issuer-bank-account.types.js';
|
|
10
10
|
import { escrowAccountIdSchema, IEscrowAccount } from './escrow-account.types.js';
|
|
11
11
|
import { BonusTierListZod, postBonusTierRefinement } from './bonus-tier.types.js';
|
|
12
|
+
import { capShareClassIdSchema } from './cap-table.types.js';
|
|
12
13
|
extendZodWithOpenApi(z);
|
|
13
|
-
export var OfferingStatus;
|
|
14
|
-
(function (OfferingStatus) {
|
|
15
|
-
OfferingStatus["ONBOARDING"] = "ONBOARDING";
|
|
16
|
-
OfferingStatus["IN_COMPLIANCE_REVIEW"] = "IN_COMPLIANCE_REVIEW";
|
|
17
|
-
OfferingStatus["ACTIVE"] = "ACTIVE";
|
|
18
|
-
OfferingStatus["PAUSED"] = "PAUSED";
|
|
19
|
-
})(OfferingStatus || (OfferingStatus = {}));
|
|
20
14
|
export const IIssuerOffering = IBaseEntity.extend({
|
|
21
15
|
name: z.string(),
|
|
22
16
|
tid: z.string().nullable(),
|
|
@@ -73,6 +67,18 @@ export const IIssuerOffering = IBaseEntity.extend({
|
|
|
73
67
|
.lazy(() => IEscrowAccount)
|
|
74
68
|
.nullable()
|
|
75
69
|
.optional(),
|
|
70
|
+
warrantsEnabled: z.boolean().optional(),
|
|
71
|
+
totalShares: z.number().nullable().optional(),
|
|
72
|
+
warrantTermYears: z.number().nullable().optional(),
|
|
73
|
+
exercisePrice: z.number().nullable().optional(),
|
|
74
|
+
warrantPercentage: z.number().nullable().optional(),
|
|
75
|
+
calculationMethod: z
|
|
76
|
+
.nativeEnum(WarrantSharesCalculationMethod)
|
|
77
|
+
.nullable()
|
|
78
|
+
.optional(),
|
|
79
|
+
incrementThreshold: z.number().nullable().optional(),
|
|
80
|
+
fullyDilutedShares: z.number().nullable().optional(),
|
|
81
|
+
shareClassId: z.string().nullable().optional(),
|
|
76
82
|
});
|
|
77
83
|
export const IPaginatedIssuerOffering = z.object({
|
|
78
84
|
items: z.array(IIssuerOffering),
|
|
@@ -92,7 +98,6 @@ export const postOfferingRefinement = (data, ctx) => {
|
|
|
92
98
|
data.pricePerUnit &&
|
|
93
99
|
data.minInvestment < data.pricePerUnit) {
|
|
94
100
|
ctx.addIssue({
|
|
95
|
-
path: ['minInvestment'],
|
|
96
101
|
message: 'Minimum investment must be greater than price per unit.',
|
|
97
102
|
code: z.ZodIssueCode.custom,
|
|
98
103
|
});
|
|
@@ -110,6 +115,11 @@ export const postOfferingRefinement = (data, ctx) => {
|
|
|
110
115
|
export const PostIssuerOffering = z
|
|
111
116
|
.object({
|
|
112
117
|
issuerId: z.lazy(() => issuerIdSchema),
|
|
118
|
+
shareClassId: z
|
|
119
|
+
.lazy(() => capShareClassIdSchema)
|
|
120
|
+
.nullable()
|
|
121
|
+
.optional()
|
|
122
|
+
.openapi({ example: 'cap_table_share_class_01j1xgme...' }),
|
|
113
123
|
name: z.string().min(2).max(100).openapi({ example: 'Airbnb IPO' }),
|
|
114
124
|
type: z.nativeEnum(OfferingType).openapi({ example: OfferingType.REG_D }),
|
|
115
125
|
targetAmount: z
|
|
@@ -215,15 +225,59 @@ export const PostIssuerOffering = z
|
|
|
215
225
|
.optional()
|
|
216
226
|
.openapi({ example: 10 }),
|
|
217
227
|
bonusTiers: BonusTierListZod.optional(),
|
|
228
|
+
warrantsEnabled: z
|
|
229
|
+
.boolean()
|
|
230
|
+
.optional()
|
|
231
|
+
.default(false)
|
|
232
|
+
.openapi({ example: false }),
|
|
233
|
+
totalShares: z
|
|
234
|
+
.number()
|
|
235
|
+
.int()
|
|
236
|
+
.positive()
|
|
237
|
+
.max(10000000000)
|
|
238
|
+
.nullable()
|
|
239
|
+
.optional()
|
|
240
|
+
.openapi({ example: 1000 }),
|
|
241
|
+
warrantTermYears: z
|
|
242
|
+
.number()
|
|
243
|
+
.int()
|
|
244
|
+
.positive()
|
|
245
|
+
.max(10000000000)
|
|
246
|
+
.nullable()
|
|
247
|
+
.optional()
|
|
248
|
+
.openapi({ example: 10 }),
|
|
249
|
+
exercisePrice: numberPrecisionSchema(2, z.number().min(0.01).max(10000000000))
|
|
250
|
+
.nullable()
|
|
251
|
+
.optional()
|
|
252
|
+
.openapi({ example: 100 }),
|
|
253
|
+
warrantPercentage: numberPrecisionSchema(2, z.number().positive().max(100))
|
|
254
|
+
.nullable()
|
|
255
|
+
.optional()
|
|
256
|
+
.openapi({ example: 10 }),
|
|
257
|
+
calculationMethod: z
|
|
258
|
+
.nativeEnum(WarrantSharesCalculationMethod)
|
|
259
|
+
.nullable()
|
|
260
|
+
.optional()
|
|
261
|
+
.openapi({ example: WarrantSharesCalculationMethod.NONE }),
|
|
262
|
+
incrementThreshold: numberPrecisionSchema(2, z.number().min(0.01).max(10000000000))
|
|
263
|
+
.nullable()
|
|
264
|
+
.optional()
|
|
265
|
+
.openapi({ example: 10 }),
|
|
218
266
|
})
|
|
219
267
|
.superRefine((data, ctx) => {
|
|
220
268
|
postOfferingRefinement(data, ctx);
|
|
221
269
|
postAssetRefinement(data, ctx);
|
|
222
270
|
escrowValidationRefinement(data, ctx, HttpMethod.POST);
|
|
223
271
|
postBonusTierRefinement(data, ctx);
|
|
272
|
+
warrantsValidationRefinement(data, ctx);
|
|
224
273
|
});
|
|
225
274
|
export const PatchIssuerOffering = z
|
|
226
275
|
.object({
|
|
276
|
+
shareClassId: z
|
|
277
|
+
.lazy(() => capShareClassIdSchema)
|
|
278
|
+
.nullable()
|
|
279
|
+
.optional()
|
|
280
|
+
.openapi({ example: 'cap_table_share_class_01j1xgme...' }),
|
|
227
281
|
name: z
|
|
228
282
|
.string()
|
|
229
283
|
.min(2)
|
|
@@ -362,6 +416,40 @@ export const PatchIssuerOffering = z
|
|
|
362
416
|
.optional()
|
|
363
417
|
.openapi({ example: 10 }),
|
|
364
418
|
bonusTiers: BonusTierListZod.optional(),
|
|
419
|
+
warrantsEnabled: z.boolean().optional().openapi({ example: false }),
|
|
420
|
+
totalShares: z
|
|
421
|
+
.number()
|
|
422
|
+
.int()
|
|
423
|
+
.positive()
|
|
424
|
+
.max(10000000000)
|
|
425
|
+
.nullable()
|
|
426
|
+
.optional()
|
|
427
|
+
.openapi({ example: 1000 }),
|
|
428
|
+
warrantTermYears: z
|
|
429
|
+
.number()
|
|
430
|
+
.int()
|
|
431
|
+
.positive()
|
|
432
|
+
.max(10000000000)
|
|
433
|
+
.nullable()
|
|
434
|
+
.optional()
|
|
435
|
+
.openapi({ example: 10 }),
|
|
436
|
+
exercisePrice: numberPrecisionSchema(2, z.number().min(0.01).max(10000000000))
|
|
437
|
+
.nullable()
|
|
438
|
+
.optional()
|
|
439
|
+
.openapi({ example: 100 }),
|
|
440
|
+
warrantPercentage: numberPrecisionSchema(2, z.number().positive().max(100))
|
|
441
|
+
.nullable()
|
|
442
|
+
.optional()
|
|
443
|
+
.openapi({ example: 10 }),
|
|
444
|
+
calculationMethod: z
|
|
445
|
+
.nativeEnum(WarrantSharesCalculationMethod)
|
|
446
|
+
.nullable()
|
|
447
|
+
.optional()
|
|
448
|
+
.openapi({ example: WarrantSharesCalculationMethod.NONE }),
|
|
449
|
+
incrementThreshold: numberPrecisionSchema(2, z.number().min(0.01).max(10000000000))
|
|
450
|
+
.nullable()
|
|
451
|
+
.optional()
|
|
452
|
+
.openapi({ example: 10 }),
|
|
365
453
|
})
|
|
366
454
|
.superRefine((data, ctx) => {
|
|
367
455
|
// Apply escrow-specific refinements
|
|
@@ -380,6 +468,7 @@ const issuerOfferingsInclude = z.enum([
|
|
|
380
468
|
'onboardingReviewedBy',
|
|
381
469
|
'bankAccount',
|
|
382
470
|
'escrowAccount',
|
|
471
|
+
'shareClass',
|
|
383
472
|
]);
|
|
384
473
|
/**
|
|
385
474
|
* @description Query parameters for including related entities
|
|
@@ -416,10 +505,10 @@ export const IssuerOfferingsFilterZod = z.object({
|
|
|
416
505
|
issuerId: z.lazy(() => issuerIdSchema).optional(),
|
|
417
506
|
type: z.nativeEnum(OfferingType).optional(),
|
|
418
507
|
status: z.nativeEnum(ComplianceReview).optional(),
|
|
508
|
+
complianceReview: z.nativeEnum(ComplianceReview).optional(),
|
|
419
509
|
enabled: StringToBooleanSchema.optional(),
|
|
420
510
|
managedBy: z.nativeEnum(ManagedByType).optional(),
|
|
421
511
|
versioningType: z.nativeEnum(OfferingVersioningType).optional(),
|
|
422
|
-
combinedStatus: z.nativeEnum(OfferingStatus).optional(),
|
|
423
512
|
sortByNameASC: z.preprocess((val) => val === 'true' || val === '1'
|
|
424
513
|
? true
|
|
425
514
|
: val === 'false' || val === '0'
|
|
@@ -452,4 +541,57 @@ export const escrowValidationRefinement = (data, ctx, httpMethod) => {
|
|
|
452
541
|
}
|
|
453
542
|
}
|
|
454
543
|
};
|
|
544
|
+
/**
|
|
545
|
+
* Adds validation issues to the context if warrant-related fields are missing
|
|
546
|
+
* when warrants are enabled on an offering. This function checks required fields for
|
|
547
|
+
* offerings with warrants enabled, including totalShares, warrantTermYears, exercisePrice,
|
|
548
|
+
* warrantPercentage, calculationMethod, and incrementThreshold (when calculationMethod is INCREMENT).
|
|
549
|
+
*
|
|
550
|
+
* @param data - The offering data to be validated (PostIssuerOffering or PostComplianceOffering)
|
|
551
|
+
* @param ctx - The Zod refinement context to which validation issues will be added
|
|
552
|
+
*/
|
|
553
|
+
export const warrantsValidationRefinement = (data, ctx) => {
|
|
554
|
+
if (data.warrantsEnabled) {
|
|
555
|
+
if (data.totalShares === null || data.totalShares === undefined) {
|
|
556
|
+
ctx.addIssue({
|
|
557
|
+
message: 'Total shares is required for warrants-enabled offerings',
|
|
558
|
+
code: z.ZodIssueCode.custom,
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
if (data.warrantTermYears === null || data.warrantTermYears === undefined) {
|
|
562
|
+
ctx.addIssue({
|
|
563
|
+
message: 'Warrant term years is required for warrants-enabled offerings',
|
|
564
|
+
code: z.ZodIssueCode.custom,
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
if (data.exercisePrice === null || data.exercisePrice === undefined) {
|
|
568
|
+
ctx.addIssue({
|
|
569
|
+
message: 'Exercise price is required for warrants-enabled offerings',
|
|
570
|
+
code: z.ZodIssueCode.custom,
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
if (data.warrantPercentage === null ||
|
|
574
|
+
data.warrantPercentage === undefined) {
|
|
575
|
+
ctx.addIssue({
|
|
576
|
+
message: 'Warrant percentage is required for warrants-enabled offerings',
|
|
577
|
+
code: z.ZodIssueCode.custom,
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
if (data.calculationMethod === null ||
|
|
581
|
+
data.calculationMethod === undefined) {
|
|
582
|
+
ctx.addIssue({
|
|
583
|
+
message: 'Calculation method is required for warrants-enabled offerings',
|
|
584
|
+
code: z.ZodIssueCode.custom,
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
if (data.calculationMethod === WarrantSharesCalculationMethod.INCREMENT &&
|
|
588
|
+
(data.incrementThreshold === null ||
|
|
589
|
+
data.incrementThreshold === undefined)) {
|
|
590
|
+
ctx.addIssue({
|
|
591
|
+
message: 'Increment threshold is required for warrants-enabled offerings when calculation method is INCREMENT',
|
|
592
|
+
code: z.ZodIssueCode.custom,
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
};
|
|
455
597
|
//# sourceMappingURL=issuer-offering.types.js.map
|