@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.
- package/common/constants.d.ts +43 -0
- package/common/constants.js +77 -0
- package/common/constants.js.map +1 -0
- package/common/helpers/index.d.ts +27 -0
- package/common/helpers/index.js +43 -0
- package/common/helpers/index.js.map +1 -1
- package/common/types/account-setting.types.d.ts +5 -0
- package/common/types/account.types.d.ts +6 -6
- package/common/types/account.types.js +3 -3
- package/common/types/account.types.js.map +1 -1
- package/common/types/attribution.types.d.ts +578 -0
- package/common/types/attribution.types.js +152 -0
- package/common/types/attribution.types.js.map +1 -0
- package/common/types/auth.types.d.ts +36 -0
- package/common/types/auth.types.js +3 -2
- package/common/types/auth.types.js.map +1 -1
- package/common/types/cap-table.types.d.ts +211 -39
- package/common/types/cap-table.types.js +35 -0
- package/common/types/cap-table.types.js.map +1 -1
- package/common/types/common.types.d.ts +42 -5
- package/common/types/common.types.js +24 -3
- package/common/types/common.types.js.map +1 -1
- package/common/types/comply-advantage-api.types.d.ts +12 -12
- package/common/types/csv.types.d.ts +3612 -0
- package/common/types/csv.types.js +290 -0
- package/common/types/csv.types.js.map +1 -0
- package/common/types/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 +134 -19
- package/common/types/disbursements.types.js +30 -3
- package/common/types/disbursements.types.js.map +1 -1
- package/common/types/exchange-provider.types.d.ts +12 -12
- package/common/types/file.types.d.ts +3 -0
- package/common/types/file.types.js +3 -0
- package/common/types/file.types.js.map +1 -1
- package/common/types/index.d.ts +3 -2
- package/common/types/index.js +3 -2
- package/common/types/index.js.map +1 -1
- package/common/types/individuals.types.d.ts +395 -5
- package/common/types/individuals.types.js +11 -14
- 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 +3 -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 +200 -12
- package/common/types/issuer-offering.types.js +45 -31
- package/common/types/issuer-offering.types.js.map +1 -1
- package/common/types/legal-entity.types.d.ts +39 -1
- package/common/types/legal-entity.types.js +8 -5
- package/common/types/legal-entity.types.js.map +1 -1
- package/common/types/mail-template.types.d.ts +4 -4
- package/common/types/notification.types.d.ts +1 -0
- package/common/types/notification.types.js +3 -0
- package/common/types/notification.types.js.map +1 -1
- package/common/types/offering-submission.types.js +1 -1
- package/common/types/offering.types.d.ts +60 -30
- package/common/types/offering.types.js +78 -18
- 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 +12 -12
- 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 -12
- package/common/types/state-machine.types.d.ts +3 -3
- package/common/types/state-machine.types.js +1 -1
- package/common/types/state-machine.types.js.map +1 -1
- package/common/types/task.types.d.ts +8 -0
- package/common/types/task.types.js +3 -0
- package/common/types/task.types.js.map +1 -1
- package/common/types/trade-line-item.types.d.ts +24 -0
- package/common/types/trade-line-item.types.js +3 -0
- package/common/types/trade-line-item.types.js.map +1 -1
- package/common/types/trade.types.d.ts +20 -14
- package/common/types/trade.types.js +17 -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 +73 -95
- package/common/types/user.types.js +7 -26
- package/common/types/user.types.js.map +1 -1
- package/common/types/zapier.types.d.ts +126 -0
- package/common/types/zapier.types.js +247 -0
- package/common/types/zapier.types.js.map +1 -0
- package/contracts/clients/csv/index.d.ts +1988 -0
- package/contracts/clients/csv/index.js +96 -0
- package/contracts/clients/csv/index.js.map +1 -0
- package/contracts/clients/index.d.ts +3949 -1061
- package/contracts/clients/index.js +8 -2
- package/contracts/clients/index.js.map +1 -1
- package/contracts/clients/individuals/index.d.ts +381 -5
- package/contracts/clients/legal-entities/index.d.ts +1 -1
- package/contracts/clients/offerings/index.d.ts +20 -5
- 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
|
@@ -232,8 +232,8 @@ export declare const CreateCapTableEntryZod: z.ZodObject<{
|
|
|
232
232
|
individualId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
233
|
legalEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
|
-
numberOfShares: number;
|
|
236
235
|
shareClassId: string;
|
|
236
|
+
numberOfShares: number;
|
|
237
237
|
holderType: CapTableHolderType;
|
|
238
238
|
holderName: string;
|
|
239
239
|
allocationDate: string;
|
|
@@ -245,8 +245,8 @@ export declare const CreateCapTableEntryZod: z.ZodObject<{
|
|
|
245
245
|
holderEmail?: string | null | undefined;
|
|
246
246
|
certificateNumber?: string | null | undefined;
|
|
247
247
|
}, {
|
|
248
|
-
numberOfShares: number;
|
|
249
248
|
shareClassId: string;
|
|
249
|
+
numberOfShares: number;
|
|
250
250
|
holderType: CapTableHolderType;
|
|
251
251
|
holderName: string;
|
|
252
252
|
allocationDate: string;
|
|
@@ -273,9 +273,9 @@ export declare const UpdateCapTableEntryZod: z.ZodObject<{
|
|
|
273
273
|
}, "strip", z.ZodTypeAny, {
|
|
274
274
|
status?: CapTableEntryStatus | undefined;
|
|
275
275
|
notes?: string | null | undefined;
|
|
276
|
+
shareClassId?: string | undefined;
|
|
276
277
|
pricePerShare?: number | null | undefined;
|
|
277
278
|
numberOfShares?: number | undefined;
|
|
278
|
-
shareClassId?: string | undefined;
|
|
279
279
|
holderType?: CapTableHolderType | undefined;
|
|
280
280
|
holderName?: string | undefined;
|
|
281
281
|
holderEmail?: string | null | undefined;
|
|
@@ -284,9 +284,9 @@ export declare const UpdateCapTableEntryZod: z.ZodObject<{
|
|
|
284
284
|
}, {
|
|
285
285
|
status?: CapTableEntryStatus | undefined;
|
|
286
286
|
notes?: string | null | undefined;
|
|
287
|
+
shareClassId?: string | undefined;
|
|
287
288
|
pricePerShare?: number | null | undefined;
|
|
288
289
|
numberOfShares?: number | undefined;
|
|
289
|
-
shareClassId?: string | undefined;
|
|
290
290
|
holderType?: CapTableHolderType | undefined;
|
|
291
291
|
holderName?: string | undefined;
|
|
292
292
|
holderEmail?: string | null | undefined;
|
|
@@ -316,6 +316,7 @@ export declare const CapTableEntryZod: z.ZodObject<{
|
|
|
316
316
|
investorAccountId: z.ZodNullable<z.ZodString>;
|
|
317
317
|
individualId: z.ZodNullable<z.ZodString>;
|
|
318
318
|
legalEntityId: z.ZodNullable<z.ZodString>;
|
|
319
|
+
tradeId: z.ZodNullable<z.ZodString>;
|
|
319
320
|
signingDocumentId: z.ZodNullable<z.ZodString>;
|
|
320
321
|
signingStatus: z.ZodNativeEnum<typeof CapTableSigningStatus>;
|
|
321
322
|
createdByUserId: z.ZodString;
|
|
@@ -332,10 +333,11 @@ export declare const CapTableEntryZod: z.ZodObject<{
|
|
|
332
333
|
individualId: string | null;
|
|
333
334
|
legalEntityId: string | null;
|
|
334
335
|
investorAccountId: string | null;
|
|
336
|
+
shareClassId: string;
|
|
335
337
|
pricePerShare: number | null;
|
|
338
|
+
tradeId: string | null;
|
|
336
339
|
numberOfShares: number;
|
|
337
340
|
capTableId: string;
|
|
338
|
-
shareClassId: string;
|
|
339
341
|
holderType: CapTableHolderType;
|
|
340
342
|
holderName: string;
|
|
341
343
|
holderEmail: string | null;
|
|
@@ -358,10 +360,11 @@ export declare const CapTableEntryZod: z.ZodObject<{
|
|
|
358
360
|
individualId: string | null;
|
|
359
361
|
legalEntityId: string | null;
|
|
360
362
|
investorAccountId: string | null;
|
|
363
|
+
shareClassId: string;
|
|
361
364
|
pricePerShare: number | null;
|
|
365
|
+
tradeId: string | null;
|
|
362
366
|
numberOfShares: number;
|
|
363
367
|
capTableId: string;
|
|
364
|
-
shareClassId: string;
|
|
365
368
|
holderType: CapTableHolderType;
|
|
366
369
|
holderName: string;
|
|
367
370
|
holderEmail: string | null;
|
|
@@ -398,6 +401,7 @@ export declare const IPaginatedCapTableEntry: z.ZodObject<{
|
|
|
398
401
|
investorAccountId: z.ZodNullable<z.ZodString>;
|
|
399
402
|
individualId: z.ZodNullable<z.ZodString>;
|
|
400
403
|
legalEntityId: z.ZodNullable<z.ZodString>;
|
|
404
|
+
tradeId: z.ZodNullable<z.ZodString>;
|
|
401
405
|
signingDocumentId: z.ZodNullable<z.ZodString>;
|
|
402
406
|
signingStatus: z.ZodNativeEnum<typeof CapTableSigningStatus>;
|
|
403
407
|
createdByUserId: z.ZodString;
|
|
@@ -414,10 +418,11 @@ export declare const IPaginatedCapTableEntry: z.ZodObject<{
|
|
|
414
418
|
individualId: string | null;
|
|
415
419
|
legalEntityId: string | null;
|
|
416
420
|
investorAccountId: string | null;
|
|
421
|
+
shareClassId: string;
|
|
417
422
|
pricePerShare: number | null;
|
|
423
|
+
tradeId: string | null;
|
|
418
424
|
numberOfShares: number;
|
|
419
425
|
capTableId: string;
|
|
420
|
-
shareClassId: string;
|
|
421
426
|
holderType: CapTableHolderType;
|
|
422
427
|
holderName: string;
|
|
423
428
|
holderEmail: string | null;
|
|
@@ -440,10 +445,11 @@ export declare const IPaginatedCapTableEntry: z.ZodObject<{
|
|
|
440
445
|
individualId: string | null;
|
|
441
446
|
legalEntityId: string | null;
|
|
442
447
|
investorAccountId: string | null;
|
|
448
|
+
shareClassId: string;
|
|
443
449
|
pricePerShare: number | null;
|
|
450
|
+
tradeId: string | null;
|
|
444
451
|
numberOfShares: number;
|
|
445
452
|
capTableId: string;
|
|
446
|
-
shareClassId: string;
|
|
447
453
|
holderType: CapTableHolderType;
|
|
448
454
|
holderName: string;
|
|
449
455
|
holderEmail: string | null;
|
|
@@ -487,10 +493,11 @@ export declare const IPaginatedCapTableEntry: z.ZodObject<{
|
|
|
487
493
|
individualId: string | null;
|
|
488
494
|
legalEntityId: string | null;
|
|
489
495
|
investorAccountId: string | null;
|
|
496
|
+
shareClassId: string;
|
|
490
497
|
pricePerShare: number | null;
|
|
498
|
+
tradeId: string | null;
|
|
491
499
|
numberOfShares: number;
|
|
492
500
|
capTableId: string;
|
|
493
|
-
shareClassId: string;
|
|
494
501
|
holderType: CapTableHolderType;
|
|
495
502
|
holderName: string;
|
|
496
503
|
holderEmail: string | null;
|
|
@@ -522,10 +529,11 @@ export declare const IPaginatedCapTableEntry: z.ZodObject<{
|
|
|
522
529
|
individualId: string | null;
|
|
523
530
|
legalEntityId: string | null;
|
|
524
531
|
investorAccountId: string | null;
|
|
532
|
+
shareClassId: string;
|
|
525
533
|
pricePerShare: number | null;
|
|
534
|
+
tradeId: string | null;
|
|
526
535
|
numberOfShares: number;
|
|
527
536
|
capTableId: string;
|
|
528
|
-
shareClassId: string;
|
|
529
537
|
holderType: CapTableHolderType;
|
|
530
538
|
holderName: string;
|
|
531
539
|
holderEmail: string | null;
|
|
@@ -579,15 +587,15 @@ export declare const CapTableShareClassSummaryZod: z.ZodObject<{
|
|
|
579
587
|
percentage: z.ZodNumber;
|
|
580
588
|
}, "strip", z.ZodTypeAny, {
|
|
581
589
|
totalShares: number;
|
|
582
|
-
totalAuthorized: number | null;
|
|
583
590
|
shareClassId: string;
|
|
591
|
+
totalAuthorized: number | null;
|
|
584
592
|
shareClassName: string;
|
|
585
593
|
remainingAuthorized: number | null;
|
|
586
594
|
percentage: number;
|
|
587
595
|
}, {
|
|
588
596
|
totalShares: number;
|
|
589
|
-
totalAuthorized: number | null;
|
|
590
597
|
shareClassId: string;
|
|
598
|
+
totalAuthorized: number | null;
|
|
591
599
|
shareClassName: string;
|
|
592
600
|
remainingAuthorized: number | null;
|
|
593
601
|
percentage: number;
|
|
@@ -604,15 +612,15 @@ export declare const CapTableSummaryZod: z.ZodObject<{
|
|
|
604
612
|
percentage: z.ZodNumber;
|
|
605
613
|
}, "strip", z.ZodTypeAny, {
|
|
606
614
|
totalShares: number;
|
|
607
|
-
totalAuthorized: number | null;
|
|
608
615
|
shareClassId: string;
|
|
616
|
+
totalAuthorized: number | null;
|
|
609
617
|
shareClassName: string;
|
|
610
618
|
remainingAuthorized: number | null;
|
|
611
619
|
percentage: number;
|
|
612
620
|
}, {
|
|
613
621
|
totalShares: number;
|
|
614
|
-
totalAuthorized: number | null;
|
|
615
622
|
shareClassId: string;
|
|
623
|
+
totalAuthorized: number | null;
|
|
616
624
|
shareClassName: string;
|
|
617
625
|
remainingAuthorized: number | null;
|
|
618
626
|
percentage: number;
|
|
@@ -638,8 +646,8 @@ export declare const CapTableSummaryZod: z.ZodObject<{
|
|
|
638
646
|
stockConversionRate: number | null;
|
|
639
647
|
totalSharesByClass: {
|
|
640
648
|
totalShares: number;
|
|
641
|
-
totalAuthorized: number | null;
|
|
642
649
|
shareClassId: string;
|
|
650
|
+
totalAuthorized: number | null;
|
|
643
651
|
shareClassName: string;
|
|
644
652
|
remainingAuthorized: number | null;
|
|
645
653
|
percentage: number;
|
|
@@ -657,8 +665,8 @@ export declare const CapTableSummaryZod: z.ZodObject<{
|
|
|
657
665
|
stockConversionRate: number | null;
|
|
658
666
|
totalSharesByClass: {
|
|
659
667
|
totalShares: number;
|
|
660
|
-
totalAuthorized: number | null;
|
|
661
668
|
shareClassId: string;
|
|
669
|
+
totalAuthorized: number | null;
|
|
662
670
|
shareClassName: string;
|
|
663
671
|
remainingAuthorized: number | null;
|
|
664
672
|
percentage: number;
|
|
@@ -680,20 +688,23 @@ export declare const CapTableHolderAllocationZod: z.ZodObject<{
|
|
|
680
688
|
allocationDate: z.ZodString;
|
|
681
689
|
status: z.ZodNativeEnum<typeof CapTableEntryStatus>;
|
|
682
690
|
source: z.ZodNativeEnum<typeof CapTableEntrySource>;
|
|
691
|
+
tradeId: z.ZodNullable<z.ZodString>;
|
|
683
692
|
}, "strip", z.ZodTypeAny, {
|
|
684
693
|
status: CapTableEntryStatus;
|
|
685
694
|
id: string;
|
|
686
695
|
source: CapTableEntrySource;
|
|
687
|
-
numberOfShares: number;
|
|
688
696
|
shareClassId: string;
|
|
697
|
+
tradeId: string | null;
|
|
698
|
+
numberOfShares: number;
|
|
689
699
|
allocationDate: string;
|
|
690
700
|
shareClassName: string;
|
|
691
701
|
}, {
|
|
692
702
|
status: CapTableEntryStatus;
|
|
693
703
|
id: string;
|
|
694
704
|
source: CapTableEntrySource;
|
|
695
|
-
numberOfShares: number;
|
|
696
705
|
shareClassId: string;
|
|
706
|
+
tradeId: string | null;
|
|
707
|
+
numberOfShares: number;
|
|
697
708
|
allocationDate: string;
|
|
698
709
|
shareClassName: string;
|
|
699
710
|
}>;
|
|
@@ -704,15 +715,15 @@ export declare const CapTableHolderSharesByClassZod: z.ZodObject<{
|
|
|
704
715
|
shares: z.ZodNumber;
|
|
705
716
|
percentage: z.ZodNumber;
|
|
706
717
|
}, "strip", z.ZodTypeAny, {
|
|
707
|
-
shares: number;
|
|
708
718
|
shareClassId: string;
|
|
709
719
|
shareClassName: string;
|
|
710
720
|
percentage: number;
|
|
711
|
-
}, {
|
|
712
721
|
shares: number;
|
|
722
|
+
}, {
|
|
713
723
|
shareClassId: string;
|
|
714
724
|
shareClassName: string;
|
|
715
725
|
percentage: number;
|
|
726
|
+
shares: number;
|
|
716
727
|
}>;
|
|
717
728
|
export type CapTableHolderSharesByClassZod = z.infer<typeof CapTableHolderSharesByClassZod>;
|
|
718
729
|
export declare const CapTableHolderZod: z.ZodObject<{
|
|
@@ -728,15 +739,15 @@ export declare const CapTableHolderZod: z.ZodObject<{
|
|
|
728
739
|
shares: z.ZodNumber;
|
|
729
740
|
percentage: z.ZodNumber;
|
|
730
741
|
}, "strip", z.ZodTypeAny, {
|
|
731
|
-
shares: number;
|
|
732
742
|
shareClassId: string;
|
|
733
743
|
shareClassName: string;
|
|
734
744
|
percentage: number;
|
|
735
|
-
}, {
|
|
736
745
|
shares: number;
|
|
746
|
+
}, {
|
|
737
747
|
shareClassId: string;
|
|
738
748
|
shareClassName: string;
|
|
739
749
|
percentage: number;
|
|
750
|
+
shares: number;
|
|
740
751
|
}>, "many">;
|
|
741
752
|
allocations: z.ZodArray<z.ZodObject<{
|
|
742
753
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -746,20 +757,23 @@ export declare const CapTableHolderZod: z.ZodObject<{
|
|
|
746
757
|
allocationDate: z.ZodString;
|
|
747
758
|
status: z.ZodNativeEnum<typeof CapTableEntryStatus>;
|
|
748
759
|
source: z.ZodNativeEnum<typeof CapTableEntrySource>;
|
|
760
|
+
tradeId: z.ZodNullable<z.ZodString>;
|
|
749
761
|
}, "strip", z.ZodTypeAny, {
|
|
750
762
|
status: CapTableEntryStatus;
|
|
751
763
|
id: string;
|
|
752
764
|
source: CapTableEntrySource;
|
|
753
|
-
numberOfShares: number;
|
|
754
765
|
shareClassId: string;
|
|
766
|
+
tradeId: string | null;
|
|
767
|
+
numberOfShares: number;
|
|
755
768
|
allocationDate: string;
|
|
756
769
|
shareClassName: string;
|
|
757
770
|
}, {
|
|
758
771
|
status: CapTableEntryStatus;
|
|
759
772
|
id: string;
|
|
760
773
|
source: CapTableEntrySource;
|
|
761
|
-
numberOfShares: number;
|
|
762
774
|
shareClassId: string;
|
|
775
|
+
tradeId: string | null;
|
|
776
|
+
numberOfShares: number;
|
|
763
777
|
allocationDate: string;
|
|
764
778
|
shareClassName: string;
|
|
765
779
|
}>, "many">;
|
|
@@ -770,18 +784,19 @@ export declare const CapTableHolderZod: z.ZodObject<{
|
|
|
770
784
|
holderName: string;
|
|
771
785
|
holderEmail: string | null;
|
|
772
786
|
totalSharesByClass: {
|
|
773
|
-
shares: number;
|
|
774
787
|
shareClassId: string;
|
|
775
788
|
shareClassName: string;
|
|
776
789
|
percentage: number;
|
|
790
|
+
shares: number;
|
|
777
791
|
}[];
|
|
778
792
|
holderId: string;
|
|
779
793
|
allocations: {
|
|
780
794
|
status: CapTableEntryStatus;
|
|
781
795
|
id: string;
|
|
782
796
|
source: CapTableEntrySource;
|
|
783
|
-
numberOfShares: number;
|
|
784
797
|
shareClassId: string;
|
|
798
|
+
tradeId: string | null;
|
|
799
|
+
numberOfShares: number;
|
|
785
800
|
allocationDate: string;
|
|
786
801
|
shareClassName: string;
|
|
787
802
|
}[];
|
|
@@ -792,23 +807,127 @@ export declare const CapTableHolderZod: z.ZodObject<{
|
|
|
792
807
|
holderName: string;
|
|
793
808
|
holderEmail: string | null;
|
|
794
809
|
totalSharesByClass: {
|
|
810
|
+
shareClassId: string;
|
|
811
|
+
shareClassName: string;
|
|
812
|
+
percentage: number;
|
|
795
813
|
shares: number;
|
|
814
|
+
}[];
|
|
815
|
+
holderId: string;
|
|
816
|
+
allocations: {
|
|
817
|
+
status: CapTableEntryStatus;
|
|
818
|
+
id: string;
|
|
819
|
+
source: CapTableEntrySource;
|
|
820
|
+
shareClassId: string;
|
|
821
|
+
tradeId: string | null;
|
|
822
|
+
numberOfShares: number;
|
|
823
|
+
allocationDate: string;
|
|
824
|
+
shareClassName: string;
|
|
825
|
+
}[];
|
|
826
|
+
}>;
|
|
827
|
+
export type CapTableHolderZod = z.infer<typeof CapTableHolderZod>;
|
|
828
|
+
export declare const CapTableHolderDetailZod: z.ZodObject<{
|
|
829
|
+
holderId: z.ZodString;
|
|
830
|
+
holderName: z.ZodString;
|
|
831
|
+
holderEmail: z.ZodNullable<z.ZodString>;
|
|
832
|
+
holderType: z.ZodNativeEnum<typeof CapTableHolderType>;
|
|
833
|
+
investorAccountId: z.ZodNullable<z.ZodString>;
|
|
834
|
+
totalShares: z.ZodNumber;
|
|
835
|
+
totalSharesByClass: z.ZodArray<z.ZodObject<{
|
|
836
|
+
shareClassId: z.ZodString;
|
|
837
|
+
shareClassName: z.ZodString;
|
|
838
|
+
shares: z.ZodNumber;
|
|
839
|
+
percentage: z.ZodNumber;
|
|
840
|
+
}, "strip", z.ZodTypeAny, {
|
|
841
|
+
shareClassId: string;
|
|
842
|
+
shareClassName: string;
|
|
843
|
+
percentage: number;
|
|
844
|
+
shares: number;
|
|
845
|
+
}, {
|
|
846
|
+
shareClassId: string;
|
|
847
|
+
shareClassName: string;
|
|
848
|
+
percentage: number;
|
|
849
|
+
shares: number;
|
|
850
|
+
}>, "many">;
|
|
851
|
+
allocations: z.ZodArray<z.ZodObject<{
|
|
852
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
853
|
+
shareClassId: z.ZodString;
|
|
854
|
+
shareClassName: z.ZodString;
|
|
855
|
+
numberOfShares: z.ZodNumber;
|
|
856
|
+
allocationDate: z.ZodString;
|
|
857
|
+
status: z.ZodNativeEnum<typeof CapTableEntryStatus>;
|
|
858
|
+
source: z.ZodNativeEnum<typeof CapTableEntrySource>;
|
|
859
|
+
tradeId: z.ZodNullable<z.ZodString>;
|
|
860
|
+
}, "strip", z.ZodTypeAny, {
|
|
861
|
+
status: CapTableEntryStatus;
|
|
862
|
+
id: string;
|
|
863
|
+
source: CapTableEntrySource;
|
|
864
|
+
shareClassId: string;
|
|
865
|
+
tradeId: string | null;
|
|
866
|
+
numberOfShares: number;
|
|
867
|
+
allocationDate: string;
|
|
868
|
+
shareClassName: string;
|
|
869
|
+
}, {
|
|
870
|
+
status: CapTableEntryStatus;
|
|
871
|
+
id: string;
|
|
872
|
+
source: CapTableEntrySource;
|
|
873
|
+
shareClassId: string;
|
|
874
|
+
tradeId: string | null;
|
|
875
|
+
numberOfShares: number;
|
|
876
|
+
allocationDate: string;
|
|
877
|
+
shareClassName: string;
|
|
878
|
+
}>, "many">;
|
|
879
|
+
} & {
|
|
880
|
+
ownershipPercentage: z.ZodNumber;
|
|
881
|
+
}, "strip", z.ZodTypeAny, {
|
|
882
|
+
investorAccountId: string | null;
|
|
883
|
+
totalShares: number;
|
|
884
|
+
holderType: CapTableHolderType;
|
|
885
|
+
holderName: string;
|
|
886
|
+
holderEmail: string | null;
|
|
887
|
+
totalSharesByClass: {
|
|
796
888
|
shareClassId: string;
|
|
797
889
|
shareClassName: string;
|
|
798
890
|
percentage: number;
|
|
891
|
+
shares: number;
|
|
799
892
|
}[];
|
|
800
893
|
holderId: string;
|
|
801
894
|
allocations: {
|
|
802
895
|
status: CapTableEntryStatus;
|
|
803
896
|
id: string;
|
|
804
897
|
source: CapTableEntrySource;
|
|
898
|
+
shareClassId: string;
|
|
899
|
+
tradeId: string | null;
|
|
805
900
|
numberOfShares: number;
|
|
901
|
+
allocationDate: string;
|
|
902
|
+
shareClassName: string;
|
|
903
|
+
}[];
|
|
904
|
+
ownershipPercentage: number;
|
|
905
|
+
}, {
|
|
906
|
+
investorAccountId: string | null;
|
|
907
|
+
totalShares: number;
|
|
908
|
+
holderType: CapTableHolderType;
|
|
909
|
+
holderName: string;
|
|
910
|
+
holderEmail: string | null;
|
|
911
|
+
totalSharesByClass: {
|
|
806
912
|
shareClassId: string;
|
|
913
|
+
shareClassName: string;
|
|
914
|
+
percentage: number;
|
|
915
|
+
shares: number;
|
|
916
|
+
}[];
|
|
917
|
+
holderId: string;
|
|
918
|
+
allocations: {
|
|
919
|
+
status: CapTableEntryStatus;
|
|
920
|
+
id: string;
|
|
921
|
+
source: CapTableEntrySource;
|
|
922
|
+
shareClassId: string;
|
|
923
|
+
tradeId: string | null;
|
|
924
|
+
numberOfShares: number;
|
|
807
925
|
allocationDate: string;
|
|
808
926
|
shareClassName: string;
|
|
809
927
|
}[];
|
|
928
|
+
ownershipPercentage: number;
|
|
810
929
|
}>;
|
|
811
|
-
export type
|
|
930
|
+
export type CapTableHolderDetailZod = z.infer<typeof CapTableHolderDetailZod>;
|
|
812
931
|
export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
813
932
|
items: z.ZodArray<z.ZodObject<{
|
|
814
933
|
holderId: z.ZodString;
|
|
@@ -823,15 +942,15 @@ export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
|
823
942
|
shares: z.ZodNumber;
|
|
824
943
|
percentage: z.ZodNumber;
|
|
825
944
|
}, "strip", z.ZodTypeAny, {
|
|
826
|
-
shares: number;
|
|
827
945
|
shareClassId: string;
|
|
828
946
|
shareClassName: string;
|
|
829
947
|
percentage: number;
|
|
830
|
-
}, {
|
|
831
948
|
shares: number;
|
|
949
|
+
}, {
|
|
832
950
|
shareClassId: string;
|
|
833
951
|
shareClassName: string;
|
|
834
952
|
percentage: number;
|
|
953
|
+
shares: number;
|
|
835
954
|
}>, "many">;
|
|
836
955
|
allocations: z.ZodArray<z.ZodObject<{
|
|
837
956
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -841,20 +960,23 @@ export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
|
841
960
|
allocationDate: z.ZodString;
|
|
842
961
|
status: z.ZodNativeEnum<typeof CapTableEntryStatus>;
|
|
843
962
|
source: z.ZodNativeEnum<typeof CapTableEntrySource>;
|
|
963
|
+
tradeId: z.ZodNullable<z.ZodString>;
|
|
844
964
|
}, "strip", z.ZodTypeAny, {
|
|
845
965
|
status: CapTableEntryStatus;
|
|
846
966
|
id: string;
|
|
847
967
|
source: CapTableEntrySource;
|
|
848
|
-
numberOfShares: number;
|
|
849
968
|
shareClassId: string;
|
|
969
|
+
tradeId: string | null;
|
|
970
|
+
numberOfShares: number;
|
|
850
971
|
allocationDate: string;
|
|
851
972
|
shareClassName: string;
|
|
852
973
|
}, {
|
|
853
974
|
status: CapTableEntryStatus;
|
|
854
975
|
id: string;
|
|
855
976
|
source: CapTableEntrySource;
|
|
856
|
-
numberOfShares: number;
|
|
857
977
|
shareClassId: string;
|
|
978
|
+
tradeId: string | null;
|
|
979
|
+
numberOfShares: number;
|
|
858
980
|
allocationDate: string;
|
|
859
981
|
shareClassName: string;
|
|
860
982
|
}>, "many">;
|
|
@@ -865,18 +987,19 @@ export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
|
865
987
|
holderName: string;
|
|
866
988
|
holderEmail: string | null;
|
|
867
989
|
totalSharesByClass: {
|
|
868
|
-
shares: number;
|
|
869
990
|
shareClassId: string;
|
|
870
991
|
shareClassName: string;
|
|
871
992
|
percentage: number;
|
|
993
|
+
shares: number;
|
|
872
994
|
}[];
|
|
873
995
|
holderId: string;
|
|
874
996
|
allocations: {
|
|
875
997
|
status: CapTableEntryStatus;
|
|
876
998
|
id: string;
|
|
877
999
|
source: CapTableEntrySource;
|
|
878
|
-
numberOfShares: number;
|
|
879
1000
|
shareClassId: string;
|
|
1001
|
+
tradeId: string | null;
|
|
1002
|
+
numberOfShares: number;
|
|
880
1003
|
allocationDate: string;
|
|
881
1004
|
shareClassName: string;
|
|
882
1005
|
}[];
|
|
@@ -887,18 +1010,19 @@ export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
|
887
1010
|
holderName: string;
|
|
888
1011
|
holderEmail: string | null;
|
|
889
1012
|
totalSharesByClass: {
|
|
890
|
-
shares: number;
|
|
891
1013
|
shareClassId: string;
|
|
892
1014
|
shareClassName: string;
|
|
893
1015
|
percentage: number;
|
|
1016
|
+
shares: number;
|
|
894
1017
|
}[];
|
|
895
1018
|
holderId: string;
|
|
896
1019
|
allocations: {
|
|
897
1020
|
status: CapTableEntryStatus;
|
|
898
1021
|
id: string;
|
|
899
1022
|
source: CapTableEntrySource;
|
|
900
|
-
numberOfShares: number;
|
|
901
1023
|
shareClassId: string;
|
|
1024
|
+
tradeId: string | null;
|
|
1025
|
+
numberOfShares: number;
|
|
902
1026
|
allocationDate: string;
|
|
903
1027
|
shareClassName: string;
|
|
904
1028
|
}[];
|
|
@@ -930,18 +1054,19 @@ export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
|
930
1054
|
holderName: string;
|
|
931
1055
|
holderEmail: string | null;
|
|
932
1056
|
totalSharesByClass: {
|
|
933
|
-
shares: number;
|
|
934
1057
|
shareClassId: string;
|
|
935
1058
|
shareClassName: string;
|
|
936
1059
|
percentage: number;
|
|
1060
|
+
shares: number;
|
|
937
1061
|
}[];
|
|
938
1062
|
holderId: string;
|
|
939
1063
|
allocations: {
|
|
940
1064
|
status: CapTableEntryStatus;
|
|
941
1065
|
id: string;
|
|
942
1066
|
source: CapTableEntrySource;
|
|
943
|
-
numberOfShares: number;
|
|
944
1067
|
shareClassId: string;
|
|
1068
|
+
tradeId: string | null;
|
|
1069
|
+
numberOfShares: number;
|
|
945
1070
|
allocationDate: string;
|
|
946
1071
|
shareClassName: string;
|
|
947
1072
|
}[];
|
|
@@ -961,18 +1086,19 @@ export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
|
961
1086
|
holderName: string;
|
|
962
1087
|
holderEmail: string | null;
|
|
963
1088
|
totalSharesByClass: {
|
|
964
|
-
shares: number;
|
|
965
1089
|
shareClassId: string;
|
|
966
1090
|
shareClassName: string;
|
|
967
1091
|
percentage: number;
|
|
1092
|
+
shares: number;
|
|
968
1093
|
}[];
|
|
969
1094
|
holderId: string;
|
|
970
1095
|
allocations: {
|
|
971
1096
|
status: CapTableEntryStatus;
|
|
972
1097
|
id: string;
|
|
973
1098
|
source: CapTableEntrySource;
|
|
974
|
-
numberOfShares: number;
|
|
975
1099
|
shareClassId: string;
|
|
1100
|
+
tradeId: string | null;
|
|
1101
|
+
numberOfShares: number;
|
|
976
1102
|
allocationDate: string;
|
|
977
1103
|
shareClassName: string;
|
|
978
1104
|
}[];
|
|
@@ -1137,3 +1263,49 @@ export declare const CsvImportResultZod: z.ZodObject<{
|
|
|
1137
1263
|
failedRows: number;
|
|
1138
1264
|
}>;
|
|
1139
1265
|
export type CsvImportResultZod = z.infer<typeof CsvImportResultZod>;
|
|
1266
|
+
export declare const CsvTemplateResponseZod: z.ZodObject<{
|
|
1267
|
+
template: z.ZodString;
|
|
1268
|
+
headers: z.ZodArray<z.ZodString, "many">;
|
|
1269
|
+
}, "strip", z.ZodTypeAny, {
|
|
1270
|
+
headers: string[];
|
|
1271
|
+
template: string;
|
|
1272
|
+
}, {
|
|
1273
|
+
headers: string[];
|
|
1274
|
+
template: string;
|
|
1275
|
+
}>;
|
|
1276
|
+
export type CsvTemplateResponseZod = z.infer<typeof CsvTemplateResponseZod>;
|
|
1277
|
+
export declare const InvestorHoldingZod: z.ZodObject<{
|
|
1278
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
1279
|
+
shareClassName: z.ZodString;
|
|
1280
|
+
numberOfShares: z.ZodNumber;
|
|
1281
|
+
pricePerShare: z.ZodNullable<z.ZodNumber>;
|
|
1282
|
+
allocationDate: z.ZodDate;
|
|
1283
|
+
source: z.ZodNativeEnum<typeof CapTableEntrySource>;
|
|
1284
|
+
status: z.ZodNativeEnum<typeof CapTableEntryStatus>;
|
|
1285
|
+
tradeId: z.ZodNullable<z.ZodString>;
|
|
1286
|
+
offeringName: z.ZodNullable<z.ZodString>;
|
|
1287
|
+
issuerName: z.ZodNullable<z.ZodString>;
|
|
1288
|
+
}, "strip", z.ZodTypeAny, {
|
|
1289
|
+
status: CapTableEntryStatus;
|
|
1290
|
+
id: string;
|
|
1291
|
+
source: CapTableEntrySource;
|
|
1292
|
+
pricePerShare: number | null;
|
|
1293
|
+
tradeId: string | null;
|
|
1294
|
+
numberOfShares: number;
|
|
1295
|
+
allocationDate: Date;
|
|
1296
|
+
shareClassName: string;
|
|
1297
|
+
offeringName: string | null;
|
|
1298
|
+
issuerName: string | null;
|
|
1299
|
+
}, {
|
|
1300
|
+
status: CapTableEntryStatus;
|
|
1301
|
+
id: string;
|
|
1302
|
+
source: CapTableEntrySource;
|
|
1303
|
+
pricePerShare: number | null;
|
|
1304
|
+
tradeId: string | null;
|
|
1305
|
+
numberOfShares: number;
|
|
1306
|
+
allocationDate: Date;
|
|
1307
|
+
shareClassName: string;
|
|
1308
|
+
offeringName: string | null;
|
|
1309
|
+
issuerName: string | null;
|
|
1310
|
+
}>;
|
|
1311
|
+
export type InvestorHoldingZod = z.infer<typeof InvestorHoldingZod>;
|
|
@@ -291,6 +291,7 @@ export const CapTableEntryZod = IBaseEntity.extend({
|
|
|
291
291
|
}),
|
|
292
292
|
individualId: z.string().nullable(),
|
|
293
293
|
legalEntityId: z.string().nullable(),
|
|
294
|
+
tradeId: z.string().nullable(),
|
|
294
295
|
signingDocumentId: z.string().nullable(),
|
|
295
296
|
signingStatus: z.nativeEnum(CapTableSigningStatus).openapi({
|
|
296
297
|
example: CapTableSigningStatus.NOT_REQUIRED,
|
|
@@ -355,6 +356,7 @@ export const CapTableHolderAllocationZod = z.object({
|
|
|
355
356
|
source: z.nativeEnum(CapTableEntrySource).openapi({
|
|
356
357
|
example: CapTableEntrySource.MANUAL,
|
|
357
358
|
}),
|
|
359
|
+
tradeId: z.string().nullable(),
|
|
358
360
|
});
|
|
359
361
|
export const CapTableHolderSharesByClassZod = z.object({
|
|
360
362
|
shareClassId: z.string().openapi({ example: 'cap_share_class_01j1xgme...' }),
|
|
@@ -379,6 +381,12 @@ export const CapTableHolderZod = z.object({
|
|
|
379
381
|
totalSharesByClass: z.array(CapTableHolderSharesByClassZod),
|
|
380
382
|
allocations: z.array(CapTableHolderAllocationZod),
|
|
381
383
|
});
|
|
384
|
+
export const CapTableHolderDetailZod = CapTableHolderZod.extend({
|
|
385
|
+
ownershipPercentage: z.number().openapi({
|
|
386
|
+
example: 15.5,
|
|
387
|
+
description: 'Percentage of total cap table shares owned by this holder (accepted allocations only)',
|
|
388
|
+
}),
|
|
389
|
+
});
|
|
382
390
|
export const IPaginatedCapTableHolder = z.object({
|
|
383
391
|
items: z.array(CapTableHolderZod),
|
|
384
392
|
meta: IPaginationMeta,
|
|
@@ -420,4 +428,31 @@ export const CsvImportResultZod = z.object({
|
|
|
420
428
|
message: z.string(),
|
|
421
429
|
})),
|
|
422
430
|
});
|
|
431
|
+
export const CsvTemplateResponseZod = z.object({
|
|
432
|
+
template: z.string().openapi({
|
|
433
|
+
description: 'CSV template content with headers and example rows',
|
|
434
|
+
}),
|
|
435
|
+
headers: z.array(z.string()).openapi({
|
|
436
|
+
description: 'List of valid column headers for the CSV',
|
|
437
|
+
}),
|
|
438
|
+
});
|
|
439
|
+
// ============================================================================
|
|
440
|
+
// Investor Holdings Schemas
|
|
441
|
+
// ============================================================================
|
|
442
|
+
export const InvestorHoldingZod = z.object({
|
|
443
|
+
id: capEntryIdSchema,
|
|
444
|
+
shareClassName: z.string().openapi({ example: 'Common Stock' }),
|
|
445
|
+
numberOfShares: z.number().openapi({ example: 1000 }),
|
|
446
|
+
pricePerShare: z.number().nullable().openapi({ example: 1.0 }),
|
|
447
|
+
allocationDate: z.coerce.date().openapi({ example: '2024-01-15' }),
|
|
448
|
+
source: z.nativeEnum(CapTableEntrySource).openapi({
|
|
449
|
+
example: CapTableEntrySource.TRADE,
|
|
450
|
+
}),
|
|
451
|
+
status: z.nativeEnum(CapTableEntryStatus).openapi({
|
|
452
|
+
example: CapTableEntryStatus.ACCEPTED,
|
|
453
|
+
}),
|
|
454
|
+
tradeId: z.string().nullable(),
|
|
455
|
+
offeringName: z.string().nullable().openapi({ example: 'Series A Offering' }),
|
|
456
|
+
issuerName: z.string().nullable().openapi({ example: 'Acme Corp' }),
|
|
457
|
+
});
|
|
423
458
|
//# sourceMappingURL=cap-table.types.js.map
|