@dalmore/api-contracts 0.0.0-dev.2cea8e5 → 0.0.0-dev.2fec89f

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.
Files changed (112) hide show
  1. package/common/constants.d.ts +43 -0
  2. package/common/constants.js +77 -0
  3. package/common/constants.js.map +1 -0
  4. package/common/helpers/index.d.ts +27 -0
  5. package/common/helpers/index.js +43 -0
  6. package/common/helpers/index.js.map +1 -1
  7. package/common/types/account-setting.types.d.ts +5 -0
  8. package/common/types/account.types.d.ts +6 -6
  9. package/common/types/account.types.js +3 -3
  10. package/common/types/account.types.js.map +1 -1
  11. package/common/types/attribution.types.d.ts +578 -0
  12. package/common/types/attribution.types.js +152 -0
  13. package/common/types/attribution.types.js.map +1 -0
  14. package/common/types/auth.types.d.ts +36 -0
  15. package/common/types/auth.types.js +3 -2
  16. package/common/types/auth.types.js.map +1 -1
  17. package/common/types/cap-table.types.d.ts +211 -39
  18. package/common/types/cap-table.types.js +35 -0
  19. package/common/types/cap-table.types.js.map +1 -1
  20. package/common/types/common.types.d.ts +42 -5
  21. package/common/types/common.types.js +24 -3
  22. package/common/types/common.types.js.map +1 -1
  23. package/common/types/comply-advantage-api.types.d.ts +12 -12
  24. package/common/types/csv.types.d.ts +3612 -0
  25. package/common/types/csv.types.js +290 -0
  26. package/common/types/csv.types.js.map +1 -0
  27. package/common/types/disbursement-transaction.types.d.ts +1 -1
  28. package/common/types/disbursement-transaction.types.js +1 -1
  29. package/common/types/disbursement-transaction.types.js.map +1 -1
  30. package/common/types/disbursements.types.d.ts +134 -19
  31. package/common/types/disbursements.types.js +30 -3
  32. package/common/types/disbursements.types.js.map +1 -1
  33. package/common/types/exchange-provider.types.d.ts +12 -12
  34. package/common/types/file.types.d.ts +3 -0
  35. package/common/types/file.types.js +3 -0
  36. package/common/types/file.types.js.map +1 -1
  37. package/common/types/index.d.ts +3 -2
  38. package/common/types/index.js +3 -2
  39. package/common/types/index.js.map +1 -1
  40. package/common/types/individuals.types.d.ts +395 -5
  41. package/common/types/individuals.types.js +11 -14
  42. package/common/types/individuals.types.js.map +1 -1
  43. package/common/types/investor-account.types.d.ts +1 -1
  44. package/common/types/investor-account.types.js +3 -2
  45. package/common/types/investor-account.types.js.map +1 -1
  46. package/common/types/investors-offering.types.d.ts +8 -0
  47. package/common/types/investors-offering.types.js +1 -0
  48. package/common/types/investors-offering.types.js.map +1 -1
  49. package/common/types/invite.types.d.ts +5 -2
  50. package/common/types/invite.types.js +2 -1
  51. package/common/types/invite.types.js.map +1 -1
  52. package/common/types/issuer-offering.types.d.ts +200 -12
  53. package/common/types/issuer-offering.types.js +45 -31
  54. package/common/types/issuer-offering.types.js.map +1 -1
  55. package/common/types/legal-entity.types.d.ts +39 -1
  56. package/common/types/legal-entity.types.js +8 -5
  57. package/common/types/legal-entity.types.js.map +1 -1
  58. package/common/types/mail-template.types.d.ts +4 -4
  59. package/common/types/notification.types.d.ts +1 -0
  60. package/common/types/notification.types.js +3 -0
  61. package/common/types/notification.types.js.map +1 -1
  62. package/common/types/offering-submission.types.js +1 -1
  63. package/common/types/offering.types.d.ts +60 -30
  64. package/common/types/offering.types.js +78 -18
  65. package/common/types/offering.types.js.map +1 -1
  66. package/common/types/payment-methods.types.d.ts +365 -0
  67. package/common/types/payment-methods.types.js +121 -0
  68. package/common/types/payment-methods.types.js.map +1 -1
  69. package/common/types/portfolio.types.d.ts +6 -6
  70. package/common/types/reports.types.d.ts +12 -12
  71. package/common/types/review.types.js +1 -1
  72. package/common/types/review.types.js.map +1 -1
  73. package/common/types/secondary-order.types.d.ts +10 -10
  74. package/common/types/secondary-trade.types.d.ts +10 -10
  75. package/common/types/site.types.d.ts +12 -12
  76. package/common/types/state-machine.types.d.ts +3 -3
  77. package/common/types/state-machine.types.js +1 -1
  78. package/common/types/state-machine.types.js.map +1 -1
  79. package/common/types/task.types.d.ts +8 -0
  80. package/common/types/task.types.js +3 -0
  81. package/common/types/task.types.js.map +1 -1
  82. package/common/types/trade-line-item.types.d.ts +24 -0
  83. package/common/types/trade-line-item.types.js +3 -0
  84. package/common/types/trade-line-item.types.js.map +1 -1
  85. package/common/types/trade.types.d.ts +20 -14
  86. package/common/types/trade.types.js +17 -7
  87. package/common/types/trade.types.js.map +1 -1
  88. package/common/types/transaction.types.d.ts +24 -2
  89. package/common/types/transaction.types.js +26 -1
  90. package/common/types/transaction.types.js.map +1 -1
  91. package/common/types/user.types.d.ts +73 -95
  92. package/common/types/user.types.js +7 -26
  93. package/common/types/user.types.js.map +1 -1
  94. package/common/types/zapier.types.d.ts +126 -0
  95. package/common/types/zapier.types.js +247 -0
  96. package/common/types/zapier.types.js.map +1 -0
  97. package/contracts/clients/csv/index.d.ts +1988 -0
  98. package/contracts/clients/csv/index.js +96 -0
  99. package/contracts/clients/csv/index.js.map +1 -0
  100. package/contracts/clients/index.d.ts +3949 -1061
  101. package/contracts/clients/index.js +8 -2
  102. package/contracts/clients/index.js.map +1 -1
  103. package/contracts/clients/individuals/index.d.ts +381 -5
  104. package/contracts/clients/legal-entities/index.d.ts +1 -1
  105. package/contracts/clients/offerings/index.d.ts +20 -5
  106. package/contracts/clients/review/index.d.ts +85 -0
  107. package/contracts/clients/review/index.js +27 -0
  108. package/contracts/clients/review/index.js.map +1 -0
  109. package/contracts/clients/webhooks/index.d.ts +506 -0
  110. package/contracts/clients/webhooks/index.js +118 -0
  111. package/contracts/clients/webhooks/index.js.map +1 -0
  112. package/package.json +1 -1
