@dalmore/api-contracts 0.0.0-dev.2982281 → 0.0.0-dev.2c95652

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 (103) hide show
  1. package/common/types/account-setting.types.d.ts +22 -66
  2. package/common/types/account-setting.types.js +2 -31
  3. package/common/types/account-setting.types.js.map +1 -1
  4. package/common/types/account.types.d.ts +32 -23
  5. package/common/types/account.types.js +1 -0
  6. package/common/types/account.types.js.map +1 -1
  7. package/common/types/activity.types.d.ts +34 -25
  8. package/common/types/activity.types.js +11 -0
  9. package/common/types/activity.types.js.map +1 -1
  10. package/common/types/asset.types.d.ts +25 -111
  11. package/common/types/asset.types.js +24 -100
  12. package/common/types/asset.types.js.map +1 -1
  13. package/common/types/auth.types.d.ts +36 -0
  14. package/common/types/auth.types.js +3 -2
  15. package/common/types/auth.types.js.map +1 -1
  16. package/common/types/bonus-tier.types.d.ts +0 -30
  17. package/common/types/cap-table.types.d.ts +177 -53
  18. package/common/types/cap-table.types.js +31 -0
  19. package/common/types/cap-table.types.js.map +1 -1
  20. package/common/types/common.types.d.ts +340 -3
  21. package/common/types/common.types.js +59 -1
  22. package/common/types/common.types.js.map +1 -1
  23. package/common/types/csv.types.d.ts +1557 -0
  24. package/common/types/csv.types.js +154 -0
  25. package/common/types/csv.types.js.map +1 -0
  26. package/common/types/dashboard.types.d.ts +7 -7
  27. package/common/types/disbursement-transaction.types.d.ts +1 -1
  28. package/common/types/disbursement-transaction.types.js +1 -1
  29. package/common/types/disbursement-transaction.types.js.map +1 -1
  30. package/common/types/disbursements.types.d.ts +956 -7
  31. package/common/types/disbursements.types.js +92 -2
  32. package/common/types/disbursements.types.js.map +1 -1
  33. package/common/types/escrow-account.types.d.ts +17 -0
  34. package/common/types/escrow-account.types.js +3 -0
  35. package/common/types/escrow-account.types.js.map +1 -1
  36. package/common/types/exchange-provider.types.d.ts +12 -12
  37. package/common/types/file.types.d.ts +33 -9
  38. package/common/types/file.types.js +12 -0
  39. package/common/types/file.types.js.map +1 -1
  40. package/common/types/index.d.ts +4 -0
  41. package/common/types/index.js +4 -0
  42. package/common/types/index.js.map +1 -1
  43. package/common/types/individuals.types.d.ts +207 -5
  44. package/common/types/individuals.types.js +12 -15
  45. package/common/types/individuals.types.js.map +1 -1
  46. package/common/types/investor-account.types.d.ts +1 -1
  47. package/common/types/investor-account.types.js +1 -2
  48. package/common/types/investor-account.types.js.map +1 -1
  49. package/common/types/invite.types.d.ts +2 -2
  50. package/common/types/invite.types.js +1 -1
  51. package/common/types/invite.types.js.map +1 -1
  52. package/common/types/issuer-offering.types.d.ts +186 -82
  53. package/common/types/issuer-offering.types.js +183 -46
  54. package/common/types/issuer-offering.types.js.map +1 -1
  55. package/common/types/job-item.types.d.ts +14 -14
  56. package/common/types/legal-entity.types.d.ts +39 -1
  57. package/common/types/legal-entity.types.js +8 -5
  58. package/common/types/legal-entity.types.js.map +1 -1
  59. package/common/types/note.types.d.ts +15 -15
  60. package/common/types/offering-submission.types.d.ts +198 -0
  61. package/common/types/offering-submission.types.js +16 -3
  62. package/common/types/offering-submission.types.js.map +1 -1
  63. package/common/types/offering.types.d.ts +256 -61
  64. package/common/types/offering.types.js +212 -53
  65. package/common/types/offering.types.js.map +1 -1
  66. package/common/types/portfolio.types.d.ts +6 -6
  67. package/common/types/reports.types.d.ts +345 -0
  68. package/common/types/reports.types.js +69 -0
  69. package/common/types/reports.types.js.map +1 -0
  70. package/common/types/review.types.js +1 -1
  71. package/common/types/review.types.js.map +1 -1
  72. package/common/types/secondary-order.types.d.ts +10 -10
  73. package/common/types/secondary-trade.types.d.ts +10 -10
  74. package/common/types/site.types.d.ts +12 -27
  75. package/common/types/task.types.d.ts +22 -22
  76. package/common/types/trade-line-item.types.d.ts +24 -0
  77. package/common/types/trade-line-item.types.js +3 -0
  78. package/common/types/trade-line-item.types.js.map +1 -1
  79. package/common/types/trade.types.d.ts +9 -0
  80. package/common/types/trade.types.js +8 -1
  81. package/common/types/trade.types.js.map +1 -1
  82. package/common/types/transaction.types.d.ts +0 -1
  83. package/common/types/transaction.types.js +0 -1
  84. package/common/types/transaction.types.js.map +1 -1
  85. package/common/types/user.types.d.ts +191 -59
  86. package/common/types/user.types.js +9 -1
  87. package/common/types/user.types.js.map +1 -1
  88. package/contracts/clients/assets/index.d.ts +0 -66
  89. package/contracts/clients/csv/index.d.ts +1594 -0
  90. package/contracts/clients/csv/index.js +62 -0
  91. package/contracts/clients/csv/index.js.map +1 -0
  92. package/contracts/clients/files/index.d.ts +3 -3
  93. package/contracts/clients/files-public/index.d.ts +3 -3
  94. package/contracts/clients/index.d.ts +1771 -116
  95. package/contracts/clients/index.js +4 -0
  96. package/contracts/clients/index.js.map +1 -1
  97. package/contracts/clients/individuals/index.d.ts +5 -5
  98. package/contracts/clients/legal-entities/index.d.ts +1 -1
  99. package/contracts/clients/offerings/index.d.ts +88 -38
  100. package/contracts/clients/review/index.d.ts +77 -0
  101. package/contracts/clients/review/index.js +23 -0
  102. package/contracts/clients/review/index.js.map +1 -0
  103. package/package.json +1 -1
