@devizovaburza/mdm-sdk 0.0.9 → 0.0.11
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/dist/v1/index.cjs +212 -143
- package/dist/v1/index.d.cts +2444 -3692
- package/dist/v1/index.d.mts +2444 -3692
- package/dist/v1/index.d.ts +2444 -3692
- package/dist/v1/index.mjs +212 -143
- package/package.json +1 -1
package/dist/v1/index.mjs
CHANGED
|
@@ -109,74 +109,99 @@ const GenderZod = ["M", "F", "OTHER"];
|
|
|
109
109
|
|
|
110
110
|
const individualInsertSchema = z$1.object({
|
|
111
111
|
partyId: z$1.uuid().optional(),
|
|
112
|
-
internalId: z$1.string().optional()
|
|
112
|
+
internalId: z$1.string().optional(),
|
|
113
113
|
name: z$1.string(),
|
|
114
114
|
surname: z$1.string(),
|
|
115
|
-
email: z$1.string().optional()
|
|
116
|
-
phone: z$1.string().optional()
|
|
117
|
-
birthDate: z$1.string().optional()
|
|
115
|
+
email: z$1.string().optional(),
|
|
116
|
+
phone: z$1.string().optional(),
|
|
117
|
+
birthDate: z$1.string().optional(),
|
|
118
118
|
birthPlace: z$1.string(),
|
|
119
|
-
countryOfBirth: z$1.enum(COUNTRY_CODES_2).optional()
|
|
119
|
+
countryOfBirth: z$1.enum(COUNTRY_CODES_2).optional(),
|
|
120
120
|
personalId: z$1.uuid(),
|
|
121
121
|
gender: z$1.enum(GenderZod),
|
|
122
122
|
citizenship: z$1.enum(COUNTRY_CODES_2),
|
|
123
|
-
citizenshipOther: z$1.enum(COUNTRY_CODES_2).optional()
|
|
124
|
-
employer: z$1.string().optional()
|
|
125
|
-
employerCountry: z$1.enum(COUNTRY_CODES_2).optional()
|
|
123
|
+
citizenshipOther: z$1.enum(COUNTRY_CODES_2).optional(),
|
|
124
|
+
employer: z$1.string().optional(),
|
|
125
|
+
employerCountry: z$1.enum(COUNTRY_CODES_2).optional(),
|
|
126
126
|
registeredNumber: z$1.string(),
|
|
127
127
|
isPep: z$1.boolean(),
|
|
128
|
-
titleBefore: z$1.string().optional()
|
|
129
|
-
titleAfter: z$1.string().optional()
|
|
130
|
-
birthSurname: z$1.string().optional()
|
|
131
|
-
vocativeTitle: z$1.string().optional()
|
|
132
|
-
deathDate: z$1.date().optional()
|
|
133
|
-
deathNotification: z$1.date().optional()
|
|
134
|
-
pin: z$1.string().optional()
|
|
135
|
-
stayAbroad: z$1.boolean().optional()
|
|
136
|
-
stayAbroadCountries: z$1.enum(COUNTRY_CODES_2).optional()
|
|
128
|
+
titleBefore: z$1.string().optional(),
|
|
129
|
+
titleAfter: z$1.string().optional(),
|
|
130
|
+
birthSurname: z$1.string().optional(),
|
|
131
|
+
vocativeTitle: z$1.string().optional(),
|
|
132
|
+
deathDate: z$1.date().optional(),
|
|
133
|
+
deathNotification: z$1.date().optional(),
|
|
134
|
+
pin: z$1.string().optional(),
|
|
135
|
+
stayAbroad: z$1.boolean().optional(),
|
|
136
|
+
stayAbroadCountries: z$1.enum(COUNTRY_CODES_2).optional()
|
|
137
137
|
});
|
|
138
138
|
const individualUpdateSchema = z$1.object({
|
|
139
139
|
id: z$1.uuid(),
|
|
140
140
|
partyId: z$1.uuid(),
|
|
141
|
-
internalId: z$1.string().optional()
|
|
141
|
+
internalId: z$1.string().optional(),
|
|
142
142
|
name: z$1.string().optional(),
|
|
143
143
|
surname: z$1.string().optional(),
|
|
144
|
-
email: z$1.string().optional()
|
|
145
|
-
phone: z$1.string().optional()
|
|
146
|
-
birthDate: z$1.string().optional()
|
|
144
|
+
email: z$1.string().optional(),
|
|
145
|
+
phone: z$1.string().optional(),
|
|
146
|
+
birthDate: z$1.string().optional(),
|
|
147
147
|
birthPlace: z$1.string().optional(),
|
|
148
|
-
countryOfBirth: z$1.enum(COUNTRY_CODES_2).optional()
|
|
148
|
+
countryOfBirth: z$1.enum(COUNTRY_CODES_2).optional(),
|
|
149
149
|
personalId: z$1.uuid().optional(),
|
|
150
150
|
gender: z$1.enum(GenderZod).optional(),
|
|
151
151
|
citizenship: z$1.enum(COUNTRY_CODES_2).optional(),
|
|
152
|
-
citizenshipOther: z$1.enum(COUNTRY_CODES_2).optional()
|
|
153
|
-
employer: z$1.string().optional()
|
|
154
|
-
employerCountry: z$1.enum(COUNTRY_CODES_2).optional()
|
|
152
|
+
citizenshipOther: z$1.enum(COUNTRY_CODES_2).optional(),
|
|
153
|
+
employer: z$1.string().optional(),
|
|
154
|
+
employerCountry: z$1.enum(COUNTRY_CODES_2).optional(),
|
|
155
155
|
registeredNumber: z$1.string().optional(),
|
|
156
156
|
isPep: z$1.boolean().optional(),
|
|
157
|
-
titleBefore: z$1.string().optional()
|
|
158
|
-
titleAfter: z$1.string().optional()
|
|
159
|
-
birthSurname: z$1.string().optional()
|
|
160
|
-
vocativeTitle: z$1.string().optional()
|
|
161
|
-
deathDate: z$1.date().optional()
|
|
162
|
-
deathNotification: z$1.date().optional()
|
|
163
|
-
pin: z$1.string().optional()
|
|
164
|
-
stayAbroad: z$1.boolean().optional()
|
|
165
|
-
stayAbroadCountries: z$1.enum(COUNTRY_CODES_2).optional()
|
|
157
|
+
titleBefore: z$1.string().optional(),
|
|
158
|
+
titleAfter: z$1.string().optional(),
|
|
159
|
+
birthSurname: z$1.string().optional(),
|
|
160
|
+
vocativeTitle: z$1.string().optional(),
|
|
161
|
+
deathDate: z$1.date().optional(),
|
|
162
|
+
deathNotification: z$1.date().optional(),
|
|
163
|
+
pin: z$1.string().optional(),
|
|
164
|
+
stayAbroad: z$1.boolean().optional(),
|
|
165
|
+
stayAbroadCountries: z$1.enum(COUNTRY_CODES_2).optional()
|
|
166
166
|
});
|
|
167
|
-
const individualOutputSchema =
|
|
167
|
+
const individualOutputSchema = z$1.object({
|
|
168
|
+
id: z$1.uuid(),
|
|
168
169
|
partyId: z$1.uuid().nullable(),
|
|
169
|
-
internalId: z$1.string().
|
|
170
|
+
internalId: z$1.string().nullable(),
|
|
171
|
+
name: z$1.string(),
|
|
172
|
+
surname: z$1.string(),
|
|
173
|
+
email: z$1.string().nullable(),
|
|
174
|
+
phone: z$1.string().nullable(),
|
|
175
|
+
birthDate: z$1.string().nullable(),
|
|
176
|
+
birthPlace: z$1.string(),
|
|
177
|
+
countryOfBirth: z$1.enum(COUNTRY_CODES_2).nullable(),
|
|
178
|
+
personalId: z$1.uuid(),
|
|
179
|
+
gender: z$1.enum(GenderZod),
|
|
180
|
+
citizenship: z$1.enum(COUNTRY_CODES_2),
|
|
181
|
+
citizenshipOther: z$1.enum(COUNTRY_CODES_2).nullable(),
|
|
182
|
+
employer: z$1.string().nullable(),
|
|
183
|
+
employerCountry: z$1.enum(COUNTRY_CODES_2).nullable(),
|
|
184
|
+
registeredNumber: z$1.string(),
|
|
185
|
+
isPep: z$1.boolean(),
|
|
186
|
+
titleBefore: z$1.string().nullable(),
|
|
187
|
+
titleAfter: z$1.string().nullable(),
|
|
188
|
+
birthSurname: z$1.string().nullable(),
|
|
189
|
+
vocativeTitle: z$1.string().nullable(),
|
|
190
|
+
deathDate: z$1.coerce.date().nullable(),
|
|
191
|
+
deathNotification: z$1.coerce.date().nullable(),
|
|
192
|
+
pin: z$1.string().nullable(),
|
|
193
|
+
stayAbroad: z$1.boolean().nullable(),
|
|
194
|
+
stayAbroadCountries: z$1.enum(COUNTRY_CODES_2).nullable(),
|
|
170
195
|
createdAt: z$1.coerce.date().nullable(),
|
|
171
196
|
updatedAt: z$1.coerce.date().nullable()
|
|
172
197
|
});
|
|
173
198
|
|
|
174
199
|
z$1.object({
|
|
175
200
|
partyId: z$1.uuid().optional(),
|
|
176
|
-
internalId: z$1.string().optional()
|
|
201
|
+
internalId: z$1.string().optional(),
|
|
177
202
|
businessName: z$1.string(),
|
|
178
|
-
email: z$1.email("Invalid email format").optional()
|
|
179
|
-
phone: z$1.string().optional()
|
|
203
|
+
email: z$1.email("Invalid email format").optional(),
|
|
204
|
+
phone: z$1.string().optional(),
|
|
180
205
|
registeredNumber: z$1.string(),
|
|
181
206
|
registeredIn: z$1.enum(COUNTRY_CODES_2),
|
|
182
207
|
operatesIn: z$1.enum(COUNTRY_CODES_2),
|
|
@@ -186,24 +211,24 @@ z$1.object({
|
|
|
186
211
|
ownedBy: z$1.string(),
|
|
187
212
|
companyObjects: z$1.string(),
|
|
188
213
|
annualTurnover: z$1.number(),
|
|
189
|
-
numberOfEmployees: z$1.number().optional()
|
|
190
|
-
prosecuted: z$1.string().optional()
|
|
191
|
-
location: z$1.string().optional()
|
|
192
|
-
fileNumber: z$1.string().optional()
|
|
193
|
-
websiteUrl: z$1.url("Invalid website URL").optional()
|
|
214
|
+
numberOfEmployees: z$1.number().optional(),
|
|
215
|
+
prosecuted: z$1.string().optional(),
|
|
216
|
+
location: z$1.string().optional(),
|
|
217
|
+
fileNumber: z$1.string().optional(),
|
|
218
|
+
websiteUrl: z$1.url("Invalid website URL").optional(),
|
|
194
219
|
vatPayer: z$1.boolean(),
|
|
195
220
|
companyObjectsDescription: z$1.string(),
|
|
196
221
|
turnover3years: z$1.number(),
|
|
197
222
|
operationCountries: z$1.string(),
|
|
198
|
-
riskyBusinessTypes: z$1.string().optional()
|
|
223
|
+
riskyBusinessTypes: z$1.string().optional()
|
|
199
224
|
});
|
|
200
225
|
const organizationUpdateSchema = z$1.object({
|
|
201
226
|
id: z$1.uuid(),
|
|
202
227
|
partyId: z$1.uuid().optional(),
|
|
203
|
-
internalId: z$1.string().optional()
|
|
228
|
+
internalId: z$1.string().optional(),
|
|
204
229
|
businessName: z$1.string().optional(),
|
|
205
|
-
email: z$1.email("Invalid email format").optional()
|
|
206
|
-
phone: z$1.string().optional()
|
|
230
|
+
email: z$1.email("Invalid email format").optional(),
|
|
231
|
+
phone: z$1.string().optional(),
|
|
207
232
|
registeredNumber: z$1.string().optional(),
|
|
208
233
|
registeredIn: z$1.enum(COUNTRY_CODES_2).optional(),
|
|
209
234
|
operatesIn: z$1.enum(COUNTRY_CODES_2).optional(),
|
|
@@ -213,26 +238,76 @@ const organizationUpdateSchema = z$1.object({
|
|
|
213
238
|
ownedBy: z$1.string().optional(),
|
|
214
239
|
companyObjects: z$1.string().optional(),
|
|
215
240
|
annualTurnover: z$1.number().optional(),
|
|
216
|
-
numberOfEmployees: z$1.number().optional()
|
|
217
|
-
prosecuted: z$1.string().optional()
|
|
218
|
-
location: z$1.string().optional()
|
|
219
|
-
fileNumber: z$1.string().optional()
|
|
220
|
-
websiteUrl: z$1.url("Invalid website URL").optional()
|
|
241
|
+
numberOfEmployees: z$1.number().optional(),
|
|
242
|
+
prosecuted: z$1.string().optional(),
|
|
243
|
+
location: z$1.string().optional(),
|
|
244
|
+
fileNumber: z$1.string().optional(),
|
|
245
|
+
websiteUrl: z$1.url("Invalid website URL").optional(),
|
|
221
246
|
vatPayer: z$1.boolean().optional(),
|
|
222
247
|
companyObjectsDescription: z$1.string(),
|
|
223
248
|
turnover3years: z$1.number(),
|
|
224
249
|
operationCountries: z$1.string(),
|
|
225
|
-
riskyBusinessTypes: z$1.string().optional()
|
|
250
|
+
riskyBusinessTypes: z$1.string().optional()
|
|
226
251
|
});
|
|
227
|
-
|
|
252
|
+
z$1.object({
|
|
253
|
+
id: z$1.uuid(),
|
|
228
254
|
partyId: z$1.uuid(),
|
|
229
|
-
internalId: z$1.string().
|
|
255
|
+
internalId: z$1.string().nullable(),
|
|
256
|
+
businessName: z$1.string(),
|
|
257
|
+
email: z$1.string().nullable(),
|
|
258
|
+
phone: z$1.string().nullable(),
|
|
259
|
+
registeredNumber: z$1.string(),
|
|
260
|
+
registeredIn: z$1.enum(COUNTRY_CODES_2),
|
|
261
|
+
operatesIn: z$1.enum(COUNTRY_CODES_2),
|
|
262
|
+
presentIn: z$1.enum(COUNTRY_CODES_2),
|
|
263
|
+
monthlyVolumeIn: z$1.number(),
|
|
264
|
+
monthlyVolumeOut: z$1.number(),
|
|
265
|
+
ownedBy: z$1.string(),
|
|
266
|
+
companyObjects: z$1.string(),
|
|
267
|
+
annualTurnover: z$1.number(),
|
|
268
|
+
numberOfEmployees: z$1.number().nullable(),
|
|
269
|
+
prosecuted: z$1.string().nullable(),
|
|
270
|
+
location: z$1.string().nullable(),
|
|
271
|
+
fileNumber: z$1.string().nullable(),
|
|
272
|
+
websiteUrl: z$1.string().nullable(),
|
|
273
|
+
vatPayer: z$1.boolean(),
|
|
274
|
+
companyObjectsDescription: z$1.string(),
|
|
275
|
+
turnover3years: z$1.number(),
|
|
276
|
+
operationCountries: z$1.string(),
|
|
277
|
+
riskyBusinessTypes: z$1.string().nullable(),
|
|
230
278
|
createdAt: z$1.coerce.date().nullable(),
|
|
231
279
|
updatedAt: z$1.coerce.date().nullable()
|
|
232
280
|
});
|
|
233
281
|
const createOrganizationInputSchema = z$1.object({
|
|
234
282
|
partyId: z$1.uuid().optional(),
|
|
235
|
-
internalId: z$1.string().optional()
|
|
283
|
+
internalId: z$1.string().optional(),
|
|
284
|
+
businessName: z$1.string(),
|
|
285
|
+
email: z$1.string().optional(),
|
|
286
|
+
phone: z$1.string().optional(),
|
|
287
|
+
registeredNumber: z$1.string(),
|
|
288
|
+
registeredIn: z$1.enum(COUNTRY_CODES_2),
|
|
289
|
+
operatesIn: z$1.enum(COUNTRY_CODES_2),
|
|
290
|
+
presentIn: z$1.enum(COUNTRY_CODES_2),
|
|
291
|
+
monthlyVolumeIn: z$1.number(),
|
|
292
|
+
monthlyVolumeOut: z$1.number(),
|
|
293
|
+
ownedBy: z$1.string(),
|
|
294
|
+
companyObjects: z$1.string(),
|
|
295
|
+
annualTurnover: z$1.number(),
|
|
296
|
+
numberOfEmployees: z$1.number(),
|
|
297
|
+
prosecuted: z$1.string().optional(),
|
|
298
|
+
location: z$1.string().optional(),
|
|
299
|
+
fileNumber: z$1.string().optional(),
|
|
300
|
+
websiteUrl: z$1.string().optional(),
|
|
301
|
+
vatPayer: z$1.boolean(),
|
|
302
|
+
message: z$1.string(),
|
|
303
|
+
companyObjectsDescription: z$1.string(),
|
|
304
|
+
turnover3years: z$1.number(),
|
|
305
|
+
operationCountries: z$1.string(),
|
|
306
|
+
riskyBusinessTypes: z$1.string().optional()
|
|
307
|
+
});
|
|
308
|
+
const createOrganizationOutputSchema = z$1.object({
|
|
309
|
+
partyId: z$1.uuid(),
|
|
310
|
+
internalId: z$1.string().nullable(),
|
|
236
311
|
businessName: z$1.string(),
|
|
237
312
|
email: z$1.string().nullable(),
|
|
238
313
|
phone: z$1.string().nullable(),
|
|
@@ -245,21 +320,17 @@ const createOrganizationInputSchema = z$1.object({
|
|
|
245
320
|
ownedBy: z$1.string(),
|
|
246
321
|
companyObjects: z$1.string(),
|
|
247
322
|
annualTurnover: z$1.number(),
|
|
248
|
-
numberOfEmployees: z$1.number(),
|
|
323
|
+
numberOfEmployees: z$1.number().nullable(),
|
|
249
324
|
prosecuted: z$1.string().nullable(),
|
|
250
325
|
location: z$1.string().nullable(),
|
|
251
326
|
fileNumber: z$1.string().nullable(),
|
|
252
327
|
websiteUrl: z$1.string().nullable(),
|
|
253
328
|
vatPayer: z$1.boolean(),
|
|
254
|
-
message: z$1.string(),
|
|
329
|
+
message: z$1.string().nullable(),
|
|
255
330
|
companyObjectsDescription: z$1.string(),
|
|
256
331
|
turnover3years: z$1.number(),
|
|
257
332
|
operationCountries: z$1.string(),
|
|
258
|
-
riskyBusinessTypes: z$1.string().
|
|
259
|
-
});
|
|
260
|
-
const createOrganizationOutputSchema = createOrganizationInputSchema.partial().extend({
|
|
261
|
-
partyId: z$1.uuid().nullable(),
|
|
262
|
-
numberOfEmployees: z$1.number().nullable()
|
|
333
|
+
riskyBusinessTypes: z$1.string().nullable()
|
|
263
334
|
});
|
|
264
335
|
|
|
265
336
|
const disponentSchema = z$1.discriminatedUnion("partyType", [
|
|
@@ -285,11 +356,11 @@ const disponentUpdateSchema = z$1.discriminatedUnion("partyType", [
|
|
|
285
356
|
const disponentOutputSchema = z$1.discriminatedUnion("partyType", [
|
|
286
357
|
z$1.object({
|
|
287
358
|
partyType: z$1.literal("INDIVIDUAL"),
|
|
288
|
-
data: individualOutputSchema.
|
|
359
|
+
data: individualOutputSchema.nullable()
|
|
289
360
|
}),
|
|
290
361
|
z$1.object({
|
|
291
362
|
partyType: z$1.literal("ORGANIZATION"),
|
|
292
|
-
data: createOrganizationOutputSchema.
|
|
363
|
+
data: createOrganizationOutputSchema.nullable()
|
|
293
364
|
})
|
|
294
365
|
]);
|
|
295
366
|
|
|
@@ -11832,22 +11903,12 @@ new z.$ZodObject({
|
|
|
11832
11903
|
const updateBankAccountSchema = z$1.object({
|
|
11833
11904
|
...bankAccountMetadataSchema.shape,
|
|
11834
11905
|
partyId: z$1.uuid(),
|
|
11835
|
-
internalId: z$1.string().optional()
|
|
11906
|
+
internalId: z$1.string().optional(),
|
|
11836
11907
|
holderName: z$1.string(),
|
|
11837
|
-
number: z$1.string().
|
|
11838
|
-
bankCode: bankAccountMetadataSchema.shape.bankCode.nullish(),
|
|
11908
|
+
number: z$1.string().optional(),
|
|
11839
11909
|
currency: bankAccountMetadataSchema.shape.currency.nonoptional(),
|
|
11840
11910
|
countryCode: bankAccountMetadataSchema.shape.countryCode.nonoptional(),
|
|
11841
|
-
id: bankAccountMetadataSchema.shape.id.nonoptional()
|
|
11842
|
-
iban: bankAccountMetadataSchema.shape.iban.nullable().optional(),
|
|
11843
|
-
address: bankAccountMetadataSchema.shape.address.nullable().optional(),
|
|
11844
|
-
swiftBic: bankAccountMetadataSchema.shape.swiftBic.nullable().optional(),
|
|
11845
|
-
bicCor: bankAccountMetadataSchema.shape.bicCor.nullable().optional(),
|
|
11846
|
-
routingNumber: bankAccountMetadataSchema.shape.routingNumber.nullable().optional(),
|
|
11847
|
-
sortCode: bankAccountMetadataSchema.shape.sortCode.nullable().optional(),
|
|
11848
|
-
clabe: bankAccountMetadataSchema.shape.clabe.nullable().optional(),
|
|
11849
|
-
bsb: bankAccountMetadataSchema.shape.bsb.nullable().optional(),
|
|
11850
|
-
brBankNumber: bankAccountMetadataSchema.shape.brBankNumber.nullable().optional()
|
|
11911
|
+
id: bankAccountMetadataSchema.shape.id.nonoptional()
|
|
11851
11912
|
});
|
|
11852
11913
|
const bankAccountInputSchema = updateBankAccountSchema.required({
|
|
11853
11914
|
holderName: true,
|
|
@@ -11855,75 +11916,77 @@ const bankAccountInputSchema = updateBankAccountSchema.required({
|
|
|
11855
11916
|
countryCode: true
|
|
11856
11917
|
}).omit({ id: true, partyId: true });
|
|
11857
11918
|
const bankAccountOutputSchema = z$1.object({
|
|
11858
|
-
|
|
11919
|
+
id: z$1.string(),
|
|
11859
11920
|
partyId: z$1.uuid().nullable(),
|
|
11860
|
-
internalId: z$1.string().
|
|
11921
|
+
internalId: z$1.string().nullable(),
|
|
11861
11922
|
holderName: z$1.string(),
|
|
11862
|
-
number: z$1.string().
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11923
|
+
number: z$1.string().nullable(),
|
|
11924
|
+
bankCode: z$1.string().nullable(),
|
|
11925
|
+
currency: z$1.string(),
|
|
11926
|
+
countryCode: z$1.string(),
|
|
11927
|
+
iban: z$1.string().nullable(),
|
|
11928
|
+
address: z$1.string().nullable(),
|
|
11929
|
+
swiftBic: z$1.string().nullable(),
|
|
11930
|
+
bicCor: z$1.string().nullable(),
|
|
11931
|
+
routingNumber: z$1.string().nullable(),
|
|
11932
|
+
sortCode: z$1.string().nullable(),
|
|
11933
|
+
clabe: z$1.string().nullable(),
|
|
11934
|
+
bsb: z$1.string().nullable(),
|
|
11935
|
+
brBankNumber: z$1.string().nullable(),
|
|
11936
|
+
updatedAt: z$1.coerce.date().nullable()
|
|
11874
11937
|
});
|
|
11875
11938
|
|
|
11876
11939
|
const createAmlInputSchema = z$1.object({
|
|
11877
|
-
partyId: z$1.uuid().optional()
|
|
11878
|
-
internalId: z$1.string().optional()
|
|
11940
|
+
partyId: z$1.uuid().optional(),
|
|
11941
|
+
internalId: z$1.string().optional(),
|
|
11879
11942
|
sourceOfWealth: z$1.string(),
|
|
11880
11943
|
yearlyIncome: z$1.string(),
|
|
11881
|
-
tradesPurpose: z$1.string().optional()
|
|
11944
|
+
tradesPurpose: z$1.string().optional(),
|
|
11882
11945
|
sourceOfIncome: z$1.string(),
|
|
11883
|
-
transactionType: z$1.string().optional()
|
|
11884
|
-
transactionTypeExpiry: z$1.date().optional()
|
|
11946
|
+
transactionType: z$1.string().optional(),
|
|
11947
|
+
transactionTypeExpiry: z$1.date().optional(),
|
|
11885
11948
|
isDistraint: z$1.boolean().default(false),
|
|
11886
11949
|
estTxsVolumeMonth: z$1.string(),
|
|
11887
11950
|
estTxsVolumeYear: z$1.string(),
|
|
11888
11951
|
tradingCountries: z$1.string(),
|
|
11889
11952
|
tradingSide: z$1.string(),
|
|
11890
11953
|
acceptedAMLTermsAndConditions: z$1.boolean(),
|
|
11891
|
-
signatureMethod: z$1.string().
|
|
11892
|
-
existencePeriod: z$1.string().
|
|
11893
|
-
reputation: z$1.string().
|
|
11894
|
-
riskLevel: z$1.enum(AmlScoreTypeZod).
|
|
11895
|
-
kycStatus: z$1.enum(KycStatusZod).
|
|
11954
|
+
signatureMethod: z$1.string().optional(),
|
|
11955
|
+
existencePeriod: z$1.string().optional(),
|
|
11956
|
+
reputation: z$1.string().optional(),
|
|
11957
|
+
riskLevel: z$1.enum(AmlScoreTypeZod).optional(),
|
|
11958
|
+
kycStatus: z$1.enum(KycStatusZod).optional()
|
|
11896
11959
|
});
|
|
11897
11960
|
const updateAmlInputSchema = z$1.object({
|
|
11898
11961
|
id: z$1.uuid(),
|
|
11899
|
-
partyId: z$1.uuid().optional()
|
|
11900
|
-
internalId: z$1.string().optional()
|
|
11962
|
+
partyId: z$1.uuid().optional(),
|
|
11963
|
+
internalId: z$1.string().optional(),
|
|
11901
11964
|
sourceOfWealth: z$1.string().optional(),
|
|
11902
11965
|
yearlyIncome: z$1.string().optional(),
|
|
11903
|
-
tradesPurpose: z$1.string().optional()
|
|
11966
|
+
tradesPurpose: z$1.string().optional(),
|
|
11904
11967
|
sourceOfIncome: z$1.string().optional(),
|
|
11905
|
-
transactionType: z$1.string().optional()
|
|
11906
|
-
transactionTypeExpiry: z$1.date().optional()
|
|
11968
|
+
transactionType: z$1.string().optional(),
|
|
11969
|
+
transactionTypeExpiry: z$1.date().optional(),
|
|
11907
11970
|
isDistraint: z$1.boolean().optional(),
|
|
11908
11971
|
estTxsVolumeMonth: z$1.string(),
|
|
11909
11972
|
estTxsVolumeYear: z$1.string(),
|
|
11910
11973
|
tradingCountries: z$1.string(),
|
|
11911
11974
|
tradingSide: z$1.string(),
|
|
11912
11975
|
acceptedAMLTermsAndConditions: z$1.boolean(),
|
|
11913
|
-
signatureMethod: z$1.string().
|
|
11914
|
-
existencePeriod: z$1.string().
|
|
11915
|
-
reputation: z$1.string().
|
|
11916
|
-
riskLevel: z$1.enum(AmlScoreTypeZod).
|
|
11917
|
-
kycStatus: z$1.enum(KycStatusZod).
|
|
11976
|
+
signatureMethod: z$1.string().optional(),
|
|
11977
|
+
existencePeriod: z$1.string().optional(),
|
|
11978
|
+
reputation: z$1.string().optional(),
|
|
11979
|
+
riskLevel: z$1.enum(AmlScoreTypeZod).optional(),
|
|
11980
|
+
kycStatus: z$1.enum(KycStatusZod).optional()
|
|
11918
11981
|
});
|
|
11919
11982
|
const createAmlOutputSchema = z$1.object({
|
|
11920
11983
|
id: z$1.uuid(),
|
|
11921
11984
|
partyId: z$1.uuid().nullable(),
|
|
11922
11985
|
internalId: z$1.string().nullable(),
|
|
11923
|
-
sourceOfWealth: z$1.string()
|
|
11924
|
-
yearlyIncome: z$1.string()
|
|
11986
|
+
sourceOfWealth: z$1.string(),
|
|
11987
|
+
yearlyIncome: z$1.string(),
|
|
11925
11988
|
tradesPurpose: z$1.string().nullable(),
|
|
11926
|
-
sourceOfIncome: z$1.string()
|
|
11989
|
+
sourceOfIncome: z$1.string(),
|
|
11927
11990
|
transactionType: z$1.string().nullable(),
|
|
11928
11991
|
transactionTypeExpiry: z$1.date().nullable(),
|
|
11929
11992
|
isDistraint: z$1.boolean(),
|
|
@@ -11935,7 +11998,7 @@ const createAmlOutputSchema = z$1.object({
|
|
|
11935
11998
|
signatureMethod: z$1.string().nullable(),
|
|
11936
11999
|
existencePeriod: z$1.string().nullable(),
|
|
11937
12000
|
reputation: z$1.string().nullable(),
|
|
11938
|
-
riskLevel: z$1.enum(AmlScoreTypeZod)
|
|
12001
|
+
riskLevel: z$1.enum(AmlScoreTypeZod),
|
|
11939
12002
|
kycStatus: z$1.enum(KycStatusZod).nullable(),
|
|
11940
12003
|
createdAt: z$1.date().nullable(),
|
|
11941
12004
|
updatedAt: z$1.date().nullable()
|
|
@@ -11943,17 +12006,17 @@ const createAmlOutputSchema = z$1.object({
|
|
|
11943
12006
|
|
|
11944
12007
|
const createAddressInputSchema = z$1.object({
|
|
11945
12008
|
addressType: z$1.enum(AddressTypeZod),
|
|
11946
|
-
internalId: z$1.string().optional()
|
|
12009
|
+
internalId: z$1.string().optional(),
|
|
11947
12010
|
street: z$1.string(),
|
|
11948
|
-
orientationNumber: z$1.string().
|
|
11949
|
-
descriptiveNumber: z$1.string().
|
|
12011
|
+
orientationNumber: z$1.string().optional(),
|
|
12012
|
+
descriptiveNumber: z$1.string().optional(),
|
|
11950
12013
|
municipality: z$1.string().max(255),
|
|
11951
|
-
municipalityPart: z$1.string().
|
|
12014
|
+
municipalityPart: z$1.string().optional(),
|
|
11952
12015
|
zipCode: z$1.string().max(20),
|
|
11953
12016
|
district: z$1.string().max(255),
|
|
11954
12017
|
region: z$1.string().max(255),
|
|
11955
12018
|
countryCode: z$1.enum(COUNTRY_CODES_2),
|
|
11956
|
-
ruianCode: z$1.string().
|
|
12019
|
+
ruianCode: z$1.string().optional()
|
|
11957
12020
|
});
|
|
11958
12021
|
const createAddressOutputSchema = z$1.object({
|
|
11959
12022
|
id: z$1.uuid(),
|
|
@@ -11977,43 +12040,49 @@ const createAddressOutputSchema = z$1.object({
|
|
|
11977
12040
|
const updateAddressInputSchema = z$1.object({
|
|
11978
12041
|
id: z$1.uuid(),
|
|
11979
12042
|
partyId: z$1.uuid(),
|
|
11980
|
-
internalId: z$1.string().optional()
|
|
12043
|
+
internalId: z$1.string().optional(),
|
|
11981
12044
|
addressType: z$1.enum(AddressTypeZod),
|
|
11982
12045
|
street: z$1.string(),
|
|
11983
|
-
orientationNumber: z$1.string().
|
|
11984
|
-
descriptiveNumber: z$1.string().
|
|
12046
|
+
orientationNumber: z$1.string().optional(),
|
|
12047
|
+
descriptiveNumber: z$1.string().optional(),
|
|
11985
12048
|
municipality: z$1.string().max(255),
|
|
11986
|
-
municipalityPart: z$1.string().
|
|
12049
|
+
municipalityPart: z$1.string().optional(),
|
|
11987
12050
|
zipCode: z$1.string().max(20),
|
|
11988
12051
|
district: z$1.string().max(255),
|
|
11989
12052
|
region: z$1.string().max(255),
|
|
11990
12053
|
countryCode: z$1.enum(COUNTRY_CODES_2),
|
|
11991
|
-
ruianCode: z$1.string().
|
|
12054
|
+
ruianCode: z$1.string().optional()
|
|
11992
12055
|
});
|
|
11993
12056
|
|
|
11994
12057
|
const partySchema = z$1.object({
|
|
11995
12058
|
partyType: z$1.enum(PartyTypeZod),
|
|
11996
12059
|
language: z$1.enum(LANGUAGE_CODES),
|
|
11997
12060
|
id: z$1.uuid(),
|
|
11998
|
-
internalId: z$1.string().optional()
|
|
11999
|
-
note: z$1.string().
|
|
12000
|
-
countryCode: z$1.enum(COUNTRY_CODES_2).
|
|
12061
|
+
internalId: z$1.string().optional(),
|
|
12062
|
+
note: z$1.string().optional(),
|
|
12063
|
+
countryCode: z$1.enum(COUNTRY_CODES_2).optional()
|
|
12001
12064
|
});
|
|
12002
12065
|
const partyCreateOutputSchema = z$1.object({
|
|
12003
12066
|
customerStatus: z$1.enum(CustomerStatusZod),
|
|
12004
12067
|
partyType: z$1.enum(PartyTypeZod),
|
|
12005
12068
|
language: z$1.enum(LANGUAGE_CODES),
|
|
12006
|
-
id: z$1.uuid()
|
|
12007
|
-
internalId: z$1.string().
|
|
12008
|
-
note: z$1.string().nullable()
|
|
12009
|
-
countryCode: z$1.enum(COUNTRY_CODES_2).nullable()
|
|
12010
|
-
createdAt: z$1.date().nullable()
|
|
12011
|
-
updatedAt: z$1.date().nullable()
|
|
12069
|
+
id: z$1.uuid(),
|
|
12070
|
+
internalId: z$1.string().nullable(),
|
|
12071
|
+
note: z$1.string().nullable(),
|
|
12072
|
+
countryCode: z$1.enum(COUNTRY_CODES_2).nullable(),
|
|
12073
|
+
createdAt: z$1.date().nullable(),
|
|
12074
|
+
updatedAt: z$1.date().nullable()
|
|
12012
12075
|
});
|
|
12013
|
-
|
|
12014
|
-
customerStatus:
|
|
12015
|
-
partyType:
|
|
12016
|
-
language:
|
|
12076
|
+
z$1.object({
|
|
12077
|
+
customerStatus: z$1.enum(CustomerStatusZod),
|
|
12078
|
+
partyType: z$1.enum(PartyTypeZod),
|
|
12079
|
+
language: z$1.enum(LANGUAGE_CODES),
|
|
12080
|
+
id: z$1.uuid(),
|
|
12081
|
+
internalId: z$1.string().nullable(),
|
|
12082
|
+
note: z$1.string().nullable(),
|
|
12083
|
+
countryCode: z$1.enum(COUNTRY_CODES_2).nullable(),
|
|
12084
|
+
createdAt: z$1.date().nullable(),
|
|
12085
|
+
updatedAt: z$1.date().nullable()
|
|
12017
12086
|
});
|
|
12018
12087
|
const createPartyInputSchema = z$1.object({
|
|
12019
12088
|
party: partySchema.omit({ id: true }),
|
|
@@ -12030,8 +12099,8 @@ const partyOutputSchema = z$1.object({
|
|
|
12030
12099
|
id: z$1.uuid(),
|
|
12031
12100
|
isClient: z$1.boolean()
|
|
12032
12101
|
}).nullable(),
|
|
12033
|
-
personalData: individualOutputSchema.
|
|
12034
|
-
organizationData: createOrganizationOutputSchema.
|
|
12102
|
+
personalData: individualOutputSchema.nullable(),
|
|
12103
|
+
organizationData: createOrganizationOutputSchema.nullable(),
|
|
12035
12104
|
bankAccounts: z$1.array(bankAccountOutputSchema).nullable(),
|
|
12036
12105
|
disponents: z$1.array(disponentOutputSchema).nullable(),
|
|
12037
12106
|
addresses: z$1.array(createAddressOutputSchema).nullable(),
|
|
@@ -12047,7 +12116,7 @@ const partyUpdateInputSchema = z$1.object({
|
|
|
12047
12116
|
disponents: z$1.array(disponentUpdateSchema).optional(),
|
|
12048
12117
|
addresses: z$1.array(updateAddressInputSchema),
|
|
12049
12118
|
recipients: z$1.array(updateBankAccountSchema).nullable(),
|
|
12050
|
-
aml: updateAmlInputSchema.
|
|
12119
|
+
aml: updateAmlInputSchema.optional()
|
|
12051
12120
|
});
|
|
12052
12121
|
const updatePartyOuputSchema = z$1.object({
|
|
12053
12122
|
id: z$1.uuid(),
|