@@ -1,13 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { OfferingType, ManagedByType, OfferingVersioningType, ComplianceReview, DurationType, AssetType, HttpMethod, WarrantSharesCalculationMethod } 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>;
@@ -339,6 +333,8 @@ export declare const IIssuerOffering: z.ZodObject<{
339
333
  calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
340
334
  incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
341
335
  fullyDilutedShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
336
+ shareClassId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
+ soldOut: z.ZodOptional<z.ZodBoolean>;
342
338
  }, "strip", z.ZodTypeAny, {
343
339
  type: OfferingType | null;
344
340
  id: string;
@@ -415,6 +411,7 @@ export declare const IIssuerOffering: z.ZodObject<{
415
411
  allowPendingComplianceReview: boolean;
416
412
  __entity?: string | undefined;
417
413
  } | null | undefined;
414
+ soldOut?: boolean | undefined;
418
415
  issuer?: any;
419
416
  coverArtId?: string | null | undefined;
420
417
  coverArt?: any;
@@ -462,6 +459,7 @@ export declare const IIssuerOffering: z.ZodObject<{
462
459
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
463
460
  incrementThreshold?: number | null | undefined;
464
461
  fullyDilutedShares?: number | null | undefined;
462
+ shareClassId?: string | null | undefined;
465
463
  }, {
466
464
  type: OfferingType | null;
467
465
  id: string;
@@ -538,6 +536,7 @@ export declare const IIssuerOffering: z.ZodObject<{
538
536
  allowPendingComplianceReview: boolean;
539
537
  __entity?: string | undefined;
540
538
  } | null | undefined;
539
+ soldOut?: boolean | undefined;
541
540
  issuer?: any;
542
541
  coverArtId?: string | null | undefined;
543
542
  coverArt?: any;
@@ -585,6 +584,7 @@ export declare const IIssuerOffering: z.ZodObject<{
585
584
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
586
585
  incrementThreshold?: number | null | undefined;
587
586
  fullyDilutedShares?: number | null | undefined;
587
+ shareClassId?: string | null | undefined;
588
588
  }>;
589
589
  export type IIssuerOffering = z.infer<typeof IIssuerOffering>;
590
590
  export declare const IPaginatedIssuerOffering: z.ZodObject<{
@@ -919,6 +919,8 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
919
919
  calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
920
920
  incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
921
921
  fullyDilutedShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
922
+ shareClassId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
923
+ soldOut: z.ZodOptional<z.ZodBoolean>;
922
924
  }, "strip", z.ZodTypeAny, {
923
925
  type: OfferingType | null;
924
926
  id: string;
@@ -995,6 +997,7 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
995
997
  allowPendingComplianceReview: boolean;
996
998
  __entity?: string | undefined;
997
999
  } | null | undefined;
1000
+ soldOut?: boolean | undefined;
998
1001
  issuer?: any;
999
1002
  coverArtId?: string | null | undefined;
1000
1003
  coverArt?: any;
@@ -1042,6 +1045,7 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
1042
1045
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1043
1046
  incrementThreshold?: number | null | undefined;
1044
1047
  fullyDilutedShares?: number | null | undefined;
1048
+ shareClassId?: string | null | undefined;
1045
1049
  }, {
1046
1050
  type: OfferingType | null;
1047
1051
  id: string;
@@ -1118,6 +1122,7 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
1118
1122
  allowPendingComplianceReview: boolean;
1119
1123
  __entity?: string | undefined;
1120
1124
  } | null | undefined;
1125
+ soldOut?: boolean | undefined;
1121
1126
  issuer?: any;
1122
1127
  coverArtId?: string | null | undefined;
1123
1128
  coverArt?: any;
@@ -1165,6 +1170,7 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
1165
1170
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1166
1171
  incrementThreshold?: number | null | undefined;
1167
1172
  fullyDilutedShares?: number | null | undefined;
1173
+ shareClassId?: string | null | undefined;
1168
1174
  }>, "many">;
