@dalmore/api-contracts 0.0.0-dev.f317bb8 → 0.0.0-dev.f48e7e9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) 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 +8 -0
  5. package/common/helpers/index.js +15 -0
  6. package/common/helpers/index.js.map +1 -1
  7. package/common/types/account.types.js +3 -3
  8. package/common/types/account.types.js.map +1 -1
  9. package/common/types/common.types.d.ts +9 -3
  10. package/common/types/common.types.js +9 -3
  11. package/common/types/common.types.js.map +1 -1
  12. package/common/types/csv.types.d.ts +2214 -159
  13. package/common/types/csv.types.js +175 -39
  14. package/common/types/csv.types.js.map +1 -1
  15. package/common/types/investors-offering.types.d.ts +8 -0
  16. package/common/types/investors-offering.types.js +1 -0
  17. package/common/types/investors-offering.types.js.map +1 -1
  18. package/common/types/invite.types.d.ts +3 -0
  19. package/common/types/invite.types.js +1 -0
  20. package/common/types/invite.types.js.map +1 -1
  21. package/common/types/issuer-offering.types.d.ts +173 -2
  22. package/common/types/issuer-offering.types.js +11 -22
  23. package/common/types/issuer-offering.types.js.map +1 -1
  24. package/common/types/offering-submission.types.js +1 -1
  25. package/common/types/offering.types.d.ts +14 -4
  26. package/common/types/offering.types.js +32 -3
  27. package/common/types/offering.types.js.map +1 -1
  28. package/common/types/task.types.d.ts +8 -0
  29. package/common/types/task.types.js +3 -0
  30. package/common/types/task.types.js.map +1 -1
  31. package/common/types/trade.types.d.ts +11 -14
  32. package/common/types/trade.types.js +11 -7
  33. package/common/types/trade.types.js.map +1 -1
  34. package/common/types/user.types.d.ts +6 -112
  35. package/common/types/user.types.js +5 -26
  36. package/common/types/user.types.js.map +1 -1
  37. package/contracts/clients/csv/index.d.ts +219 -13
  38. package/contracts/clients/csv/index.js +36 -2
  39. package/contracts/clients/csv/index.js.map +1 -1
  40. package/contracts/clients/index.d.ts +221 -15
  41. package/contracts/clients/offerings/index.d.ts +2 -2
  42. package/package.json +1 -1
@@ -2767,13 +2767,6 @@ export declare const clientsContract: {
2767
2767
  body: import("@ts-rest/core").ContractPlainType<{
2768
2768
  file: File;
2769
2769
  }>;
2770
- query: import("zod").ZodObject<{
2771
- type: import("zod").ZodNativeEnum<typeof import("../..").InvestorAccountType>;
2772
- }, "strip", import("zod").ZodTypeAny, {
2773
- type: import("../..").InvestorAccountType;
2774
- }, {
2775
- type: import("../..").InvestorAccountType;
2776
- }>;
2777
2770
  summary: "Upload and process CSV file for investor account creation";
2778
2771
  contentType: "multipart/form-data";
2779
2772
  path: "/clients/api/v1/csv/investors";
@@ -2781,7 +2774,7 @@ export declare const clientsContract: {
2781
2774
  200: import("zod").ZodObject<{
2782
2775
  totalRows: import("zod").ZodNumber;
2783
2776
  successfulRows: import("zod").ZodNumber;
2784
- createdAccounts: import("zod").ZodArray<import("zod").ZodObject<{
2777
+ createdAccounts: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
2785
2778
  row: import("zod").ZodNumber;
2786
2779
  userId: import("zod").ZodString;
2787
2780
  investorAccountId: import("zod").ZodString;
@@ -2793,23 +2786,43 @@ export declare const clientsContract: {
2793
2786
  userId: string;
2794
2787
  investorAccountId: string;
2795
2788
  row: number;
2796
- }>, "many">;
2789
+ }>, import("zod").ZodObject<{
2790
+ row: import("zod").ZodNumber;
2791
+ userId: import("zod").ZodString;
2792
+ accountId: import("zod").ZodString;
2793
+ }, "strip", import("zod").ZodTypeAny, {
2794
+ accountId: string;
2795
+ userId: string;
2796
+ row: number;
2797
+ }, {
2798
+ accountId: string;
2799
+ userId: string;
2800
+ row: number;
2801
+ }>]>, "many">;
2797
2802
  }, "strip", import("zod").ZodTypeAny, {
2798
2803
  totalRows: number;
2799
2804
  successfulRows: number;
2800
- createdAccounts: {
2805
+ createdAccounts: ({
2801
2806
  userId: string;
2802
2807
  investorAccountId: string;
2803
2808
  row: number;
2804
- }[];
2809
+ } | {
2810
+ accountId: string;
2811
+ userId: string;
2812
+ row: number;
2813
+ })[];
2805
2814
  }, {
2806
2815
  totalRows: number;
2807
2816
  successfulRows: number;
2808
- createdAccounts: {
2817
+ createdAccounts: ({
2809
2818
  userId: string;
2810
2819
  investorAccountId: string;
2811
2820
  row: number;
2812
- }[];
2821
+ } | {
2822
+ accountId: string;
2823
+ userId: string;
2824
+ row: number;
2825
+ })[];
2813
2826
  }>;
2814
2827
  400: import("zod").ZodObject<{
2815
2828
  status: import("zod").ZodNumber;
@@ -4351,6 +4364,199 @@ export declare const clientsContract: {
4351
4364
  }>;
4352
4365
  };
4353
4366
  };
