@dalmore/api-contracts 0.0.0-dev.685c0b3 → 0.0.0-dev.6d952b2

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 (150) 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 +46 -26
  8. package/common/types/account-setting.types.js +2 -23
  9. package/common/types/account-setting.types.js.map +1 -1
  10. package/common/types/account.types.d.ts +63 -18
  11. package/common/types/account.types.js +7 -3
  12. package/common/types/account.types.js.map +1 -1
  13. package/common/types/activity.types.d.ts +36 -25
  14. package/common/types/activity.types.js +14 -0
  15. package/common/types/activity.types.js.map +1 -1
  16. package/common/types/asset.types.d.ts +212 -0
  17. package/common/types/asset.types.js +115 -42
  18. package/common/types/asset.types.js.map +1 -1
  19. package/common/types/attribution.types.d.ts +582 -0
  20. package/common/types/attribution.types.js +126 -0
  21. package/common/types/attribution.types.js.map +1 -0
  22. package/common/types/auth.types.d.ts +37 -1
  23. package/common/types/auth.types.js +4 -3
  24. package/common/types/auth.types.js.map +1 -1
  25. package/common/types/bonus-tier.types.d.ts +15 -4
  26. package/common/types/bonus-tier.types.js +14 -7
  27. package/common/types/bonus-tier.types.js.map +1 -1
  28. package/common/types/cap-table.types.d.ts +256 -61
  29. package/common/types/cap-table.types.js +52 -0
  30. package/common/types/cap-table.types.js.map +1 -1
  31. package/common/types/cart.types.d.ts +3 -0
  32. package/common/types/cart.types.js +1 -0
  33. package/common/types/cart.types.js.map +1 -1
  34. package/common/types/common.types.d.ts +375 -9
  35. package/common/types/common.types.js +85 -4
  36. package/common/types/common.types.js.map +1 -1
  37. package/common/types/comply-advantage-api.types.d.ts +145 -478
  38. package/common/types/comply-advantage-api.types.js +24 -3
  39. package/common/types/comply-advantage-api.types.js.map +1 -1
  40. package/common/types/csv.types.d.ts +3612 -0
  41. package/common/types/csv.types.js +290 -0
  42. package/common/types/csv.types.js.map +1 -0
  43. package/common/types/dashboard.types.d.ts +7 -7
  44. package/common/types/data-record.types.d.ts +4 -4
  45. package/common/types/disbursement-transaction.types.d.ts +1 -1
  46. package/common/types/disbursement-transaction.types.js +1 -1
  47. package/common/types/disbursement-transaction.types.js.map +1 -1
  48. package/common/types/disbursements.types.d.ts +1642 -412
  49. package/common/types/disbursements.types.js +142 -3
  50. package/common/types/disbursements.types.js.map +1 -1
  51. package/common/types/escrow-account.types.d.ts +17 -0
  52. package/common/types/escrow-account.types.js +3 -0
  53. package/common/types/escrow-account.types.js.map +1 -1
  54. package/common/types/exchange-provider.types.d.ts +12 -12
  55. package/common/types/file.types.d.ts +38 -11
  56. package/common/types/file.types.js +14 -0
  57. package/common/types/file.types.js.map +1 -1
  58. package/common/types/index.d.ts +5 -2
  59. package/common/types/index.js +5 -2
  60. package/common/types/index.js.map +1 -1
  61. package/common/types/individuals.types.d.ts +395 -5
  62. package/common/types/individuals.types.js +16 -16
  63. package/common/types/individuals.types.js.map +1 -1
  64. package/common/types/investor-account.types.d.ts +5 -5
  65. package/common/types/investor-account.types.js +3 -2
  66. package/common/types/investor-account.types.js.map +1 -1
  67. package/common/types/investors-offering.types.d.ts +8 -0
  68. package/common/types/investors-offering.types.js +1 -0
  69. package/common/types/investors-offering.types.js.map +1 -1
  70. package/common/types/invite.types.d.ts +5 -2
  71. package/common/types/invite.types.js +2 -1
  72. package/common/types/invite.types.js.map +1 -1
  73. package/common/types/issuer-bank-account.types.d.ts +4 -276
  74. package/common/types/issuer-offering.types.d.ts +1007 -16
  75. package/common/types/issuer-offering.types.js +304 -43
  76. package/common/types/issuer-offering.types.js.map +1 -1
  77. package/common/types/job-item.types.d.ts +14 -14
  78. package/common/types/legal-entity.types.d.ts +39 -1
  79. package/common/types/legal-entity.types.js +8 -5
  80. package/common/types/legal-entity.types.js.map +1 -1
  81. package/common/types/mail-template.types.d.ts +85 -4
  82. package/common/types/mail-template.types.js +130 -0
  83. package/common/types/mail-template.types.js.map +1 -1
  84. package/common/types/note.types.d.ts +15 -15
  85. package/common/types/notification.types.d.ts +1 -0
  86. package/common/types/notification.types.js +3 -0
  87. package/common/types/notification.types.js.map +1 -1
  88. package/common/types/offering-submission.types.d.ts +198 -0
  89. package/common/types/offering-submission.types.js +17 -4
  90. package/common/types/offering-submission.types.js.map +1 -1
  91. package/common/types/offering.types.d.ts +555 -31
  92. package/common/types/offering.types.js +355 -28
  93. package/common/types/offering.types.js.map +1 -1
  94. package/common/types/payment-methods.types.d.ts +365 -0
  95. package/common/types/payment-methods.types.js +121 -0
  96. package/common/types/payment-methods.types.js.map +1 -1
  97. package/common/types/portfolio.types.d.ts +6 -6
  98. package/common/types/reports.types.d.ts +345 -0
  99. package/common/types/reports.types.js +69 -0
  100. package/common/types/reports.types.js.map +1 -0
  101. package/common/types/review.types.js +1 -1
  102. package/common/types/review.types.js.map +1 -1
  103. package/common/types/secondary-order.types.d.ts +10 -10
  104. package/common/types/secondary-trade.types.d.ts +10 -10
  105. package/common/types/signer.types.d.ts +23 -11
  106. package/common/types/signer.types.js +16 -1
  107. package/common/types/signer.types.js.map +1 -1
  108. package/common/types/site.types.d.ts +17 -12
  109. package/common/types/state-machine.types.d.ts +3 -3
  110. package/common/types/state-machine.types.js +1 -1
  111. package/common/types/state-machine.types.js.map +1 -1
  112. package/common/types/task.types.d.ts +30 -22
  113. package/common/types/task.types.js +3 -0
  114. package/common/types/task.types.js.map +1 -1
  115. package/common/types/trade-line-item.types.d.ts +42 -1
  116. package/common/types/trade-line-item.types.js +15 -1
  117. package/common/types/trade-line-item.types.js.map +1 -1
  118. package/common/types/trade.types.d.ts +84 -59
  119. package/common/types/trade.types.js +31 -11
  120. package/common/types/trade.types.js.map +1 -1
  121. package/common/types/transaction.types.d.ts +104 -3
  122. package/common/types/transaction.types.js +48 -3
  123. package/common/types/transaction.types.js.map +1 -1
  124. package/common/types/user.types.d.ts +108 -77
  125. package/common/types/user.types.js +10 -22
  126. package/common/types/user.types.js.map +1 -1
  127. package/common/types/zapier.types.d.ts +126 -0
  128. package/common/types/zapier.types.js +247 -0
  129. package/common/types/zapier.types.js.map +1 -0
  130. package/contracts/clients/assets/index.d.ts +22 -0
  131. package/contracts/clients/cart/index.d.ts +3 -0
  132. package/contracts/clients/csv/index.d.ts +1988 -0
  133. package/contracts/clients/csv/index.js +96 -0
  134. package/contracts/clients/csv/index.js.map +1 -0
  135. package/contracts/clients/files/index.d.ts +3 -3
  136. package/contracts/clients/files-public/index.d.ts +3 -3
  137. package/contracts/clients/index.d.ts +4265 -1060
  138. package/contracts/clients/index.js +8 -2
  139. package/contracts/clients/index.js.map +1 -1
  140. package/contracts/clients/individuals/index.d.ts +381 -5
  141. package/contracts/clients/legal-entities/index.d.ts +1 -1
  142. package/contracts/clients/offerings/index.d.ts +310 -9
  143. package/contracts/clients/review/index.d.ts +85 -0
  144. package/contracts/clients/review/index.js +27 -0
  145. package/contracts/clients/review/index.js.map +1 -0
  146. package/contracts/clients/trades/index.d.ts +9 -3
  147. package/contracts/clients/webhooks/index.d.ts +506 -0
  148. package/contracts/clients/webhooks/index.js +118 -0
  149. package/contracts/clients/webhooks/index.js.map +1 -0
  150. package/package.json +1 -1
