@dalmore/api-contracts 0.0.0-dev.c1dc422 → 0.0.0-dev.c81baa3

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 (135) 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 +22 -66
  8. package/common/types/account-setting.types.js +2 -31
  9. package/common/types/account-setting.types.js.map +1 -1
  10. package/common/types/account.types.d.ts +32 -23
  11. package/common/types/account.types.js +4 -3
  12. package/common/types/account.types.js.map +1 -1
  13. package/common/types/activity.types.d.ts +34 -25
  14. package/common/types/activity.types.js +11 -0
  15. package/common/types/activity.types.js.map +1 -1
  16. package/common/types/asset.types.d.ts +25 -111
  17. package/common/types/asset.types.js +24 -100
  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 +36 -0
  23. package/common/types/auth.types.js +3 -2
  24. package/common/types/auth.types.js.map +1 -1
  25. package/common/types/bonus-tier.types.d.ts +0 -30
  26. package/common/types/cap-table.types.d.ts +240 -53
  27. package/common/types/cap-table.types.js +52 -0
  28. package/common/types/cap-table.types.js.map +1 -1
  29. package/common/types/cart.types.d.ts +3 -0
  30. package/common/types/cart.types.js +1 -0
  31. package/common/types/cart.types.js.map +1 -1
  32. package/common/types/common.types.d.ts +354 -7
  33. package/common/types/common.types.js +72 -4
  34. package/common/types/common.types.js.map +1 -1
  35. package/common/types/comply-advantage-api.types.d.ts +12 -12
  36. package/common/types/csv.types.d.ts +3612 -0
  37. package/common/types/csv.types.js +290 -0
  38. package/common/types/csv.types.js.map +1 -0
  39. package/common/types/dashboard.types.d.ts +7 -7
  40. package/common/types/disbursement-transaction.types.d.ts +1 -1
  41. package/common/types/disbursement-transaction.types.js +1 -1
  42. package/common/types/disbursement-transaction.types.js.map +1 -1
  43. package/common/types/disbursements.types.d.ts +1022 -13
  44. package/common/types/disbursements.types.js +105 -3
  45. package/common/types/disbursements.types.js.map +1 -1
  46. package/common/types/exchange-provider.types.d.ts +12 -12
  47. package/common/types/file.types.d.ts +33 -9
  48. package/common/types/file.types.js +12 -0
  49. package/common/types/file.types.js.map +1 -1
  50. package/common/types/index.d.ts +5 -2
  51. package/common/types/index.js +5 -2
  52. package/common/types/index.js.map +1 -1
  53. package/common/types/individuals.types.d.ts +395 -5
  54. package/common/types/individuals.types.js +11 -14
  55. package/common/types/individuals.types.js.map +1 -1
  56. package/common/types/investor-account.types.d.ts +1 -1
  57. package/common/types/investor-account.types.js +3 -2
  58. package/common/types/investor-account.types.js.map +1 -1
  59. package/common/types/investors-offering.types.d.ts +8 -0
  60. package/common/types/investors-offering.types.js +1 -0
  61. package/common/types/investors-offering.types.js.map +1 -1
  62. package/common/types/invite.types.d.ts +5 -2
  63. package/common/types/invite.types.js +2 -1
  64. package/common/types/invite.types.js.map +1 -1
  65. package/common/types/issuer-offering.types.d.ts +347 -79
  66. package/common/types/issuer-offering.types.js +188 -63
  67. package/common/types/issuer-offering.types.js.map +1 -1
  68. package/common/types/job-item.types.d.ts +14 -14
  69. package/common/types/legal-entity.types.d.ts +39 -1
  70. package/common/types/legal-entity.types.js +8 -5
  71. package/common/types/legal-entity.types.js.map +1 -1
  72. package/common/types/mail-template.types.d.ts +4 -4
  73. package/common/types/note.types.d.ts +15 -15
  74. package/common/types/notification.types.d.ts +1 -0
  75. package/common/types/notification.types.js +3 -0
  76. package/common/types/notification.types.js.map +1 -1
  77. package/common/types/offering-submission.types.d.ts +198 -0
  78. package/common/types/offering-submission.types.js +17 -4
  79. package/common/types/offering-submission.types.js.map +1 -1
  80. package/common/types/offering.types.d.ts +276 -71
  81. package/common/types/offering.types.js +241 -55
  82. package/common/types/offering.types.js.map +1 -1
  83. package/common/types/payment-methods.types.d.ts +365 -0
  84. package/common/types/payment-methods.types.js +121 -0
  85. package/common/types/payment-methods.types.js.map +1 -1
  86. package/common/types/portfolio.types.d.ts +6 -6
  87. package/common/types/reports.types.d.ts +345 -0
  88. package/common/types/reports.types.js +69 -0
  89. package/common/types/reports.types.js.map +1 -0
  90. package/common/types/review.types.js +1 -1
  91. package/common/types/review.types.js.map +1 -1
  92. package/common/types/secondary-order.types.d.ts +10 -10
  93. package/common/types/secondary-trade.types.d.ts +10 -10
  94. package/common/types/site.types.d.ts +12 -27
  95. package/common/types/state-machine.types.d.ts +3 -3
  96. package/common/types/state-machine.types.js +1 -1
  97. package/common/types/state-machine.types.js.map +1 -1
  98. package/common/types/task.types.d.ts +30 -22
  99. package/common/types/task.types.js +3 -0
  100. package/common/types/task.types.js.map +1 -1
  101. package/common/types/trade-line-item.types.d.ts +24 -0
  102. package/common/types/trade-line-item.types.js +3 -0
  103. package/common/types/trade-line-item.types.js.map +1 -1
  104. package/common/types/trade.types.d.ts +20 -14
  105. package/common/types/trade.types.js +18 -7
  106. package/common/types/trade.types.js.map +1 -1
  107. package/common/types/transaction.types.d.ts +24 -2
  108. package/common/types/transaction.types.js +26 -1
  109. package/common/types/transaction.types.js.map +1 -1
  110. package/common/types/user.types.d.ts +108 -82
  111. package/common/types/user.types.js +10 -23
  112. package/common/types/user.types.js.map +1 -1
  113. package/common/types/zapier.types.d.ts +126 -0
  114. package/common/types/zapier.types.js +247 -0
  115. package/common/types/zapier.types.js.map +1 -0
  116. package/contracts/clients/assets/index.d.ts +0 -66
  117. package/contracts/clients/cart/index.d.ts +3 -0
  118. package/contracts/clients/csv/index.d.ts +1988 -0
  119. package/contracts/clients/csv/index.js +96 -0
  120. package/contracts/clients/csv/index.js.map +1 -0
  121. package/contracts/clients/files/index.d.ts +3 -3
  122. package/contracts/clients/files-public/index.d.ts +3 -3
  123. package/contracts/clients/index.d.ts +4028 -1163
  124. package/contracts/clients/index.js +8 -2
  125. package/contracts/clients/index.js.map +1 -1
  126. package/contracts/clients/individuals/index.d.ts +381 -5
  127. package/contracts/clients/legal-entities/index.d.ts +1 -1
  128. package/contracts/clients/offerings/index.d.ts +90 -35
  129. package/contracts/clients/review/index.d.ts +85 -0
  130. package/contracts/clients/review/index.js +27 -0
  131. package/contracts/clients/review/index.js.map +1 -0
  132. package/contracts/clients/webhooks/index.d.ts +506 -0
  133. package/contracts/clients/webhooks/index.js +118 -0
  134. package/contracts/clients/webhooks/index.js.map +1 -0
  135. package/package.json +1 -1
