@dalmore/api-contracts 0.0.0-dev.fbcf2bc → 0.0.0-dev.fbec0a1

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 (63) hide show
  1. package/common/constants.d.ts +28 -0
  2. package/common/constants.js +62 -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/auth.types.d.ts +36 -0
  8. package/common/types/auth.types.js +3 -2
  9. package/common/types/auth.types.js.map +1 -1
  10. package/common/types/cap-table.types.d.ts +109 -0
  11. package/common/types/cap-table.types.js +14 -0
  12. package/common/types/cap-table.types.js.map +1 -1
  13. package/common/types/common.types.d.ts +2 -1
  14. package/common/types/common.types.js +1 -0
  15. package/common/types/common.types.js.map +1 -1
  16. package/common/types/csv.types.d.ts +1730 -0
  17. package/common/types/csv.types.js +178 -0
  18. package/common/types/csv.types.js.map +1 -0
  19. package/common/types/disbursements.types.d.ts +122 -7
  20. package/common/types/disbursements.types.js +29 -2
  21. package/common/types/disbursements.types.js.map +1 -1
  22. package/common/types/file.types.d.ts +3 -0
  23. package/common/types/file.types.js +3 -0
  24. package/common/types/file.types.js.map +1 -1
  25. package/common/types/index.d.ts +1 -0
  26. package/common/types/index.js +1 -0
  27. package/common/types/index.js.map +1 -1
  28. package/common/types/individuals.types.d.ts +207 -5
  29. package/common/types/individuals.types.js +11 -14
  30. package/common/types/individuals.types.js.map +1 -1
  31. package/common/types/investors-offering.types.d.ts +8 -0
  32. package/common/types/investors-offering.types.js +1 -0
  33. package/common/types/investors-offering.types.js.map +1 -1
  34. package/common/types/issuer-offering.types.d.ts +15 -2
  35. package/common/types/issuer-offering.types.js +7 -16
  36. package/common/types/issuer-offering.types.js.map +1 -1
  37. package/common/types/legal-entity.types.d.ts +39 -1
  38. package/common/types/legal-entity.types.js +8 -5
  39. package/common/types/legal-entity.types.js.map +1 -1
  40. package/common/types/offering.types.d.ts +15 -5
  41. package/common/types/offering.types.js +33 -2
  42. package/common/types/offering.types.js.map +1 -1
  43. package/common/types/review.types.js +1 -1
  44. package/common/types/review.types.js.map +1 -1
  45. package/common/types/trade-line-item.types.d.ts +24 -0
  46. package/common/types/trade-line-item.types.js +3 -0
  47. package/common/types/trade-line-item.types.js.map +1 -1
  48. package/common/types/trade.types.d.ts +1 -0
  49. package/common/types/trade.types.js +15 -1
  50. package/common/types/trade.types.js.map +1 -1
  51. package/contracts/clients/csv/index.d.ts +1733 -0
  52. package/contracts/clients/csv/index.js +79 -0
  53. package/contracts/clients/csv/index.js.map +1 -0
  54. package/contracts/clients/index.d.ts +1830 -8
  55. package/contracts/clients/index.js +4 -0
  56. package/contracts/clients/index.js.map +1 -1
  57. package/contracts/clients/individuals/index.d.ts +5 -5
  58. package/contracts/clients/legal-entities/index.d.ts +1 -1
  59. package/contracts/clients/offerings/index.d.ts +7 -2
  60. package/contracts/clients/review/index.d.ts +85 -0
  61. package/contracts/clients/review/index.js +27 -0
  62. package/contracts/clients/review/index.js.map +1 -0
  63. 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,M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B,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,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;