4367
+ uploadIssuerCsv: {
4368
+ method: "POST";
4369
+ metadata: {
4370
+ auth: boolean;
4371
+ };
4372
+ body: import("@ts-rest/core").ContractPlainType<{
4373
+ file: File;
4374
+ }>;
4375
+ summary: "Upload and process CSV file for issuer account creation";
4376
+ contentType: "multipart/form-data";
4377
+ path: "/clients/api/v1/csv/issuers";
4378
+ responses: {
4379
+ 200: import("zod").ZodObject<{
4380
+ totalRows: import("zod").ZodNumber;
4381
+ successfulRows: import("zod").ZodNumber;
4382
+ createdAccounts: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
4383
+ row: import("zod").ZodNumber;
4384
+ userId: import("zod").ZodString;
4385
+ investorAccountId: import("zod").ZodString;
4386
+ }, "strip", import("zod").ZodTypeAny, {
4387
+ userId: string;
4388
+ investorAccountId: string;
4389
+ row: number;
4390
+ }, {
4391
+ userId: string;
4392
+ investorAccountId: string;
4393
+ row: number;
4394
+ }>, import("zod").ZodObject<{
4395
+ row: import("zod").ZodNumber;
4396
+ userId: import("zod").ZodString;
4397
+ accountId: import("zod").ZodString;
4398
+ }, "strip", import("zod").ZodTypeAny, {
4399
+ accountId: string;
4400
+ userId: string;
4401
+ row: number;
4402
+ }, {
4403
+ accountId: string;
4404
+ userId: string;
4405
+ row: number;
4406
+ }>]>, "many">;
4407
+ }, "strip", import("zod").ZodTypeAny, {
4408
+ totalRows: number;
4409
+ successfulRows: number;
4410
+ createdAccounts: ({
4411
+ userId: string;
4412
+ investorAccountId: string;
4413
+ row: number;
4414
+ } | {
4415
+ accountId: string;
4416
+ userId: string;
4417
+ row: number;
4418
+ })[];
4419
+ }, {
4420
+ totalRows: number;
4421
+ successfulRows: number;
4422
+ createdAccounts: ({
4423
+ userId: string;
4424
+ investorAccountId: string;
4425
+ row: number;
4426
+ } | {
4427
+ accountId: string;
4428
+ userId: string;
4429
+ row: number;
4430
+ })[];
4431
+ }>;
4432
+ 400: import("zod").ZodObject<{
4433
+ status: import("zod").ZodNumber;
4434
+ message: import("zod").ZodString;
4435
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
4436
+ }, "strip", import("zod").ZodTypeAny, {
4437
+ message: string;
4438
+ status: number;
4439
+ errors: string[];
4440
+ }, {
4441
+ message: string;
4442
+ status: number;
4443
+ errors: string[];
4444
+ }>;
4445
+ 401: import("zod").ZodObject<{
4446
+ status: import("zod").ZodNumber;
4447
+ message: import("zod").ZodString;
4448
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
4449
+ }, "strip", import("zod").ZodTypeAny, {
4450
+ message: string;
4451
+ status: number;
4452
+ errors: string[];
4453
+ }, {
4454
+ message: string;
4455
+ status: number;
4456
+ errors: string[];
4457
+ }>;
4458
+ 422: import("zod").ZodObject<{
4459
+ status: import("zod").ZodNumber;
4460
+ message: import("zod").ZodString;
4461
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
4462
+ }, "strip", import("zod").ZodTypeAny, {
4463
+ message: string;
4464
+ status: number;
4465
+ errors: string[];
4466
+ }, {
4467
+ message: string;
4468
+ status: number;
4469
+ errors: string[];
4470
+ }>;
4471
+ 500: import("zod").ZodObject<{
4472
+ status: import("zod").ZodNumber;
4473
+ message: import("zod").ZodString;
4474
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
4475
+ }, "strip", import("zod").ZodTypeAny, {
4476
+ message: string;
4477
+ status: number;
4478
+ errors: string[];
4479
+ }, {
4480
+ message: string;
4481
+ status: number;
4482
+ errors: string[];
4483
+ }>;
4484
+ };
4485
+ };
4486
+ uploadOfferingCsv: {
4487
+ method: "POST";
4488
+ metadata: {
4489
+ auth: boolean;
4490
+ };
4491
+ body: import("@ts-rest/core").ContractPlainType<{
4492
+ file: File;
4493
+ }>;
4494
+ query: import("zod").ZodObject<{
4495
+ issuerId: import("zod").ZodEffects<import("zod").ZodString, string, string>;
4496
+ }, "strip", import("zod").ZodTypeAny, {
4497
+ issuerId: string;
4498
+ }, {
4499
+ issuerId: string;
4500
+ }>;
4501
+ summary: "Upload and process CSV file for offering creation";
4502
+ contentType: "multipart/form-data";
4503
+ path: "/clients/api/v1/csv/offering";
4504
+ responses: {
4505
+ 200: import("zod").ZodLazy<any>;
4506
+ 400: import("zod").ZodObject<{
4507
+ status: import("zod").ZodNumber;
4508
+ message: import("zod").ZodString;
4509
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
4510
+ }, "strip", import("zod").ZodTypeAny, {
4511
+ message: string;
4512
+ status: number;
4513
+ errors: string[];
4514
+ }, {
4515
+ message: string;
4516
+ status: number;
4517
+ errors: string[];
4518
+ }>;
4519
+ 401: import("zod").ZodObject<{
4520
+ status: import("zod").ZodNumber;
4521
+ message: import("zod").ZodString;
4522
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
4523
+ }, "strip", import("zod").ZodTypeAny, {
4524
+ message: string;
4525
+ status: number;
4526
+ errors: string[];
4527
+ }, {
4528
+ message: string;
4529
+ status: number;
4530
+ errors: string[];
4531
+ }>;
4532
+ 404: import("zod").ZodObject<{
4533
+ status: import("zod").ZodNumber;
4534
+ message: import("zod").ZodString;
4535
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
4536
+ }, "strip", import("zod").ZodTypeAny, {
4537
+ message: string;
4538
+ status: number;
4539
+ errors: string[];
4540
+ }, {
4541
+ message: string;
4542
+ status: number;
4543
+ errors: string[];
4544
+ }>;
4545
+ 500: import("zod").ZodObject<{
4546
+ status: import("zod").ZodNumber;
4547
+ message: import("zod").ZodString;
4548
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
4549
+ }, "strip", import("zod").ZodTypeAny, {
4550
+ message: string;
4551
+ status: number;
4552
+ errors: string[];
4553
+ }, {
4554
+ message: string;
4555
+ status: number;
4556
+ errors: string[];
4557
+ }>;
4558
+ };
4559
+ };
4354
4560
  };