@@ -59,12 +59,22 @@ export declare enum BaseStatus {
59
59
  INACTIVE = "INACTIVE",
60
60
  PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
61
61
  VOIDED = "VOIDED",
62
- JOIN = "JOIN",
62
+ REFUND_INITIATED = "REFUND_INITIATED",
63
+ REFUND_COMPLETED = "REFUND_COMPLETED",
64
+ REFUND_FAILED = "REFUND_FAILED",
65
+ VOID_INITIATED = "VOID_INITIATED",
66
+ VOID_COMPLETED = "VOID_COMPLETED",
67
+ VOID_FAILED = "VOID_FAILED",
63
68
  RESTORE = "RESTORE",
69
+ JOIN = "JOIN",
64
70
  ACTIVE = "ACTIVE",
65
71
  LOCKED = "LOCKED",
66
72
  ENABLED = "ENABLED",
67
- DISABLED = "DISABLED"
73
+ DISABLED = "DISABLED",
74
+ PROCESSING_VOID = "PROCESSING_VOID",
75
+ PROCESSING_REFUND = "PROCESSING_REFUND",
76
+ PAUSED = "PAUSED",
77
+ CLOSED = "CLOSED"
68
78
  }
69
79
  export declare const UserWithoutPasswordAccountZod: z.ZodObject<{
70
80
  id: z.ZodString;
@@ -118,9 +128,13 @@ export declare enum ManagedByType {
118
128
  DALMORE = "DALMORE",
119
129
  ISSUER = "ISSUER"
120
130
  }
131
+ /**
132
+ * Unified platform enum used across accounts and trades
133
+ * Values: DALMORE, IMPORT
134
+ */
121
135
  export declare enum Platform {
122
136
  DALMORE = "DALMORE",
123
- INTEGRATION = "INTEGRATION"
137
+ IMPORT = "IMPORT"
124
138
  }
125
139
  export declare enum HttpMethod {
126
140
  GET = "GET",
@@ -151,6 +165,59 @@ export declare enum PaymentMethodType {
151
165
  CHECK = "CHECK",
152
166
  RETIREMENT = "RETIREMENT"
153
167
  }
168
+ export declare const accountSettingIdSchema: z.ZodEffects<z.ZodString, string, string>;
169
+ export type accountSettingIdSchema = z.infer<typeof accountSettingIdSchema>;
170
+ export declare const IAccountSettingZod: z.ZodObject<{
171
+ __entity: z.ZodOptional<z.ZodString>;
172
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
173
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
174
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
175
+ } & {
176
+ id: z.ZodEffects<z.ZodString, string, string>;
177
+ accountId: z.ZodString;
178
+ offeringSetup: z.ZodBoolean;
179
+ investorPortalSetup: z.ZodBoolean;
180
+ paymentMethodSetup: z.ZodBoolean;
181
+ accountContactsSetup: z.ZodBoolean;
182
+ productPrimaries: z.ZodBoolean;
183
+ productSecondaries: z.ZodBoolean;
184
+ featureDisbursements: z.ZodBoolean;
185
+ apiPortal: z.ZodBoolean;
186
+ investorSiteEnabled: z.ZodBoolean;
187
+ }, "strip", z.ZodTypeAny, {
188
+ id: string;
189
+ createdAt: string | Date;
190
+ updatedAt: string | Date;
191
+ deletedAt: string | Date | null;
192
+ accountId: string;
193
+ offeringSetup: boolean;
194
+ investorPortalSetup: boolean;
195
+ paymentMethodSetup: boolean;
196
+ accountContactsSetup: boolean;
197
+ productPrimaries: boolean;
198
+ productSecondaries: boolean;
199
+ featureDisbursements: boolean;
200
+ apiPortal: boolean;
201
+ investorSiteEnabled: boolean;
202
+ __entity?: string | undefined;
203
+ }, {
204
+ id: string;
205
+ createdAt: string | Date;
206
+ updatedAt: string | Date;
207
+ deletedAt: string | Date | null;
208
+ accountId: string;
209
+ offeringSetup: boolean;
210
+ investorPortalSetup: boolean;
211
+ paymentMethodSetup: boolean;
212
+ accountContactsSetup: boolean;
213
+ productPrimaries: boolean;
214
+ productSecondaries: boolean;
215
+ featureDisbursements: boolean;
216
+ apiPortal: boolean;
217
+ investorSiteEnabled: boolean;
218
+ __entity?: string | undefined;
219
+ }>;
220
+ export type IAccountSettingZod = z.infer<typeof IAccountSettingZod>;
154
221
  export declare const AccountZod: z.ZodObject<{
155
222
  id: z.ZodString;
156
223
  __entity: z.ZodOptional<z.ZodString>;
@@ -302,6 +369,56 @@ export declare const BaseAuthReq: z.ZodObject<{
302
369
  role: z.ZodNativeEnum<typeof UserRole>;
303
370
  type: z.ZodNativeEnum<typeof PortalType>;
304
371
  roleId: z.ZodString;
372
+ accountSettings: z.ZodOptional<z.ZodLazy<z.ZodObject<{
373
+ __entity: z.ZodOptional<z.ZodString>;
374
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
375
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
376
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
377
+ } & {
378
+ id: z.ZodEffects<z.ZodString, string, string>;
379
+ accountId: z.ZodString;
380
+ offeringSetup: z.ZodBoolean;
381
+ investorPortalSetup: z.ZodBoolean;
382
+ paymentMethodSetup: z.ZodBoolean;
383
+ accountContactsSetup: z.ZodBoolean;
384
+ productPrimaries: z.ZodBoolean;
385
+ productSecondaries: z.ZodBoolean;
386
+ featureDisbursements: z.ZodBoolean;
387
+ apiPortal: z.ZodBoolean;
388
+ investorSiteEnabled: z.ZodBoolean;
389
+ }, "strip", z.ZodTypeAny, {
390
+ id: string;
391
+ createdAt: string | Date;
392
+ updatedAt: string | Date;
393
+ deletedAt: string | Date | null;
394
+ accountId: string;
395
+ offeringSetup: boolean;
396
+ investorPortalSetup: boolean;
397
+ paymentMethodSetup: boolean;
398
+ accountContactsSetup: boolean;
399
+ productPrimaries: boolean;
400
+ productSecondaries: boolean;
401
+ featureDisbursements: boolean;
402
+ apiPortal: boolean;
403
+ investorSiteEnabled: boolean;
404
+ __entity?: string | undefined;
405
+ }, {
406
+ id: string;
407
+ createdAt: string | Date;
408
+ updatedAt: string | Date;
409
+ deletedAt: string | Date | null;
410
+ accountId: string;
411
+ offeringSetup: boolean;
412
+ investorPortalSetup: boolean;
413
+ paymentMethodSetup: boolean;
414
+ accountContactsSetup: boolean;
415
+ productPrimaries: boolean;
416
+ productSecondaries: boolean;
417
+ featureDisbursements: boolean;
418
+ apiPortal: boolean;
419
+ investorSiteEnabled: boolean;
420
+ __entity?: string | undefined;
421
+ }>>>;
305
422
  }, "strip", z.ZodTypeAny, {
306
423
  type: PortalType;
307
424
  id: string;
@@ -310,6 +427,23 @@ export declare const BaseAuthReq: z.ZodObject<{
310
427
  isInactiveAccount: boolean;
311
428
  role: UserRole;
312
429
  roleId: string;
430
+ accountSettings?: {
431
+ id: string;
432
+ createdAt: string | Date;
433
+ updatedAt: string | Date;
434
+ deletedAt: string | Date | null;
435
+ accountId: string;
436
+ offeringSetup: boolean;
437
+ investorPortalSetup: boolean;
438
+ paymentMethodSetup: boolean;
439
+ accountContactsSetup: boolean;
440
+ productPrimaries: boolean;
441
+ productSecondaries: boolean;
442
+ featureDisbursements: boolean;
443
+ apiPortal: boolean;
444
+ investorSiteEnabled: boolean;
445
+ __entity?: string | undefined;
446
+ } | undefined;
313
447
  }, {
314
448
  type: PortalType;
315
449
  id: string;
@@ -318,6 +452,23 @@ export declare const BaseAuthReq: z.ZodObject<{
318
452
  isInactiveAccount: boolean;
319
453
  role: UserRole;
320
454
  roleId: string;
455
+ accountSettings?: {
456
+ id: string;
457
+ createdAt: string | Date;
458
+ updatedAt: string | Date;
459
+ deletedAt: string | Date | null;
460
+ accountId: string;
461
+ offeringSetup: boolean;
462
+ investorPortalSetup: boolean;
463
+ paymentMethodSetup: boolean;
464
+ accountContactsSetup: boolean;
465
+ productPrimaries: boolean;
466
+ productSecondaries: boolean;
467
+ featureDisbursements: boolean;
468
+ apiPortal: boolean;
469
+ investorSiteEnabled: boolean;
470
+ __entity?: string | undefined;
471
+ } | undefined;
321
472
  }>;
322
473
  export declare const AuthUserReq: z.ZodObject<{
323
474
  id: z.ZodString;
@@ -327,6 +478,56 @@ export declare const AuthUserReq: z.ZodObject<{
327
478
  role: z.ZodNativeEnum<typeof UserRole>;
328
479
  type: z.ZodNativeEnum<typeof PortalType>;
329
480
  roleId: z.ZodString;
481
+ accountSettings: z.ZodOptional<z.ZodLazy<z.ZodObject<{
482
+ __entity: z.ZodOptional<z.ZodString>;
483
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
484
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
485
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
486
+ } & {
487
+ id: z.ZodEffects<z.ZodString, string, string>;
488
+ accountId: z.ZodString;
489
+ offeringSetup: z.ZodBoolean;
490
+ investorPortalSetup: z.ZodBoolean;
491
+ paymentMethodSetup: z.ZodBoolean;
492
+ accountContactsSetup: z.ZodBoolean;
493
+ productPrimaries: z.ZodBoolean;
494
+ productSecondaries: z.ZodBoolean;
495
+ featureDisbursements: z.ZodBoolean;
496
+ apiPortal: z.ZodBoolean;
497
+ investorSiteEnabled: z.ZodBoolean;
498
+ }, "strip", z.ZodTypeAny, {
499
+ id: string;
500
+ createdAt: string | Date;
501
+ updatedAt: string | Date;
502
+ deletedAt: string | Date | null;
503
+ accountId: string;
504
+ offeringSetup: boolean;
505
+ investorPortalSetup: boolean;
506
+ paymentMethodSetup: boolean;
507
+ accountContactsSetup: boolean;
508
+ productPrimaries: boolean;
509
+ productSecondaries: boolean;
510
+ featureDisbursements: boolean;
511
+ apiPortal: boolean;
512
+ investorSiteEnabled: boolean;
513
+ __entity?: string | undefined;
514
+ }, {
515
+ id: string;
516
+ createdAt: string | Date;
517
+ updatedAt: string | Date;
518
+ deletedAt: string | Date | null;
519
+ accountId: string;
520
+ offeringSetup: boolean;
521
+ investorPortalSetup: boolean;
522
+ paymentMethodSetup: boolean;
523
+ accountContactsSetup: boolean;
524
+ productPrimaries: boolean;
525
+ productSecondaries: boolean;
526
+ featureDisbursements: boolean;
527
+ apiPortal: boolean;
528
+ investorSiteEnabled: boolean;
529
+ __entity?: string | undefined;
530
+ }>>>;
330
531
  } & {
331
532
  userLoginId: z.ZodString;
332
533
  firstName: z.ZodString;
@@ -360,6 +561,23 @@ export declare const AuthUserReq: z.ZodObject<{
360
561
  locked: boolean;
361
562
  accountStatus: AccountStatus;
362
563
  managedBy?: ManagedByType | undefined;
564
+ accountSettings?: {
565
+ id: string;
566
+ createdAt: string | Date;
567
+ updatedAt: string | Date;
568
+ deletedAt: string | Date | null;
569
+ accountId: string;
570
+ offeringSetup: boolean;
571
+ investorPortalSetup: boolean;
572
+ paymentMethodSetup: boolean;
573
+ accountContactsSetup: boolean;
574
+ productPrimaries: boolean;
575
+ productSecondaries: boolean;
576
+ featureDisbursements: boolean;
577
+ apiPortal: boolean;
578
+ investorSiteEnabled: boolean;
579
+ __entity?: string | undefined;
580
+ } | undefined;
363
581
  requiresTwoFactorSetup?: boolean | undefined;
364
582
  twoFactorEnabled?: boolean | undefined;
365
583
  twoFactorMethod?: TwoFactorMethod | undefined;
@@ -382,6 +600,23 @@ export declare const AuthUserReq: z.ZodObject<{
382
600
  locked: boolean;
383
601
  accountStatus: AccountStatus;
384
602
  managedBy?: ManagedByType | undefined;
603
+ accountSettings?: {
604
+ id: string;
605
+ createdAt: string | Date;
606
+ updatedAt: string | Date;
607
+ deletedAt: string | Date | null;
608
+ accountId: string;
609
+ offeringSetup: boolean;
610
+ investorPortalSetup: boolean;
611
+ paymentMethodSetup: boolean;
612
+ accountContactsSetup: boolean;
613
+ productPrimaries: boolean;
614
+ productSecondaries: boolean;
615
+ featureDisbursements: boolean;
616
+ apiPortal: boolean;
617
+ investorSiteEnabled: boolean;
618
+ __entity?: string | undefined;
619
+ } | undefined;
385
620
  requiresTwoFactorSetup?: boolean | undefined;
386
621
  twoFactorEnabled?: boolean | undefined;
387
622
  twoFactorMethod?: TwoFactorMethod | undefined;
@@ -395,6 +630,56 @@ export declare const AuthApiKeyReq: z.ZodObject<{
395
630
  role: z.ZodNativeEnum<typeof UserRole>;
396
631
  type: z.ZodNativeEnum<typeof PortalType>;
397
632
  roleId: z.ZodString;
633
+ accountSettings: z.ZodOptional<z.ZodLazy<z.ZodObject<{
634
+ __entity: z.ZodOptional<z.ZodString>;
635
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
636
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
637
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
638
+ } & {
639
+ id: z.ZodEffects<z.ZodString, string, string>;
640
+ accountId: z.ZodString;
641
+ offeringSetup: z.ZodBoolean;
642
+ investorPortalSetup: z.ZodBoolean;
643
+ paymentMethodSetup: z.ZodBoolean;
644
+ accountContactsSetup: z.ZodBoolean;
645
+ productPrimaries: z.ZodBoolean;
646
+ productSecondaries: z.ZodBoolean;
647
+ featureDisbursements: z.ZodBoolean;
648
+ apiPortal: z.ZodBoolean;
649
+ investorSiteEnabled: z.ZodBoolean;
650
+ }, "strip", z.ZodTypeAny, {
651
+ id: string;
652
+ createdAt: string | Date;
653
+ updatedAt: string | Date;
654
+ deletedAt: string | Date | null;
655
+ accountId: string;
656
+ offeringSetup: boolean;
657
+ investorPortalSetup: boolean;
658
+ paymentMethodSetup: boolean;
659
+ accountContactsSetup: boolean;
660
+ productPrimaries: boolean;
661
+ productSecondaries: boolean;
662
+ featureDisbursements: boolean;
663
+ apiPortal: boolean;
664
+ investorSiteEnabled: boolean;
665
+ __entity?: string | undefined;
666
+ }, {
667
+ id: string;
668
+ createdAt: string | Date;
669
+ updatedAt: string | Date;
670
+ deletedAt: string | Date | null;
671
+ accountId: string;
672
+ offeringSetup: boolean;
673
+ investorPortalSetup: boolean;
674
+ paymentMethodSetup: boolean;
675
+ accountContactsSetup: boolean;
676
+ productPrimaries: boolean;
677
+ productSecondaries: boolean;
678
+ featureDisbursements: boolean;
679
+ apiPortal: boolean;
680
+ investorSiteEnabled: boolean;
681
+ __entity?: string | undefined;
682
+ }>>>;
398
683
  } & {
399
684
  name: z.ZodString;
400
685
  description: z.ZodNullable<z.ZodString>;
@@ -410,6 +695,23 @@ export declare const AuthApiKeyReq: z.ZodObject<{
410
695
  roleId: string;
411
696
  description: string | null;
412
697
  lastUsedAt: Date | null;
698
+ accountSettings?: {
699
+ id: string;
700
+ createdAt: string | Date;
701
+ updatedAt: string | Date;
702
+ deletedAt: string | Date | null;
703
+ accountId: string;
704
+ offeringSetup: boolean;
705
+ investorPortalSetup: boolean;
706
+ paymentMethodSetup: boolean;
707
+ accountContactsSetup: boolean;
708
+ productPrimaries: boolean;
709
+ productSecondaries: boolean;
710
+ featureDisbursements: boolean;
711
+ apiPortal: boolean;
712
+ investorSiteEnabled: boolean;
713
+ __entity?: string | undefined;
714
+ } | undefined;
413
715
  }, {
414
716
  type: PortalType;
415
717
  id: string;
@@ -421,6 +723,23 @@ export declare const AuthApiKeyReq: z.ZodObject<{
421
723
  roleId: string;
422
724
  description: string | null;
423
725
  lastUsedAt: Date | null;
726
+ accountSettings?: {
727
+ id: string;
728
+ createdAt: string | Date;
729
+ updatedAt: string | Date;
730
+ deletedAt: string | Date | null;
731
+ accountId: string;
732
+ offeringSetup: boolean;
733
+ investorPortalSetup: boolean;
734
+ paymentMethodSetup: boolean;
735
+ accountContactsSetup: boolean;
736
+ productPrimaries: boolean;
737
+ productSecondaries: boolean;
738
+ featureDisbursements: boolean;
739
+ apiPortal: boolean;
740
+ investorSiteEnabled: boolean;
741
+ __entity?: string | undefined;
742
+ } | undefined;
424
743
  }>;
425
744
  export type BaseAuthReq = z.infer<typeof BaseAuthReq>;
426
745
  export type AuthUserReq = z.infer<typeof AuthUserReq>;
@@ -828,7 +1147,9 @@ export declare enum AccreditationFileLabels {
828
1147
  export declare enum OtherFileLabels {
829
1148
  OTHER = "OTHER",
830
1149
  COMPLIANCE_REQUEST = "COMPLIANCE_REQUEST",
831
- SUB_DOC = "SUB_DOC"
1150
+ SUB_DOC = "SUB_DOC",
1151
+ CONTENT_FILE = "CONTENT_FILE",
1152
+ CSV_EXPORT_FILE = "CSV_EXPORT_FILE"
832
1153
  }
833
1154
  export declare const FileLabels: {
834
1155
  readonly TRADE_DOCUMENT: TradeFileLables.TRADE_DOCUMENT;
@@ -848,6 +1169,8 @@ export declare const FileLabels: {
848
1169
  readonly OTHER: OtherFileLabels.OTHER;
849
1170
  readonly COMPLIANCE_REQUEST: OtherFileLabels.COMPLIANCE_REQUEST;
850
1171
  readonly SUB_DOC: OtherFileLabels.SUB_DOC;
1172
+ readonly CONTENT_FILE: OtherFileLabels.CONTENT_FILE;
1173
+ readonly CSV_EXPORT_FILE: OtherFileLabels.CSV_EXPORT_FILE;
851
1174
  readonly BAD_ACTOR_REPORT_FILE: CoveredPersonFileLabels.BAD_ACTOR_REPORT_FILE;
852
1175
  readonly PROOF_OF_INCOME: AccreditationFileLabels.PROOF_OF_INCOME;
853
1176
  readonly PROOF_OF_NET_WORTH: AccreditationFileLabels.PROOF_OF_NET_WORTH;
@@ -981,7 +1304,8 @@ export declare enum EventField {
981
1304
  ONBOARDING_STATUS = "onboardingStatus",
982
1305
  TRANSACTION_STATUS = "transactionStatus",
983
1306
  ACTIVE = "active",
984
- LOCKED = "locked"
1307
+ LOCKED = "locked",
1308
+ SOLD_OUT = "soldOut"
985
1309
  }
986
1310
  export declare enum EventName {
987
1311
  STATUS_CHANGED = "status.changed",
@@ -990,7 +1314,8 @@ export declare enum EventName {
990
1314
  PENDING_OVERDUE_TRADES_ALERT = "pending_overdue.trades.alert",
991
1315
  IN_REVIEW_TRADES_ALERT = "trade.inreview.alert",
992
1316
  INDIVIDUAL_AML_STATUS_CHANGED = "individual.aml_status.changed",
993
- ISSUER_CREATED = "issuer.created"
1317
+ ISSUER_CREATED = "issuer.created",
1318
+ TRADE_SETTLED = "trade.settled"
994
1319
  }
995
1320
  export declare enum TransactionStatus {
996
1321
  PENDING = "PENDING",
@@ -1004,7 +1329,9 @@ export declare enum TransactionStatus {
1004
1329
  AUTHORIZING = "AUTHORIZING",
1005
1330
  FUNDING = "FUNDING",
1006
1331
  PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
1007
- VOIDED = "VOIDED"
1332
+ VOIDED = "VOIDED",
1333
+ PROCESSING_VOID = "PROCESSING_VOID",
1334
+ PROCESSING_REFUND = "PROCESSING_REFUND"
1008
1335
  }
1009
1336
  export declare enum TransactionType {
1010
1337
  CHARGE = "CHARGE",
@@ -1175,6 +1502,14 @@ export declare const TargetTableConfig: {
1175
1502
  readonly table: "cap_table_entries";
1176
1503
  readonly idPrefix: "cap_table_entry";
1177
1504
  };
1505
+ readonly EMAIL_THEMES: {
1506
+ readonly table: "email_themes";
1507
+ readonly idPrefix: "email_theme";
1508
+ };
1509
+ readonly EMAIL_THEME_SETTINGS: {
1510
+ readonly table: "email_theme_settings";
1511
+ readonly idPrefix: "email_theme_setting";
1512
+ };
1178
1513
  };
1179
1514
  export type TargetTableType = keyof typeof TargetTableConfig;
1180
1515
  export declare const TargetTableEnum: [TargetTableType, ...TargetTableType[]];
@@ -1511,4 +1846,16 @@ export type StringToBooleanSchema = z.infer<typeof StringToBooleanSchema>;
1511
1846
  * EmailSchema.optional().parse(undefined); // returns undefined
1512
1847
  */
1513
1848
  export declare const EmailSchema: z.ZodEffects<z.ZodString, string, string>;
1849
+ export declare enum WarrantSharesCalculationMethod {
1850
+ NONE = "NONE",
1851
+ PRORATA = "PRORATA",
1852
+ INCREMENT = "INCREMENT"
1853
+ }
1854
+ export declare enum OfferingStatus {
1855
+ ONBOARDING = "ONBOARDING",
1856
+ IN_REVIEW = "IN_REVIEW",
1857
+ ACTIVE = "ACTIVE",
1858
+ PAUSED = "PAUSED",
1859
+ CLOSED = "CLOSED"
1860
+ }
1514
1861
  export {};
@@ -65,12 +65,22 @@ export var BaseStatus;
65
65
  BaseStatus["INACTIVE"] = "INACTIVE";
66
66
  BaseStatus["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
67
67
  BaseStatus["VOIDED"] = "VOIDED";
68
- BaseStatus["JOIN"] = "JOIN";
68
+ BaseStatus["REFUND_INITIATED"] = "REFUND_INITIATED";
69
+ BaseStatus["REFUND_COMPLETED"] = "REFUND_COMPLETED";
70
+ BaseStatus["REFUND_FAILED"] = "REFUND_FAILED";
71
+ BaseStatus["VOID_INITIATED"] = "VOID_INITIATED";
72
+ BaseStatus["VOID_COMPLETED"] = "VOID_COMPLETED";
73
+ BaseStatus["VOID_FAILED"] = "VOID_FAILED";
69
74
  BaseStatus["RESTORE"] = "RESTORE";
75
+ BaseStatus["JOIN"] = "JOIN";
70
76
  BaseStatus["ACTIVE"] = "ACTIVE";
71
77
  BaseStatus["LOCKED"] = "LOCKED";
72
78
  BaseStatus["ENABLED"] = "ENABLED";
73
79
  BaseStatus["DISABLED"] = "DISABLED";
80
+ BaseStatus["PROCESSING_VOID"] = "PROCESSING_VOID";
81
+ BaseStatus["PROCESSING_REFUND"] = "PROCESSING_REFUND";
82
+ BaseStatus["PAUSED"] = "PAUSED";
83
+ BaseStatus["CLOSED"] = "CLOSED";
74
84
  })(BaseStatus || (BaseStatus = {}));
75
85
  export const UserWithoutPasswordAccountZod = IBaseEntity.extend({
76
86
  firstName: z.string().openapi({ example: 'Daniel' }),
@@ -94,10 +104,14 @@ export var ManagedByType;
94
104
  ManagedByType["DALMORE"] = "DALMORE";
95
105
  ManagedByType["ISSUER"] = "ISSUER";
96
106
  })(ManagedByType || (ManagedByType = {}));
107
+ /**
108
+ * Unified platform enum used across accounts and trades
109
+ * Values: DALMORE, IMPORT
110
+ */
97
111
  export var Platform;
98
112
  (function (Platform) {
99
113
  Platform["DALMORE"] = "DALMORE";
100
- Platform["INTEGRATION"] = "INTEGRATION";
114
+ Platform["IMPORT"] = "IMPORT";
101
115
  })(Platform || (Platform = {}));
102
116
  export var HttpMethod;
103
117
  (function (HttpMethod) {
@@ -153,6 +167,34 @@ export var PaymentMethodType;
153
167
  PaymentMethodType["CHECK"] = "CHECK";
154
168
  PaymentMethodType["RETIREMENT"] = "RETIREMENT";
155
169
  })(PaymentMethodType || (PaymentMethodType = {}));
170
+ export const accountSettingIdSchema = z.string().refine((value) => {
171
+ try {
172
+ const tid = TypeID.fromString(value);
173
+ return tid.getType() === 'account_setting';
174
+ }
175
+ catch {
176
+ return false;
177
+ }
178
+ }, {
179
+ message: 'Invalid account setting ID format. Must be a valid TypeID with "account_setting" prefix.',
180
+ });
181
+ export const IAccountSettingZod = IBaseEntity.extend({
182
+ id: accountSettingIdSchema.openapi({
183
+ example: 'account_setting_01j5y5ghx8fvc83dmx3pznq7hv',
184
+ }),
185
+ accountId: z.string().openapi({
186
+ example: 'account_01j5y5ghx8fvc83dmx3pznq7hv',
187
+ }),
188
+ offeringSetup: z.boolean().openapi({ example: false }),
189
+ investorPortalSetup: z.boolean().openapi({ example: false }),
190
+ paymentMethodSetup: z.boolean().openapi({ example: false }),
191
+ accountContactsSetup: z.boolean().openapi({ example: false }),
192
+ productPrimaries: z.boolean().openapi({ example: true }),
193
+ productSecondaries: z.boolean().openapi({ example: false }),
194
+ featureDisbursements: z.boolean().openapi({ example: true }),
195
+ apiPortal: z.boolean().openapi({ example: false }),
196
+ investorSiteEnabled: z.boolean().openapi({ example: true }),
197
+ });
156
198
  export const AccountZod = IBaseEntity.extend({
157
199
  name: z.string().openapi({ example: 'Dalmore' }),
158
200
  status: z.nativeEnum(AccountStatus).openapi({ example: AccountStatus.LIVE }),
@@ -160,7 +202,7 @@ export const AccountZod = IBaseEntity.extend({
160
202
  .nativeEnum(ManagedByType)
161
203
  .nullable()
162
204
  .openapi({ example: ManagedByType.DALMORE }),
163
- platform: z.nativeEnum(Platform).openapi({ example: Platform.INTEGRATION }),
205
+ platform: z.nativeEnum(Platform).openapi({ example: Platform.IMPORT }),
164
206
  onboardingReviewerId: z
165
207
  .string()
166
208
  .nullable()
@@ -175,7 +217,7 @@ export const AccountWithoutUsersZod = IBaseEntity.extend({
175
217
  .nativeEnum(ManagedByType)
176
218
  .nullable()
177
219
  .openapi({ example: ManagedByType.DALMORE }),
178
- platform: z.nativeEnum(Platform).openapi({ example: Platform.INTEGRATION }),
220
+ platform: z.nativeEnum(Platform).openapi({ example: Platform.IMPORT }),
179
221
  onboardingReviewerId: z
180
222
  .string()
181
223
  .nullable()
@@ -287,6 +329,7 @@ export const BaseAuthReq = z.object({
287
329
  role: z.nativeEnum(UserRole),
288
330
  type: z.nativeEnum(PortalType),
289
331
  roleId: z.string(),
332
+ accountSettings: z.lazy(() => IAccountSettingZod).optional(),
290
333
  });
291
334
  // Regular user type extending base
292
335
  export const AuthUserReq = BaseAuthReq.extend({
@@ -635,6 +678,8 @@ export var OtherFileLabels;
635
678
  OtherFileLabels["OTHER"] = "OTHER";
636
679
  OtherFileLabels["COMPLIANCE_REQUEST"] = "COMPLIANCE_REQUEST";
637
680
  OtherFileLabels["SUB_DOC"] = "SUB_DOC";
681
+ OtherFileLabels["CONTENT_FILE"] = "CONTENT_FILE";
682
+ OtherFileLabels["CSV_EXPORT_FILE"] = "CSV_EXPORT_FILE";
638
683
  })(OtherFileLabels || (OtherFileLabels = {}));
639
684
  export const FileLabels = {
640
685
  ...AccreditationFileLabels,
@@ -787,6 +832,7 @@ export var EventField;
787
832
  EventField["TRANSACTION_STATUS"] = "transactionStatus";
788
833
  EventField["ACTIVE"] = "active";
789
834
  EventField["LOCKED"] = "locked";
835
+ EventField["SOLD_OUT"] = "soldOut";
790
836
  })(EventField || (EventField = {}));
791
837
  export var EventName;
792
838
  (function (EventName) {
@@ -797,6 +843,7 @@ export var EventName;
797
843
  EventName["IN_REVIEW_TRADES_ALERT"] = "trade.inreview.alert";
798
844
  EventName["INDIVIDUAL_AML_STATUS_CHANGED"] = "individual.aml_status.changed";
799
845
  EventName["ISSUER_CREATED"] = "issuer.created";
846
+ EventName["TRADE_SETTLED"] = "trade.settled";
800
847
  })(EventName || (EventName = {}));
801
848
  // pending charged settled refunded cancelled
802
849
  export var TransactionStatus;
@@ -813,6 +860,8 @@ export var TransactionStatus;
813
860
  TransactionStatus["FUNDING"] = "FUNDING";
814
861
  TransactionStatus["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
815
862
  TransactionStatus["VOIDED"] = "VOIDED";
863
+ TransactionStatus["PROCESSING_VOID"] = "PROCESSING_VOID";
864
+ TransactionStatus["PROCESSING_REFUND"] = "PROCESSING_REFUND";
816
865
  })(TransactionStatus || (TransactionStatus = {}));
817
866
  //charge, refund, adjustment
818
867
  export var TransactionType;
@@ -956,6 +1005,11 @@ export const TargetTableConfig = {
956
1005
  table: 'cap_table_entries',
957
1006
  idPrefix: 'cap_table_entry',
958
1007
  },
1008
+ EMAIL_THEMES: { table: 'email_themes', idPrefix: 'email_theme' },
1009
+ EMAIL_THEME_SETTINGS: {
1010
+ table: 'email_theme_settings',
1011
+ idPrefix: 'email_theme_setting',
1012
+ },
959
1013
  };
960
1014
  export const TargetTableEnum = Object.keys(TargetTableConfig);
961
1015
  /**
@@ -1440,4 +1494,18 @@ export const EmailSchema = z
1440
1494
  .openapi({
1441
1495
  example: 'neil@dalmoregroup.com',
1442
1496
  });
1497
+ export var WarrantSharesCalculationMethod;
1498
+ (function (WarrantSharesCalculationMethod) {
1499
+ WarrantSharesCalculationMethod["NONE"] = "NONE";
1500
+ WarrantSharesCalculationMethod["PRORATA"] = "PRORATA";
1501
+ WarrantSharesCalculationMethod["INCREMENT"] = "INCREMENT";
1502
+ })(WarrantSharesCalculationMethod || (WarrantSharesCalculationMethod = {}));
1503
+ export var OfferingStatus;
1504
+ (function (OfferingStatus) {
1505
+ OfferingStatus["ONBOARDING"] = "ONBOARDING";
1506
+ OfferingStatus["IN_REVIEW"] = "IN_REVIEW";
1507
+ OfferingStatus["ACTIVE"] = "ACTIVE";
1508
+ OfferingStatus["PAUSED"] = "PAUSED";
1509
+ OfferingStatus["CLOSED"] = "CLOSED";
1510
+ })(OfferingStatus || (OfferingStatus = {}));
1443
1511
  //# sourceMappingURL=common.types.js.map