@dalmore/api-contracts 0.0.0-dev.4545259 → 0.0.0-dev.49a18a1

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 (82) 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/auth.types.d.ts +36 -0
  10. package/common/types/auth.types.js +3 -2
  11. package/common/types/auth.types.js.map +1 -1
  12. package/common/types/cap-table.types.d.ts +109 -0
  13. package/common/types/cap-table.types.js +14 -0
  14. package/common/types/cap-table.types.js.map +1 -1
  15. package/common/types/common.types.d.ts +9 -3
  16. package/common/types/common.types.js +9 -3
  17. package/common/types/common.types.js.map +1 -1
  18. package/common/types/csv.types.d.ts +3612 -0
  19. package/common/types/csv.types.js +290 -0
  20. package/common/types/csv.types.js.map +1 -0
  21. package/common/types/disbursements.types.d.ts +122 -7
  22. package/common/types/disbursements.types.js +29 -2
  23. package/common/types/disbursements.types.js.map +1 -1
  24. package/common/types/file.types.d.ts +3 -0
  25. package/common/types/file.types.js +3 -0
  26. package/common/types/file.types.js.map +1 -1
  27. package/common/types/index.d.ts +1 -0
  28. package/common/types/index.js +1 -0
  29. package/common/types/index.js.map +1 -1
  30. package/common/types/individuals.types.d.ts +207 -5
  31. package/common/types/individuals.types.js +9 -12
  32. package/common/types/individuals.types.js.map +1 -1
  33. package/common/types/investors-offering.types.d.ts +8 -0
  34. package/common/types/investors-offering.types.js +1 -0
  35. package/common/types/investors-offering.types.js.map +1 -1
  36. package/common/types/invite.types.d.ts +3 -0
  37. package/common/types/invite.types.js +1 -0
  38. package/common/types/invite.types.js.map +1 -1
  39. package/common/types/issuer-offering.types.d.ts +173 -2
  40. package/common/types/issuer-offering.types.js +11 -22
  41. package/common/types/issuer-offering.types.js.map +1 -1
  42. package/common/types/legal-entity.types.d.ts +39 -1
  43. package/common/types/legal-entity.types.js +8 -5
  44. package/common/types/legal-entity.types.js.map +1 -1
  45. package/common/types/notification.types.d.ts +1 -0
  46. package/common/types/notification.types.js +3 -0
  47. package/common/types/notification.types.js.map +1 -1
  48. package/common/types/offering-submission.types.js +1 -1
  49. package/common/types/offering.types.d.ts +14 -4
  50. package/common/types/offering.types.js +32 -3
  51. package/common/types/offering.types.js.map +1 -1
  52. package/common/types/task.types.d.ts +8 -0
  53. package/common/types/task.types.js +3 -0
  54. package/common/types/task.types.js.map +1 -1
  55. package/common/types/trade-line-item.types.d.ts +24 -0
  56. package/common/types/trade-line-item.types.js +3 -0
  57. package/common/types/trade-line-item.types.js.map +1 -1
  58. package/common/types/trade.types.d.ts +11 -14
  59. package/common/types/trade.types.js +16 -7
  60. package/common/types/trade.types.js.map +1 -1
  61. package/common/types/user.types.d.ts +6 -112
  62. package/common/types/user.types.js +5 -26
  63. package/common/types/user.types.js.map +1 -1
  64. package/common/types/zapier.types.d.ts +126 -0
  65. package/common/types/zapier.types.js +247 -0
  66. package/common/types/zapier.types.js.map +1 -0
  67. package/contracts/clients/csv/index.d.ts +1800 -0
  68. package/contracts/clients/csv/index.js +96 -0
  69. package/contracts/clients/csv/index.js.map +1 -0
  70. package/contracts/clients/index.d.ts +3299 -1067
  71. package/contracts/clients/index.js +6 -2
  72. package/contracts/clients/index.js.map +1 -1
  73. package/contracts/clients/individuals/index.d.ts +5 -5
  74. package/contracts/clients/legal-entities/index.d.ts +1 -1
  75. package/contracts/clients/offerings/index.d.ts +2 -2
  76. package/contracts/clients/review/index.d.ts +33 -25
  77. package/contracts/clients/review/index.js +5 -1
  78. package/contracts/clients/review/index.js.map +1 -1
  79. package/contracts/clients/webhooks/index.d.ts +506 -0
  80. package/contracts/clients/webhooks/index.js +118 -0
  81. package/contracts/clients/webhooks/index.js.map +1 -0
  82. package/package.json +1 -1
@@ -21,17 +21,20 @@ 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';
24
25
  import { reviewContract } from './review/index.js';
26
+ import { webhooksContract } from './webhooks/index.js';
25
27
  const c = initContract();
26
28
  // API KEY AUTH