@@ -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>;
@@ -829,6 +829,7 @@ export declare const offeringsContract: {
829
829
  warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
830
830
  calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../..").WarrantSharesCalculationMethod>>>;
831
831
  incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
832
+ showTotalRaised: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
832
833
  }, "strip", z.ZodTypeAny, {
833
834
  type: import("../../..").OfferingType;
834
835
  name: string;
@@ -850,6 +851,7 @@ export declare const offeringsContract: {
850
851
  startAt?: Date | null | undefined;
851
852
  endAt?: Date | null | undefined;
852
853
  cancellationPeriod?: number | null | undefined;
854
+ showTotalRaised?: boolean | undefined;
853
855
  hasEscrow?: boolean | undefined;
854
856
  bankAccountId?: string | null | undefined;
855
857
  escrowAccountId?: string | null | undefined;
@@ -892,6 +894,7 @@ export declare const offeringsContract: {
892
894
  startAt?: string | null | undefined;
893
895
  endAt?: string | null | undefined;
894
896
  cancellationPeriod?: number | null | undefined;
897
+ showTotalRaised?: boolean | undefined;
895
898
  hasEscrow?: boolean | undefined;
896
899
  bankAccountId?: string | null | undefined;
897
900
  escrowAccountId?: string | null | undefined;
@@ -936,6 +939,7 @@ export declare const offeringsContract: {
936
939
  startAt?: Date | null | undefined;
937
940
  endAt?: Date | null | undefined;
938
941
  cancellationPeriod?: number | null | undefined;
942
+ showTotalRaised?: boolean | undefined;
939
943
  hasEscrow?: boolean | undefined;
940
944
  bankAccountId?: string | null | undefined;
941
945
  escrowAccountId?: string | null | undefined;
@@ -978,6 +982,7 @@ export declare const offeringsContract: {
978
982
  startAt?: string | null | undefined;
979
983
  endAt?: string | null | undefined;
980
984
  cancellationPeriod?: number | null | undefined;
985
+ showTotalRaised?: boolean | undefined;
981
986
  hasEscrow?: boolean | undefined;
982
987
  bankAccountId?: string | null | undefined;
983
988
  escrowAccountId?: string | null | undefined;
@@ -0,0 +1,85 @@
1
+ import { z } from 'zod';
2
+ export declare const reviewContract: {
3
+ postReviewKyc: {
4
+ method: "POST";
5
+ metadata: {
6
+ auth: boolean;
7
+ };
8
+ body: z.ZodObject<{
9
+ individualIds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
10
+ status: z.ZodNativeEnum<typeof import("../../..").BaseStatus>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ status: import("../../..").BaseStatus;
13
+ individualIds: string[];
14
+ }, {
15
+ status: import("../../..").BaseStatus;
16
+ individualIds: string[];
17
+ }>;
18
+ query: z.ZodObject<{
19
+ userId: z.ZodEffects<z.ZodString, string, string>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ userId: string;
22
+ }, {
23
+ userId: string;
24
+ }>;
25
+ summary: "Post KYC review for individuals";
26
+ path: "review/kyc";
27
+ responses: {
28
+ 201: z.ZodObject<{
29
+ individualsUpdated: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
30
+ status: z.ZodNativeEnum<typeof import("../../..").BaseStatus>;
31
+ reviewedBy: z.ZodString;
32
+ targetObject: z.ZodAny;
33
+ }, "strip", z.ZodTypeAny, {
34
+ status: import("../../..").BaseStatus;
35
+ reviewedBy: string;
36
+ individualsUpdated: string[];
37
+ targetObject?: any;
38
+ }, {
39
+ status: import("../../..").BaseStatus;
40
+ reviewedBy: string;
41
+ individualsUpdated: string[];
42
+ targetObject?: any;
43
+ }>;
44
+ 401: z.ZodObject<{
45
+ status: z.ZodNumber;
46
+ message: z.ZodString;
47
+ errors: z.ZodArray<z.ZodString, "many">;
48
+ }, "strip", z.ZodTypeAny, {
49
+ message: string;
50
+ status: number;
51
+ errors: string[];
52
+ }, {
53
+ message: string;
54
+ status: number;
55
+ errors: string[];
56
+ }>;
57
+ 403: z.ZodObject<{
58
+ status: z.ZodNumber;
59
+ message: z.ZodString;
60
+ errors: z.ZodArray<z.ZodString, "many">;
61
+ }, "strip", z.ZodTypeAny, {
62
+ message: string;
63
+ status: number;
64
+ errors: string[];
65
+ }, {
66
+ message: string;
67
+ status: number;
68
+ errors: string[];
69
+ }>;
70
+ 500: z.ZodObject<{
71
+ status: z.ZodNumber;
72
+ message: z.ZodString;
73
+ errors: z.ZodArray<z.ZodString, "many">;
74
+ }, "strip", z.ZodTypeAny, {
75
+ message: string;
76
+ status: number;
77
+ errors: string[];
78
+ }, {
79
+ message: string;
80
+ status: number;
81
+ errors: string[];
82
+ }>;
83
+ };
84
+ };
85
+ };
@@ -0,0 +1,27 @@
1
+ import { initContract } from '@ts-rest/core';
2
+ import { ForbiddenError, InternalError, UnauthorizedError, PostReviewBody, PostReviewResponse, userIdSchema, } from '../../../common/types/index.js';
3
+ import { z } from 'zod';
4
+ const c = initContract();
5
+ export const reviewContract = c.router({
6
+ postReviewKyc: {
7
+ summary: 'Post KYC review for individuals',
8
+ method: 'POST',
9
+ path: '/kyc',
10
+ metadata: {
11
+ auth: true,
12
+ },
13
+ query: z.object({
14
+ userId: userIdSchema,
15
+ }),
16
+ body: PostReviewBody,
17
+ responses: {
18
+ 201: PostReviewResponse,
19
+ 401: UnauthorizedError,
20
+ 403: ForbiddenError,
21
+ 500: InternalError,
22
+ },
23
+ },
24
+ }, {
25
+ pathPrefix: 'review',
26
+ });
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,YAAY,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,GAAG,YAAY,EAAE,CAAC;AAEzB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CACpC;IACE,aAAa,EAAE;QACb,OAAO,EAAE,iCAAiC;QAC1C,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE;YACR,IAAI,EAAE,IAAI;SACX;QACD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,MAAM,EAAE,YAAY;SACrB,CAAC;QACF,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE;YACT,GAAG,EAAE,kBAAkB;YACvB,GAAG,EAAE,iBAAiB;YACtB,GAAG,EAAE,cAAc;YACnB,GAAG,EAAE,aAAa;SACnB;KACF;CACF,EACD;IACE,UAAU,EAAE,QAAQ;CACrB,CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalmore/api-contracts",
3
- "version": "0.0.0-dev.fbcf2bc",
3
+ "version": "0.0.0-dev.fbec0a1",
4
4
  "description": "Type-safe API contracts for Dalmore Client Portal",
5
5
  "type": "module",
6
6
  "main": "./index.js",