@@ -21,6 +21,8 @@ import { paymentMethodsContract } from './payment-methods/index.js';
21
21
  import { issuerPaymentMethodsContract } from './issuer-payment-methods/index.js';
22
22
  import { tradeLineItemsContract } from './trade-line-items/index.js';
23
23
  import { clientsTransactionsContract } from './transactions/index.js';
24
+ import { csvContract } from './csv/index.js';
25
+ import { reviewContract } from './review/index.js';
24
26
  const c = initContract();
25
27
  // API KEY AUTH
26
28
  export const clientsContract = c.router({
@@ -31,6 +33,7 @@ export const clientsContract = c.router({
31
33
  apiKeyLogs: clientApiKeyLogsContract,
32
34
  assets: assetsContract,
33
35
  cart: cartContract,
36
+ csv: csvContract,
34
37
  files: filesContract,
35
38
  filesPublic: filesPublicContract,
36
39
  individuals: individualsContract,
@@ -41,6 +44,7 @@ export const clientsContract = c.router({
41
44
  legalEntities: legalEntityContract,
42
45
  offerings: offeringsContract,
43
46
  paymentMethods: paymentMethodsContract,
47
+ review: reviewContract,
44
48
  secureRequests: secureRequestContract,
45
49
  sites: sitesContract,
46
50
  tradeLineItems: tradeLineItemsContract,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EA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AAE,WAAW;IAChB,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,mBAAmB;IAChC,gBAAgB,EAAE,wBAAwB;IAC1C,oBAAoB,EAAE,4BAA4B;IAClD,OAAO,EAAE,eAAe;IACxB,GAAG,EAAE,WAAW;IAChB,aAAa,EAAE,mBAAmB;IAClC,SAAS,EAAE,iBAAiB;IAC5B,cAAc,EAAE,sBAAsB;IACtC,MAAM,EAAE,cAAc;IACtB,cAAc,EAAE,qBAAqB;IACrC,KAAK,EAAE,aAAa;IACpB,cAAc,EAAE,sBAAsB;IACtC,MAAM,EAAE,cAAc;IACtB,YAAY,EAAE,2BAA2B;CAC1C,EACD;IACE,UAAU,EAAE,kBAAkB;CAC/B,CACF,CAAC"}
@@ -10,7 +10,7 @@ export declare const individualsContract: {
10
10
  investorAccountId: z.ZodString;
11
11
  firstName: z.ZodOptional<z.ZodString>;
12
12
  dob: z.ZodOptional<z.ZodDate>;
13
- isUsCitizenOrGreenCardHolder: z.ZodOptional<z.ZodBoolean>;
13
+ isUsCitizenOrGreenCardHolder: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
14
14
  citizenship: z.ZodOptional<z.ZodNativeEnum<Readonly<Record<string, string>>>>;
15
15
  ssn: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
16
16
  currencyCode: z.ZodOptional<z.ZodString>;
@@ -76,7 +76,7 @@ export declare const individualsContract: {
76
76
  currencyCode?: string | undefined;
77
77
  liquidNetWorth?: number | undefined;
78
78
  dob?: Date | undefined;
79
- isUsCitizenOrGreenCardHolder?: boolean | undefined;
79
+ isUsCitizenOrGreenCardHolder?: unknown;
80
80
  citizenship?: string | undefined;
81
81
  ssn?: string | null | undefined;
82
82
  investedInCrowdfunding?: number | undefined;
@@ -178,7 +178,7 @@ export declare const individualsContract: {
178
178
  currencyCode?: string | undefined;
179
179
  liquidNetWorth?: number | undefined;
180
180
  dob?: Date | undefined;
181
- isUsCitizenOrGreenCardHolder?: boolean | undefined;
181
+ isUsCitizenOrGreenCardHolder?: unknown;
182
182
  citizenship?: string | undefined;
183
183
  ssn?: string | null | undefined;
184
184
  investedInCrowdfunding?: number | undefined;
@@ -1553,7 +1553,7 @@ export declare const individualsContract: {
1553
1553
  } | import("neverthrow").Ok<null, never>, string | null>, any, string | null>>;
1554
1554
  email: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1555
1555
  ownership: z.ZodOptional<z.ZodNumber>;
1556
- isUsCitizenOrGreenCardHolder: z.ZodOptional<z.ZodBoolean>;
1556
+ isUsCitizenOrGreenCardHolder: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
1557
1557
  citizenship: z.ZodOptional<z.ZodNativeEnum<Readonly<Record<string, string>>>>;
1558
1558
  ssn: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
1559
1559
  kycDocumentType: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").KYCDocumentType>>;
@@ -1631,7 +1631,7 @@ export declare const individualsContract: {
1631
1631
  aicAccreditationType?: import("../../..").AicAccreditationType | undefined;
1632
1632
  aicQuestionnaire?: string | undefined;
1633
1633
  dob?: Date | undefined;
1634
- isUsCitizenOrGreenCardHolder?: boolean | undefined;
1634
+ isUsCitizenOrGreenCardHolder?: unknown;
1635
1635
  citizenship?: string | undefined;
1636
1636
  ssn?: string | null | undefined;
1637
1637
  investedInCrowdfunding?: number | undefined;
@@ -23,7 +23,7 @@ export declare const legalEntityContract: {
23
23
  error?: any;
24
24
  } | import("neverthrow").Ok<null, never>, string | null>, any, string | null>>;
25
25
  dateOfIncorporation: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>>;
26
- stateOfIncorporation: z.ZodOptional<z.ZodString>;
26
+ stateOfIncorporation: z.ZodOptional<z.ZodNativeEnum<Readonly<Record<string, string>>>>;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  name: string;
29
29
  investorAccountId: string;
@@ -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";
@@ -413,6 +413,7 @@ export declare const offeringsContract: {
413
413
  auth: boolean;
414
414
  };
415
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>;
@@ -426,7 +427,6 @@ export declare const offeringsContract: {
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>;
@@ -444,10 +444,7 @@ export declare const offeringsContract: {
444
444
  escrowAgreementFileId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
445
445
  bankAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
446
446
  escrowAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
447
- principalAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
448
- maxTotalRaise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
449
447
  interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
450
- interestType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").InterestType>>>;
451
448
  bonusTiers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
452
449
  type: z.ZodNativeEnum<typeof import("../../../common/types/bonus-tier.types").BonusType>;
453
450
  value: z.ZodEffects<z.ZodNumber, number, number>;
@@ -484,10 +481,16 @@ export declare const offeringsContract: {
484
481
  startAmount: number;
485
482
  endAmount: number;
486
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>>>;
487
491
  }, "strip", z.ZodTypeAny, {
488
492
  type?: import("../../..").OfferingType | undefined;
489
493
  name?: string | undefined;
490
- managedBy?: import("../../..").ManagedByType | undefined;
491
494
  description?: string | null | undefined;
492
495
  enabled?: boolean | undefined;
493
496
  template?: import("../../../common/types/asset.types").AssetTemplateType | null | undefined;
@@ -507,6 +510,14 @@ export declare const offeringsContract: {
507
510
  escrowAgreementFileId?: string | null | undefined;
508
511
  bankAccountId?: string | null | undefined;
509
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;
510
521
  assetName?: string | undefined;
511
522
  assetType?: import("../../..").AssetType | undefined;
512
523
  pricePerUnit?: number | null | undefined;
@@ -516,10 +527,7 @@ export declare const offeringsContract: {
516
527
  durationType?: import("../../..").DurationType | null | undefined;
517
528
  tiers?: number[] | null | undefined;
518
529
  enableBonus?: boolean | undefined;
519
- principalAmount?: number | null | undefined;
520
- maxTotalRaise?: number | null | undefined;
521
530
  interestRate?: number | null | undefined;
522
- interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
523
531
  bonusTiers?: {
524
532
  value: number;
525
533
  type: import("../../../common/types/bonus-tier.types").BonusType;
@@ -529,7 +537,6 @@ export declare const offeringsContract: {
529
537
  }, {
530
538
  type?: import("../../..").OfferingType | undefined;
531
539
  name?: string | undefined;
532
- managedBy?: import("../../..").ManagedByType | undefined;
533
540
  description?: string | null | undefined;
534
541
  enabled?: boolean | undefined;
535
542
  template?: import("../../../common/types/asset.types").AssetTemplateType | null | undefined;
@@ -549,6 +556,14 @@ export declare const offeringsContract: {
549
556
  escrowAgreementFileId?: string | null | undefined;
550
557
  bankAccountId?: string | null | undefined;
551
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;
552
567
  assetName?: string | undefined;
553
568
  assetType?: import("../../..").AssetType | undefined;
554
569
  pricePerUnit?: number | null | undefined;
@@ -558,10 +573,7 @@ export declare const offeringsContract: {
558
573
  durationType?: import("../../..").DurationType | null | undefined;
559
574
  tiers?: number[] | null | undefined;
560
575
  enableBonus?: boolean | undefined;
561
- principalAmount?: number | null | undefined;
562
- maxTotalRaise?: number | null | undefined;
563
576
  interestRate?: number | null | undefined;
564
- interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
565
577
  bonusTiers?: {
566
578
  value: number;
567
579
  type: import("../../../common/types/bonus-tier.types").BonusType;
@@ -571,7 +583,6 @@ export declare const offeringsContract: {
571
583
  }>, {
572
584
  type?: import("../../..").OfferingType | undefined;
573
585
  name?: string | undefined;
574
- managedBy?: import("../../..").ManagedByType | undefined;
575
586
  description?: string | null | undefined;
576
587
  enabled?: boolean | undefined;
577
588
  template?: import("../../../common/types/asset.types").AssetTemplateType | null | undefined;
@@ -591,6 +602,14 @@ export declare const offeringsContract: {
591
602
  escrowAgreementFileId?: string | null | undefined;
592
603
  bankAccountId?: string | null | undefined;
593
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;
594
613
  assetName?: string | undefined;
595
614
  assetType?: import("../../..").AssetType | undefined;
596
615
  pricePerUnit?: number | null | undefined;
@@ -600,10 +619,7 @@ export declare const offeringsContract: {
600
619
  durationType?: import("../../..").DurationType | null | undefined;
601
620
  tiers?: number[] | null | undefined;
602
621
  enableBonus?: boolean | undefined;
603
- principalAmount?: number | null | undefined;
604
- maxTotalRaise?: number | null | undefined;
605
622
  interestRate?: number | null | undefined;
606
- interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
607
623
  bonusTiers?: {
608
624
  value: number;
609
625
  type: import("../../../common/types/bonus-tier.types").BonusType;
@@ -613,7 +629,6 @@ export declare const offeringsContract: {
613
629
  }, {
614
630
  type?: import("../../..").OfferingType | undefined;
615
631
  name?: string | undefined;
616
- managedBy?: import("../../..").ManagedByType | undefined;
617
632
  description?: string | null | undefined;
618
633
  enabled?: boolean | undefined;
619
634
  template?: import("../../../common/types/asset.types").AssetTemplateType | null | undefined;
@@ -633,6 +648,14 @@ export declare const offeringsContract: {
633
648
  escrowAgreementFileId?: string | null | undefined;
634
649
  bankAccountId?: string | null | undefined;
635
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;
636
659
  assetName?: string | undefined;
637
660
  assetType?: import("../../..").AssetType | undefined;
638
661
  pricePerUnit?: number | null | undefined;
@@ -642,10 +665,7 @@ export declare const offeringsContract: {
642
665
  durationType?: import("../../..").DurationType | null | undefined;
643
666
  tiers?: number[] | null | undefined;
644
667
  enableBonus?: boolean | undefined;
645
- principalAmount?: number | null | undefined;
646
- maxTotalRaise?: number | null | undefined;
647
668
  interestRate?: number | null | undefined;
648
- interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
649
669
  bonusTiers?: {
650
670
  value: number;
651
671
  type: import("../../../common/types/bonus-tier.types").BonusType;
@@ -738,6 +758,7 @@ export declare const offeringsContract: {
738
758
  };
739
759
  body: z.ZodEffects<z.ZodObject<{
740
760
  issuerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
761
+ shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
741
762
  name: z.ZodString;
742
763
  type: z.ZodNativeEnum<typeof import("../../..").OfferingType>;
743
764
  targetAmount: z.ZodNumber;
@@ -764,10 +785,7 @@ export declare const offeringsContract: {
764
785
  hasEscrow: z.ZodOptional<z.ZodBoolean>;
765
786
  bankAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
766
787
  escrowAccountId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
767
- principalAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
768
- maxTotalRaise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
769
788
  interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
770
- interestType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").InterestType>>>;
771
789
  bonusTiers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
772
790
  type: z.ZodNativeEnum<typeof import("../../../common/types/bonus-tier.types").BonusType>;
773
791
  value: z.ZodEffects<z.ZodNumber, number, number>;
@@ -804,12 +822,21 @@ export declare const offeringsContract: {
804
822
  startAmount: number;
805
823
  endAmount: number;
806
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>>;
807
833
  }, "strip", z.ZodTypeAny, {
808
834
  type: import("../../..").OfferingType;
809
835
  name: string;
810
836
  template: import("../../../common/types/asset.types").AssetTemplateType;
811
837
  targetAmount: number;
812
838
  issuerId: string;
839
+ warrantsEnabled: boolean;
813
840
  assetName: string;
814
841
  assetType: import("../../..").AssetType;
815
842
  pricePerUnit: number | null;
@@ -824,18 +851,23 @@ export declare const offeringsContract: {
824
851
  startAt?: Date | null | undefined;
825
852
  endAt?: Date | null | undefined;
826
853
  cancellationPeriod?: number | null | undefined;
854
+ showTotalRaised?: boolean | undefined;
827
855
  hasEscrow?: boolean | undefined;
828
856
  bankAccountId?: string | null | undefined;
829
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;
830
865
  yield?: number | null | undefined;
831
866
  duration?: number | null | undefined;
832
867
  durationType?: import("../../..").DurationType | null | undefined;
833
868
  tiers?: number[] | null | undefined;
834
869
  enableBonus?: boolean | undefined;
835
- principalAmount?: number | null | undefined;
836
- maxTotalRaise?: number | null | undefined;
837
870
  interestRate?: number | null | undefined;
838
- interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
839
871
  bonusTiers?: {
840
872
  value: number;
841
873
  type: import("../../../common/types/bonus-tier.types").BonusType;
@@ -862,18 +894,24 @@ export declare const offeringsContract: {
862
894
  startAt?: string | null | undefined;
863
895
  endAt?: string | null | undefined;
864
896
  cancellationPeriod?: number | null | undefined;
897
+ showTotalRaised?: boolean | undefined;
865
898
  hasEscrow?: boolean | undefined;
866
899
  bankAccountId?: string | null | undefined;
867
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;
868
909
  yield?: number | null | undefined;
869
910
  duration?: number | null | undefined;
870
911
  durationType?: import("../../..").DurationType | null | undefined;
871
912
  tiers?: number[] | null | undefined;
872
913
  enableBonus?: boolean | undefined;
873
- principalAmount?: number | null | undefined;
874
- maxTotalRaise?: number | null | undefined;
875
914
  interestRate?: number | null | undefined;
876
- interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
877
915
  bonusTiers?: {
878
916
  value: number;
879
917
  type: import("../../../common/types/bonus-tier.types").BonusType;
@@ -886,6 +924,7 @@ export declare const offeringsContract: {
886
924
  template: import("../../../common/types/asset.types").AssetTemplateType;
887
925
  targetAmount: number;
888
926
  issuerId: string;
927
+ warrantsEnabled: boolean;
889
928
  assetName: string;
890
929
  assetType: import("../../..").AssetType;
891
930
  pricePerUnit: number | null;
@@ -900,18 +939,23 @@ export declare const offeringsContract: {
900
939
  startAt?: Date | null | undefined;
901
940
  endAt?: Date | null | undefined;
902
941
  cancellationPeriod?: number | null | undefined;
942
+ showTotalRaised?: boolean | undefined;
903
943
  hasEscrow?: boolean | undefined;
904
944
  bankAccountId?: string | null | undefined;
905
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;
906
953
  yield?: number | null | undefined;
907
954
  duration?: number | null | undefined;
908
955
  durationType?: import("../../..").DurationType | null | undefined;
909
956
  tiers?: number[] | null | undefined;
910
957
  enableBonus?: boolean | undefined;
911
- principalAmount?: number | null | undefined;
912
- maxTotalRaise?: number | null | undefined;
913
958
  interestRate?: number | null | undefined;
914
- interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
915
959
  bonusTiers?: {
916
960
  value: number;
917
961
  type: import("../../../common/types/bonus-tier.types").BonusType;
@@ -938,18 +982,24 @@ export declare const offeringsContract: {
938
982
  startAt?: string | null | undefined;
939
983
  endAt?: string | null | undefined;
940
984
  cancellationPeriod?: number | null | undefined;
985
+ showTotalRaised?: boolean | undefined;
941
986
  hasEscrow?: boolean | undefined;
942
987
  bankAccountId?: string | null | undefined;
943
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;
944
997
  yield?: number | null | undefined;
945
998
  duration?: number | null | undefined;
946
999
  durationType?: import("../../..").DurationType | null | undefined;
947
1000
  tiers?: number[] | null | undefined;
948
1001
  enableBonus?: boolean | undefined;
949
- principalAmount?: number | null | undefined;
950
- maxTotalRaise?: number | null | undefined;
951
1002
  interestRate?: number | null | undefined;
952
- interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
953
1003
  bonusTiers?: {
954
1004
  value: number;
955
1005
  type: import("../../../common/types/bonus-tier.types").BonusType;
@@ -0,0 +1,77 @@
1
+ export declare const reviewContract: {
2
+ postReviewKyc: {
3
+ method: "POST";
4
+ metadata: {
5
+ auth: boolean;
6
+ };
7
+ body: import("zod").ZodObject<{
8
+ individualIds: import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodString, string, string>, "many">;
9
+ status: import("zod").ZodNativeEnum<typeof import("../../..").BaseStatus>;
10
+ }, "strip", import("zod").ZodTypeAny, {
11
+ status: import("../../..").BaseStatus;
12
+ individualIds: string[];
13
+ }, {
14
+ status: import("../../..").BaseStatus;
15
+ individualIds: string[];
16
+ }>;
17
+ summary: "Post KYC review for individuals";
18
+ path: "review/kyc";
19
+ responses: {
20
+ 201: import("zod").ZodObject<{
21
+ individualsUpdated: import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodString, string, string>, "many">;
22
+ status: import("zod").ZodNativeEnum<typeof import("../../..").BaseStatus>;
23
+ reviewedBy: import("zod").ZodString;
24
+ targetObject: import("zod").ZodAny;
25
+ }, "strip", import("zod").ZodTypeAny, {
26
+ status: import("../../..").BaseStatus;
27
+ reviewedBy: string;
28
+ individualsUpdated: string[];
29
+ targetObject?: any;
30
+ }, {
31
+ status: import("../../..").BaseStatus;
32
+ reviewedBy: string;
33
+ individualsUpdated: string[];
34
+ targetObject?: any;
35
+ }>;
36
+ 401: import("zod").ZodObject<{
37
+ status: import("zod").ZodNumber;
38
+ message: import("zod").ZodString;
39
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
40
+ }, "strip", import("zod").ZodTypeAny, {
41
+ message: string;
42
+ status: number;
43
+ errors: string[];
44
+ }, {
45
+ message: string;
46
+ status: number;
47
+ errors: string[];
48
+ }>;
49
+ 403: import("zod").ZodObject<{
50
+ status: import("zod").ZodNumber;
51
+ message: import("zod").ZodString;
52
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
53
+ }, "strip", import("zod").ZodTypeAny, {
54
+ message: string;
55
+ status: number;
56
+ errors: string[];
57
+ }, {
58
+ message: string;
59
+ status: number;
60
+ errors: string[];
61
+ }>;
62
+ 500: import("zod").ZodObject<{
63
+ status: import("zod").ZodNumber;
64
+ message: import("zod").ZodString;
65
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
66
+ }, "strip", import("zod").ZodTypeAny, {
67
+ message: string;
68
+ status: number;
69
+ errors: string[];
70
+ }, {
71
+ message: string;
72
+ status: number;
73
+ errors: string[];
74
+ }>;
75
+ };
76
+ };
77
+ };
@@ -0,0 +1,23 @@
1
+ import { initContract } from '@ts-rest/core';
2
+ import { ForbiddenError, InternalError, UnauthorizedError, PostReviewBody, PostReviewResponse, } from '../../../common/types/index.js';
3
+ const c = initContract();
4
+ export const reviewContract = c.router({
5
+ postReviewKyc: {
6
+ summary: 'Post KYC review for individuals',
7
+ method: 'POST',
8
+ path: '/kyc',
9
+ metadata: {
10
+ auth: true,
11
+ },
12
+ body: PostReviewBody,
13
+ responses: {
14
+ 201: PostReviewResponse,
15
+ 401: UnauthorizedError,
16
+ 403: ForbiddenError,
17
+ 500: InternalError,
18
+ },
19
+ },
20
+ }, {
21
+ pathPrefix: 'review',
22
+ });
23
+ //# 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,GACnB,MAAM,uBAAuB,CAAC;AAE/B,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,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalmore/api-contracts",
3
- "version": "0.0.0-dev.2982281",
3
+ "version": "0.0.0-dev.2c95652",
4
4
  "description": "Type-safe API contracts for Dalmore Client Portal",
5
5
  "type": "module",
6
6
  "main": "./index.js",