1169
1175
  meta: z.ZodObject<{
1170
1176
  itemCount: z.ZodNumber;
@@ -1262,6 +1268,7 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
1262
1268
  allowPendingComplianceReview: boolean;
1263
1269
  __entity?: string | undefined;
1264
1270
  } | null | undefined;
1271
+ soldOut?: boolean | undefined;
1265
1272
  issuer?: any;
1266
1273
  coverArtId?: string | null | undefined;
1267
1274
  coverArt?: any;
@@ -1309,6 +1316,7 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
1309
1316
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1310
1317
  incrementThreshold?: number | null | undefined;
1311
1318
  fullyDilutedShares?: number | null | undefined;
1319
+ shareClassId?: string | null | undefined;
1312
1320
  }[];
1313
1321
  meta: {
1314
1322
  itemCount: number;
@@ -1394,6 +1402,7 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
1394
1402
  allowPendingComplianceReview: boolean;
1395
1403
  __entity?: string | undefined;
1396
1404
  } | null | undefined;
1405
+ soldOut?: boolean | undefined;
1397
1406
  issuer?: any;
1398
1407
  coverArtId?: string | null | undefined;
1399
1408
  coverArt?: any;
@@ -1441,6 +1450,7 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
1441
1450
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1442
1451
  incrementThreshold?: number | null | undefined;
1443
1452
  fullyDilutedShares?: number | null | undefined;
1453
+ shareClassId?: string | null | undefined;
1444
1454
  }[];
