@dalmore/api-contracts 0.0.0-dev.f1cb508 → 0.0.0-dev.f48e7e9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/constants.d.ts +43 -0
- package/common/constants.js +77 -0
- package/common/constants.js.map +1 -0
- package/common/helpers/index.d.ts +8 -0
- package/common/helpers/index.js +15 -0
- package/common/helpers/index.js.map +1 -1
- package/common/types/account-setting.types.d.ts +22 -66
- package/common/types/account-setting.types.js +2 -31
- package/common/types/account-setting.types.js.map +1 -1
- package/common/types/account.types.d.ts +32 -23
- package/common/types/account.types.js +4 -3
- package/common/types/account.types.js.map +1 -1
- package/common/types/activity.types.d.ts +34 -25
- package/common/types/activity.types.js +11 -0
- package/common/types/activity.types.js.map +1 -1
- package/common/types/asset.types.d.ts +25 -111
- package/common/types/asset.types.js +24 -100
- package/common/types/asset.types.js.map +1 -1
- package/common/types/auth.types.d.ts +36 -0
- package/common/types/auth.types.js +3 -2
- package/common/types/auth.types.js.map +1 -1
- package/common/types/bonus-tier.types.d.ts +0 -30
- package/common/types/cap-table.types.d.ts +177 -53
- package/common/types/cap-table.types.js +31 -0
- package/common/types/cap-table.types.js.map +1 -1
- package/common/types/common.types.d.ts +349 -6
- package/common/types/common.types.js +68 -4
- package/common/types/common.types.js.map +1 -1
- package/common/types/csv.types.d.ts +3612 -0
- package/common/types/csv.types.js +290 -0
- package/common/types/csv.types.js.map +1 -0
- package/common/types/dashboard.types.d.ts +7 -7
- package/common/types/disbursement-transaction.types.d.ts +1 -1
- package/common/types/disbursement-transaction.types.js +1 -1
- package/common/types/disbursement-transaction.types.js.map +1 -1
- package/common/types/disbursements.types.d.ts +956 -7
- package/common/types/disbursements.types.js +92 -2
- package/common/types/disbursements.types.js.map +1 -1
- package/common/types/escrow-account.types.d.ts +17 -0
- package/common/types/escrow-account.types.js +3 -0
- package/common/types/escrow-account.types.js.map +1 -1
- package/common/types/exchange-provider.types.d.ts +12 -12
- package/common/types/file.types.d.ts +33 -9
- package/common/types/file.types.js +12 -0
- package/common/types/file.types.js.map +1 -1
- package/common/types/index.d.ts +4 -0
- package/common/types/index.js +4 -0
- package/common/types/index.js.map +1 -1
- package/common/types/individuals.types.d.ts +207 -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 +1 -2
- package/common/types/investor-account.types.js.map +1 -1
- package/common/types/investors-offering.types.d.ts +8 -0
- package/common/types/investors-offering.types.js +1 -0
- package/common/types/investors-offering.types.js.map +1 -1
- package/common/types/invite.types.d.ts +5 -2
- package/common/types/invite.types.js +2 -1
- package/common/types/invite.types.js.map +1 -1
- package/common/types/issuer-offering.types.d.ts +359 -79
- package/common/types/issuer-offering.types.js +188 -63
- package/common/types/issuer-offering.types.js.map +1 -1
- package/common/types/job-item.types.d.ts +14 -14
- package/common/types/legal-entity.types.d.ts +39 -1
- package/common/types/legal-entity.types.js +8 -5
- package/common/types/legal-entity.types.js.map +1 -1
- package/common/types/note.types.d.ts +15 -15
- package/common/types/offering-submission.types.d.ts +198 -0
- package/common/types/offering-submission.types.js +17 -4
- package/common/types/offering-submission.types.js.map +1 -1
- package/common/types/offering.types.d.ts +270 -65
- package/common/types/offering.types.js +241 -55
- package/common/types/offering.types.js.map +1 -1
- package/common/types/portfolio.types.d.ts +6 -6
- package/common/types/reports.types.d.ts +345 -0
- package/common/types/reports.types.js +69 -0
- package/common/types/reports.types.js.map +1 -0
- package/common/types/review.types.js +1 -1
- package/common/types/review.types.js.map +1 -1
- package/common/types/secondary-order.types.d.ts +10 -10
- package/common/types/secondary-trade.types.d.ts +10 -10
- package/common/types/site.types.d.ts +12 -27
- package/common/types/task.types.d.ts +30 -22
- package/common/types/task.types.js +3 -0
- package/common/types/task.types.js.map +1 -1
- package/common/types/trade-line-item.types.d.ts +24 -0
- package/common/types/trade-line-item.types.js +3 -0
- package/common/types/trade-line-item.types.js.map +1 -1
- package/common/types/trade.types.d.ts +20 -14
- package/common/types/trade.types.js +18 -7
- 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 -82
- package/common/types/user.types.js +10 -23
- package/common/types/user.types.js.map +1 -1
- package/contracts/clients/assets/index.d.ts +0 -66
- package/contracts/clients/csv/index.d.ts +1800 -0
- package/contracts/clients/csv/index.js +96 -0
- package/contracts/clients/csv/index.js.map +1 -0
- package/contracts/clients/files/index.d.ts +3 -3
- package/contracts/clients/files-public/index.d.ts +3 -3
- package/contracts/clients/index.d.ts +1986 -113
- package/contracts/clients/index.js +4 -0
- package/contracts/clients/index.js.map +1 -1
- package/contracts/clients/individuals/index.d.ts +5 -5
- package/contracts/clients/legal-entities/index.d.ts +1 -1
- package/contracts/clients/offerings/index.d.ts +90 -35
- 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/package.json +1 -1
|
@@ -32,12 +32,27 @@ export declare enum CapTableSigningStatus {
|
|
|
32
32
|
export declare const capTableIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
33
33
|
export declare const capShareClassIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
34
34
|
export declare const capEntryIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
35
|
+
/**
|
|
36
|
+
* Optional issuer ID filter. Required when account has multiple issuers.
|
|
37
|
+
* All cap table endpoints should accept this to scope to a specific issuer.
|
|
38
|
+
*/
|
|
39
|
+
export declare const IssuerIdFilterQuery: z.ZodObject<{
|
|
40
|
+
issuerId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
issuerId?: string | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
issuerId?: string | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
export type IssuerIdFilterQuery = z.infer<typeof IssuerIdFilterQuery>;
|
|
35
47
|
export declare const CapTableIncludeQuery: z.ZodObject<{
|
|
36
48
|
include: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string[], string | undefined>, string[], string | undefined>;
|
|
49
|
+
issuerId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
37
50
|
}, "strip", z.ZodTypeAny, {
|
|
38
51
|
include: string[];
|
|
52
|
+
issuerId?: string | undefined;
|
|
39
53
|
}, {
|
|
40
54
|
include?: string | undefined;
|
|
55
|
+
issuerId?: string | undefined;
|
|
41
56
|
}>;
|
|
42
57
|
export declare const CapTableEntryIncludeQuery: z.ZodObject<{
|
|
43
58
|
include: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string[], string | undefined>, string[], string | undefined>;
|
|
@@ -217,8 +232,8 @@ export declare const CreateCapTableEntryZod: z.ZodObject<{
|
|
|
217
232
|
individualId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
233
|
legalEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
234
|
}, "strip", z.ZodTypeAny, {
|
|
220
|
-
numberOfShares: number;
|
|
221
235
|
shareClassId: string;
|
|
236
|
+
numberOfShares: number;
|
|
222
237
|
holderType: CapTableHolderType;
|
|
223
238
|
holderName: string;
|
|
224
239
|
allocationDate: string;
|
|
@@ -230,8 +245,8 @@ export declare const CreateCapTableEntryZod: z.ZodObject<{
|
|
|
230
245
|
holderEmail?: string | null | undefined;
|
|
231
246
|
certificateNumber?: string | null | undefined;
|
|
232
247
|
}, {
|
|
233
|
-
numberOfShares: number;
|
|
234
248
|
shareClassId: string;
|
|
249
|
+
numberOfShares: number;
|
|
235
250
|
holderType: CapTableHolderType;
|
|
236
251
|
holderName: string;
|
|
237
252
|
allocationDate: string;
|
|
@@ -258,9 +273,9 @@ export declare const UpdateCapTableEntryZod: z.ZodObject<{
|
|
|
258
273
|
}, "strip", z.ZodTypeAny, {
|
|
259
274
|
status?: CapTableEntryStatus | undefined;
|
|
260
275
|
notes?: string | null | undefined;
|
|
276
|
+
shareClassId?: string | undefined;
|
|
261
277
|
pricePerShare?: number | null | undefined;
|
|
262
278
|
numberOfShares?: number | undefined;
|
|
263
|
-
shareClassId?: string | undefined;
|
|
264
279
|
holderType?: CapTableHolderType | undefined;
|
|
265
280
|
holderName?: string | undefined;
|
|
266
281
|
holderEmail?: string | null | undefined;
|
|
@@ -269,9 +284,9 @@ export declare const UpdateCapTableEntryZod: z.ZodObject<{
|
|
|
269
284
|
}, {
|
|
270
285
|
status?: CapTableEntryStatus | undefined;
|
|
271
286
|
notes?: string | null | undefined;
|
|
287
|
+
shareClassId?: string | undefined;
|
|
272
288
|
pricePerShare?: number | null | undefined;
|
|
273
289
|
numberOfShares?: number | undefined;
|
|
274
|
-
shareClassId?: string | undefined;
|
|
275
290
|
holderType?: CapTableHolderType | undefined;
|
|
276
291
|
holderName?: string | undefined;
|
|
277
292
|
holderEmail?: string | null | undefined;
|
|
@@ -317,10 +332,10 @@ export declare const CapTableEntryZod: z.ZodObject<{
|
|
|
317
332
|
individualId: string | null;
|
|
318
333
|
legalEntityId: string | null;
|
|
319
334
|
investorAccountId: string | null;
|
|
335
|
+
shareClassId: string;
|
|
320
336
|
pricePerShare: number | null;
|
|
321
337
|
numberOfShares: number;
|
|
322
338
|
capTableId: string;
|
|
323
|
-
shareClassId: string;
|
|
324
339
|
holderType: CapTableHolderType;
|
|
325
340
|
holderName: string;
|
|
326
341
|
holderEmail: string | null;
|
|
@@ -343,10 +358,10 @@ export declare const CapTableEntryZod: z.ZodObject<{
|
|
|
343
358
|
individualId: string | null;
|
|
344
359
|
legalEntityId: string | null;
|
|
345
360
|
investorAccountId: string | null;
|
|
361
|
+
shareClassId: string;
|
|
346
362
|
pricePerShare: number | null;
|
|
347
363
|
numberOfShares: number;
|
|
348
364
|
capTableId: string;
|
|
349
|
-
shareClassId: string;
|
|
350
365
|
holderType: CapTableHolderType;
|
|
351
366
|
holderName: string;
|
|
352
367
|
holderEmail: string | null;
|
|
@@ -399,10 +414,10 @@ export declare const IPaginatedCapTableEntry: z.ZodObject<{
|
|
|
399
414
|
individualId: string | null;
|
|
400
415
|
legalEntityId: string | null;
|
|
401
416
|
investorAccountId: string | null;
|
|
417
|
+
shareClassId: string;
|
|
402
418
|
pricePerShare: number | null;
|
|
403
419
|
numberOfShares: number;
|
|
404
420
|
capTableId: string;
|
|
405
|
-
shareClassId: string;
|
|
406
421
|
holderType: CapTableHolderType;
|
|
407
422
|
holderName: string;
|
|
408
423
|
holderEmail: string | null;
|
|
@@ -425,10 +440,10 @@ export declare const IPaginatedCapTableEntry: z.ZodObject<{
|
|
|
425
440
|
individualId: string | null;
|
|
426
441
|
legalEntityId: string | null;
|
|
427
442
|
investorAccountId: string | null;
|
|
443
|
+
shareClassId: string;
|
|
428
444
|
pricePerShare: number | null;
|
|
429
445
|
numberOfShares: number;
|
|
430
446
|
capTableId: string;
|
|
431
|
-
shareClassId: string;
|
|
432
447
|
holderType: CapTableHolderType;
|
|
433
448
|
holderName: string;
|
|
434
449
|
holderEmail: string | null;
|
|
@@ -472,10 +487,10 @@ export declare const IPaginatedCapTableEntry: z.ZodObject<{
|
|
|
472
487
|
individualId: string | null;
|
|
473
488
|
legalEntityId: string | null;
|
|
474
489
|
investorAccountId: string | null;
|
|
490
|
+
shareClassId: string;
|
|
475
491
|
pricePerShare: number | null;
|
|
476
492
|
numberOfShares: number;
|
|
477
493
|
capTableId: string;
|
|
478
|
-
shareClassId: string;
|
|
479
494
|
holderType: CapTableHolderType;
|
|
480
495
|
holderName: string;
|
|
481
496
|
holderEmail: string | null;
|
|
@@ -507,10 +522,10 @@ export declare const IPaginatedCapTableEntry: z.ZodObject<{
|
|
|
507
522
|
individualId: string | null;
|
|
508
523
|
legalEntityId: string | null;
|
|
509
524
|
investorAccountId: string | null;
|
|
525
|
+
shareClassId: string;
|
|
510
526
|
pricePerShare: number | null;
|
|
511
527
|
numberOfShares: number;
|
|
512
528
|
capTableId: string;
|
|
513
|
-
shareClassId: string;
|
|
514
529
|
holderType: CapTableHolderType;
|
|
515
530
|
holderName: string;
|
|
516
531
|
holderEmail: string | null;
|
|
@@ -563,17 +578,17 @@ export declare const CapTableShareClassSummaryZod: z.ZodObject<{
|
|
|
563
578
|
remainingAuthorized: z.ZodNullable<z.ZodNumber>;
|
|
564
579
|
percentage: z.ZodNumber;
|
|
565
580
|
}, "strip", z.ZodTypeAny, {
|
|
566
|
-
|
|
581
|
+
totalShares: number;
|
|
567
582
|
shareClassId: string;
|
|
583
|
+
totalAuthorized: number | null;
|
|
568
584
|
shareClassName: string;
|
|
569
|
-
totalShares: number;
|
|
570
585
|
remainingAuthorized: number | null;
|
|
571
586
|
percentage: number;
|
|
572
587
|
}, {
|
|
573
|
-
|
|
588
|
+
totalShares: number;
|
|
574
589
|
shareClassId: string;
|
|
590
|
+
totalAuthorized: number | null;
|
|
575
591
|
shareClassName: string;
|
|
576
|
-
totalShares: number;
|
|
577
592
|
remainingAuthorized: number | null;
|
|
578
593
|
percentage: number;
|
|
579
594
|
}>;
|
|
@@ -588,17 +603,17 @@ export declare const CapTableSummaryZod: z.ZodObject<{
|
|
|
588
603
|
remainingAuthorized: z.ZodNullable<z.ZodNumber>;
|
|
589
604
|
percentage: z.ZodNumber;
|
|
590
605
|
}, "strip", z.ZodTypeAny, {
|
|
591
|
-
|
|
606
|
+
totalShares: number;
|
|
592
607
|
shareClassId: string;
|
|
608
|
+
totalAuthorized: number | null;
|
|
593
609
|
shareClassName: string;
|
|
594
|
-
totalShares: number;
|
|
595
610
|
remainingAuthorized: number | null;
|
|
596
611
|
percentage: number;
|
|
597
612
|
}, {
|
|
598
|
-
|
|
613
|
+
totalShares: number;
|
|
599
614
|
shareClassId: string;
|
|
615
|
+
totalAuthorized: number | null;
|
|
600
616
|
shareClassName: string;
|
|
601
|
-
totalShares: number;
|
|
602
617
|
remainingAuthorized: number | null;
|
|
603
618
|
percentage: number;
|
|
604
619
|
}>, "many">;
|
|
@@ -618,14 +633,14 @@ export declare const CapTableSummaryZod: z.ZodObject<{
|
|
|
618
633
|
totalAuthorizedShares: z.ZodNullable<z.ZodNumber>;
|
|
619
634
|
stockConversionRate: z.ZodNullable<z.ZodNumber>;
|
|
620
635
|
}, "strip", z.ZodTypeAny, {
|
|
636
|
+
totalShares: number;
|
|
621
637
|
totalAuthorizedShares: number | null;
|
|
622
638
|
stockConversionRate: number | null;
|
|
623
|
-
totalShares: number;
|
|
624
639
|
totalSharesByClass: {
|
|
625
|
-
|
|
640
|
+
totalShares: number;
|
|
626
641
|
shareClassId: string;
|
|
642
|
+
totalAuthorized: number | null;
|
|
627
643
|
shareClassName: string;
|
|
628
|
-
totalShares: number;
|
|
629
644
|
remainingAuthorized: number | null;
|
|
630
645
|
percentage: number;
|
|
631
646
|
}[];
|
|
@@ -637,14 +652,14 @@ export declare const CapTableSummaryZod: z.ZodObject<{
|
|
|
637
652
|
pendingAllocations: number;
|
|
638
653
|
acceptedAllocations: number;
|
|
639
654
|
}, {
|
|
655
|
+
totalShares: number;
|
|
640
656
|
totalAuthorizedShares: number | null;
|
|
641
657
|
stockConversionRate: number | null;
|
|
642
|
-
totalShares: number;
|
|
643
658
|
totalSharesByClass: {
|
|
644
|
-
|
|
659
|
+
totalShares: number;
|
|
645
660
|
shareClassId: string;
|
|
661
|
+
totalAuthorized: number | null;
|
|
646
662
|
shareClassName: string;
|
|
647
|
-
totalShares: number;
|
|
648
663
|
remainingAuthorized: number | null;
|
|
649
664
|
percentage: number;
|
|
650
665
|
}[];
|
|
@@ -669,16 +684,16 @@ export declare const CapTableHolderAllocationZod: z.ZodObject<{
|
|
|
669
684
|
status: CapTableEntryStatus;
|
|
670
685
|
id: string;
|
|
671
686
|
source: CapTableEntrySource;
|
|
672
|
-
numberOfShares: number;
|
|
673
687
|
shareClassId: string;
|
|
688
|
+
numberOfShares: number;
|
|
674
689
|
allocationDate: string;
|
|
675
690
|
shareClassName: string;
|
|
676
691
|
}, {
|
|
677
692
|
status: CapTableEntryStatus;
|
|
678
693
|
id: string;
|
|
679
694
|
source: CapTableEntrySource;
|
|
680
|
-
numberOfShares: number;
|
|
681
695
|
shareClassId: string;
|
|
696
|
+
numberOfShares: number;
|
|
682
697
|
allocationDate: string;
|
|
683
698
|
shareClassName: string;
|
|
684
699
|
}>;
|
|
@@ -689,15 +704,15 @@ export declare const CapTableHolderSharesByClassZod: z.ZodObject<{
|
|
|
689
704
|
shares: z.ZodNumber;
|
|
690
705
|
percentage: z.ZodNumber;
|
|
691
706
|
}, "strip", z.ZodTypeAny, {
|
|
692
|
-
shares: number;
|
|
693
707
|
shareClassId: string;
|
|
694
708
|
shareClassName: string;
|
|
695
709
|
percentage: number;
|
|
696
|
-
}, {
|
|
697
710
|
shares: number;
|
|
711
|
+
}, {
|
|
698
712
|
shareClassId: string;
|
|
699
713
|
shareClassName: string;
|
|
700
714
|
percentage: number;
|
|
715
|
+
shares: number;
|
|
701
716
|
}>;
|
|
702
717
|
export type CapTableHolderSharesByClassZod = z.infer<typeof CapTableHolderSharesByClassZod>;
|
|
703
718
|
export declare const CapTableHolderZod: z.ZodObject<{
|
|
@@ -713,15 +728,15 @@ export declare const CapTableHolderZod: z.ZodObject<{
|
|
|
713
728
|
shares: z.ZodNumber;
|
|
714
729
|
percentage: z.ZodNumber;
|
|
715
730
|
}, "strip", z.ZodTypeAny, {
|
|
716
|
-
shares: number;
|
|
717
731
|
shareClassId: string;
|
|
718
732
|
shareClassName: string;
|
|
719
733
|
percentage: number;
|
|
720
|
-
}, {
|
|
721
734
|
shares: number;
|
|
735
|
+
}, {
|
|
722
736
|
shareClassId: string;
|
|
723
737
|
shareClassName: string;
|
|
724
738
|
percentage: number;
|
|
739
|
+
shares: number;
|
|
725
740
|
}>, "many">;
|
|
726
741
|
allocations: z.ZodArray<z.ZodObject<{
|
|
727
742
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -735,65 +750,163 @@ export declare const CapTableHolderZod: z.ZodObject<{
|
|
|
735
750
|
status: CapTableEntryStatus;
|
|
736
751
|
id: string;
|
|
737
752
|
source: CapTableEntrySource;
|
|
738
|
-
numberOfShares: number;
|
|
739
753
|
shareClassId: string;
|
|
754
|
+
numberOfShares: number;
|
|
740
755
|
allocationDate: string;
|
|
741
756
|
shareClassName: string;
|
|
742
757
|
}, {
|
|
743
758
|
status: CapTableEntryStatus;
|
|
744
759
|
id: string;
|
|
745
760
|
source: CapTableEntrySource;
|
|
746
|
-
numberOfShares: number;
|
|
747
761
|
shareClassId: string;
|
|
762
|
+
numberOfShares: number;
|
|
748
763
|
allocationDate: string;
|
|
749
764
|
shareClassName: string;
|
|
750
765
|
}>, "many">;
|
|
751
766
|
}, "strip", z.ZodTypeAny, {
|
|
752
767
|
investorAccountId: string | null;
|
|
768
|
+
totalShares: number;
|
|
753
769
|
holderType: CapTableHolderType;
|
|
754
770
|
holderName: string;
|
|
755
771
|
holderEmail: string | null;
|
|
756
|
-
totalShares: number;
|
|
757
772
|
totalSharesByClass: {
|
|
758
|
-
shares: number;
|
|
759
773
|
shareClassId: string;
|
|
760
774
|
shareClassName: string;
|
|
761
775
|
percentage: number;
|
|
776
|
+
shares: number;
|
|
762
777
|
}[];
|
|
763
778
|
holderId: string;
|
|
764
779
|
allocations: {
|
|
765
780
|
status: CapTableEntryStatus;
|
|
766
781
|
id: string;
|
|
767
782
|
source: CapTableEntrySource;
|
|
768
|
-
numberOfShares: number;
|
|
769
783
|
shareClassId: string;
|
|
784
|
+
numberOfShares: number;
|
|
770
785
|
allocationDate: string;
|
|
771
786
|
shareClassName: string;
|
|
772
787
|
}[];
|
|
773
788
|
}, {
|
|
774
789
|
investorAccountId: string | null;
|
|
790
|
+
totalShares: number;
|
|
775
791
|
holderType: CapTableHolderType;
|
|
776
792
|
holderName: string;
|
|
777
793
|
holderEmail: string | null;
|
|
778
|
-
totalShares: number;
|
|
779
794
|
totalSharesByClass: {
|
|
795
|
+
shareClassId: string;
|
|
796
|
+
shareClassName: string;
|
|
797
|
+
percentage: number;
|
|
780
798
|
shares: number;
|
|
799
|
+
}[];
|
|
800
|
+
holderId: string;
|
|
801
|
+
allocations: {
|
|
802
|
+
status: CapTableEntryStatus;
|
|
803
|
+
id: string;
|
|
804
|
+
source: CapTableEntrySource;
|
|
805
|
+
shareClassId: string;
|
|
806
|
+
numberOfShares: number;
|
|
807
|
+
allocationDate: string;
|
|
808
|
+
shareClassName: string;
|
|
809
|
+
}[];
|
|
810
|
+
}>;
|
|
811
|
+
export type CapTableHolderZod = z.infer<typeof CapTableHolderZod>;
|
|
812
|
+
export declare const CapTableHolderDetailZod: z.ZodObject<{
|
|
813
|
+
holderId: z.ZodString;
|
|
814
|
+
holderName: z.ZodString;
|
|
815
|
+
holderEmail: z.ZodNullable<z.ZodString>;
|
|
816
|
+
holderType: z.ZodNativeEnum<typeof CapTableHolderType>;
|
|
817
|
+
investorAccountId: z.ZodNullable<z.ZodString>;
|
|
818
|
+
totalShares: z.ZodNumber;
|
|
819
|
+
totalSharesByClass: z.ZodArray<z.ZodObject<{
|
|
820
|
+
shareClassId: z.ZodString;
|
|
821
|
+
shareClassName: z.ZodString;
|
|
822
|
+
shares: z.ZodNumber;
|
|
823
|
+
percentage: z.ZodNumber;
|
|
824
|
+
}, "strip", z.ZodTypeAny, {
|
|
781
825
|
shareClassId: string;
|
|
782
826
|
shareClassName: string;
|
|
783
827
|
percentage: number;
|
|
828
|
+
shares: number;
|
|
829
|
+
}, {
|
|
830
|
+
shareClassId: string;
|
|
831
|
+
shareClassName: string;
|
|
832
|
+
percentage: number;
|
|
833
|
+
shares: number;
|
|
834
|
+
}>, "many">;
|
|
835
|
+
allocations: z.ZodArray<z.ZodObject<{
|
|
836
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
837
|
+
shareClassId: z.ZodString;
|
|
838
|
+
shareClassName: z.ZodString;
|
|
839
|
+
numberOfShares: z.ZodNumber;
|
|
840
|
+
allocationDate: z.ZodString;
|
|
841
|
+
status: z.ZodNativeEnum<typeof CapTableEntryStatus>;
|
|
842
|
+
source: z.ZodNativeEnum<typeof CapTableEntrySource>;
|
|
843
|
+
}, "strip", z.ZodTypeAny, {
|
|
844
|
+
status: CapTableEntryStatus;
|
|
845
|
+
id: string;
|
|
846
|
+
source: CapTableEntrySource;
|
|
847
|
+
shareClassId: string;
|
|
848
|
+
numberOfShares: number;
|
|
849
|
+
allocationDate: string;
|
|
850
|
+
shareClassName: string;
|
|
851
|
+
}, {
|
|
852
|
+
status: CapTableEntryStatus;
|
|
853
|
+
id: string;
|
|
854
|
+
source: CapTableEntrySource;
|
|
855
|
+
shareClassId: string;
|
|
856
|
+
numberOfShares: number;
|
|
857
|
+
allocationDate: string;
|
|
858
|
+
shareClassName: string;
|
|
859
|
+
}>, "many">;
|
|
860
|
+
} & {
|
|
861
|
+
ownershipPercentage: z.ZodNumber;
|
|
862
|
+
}, "strip", z.ZodTypeAny, {
|
|
863
|
+
investorAccountId: string | null;
|
|
864
|
+
totalShares: number;
|
|
865
|
+
holderType: CapTableHolderType;
|
|
866
|
+
holderName: string;
|
|
867
|
+
holderEmail: string | null;
|
|
868
|
+
totalSharesByClass: {
|
|
869
|
+
shareClassId: string;
|
|
870
|
+
shareClassName: string;
|
|
871
|
+
percentage: number;
|
|
872
|
+
shares: number;
|
|
784
873
|
}[];
|
|
785
874
|
holderId: string;
|
|
786
875
|
allocations: {
|
|
787
876
|
status: CapTableEntryStatus;
|
|
788
877
|
id: string;
|
|
789
878
|
source: CapTableEntrySource;
|
|
879
|
+
shareClassId: string;
|
|
790
880
|
numberOfShares: number;
|
|
881
|
+
allocationDate: string;
|
|
882
|
+
shareClassName: string;
|
|
883
|
+
}[];
|
|
884
|
+
ownershipPercentage: number;
|
|
885
|
+
}, {
|
|
886
|
+
investorAccountId: string | null;
|
|
887
|
+
totalShares: number;
|
|
888
|
+
holderType: CapTableHolderType;
|
|
889
|
+
holderName: string;
|
|
890
|
+
holderEmail: string | null;
|
|
891
|
+
totalSharesByClass: {
|
|
892
|
+
shareClassId: string;
|
|
893
|
+
shareClassName: string;
|
|
894
|
+
percentage: number;
|
|
895
|
+
shares: number;
|
|
896
|
+
}[];
|
|
897
|
+
holderId: string;
|
|
898
|
+
allocations: {
|
|
899
|
+
status: CapTableEntryStatus;
|
|
900
|
+
id: string;
|
|
901
|
+
source: CapTableEntrySource;
|
|
791
902
|
shareClassId: string;
|
|
903
|
+
numberOfShares: number;
|
|
792
904
|
allocationDate: string;
|
|
793
905
|
shareClassName: string;
|
|
794
906
|
}[];
|
|
907
|
+
ownershipPercentage: number;
|
|
795
908
|
}>;
|
|
796
|
-
export type
|
|
909
|
+
export type CapTableHolderDetailZod = z.infer<typeof CapTableHolderDetailZod>;
|
|
797
910
|
export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
798
911
|
items: z.ZodArray<z.ZodObject<{
|
|
799
912
|
holderId: z.ZodString;
|
|
@@ -808,15 +921,15 @@ export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
|
808
921
|
shares: z.ZodNumber;
|
|
809
922
|
percentage: z.ZodNumber;
|
|
810
923
|
}, "strip", z.ZodTypeAny, {
|
|
811
|
-
shares: number;
|
|
812
924
|
shareClassId: string;
|
|
813
925
|
shareClassName: string;
|
|
814
926
|
percentage: number;
|
|
815
|
-
}, {
|
|
816
927
|
shares: number;
|
|
928
|
+
}, {
|
|
817
929
|
shareClassId: string;
|
|
818
930
|
shareClassName: string;
|
|
819
931
|
percentage: number;
|
|
932
|
+
shares: number;
|
|
820
933
|
}>, "many">;
|
|
821
934
|
allocations: z.ZodArray<z.ZodObject<{
|
|
822
935
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -830,60 +943,60 @@ export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
|
830
943
|
status: CapTableEntryStatus;
|
|
831
944
|
id: string;
|
|
832
945
|
source: CapTableEntrySource;
|
|
833
|
-
numberOfShares: number;
|
|
834
946
|
shareClassId: string;
|
|
947
|
+
numberOfShares: number;
|
|
835
948
|
allocationDate: string;
|
|
836
949
|
shareClassName: string;
|
|
837
950
|
}, {
|
|
838
951
|
status: CapTableEntryStatus;
|
|
839
952
|
id: string;
|
|
840
953
|
source: CapTableEntrySource;
|
|
841
|
-
numberOfShares: number;
|
|
842
954
|
shareClassId: string;
|
|
955
|
+
numberOfShares: number;
|
|
843
956
|
allocationDate: string;
|
|
844
957
|
shareClassName: string;
|
|
845
958
|
}>, "many">;
|
|
846
959
|
}, "strip", z.ZodTypeAny, {
|
|
847
960
|
investorAccountId: string | null;
|
|
961
|
+
totalShares: number;
|
|
848
962
|
holderType: CapTableHolderType;
|
|
849
963
|
holderName: string;
|
|
850
964
|
holderEmail: string | null;
|
|
851
|
-
totalShares: number;
|
|
852
965
|
totalSharesByClass: {
|
|
853
|
-
shares: number;
|
|
854
966
|
shareClassId: string;
|
|
855
967
|
shareClassName: string;
|
|
856
968
|
percentage: number;
|
|
969
|
+
shares: number;
|
|
857
970
|
}[];
|
|
858
971
|
holderId: string;
|
|
859
972
|
allocations: {
|
|
860
973
|
status: CapTableEntryStatus;
|
|
861
974
|
id: string;
|
|
862
975
|
source: CapTableEntrySource;
|
|
863
|
-
numberOfShares: number;
|
|
864
976
|
shareClassId: string;
|
|
977
|
+
numberOfShares: number;
|
|
865
978
|
allocationDate: string;
|
|
866
979
|
shareClassName: string;
|
|
867
980
|
}[];
|
|
868
981
|
}, {
|
|
869
982
|
investorAccountId: string | null;
|
|
983
|
+
totalShares: number;
|
|
870
984
|
holderType: CapTableHolderType;
|
|
871
985
|
holderName: string;
|
|
872
986
|
holderEmail: string | null;
|
|
873
|
-
totalShares: number;
|
|
874
987
|
totalSharesByClass: {
|
|
875
|
-
shares: number;
|
|
876
988
|
shareClassId: string;
|
|
877
989
|
shareClassName: string;
|
|
878
990
|
percentage: number;
|
|
991
|
+
shares: number;
|
|
879
992
|
}[];
|
|
880
993
|
holderId: string;
|
|
881
994
|
allocations: {
|
|
882
995
|
status: CapTableEntryStatus;
|
|
883
996
|
id: string;
|
|
884
997
|
source: CapTableEntrySource;
|
|
885
|
-
numberOfShares: number;
|
|
886
998
|
shareClassId: string;
|
|
999
|
+
numberOfShares: number;
|
|
887
1000
|
allocationDate: string;
|
|
888
1001
|
shareClassName: string;
|
|
889
1002
|
}[];
|
|
@@ -910,23 +1023,23 @@ export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
|
910
1023
|
}, "strip", z.ZodTypeAny, {
|
|
911
1024
|
items: {
|
|
912
1025
|
investorAccountId: string | null;
|
|
1026
|
+
totalShares: number;
|
|
913
1027
|
holderType: CapTableHolderType;
|
|
914
1028
|
holderName: string;
|
|
915
1029
|
holderEmail: string | null;
|
|
916
|
-
totalShares: number;
|
|
917
1030
|
totalSharesByClass: {
|
|
918
|
-
shares: number;
|
|
919
1031
|
shareClassId: string;
|
|
920
1032
|
shareClassName: string;
|
|
921
1033
|
percentage: number;
|
|
1034
|
+
shares: number;
|
|
922
1035
|
}[];
|
|
923
1036
|
holderId: string;
|
|
924
1037
|
allocations: {
|
|
925
1038
|
status: CapTableEntryStatus;
|
|
926
1039
|
id: string;
|
|
927
1040
|
source: CapTableEntrySource;
|
|
928
|
-
numberOfShares: number;
|
|
929
1041
|
shareClassId: string;
|
|
1042
|
+
numberOfShares: number;
|
|
930
1043
|
allocationDate: string;
|
|
931
1044
|
shareClassName: string;
|
|
932
1045
|
}[];
|
|
@@ -941,23 +1054,23 @@ export declare const IPaginatedCapTableHolder: z.ZodObject<{
|
|
|
941
1054
|
}, {
|
|
942
1055
|
items: {
|
|
943
1056
|
investorAccountId: string | null;
|
|
1057
|
+
totalShares: number;
|
|
944
1058
|
holderType: CapTableHolderType;
|
|
945
1059
|
holderName: string;
|
|
946
1060
|
holderEmail: string | null;
|
|
947
|
-
totalShares: number;
|
|
948
1061
|
totalSharesByClass: {
|
|
949
|
-
shares: number;
|
|
950
1062
|
shareClassId: string;
|
|
951
1063
|
shareClassName: string;
|
|
952
1064
|
percentage: number;
|
|
1065
|
+
shares: number;
|
|
953
1066
|
}[];
|
|
954
1067
|
holderId: string;
|
|
955
1068
|
allocations: {
|
|
956
1069
|
status: CapTableEntryStatus;
|
|
957
1070
|
id: string;
|
|
958
1071
|
source: CapTableEntrySource;
|
|
959
|
-
numberOfShares: number;
|
|
960
1072
|
shareClassId: string;
|
|
1073
|
+
numberOfShares: number;
|
|
961
1074
|
allocationDate: string;
|
|
962
1075
|
shareClassName: string;
|
|
963
1076
|
}[];
|
|
@@ -1122,3 +1235,14 @@ export declare const CsvImportResultZod: z.ZodObject<{
|
|
|
1122
1235
|
failedRows: number;
|
|
1123
1236
|
}>;
|
|
1124
1237
|
export type CsvImportResultZod = z.infer<typeof CsvImportResultZod>;
|
|
1238
|
+
export declare const CsvTemplateResponseZod: z.ZodObject<{
|
|
1239
|
+
template: z.ZodString;
|
|
1240
|
+
headers: z.ZodArray<z.ZodString, "many">;
|
|
1241
|
+
}, "strip", z.ZodTypeAny, {
|
|
1242
|
+
headers: string[];
|
|
1243
|
+
template: string;
|
|
1244
|
+
}, {
|
|
1245
|
+
headers: string[];
|
|
1246
|
+
template: string;
|
|
1247
|
+
}>;
|
|
1248
|
+
export type CsvTemplateResponseZod = z.infer<typeof CsvTemplateResponseZod>;
|
|
@@ -80,6 +80,19 @@ export const capEntryIdSchema = z.string().refine((value) => {
|
|
|
80
80
|
message: 'Invalid cap table entry ID format. Must be a valid TypeID with "cap_table_entry" prefix.',
|
|
81
81
|
});
|
|
82
82
|
// ============================================================================
|
|
83
|
+
// Common Query Parameters
|
|
84
|
+
// ============================================================================
|
|
85
|
+
/**
|
|
86
|
+
* Optional issuer ID filter. Required when account has multiple issuers.
|
|
87
|
+
* All cap table endpoints should accept this to scope to a specific issuer.
|
|
88
|
+
*/
|
|
89
|
+
export const IssuerIdFilterQuery = z.object({
|
|
90
|
+
issuerId: issuerIdSchema.optional().openapi({
|
|
91
|
+
description: 'Filter by specific issuer ID. Required when account has multiple issuers.',
|
|
92
|
+
example: 'issuer_01j1xgme...',
|
|
93
|
+
}),
|
|
94
|
+
});
|
|
95
|
+
// ============================================================================
|
|
83
96
|
// Include Queries
|
|
84
97
|
// ============================================================================
|
|
85
98
|
const capTableInclude = z.enum(['issuer', 'shareClasses', 'entries']);
|
|
@@ -94,6 +107,10 @@ export const CapTableIncludeQuery = z.object({
|
|
|
94
107
|
.openapi({
|
|
95
108
|
example: `${capTableInclude.options.join(',')}`,
|
|
96
109
|
}),
|
|
110
|
+
issuerId: issuerIdSchema.optional().openapi({
|
|
111
|
+
description: 'Filter by specific issuer ID. Required when account has multiple issuers.',
|
|
112
|
+
example: 'issuer_01j1xgme...',
|
|
113
|
+
}),
|
|
97
114
|
});
|
|
98
115
|
const capTableEntryInclude = z.enum(['capTable', 'shareClass']);
|
|
99
116
|
export const CapTableEntryIncludeQuery = z.object({
|
|
@@ -362,6 +379,12 @@ export const CapTableHolderZod = z.object({
|
|
|
362
379
|
totalSharesByClass: z.array(CapTableHolderSharesByClassZod),
|
|
363
380
|
allocations: z.array(CapTableHolderAllocationZod),
|
|
364
381
|
});
|
|
382
|
+
export const CapTableHolderDetailZod = CapTableHolderZod.extend({
|
|
383
|
+
ownershipPercentage: z.number().openapi({
|
|
384
|
+
example: 15.5,
|
|
385
|
+
description: 'Percentage of total cap table shares owned by this holder (accepted allocations only)',
|
|
386
|
+
}),
|
|
387
|
+
});
|
|
365
388
|
export const IPaginatedCapTableHolder = z.object({
|
|
366
389
|
items: z.array(CapTableHolderZod),
|
|
367
390
|
meta: IPaginationMeta,
|
|
@@ -403,4 +426,12 @@ export const CsvImportResultZod = z.object({
|
|
|
403
426
|
message: z.string(),
|
|
404
427
|
})),
|
|
405
428
|
});
|
|
429
|
+
export const CsvTemplateResponseZod = z.object({
|
|
430
|
+
template: z.string().openapi({
|
|
431
|
+
description: 'CSV template content with headers and example rows',
|
|
432
|
+
}),
|
|
433
|
+
headers: z.array(z.string()).openapi({
|
|
434
|
+
description: 'List of valid column headers for the CSV',
|
|
435
|
+
}),
|
|
436
|
+
});
|
|
406
437
|
//# sourceMappingURL=cap-table.types.js.map
|