@dalmore/api-contracts 0.0.0-dev.685c0b3 → 0.0.0-dev.73ad209

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 (65) hide show
  1. package/common/types/account-setting.types.d.ts +64 -0
  2. package/common/types/account-setting.types.js +8 -0
  3. package/common/types/account-setting.types.js.map +1 -1
  4. package/common/types/account.types.d.ts +38 -2
  5. package/common/types/account.types.js +3 -0
  6. package/common/types/account.types.js.map +1 -1
  7. package/common/types/activity.types.d.ts +25 -24
  8. package/common/types/activity.types.js +2 -0
  9. package/common/types/activity.types.js.map +1 -1
  10. package/common/types/asset.types.d.ts +298 -0
  11. package/common/types/asset.types.js +191 -42
  12. package/common/types/asset.types.js.map +1 -1
  13. package/common/types/auth.types.d.ts +1 -1
  14. package/common/types/auth.types.js +1 -1
  15. package/common/types/auth.types.js.map +1 -1
  16. package/common/types/bonus-tier.types.d.ts +45 -4
  17. package/common/types/bonus-tier.types.js +15 -7
  18. package/common/types/bonus-tier.types.js.map +1 -1
  19. package/common/types/cap-table.types.d.ts +8 -8
  20. package/common/types/common.types.d.ts +19 -2
  21. package/common/types/common.types.js +12 -0
  22. package/common/types/common.types.js.map +1 -1
  23. package/common/types/comply-advantage-api.types.d.ts +133 -466
  24. package/common/types/comply-advantage-api.types.js +24 -3
  25. package/common/types/comply-advantage-api.types.js.map +1 -1
  26. package/common/types/dashboard.types.d.ts +7 -7
  27. package/common/types/data-record.types.d.ts +4 -4
  28. package/common/types/disbursements.types.d.ts +596 -392
  29. package/common/types/disbursements.types.js +37 -0
  30. package/common/types/disbursements.types.js.map +1 -1
  31. package/common/types/file.types.d.ts +9 -9
  32. package/common/types/investor-account.types.d.ts +4 -4
  33. package/common/types/issuer-bank-account.types.d.ts +4 -276
  34. package/common/types/issuer-offering.types.d.ts +723 -2
  35. package/common/types/issuer-offering.types.js +134 -3
  36. package/common/types/issuer-offering.types.js.map +1 -1
  37. package/common/types/job-item.types.d.ts +14 -14
  38. package/common/types/note.types.d.ts +15 -15
  39. package/common/types/offering.types.d.ts +241 -1
  40. package/common/types/offering.types.js +107 -10
  41. package/common/types/offering.types.js.map +1 -1
  42. package/common/types/signer.types.d.ts +23 -11
  43. package/common/types/signer.types.js +16 -1
  44. package/common/types/signer.types.js.map +1 -1
  45. package/common/types/site.types.d.ts +20 -0
  46. package/common/types/task.types.d.ts +22 -22
  47. package/common/types/trade-line-item.types.d.ts +18 -1
  48. package/common/types/trade-line-item.types.js +12 -1
  49. package/common/types/trade-line-item.types.js.map +1 -1
  50. package/common/types/trade.types.d.ts +62 -45
  51. package/common/types/trade.types.js +11 -4
  52. package/common/types/trade.types.js.map +1 -1
  53. package/common/types/transaction.types.d.ts +80 -1
  54. package/common/types/transaction.types.js +22 -2
  55. package/common/types/transaction.types.js.map +1 -1
  56. package/common/types/user.types.d.ts +5 -0
  57. package/common/types/user.types.js +1 -0
  58. package/common/types/user.types.js.map +1 -1
  59. package/contracts/clients/assets/index.d.ts +88 -0
  60. package/contracts/clients/files/index.d.ts +3 -3
  61. package/contracts/clients/files-public/index.d.ts +3 -3
  62. package/contracts/clients/index.d.ts +360 -10
  63. package/contracts/clients/offerings/index.d.ts +257 -1
  64. package/contracts/clients/trades/index.d.ts +9 -3
  65. package/package.json +1 -1