1445
1455
  meta: {
1446
1456
  itemCount: number;
@@ -1452,8 +1462,172 @@ export declare const IPaginatedIssuerOffering: z.ZodObject<{
1452
1462
  }>;
1453
1463
  export type IPaginatedIssuerOffering = z.infer<typeof IPaginatedIssuerOffering>;
1454
1464
  export declare const postOfferingRefinement: (data: PostIssuerOffering | PostComplianceOffering, ctx: z.RefinementCtx) => void;
1465
+ export declare const PostIssuerOfferingBaseObject: z.ZodObject<{
1466
+ issuerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
1467
+ shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
1468
+ name: z.ZodString;
1469
+ type: z.ZodNativeEnum<typeof OfferingType>;
1470
+ targetAmount: z.ZodNumber;
1471
+ raiseAmount: z.ZodOptional<z.ZodNumber>;
1472
+ minInvestment: z.ZodOptional<z.ZodNumber>;
1473
+ maxInvestment: z.ZodOptional<z.ZodNumber>;
1474
+ contingencyAmount: z.ZodOptional<z.ZodNumber>;
1475
+ startAt: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>;
1476
+ endAt: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>;
1477
+ active: z.ZodOptional<z.ZodBoolean>;
1478
+ cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1479
+ description: z.ZodLazy<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>>;
1480
+ managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
1481
+ assetName: z.ZodString;
1482
+ assetType: z.ZodNativeEnum<typeof AssetType>;
1483
+ pricePerUnit: z.ZodNullable<z.ZodNumber>;
1484
+ totalUnits: z.ZodNullable<z.ZodNumber>;
1485
+ yield: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1486
+ duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1487
+ durationType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof DurationType>>>;
1488
+ template: z.ZodDefault<z.ZodNativeEnum<typeof AssetTemplateType>>;
1489
+ tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1490
+ enableBonus: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1491
+ hasEscrow: z.ZodOptional<z.ZodBoolean>;
1492
+ bankAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
1493
+ escrowAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
1494
+ interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1495
+ bonusTiers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1496
+ type: z.ZodNativeEnum<typeof import("./bonus-tier.types").BonusType>;
1497
+ value: z.ZodEffects<z.ZodNumber, number, number>;
1498
+ startAmount: z.ZodEffects<z.ZodNumber, number, number>;
1499
+ endAmount: z.ZodEffects<z.ZodNumber, number, number>;
1500
+ }, "strip", z.ZodTypeAny, {
1501
+ value: number;
1502
+ type: import("./bonus-tier.types").BonusType;
1503
+ startAmount: number;
1504
+ endAmount: number;
1505
+ }, {
1506
+ value: number;
1507
+ type: import("./bonus-tier.types").BonusType;
1508
+ startAmount: number;
1509
+ endAmount: number;
1510
+ }>, {
1511
+ value: number;
1512
+ type: import("./bonus-tier.types").BonusType;
1513
+ startAmount: number;
1514
+ endAmount: number;
1515
+ }, {
1516
+ value: number;
1517
+ type: import("./bonus-tier.types").BonusType;
1518
+ startAmount: number;
1519
+ endAmount: number;
1520
+ }>, {
1521
+ value: number;
1522
+ type: import("./bonus-tier.types").BonusType;
1523
+ startAmount: number;
1524
+ endAmount: number;
1525
+ }, {
1526
+ value: number;
1527
+ type: import("./bonus-tier.types").BonusType;
1528
+ startAmount: number;
1529
+ endAmount: number;
1530
+ }>, "many">>;
1531
+ warrantsEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1532
+ totalShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1533
+ warrantTermYears: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1534
+ exercisePrice: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
1535
+ warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
1536
+ calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
1537
+ incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
1538
+ showTotalRaised: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1539
+ }, "strip", z.ZodTypeAny, {
1540
+ type: OfferingType;
1541
+ name: string;
1542
+ template: AssetTemplateType;
1543
+ targetAmount: number;
1544
+ issuerId: string;
1545
+ warrantsEnabled: boolean;
1546
+ assetName: string;
1547
+ assetType: AssetType;
1548
+ pricePerUnit: number | null;
1549
+ totalUnits: number | null;
1550
+ active?: boolean | undefined;
1551
+ managedBy?: ManagedByType | undefined;
1552
+ description?: string | null | undefined;
1553
+ raiseAmount?: number | undefined;
1554
+ minInvestment?: number | undefined;
1555
+ maxInvestment?: number | undefined;
1556
+ contingencyAmount?: number | undefined;
1557
+ startAt?: Date | null | undefined;
1558
+ endAt?: Date | null | undefined;
1559
+ cancellationPeriod?: number | null | undefined;
1560
+ showTotalRaised?: boolean | undefined;
1561
+ hasEscrow?: boolean | undefined;
1562
+ bankAccountId?: string | null | undefined;
1563
+ escrowAccountId?: string | null | undefined;
1564
+ totalShares?: number | null | undefined;
1565
+ warrantTermYears?: number | null | undefined;
1566
+ exercisePrice?: number | null | undefined;
1567
+ warrantPercentage?: number | null | undefined;
1568
+ calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1569
+ incrementThreshold?: number | null | undefined;
1570
+ shareClassId?: string | null | undefined;
1571
+ yield?: number | null | undefined;
1572
+ duration?: number | null | undefined;
1573
+ durationType?: DurationType | null | undefined;
1574
+ tiers?: number[] | null | undefined;
1575
+ enableBonus?: boolean | undefined;
1576
+ interestRate?: number | null | undefined;
1577
+ bonusTiers?: {
1578
+ value: number;
1579
+ type: import("./bonus-tier.types").BonusType;
1580
+ startAmount: number;
1581
+ endAmount: number;
1582
+ }[] | undefined;
1583
+ }, {
1584
+ type: OfferingType;
1585
+ name: string;
1586
+ targetAmount: number;
1587
+ issuerId: string;
1588
+ assetName: string;
1589
+ assetType: AssetType;
1590
+ pricePerUnit: number | null;
1591
+ totalUnits: number | null;
1592
+ active?: boolean | undefined;
1593
+ managedBy?: ManagedByType | undefined;
1594
+ description?: string | null | undefined;
1595
+ template?: AssetTemplateType | undefined;
1596
+ raiseAmount?: number | undefined;
1597
+ minInvestment?: number | undefined;
1598
+ maxInvestment?: number | undefined;
1599
+ contingencyAmount?: number | undefined;
1600
+ startAt?: string | null | undefined;
1601
+ endAt?: string | null | undefined;
1602
+ cancellationPeriod?: number | null | undefined;
1603
+ showTotalRaised?: boolean | undefined;
1604
+ hasEscrow?: boolean | undefined;
1605
+ bankAccountId?: string | null | undefined;
1606
+ escrowAccountId?: string | null | undefined;
1607
+ warrantsEnabled?: boolean | undefined;
1608
+ totalShares?: number | null | undefined;
1609
+ warrantTermYears?: number | null | undefined;
1610
+ exercisePrice?: number | null | undefined;
1611
+ warrantPercentage?: number | null | undefined;
1612
+ calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1613
+ incrementThreshold?: number | null | undefined;
1614
+ shareClassId?: string | null | undefined;
1615
+ yield?: number | null | undefined;
1616
+ duration?: number | null | undefined;
1617
+ durationType?: DurationType | null | undefined;
1618
+ tiers?: number[] | null | undefined;
1619
+ enableBonus?: boolean | undefined;
1620
+ interestRate?: number | null | undefined;
1621
+ bonusTiers?: {
1622
+ value: number;
1623
+ type: import("./bonus-tier.types").BonusType;
1624
+ startAmount: number;
1625
+ endAmount: number;
1626
+ }[] | undefined;
1627
+ }>;
1455
1628
  export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1456