@@ -20,8 +20,8 @@ export declare const offeringsContract: {
20
20
  enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
21
21
  managedBy: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").ManagedByType>>;
22
22
  versioningType: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").OfferingVersioningType>>;
23
- combinedStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").OfferingStatus>>;
24
23
  onboardingStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").OfferingOnboardingStatus>>;
24
+ complianceReview: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").ComplianceReview>>;
25
25
  }, "strip", z.ZodTypeAny, {
26
26
  page: number;
27
27
  limit: number;
@@ -31,12 +31,12 @@ export declare const offeringsContract: {
31
31
  accountId?: string | undefined;
32
32
  name?: string | undefined;
33
33
  managedBy?: import("../../..").ManagedByType | undefined;
34
+ complianceReview?: import("../../..").ComplianceReview | undefined;
34
35
  onboardingStatus?: import("../../..").OfferingOnboardingStatus | undefined;
35
36
  enabled?: boolean | undefined;
36
37
  issuerId?: string | undefined;
37
38
  issuerName?: string | undefined;
38
39
  versioningType?: import("../../..").OfferingVersioningType | undefined;
39
- combinedStatus?: import("../../..").OfferingStatus | undefined;
40
40
  }, {
41
41
  type?: import("../../..").OfferingType | undefined;
42
42
  status?: import("../../..").ComplianceReview | undefined;
@@ -45,13 +45,13 @@ export declare const offeringsContract: {
45
45
  managedBy?: import("../../..").ManagedByType | undefined;
46
46
  page?: number | undefined;
47
47
  limit?: number | undefined;
48
+ complianceReview?: import("../../..").ComplianceReview | undefined;
48
49
  onboardingStatus?: import("../../..").OfferingOnboardingStatus | undefined;
49
50
  include?: string | undefined;
50
51
  enabled?: unknown;
51
52
  issuerId?: string | undefined;
52
53
  issuerName?: string | undefined;
53
54
  versioningType?: import("../../..").OfferingVersioningType | undefined;
54
- combinedStatus?: import("../../..").OfferingStatus | undefined;
55
55
  }>;
56
56
  summary: "Get offerings";
57
57
  path: "offerings";
@@ -412,7 +412,8 @@ export declare const offeringsContract: {
412
412
  metadata: {
413
413
  auth: boolean;
414
414
  };
415
- body: z.ZodObject<{
415
+ body: z.ZodEffects<z.ZodObject<{
416
+ shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
416
417
  name: z.ZodOptional<z.ZodString>;
417
418
  type: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").OfferingType>>;
418
419
  targetAmount: z.ZodOptional<z.ZodNumber>;
@@ -422,11 +423,10 @@ export declare const offeringsContract: {
422
423
  startAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>>;
423
424
  endAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>>;
424
425
  cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
425
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
426
+ 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>>;
426
427
  memorandumId: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
427
428
  subscriptionAgreementId: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
428
429
  coverArtId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
429
- managedBy: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").ManagedByType>>;
430
430
  showTotalRaised: z.ZodOptional<z.ZodBoolean>;
431
431
  issuerId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
432
432
  assetName: z.ZodOptional<z.ZodString>;
@@ -440,10 +440,57 @@ export declare const offeringsContract: {
440
440
  tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
441
441
  enabled: z.ZodOptional<z.ZodBoolean>;
442
442
  enableBonus: z.ZodOptional<z.ZodBoolean>;
443
+ hasEscrow: z.ZodOptional<z.ZodBoolean>;
444
+ escrowAgreementFileId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
445
+ bankAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
446
+ escrowAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
447
+ interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
448
+ bonusTiers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
449
+ type: z.ZodNativeEnum<typeof import("../../../common/types/bonus-tier.types").BonusType>;
450
+ value: z.ZodEffects<z.ZodNumber, number, number>;
451
+ startAmount: z.ZodEffects<z.ZodNumber, number, number>;
452
+ endAmount: z.ZodEffects<z.ZodNumber, number, number>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ value: number;
455
+ type: import("../../../common/types/bonus-tier.types").BonusType;
456
+ startAmount: number;
457
+ endAmount: number;
458
+ }, {
459
+ value: number;
460
+ type: import("../../../common/types/bonus-tier.types").BonusType;
461
+ startAmount: number;
462
+ endAmount: number;
463
+ }>, {
464
+ value: number;
465
+ type: import("../../../common/types/bonus-tier.types").BonusType;
466
+ startAmount: number;
467
+ endAmount: number;
468
+ }, {
469
+ value: number;
470
+ type: import("../../../common/types/bonus-tier.types").BonusType;
471
+ startAmount: number;
472
+ endAmount: number;
473
+ }>, {
474
+ value: number;
475
+ type: import("../../../common/types/bonus-tier.types").BonusType;
476
+ startAmount: number;
477
+ endAmount: number;
478
+ }, {
479
+ value: number;
480
+ type: import("../../../common/types/bonus-tier.types").BonusType;
481
+ startAmount: number;
482
+ endAmount: number;
483
+ }>, "many">>;
484
+ warrantsEnabled: z.ZodOptional<z.ZodBoolean>;
485
+ totalShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
486
+ warrantTermYears: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
487
+ exercisePrice: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
488
+ warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
489
+ calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../..").WarrantSharesCalculationMethod>>>;
490
+ incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
443
491
  }, "strip", z.ZodTypeAny, {
444
492
  type?: import("../../..").OfferingType | undefined;
445
493
  name?: string | undefined;
446
- managedBy?: import("../../..").ManagedByType | undefined;
447
494
  description?: string | null | undefined;
448
495
  enabled?: boolean | undefined;
449
496
  template?: import("../../../common/types/asset.types").AssetTemplateType | null | undefined;
@@ -459,6 +506,18 @@ export declare const offeringsContract: {
459
506
  memorandumId?: string | null | undefined;
460
507
  subscriptionAgreementId?: string | null | undefined;
461
508
  showTotalRaised?: boolean | undefined;
509
+ hasEscrow?: boolean | undefined;
510
+ escrowAgreementFileId?: string | null | undefined;
511
+ bankAccountId?: string | null | undefined;
512
+ escrowAccountId?: string | null | undefined;
513
+ warrantsEnabled?: boolean | undefined;
514
+ totalShares?: number | null | undefined;
515
+ warrantTermYears?: number | null | undefined;
516
+ exercisePrice?: number | null | undefined;
517
+ warrantPercentage?: number | null | undefined;
518
+ calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
519
+ incrementThreshold?: number | null | undefined;
520
+ shareClassId?: string | null | undefined;
462
521
  assetName?: string | undefined;
463
522
  assetType?: import("../../..").AssetType | undefined;
464
523
  pricePerUnit?: number | null | undefined;
@@ -468,10 +527,16 @@ export declare const offeringsContract: {
468
527
  durationType?: import("../../..").DurationType | null | undefined;
469
528
  tiers?: number[] | null | undefined;
470
529
  enableBonus?: boolean | undefined;
530
+ interestRate?: number | null | undefined;
531
+ bonusTiers?: {
532
+ value: number;
533
+ type: import("../../../common/types/bonus-tier.types").BonusType;
534
+ startAmount: number;
535
+ endAmount: number;
536
+ }[] | undefined;
471
537
  }, {
472
538
  type?: import("../../..").OfferingType | undefined;
473
539
  name?: string | undefined;
474
- managedBy?: import("../../..").ManagedByType | undefined;
475
540
  description?: string | null | undefined;
476
541
  enabled?: boolean | undefined;
477
542
  template?: import("../../../common/types/asset.types").AssetTemplateType | null | undefined;
@@ -487,6 +552,110 @@ export declare const offeringsContract: {
487
552
  memorandumId?: string | null | undefined;
488
553
  subscriptionAgreementId?: string | null | undefined;
489
554
  showTotalRaised?: boolean | undefined;
555
+ hasEscrow?: boolean | undefined;
556
+ escrowAgreementFileId?: string | null | undefined;
557
+ bankAccountId?: string | null | undefined;
558
+ escrowAccountId?: string | null | undefined;
559
+ warrantsEnabled?: boolean | undefined;
560
+ totalShares?: number | null | undefined;
561
+ warrantTermYears?: number | null | undefined;
562
+ exercisePrice?: number | null | undefined;
563
+ warrantPercentage?: number | null | undefined;
564
+ calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
565
+ incrementThreshold?: number | null | undefined;
566
+ shareClassId?: string | null | undefined;
567
+ assetName?: string | undefined;
568
+ assetType?: import("../../..").AssetType | undefined;
569
+ pricePerUnit?: number | null | undefined;
570
+ totalUnits?: number | null | undefined;
571
+ yield?: number | null | undefined;
572
+ duration?: number | null | undefined;
573
+ durationType?: import("../../..").DurationType | null | undefined;
574
+ tiers?: number[] | null | undefined;
575
+ enableBonus?: boolean | undefined;
576
+ interestRate?: number | null | undefined;
577
+ bonusTiers?: {
578
+ value: number;
579
+ type: import("../../../common/types/bonus-tier.types").BonusType;
580
+ startAmount: number;
581
+ endAmount: number;
582
+ }[] | undefined;
583
+ }>, {
584
+ type?: import("../../..").OfferingType | undefined;
585
+ name?: string | undefined;
586
+ description?: string | null | undefined;
587
+ enabled?: boolean | undefined;
588
+ template?: import("../../../common/types/asset.types").AssetTemplateType | null | undefined;
589
+ coverArtId?: string | null | undefined;
590
+ targetAmount?: number | undefined;
591
+ minInvestment?: number | null | undefined;
592
+ maxInvestment?: number | null | undefined;
593
+ contingencyAmount?: number | null | undefined;
594
+ startAt?: Date | null | undefined;
595
+ endAt?: Date | null | undefined;
596
+ issuerId?: string | undefined;
597
+ cancellationPeriod?: number | null | undefined;
598
+ memorandumId?: string | null | undefined;
599
+ subscriptionAgreementId?: string | null | undefined;
600
+ showTotalRaised?: boolean | undefined;
601
+ hasEscrow?: boolean | undefined;
602
+ escrowAgreementFileId?: string | null | undefined;
603
+ bankAccountId?: string | null | undefined;
604
+ escrowAccountId?: string | null | undefined;
605
+ warrantsEnabled?: boolean | undefined;
606
+ totalShares?: number | null | undefined;
607
+ warrantTermYears?: number | null | undefined;
608
+ exercisePrice?: number | null | undefined;
609
+ warrantPercentage?: number | null | undefined;
610
+ calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
611
+ incrementThreshold?: number | null | undefined;
612
+ shareClassId?: string | null | undefined;
613
+ assetName?: string | undefined;
614
+ assetType?: import("../../..").AssetType | undefined;
615
+ pricePerUnit?: number | null | undefined;
616
+ totalUnits?: number | null | undefined;
617
+ yield?: number | null | undefined;
618
+ duration?: number | null | undefined;
619
+ durationType?: import("../../..").DurationType | null | undefined;
620
+ tiers?: number[] | null | undefined;
621
+ enableBonus?: boolean | undefined;
622
+ interestRate?: number | null | undefined;
623
+ bonusTiers?: {
624
+ value: number;
625
+ type: import("../../../common/types/bonus-tier.types").BonusType;
626
+ startAmount: number;
627
+ endAmount: number;
628
+ }[] | undefined;
629
+ }, {
630
+ type?: import("../../..").OfferingType | undefined;
631
+ name?: string | undefined;
632
+ description?: string | null | undefined;
633
+ enabled?: boolean | undefined;
634
+ template?: import("../../../common/types/asset.types").AssetTemplateType | null | undefined;
635
+ coverArtId?: string | null | undefined;
636
+ targetAmount?: number | undefined;
637
+ minInvestment?: number | null | undefined;
638
+ maxInvestment?: number | null | undefined;
639
+ contingencyAmount?: number | null | undefined;
640
+ startAt?: string | null | undefined;
641
+ endAt?: string | null | undefined;
642
+ issuerId?: string | undefined;
643
+ cancellationPeriod?: number | null | undefined;
644
+ memorandumId?: string | null | undefined;
645
+ subscriptionAgreementId?: string | null | undefined;
646
+ showTotalRaised?: boolean | undefined;
647
+ hasEscrow?: boolean | undefined;
648
+ escrowAgreementFileId?: string | null | undefined;
649
+ bankAccountId?: string | null | undefined;
650
+ escrowAccountId?: string | null | undefined;
651
+ warrantsEnabled?: boolean | undefined;
652
+ totalShares?: number | null | undefined;
653
+ warrantTermYears?: number | null | undefined;
654
+ exercisePrice?: number | null | undefined;
655
+ warrantPercentage?: number | null | undefined;
656
+ calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
657
+ incrementThreshold?: number | null | undefined;
658
+ shareClassId?: string | null | undefined;
490
659
  assetName?: string | undefined;
491
660
  assetType?: import("../../..").AssetType | undefined;
492
661
  pricePerUnit?: number | null | undefined;
@@ -496,6 +665,13 @@ export declare const offeringsContract: {
496
665
  durationType?: import("../../..").DurationType | null | undefined;
497
666
  tiers?: number[] | null | undefined;
498
667
  enableBonus?: boolean | undefined;
668
+ interestRate?: number | null | undefined;
669
+ bonusTiers?: {
670
+ value: number;
671
+ type: import("../../../common/types/bonus-tier.types").BonusType;
672
+ startAmount: number;
673
+ endAmount: number;
674
+ }[] | undefined;
499
675
  }>;
500
676
  pathParams: z.ZodObject<{
501
677
  id: z.ZodEffects<z.ZodString, string, string>;
@@ -582,6 +758,7 @@ export declare const offeringsContract: {
582
758
  };
583
759
  body: z.ZodEffects<z.ZodObject<{
584
760
  issuerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
761
+ shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
585
762
  name: z.ZodString;
586
763
  type: z.ZodNativeEnum<typeof import("../../..").OfferingType>;
587
764
  targetAmount: z.ZodNumber;
@@ -593,7 +770,7 @@ export declare const offeringsContract: {
593
770
  endAt: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>;
594
771
  active: z.ZodOptional<z.ZodBoolean>;
595
772
  cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
596
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
773
+ 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>>;
597
774
  managedBy: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").ManagedByType>>;
598
775
  assetName: z.ZodString;
599
776
  assetType: z.ZodNativeEnum<typeof import("../../..").AssetType>;
@@ -605,12 +782,61 @@ export declare const offeringsContract: {
605
782
  template: z.ZodDefault<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>>;
606
783
  tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
607
784
  enableBonus: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
785
+ hasEscrow: z.ZodOptional<z.ZodBoolean>;
786
+ bankAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
787
+ escrowAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
788
+ interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
789
+ bonusTiers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
790
+ type: z.ZodNativeEnum<typeof import("../../../common/types/bonus-tier.types").BonusType>;
791
+ value: z.ZodEffects<z.ZodNumber, number, number>;
792
+ startAmount: z.ZodEffects<z.ZodNumber, number, number>;
793
+ endAmount: z.ZodEffects<z.ZodNumber, number, number>;
794
+ }, "strip", z.ZodTypeAny, {
795
+ value: number;
796
+ type: import("../../../common/types/bonus-tier.types").BonusType;
797
+ startAmount: number;
798
+ endAmount: number;
799
+ }, {
800
+ value: number;
801
+ type: import("../../../common/types/bonus-tier.types").BonusType;
802
+ startAmount: number;
803
+ endAmount: number;
804
+ }>, {
805
+ value: number;
806
+ type: import("../../../common/types/bonus-tier.types").BonusType;
807
+ startAmount: number;
808
+ endAmount: number;
809
+ }, {
810
+ value: number;
811
+ type: import("../../../common/types/bonus-tier.types").BonusType;
812
+ startAmount: number;
813
+ endAmount: number;
814
+ }>, {
815
+ value: number;
816
+ type: import("../../../common/types/bonus-tier.types").BonusType;
817
+ startAmount: number;
818
+ endAmount: number;
819
+ }, {
820
+ value: number;
821
+ type: import("../../../common/types/bonus-tier.types").BonusType;
822
+ startAmount: number;
823
+ endAmount: number;
824
+ }>, "many">>;
825
+ warrantsEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
826
+ totalShares: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
827
+ warrantTermYears: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
828
+ exercisePrice: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
829
+ warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
830
+ calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../..").WarrantSharesCalculationMethod>>>;
831
+ incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
832
+ showTotalRaised: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
608
833
  }, "strip", z.ZodTypeAny, {
609
834
  type: import("../../..").OfferingType;
610
835
  name: string;
611
836
  template: import("../../../common/types/asset.types").AssetTemplateType;
612
837
  targetAmount: number;
613
838
  issuerId: string;
839
+ warrantsEnabled: boolean;
614
840
  assetName: string;
615
841
  assetType: import("../../..").AssetType;
616
842
  pricePerUnit: number | null;
@@ -625,11 +851,29 @@ export declare const offeringsContract: {
625
851
  startAt?: Date | null | undefined;
626
852
  endAt?: Date | null | undefined;
627
853
  cancellationPeriod?: number | null | undefined;
854
+ showTotalRaised?: boolean | undefined;
855
+ hasEscrow?: boolean | undefined;
856
+ bankAccountId?: string | null | undefined;
857
+ escrowAccountId?: string | null | undefined;
858
+ totalShares?: number | null | undefined;
859
+ warrantTermYears?: number | null | undefined;
860
+ exercisePrice?: number | null | undefined;
861
+ warrantPercentage?: number | null | undefined;
862
+ calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
863
+ incrementThreshold?: number | null | undefined;
864
+ shareClassId?: string | null | undefined;
628
865
  yield?: number | null | undefined;
629
866
  duration?: number | null | undefined;
630
867
  durationType?: import("../../..").DurationType | null | undefined;
631
868
  tiers?: number[] | null | undefined;
632
869
  enableBonus?: boolean | undefined;
870
+ interestRate?: number | null | undefined;
871
+ bonusTiers?: {
872
+ value: number;
873
+ type: import("../../../common/types/bonus-tier.types").BonusType;
874
+ startAmount: number;
875
+ endAmount: number;
876
+ }[] | undefined;
633
877
  }, {
634
878
  type: import("../../..").OfferingType;
635
879
  name: string;
@@ -650,17 +894,37 @@ export declare const offeringsContract: {
650
894
  startAt?: string | null | undefined;
651
895
  endAt?: string | null | undefined;
652
896
  cancellationPeriod?: number | null | undefined;
897
+ showTotalRaised?: boolean | undefined;
898
+ hasEscrow?: boolean | undefined;
899
+ bankAccountId?: string | null | undefined;
900
+ escrowAccountId?: string | null | undefined;
901
+ warrantsEnabled?: boolean | undefined;
902
+ totalShares?: number | null | undefined;
903
+ warrantTermYears?: number | null | undefined;
904
+ exercisePrice?: number | null | undefined;
905
+ warrantPercentage?: number | null | undefined;
906
+ calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
907
+ incrementThreshold?: number | null | undefined;
908
+ shareClassId?: string | null | undefined;
653
909
  yield?: number | null | undefined;
654
910
  duration?: number | null | undefined;
655
911
  durationType?: import("../../..").DurationType | null | undefined;
656
912
  tiers?: number[] | null | undefined;
657
913
  enableBonus?: boolean | undefined;
914
+ interestRate?: number | null | undefined;
915
+ bonusTiers?: {
916
+ value: number;
917
+ type: import("../../../common/types/bonus-tier.types").BonusType;
918
+ startAmount: number;
919
+ endAmount: number;
920
+ }[] | undefined;
658
921
  }>, {
659
922
  type: import("../../..").OfferingType;
660
923
  name: string;
661
924
  template: import("../../../common/types/asset.types").AssetTemplateType;
662
925
  targetAmount: number;
663
926
  issuerId: string;
927
+ warrantsEnabled: boolean;
664
928
  assetName: string;
665
929
  assetType: import("../../..").AssetType;
666
930
  pricePerUnit: number | null;
@@ -675,11 +939,29 @@ export declare const offeringsContract: {
675
939
  startAt?: Date | null | undefined;
676
940
  endAt?: Date | null | undefined;
677
941
  cancellationPeriod?: number | null | undefined;
942
+ showTotalRaised?: boolean | undefined;
943
+ hasEscrow?: boolean | undefined;
944
+ bankAccountId?: string | null | undefined;
945
+ escrowAccountId?: string | null | undefined;
946
+ totalShares?: number | null | undefined;
947
+ warrantTermYears?: number | null | undefined;
948
+ exercisePrice?: number | null | undefined;
949
+ warrantPercentage?: number | null | undefined;
950
+ calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
951
+ incrementThreshold?: number | null | undefined;
952
+ shareClassId?: string | null | undefined;
678
953
  yield?: number | null | undefined;
679
954
  duration?: number | null | undefined;
680
955
  durationType?: import("../../..").DurationType | null | undefined;
681
956
  tiers?: number[] | null | undefined;
682
957
  enableBonus?: boolean | undefined;
958
+ interestRate?: number | null | undefined;
959
+ bonusTiers?: {
960
+ value: number;
961
+ type: import("../../../common/types/bonus-tier.types").BonusType;
962
+ startAmount: number;
963
+ endAmount: number;
964
+ }[] | undefined;
683
965
  }, {
684
966
  type: import("../../..").OfferingType;
685
967
  name: string;
@@ -700,11 +982,30 @@ export declare const offeringsContract: {
700
982
  startAt?: string | null | undefined;
701
983
  endAt?: string | null | undefined;
702
984
  cancellationPeriod?: number | null | undefined;
985
+ showTotalRaised?: boolean | undefined;
986
+ hasEscrow?: boolean | undefined;
987
+ bankAccountId?: string | null | undefined;
988
+ escrowAccountId?: string | null | undefined;
989
+ warrantsEnabled?: boolean | undefined;
990
+ totalShares?: number | null | undefined;
991
+ warrantTermYears?: number | null | undefined;
992
+ exercisePrice?: number | null | undefined;
993
+ warrantPercentage?: number | null | undefined;
994
+ calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
995
+ incrementThreshold?: number | null | undefined;
996
+ shareClassId?: string | null | undefined;
703
997
  yield?: number | null | undefined;
704
998
  duration?: number | null | undefined;
705
999
  durationType?: import("../../..").DurationType | null | undefined;
706
1000
  tiers?: number[] | null | undefined;
707
1001
  enableBonus?: boolean | undefined;
1002
+ interestRate?: number | null | undefined;
1003
+ bonusTiers?: {
1004
+ value: number;
1005
+ type: import("../../../common/types/bonus-tier.types").BonusType;
1006
+ startAmount: number;
1007
+ endAmount: number;
1008
+ }[] | undefined;
708
1009
  }>;
709
1010
  summary: "[ADMIN] Create offering";
710
1011
  path: "offerings";
@@ -0,0 +1,85 @@
1
+ import { z } from 'zod';
2
+ export declare const reviewContract: {
3
+ postReviewKyc: {
4
+ method: "POST";
5
+ metadata: {
6
+ auth: boolean;
7
+ };
8
+ body: z.ZodObject<{
9
+ individualIds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
10
+ status: z.ZodNativeEnum<typeof import("../../..").BaseStatus>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ status: import("../../..").BaseStatus;
13
+ individualIds: string[];
14
+ }, {
15
+ status: import("../../..").BaseStatus;
16
+ individualIds: string[];
17
+ }>;
18
+ query: z.ZodObject<{
19
+ userId: z.ZodEffects<z.ZodString, string, string>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ userId: string;
22
+ }, {
23
+ userId: string;
24
+ }>;
25
+ summary: "Post KYC review for individuals";
26
+ path: "review/kyc";
27
+ responses: {
28
+ 201: z.ZodObject<{
29
+ individualsUpdated: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
30
+ status: z.ZodNativeEnum<typeof import("../../..").BaseStatus>;
31
+ reviewedBy: z.ZodString;
32
+ targetObject: z.ZodAny;
33
+ }, "strip", z.ZodTypeAny, {
34
+ status: import("../../..").BaseStatus;
35
+ reviewedBy: string;
36
+ individualsUpdated: string[];
37
+ targetObject?: any;
38
+ }, {
39
+ status: import("../../..").BaseStatus;
40
+ reviewedBy: string;
41
+ individualsUpdated: string[];
42
+ targetObject?: any;
43
+ }>;
44
+ 401: z.ZodObject<{
45
+ status: z.ZodNumber;
46
+ message: z.ZodString;
47
+ errors: z.ZodArray<z.ZodString, "many">;
48
+ }, "strip", z.ZodTypeAny, {
49
+ message: string;
50
+ status: number;
51
+ errors: string[];
52
+ }, {
53
+ message: string;
54
+ status: number;
55
+ errors: string[];
56
+ }>;
57
+ 403: z.ZodObject<{
58
+ status: z.ZodNumber;
59
+ message: z.ZodString;
60
+ errors: z.ZodArray<z.ZodString, "many">;
61
+ }, "strip", z.ZodTypeAny, {
62
+ message: string;
63
+ status: number;
64
+ errors: string[];
65
+ }, {
66
+ message: string;
67
+ status: number;
68
+ errors: string[];
69
+ }>;
70
+ 500: z.ZodObject<{
71
+ status: z.ZodNumber;
72
+ message: z.ZodString;
73
+ errors: z.ZodArray<z.ZodString, "many">;
74
+ }, "strip", z.ZodTypeAny, {
75
+ message: string;
76
+ status: number;
77
+ errors: string[];
78
+ }, {
79
+ message: string;
80
+ status: number;
81
+ errors: string[];
82
+ }>;
83
+ };
84
+ };
85
+ };
@@ -0,0 +1,27 @@
1
+ import { initContract } from '@ts-rest/core';
2
+ import { ForbiddenError, InternalError, UnauthorizedError, PostReviewBody, PostReviewResponse, userIdSchema, } from '../../../common/types/index.js';
3
+ import { z } from 'zod';
4
+ const c = initContract();
5
+ export const reviewContract = c.router({
6
+ postReviewKyc: {
7
+ summary: 'Post KYC review for individuals',
8
+ method: 'POST',
9
+ path: '/kyc',
10
+ metadata: {
11
+ auth: true,
12
+ },
13
+ query: z.object({
14
+ userId: userIdSchema,
15
+ }),
16
+ body: PostReviewBody,
17
+ responses: {
18
+ 201: PostReviewResponse,
19
+ 401: UnauthorizedError,
20
+ 403: ForbiddenError,
21
+ 500: InternalError,
22
+ },
23
+ },
24
+ }, {
25
+ pathPrefix: 'review',
26
+ });
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,YAAY,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,GAAG,YAAY,EAAE,CAAC;AAEzB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CACpC;IACE,aAAa,EAAE;QACb,OAAO,EAAE,iCAAiC;QAC1C,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE;YACR,IAAI,EAAE,IAAI;SACX;QACD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,MAAM,EAAE,YAAY;SACrB,CAAC;QACF,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE;YACT,GAAG,EAAE,kBAAkB;YACvB,GAAG,EAAE,iBAAiB;YACtB,GAAG,EAAE,cAAc;YACnB,GAAG,EAAE,aAAa;SACnB;KACF;CACF,EACD;IACE,UAAU,EAAE,QAAQ;CACrB,CACF,CAAC"}
@@ -294,7 +294,9 @@ export declare const tradesContract: {
294
294
  offeringId: z.ZodNullable<z.ZodString>;
295
295
  tid: z.ZodNullable<z.ZodString>;
296
296
  investmentType: z.ZodNativeEnum<typeof import("../../..").InvestmentType>;
297
- numberOfShares: z.ZodNumber;
297
+ purchasedShares: z.ZodNumber;
298
+ bonusShares: z.ZodNullable<z.ZodNumber>;
299
+ totalNumberOfShares: z.ZodNumber;
298
300
  pricePerShare: z.ZodNumber;
299
301
  totalAmount: z.ZodNullable<z.ZodNumber>;
300
302
  tradeStatus: z.ZodNativeEnum<typeof import("../../..").TradeStatus>;
@@ -313,7 +315,9 @@ export declare const tradesContract: {
313
315
  investorAccountId: string | null;
314
316
  paymentMethodId: string | null;
315
317
  investmentType: import("../../..").InvestmentType;
316
- numberOfShares: number;
318
+ purchasedShares: number;
319
+ bonusShares: number | null;
320
+ totalNumberOfShares: number;
317
321
  pricePerShare: number;
318
322
  totalAmount: number | null;
319
323
  tradeStatusUnmapped: string | null;
@@ -331,7 +335,9 @@ export declare const tradesContract: {
331
335
  investorAccountId: string | null;
332
336
  paymentMethodId: string | null;
333
337
  investmentType: import("../../..").InvestmentType;
334
- numberOfShares: number;
338
+ purchasedShares: number;
339
+ bonusShares: number | null;
340
+ totalNumberOfShares: number;
335
341
  pricePerShare: number;
336
342
  totalAmount: number | null;
337
343
  tradeStatusUnmapped: string | null;