27
29
  export const clientsContract = c.router({
28
30
  accounts: accountsContract,
29
31
  aic: aicContract,
30
- auth: authContract,
31
- apiKeys: apiKeysContract,
32
32
  apiKeyLogs: clientApiKeyLogsContract,
33
+ apiKeys: apiKeysContract,
33
34
  assets: assetsContract,
35
+ auth: authContract,
34
36
  cart: cartContract,
37
+ csv: csvContract,
35
38
  files: filesContract,
36
39
  filesPublic: filesPublicContract,
37
40
  individuals: individualsContract,
@@ -48,6 +51,7 @@ export const clientsContract = c.router({
48
51
  tradeLineItems: tradeLineItemsContract,
49
52
  trades: tradesContract,
50
53
  transactions: clientsTransactionsContract,
54
+ webhooks: webhooksContract,
51
55
  }, {
52
56
  pathPrefix: '/clients/api/v1/',
53
57
  });
@@ -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,E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AC3B,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>;
@@ -1,28 +1,36 @@
1
+ import { z } from 'zod';
1
2
  export declare const reviewContract: {
2
3
  postReviewKyc: {
3
4
  method: "POST";
4
5
  metadata: {
5
6
  auth: boolean;
6
7
  };
7
- body: import("zod").ZodObject<{
8
- individualIds: import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodString, string, string>, "many">;
9
- status: import("zod").ZodNativeEnum<typeof import("../../..").BaseStatus>;
10
- }, "strip", import("zod").ZodTypeAny, {
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, {
11
12
  status: import("../../..").BaseStatus;
12
13
  individualIds: string[];
13
14
  }, {
14
15
  status: import("../../..").BaseStatus;
15
16
  individualIds: string[];
16
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
+ }>;
17
25
  summary: "Post KYC review for individuals";
18
26
  path: "review/kyc";
19
27
  responses: {
20
- 201: import("zod").ZodObject<{
21
- individualsUpdated: import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodString, string, string>, "many">;
22
- status: import("zod").ZodNativeEnum<typeof import("../../..").BaseStatus>;
23
- reviewedBy: import("zod").ZodString;
24
- targetObject: import("zod").ZodAny;
25
- }, "strip", import("zod").ZodTypeAny, {
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, {
26
34
  status: import("../../..").BaseStatus;
27
35
  reviewedBy: string;
28
36
  individualsUpdated: string[];
@@ -33,11 +41,11 @@ export declare const reviewContract: {
33
41
  individualsUpdated: string[];
34
42
  targetObject?: any;
35
43
  }>;
36
- 401: import("zod").ZodObject<{
37
- status: import("zod").ZodNumber;
38
- message: import("zod").ZodString;
39
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
40
- }, "strip", import("zod").ZodTypeAny, {
44
+ 401: z.ZodObject<{
45
+ status: z.ZodNumber;
46
+ message: z.ZodString;
47
+ errors: z.ZodArray<z.ZodString, "many">;
48
+ }, "strip", z.ZodTypeAny, {
41
49
  message: string;
42
50
  status: number;
43
51
  errors: string[];
@@ -46,11 +54,11 @@ export declare const reviewContract: {
46
54
  status: number;
47
55
  errors: string[];
48
56
  }>;
49
- 403: import("zod").ZodObject<{
50
- status: import("zod").ZodNumber;
51
- message: import("zod").ZodString;
52
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
53
- }, "strip", import("zod").ZodTypeAny, {
57
+ 403: z.ZodObject<{
58
+ status: z.ZodNumber;
59
+ message: z.ZodString;
60
+ errors: z.ZodArray<z.ZodString, "many">;
61
+ }, "strip", z.ZodTypeAny, {
54
62
  message: string;
55
63
  status: number;
56
64
  errors: string[];
@@ -59,11 +67,11 @@ export declare const reviewContract: {
59
67
  status: number;
60
68
  errors: string[];
61
69
  }>;
62
- 500: import("zod").ZodObject<{
63
- status: import("zod").ZodNumber;
64
- message: import("zod").ZodString;
65
- errors: import("zod").ZodArray<import("zod").ZodString, "many">;
66
- }, "strip", import("zod").ZodTypeAny, {
70
+ 500: z.ZodObject<{
71
+ status: z.ZodNumber;
72
+ message: z.ZodString;
73
+ errors: z.ZodArray<z.ZodString, "many">;
74
+ }, "strip", z.ZodTypeAny, {
67
75
  message: string;
68
76
  status: number;
69
77
  errors: string[];
@@ -1,5 +1,6 @@
1
1
  import { initContract } from '@ts-rest/core';
2
- import { ForbiddenError, InternalError, UnauthorizedError, PostReviewBody, PostReviewResponse, } from '../../../common/types/index.js';
2
+ import { ForbiddenError, InternalError, UnauthorizedError, PostReviewBody, PostReviewResponse, userIdSchema, } from '../../../common/types/index.js';
3
+ import { z } from 'zod';
3
4
  const c = initContract();
4
5
  export const reviewContract = c.router({
5
6
  postReviewKyc: {
@@ -9,6 +10,9 @@ export const reviewContract = c.router({
9
10
  metadata: {
10
11
  auth: true,
11
12
  },
13
+ query: z.object({
14
+ userId: userIdSchema,
15
+ }),
12
16
  body: PostReviewBody,
13
17
  responses: {
14
18
  201: PostReviewResponse,
@@ -1 +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,GACn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