1629
  issuerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
1630
+ shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
1457
1631
  name: z.ZodString;
1458
1632
  type: z.ZodNativeEnum<typeof OfferingType>;
1459
1633
  targetAmount: z.ZodNumber;
@@ -1465,7 +1639,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1465
1639
  endAt: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>;
1466
1640
  active: z.ZodOptional<z.ZodBoolean>;
1467
1641
  cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1468
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1642
+ description: z.ZodLazy<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>>;
1469
1643
  managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
1470
1644
  assetName: z.ZodString;
1471
1645
  assetType: z.ZodNativeEnum<typeof AssetType>;
@@ -1524,6 +1698,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1524
1698
  warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
1525
1699
  calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof WarrantSharesCalculationMethod>>>;
1526
1700
  incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
1701
+ showTotalRaised: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1527
1702
  }, "strip", z.ZodTypeAny, {
1528
1703
  type: OfferingType;
1529
1704
  name: string;
@@ -1545,6 +1720,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1545
1720
  startAt?: Date | null | undefined;
1546
1721
  endAt?: Date | null | undefined;
1547
1722
  cancellationPeriod?: number | null | undefined;
1723
+ showTotalRaised?: boolean | undefined;
1548
1724
  hasEscrow?: boolean | undefined;
1549
1725
  bankAccountId?: string | null | undefined;
1550
1726
  escrowAccountId?: string | null | undefined;
@@ -1554,6 +1730,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1554
1730
  warrantPercentage?: number | null | undefined;
1555
1731
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1556
1732
  incrementThreshold?: number | null | undefined;
1733
+ shareClassId?: string | null | undefined;
1557
1734
  yield?: number | null | undefined;
1558
1735
  duration?: number | null | undefined;
1559
1736
  durationType?: DurationType | null | undefined;
@@ -1586,6 +1763,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1586
1763
  startAt?: string | null | undefined;
1587
1764
  endAt?: string | null | undefined;
1588
1765
  cancellationPeriod?: number | null | undefined;
1766
+ showTotalRaised?: boolean | undefined;
1589
1767
  hasEscrow?: boolean | undefined;
1590
1768
  bankAccountId?: string | null | undefined;
1591
1769
  escrowAccountId?: string | null | undefined;
@@ -1596,6 +1774,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1596
1774
  warrantPercentage?: number | null | undefined;
1597
1775
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1598
1776
  incrementThreshold?: number | null | undefined;
1777
+ shareClassId?: string | null | undefined;
1599
1778
  yield?: number | null | undefined;
1600
1779
  duration?: number | null | undefined;
1601
1780
  durationType?: DurationType | null | undefined;
@@ -1629,6 +1808,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1629
1808
  startAt?: Date | null | undefined;
1630
1809
  endAt?: Date | null | undefined;
1631
1810
  cancellationPeriod?: number | null | undefined;
1811
+ showTotalRaised?: boolean | undefined;
1632
1812
  hasEscrow?: boolean | undefined;
1633
1813
  bankAccountId?: string | null | undefined;
1634
1814
  escrowAccountId?: string | null | undefined;
@@ -1638,6 +1818,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1638
1818
  warrantPercentage?: number | null | undefined;
1639
1819
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1640
1820
  incrementThreshold?: number | null | undefined;
1821
+ shareClassId?: string | null | undefined;
1641
1822
  yield?: number | null | undefined;
1642
1823
  duration?: number | null | undefined;
1643
1824
  durationType?: DurationType | null | undefined;
@@ -1670,6 +1851,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1670
1851
  startAt?: string | null | undefined;
1671
1852
  endAt?: string | null | undefined;
1672
1853
  cancellationPeriod?: number | null | undefined;
1854
+ showTotalRaised?: boolean | undefined;
1673
1855
  hasEscrow?: boolean | undefined;
1674
1856
  bankAccountId?: string | null | undefined;
1675
1857
  escrowAccountId?: string | null | undefined;
@@ -1680,6 +1862,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1680
1862
  warrantPercentage?: number | null | undefined;
1681
1863
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1682
1864
  incrementThreshold?: number | null | undefined;
1865
+ shareClassId?: string | null | undefined;
1683
1866
  yield?: number | null | undefined;
1684
1867
  duration?: number | null | undefined;
1685
1868
  durationType?: DurationType | null | undefined;
@@ -1695,6 +1878,7 @@ export declare const PostIssuerOffering: z.ZodEffects<z.ZodObject<{
1695
1878
  }>;
1696
1879
  export type PostIssuerOffering = z.infer<typeof PostIssuerOffering>;
1697
1880
  export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
1881
+ shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
1698
1882
  name: z.ZodOptional<z.ZodString>;
1699
1883
  type: z.ZodOptional<z.ZodNativeEnum<typeof OfferingType>>;
1700
1884
  targetAmount: z.ZodOptional<z.ZodNumber>;
@@ -1704,7 +1888,7 @@ export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
1704
1888
  startAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>>;
1705
1889
  endAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>>;
1706
1890
  cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1707
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1891
+ description: z.ZodLazy<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>>;
1708
1892
  memorandumId: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
1709
1893
  subscriptionAgreementId: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
1710
1894
  coverArtId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
@@ -1798,6 +1982,7 @@ export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
1798
1982
  warrantPercentage?: number | null | undefined;
1799
1983
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1800
1984
  incrementThreshold?: number | null | undefined;
1985
+ shareClassId?: string | null | undefined;
1801
1986
  assetName?: string | undefined;
1802
1987
  assetType?: AssetType | undefined;
1803
1988
  pricePerUnit?: number | null | undefined;
@@ -1843,6 +2028,7 @@ export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
1843
2028
  warrantPercentage?: number | null | undefined;
1844
2029
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1845
2030
  incrementThreshold?: number | null | undefined;
2031
+ shareClassId?: string | null | undefined;
1846
2032
  assetName?: string | undefined;
1847
2033
  assetType?: AssetType | undefined;
1848
2034
  pricePerUnit?: number | null | undefined;
@@ -1888,6 +2074,7 @@ export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
1888
2074
  warrantPercentage?: number | null | undefined;
1889
2075
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1890
2076
  incrementThreshold?: number | null | undefined;
2077
+ shareClassId?: string | null | undefined;
1891
2078
  assetName?: string | undefined;
1892
2079
  assetType?: AssetType | undefined;
1893
2080
  pricePerUnit?: number | null | undefined;
@@ -1933,6 +2120,7 @@ export declare const PatchIssuerOffering: z.ZodEffects<z.ZodObject<{
1933
2120
  warrantPercentage?: number | null | undefined;
1934
2121
  calculationMethod?: WarrantSharesCalculationMethod | null | undefined;
1935
2122
  incrementThreshold?: number | null | undefined;
2123
+ shareClassId?: string | null | undefined;
1936
2124
  assetName?: string | undefined;
1937
2125
  assetType?: AssetType | undefined;
1938
2126
  pricePerUnit?: number | null | undefined;
@@ -2004,10 +2192,10 @@ export declare const IssuerOfferingsFilterZod: z.ZodObject<{
2004
2192
  issuerId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
2005
2193
  type: z.ZodOptional<z.ZodNativeEnum<typeof OfferingType>>;
2006
2194
  status: z.ZodOptional<z.ZodNativeEnum<typeof ComplianceReview>>;
2195
+ complianceReview: z.ZodOptional<z.ZodNativeEnum<typeof ComplianceReview>>;
2007
2196
  enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
2008
2197
  managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
2009
2198
  versioningType: z.ZodOptional<z.ZodNativeEnum<typeof OfferingVersioningType>>;
2010
- combinedStatus: z.ZodOptional<z.ZodNativeEnum<typeof OfferingStatus>>;
2011
2199
  sortByNameASC: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>, boolean, unknown>;
2012
2200
  }, "strip", z.ZodTypeAny, {
2013
2201
  sortByNameASC: boolean;
@@ -2016,22 +2204,22 @@ export declare const IssuerOfferingsFilterZod: z.ZodObject<{
2016
2204
  accountId?: string | undefined;
2017
2205
  name?: string | undefined;
2018
2206
  managedBy?: ManagedByType | undefined;
2207
+ complianceReview?: ComplianceReview | undefined;
2019
2208
  enabled?: boolean | undefined;
2020
2209
  issuerId?: string | undefined;
2021
2210
  issuerName?: string | undefined;
2022
2211
  versioningType?: OfferingVersioningType | undefined;
2023
- combinedStatus?: OfferingStatus | undefined;
2024
2212
  }, {
2025
2213
  type?: OfferingType | undefined;
2026
2214
  status?: ComplianceReview | undefined;
2027
2215
  accountId?: string | undefined;
2028
2216
  name?: string | undefined;
2029
2217
  managedBy?: ManagedByType | undefined;
2218
+ complianceReview?: ComplianceReview | undefined;
2030
2219
  enabled?: unknown;
2031
2220
  issuerId?: string | undefined;
2032
2221
  issuerName?: string | undefined;
2033
2222
  versioningType?: OfferingVersioningType | undefined;
2034
- combinedStatus?: OfferingStatus | undefined;
2035
2223
  sortByNameASC?: unknown;
2036
2224
  }>;
2037
2225
  export type IssuerOfferingsFilterZod = z.infer<typeof IssuerOfferingsFilterZod>;
@@ -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, numberPrecisionSchema, WarrantSharesCalculationMethod, } 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,9 @@ 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 { OfferingDescriptionZod, } from './offering.types.js';
13
+ import { capShareClassIdSchema } from './cap-table.types.js';
12
14
  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
15
  export const IIssuerOffering = IBaseEntity.extend({
21
16
  name: z.string(),
22
17
  tid: z.string().nullable(),
@@ -84,6 +79,8 @@ export const IIssuerOffering = IBaseEntity.extend({
84
79
  .optional(),
85
80
  incrementThreshold: z.number().nullable().optional(),
86
81
  fullyDilutedShares: z.number().nullable().optional(),
82
+ shareClassId: z.string().nullable().optional(),
83
+ soldOut: z.boolean().optional(),
87
84
  });
88
85
  export const IPaginatedIssuerOffering = z.object({
89
86
  items: z.array(IIssuerOffering),
@@ -93,7 +90,6 @@ export const postOfferingRefinement = (data, ctx) => {
93
90
  if (data.minInvestment && data.maxInvestment) {
94
91
  if (data.minInvestment >= data.maxInvestment) {
95
92
  ctx.addIssue({
96
- path: ['minInvestment'],
97
93
  message: 'Minimum investment must be less than maximum investment.',
98
94
  code: z.ZodIssueCode.custom,
99
95
  });
@@ -111,16 +107,29 @@ export const postOfferingRefinement = (data, ctx) => {
111
107
  data.targetAmount &&
112
108
  data.targetAmount < data.maxInvestment) {
113
109
  ctx.addIssue({
114
- path: ['maxInvestment'],
115
110
  message: 'Maximum investment must be less than target amount.',
116
111
  code: z.ZodIssueCode.custom,
117
112
  });
118
113
  }
114
+ if (data.type === OfferingType.REG_CF) {
115
+ if (data.contingencyAmount === null ||
116
+ data.contingencyAmount === undefined ||
117
+ (typeof data.contingencyAmount === 'number' && data.contingencyAmount <= 0)) {
118
+ ctx.addIssue({
119
+ message: 'Contingency amount is required for REG_CF offerings.',
120
+ code: z.ZodIssueCode.custom,
121
+ });
122
+ }
123
+ }
119
124
  };
120
- export const PostIssuerOffering = z
121
- .object({
125
+ export const PostIssuerOfferingBaseObject = z.object({
122
126
  issuerId: z.lazy(() => issuerIdSchema),
123
- name: z.string().min(2).max(100).openapi({ example: 'Airbnb IPO' }),
127
+ shareClassId: z
128
+ .lazy(() => capShareClassIdSchema)
129
+ .nullable()
130
+ .optional()
131
+ .openapi({ example: 'cap_table_share_class_01j1xgme...' }),
132
+ name: z.string().min(2).max(150).openapi({ example: 'Airbnb IPO' }),
124
133
  type: z.nativeEnum(OfferingType).openapi({ example: OfferingType.REG_D }),
125
134
  targetAmount: z
126
135
  .number()
@@ -161,13 +170,7 @@ export const PostIssuerOffering = z
161
170
  .openapi({ example: 4 })
162
171
  .optional()
163
172
  .nullable(),
164
- description: z
165
- .string()
166
- .min(1)
167
- .max(5000)
168
- .optional()
169
- .nullable()
170
- .openapi({ example: 'This is a description of the offering.' }),
173
+ description: z.lazy(() => OfferingDescriptionZod),
171
174
  managedBy: z.nativeEnum(ManagedByType).optional(),
172
175
  assetName: z.string().min(2).max(50).openapi({ example: 'Asset name' }),
173
176
  assetType: z.nativeEnum(AssetType).openapi({ example: AssetType.STOCK }),
@@ -263,8 +266,9 @@ export const PostIssuerOffering = z
263
266
  .nullable()
264
267
  .optional()
265
268
  .openapi({ example: 10 }),
266
- })
267
- .superRefine((data, ctx) => {
269
+ showTotalRaised: z.boolean().default(true).optional(),
270
+ });
271
+ export const PostIssuerOffering = PostIssuerOfferingBaseObject.superRefine((data, ctx) => {
268
272
  postOfferingRefinement(data, ctx);
269
273
  postAssetRefinement(data, ctx);
270
274
  escrowValidationRefinement(data, ctx, HttpMethod.POST);
@@ -273,10 +277,15 @@ export const PostIssuerOffering = z
273
277
  });
274
278
  export const PatchIssuerOffering = z
275
279
  .object({
280
+ shareClassId: z
281
+ .lazy(() => capShareClassIdSchema)
282
+ .nullable()
283
+ .optional()
284
+ .openapi({ example: 'cap_table_share_class_01j1xgme...' }),
276
285
  name: z
277
286
  .string()
278
287
  .min(2)
279
- .max(100)
288
+ .max(150, { message: 'Name must be 150 characters or less' })
280
289
  .optional()
281
290
  .openapi({ example: 'Airbnb IPO' }),
282
291
  type: z
@@ -322,13 +331,7 @@ export const PatchIssuerOffering = z
322
331
  .optional()
323
332
  .openapi({ example: 4 })
324
333
  .nullable(),
325
- description: z
326
- .string()
327
- .min(1)
328
- .max(5000)
329
- .optional()
330
- .nullable()
331
- .openapi({ example: 'This is a description of the offering.' }),
334
+ description: z.lazy(() => OfferingDescriptionZod),
332
335
  memorandumId: z
333
336
  .lazy(() => fileIdSchema)
334
337
  .optional()
@@ -447,6 +450,16 @@ export const PatchIssuerOffering = z
447
450
  .openapi({ example: 10 }),
448
451
  })
449
452
  .superRefine((data, ctx) => {
453
+ if (data.type === OfferingType.REG_CF) {
454
+ if (data.contingencyAmount === null ||
455
+ data.contingencyAmount === undefined ||
456
+ (typeof data.contingencyAmount === 'number' && data.contingencyAmount <= 0)) {
457
+ ctx.addIssue({
458
+ code: z.ZodIssueCode.custom,
459
+ message: 'Contingency amount is required for REG_CF offerings.',
460
+ });
461
+ }
462
+ }
450
463
  // Apply escrow-specific refinements
451
464
  escrowValidationRefinement(data, ctx, HttpMethod.PATCH);
452
465
  // Apply bonus-tier-specific refinements
@@ -463,6 +476,7 @@ const issuerOfferingsInclude = z.enum([
463
476
  'onboardingReviewedBy',
464
477
  'bankAccount',
465
478
  'escrowAccount',
479
+ 'shareClass',
466
480
  ]);
467
481
  /**
468
482
  * @description Query parameters for including related entities
@@ -499,10 +513,10 @@ export const IssuerOfferingsFilterZod = z.object({
499
513
  issuerId: z.lazy(() => issuerIdSchema).optional(),
500
514
  type: z.nativeEnum(OfferingType).optional(),
501
515
  status: z.nativeEnum(ComplianceReview).optional(),
516
+ complianceReview: z.nativeEnum(ComplianceReview).optional(),
502
517
  enabled: StringToBooleanSchema.optional(),
503
518
  managedBy: z.nativeEnum(ManagedByType).optional(),
504
519
  versioningType: z.nativeEnum(OfferingVersioningType).optional(),
505
- combinedStatus: z.nativeEnum(OfferingStatus).optional(),
506
520
  sortByNameASC: z.preprocess((val) => val === 'true' || val === '1'
507
521
  ? true
508
522
  : val === 'false' || val === '0'