@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.
- package/common/constants.d.ts +43 -0
- package/common/constants.js +77 -0
- package/common/constants.js.map +1 -0
- package/common/helpers/index.d.ts +8 -0
- package/common/helpers/index.js +15 -0
- package/common/helpers/index.js.map +1 -1
- package/common/types/account.types.js +3 -3
- package/common/types/account.types.js.map +1 -1
- package/common/types/common.types.d.ts +9 -3
- package/common/types/common.types.js +9 -3
- package/common/types/common.types.js.map +1 -1
- package/common/types/csv.types.d.ts +2214 -159
- package/common/types/csv.types.js +175 -39
- package/common/types/csv.types.js.map +1 -1
- package/common/types/investors-offering.types.d.ts +8 -0
- package/common/types/investors-offering.types.js +1 -0
- package/common/types/investors-offering.types.js.map +1 -1
- package/common/types/invite.types.d.ts +3 -0
- package/common/types/invite.types.js +1 -0
- package/common/types/invite.types.js.map +1 -1
- package/common/types/issuer-offering.types.d.ts +173 -2
- package/common/types/issuer-offering.types.js +11 -22
- package/common/types/issuer-offering.types.js.map +1 -1
- package/common/types/offering-submission.types.js +1 -1
- package/common/types/offering.types.d.ts +14 -4
- package/common/types/offering.types.js +32 -3
- package/common/types/offering.types.js.map +1 -1
- package/common/types/task.types.d.ts +8 -0
- package/common/types/task.types.js +3 -0
- package/common/types/task.types.js.map +1 -1
- package/common/types/trade.types.d.ts +11 -14
- package/common/types/trade.types.js +11 -7
- package/common/types/trade.types.js.map +1 -1
- package/common/types/user.types.d.ts +6 -112
- package/common/types/user.types.js +5 -26
- package/common/types/user.types.js.map +1 -1
- package/contracts/clients/csv/index.d.ts +219 -13
- package/contracts/clients/csv/index.js +36 -2
- package/contracts/clients/csv/index.js.map +1 -1
- package/contracts/clients/index.d.ts +221 -15
- package/contracts/clients/offerings/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -6,6 +6,9 @@ export declare enum OnboardingType {
|
|
|
6
6
|
CHECKOUT = "CHECKOUT",
|
|
7
7
|
COMPLETE = "COMPLETE"
|
|
8
8
|
}
|
|
9
|
+
export declare enum LockReason {
|
|
10
|
+
DOB_UNDER_18 = "DOB_UNDER_18"
|
|
11
|
+
}
|
|
9
12
|
export declare const userIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
10
13
|
export declare const UserDeleteResponse: z.ZodObject<{
|
|
11
14
|
message: z.ZodString;
|
|
@@ -38,6 +41,7 @@ export declare const GetMeResponse: z.ZodObject<{
|
|
|
38
41
|
provider: z.ZodString;
|
|
39
42
|
active: z.ZodBoolean;
|
|
40
43
|
locked: z.ZodBoolean;
|
|
44
|
+
lockReason: z.ZodNullable<z.ZodString>;
|
|
41
45
|
lastLoginAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
42
46
|
loginCount: z.ZodNumber;
|
|
43
47
|
role: z.ZodString;
|
|
@@ -107,10 +111,6 @@ export declare const GetMeResponse: z.ZodObject<{
|
|
|
107
111
|
}>>;
|
|
108
112
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
109
113
|
userType: z.ZodOptional<z.ZodNativeEnum<typeof UserType>>;
|
|
110
|
-
offeringSetup: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
-
investorPortalSetup: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
-
paymentMethodSetup: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
-
accountContactsSetup: z.ZodOptional<z.ZodBoolean>;
|
|
114
114
|
settings: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
115
115
|
__entity: z.ZodOptional<z.ZodString>;
|
|
116
116
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
@@ -161,53 +161,11 @@ export declare const GetMeResponse: z.ZodObject<{
|
|
|
161
161
|
investorSiteEnabled: boolean;
|
|
162
162
|
__entity?: string | undefined;
|
|
163
163
|
}>>>;
|
|
164
|
-
accountSettings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
|
-
productPrimaries: z.ZodBoolean;
|
|
166
|
-
productSecondaries: z.ZodBoolean;
|
|
167
|
-
featureDisbursements: z.ZodBoolean;
|
|
168
|
-
apiPortal: z.ZodBoolean;
|
|
169
|
-
investorSiteEnabled: z.ZodBoolean;
|
|
170
|
-
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
productPrimaries: boolean;
|
|
172
|
-
productSecondaries: boolean;
|
|
173
|
-
featureDisbursements: boolean;
|
|
174
|
-
apiPortal: boolean;
|
|
175
|
-
investorSiteEnabled: boolean;
|
|
176
|
-
}, {
|
|
177
|
-
productPrimaries: boolean;
|
|
178
|
-
productSecondaries: boolean;
|
|
179
|
-
featureDisbursements: boolean;
|
|
180
|
-
apiPortal: boolean;
|
|
181
|
-
investorSiteEnabled: boolean;
|
|
182
|
-
}>, "many">>;
|
|
183
164
|
account: z.ZodOptional<z.ZodObject<{
|
|
184
165
|
id: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
185
166
|
name: z.ZodNullable<z.ZodString>;
|
|
186
167
|
status: z.ZodLazy<z.ZodNativeEnum<typeof AccountStatus>>;
|
|
187
168
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
188
|
-
offeringSetup: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
-
investorPortalSetup: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
-
paymentMethodSetup: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
-
accountContactsSetup: z.ZodOptional<z.ZodBoolean>;
|
|
192
|
-
accountSettings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
|
-
productPrimaries: z.ZodBoolean;
|
|
194
|
-
productSecondaries: z.ZodBoolean;
|
|
195
|
-
featureDisbursements: z.ZodBoolean;
|
|
196
|
-
apiPortal: z.ZodBoolean;
|
|
197
|
-
investorSiteEnabled: z.ZodBoolean;
|
|
198
|
-
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
productPrimaries: boolean;
|
|
200
|
-
productSecondaries: boolean;
|
|
201
|
-
featureDisbursements: boolean;
|
|
202
|
-
apiPortal: boolean;
|
|
203
|
-
investorSiteEnabled: boolean;
|
|
204
|
-
}, {
|
|
205
|
-
productPrimaries: boolean;
|
|
206
|
-
productSecondaries: boolean;
|
|
207
|
-
featureDisbursements: boolean;
|
|
208
|
-
apiPortal: boolean;
|
|
209
|
-
investorSiteEnabled: boolean;
|
|
210
|
-
}>, "many">>;
|
|
211
169
|
accountManager: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
212
170
|
id: z.ZodString;
|
|
213
171
|
__entity: z.ZodOptional<z.ZodString>;
|
|
@@ -689,18 +647,7 @@ export declare const GetMeResponse: z.ZodObject<{
|
|
|
689
647
|
status: AccountStatus;
|
|
690
648
|
id: string;
|
|
691
649
|
name: string | null;
|
|
692
|
-
offeringSetup?: boolean | undefined;
|
|
693
|
-
investorPortalSetup?: boolean | undefined;
|
|
694
|
-
paymentMethodSetup?: boolean | undefined;
|
|
695
|
-
accountContactsSetup?: boolean | undefined;
|
|
696
650
|
managedBy?: ManagedByType | undefined;
|
|
697
|
-
accountSettings?: {
|
|
698
|
-
productPrimaries: boolean;
|
|
699
|
-
productSecondaries: boolean;
|
|
700
|
-
featureDisbursements: boolean;
|
|
701
|
-
apiPortal: boolean;
|
|
702
|
-
investorSiteEnabled: boolean;
|
|
703
|
-
}[] | undefined;
|
|
704
651
|
accountManager?: {
|
|
705
652
|
id: string;
|
|
706
653
|
createdAt: string | Date;
|
|
@@ -802,18 +749,7 @@ export declare const GetMeResponse: z.ZodObject<{
|
|
|
802
749
|
status: AccountStatus;
|
|
803
750
|
id: string;
|
|
804
751
|
name: string | null;
|
|
805
|
-
offeringSetup?: boolean | undefined;
|
|
806
|
-
investorPortalSetup?: boolean | undefined;
|
|
807
|
-
paymentMethodSetup?: boolean | undefined;
|
|
808
|
-
accountContactsSetup?: boolean | undefined;
|
|
809
752
|
managedBy?: ManagedByType | undefined;
|
|
810
|
-
accountSettings?: {
|
|
811
|
-
productPrimaries: boolean;
|
|
812
|
-
productSecondaries: boolean;
|
|
813
|
-
featureDisbursements: boolean;
|
|
814
|
-
apiPortal: boolean;
|
|
815
|
-
investorSiteEnabled: boolean;
|
|
816
|
-
}[] | undefined;
|
|
817
753
|
accountManager?: {
|
|
818
754
|
id: string;
|
|
819
755
|
createdAt: string | Date;
|
|
@@ -932,36 +868,15 @@ export declare const GetMeResponse: z.ZodObject<{
|
|
|
932
868
|
locked: boolean;
|
|
933
869
|
accountName: string | null;
|
|
934
870
|
onboarding: string | null;
|
|
871
|
+
lockReason: string | null;
|
|
935
872
|
__entity?: string | undefined;
|
|
936
|
-
offeringSetup?: boolean | undefined;
|
|
937
|
-
investorPortalSetup?: boolean | undefined;
|
|
938
|
-
paymentMethodSetup?: boolean | undefined;
|
|
939
|
-
accountContactsSetup?: boolean | undefined;
|
|
940
873
|
managedBy?: ManagedByType | undefined;
|
|
941
|
-
accountSettings?: {
|
|
942
|
-
productPrimaries: boolean;
|
|
943
|
-
productSecondaries: boolean;
|
|
944
|
-
featureDisbursements: boolean;
|
|
945
|
-
apiPortal: boolean;
|
|
946
|
-
investorSiteEnabled: boolean;
|
|
947
|
-
}[] | undefined;
|
|
948
874
|
userType?: UserType | undefined;
|
|
949
875
|
account?: {
|
|
950
876
|
status: AccountStatus;
|
|
951
877
|
id: string;
|
|
952
878
|
name: string | null;
|
|
953
|
-
offeringSetup?: boolean | undefined;
|
|
954
|
-
investorPortalSetup?: boolean | undefined;
|
|
955
|
-
paymentMethodSetup?: boolean | undefined;
|
|
956
|
-
accountContactsSetup?: boolean | undefined;
|
|
957
879
|
managedBy?: ManagedByType | undefined;
|
|
958
|
-
accountSettings?: {
|
|
959
|
-
productPrimaries: boolean;
|
|
960
|
-
productSecondaries: boolean;
|
|
961
|
-
featureDisbursements: boolean;
|
|
962
|
-
apiPortal: boolean;
|
|
963
|
-
investorSiteEnabled: boolean;
|
|
964
|
-
}[] | undefined;
|
|
965
880
|
accountManager?: {
|
|
966
881
|
id: string;
|
|
967
882
|
createdAt: string | Date;
|
|
@@ -1117,36 +1032,15 @@ export declare const GetMeResponse: z.ZodObject<{
|
|
|
1117
1032
|
locked: boolean;
|
|
1118
1033
|
accountName: string | null;
|
|
1119
1034
|
onboarding: string | null;
|
|
1035
|
+
lockReason: string | null;
|
|
1120
1036
|
__entity?: string | undefined;
|
|
1121
|
-
offeringSetup?: boolean | undefined;
|
|
1122
|
-
investorPortalSetup?: boolean | undefined;
|
|
1123
|
-
paymentMethodSetup?: boolean | undefined;
|
|
1124
|
-
accountContactsSetup?: boolean | undefined;
|
|
1125
1037
|
managedBy?: ManagedByType | undefined;
|
|
1126
|
-
accountSettings?: {
|
|
1127
|
-
productPrimaries: boolean;
|
|
1128
|
-
productSecondaries: boolean;
|
|
1129
|
-
featureDisbursements: boolean;
|
|
1130
|
-
apiPortal: boolean;
|
|
1131
|
-
investorSiteEnabled: boolean;
|
|
1132
|
-
}[] | undefined;
|
|
1133
1038
|
userType?: UserType | undefined;
|
|
1134
1039
|
account?: {
|
|
1135
1040
|
status: AccountStatus;
|
|
1136
1041
|
id: string;
|
|
1137
1042
|
name: string | null;
|
|
1138
|
-
offeringSetup?: boolean | undefined;
|
|
1139
|
-
investorPortalSetup?: boolean | undefined;
|
|
1140
|
-
paymentMethodSetup?: boolean | undefined;
|
|
1141
|
-
accountContactsSetup?: boolean | undefined;
|
|
1142
1043
|
managedBy?: ManagedByType | undefined;
|
|
1143
|
-
accountSettings?: {
|
|
1144
|
-
productPrimaries: boolean;
|
|
1145
|
-
productSecondaries: boolean;
|
|
1146
|
-
featureDisbursements: boolean;
|
|
1147
|
-
apiPortal: boolean;
|
|
1148
|
-
investorSiteEnabled: boolean;
|
|
1149
|
-
}[] | undefined;
|
|
1150
1044
|
accountManager?: {
|
|
1151
1045
|
id: string;
|
|
1152
1046
|
createdAt: string | Date;
|
|
@@ -20,6 +20,10 @@ export var OnboardingType;
|
|
|
20
20
|
OnboardingType["CHECKOUT"] = "CHECKOUT";
|
|
21
21
|
OnboardingType["COMPLETE"] = "COMPLETE";
|
|
22
22
|
})(OnboardingType || (OnboardingType = {}));
|
|
23
|
+
export var LockReason;
|
|
24
|
+
(function (LockReason) {
|
|
25
|
+
LockReason["DOB_UNDER_18"] = "DOB_UNDER_18";
|
|
26
|
+
})(LockReason || (LockReason = {}));
|
|
23
27
|
export const userIdSchema = z.string().refine((value) => {
|
|
24
28
|
try {
|
|
25
29
|
const tid = TypeID.fromString(value);
|
|
@@ -46,6 +50,7 @@ export const GetMeResponse = IBaseEntity.extend({
|
|
|
46
50
|
provider: z.string(),
|
|
47
51
|
active: z.boolean(),
|
|
48
52
|
locked: z.boolean(),
|
|
53
|
+
lockReason: z.string().nullable(),
|
|
49
54
|
lastLoginAt: dateOrString.nullable(),
|
|
50
55
|
loginCount: z.number(),
|
|
51
56
|
role: z.string(),
|
|
@@ -76,39 +81,13 @@ export const GetMeResponse = IBaseEntity.extend({
|
|
|
76
81
|
.optional(),
|
|
77
82
|
managedBy: z.nativeEnum(ManagedByType).optional(),
|
|
78
83
|
userType: z.nativeEnum(UserType).optional(),
|
|
79
|
-
offeringSetup: z.boolean().optional(),
|
|
80
|
-
investorPortalSetup: z.boolean().optional(),
|
|
81
|
-
paymentMethodSetup: z.boolean().optional(),
|
|
82
|
-
accountContactsSetup: z.boolean().optional(),
|
|
83
84
|
settings: z.lazy(() => IAccountSettingZod).optional(),
|
|
84
|
-
accountSettings: z
|
|
85
|
-
.array(z.object({
|
|
86
|
-
productPrimaries: z.boolean(),
|
|
87
|
-
productSecondaries: z.boolean(),
|
|
88
|
-
featureDisbursements: z.boolean(),
|
|
89
|
-
apiPortal: z.boolean(),
|
|
90
|
-
investorSiteEnabled: z.boolean(),
|
|
91
|
-
}))
|
|
92
|
-
.optional(),
|
|
93
85
|
account: z
|
|
94
86
|
.object({
|
|
95
87
|
id: z.lazy(() => accountIdSchema),
|
|
96
88
|
name: z.string().nullable(),
|
|
97
89
|
status: z.lazy(() => z.nativeEnum(AccountStatus)),
|
|
98
90
|
managedBy: z.nativeEnum(ManagedByType).optional(),
|
|
99
|
-
offeringSetup: z.boolean().optional(),
|
|
100
|
-
investorPortalSetup: z.boolean().optional(),
|
|
101
|
-
paymentMethodSetup: z.boolean().optional(),
|
|
102
|
-
accountContactsSetup: z.boolean().optional(),
|
|
103
|
-
accountSettings: z
|
|
104
|
-
.array(z.object({
|
|
105
|
-
productPrimaries: z.boolean(),
|
|
106
|
-
productSecondaries: z.boolean(),
|
|
107
|
-
featureDisbursements: z.boolean(),
|
|
108
|
-
apiPortal: z.boolean(),
|
|
109
|
-
investorSiteEnabled: z.boolean(),
|
|
110
|
-
}))
|
|
111
|
-
.optional(),
|
|
112
91
|
accountManager: z
|
|
113
92
|
.lazy(() => IAccountManagerZod)
|
|
114
93
|
.nullable()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.types.js","sourceRoot":"","sources":["user.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,eAAe,EACf,UAAU,EACV,aAAa,EACb,YAAY,EACZ,UAAU,EACV,qBAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,WAAW,GACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAA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C,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC;IACtC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;IAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC5B,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;IAC/B,IAAI,EAAE,eAAe;CACtB,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;IAClE,MAAM,EAAE,YAAY;SACjB,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;CAC3D,CAAC,CAAC"}
|
|
@@ -7,13 +7,6 @@ export declare const csvContract: {
|
|
|
7
7
|
body: import("@ts-rest/core").ContractPlainType<{
|
|
8
8
|
file: File;
|
|
9
9
|
}>;
|
|
10
|
-
query: import("zod").ZodObject<{
|
|
11
|
-
type: import("zod").ZodNativeEnum<typeof import("../../..").InvestorAccountType>;
|
|
12
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
13
|
-
type: import("../../..").InvestorAccountType;
|
|
14
|
-
}, {
|
|
15
|
-
type: import("../../..").InvestorAccountType;
|
|
16
|
-
}>;
|
|
17
10
|
summary: "Upload and process CSV file for investor account creation";
|
|
18
11
|
contentType: "multipart/form-data";
|
|
19
12
|
path: "csv/investors";
|
|
@@ -21,7 +14,7 @@ export declare const csvContract: {
|
|
|
21
14
|
200: import("zod").ZodObject<{
|
|
22
15
|
totalRows: import("zod").ZodNumber;
|
|
23
16
|
successfulRows: import("zod").ZodNumber;
|
|
24
|
-
createdAccounts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
17
|
+
createdAccounts: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
25
18
|
row: import("zod").ZodNumber;
|
|
26
19
|
userId: import("zod").ZodString;
|
|
27
20
|
investorAccountId: import("zod").ZodString;
|
|
@@ -33,23 +26,43 @@ export declare const csvContract: {
|
|
|
33
26
|
userId: string;
|
|
34
27
|
investorAccountId: string;
|
|
35
28
|
row: number;
|
|
36
|
-
}>, "
|
|
29
|
+
}>, import("zod").ZodObject<{
|
|
30
|
+
row: import("zod").ZodNumber;
|
|
31
|
+
userId: import("zod").ZodString;
|
|
32
|
+
accountId: import("zod").ZodString;
|
|
33
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
34
|
+
accountId: string;
|
|
35
|
+
userId: string;
|
|
36
|
+
row: number;
|
|
37
|
+
}, {
|
|
38
|
+
accountId: string;
|
|
39
|
+
userId: string;
|
|
40
|
+
row: number;
|
|
41
|
+
}>]>, "many">;
|
|
37
42
|
}, "strip", import("zod").ZodTypeAny, {
|
|
38
43
|
totalRows: number;
|
|
39
44
|
successfulRows: number;
|
|
40
|
-
createdAccounts: {
|
|
45
|
+
createdAccounts: ({
|
|
41
46
|
userId: string;
|
|
42
47
|
investorAccountId: string;
|
|
43
48
|
row: number;
|
|
44
|
-
}
|
|
49
|
+
} | {
|
|
50
|
+
accountId: string;
|
|
51
|
+
userId: string;
|
|
52
|
+
row: number;
|
|
53
|
+
})[];
|
|
45
54
|
}, {
|
|
46
55
|
totalRows: number;
|
|
47
56
|
successfulRows: number;
|
|
48
|
-
createdAccounts: {
|
|
57
|
+
createdAccounts: ({
|
|
49
58
|
userId: string;
|
|
50
59
|
investorAccountId: string;
|
|
51
60
|
row: number;
|
|
52
|
-
}
|
|
61
|
+
} | {
|
|
62
|
+
accountId: string;
|
|
63
|
+
userId: string;
|
|
64
|
+
row: number;
|
|
65
|
+
})[];
|
|
53
66
|
}>;
|
|
54
67
|
400: import("zod").ZodObject<{
|
|
55
68
|
status: import("zod").ZodNumber;
|
|
@@ -1591,4 +1604,197 @@ export declare const csvContract: {
|
|
|
1591
1604
|
}>;
|
|
1592
1605
|
};
|
|
1593
1606
|
};
|
|
1607
|
+
uploadIssuerCsv: {
|
|
1608
|
+
method: "POST";
|
|
1609
|
+
metadata: {
|
|
1610
|
+
auth: boolean;
|
|
1611
|
+
};
|
|
1612
|
+
body: import("@ts-rest/core").ContractPlainType<{
|
|
1613
|
+
file: File;
|
|
1614
|
+
}>;
|
|
1615
|
+
summary: "Upload and process CSV file for issuer account creation";
|
|
1616
|
+
contentType: "multipart/form-data";
|
|
1617
|
+
path: "csv/issuers";
|
|
1618
|
+
responses: {
|
|
1619
|
+
200: import("zod").ZodObject<{
|
|
1620
|
+
totalRows: import("zod").ZodNumber;
|
|
1621
|
+
successfulRows: import("zod").ZodNumber;
|
|
1622
|
+
createdAccounts: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1623
|
+
row: import("zod").ZodNumber;
|
|
1624
|
+
userId: import("zod").ZodString;
|
|
1625
|
+
investorAccountId: import("zod").ZodString;
|
|
1626
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1627
|
+
userId: string;
|
|
1628
|
+
investorAccountId: string;
|
|
1629
|
+
row: number;
|
|
1630
|
+
}, {
|
|
1631
|
+
userId: string;
|
|
1632
|
+
investorAccountId: string;
|
|
1633
|
+
row: number;
|
|
1634
|
+
}>, import("zod").ZodObject<{
|
|
1635
|
+
row: import("zod").ZodNumber;
|
|
1636
|
+
userId: import("zod").ZodString;
|
|
1637
|
+
accountId: import("zod").ZodString;
|
|
1638
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1639
|
+
accountId: string;
|
|
1640
|
+
userId: string;
|
|
1641
|
+
row: number;
|
|
1642
|
+
}, {
|
|
1643
|
+
accountId: string;
|
|
1644
|
+
userId: string;
|
|
1645
|
+
row: number;
|
|
1646
|
+
}>]>, "many">;
|
|
1647
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1648
|
+
totalRows: number;
|
|
1649
|
+
successfulRows: number;
|
|
1650
|
+
createdAccounts: ({
|
|
1651
|
+
userId: string;
|
|
1652
|
+
investorAccountId: string;
|
|
1653
|
+
row: number;
|
|
1654
|
+
} | {
|
|
1655
|
+
accountId: string;
|
|
1656
|
+
userId: string;
|
|
1657
|
+
row: number;
|
|
1658
|
+
})[];
|
|
1659
|
+
}, {
|
|
1660
|
+
totalRows: number;
|
|
1661
|
+
successfulRows: number;
|
|
1662
|
+
createdAccounts: ({
|
|
1663
|
+
userId: string;
|
|
1664
|
+
investorAccountId: string;
|
|
1665
|
+
row: number;
|
|
1666
|
+
} | {
|
|
1667
|
+
accountId: string;
|
|
1668
|
+
userId: string;
|
|
1669
|
+
row: number;
|
|
1670
|
+
})[];
|
|
1671
|
+
}>;
|
|
1672
|
+
400: import("zod").ZodObject<{
|
|
1673
|
+
status: import("zod").ZodNumber;
|
|
1674
|
+
message: import("zod").ZodString;
|
|
1675
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1676
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1677
|
+
message: string;
|
|
1678
|
+
status: number;
|
|
1679
|
+
errors: string[];
|
|
1680
|
+
}, {
|
|
1681
|
+
message: string;
|
|
1682
|
+
status: number;
|
|
1683
|
+
errors: string[];
|
|
1684
|
+
}>;
|
|
1685
|
+
401: import("zod").ZodObject<{
|
|
1686
|
+
status: import("zod").ZodNumber;
|
|
1687
|
+
message: import("zod").ZodString;
|
|
1688
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1689
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1690
|
+
message: string;
|
|
1691
|
+
status: number;
|
|
1692
|
+
errors: string[];
|
|
1693
|
+
}, {
|
|
1694
|
+
message: string;
|
|
1695
|
+
status: number;
|
|
1696
|
+
errors: string[];
|
|
1697
|
+
}>;
|
|
1698
|
+
422: import("zod").ZodObject<{
|
|
1699
|
+
status: import("zod").ZodNumber;
|
|
1700
|
+
message: import("zod").ZodString;
|
|
1701
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1702
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1703
|
+
message: string;
|
|
1704
|
+
status: number;
|
|
1705
|
+
errors: string[];
|
|
1706
|
+
}, {
|
|
1707
|
+
message: string;
|
|
1708
|
+
status: number;
|
|
1709
|
+
errors: string[];
|
|
1710
|
+
}>;
|
|
1711
|
+
500: import("zod").ZodObject<{
|
|
1712
|
+
status: import("zod").ZodNumber;
|
|
1713
|
+
message: import("zod").ZodString;
|
|
1714
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1715
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1716
|
+
message: string;
|
|
1717
|
+
status: number;
|
|
1718
|
+
errors: string[];
|
|
1719
|
+
}, {
|
|
1720
|
+
message: string;
|
|
1721
|
+
status: number;
|
|
1722
|
+
errors: string[];
|
|
1723
|
+
}>;
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1726
|
+
uploadOfferingCsv: {
|
|
1727
|
+
method: "POST";
|
|
1728
|
+
metadata: {
|
|
1729
|
+
auth: boolean;
|
|
1730
|
+
};
|
|
1731
|
+
body: import("@ts-rest/core").ContractPlainType<{
|
|
1732
|
+
file: File;
|
|
1733
|
+
}>;
|
|
1734
|
+
query: import("zod").ZodObject<{
|
|
1735
|
+
issuerId: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
1736
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1737
|
+
issuerId: string;
|
|
1738
|
+
}, {
|
|
1739
|
+
issuerId: string;
|
|
1740
|
+
}>;
|
|
1741
|
+
summary: "Upload and process CSV file for offering creation";
|
|
1742
|
+
contentType: "multipart/form-data";
|
|
1743
|
+
path: "csv/offering";
|
|
1744
|
+
responses: {
|
|
1745
|
+
200: import("zod").ZodLazy<any>;
|
|
1746
|
+
400: import("zod").ZodObject<{
|
|
1747
|
+
status: import("zod").ZodNumber;
|
|
1748
|
+
message: import("zod").ZodString;
|
|
1749
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1750
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1751
|
+
message: string;
|
|
1752
|
+
status: number;
|
|
1753
|
+
errors: string[];
|
|
1754
|
+
}, {
|
|
1755
|
+
message: string;
|
|
1756
|
+
status: number;
|
|
1757
|
+
errors: string[];
|
|
1758
|
+
}>;
|
|
1759
|
+
401: import("zod").ZodObject<{
|
|
1760
|
+
status: import("zod").ZodNumber;
|
|
1761
|
+
message: import("zod").ZodString;
|
|
1762
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1763
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1764
|
+
message: string;
|
|
1765
|
+
status: number;
|
|
1766
|
+
errors: string[];
|
|
1767
|
+
}, {
|
|
1768
|
+
message: string;
|
|
1769
|
+
status: number;
|
|
1770
|
+
errors: string[];
|
|
1771
|
+
}>;
|
|
1772
|
+
404: import("zod").ZodObject<{
|
|
1773
|
+
status: import("zod").ZodNumber;
|
|
1774
|
+
message: import("zod").ZodString;
|
|
1775
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1776
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1777
|
+
message: string;
|
|
1778
|
+
status: number;
|
|
1779
|
+
errors: string[];
|
|
1780
|
+
}, {
|
|
1781
|
+
message: string;
|
|
1782
|
+
status: number;
|
|
1783
|
+
errors: string[];
|
|
1784
|
+
}>;
|
|
1785
|
+
500: import("zod").ZodObject<{
|
|
1786
|
+
status: import("zod").ZodNumber;
|
|
1787
|
+
message: import("zod").ZodString;
|
|
1788
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1789
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1790
|
+
message: string;
|
|
1791
|
+
status: number;
|
|
1792
|
+
errors: string[];
|
|
1793
|
+
}, {
|
|
1794
|
+
message: string;
|
|
1795
|
+
status: number;
|
|
1796
|
+
errors: string[];
|
|
1797
|
+
}>;
|
|
1798
|
+
};
|
|
1799
|
+
};
|
|
1594
1800
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { initContract } from '@ts-rest/core';
|
|
2
|
-
import { BadRequestError, UnauthorizedError, UnprocessableError, CsvPersistenceResultZod, InternalError, NotFoundError, IndividualResponseSchema,
|
|
2
|
+
import { BadRequestError, UnauthorizedError, UnprocessableError, CsvPersistenceResultZod, InternalError, NotFoundError, IndividualResponseSchema, UploadAicCsvQuery, UploadKycCsvQuery, KycZod, OfferingCsvResponseZod, UploadOfferingCsvQuery, } from '../../../common/types/index.js';
|
|
3
3
|
const c = initContract();
|
|
4
4
|
export const csvContract = c.router({
|
|
5
5
|
uploadInvestorCsv: {
|
|
6
6
|
summary: 'Upload and process CSV file for investor account creation',
|
|
7
7
|
method: 'POST',
|
|
8
8
|
path: '/investors',
|
|
9
|
-
query: UploadInvestorCsvQuery,
|
|
10
9
|
contentType: 'multipart/form-data',
|
|
11
10
|
body: c.type(),
|
|
12
11
|
metadata: {
|
|
@@ -56,6 +55,41 @@ export const csvContract = c.router({
|
|
|
56
55
|
500: InternalError,
|
|
57
56
|
},
|
|
58
57
|
},
|
|
58
|
+
uploadIssuerCsv: {
|
|
59
|
+
summary: 'Upload and process CSV file for issuer account creation',
|
|
60
|
+
method: 'POST',
|
|
61
|
+
path: '/issuers',
|
|
62
|
+
contentType: 'multipart/form-data',
|
|
63
|
+
body: c.type(),
|
|
64
|
+
metadata: {
|
|
65
|
+
auth: true,
|
|
66
|
+
},
|
|
67
|
+
responses: {
|
|
68
|
+
200: CsvPersistenceResultZod,
|
|
69
|
+
400: BadRequestError,
|
|
70
|
+
401: UnauthorizedError,
|
|
71
|
+
422: UnprocessableError,
|
|
72
|
+
500: InternalError,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
uploadOfferingCsv: {
|
|
76
|
+
summary: 'Upload and process CSV file for offering creation',
|
|
77
|
+
method: 'POST',
|
|
78
|
+
path: '/offering',
|
|
79
|
+
query: UploadOfferingCsvQuery,
|
|
80
|
+
contentType: 'multipart/form-data',
|
|
81
|
+
body: c.type(),
|
|
82
|
+
metadata: {
|
|
83
|
+
auth: true,
|
|
84
|
+
},
|
|
85
|
+
responses: {
|
|
86
|
+
200: OfferingCsvResponseZod,
|
|
87
|
+
400: BadRequestError,
|
|
88
|
+
401: UnauthorizedError,
|
|
89
|
+
404: NotFoundError,
|
|
90
|
+
500: InternalError,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
59
93
|
}, {
|
|
60
94
|
pathPrefix: 'csv',
|
|
61
95
|
});
|
|
@@ -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,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,MA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