@@ -5,6 +5,10 @@ export declare enum AssetTemplateType {
5
5
  STANDARD = "STANDARD",
6
6
  TIERED = "TIERED"
7
7
  }
8
+ export declare enum InterestType {
9
+ SIMPLE = "SIMPLE",
10
+ COMPOUND = "COMPOUND"
11
+ }
8
12
  export declare const IAsset: z.ZodObject<{
9
13
  __entity: z.ZodOptional<z.ZodString>;
10
14
  createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
@@ -67,6 +71,10 @@ export declare const IAsset: z.ZodObject<{
67
71
  template: z.ZodNativeEnum<typeof AssetTemplateType>;
68
72
  tiers: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
69
73
  enableBonus: z.ZodBoolean;
74
+ principalAmount: z.ZodNullable<z.ZodNumber>;
75
+ maxTotalRaise: z.ZodNullable<z.ZodNumber>;
76
+ interestRate: z.ZodNullable<z.ZodNumber>;
77
+ interestType: z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>;
70
78
  }, "strip", z.ZodTypeAny, {
71
79
  type: AssetType | null;
72
80
  id: string;
@@ -85,6 +93,10 @@ export declare const IAsset: z.ZodObject<{
85
93
  durationType: DurationType | null;
86
94
  tiers: number[] | null;
87
95
  enableBonus: boolean;
96
+ principalAmount: number | null;
97
+ maxTotalRaise: number | null;
98
+ interestRate: number | null;
99
+ interestType: InterestType | null;
88
100
  __entity?: string | undefined;
89
101
  account?: {
90
102
  status: import("./common.types").AccountStatus;
@@ -119,6 +131,10 @@ export declare const IAsset: z.ZodObject<{
119
131
  durationType: DurationType | null;
120
132
  tiers: number[] | null;
121
133
  enableBonus: boolean;
134
+ principalAmount: number | null;
135
+ maxTotalRaise: number | null;
136
+ interestRate: number | null;
137
+ interestType: InterestType | null;
122
138
  __entity?: string | undefined;
123
139
  account?: {
124
140
  status: import("./common.types").AccountStatus;
@@ -200,6 +216,10 @@ export declare const IPaginatedAsset: z.ZodObject<{
200
216
  template: z.ZodNativeEnum<typeof AssetTemplateType>;
201
217
  tiers: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
202
218
  enableBonus: z.ZodBoolean;
219
+ principalAmount: z.ZodNullable<z.ZodNumber>;
220
+ maxTotalRaise: z.ZodNullable<z.ZodNumber>;
221
+ interestRate: z.ZodNullable<z.ZodNumber>;
222
+ interestType: z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>;
203
223
  }, "strip", z.ZodTypeAny, {
204
224
  type: AssetType | null;
205
225
  id: string;
@@ -218,6 +238,10 @@ export declare const IPaginatedAsset: z.ZodObject<{
218
238
  durationType: DurationType | null;
219
239
  tiers: number[] | null;
220
240
  enableBonus: boolean;
241
+ principalAmount: number | null;
242
+ maxTotalRaise: number | null;
243
+ interestRate: number | null;
244
+ interestType: InterestType | null;
221
245
  __entity?: string | undefined;
222
246
  account?: {
223
247
  status: import("./common.types").AccountStatus;
@@ -252,6 +276,10 @@ export declare const IPaginatedAsset: z.ZodObject<{
252
276
  durationType: DurationType | null;
253
277
  tiers: number[] | null;
254
278
  enableBonus: boolean;
279
+ principalAmount: number | null;
280
+ maxTotalRaise: number | null;
281
+ interestRate: number | null;
282
+ interestType: InterestType | null;
255
283
  __entity?: string | undefined;
256
284
  account?: {
257
285
  status: import("./common.types").AccountStatus;
@@ -307,6 +335,10 @@ export declare const IPaginatedAsset: z.ZodObject<{
307
335
  durationType: DurationType | null;
308
336
  tiers: number[] | null;
309
337
  enableBonus: boolean;
338
+ principalAmount: number | null;
339
+ maxTotalRaise: number | null;
340
+ interestRate: number | null;
341
+ interestType: InterestType | null;
310
342
  __entity?: string | undefined;
311
343
  account?: {
312
344
  status: import("./common.types").AccountStatus;
@@ -350,6 +382,10 @@ export declare const IPaginatedAsset: z.ZodObject<{
350
382
  durationType: DurationType | null;
351
383
  tiers: number[] | null;
352
384
  enableBonus: boolean;
385
+ principalAmount: number | null;
386
+ maxTotalRaise: number | null;
387
+ interestRate: number | null;
388
+ interestType: InterestType | null;
353
389
  __entity?: string | undefined;
354
390
  account?: {
355
391
  status: import("./common.types").AccountStatus;
@@ -389,6 +425,10 @@ export declare const PostAsset: z.ZodEffects<z.ZodObject<{
389
425
  template: z.ZodDefault<z.ZodNativeEnum<typeof AssetTemplateType>>;
390
426
  tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
391
427
  enableBonus: z.ZodDefault<z.ZodBoolean>;
428
+ principalAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
429
+ maxTotalRaise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
430
+ interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
431
+ interestType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>>;
392
432
  }, "strip", z.ZodTypeAny, {
393
433
  type: AssetType;
394
434
  name: string;
@@ -401,6 +441,10 @@ export declare const PostAsset: z.ZodEffects<z.ZodObject<{
401
441
  duration?: number | null | undefined;
402
442
  durationType?: DurationType | null | undefined;
403
443
  tiers?: number[] | null | undefined;
444
+ principalAmount?: number | null | undefined;
445
+ maxTotalRaise?: number | null | undefined;
446
+ interestRate?: number | null | undefined;
447
+ interestType?: InterestType | null | undefined;
404
448
  }, {
405
449
  type: AssetType;
406
450
  name: string;
@@ -413,6 +457,10 @@ export declare const PostAsset: z.ZodEffects<z.ZodObject<{
413
457
  durationType?: DurationType | null | undefined;
414
458
  tiers?: number[] | null | undefined;
415
459
  enableBonus?: boolean | undefined;
460
+ principalAmount?: number | null | undefined;
461
+ maxTotalRaise?: number | null | undefined;
462
+ interestRate?: number | null | undefined;
463
+ interestType?: InterestType | null | undefined;
416
464
  }>, {
417
465
  type: AssetType;
418
466
  name: string;
@@ -425,6 +473,10 @@ export declare const PostAsset: z.ZodEffects<z.ZodObject<{
425
473
  duration?: number | null | undefined;
426
474
  durationType?: DurationType | null | undefined;
427
475
  tiers?: number[] | null | undefined;
476
+ principalAmount?: number | null | undefined;
477
+ maxTotalRaise?: number | null | undefined;
478
+ interestRate?: number | null | undefined;
479
+ interestType?: InterestType | null | undefined;
428
480
  }, {
429
481
  type: AssetType;
430
482
  name: string;
@@ -437,6 +489,10 @@ export declare const PostAsset: z.ZodEffects<z.ZodObject<{
437
489
  durationType?: DurationType | null | undefined;
438
490
  tiers?: number[] | null | undefined;
439
491
  enableBonus?: boolean | undefined;
492
+ principalAmount?: number | null | undefined;
493
+ maxTotalRaise?: number | null | undefined;
494
+ interestRate?: number | null | undefined;
495
+ interestType?: InterestType | null | undefined;
440
496
  }>;
441
497
  export type PostAsset = z.infer<typeof PostAsset>;
442
498
  export declare const CompliancePostAsset: z.ZodEffects<z.ZodObject<{
@@ -451,6 +507,10 @@ export declare const CompliancePostAsset: z.ZodEffects<z.ZodObject<{
451
507
  template: z.ZodDefault<z.ZodNativeEnum<typeof AssetTemplateType>>;
452
508
  tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
453
509
  enableBonus: z.ZodDefault<z.ZodBoolean>;
510
+ principalAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
511
+ maxTotalRaise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
512
+ interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
513
+ interestType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>>;
454
514
  } & {
455
515
  accountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
456
516
  }, "strip", z.ZodTypeAny, {
@@ -466,6 +526,10 @@ export declare const CompliancePostAsset: z.ZodEffects<z.ZodObject<{
466
526
  duration?: number | null | undefined;
467
527
  durationType?: DurationType | null | undefined;
468
528
  tiers?: number[] | null | undefined;
529
+ principalAmount?: number | null | undefined;
530
+ maxTotalRaise?: number | null | undefined;
531
+ interestRate?: number | null | undefined;
532
+ interestType?: InterestType | null | undefined;
469
533
  }, {
470
534
  type: AssetType;
471
535
  accountId: string;
@@ -479,6 +543,10 @@ export declare const CompliancePostAsset: z.ZodEffects<z.ZodObject<{
479
543
  durationType?: DurationType | null | undefined;
480
544
  tiers?: number[] | null | undefined;
481
545
  enableBonus?: boolean | undefined;
546
+ principalAmount?: number | null | undefined;
547
+ maxTotalRaise?: number | null | undefined;
548
+ interestRate?: number | null | undefined;
549
+ interestType?: InterestType | null | undefined;
482
550
  }>, {
483
551
  type: AssetType;
484
552
  accountId: string;
@@ -492,6 +560,10 @@ export declare const CompliancePostAsset: z.ZodEffects<z.ZodObject<{
492
560
  duration?: number | null | undefined;
493
561
  durationType?: DurationType | null | undefined;
494
562
  tiers?: number[] | null | undefined;
563
+ principalAmount?: number | null | undefined;
564
+ maxTotalRaise?: number | null | undefined;
565
+ interestRate?: number | null | undefined;
566
+ interestType?: InterestType | null | undefined;
495
567
  }, {
496
568
  type: AssetType;
497
569
  accountId: string;
@@ -505,6 +577,10 @@ export declare const CompliancePostAsset: z.ZodEffects<z.ZodObject<{
505
577
  durationType?: DurationType | null | undefined;
506
578
  tiers?: number[] | null | undefined;
507
579
  enableBonus?: boolean | undefined;
580
+ principalAmount?: number | null | undefined;
581
+ maxTotalRaise?: number | null | undefined;
582
+ interestRate?: number | null | undefined;
583
+ interestType?: InterestType | null | undefined;
508
584
  }>;
509
585
  export type CompliancePostAsset = z.infer<typeof CompliancePostAsset>;
510
586
  export declare const PutAsset: z.ZodObject<{
@@ -518,6 +594,10 @@ export declare const PutAsset: z.ZodObject<{
518
594
  template: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNativeEnum<typeof AssetTemplateType>>>>;
519
595
  tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
520
596
  enableBonus: z.ZodOptional<z.ZodBoolean>;
597
+ principalAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
598
+ maxTotalRaise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
599
+ interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
600
+ interestType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>>;
521
601
  }, "strip", z.ZodTypeAny, {
522
602
  type?: AssetType | undefined;
523
603
  name?: string | undefined;
@@ -529,6 +609,10 @@ export declare const PutAsset: z.ZodObject<{
529
609
  durationType?: DurationType | null | undefined;
530
610
  tiers?: number[] | null | undefined;
531
611
  enableBonus?: boolean | undefined;
612
+ principalAmount?: number | null | undefined;
613
+ maxTotalRaise?: number | null | undefined;
614
+ interestRate?: number | null | undefined;
615
+ interestType?: InterestType | null | undefined;
532
616
  }, {
533
617
  type?: AssetType | undefined;
534
618
  name?: string | undefined;
@@ -540,6 +624,10 @@ export declare const PutAsset: z.ZodObject<{
540
624
  durationType?: DurationType | null | undefined;
541
625
  tiers?: number[] | null | undefined;
542
626
  enableBonus?: boolean | undefined;
627
+ principalAmount?: number | null | undefined;
628
+ maxTotalRaise?: number | null | undefined;
629
+ interestRate?: number | null | undefined;
630
+ interestType?: InterestType | null | undefined;
543
631
  }>;
544
632
  export type PutAsset = z.infer<typeof PutAsset>;
545
633
  export declare const CompliancePutAsset: z.ZodObject<{
@@ -553,6 +641,10 @@ export declare const CompliancePutAsset: z.ZodObject<{
553
641
  template: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNativeEnum<typeof AssetTemplateType>>>>;
554
642
  tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
555
643
  enableBonus: z.ZodOptional<z.ZodBoolean>;
644
+ principalAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
645
+ maxTotalRaise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
646
+ interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
647
+ interestType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>>;
556
648
  } & {
557
649
  accountId: z.ZodEffects<z.ZodString, string, string>;
558
650
  }, "strip", z.ZodTypeAny, {
@@ -567,6 +659,10 @@ export declare const CompliancePutAsset: z.ZodObject<{
567
659
  durationType?: DurationType | null | undefined;
568
660
  tiers?: number[] | null | undefined;
569
661
  enableBonus?: boolean | undefined;
662
+ principalAmount?: number | null | undefined;
663
+ maxTotalRaise?: number | null | undefined;
664
+ interestRate?: number | null | undefined;
665
+ interestType?: InterestType | null | undefined;
570
666
  }, {
571
667
  accountId: string;
572
668
  type?: AssetType | undefined;
@@ -579,6 +675,10 @@ export declare const CompliancePutAsset: z.ZodObject<{
579
675
  durationType?: DurationType | null | undefined;
580
676
  tiers?: number[] | null | undefined;
581
677
  enableBonus?: boolean | undefined;
678
+ principalAmount?: number | null | undefined;
679
+ maxTotalRaise?: number | null | undefined;
680
+ interestRate?: number | null | undefined;
681
+ interestType?: InterestType | null | undefined;
582
682
  }>;
583
683
  export type CompliancePutAsset = z.infer<typeof CompliancePutAsset>;
584
684
  export declare const AssetsIncludeQuery: z.ZodObject<{
@@ -651,6 +751,87 @@ export declare const StockAssetSchema: z.ZodObject<{
651
751
  totalUnits: number | null;
652
752
  }>;
653
753
  export type StockAssetSchema = z.infer<typeof StockAssetSchema>;
754
+ export declare const PromissoryNoteAssetSchema: z.ZodObject<{
755
+ id: z.ZodString;
756
+ name: z.ZodString;
757
+ accountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
758
+ offeringId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
759
+ issuerId: z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
760
+ pricePerUnit: z.ZodNullable<z.ZodNumber>;
761
+ totalUnits: z.ZodNullable<z.ZodNumber>;
762
+ } & {
763
+ type: z.ZodLiteral<AssetType.PROMISSORY_NOTE>;
764
+ principalAmount: z.ZodNullable<z.ZodNumber>;
765
+ maxTotalRaise: z.ZodNullable<z.ZodNumber>;
766
+ interestRate: z.ZodNullable<z.ZodNumber>;
767
+ interestType: z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>;
768
+ }, "strip", z.ZodTypeAny, {
769
+ type: AssetType.PROMISSORY_NOTE;
770
+ id: string;
771
+ accountId: string;
772
+ name: string;
773
+ offeringId: string;
774
+ issuerId: string | null;
775
+ pricePerUnit: number | null;
776
+ totalUnits: number | null;
777
+ principalAmount: number | null;
778
+ maxTotalRaise: number | null;
779
+ interestRate: number | null;
780
+ interestType: InterestType | null;
781
+ }, {
782
+ type: AssetType.PROMISSORY_NOTE;
783
+ id: string;
784
+ accountId: string;
785
+ name: string;
786
+ offeringId: string;
787
+ issuerId: string | null;
788
+ pricePerUnit: number | null;
789
+ totalUnits: number | null;
790
+ principalAmount: number | null;
791
+ maxTotalRaise: number | null;
792
+ interestRate: number | null;
793
+ interestType: InterestType | null;
794
+ }>;
795
+ export type PromissoryNoteAssetSchema = z.infer<typeof PromissoryNoteAssetSchema>;
796
+ declare const BondAssetSchema: z.ZodObject<{
797
+ id: z.ZodString;
798
+ name: z.ZodString;
799
+ accountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
800
+ offeringId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
801
+ issuerId: z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
802
+ pricePerUnit: z.ZodNullable<z.ZodNumber>;
803
+ totalUnits: z.ZodNullable<z.ZodNumber>;
804
+ } & {
805
+ type: z.ZodNullable<z.ZodLiteral<AssetType.BOND>>;
806
+ yield: z.ZodNullable<z.ZodNumber>;
807
+ duration: z.ZodNullable<z.ZodNumber>;
808
+ durationType: z.ZodNullable<z.ZodNativeEnum<typeof DurationType>>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ type: AssetType.BOND | null;
811
+ id: string;
812
+ accountId: string;
813
+ name: string;
814
+ offeringId: string;
815
+ issuerId: string | null;
816
+ pricePerUnit: number | null;
817
+ totalUnits: number | null;
818
+ yield: number | null;
819
+ duration: number | null;
820
+ durationType: DurationType | null;
821
+ }, {
822
+ type: AssetType.BOND | null;
823
+ id: string;
824
+ accountId: string;
825
+ name: string;
826
+ offeringId: string;
827
+ issuerId: string | null;
828
+ pricePerUnit: number | null;
829
+ totalUnits: number | null;
830
+ yield: number | null;
831
+ duration: number | null;
832
+ durationType: DurationType | null;
833
+ }>;
834
+ export type BondAssetSchema = z.infer<typeof BondAssetSchema>;
654
835
  export declare const AssetSummarySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
655
836
  id: z.ZodString;
656
837
  name: z.ZodString;
@@ -716,6 +897,46 @@ export declare const AssetSummarySchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
716
897
  yield: number | null;
717
898
  duration: number | null;
718
899
  durationType: DurationType | null;
900
+ }>, z.ZodObject<{
901
+ id: z.ZodString;
902
+ name: z.ZodString;
903
+ accountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
904
+ offeringId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
905
+ issuerId: z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
906
+ pricePerUnit: z.ZodNullable<z.ZodNumber>;
907
+ totalUnits: z.ZodNullable<z.ZodNumber>;
908
+ } & {
909
+ type: z.ZodLiteral<AssetType.PROMISSORY_NOTE>;
910
+ principalAmount: z.ZodNullable<z.ZodNumber>;
911
+ maxTotalRaise: z.ZodNullable<z.ZodNumber>;
912
+ interestRate: z.ZodNullable<z.ZodNumber>;
913
+ interestType: z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>;
914
+ }, "strip", z.ZodTypeAny, {
915
+ type: AssetType.PROMISSORY_NOTE;
916
+ id: string;
917
+ accountId: string;
918
+ name: string;
919
+ offeringId: string;
920
+ issuerId: string | null;
921
+ pricePerUnit: number | null;
922
+ totalUnits: number | null;
923
+ principalAmount: number | null;
924
+ maxTotalRaise: number | null;
925
+ interestRate: number | null;
926
+ interestType: InterestType | null;
927
+ }, {
928
+ type: AssetType.PROMISSORY_NOTE;
929
+ id: string;
930
+ accountId: string;
931
+ name: string;
932
+ offeringId: string;
933
+ issuerId: string | null;
934
+ pricePerUnit: number | null;
935
+ totalUnits: number | null;
936
+ principalAmount: number | null;
937
+ maxTotalRaise: number | null;
938
+ interestRate: number | null;
939
+ interestType: InterestType | null;
719
940
  }>]>;
720
941
  export type AssetSummarySchema = z.infer<typeof AssetSummarySchema>;
721
942
  export declare const IPaginatedAssetSummary: z.ZodObject<{
@@ -784,6 +1005,46 @@ export declare const IPaginatedAssetSummary: z.ZodObject<{
784
1005
  yield: number | null;
785
1006
  duration: number | null;
786
1007
  durationType: DurationType | null;
1008
+ }>, z.ZodObject<{
1009
+ id: z.ZodString;
1010
+ name: z.ZodString;
1011
+ accountId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
1012
+ offeringId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
1013
+ issuerId: z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
1014
+ pricePerUnit: z.ZodNullable<z.ZodNumber>;
1015
+ totalUnits: z.ZodNullable<z.ZodNumber>;
1016
+ } & {
1017
+ type: z.ZodLiteral<AssetType.PROMISSORY_NOTE>;
1018
+ principalAmount: z.ZodNullable<z.ZodNumber>;
1019
+ maxTotalRaise: z.ZodNullable<z.ZodNumber>;
1020
+ interestRate: z.ZodNullable<z.ZodNumber>;
1021
+ interestType: z.ZodNullable<z.ZodNativeEnum<typeof InterestType>>;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ type: AssetType.PROMISSORY_NOTE;
1024
+ id: string;
1025
+ accountId: string;
1026
+ name: string;
1027
+ offeringId: string;
1028
+ issuerId: string | null;
1029
+ pricePerUnit: number | null;
1030
+ totalUnits: number | null;
1031
+ principalAmount: number | null;
1032
+ maxTotalRaise: number | null;
1033
+ interestRate: number | null;
1034
+ interestType: InterestType | null;
1035
+ }, {
1036
+ type: AssetType.PROMISSORY_NOTE;
1037
+ id: string;
1038
+ accountId: string;
1039
+ name: string;
1040
+ offeringId: string;
1041
+ issuerId: string | null;
1042
+ pricePerUnit: number | null;
1043
+ totalUnits: number | null;
1044
+ principalAmount: number | null;
1045
+ maxTotalRaise: number | null;
1046
+ interestRate: number | null;
1047
+ interestType: InterestType | null;
787
1048
  }>]>, "many">;
788
1049
  meta: z.ZodObject<{
789
1050
  itemCount: z.ZodNumber;
@@ -814,6 +1075,19 @@ export declare const IPaginatedAssetSummary: z.ZodObject<{
814
1075
  issuerId: string | null;
815
1076
  pricePerUnit: number | null;
816
1077
  totalUnits: number | null;
1078
+ } | {
1079
+ type: AssetType.PROMISSORY_NOTE;
1080
+ id: string;
1081
+ accountId: string;
1082
+ name: string;
1083
+ offeringId: string;
1084
+ issuerId: string | null;
1085
+ pricePerUnit: number | null;
1086
+ totalUnits: number | null;
1087
+ principalAmount: number | null;
1088
+ maxTotalRaise: number | null;
1089
+ interestRate: number | null;
1090
+ interestType: InterestType | null;
817
1091
  } | {
818
1092
  type: AssetType.BOND | null;
819
1093
  id: string;
@@ -844,6 +1118,19 @@ export declare const IPaginatedAssetSummary: z.ZodObject<{
844
1118
  issuerId: string | null;
845
1119
  pricePerUnit: number | null;
846
1120
  totalUnits: number | null;
1121
+ } | {
1122
+ type: AssetType.PROMISSORY_NOTE;
1123
+ id: string;
1124
+ accountId: string;
1125
+ name: string;
1126
+ offeringId: string;
1127
+ issuerId: string | null;
1128
+ pricePerUnit: number | null;
1129
+ totalUnits: number | null;
1130
+ principalAmount: number | null;
1131
+ maxTotalRaise: number | null;
1132
+ interestRate: number | null;
1133
+ interestType: InterestType | null;
847
1134
  } | {
848
1135
  type: AssetType.BOND | null;
849
1136
  id: string;
@@ -886,3 +1173,14 @@ export declare const AssetSummaryFiltersZod: z.ZodObject<{
886
1173
  issuerId?: string | undefined;
887
1174
  }>;
888
1175
  export type AssetSummaryFiltersZod = z.infer<typeof AssetSummaryFiltersZod>;
1176
+ /**
1177
+ * Maps asset types to fields that should be reset (nullified) when converting
1178
+ * from one asset type to another. This ensures incompatible fields from the
1179
+ * previous type are cleared when the asset type changes.
1180
+ */
1181
+ export declare const ASSET_TYPE_FIELD_RESETS: Record<AssetType, Partial<IAsset>>;
1182
+ /**
1183
+ * Maps asset types to their required fields when converting TO that asset type.
1184
+ */
1185
+ export declare const ASSET_TYPE_REQUIRED_FIELDS: Record<AssetType, Array<keyof IAsset>>;
1186
+ export {};