4355
4561
  files: {
4356
4562
  postFile: {
@@ -11368,7 +11574,7 @@ export declare const clientsContract: {
11368
11574
  startAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>>>;
11369
11575
  endAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>>>;
11370
11576
  cancellationPeriod: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
11371
- description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
11577
+ description: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>>;
11372
11578
  memorandumId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>>>;
11373
11579
  subscriptionAgreementId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>>>;
11374
11580
  coverArtId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodString, string, string>>>>;
@@ -11715,7 +11921,7 @@ export declare const clientsContract: {
11715
11921
  endAt: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, Date | null, string | null>>;
11716
11922
  active: import("zod").ZodOptional<import("zod").ZodBoolean>;
11717
11923
  cancellationPeriod: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
11718
- description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
11924
+ description: import("zod").ZodLazy<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>>;
11719
11925
  managedBy: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("../..").ManagedByType>>;
11720
11926
  assetName: import("zod").ZodString;
11721
11927
  assetType: import("zod").ZodNativeEnum<typeof import("../..").AssetType>;
@@ -423,7 +423,7 @@ export declare const offeringsContract: {
423
423
  startAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>>;
424
424
  endAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>>;
425
425
  cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
426
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
426
+ description: z.ZodLazy<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>>;
427
427
  memorandumId: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
428
428
  subscriptionAgreementId: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
429
429
  coverArtId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
@@ -770,7 +770,7 @@ export declare const offeringsContract: {
770
770
  endAt: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>;
771
771
  active: z.ZodOptional<z.ZodBoolean>;
772
772
  cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
773
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
773
+ description: z.ZodLazy<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>>;
774
774
  managedBy: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").ManagedByType>>;
775
775
  assetName: z.ZodString;
776
776
  assetType: z.ZodNativeEnum<typeof import("../../..").AssetType>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalmore/api-contracts",
3
- "version": "0.0.0-dev.f317bb8",
3
+ "version": "0.0.0-dev.f48e7e9",
4
4
  "description": "Type-safe API contracts for Dalmore Client Portal",
5
5
  "type": "module",
6
6
  "main": "./index.js",