@devizovaburza/mdm-sdk 0.0.8 → 0.0.10
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 +444 -343
- package/dist/v1/index.d.cts +6358 -7527
- package/dist/v1/index.d.mts +6358 -7527
- package/dist/v1/index.d.ts +6358 -7527
- package/dist/v1/index.mjs +444 -340
- package/package.json +1 -1
package/dist/v1/index.cjs
CHANGED
|
@@ -9,9 +9,6 @@ const z = require('zod/v4/core');
|
|
|
9
9
|
require('node:fs');
|
|
10
10
|
require('node:crypto');
|
|
11
11
|
require('node:path');
|
|
12
|
-
const require$$0 = require('buffer');
|
|
13
|
-
|
|
14
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
15
12
|
|
|
16
13
|
function _interopNamespaceCompat(e) {
|
|
17
14
|
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
@@ -26,7 +23,6 @@ function _interopNamespaceCompat(e) {
|
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
const z__namespace = /*#__PURE__*/_interopNamespaceCompat(z);
|
|
29
|
-
const require$$0__default = /*#__PURE__*/_interopDefaultCompat(require$$0);
|
|
30
26
|
|
|
31
27
|
const createMdmClient = (baseUrl, options) => {
|
|
32
28
|
return client.hc(baseUrl, options);
|
|
@@ -129,74 +125,99 @@ const GenderZod = ["M", "F", "OTHER"];
|
|
|
129
125
|
|
|
130
126
|
const individualInsertSchema = zodOpenapi.z.object({
|
|
131
127
|
partyId: zodOpenapi.z.uuid().optional(),
|
|
132
|
-
internalId: zodOpenapi.z.string().optional()
|
|
128
|
+
internalId: zodOpenapi.z.string().optional(),
|
|
133
129
|
name: zodOpenapi.z.string(),
|
|
134
130
|
surname: zodOpenapi.z.string(),
|
|
135
|
-
email: zodOpenapi.z.string().optional()
|
|
136
|
-
phone: zodOpenapi.z.string().optional()
|
|
137
|
-
birthDate: zodOpenapi.z.string().optional()
|
|
131
|
+
email: zodOpenapi.z.string().optional(),
|
|
132
|
+
phone: zodOpenapi.z.string().optional(),
|
|
133
|
+
birthDate: zodOpenapi.z.string().optional(),
|
|
138
134
|
birthPlace: zodOpenapi.z.string(),
|
|
139
|
-
countryOfBirth: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional()
|
|
135
|
+
countryOfBirth: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional(),
|
|
140
136
|
personalId: zodOpenapi.z.uuid(),
|
|
141
137
|
gender: zodOpenapi.z.enum(GenderZod),
|
|
142
138
|
citizenship: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2),
|
|
143
|
-
citizenshipOther: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional()
|
|
144
|
-
employer: zodOpenapi.z.string().optional()
|
|
145
|
-
employerCountry: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional()
|
|
139
|
+
citizenshipOther: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional(),
|
|
140
|
+
employer: zodOpenapi.z.string().optional(),
|
|
141
|
+
employerCountry: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional(),
|
|
146
142
|
registeredNumber: zodOpenapi.z.string(),
|
|
147
143
|
isPep: zodOpenapi.z.boolean(),
|
|
148
|
-
titleBefore: zodOpenapi.z.string().optional()
|
|
149
|
-
titleAfter: zodOpenapi.z.string().optional()
|
|
150
|
-
birthSurname: zodOpenapi.z.string().optional()
|
|
151
|
-
vocativeTitle: zodOpenapi.z.string().optional()
|
|
152
|
-
deathDate: zodOpenapi.z.date().optional()
|
|
153
|
-
deathNotification: zodOpenapi.z.date().optional()
|
|
154
|
-
pin: zodOpenapi.z.string().optional()
|
|
155
|
-
stayAbroad: zodOpenapi.z.boolean().optional()
|
|
156
|
-
stayAbroadCountries: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional()
|
|
144
|
+
titleBefore: zodOpenapi.z.string().optional(),
|
|
145
|
+
titleAfter: zodOpenapi.z.string().optional(),
|
|
146
|
+
birthSurname: zodOpenapi.z.string().optional(),
|
|
147
|
+
vocativeTitle: zodOpenapi.z.string().optional(),
|
|
148
|
+
deathDate: zodOpenapi.z.date().optional(),
|
|
149
|
+
deathNotification: zodOpenapi.z.date().optional(),
|
|
150
|
+
pin: zodOpenapi.z.string().optional(),
|
|
151
|
+
stayAbroad: zodOpenapi.z.boolean().optional(),
|
|
152
|
+
stayAbroadCountries: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional()
|
|
157
153
|
});
|
|
158
154
|
const individualUpdateSchema = zodOpenapi.z.object({
|
|
159
155
|
id: zodOpenapi.z.uuid(),
|
|
160
156
|
partyId: zodOpenapi.z.uuid(),
|
|
161
|
-
internalId: zodOpenapi.z.string().optional()
|
|
157
|
+
internalId: zodOpenapi.z.string().optional(),
|
|
162
158
|
name: zodOpenapi.z.string().optional(),
|
|
163
159
|
surname: zodOpenapi.z.string().optional(),
|
|
164
|
-
email: zodOpenapi.z.string().optional()
|
|
165
|
-
phone: zodOpenapi.z.string().optional()
|
|
166
|
-
birthDate: zodOpenapi.z.string().optional()
|
|
160
|
+
email: zodOpenapi.z.string().optional(),
|
|
161
|
+
phone: zodOpenapi.z.string().optional(),
|
|
162
|
+
birthDate: zodOpenapi.z.string().optional(),
|
|
167
163
|
birthPlace: zodOpenapi.z.string().optional(),
|
|
168
|
-
countryOfBirth: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional()
|
|
164
|
+
countryOfBirth: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional(),
|
|
169
165
|
personalId: zodOpenapi.z.uuid().optional(),
|
|
170
166
|
gender: zodOpenapi.z.enum(GenderZod).optional(),
|
|
171
167
|
citizenship: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional(),
|
|
172
|
-
citizenshipOther: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional()
|
|
173
|
-
employer: zodOpenapi.z.string().optional()
|
|
174
|
-
employerCountry: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional()
|
|
168
|
+
citizenshipOther: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional(),
|
|
169
|
+
employer: zodOpenapi.z.string().optional(),
|
|
170
|
+
employerCountry: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional(),
|
|
175
171
|
registeredNumber: zodOpenapi.z.string().optional(),
|
|
176
172
|
isPep: zodOpenapi.z.boolean().optional(),
|
|
177
|
-
titleBefore: zodOpenapi.z.string().optional()
|
|
178
|
-
titleAfter: zodOpenapi.z.string().optional()
|
|
179
|
-
birthSurname: zodOpenapi.z.string().optional()
|
|
180
|
-
vocativeTitle: zodOpenapi.z.string().optional()
|
|
181
|
-
deathDate: zodOpenapi.z.date().optional()
|
|
182
|
-
deathNotification: zodOpenapi.z.date().optional()
|
|
183
|
-
pin: zodOpenapi.z.string().optional()
|
|
184
|
-
stayAbroad: zodOpenapi.z.boolean().optional()
|
|
185
|
-
stayAbroadCountries: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional()
|
|
173
|
+
titleBefore: zodOpenapi.z.string().optional(),
|
|
174
|
+
titleAfter: zodOpenapi.z.string().optional(),
|
|
175
|
+
birthSurname: zodOpenapi.z.string().optional(),
|
|
176
|
+
vocativeTitle: zodOpenapi.z.string().optional(),
|
|
177
|
+
deathDate: zodOpenapi.z.date().optional(),
|
|
178
|
+
deathNotification: zodOpenapi.z.date().optional(),
|
|
179
|
+
pin: zodOpenapi.z.string().optional(),
|
|
180
|
+
stayAbroad: zodOpenapi.z.boolean().optional(),
|
|
181
|
+
stayAbroadCountries: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional()
|
|
186
182
|
});
|
|
187
|
-
const individualOutputSchema =
|
|
183
|
+
const individualOutputSchema = zodOpenapi.z.object({
|
|
184
|
+
id: zodOpenapi.z.uuid(),
|
|
188
185
|
partyId: zodOpenapi.z.uuid().nullable(),
|
|
189
|
-
internalId: zodOpenapi.z.string().
|
|
186
|
+
internalId: zodOpenapi.z.string().nullable(),
|
|
187
|
+
name: zodOpenapi.z.string().nullable(),
|
|
188
|
+
surname: zodOpenapi.z.string().nullable(),
|
|
189
|
+
email: zodOpenapi.z.string().nullable(),
|
|
190
|
+
phone: zodOpenapi.z.string().nullable(),
|
|
191
|
+
birthDate: zodOpenapi.z.string().nullable(),
|
|
192
|
+
birthPlace: zodOpenapi.z.string().nullable(),
|
|
193
|
+
countryOfBirth: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
194
|
+
personalId: zodOpenapi.z.uuid().nullable(),
|
|
195
|
+
gender: zodOpenapi.z.enum(GenderZod).nullable(),
|
|
196
|
+
citizenship: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
197
|
+
citizenshipOther: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
198
|
+
employer: zodOpenapi.z.string().nullable(),
|
|
199
|
+
employerCountry: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
200
|
+
registeredNumber: zodOpenapi.z.string().nullable(),
|
|
201
|
+
isPep: zodOpenapi.z.boolean().nullable(),
|
|
202
|
+
titleBefore: zodOpenapi.z.string().nullable(),
|
|
203
|
+
titleAfter: zodOpenapi.z.string().nullable(),
|
|
204
|
+
birthSurname: zodOpenapi.z.string().nullable(),
|
|
205
|
+
vocativeTitle: zodOpenapi.z.string().nullable(),
|
|
206
|
+
deathDate: zodOpenapi.z.coerce.date().nullable(),
|
|
207
|
+
deathNotification: zodOpenapi.z.coerce.date().nullable(),
|
|
208
|
+
pin: zodOpenapi.z.string().nullable(),
|
|
209
|
+
stayAbroad: zodOpenapi.z.boolean().nullable(),
|
|
210
|
+
stayAbroadCountries: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
190
211
|
createdAt: zodOpenapi.z.coerce.date().nullable(),
|
|
191
212
|
updatedAt: zodOpenapi.z.coerce.date().nullable()
|
|
192
213
|
});
|
|
193
214
|
|
|
194
215
|
zodOpenapi.z.object({
|
|
195
216
|
partyId: zodOpenapi.z.uuid().optional(),
|
|
196
|
-
internalId: zodOpenapi.z.string().optional()
|
|
217
|
+
internalId: zodOpenapi.z.string().optional(),
|
|
197
218
|
businessName: zodOpenapi.z.string(),
|
|
198
|
-
email: zodOpenapi.z.email("Invalid email format").optional()
|
|
199
|
-
phone: zodOpenapi.z.string().optional()
|
|
219
|
+
email: zodOpenapi.z.email("Invalid email format").optional(),
|
|
220
|
+
phone: zodOpenapi.z.string().optional(),
|
|
200
221
|
registeredNumber: zodOpenapi.z.string(),
|
|
201
222
|
registeredIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2),
|
|
202
223
|
operatesIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2),
|
|
@@ -206,24 +227,24 @@ zodOpenapi.z.object({
|
|
|
206
227
|
ownedBy: zodOpenapi.z.string(),
|
|
207
228
|
companyObjects: zodOpenapi.z.string(),
|
|
208
229
|
annualTurnover: zodOpenapi.z.number(),
|
|
209
|
-
numberOfEmployees: zodOpenapi.z.number().optional()
|
|
210
|
-
prosecuted: zodOpenapi.z.string().optional()
|
|
211
|
-
location: zodOpenapi.z.string().optional()
|
|
212
|
-
fileNumber: zodOpenapi.z.string().optional()
|
|
213
|
-
websiteUrl: zodOpenapi.z.url("Invalid website URL").optional()
|
|
230
|
+
numberOfEmployees: zodOpenapi.z.number().optional(),
|
|
231
|
+
prosecuted: zodOpenapi.z.string().optional(),
|
|
232
|
+
location: zodOpenapi.z.string().optional(),
|
|
233
|
+
fileNumber: zodOpenapi.z.string().optional(),
|
|
234
|
+
websiteUrl: zodOpenapi.z.url("Invalid website URL").optional(),
|
|
214
235
|
vatPayer: zodOpenapi.z.boolean(),
|
|
215
236
|
companyObjectsDescription: zodOpenapi.z.string(),
|
|
216
237
|
turnover3years: zodOpenapi.z.number(),
|
|
217
238
|
operationCountries: zodOpenapi.z.string(),
|
|
218
|
-
riskyBusinessTypes: zodOpenapi.z.string().optional()
|
|
239
|
+
riskyBusinessTypes: zodOpenapi.z.string().optional()
|
|
219
240
|
});
|
|
220
241
|
const organizationUpdateSchema = zodOpenapi.z.object({
|
|
221
242
|
id: zodOpenapi.z.uuid(),
|
|
222
243
|
partyId: zodOpenapi.z.uuid().optional(),
|
|
223
|
-
internalId: zodOpenapi.z.string().optional()
|
|
244
|
+
internalId: zodOpenapi.z.string().optional(),
|
|
224
245
|
businessName: zodOpenapi.z.string().optional(),
|
|
225
|
-
email: zodOpenapi.z.email("Invalid email format").optional()
|
|
226
|
-
phone: zodOpenapi.z.string().optional()
|
|
246
|
+
email: zodOpenapi.z.email("Invalid email format").optional(),
|
|
247
|
+
phone: zodOpenapi.z.string().optional(),
|
|
227
248
|
registeredNumber: zodOpenapi.z.string().optional(),
|
|
228
249
|
registeredIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional(),
|
|
229
250
|
operatesIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional(),
|
|
@@ -233,29 +254,52 @@ const organizationUpdateSchema = zodOpenapi.z.object({
|
|
|
233
254
|
ownedBy: zodOpenapi.z.string().optional(),
|
|
234
255
|
companyObjects: zodOpenapi.z.string().optional(),
|
|
235
256
|
annualTurnover: zodOpenapi.z.number().optional(),
|
|
236
|
-
numberOfEmployees: zodOpenapi.z.number().optional()
|
|
237
|
-
prosecuted: zodOpenapi.z.string().optional()
|
|
238
|
-
location: zodOpenapi.z.string().optional()
|
|
239
|
-
fileNumber: zodOpenapi.z.string().optional()
|
|
240
|
-
websiteUrl: zodOpenapi.z.url("Invalid website URL").optional()
|
|
257
|
+
numberOfEmployees: zodOpenapi.z.number().optional(),
|
|
258
|
+
prosecuted: zodOpenapi.z.string().optional(),
|
|
259
|
+
location: zodOpenapi.z.string().optional(),
|
|
260
|
+
fileNumber: zodOpenapi.z.string().optional(),
|
|
261
|
+
websiteUrl: zodOpenapi.z.url("Invalid website URL").optional(),
|
|
241
262
|
vatPayer: zodOpenapi.z.boolean().optional(),
|
|
242
263
|
companyObjectsDescription: zodOpenapi.z.string(),
|
|
243
264
|
turnover3years: zodOpenapi.z.number(),
|
|
244
265
|
operationCountries: zodOpenapi.z.string(),
|
|
245
|
-
riskyBusinessTypes: zodOpenapi.z.string().optional()
|
|
266
|
+
riskyBusinessTypes: zodOpenapi.z.string().optional()
|
|
246
267
|
});
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
268
|
+
zodOpenapi.z.object({
|
|
269
|
+
id: zodOpenapi.z.uuid(),
|
|
270
|
+
partyId: zodOpenapi.z.uuid().nullable(),
|
|
271
|
+
internalId: zodOpenapi.z.string().nullable(),
|
|
272
|
+
businessName: zodOpenapi.z.string().nullable(),
|
|
273
|
+
email: zodOpenapi.z.string().nullable(),
|
|
274
|
+
phone: zodOpenapi.z.string().nullable(),
|
|
275
|
+
registeredNumber: zodOpenapi.z.string().nullable(),
|
|
276
|
+
registeredIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
277
|
+
operatesIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
278
|
+
presentIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
279
|
+
monthlyVolumeIn: zodOpenapi.z.number().nullable(),
|
|
280
|
+
monthlyVolumeOut: zodOpenapi.z.number().nullable(),
|
|
281
|
+
ownedBy: zodOpenapi.z.string().nullable(),
|
|
282
|
+
companyObjects: zodOpenapi.z.string().nullable(),
|
|
283
|
+
annualTurnover: zodOpenapi.z.number().nullable(),
|
|
284
|
+
numberOfEmployees: zodOpenapi.z.number().nullable(),
|
|
285
|
+
prosecuted: zodOpenapi.z.string().nullable(),
|
|
286
|
+
location: zodOpenapi.z.string().nullable(),
|
|
287
|
+
fileNumber: zodOpenapi.z.string().nullable(),
|
|
288
|
+
websiteUrl: zodOpenapi.z.string().nullable(),
|
|
289
|
+
vatPayer: zodOpenapi.z.boolean().nullable(),
|
|
290
|
+
companyObjectsDescription: zodOpenapi.z.string().nullable(),
|
|
291
|
+
turnover3years: zodOpenapi.z.number().nullable(),
|
|
292
|
+
operationCountries: zodOpenapi.z.string().nullable(),
|
|
293
|
+
riskyBusinessTypes: zodOpenapi.z.string().nullable(),
|
|
250
294
|
createdAt: zodOpenapi.z.coerce.date().nullable(),
|
|
251
295
|
updatedAt: zodOpenapi.z.coerce.date().nullable()
|
|
252
296
|
});
|
|
253
297
|
const createOrganizationInputSchema = zodOpenapi.z.object({
|
|
254
298
|
partyId: zodOpenapi.z.uuid().optional(),
|
|
255
|
-
internalId: zodOpenapi.z.string().optional()
|
|
299
|
+
internalId: zodOpenapi.z.string().optional(),
|
|
256
300
|
businessName: zodOpenapi.z.string(),
|
|
257
|
-
email: zodOpenapi.z.string().
|
|
258
|
-
phone: zodOpenapi.z.string().
|
|
301
|
+
email: zodOpenapi.z.string().optional(),
|
|
302
|
+
phone: zodOpenapi.z.string().optional(),
|
|
259
303
|
registeredNumber: zodOpenapi.z.string(),
|
|
260
304
|
registeredIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2),
|
|
261
305
|
operatesIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2),
|
|
@@ -266,20 +310,43 @@ const createOrganizationInputSchema = zodOpenapi.z.object({
|
|
|
266
310
|
companyObjects: zodOpenapi.z.string(),
|
|
267
311
|
annualTurnover: zodOpenapi.z.number(),
|
|
268
312
|
numberOfEmployees: zodOpenapi.z.number(),
|
|
269
|
-
prosecuted: zodOpenapi.z.string().
|
|
270
|
-
location: zodOpenapi.z.string().
|
|
271
|
-
fileNumber: zodOpenapi.z.string().
|
|
272
|
-
websiteUrl: zodOpenapi.z.string().
|
|
313
|
+
prosecuted: zodOpenapi.z.string().optional(),
|
|
314
|
+
location: zodOpenapi.z.string().optional(),
|
|
315
|
+
fileNumber: zodOpenapi.z.string().optional(),
|
|
316
|
+
websiteUrl: zodOpenapi.z.string().optional(),
|
|
273
317
|
vatPayer: zodOpenapi.z.boolean(),
|
|
274
318
|
message: zodOpenapi.z.string(),
|
|
275
319
|
companyObjectsDescription: zodOpenapi.z.string(),
|
|
276
320
|
turnover3years: zodOpenapi.z.number(),
|
|
277
321
|
operationCountries: zodOpenapi.z.string(),
|
|
278
|
-
riskyBusinessTypes: zodOpenapi.z.string().optional()
|
|
322
|
+
riskyBusinessTypes: zodOpenapi.z.string().optional()
|
|
279
323
|
});
|
|
280
|
-
const createOrganizationOutputSchema =
|
|
324
|
+
const createOrganizationOutputSchema = zodOpenapi.z.object({
|
|
281
325
|
partyId: zodOpenapi.z.uuid().nullable(),
|
|
282
|
-
|
|
326
|
+
internalId: zodOpenapi.z.string().nullable(),
|
|
327
|
+
businessName: zodOpenapi.z.string().nullable(),
|
|
328
|
+
email: zodOpenapi.z.string().nullable(),
|
|
329
|
+
phone: zodOpenapi.z.string().nullable(),
|
|
330
|
+
registeredNumber: zodOpenapi.z.string().nullable(),
|
|
331
|
+
registeredIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
332
|
+
operatesIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
333
|
+
presentIn: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
334
|
+
monthlyVolumeIn: zodOpenapi.z.number().nullable(),
|
|
335
|
+
monthlyVolumeOut: zodOpenapi.z.number().nullable(),
|
|
336
|
+
ownedBy: zodOpenapi.z.string().nullable(),
|
|
337
|
+
companyObjects: zodOpenapi.z.string().nullable(),
|
|
338
|
+
annualTurnover: zodOpenapi.z.number().nullable(),
|
|
339
|
+
numberOfEmployees: zodOpenapi.z.number().nullable(),
|
|
340
|
+
prosecuted: zodOpenapi.z.string().nullable(),
|
|
341
|
+
location: zodOpenapi.z.string().nullable(),
|
|
342
|
+
fileNumber: zodOpenapi.z.string().nullable(),
|
|
343
|
+
websiteUrl: zodOpenapi.z.string().nullable(),
|
|
344
|
+
vatPayer: zodOpenapi.z.boolean().nullable(),
|
|
345
|
+
message: zodOpenapi.z.string().nullable(),
|
|
346
|
+
companyObjectsDescription: zodOpenapi.z.string().nullable(),
|
|
347
|
+
turnover3years: zodOpenapi.z.number().nullable(),
|
|
348
|
+
operationCountries: zodOpenapi.z.string().nullable(),
|
|
349
|
+
riskyBusinessTypes: zodOpenapi.z.string().nullable()
|
|
283
350
|
});
|
|
284
351
|
|
|
285
352
|
const disponentSchema = zodOpenapi.z.discriminatedUnion("partyType", [
|
|
@@ -305,11 +372,11 @@ const disponentUpdateSchema = zodOpenapi.z.discriminatedUnion("partyType", [
|
|
|
305
372
|
const disponentOutputSchema = zodOpenapi.z.discriminatedUnion("partyType", [
|
|
306
373
|
zodOpenapi.z.object({
|
|
307
374
|
partyType: zodOpenapi.z.literal("INDIVIDUAL"),
|
|
308
|
-
data: individualOutputSchema.
|
|
375
|
+
data: individualOutputSchema.nullable()
|
|
309
376
|
}),
|
|
310
377
|
zodOpenapi.z.object({
|
|
311
378
|
partyType: zodOpenapi.z.literal("ORGANIZATION"),
|
|
312
|
-
data: createOrganizationOutputSchema.
|
|
379
|
+
data: createOrganizationOutputSchema.nullable()
|
|
313
380
|
})
|
|
314
381
|
]);
|
|
315
382
|
|
|
@@ -7902,123 +7969,6 @@ function requireEsprima () {
|
|
|
7902
7969
|
return esprima$1.exports;
|
|
7903
7970
|
}
|
|
7904
7971
|
|
|
7905
|
-
var util = {};
|
|
7906
|
-
|
|
7907
|
-
var hasRequiredUtil;
|
|
7908
|
-
|
|
7909
|
-
function requireUtil () {
|
|
7910
|
-
if (hasRequiredUtil) return util;
|
|
7911
|
-
hasRequiredUtil = 1;
|
|
7912
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
7913
|
-
//
|
|
7914
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
7915
|
-
// copy of this software and associated documentation files (the
|
|
7916
|
-
// "Software"), to deal in the Software without restriction, including
|
|
7917
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
7918
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
7919
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
7920
|
-
// following conditions:
|
|
7921
|
-
//
|
|
7922
|
-
// The above copyright notice and this permission notice shall be included
|
|
7923
|
-
// in all copies or substantial portions of the Software.
|
|
7924
|
-
//
|
|
7925
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
7926
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
7927
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
7928
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
7929
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
7930
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
7931
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
7932
|
-
|
|
7933
|
-
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
7934
|
-
// because it is fragile and can be easily faked with `Object.create()`.
|
|
7935
|
-
|
|
7936
|
-
function isArray(arg) {
|
|
7937
|
-
if (Array.isArray) {
|
|
7938
|
-
return Array.isArray(arg);
|
|
7939
|
-
}
|
|
7940
|
-
return objectToString(arg) === '[object Array]';
|
|
7941
|
-
}
|
|
7942
|
-
util.isArray = isArray;
|
|
7943
|
-
|
|
7944
|
-
function isBoolean(arg) {
|
|
7945
|
-
return typeof arg === 'boolean';
|
|
7946
|
-
}
|
|
7947
|
-
util.isBoolean = isBoolean;
|
|
7948
|
-
|
|
7949
|
-
function isNull(arg) {
|
|
7950
|
-
return arg === null;
|
|
7951
|
-
}
|
|
7952
|
-
util.isNull = isNull;
|
|
7953
|
-
|
|
7954
|
-
function isNullOrUndefined(arg) {
|
|
7955
|
-
return arg == null;
|
|
7956
|
-
}
|
|
7957
|
-
util.isNullOrUndefined = isNullOrUndefined;
|
|
7958
|
-
|
|
7959
|
-
function isNumber(arg) {
|
|
7960
|
-
return typeof arg === 'number';
|
|
7961
|
-
}
|
|
7962
|
-
util.isNumber = isNumber;
|
|
7963
|
-
|
|
7964
|
-
function isString(arg) {
|
|
7965
|
-
return typeof arg === 'string';
|
|
7966
|
-
}
|
|
7967
|
-
util.isString = isString;
|
|
7968
|
-
|
|
7969
|
-
function isSymbol(arg) {
|
|
7970
|
-
return typeof arg === 'symbol';
|
|
7971
|
-
}
|
|
7972
|
-
util.isSymbol = isSymbol;
|
|
7973
|
-
|
|
7974
|
-
function isUndefined(arg) {
|
|
7975
|
-
return arg === void 0;
|
|
7976
|
-
}
|
|
7977
|
-
util.isUndefined = isUndefined;
|
|
7978
|
-
|
|
7979
|
-
function isRegExp(re) {
|
|
7980
|
-
return objectToString(re) === '[object RegExp]';
|
|
7981
|
-
}
|
|
7982
|
-
util.isRegExp = isRegExp;
|
|
7983
|
-
|
|
7984
|
-
function isObject(arg) {
|
|
7985
|
-
return typeof arg === 'object' && arg !== null;
|
|
7986
|
-
}
|
|
7987
|
-
util.isObject = isObject;
|
|
7988
|
-
|
|
7989
|
-
function isDate(d) {
|
|
7990
|
-
return objectToString(d) === '[object Date]';
|
|
7991
|
-
}
|
|
7992
|
-
util.isDate = isDate;
|
|
7993
|
-
|
|
7994
|
-
function isError(e) {
|
|
7995
|
-
return (objectToString(e) === '[object Error]' || e instanceof Error);
|
|
7996
|
-
}
|
|
7997
|
-
util.isError = isError;
|
|
7998
|
-
|
|
7999
|
-
function isFunction(arg) {
|
|
8000
|
-
return typeof arg === 'function';
|
|
8001
|
-
}
|
|
8002
|
-
util.isFunction = isFunction;
|
|
8003
|
-
|
|
8004
|
-
function isPrimitive(arg) {
|
|
8005
|
-
return arg === null ||
|
|
8006
|
-
typeof arg === 'boolean' ||
|
|
8007
|
-
typeof arg === 'number' ||
|
|
8008
|
-
typeof arg === 'string' ||
|
|
8009
|
-
typeof arg === 'symbol' || // ES6 symbol
|
|
8010
|
-
typeof arg === 'undefined';
|
|
8011
|
-
}
|
|
8012
|
-
util.isPrimitive = isPrimitive;
|
|
8013
|
-
|
|
8014
|
-
util.isBuffer = require$$0__default.Buffer.isBuffer;
|
|
8015
|
-
|
|
8016
|
-
function objectToString(o) {
|
|
8017
|
-
return Object.prototype.toString.call(o);
|
|
8018
|
-
}
|
|
8019
|
-
return util;
|
|
8020
|
-
}
|
|
8021
|
-
|
|
8022
7972
|
/**
|
|
8023
7973
|
* Default minimum size of a run.
|
|
8024
7974
|
*/
|
|
@@ -9115,14 +9065,6 @@ var hasRequiredCommon;
|
|
|
9115
9065
|
function requireCommon () {
|
|
9116
9066
|
if (hasRequiredCommon) return common;
|
|
9117
9067
|
hasRequiredCommon = 1;
|
|
9118
|
-
const {
|
|
9119
|
-
isObject,
|
|
9120
|
-
isArray,
|
|
9121
|
-
isString,
|
|
9122
|
-
isNumber,
|
|
9123
|
-
isFunction
|
|
9124
|
-
} = requireUtil();
|
|
9125
|
-
|
|
9126
9068
|
const PREFIX_BEFORE = 'before';
|
|
9127
9069
|
const PREFIX_AFTER_PROP = 'after-prop';
|
|
9128
9070
|
const PREFIX_AFTER_COLON = 'after-colon';
|
|
@@ -9160,6 +9102,57 @@ function requireCommon () {
|
|
|
9160
9102
|
const COLON = ':';
|
|
9161
9103
|
const UNDEFINED = undefined;
|
|
9162
9104
|
|
|
9105
|
+
const LINE_BREAKS_BEFORE = new WeakMap();
|
|
9106
|
+
const LINE_BREAKS_AFTER = new WeakMap();
|
|
9107
|
+
const RAW_STRING_LITERALS = new WeakMap();
|
|
9108
|
+
|
|
9109
|
+
const is_string = subject => typeof subject === 'string';
|
|
9110
|
+
const is_number = subject => typeof subject === 'number';
|
|
9111
|
+
/**
|
|
9112
|
+
* @param {unknown} v
|
|
9113
|
+
* @returns {v is NonNullable<object>}
|
|
9114
|
+
*/
|
|
9115
|
+
const is_object = v => typeof v === 'object' && v !== null;
|
|
9116
|
+
|
|
9117
|
+
const normalize_key = key => is_string(key) || is_number(key)
|
|
9118
|
+
? String(key)
|
|
9119
|
+
: null;
|
|
9120
|
+
|
|
9121
|
+
const set_raw_string_literal = (host, key, raw) => {
|
|
9122
|
+
if (!is_object(host) || !is_string(raw)) {
|
|
9123
|
+
return
|
|
9124
|
+
}
|
|
9125
|
+
|
|
9126
|
+
const normalized = normalize_key(key);
|
|
9127
|
+
if (normalized === null) {
|
|
9128
|
+
return
|
|
9129
|
+
}
|
|
9130
|
+
|
|
9131
|
+
let map = RAW_STRING_LITERALS.get(host);
|
|
9132
|
+
if (!map) {
|
|
9133
|
+
map = new Map();
|
|
9134
|
+
RAW_STRING_LITERALS.set(host, map);
|
|
9135
|
+
}
|
|
9136
|
+
|
|
9137
|
+
map.set(normalized, raw);
|
|
9138
|
+
};
|
|
9139
|
+
|
|
9140
|
+
const get_raw_string_literal = (host, key) => {
|
|
9141
|
+
if (!is_object(host)) {
|
|
9142
|
+
return
|
|
9143
|
+
}
|
|
9144
|
+
|
|
9145
|
+
const normalized = normalize_key(key);
|
|
9146
|
+
if (normalized === null) {
|
|
9147
|
+
return
|
|
9148
|
+
}
|
|
9149
|
+
|
|
9150
|
+
const map = RAW_STRING_LITERALS.get(host);
|
|
9151
|
+
return map
|
|
9152
|
+
? map.get(normalized)
|
|
9153
|
+
: undefined
|
|
9154
|
+
};
|
|
9155
|
+
|
|
9163
9156
|
const symbol = (prefix, key) => Symbol.for(prefix + COLON + key);
|
|
9164
9157
|
const symbol_checked = (prefix, key) => {
|
|
9165
9158
|
if (key) {
|
|
@@ -9247,7 +9240,7 @@ function requireCommon () {
|
|
|
9247
9240
|
// Assign keys and comments
|
|
9248
9241
|
const assign = (target, source, keys) => {
|
|
9249
9242
|
keys.forEach(key => {
|
|
9250
|
-
if (
|
|
9243
|
+
if (typeof key !== 'string' && typeof key !== 'number') {
|
|
9251
9244
|
return
|
|
9252
9245
|
}
|
|
9253
9246
|
|
|
@@ -9262,13 +9255,26 @@ function requireCommon () {
|
|
|
9262
9255
|
return target
|
|
9263
9256
|
};
|
|
9264
9257
|
|
|
9265
|
-
const is_raw_json =
|
|
9258
|
+
const is_raw_json = typeof JSON.isRawJSON === 'function'
|
|
9266
9259
|
// For backward compatibility,
|
|
9267
9260
|
// since JSON.isRawJSON is not supported in node < 21
|
|
9268
9261
|
? JSON.isRawJSON
|
|
9269
9262
|
// istanbul ignore next
|
|
9270
9263
|
: () => false;
|
|
9271
9264
|
|
|
9265
|
+
const set_comment_line_breaks = (comment, before, after) => {
|
|
9266
|
+
if (is_number(before) && before >= 0) {
|
|
9267
|
+
LINE_BREAKS_BEFORE.set(comment, before);
|
|
9268
|
+
}
|
|
9269
|
+
|
|
9270
|
+
if (is_number(after) && after >= 0) {
|
|
9271
|
+
LINE_BREAKS_AFTER.set(comment, after);
|
|
9272
|
+
}
|
|
9273
|
+
};
|
|
9274
|
+
|
|
9275
|
+
const get_comment_line_breaks_before = comment => LINE_BREAKS_BEFORE.get(comment);
|
|
9276
|
+
const get_comment_line_breaks_after = comment => LINE_BREAKS_AFTER.get(comment);
|
|
9277
|
+
|
|
9272
9278
|
common = {
|
|
9273
9279
|
PROP_SYMBOL_PREFIXES,
|
|
9274
9280
|
|
|
@@ -9299,7 +9305,16 @@ function requireCommon () {
|
|
|
9299
9305
|
swap_comments,
|
|
9300
9306
|
assign_non_prop_comments,
|
|
9301
9307
|
|
|
9308
|
+
is_string,
|
|
9309
|
+
is_number,
|
|
9310
|
+
is_object,
|
|
9311
|
+
|
|
9302
9312
|
is_raw_json,
|
|
9313
|
+
set_raw_string_literal,
|
|
9314
|
+
get_raw_string_literal,
|
|
9315
|
+
set_comment_line_breaks,
|
|
9316
|
+
get_comment_line_breaks_before,
|
|
9317
|
+
get_comment_line_breaks_after,
|
|
9303
9318
|
|
|
9304
9319
|
/**
|
|
9305
9320
|
* Assign properties and comments from source to target object.
|
|
@@ -9330,11 +9345,11 @@ function requireCommon () {
|
|
|
9330
9345
|
* assign(target, source, [])
|
|
9331
9346
|
*/
|
|
9332
9347
|
assign (target, source, keys) {
|
|
9333
|
-
if (!
|
|
9348
|
+
if (!is_object(target)) {
|
|
9334
9349
|
throw new TypeError('Cannot convert undefined or null to object')
|
|
9335
9350
|
}
|
|
9336
9351
|
|
|
9337
|
-
if (!
|
|
9352
|
+
if (!is_object(source)) {
|
|
9338
9353
|
return target
|
|
9339
9354
|
}
|
|
9340
9355
|
|
|
@@ -9347,7 +9362,7 @@ function requireCommon () {
|
|
|
9347
9362
|
// We assign non-property comments
|
|
9348
9363
|
// if argument `keys` is not specified
|
|
9349
9364
|
assign_non_prop_comments(target, source);
|
|
9350
|
-
} else if (!isArray(keys)) {
|
|
9365
|
+
} else if (!Array.isArray(keys)) {
|
|
9351
9366
|
throw new TypeError('keys must be array or undefined')
|
|
9352
9367
|
} else if (keys.length === 0) {
|
|
9353
9368
|
// Copy all non-property comments from source to target
|
|
@@ -9405,7 +9420,7 @@ function requireCommon () {
|
|
|
9405
9420
|
where: to_where,
|
|
9406
9421
|
key: to_key
|
|
9407
9422
|
}, override = false) {
|
|
9408
|
-
if (!
|
|
9423
|
+
if (!is_object(source)) {
|
|
9409
9424
|
throw new TypeError('source must be an object')
|
|
9410
9425
|
}
|
|
9411
9426
|
|
|
@@ -9413,7 +9428,7 @@ function requireCommon () {
|
|
|
9413
9428
|
target = source;
|
|
9414
9429
|
}
|
|
9415
9430
|
|
|
9416
|
-
if (!
|
|
9431
|
+
if (!is_object(target)) {
|
|
9417
9432
|
// No target to move to
|
|
9418
9433
|
return
|
|
9419
9434
|
}
|
|
@@ -9468,7 +9483,7 @@ function requireCommon () {
|
|
|
9468
9483
|
where,
|
|
9469
9484
|
key
|
|
9470
9485
|
}) {
|
|
9471
|
-
if (!
|
|
9486
|
+
if (!is_object(target)) {
|
|
9472
9487
|
throw new TypeError('target must be an object')
|
|
9473
9488
|
}
|
|
9474
9489
|
|
|
@@ -9489,7 +9504,6 @@ var hasRequiredArray;
|
|
|
9489
9504
|
function requireArray () {
|
|
9490
9505
|
if (hasRequiredArray) return array;
|
|
9491
9506
|
hasRequiredArray = 1;
|
|
9492
|
-
const {isArray} = requireUtil();
|
|
9493
9507
|
const {sort} = requireSrc$1();
|
|
9494
9508
|
|
|
9495
9509
|
const {
|
|
@@ -9739,7 +9753,7 @@ function requireArray () {
|
|
|
9739
9753
|
|
|
9740
9754
|
items.forEach(item => {
|
|
9741
9755
|
const prev = length;
|
|
9742
|
-
length += isArray(item)
|
|
9756
|
+
length += Array.isArray(item)
|
|
9743
9757
|
? item.length
|
|
9744
9758
|
: 1;
|
|
9745
9759
|
|
|
@@ -9847,7 +9861,10 @@ function requireParse () {
|
|
|
9847
9861
|
|
|
9848
9862
|
UNDEFINED,
|
|
9849
9863
|
|
|
9864
|
+
is_object,
|
|
9850
9865
|
define,
|
|
9866
|
+
set_raw_string_literal,
|
|
9867
|
+
set_comment_line_breaks,
|
|
9851
9868
|
assign_non_prop_comments
|
|
9852
9869
|
} = requireCommon();
|
|
9853
9870
|
|
|
@@ -10037,17 +10054,41 @@ function requireParse () {
|
|
|
10037
10054
|
inline
|
|
10038
10055
|
};
|
|
10039
10056
|
|
|
10057
|
+
const previous_line = last
|
|
10058
|
+
? last.loc.end.line
|
|
10059
|
+
: 1;
|
|
10060
|
+
|
|
10061
|
+
set_comment_line_breaks(
|
|
10062
|
+
comment,
|
|
10063
|
+
Math.max(0, comment.loc.start.line - previous_line)
|
|
10064
|
+
);
|
|
10065
|
+
|
|
10040
10066
|
// delete comment.loc
|
|
10041
10067
|
comments.push(comment);
|
|
10042
10068
|
|
|
10043
10069
|
next();
|
|
10044
10070
|
}
|
|
10045
10071
|
|
|
10072
|
+
const {length} = comments;
|
|
10073
|
+
|
|
10074
|
+
if (length) {
|
|
10075
|
+
const comment = comments[length - 1];
|
|
10076
|
+
const current_line = current
|
|
10077
|
+
? current.loc.start.line
|
|
10078
|
+
: comment.loc.end.line;
|
|
10079
|
+
|
|
10080
|
+
set_comment_line_breaks(
|
|
10081
|
+
comment,
|
|
10082
|
+
undefined,
|
|
10083
|
+
Math.max(0, current_line - comment.loc.end.line)
|
|
10084
|
+
);
|
|
10085
|
+
}
|
|
10086
|
+
|
|
10046
10087
|
if (remove_comments) {
|
|
10047
10088
|
return
|
|
10048
10089
|
}
|
|
10049
10090
|
|
|
10050
|
-
if (!
|
|
10091
|
+
if (!length) {
|
|
10051
10092
|
return
|
|
10052
10093
|
}
|
|
10053
10094
|
|
|
@@ -10226,6 +10267,8 @@ function requireParse () {
|
|
|
10226
10267
|
|
|
10227
10268
|
switch (tt) {
|
|
10228
10269
|
case 'String':
|
|
10270
|
+
set_raw_string_literal(comments_host, last_prop, current.value);
|
|
10271
|
+
// falls through
|
|
10229
10272
|
case 'Boolean':
|
|
10230
10273
|
case 'Null':
|
|
10231
10274
|
case 'Numeric':
|
|
@@ -10245,8 +10288,6 @@ function requireParse () {
|
|
|
10245
10288
|
}
|
|
10246
10289
|
}
|
|
10247
10290
|
|
|
10248
|
-
const isObject = subject => Object(subject) === subject;
|
|
10249
|
-
|
|
10250
10291
|
/**
|
|
10251
10292
|
* Converts a JavaScript Object Notation (JSON) string with comments into an
|
|
10252
10293
|
* object.
|
|
@@ -10310,7 +10351,7 @@ function requireParse () {
|
|
|
10310
10351
|
// We should run reviver before the checks below,
|
|
10311
10352
|
// otherwise the comment info will be lost
|
|
10312
10353
|
if (!no_comments && result !== null) {
|
|
10313
|
-
if (!
|
|
10354
|
+
if (!is_object(result)) {
|
|
10314
10355
|
// 1 -> new Number(1)
|
|
10315
10356
|
// true -> new Boolean(1)
|
|
10316
10357
|
// "foo" -> new String("foo")
|
|
@@ -10342,10 +10383,6 @@ var hasRequiredStringify;
|
|
|
10342
10383
|
function requireStringify () {
|
|
10343
10384
|
if (hasRequiredStringify) return stringify_1;
|
|
10344
10385
|
hasRequiredStringify = 1;
|
|
10345
|
-
const {
|
|
10346
|
-
isArray, isObject, isFunction, isNumber, isString
|
|
10347
|
-
} = requireUtil();
|
|
10348
|
-
|
|
10349
10386
|
const {
|
|
10350
10387
|
PREFIX_BEFORE_ALL,
|
|
10351
10388
|
PREFIX_BEFORE,
|
|
@@ -10365,12 +10402,17 @@ function requireStringify () {
|
|
|
10365
10402
|
|
|
10366
10403
|
UNDEFINED,
|
|
10367
10404
|
|
|
10405
|
+
is_string,
|
|
10406
|
+
is_number,
|
|
10407
|
+
is_object,
|
|
10408
|
+
|
|
10409
|
+
get_raw_string_literal,
|
|
10410
|
+
get_comment_line_breaks_before,
|
|
10411
|
+
get_comment_line_breaks_after,
|
|
10412
|
+
|
|
10368
10413
|
is_raw_json
|
|
10369
10414
|
} = requireCommon();
|
|
10370
10415
|
|
|
10371
|
-
// eslint-disable-next-line no-control-regex, no-misleading-character-class
|
|
10372
|
-
const ESCAPABLE = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
|
|
10373
|
-
|
|
10374
10416
|
// String constants
|
|
10375
10417
|
const SPACE = ' ';
|
|
10376
10418
|
const LF = '\n';
|
|
@@ -10383,39 +10425,54 @@ function requireStringify () {
|
|
|
10383
10425
|
const AFTER_VALUE = prop => `${PREFIX_AFTER_VALUE}:${prop}`;
|
|
10384
10426
|
const AFTER = prop => `${PREFIX_AFTER}:${prop}`;
|
|
10385
10427
|
|
|
10386
|
-
|
|
10387
|
-
const
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
10428
|
+
const quote = JSON.stringify;
|
|
10429
|
+
const comment_stringify = (value, line) => line
|
|
10430
|
+
? `//${value}`
|
|
10431
|
+
: `/*${value}*/`;
|
|
10432
|
+
const repeat_line_breaks = (line_breaks, gap) => (LF + gap).repeat(line_breaks);
|
|
10433
|
+
const read_line_breaks = line_breaks => is_number(line_breaks) && line_breaks >= 0
|
|
10434
|
+
? line_breaks
|
|
10435
|
+
: null;
|
|
10436
|
+
const read_line_breaks_from_loc = (previous_comment, comment) => {
|
|
10437
|
+
if (
|
|
10438
|
+
!previous_comment
|
|
10439
|
+
|| !previous_comment.loc
|
|
10440
|
+
|| !comment.loc
|
|
10441
|
+
) {
|
|
10442
|
+
return null
|
|
10443
|
+
}
|
|
10396
10444
|
|
|
10397
|
-
|
|
10398
|
-
|
|
10445
|
+
const {end} = previous_comment.loc;
|
|
10446
|
+
const {start} = comment.loc;
|
|
10399
10447
|
|
|
10400
|
-
if (
|
|
10401
|
-
|
|
10448
|
+
if (
|
|
10449
|
+
!end
|
|
10450
|
+
|| !start
|
|
10451
|
+
|| !is_number(end.line)
|
|
10452
|
+
|| !is_number(start.line)
|
|
10453
|
+
) {
|
|
10454
|
+
return null
|
|
10402
10455
|
}
|
|
10403
10456
|
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
})
|
|
10457
|
+
const line_breaks = start.line - end.line;
|
|
10458
|
+
|
|
10459
|
+
return line_breaks >= 0
|
|
10460
|
+
? line_breaks
|
|
10461
|
+
: null
|
|
10410
10462
|
};
|
|
10463
|
+
const count_trailing_line_breaks = (str, gap) => {
|
|
10464
|
+
const unit = LF + gap;
|
|
10465
|
+
const {length} = unit;
|
|
10466
|
+
let i = str.length;
|
|
10467
|
+
let count = 0;
|
|
10468
|
+
|
|
10469
|
+
while (i >= length && str.slice(i - length, i) === unit) {
|
|
10470
|
+
i -= length;
|
|
10471
|
+
count ++;
|
|
10472
|
+
}
|
|
10411
10473
|
|
|
10412
|
-
|
|
10413
|
-
|
|
10414
|
-
// then we can safely slap some quotes around it.
|
|
10415
|
-
const quote = string => `"${escape(string)}"`;
|
|
10416
|
-
const comment_stringify = (value, line) => line
|
|
10417
|
-
? `//${value}`
|
|
10418
|
-
: `/*${value}*/`;
|
|
10474
|
+
return count
|
|
10475
|
+
};
|
|
10419
10476
|
|
|
10420
10477
|
// display_block `boolean` whether the
|
|
10421
10478
|
// WHOLE block of comments is always a block group
|
|
@@ -10425,27 +10482,58 @@ function requireStringify () {
|
|
|
10425
10482
|
return EMPTY
|
|
10426
10483
|
}
|
|
10427
10484
|
|
|
10428
|
-
let
|
|
10485
|
+
let str = EMPTY;
|
|
10486
|
+
let last_comment = null;
|
|
10429
10487
|
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
? SPACE
|
|
10437
|
-
: LF + deeper_gap;
|
|
10488
|
+
comments.forEach((comment, i) => {
|
|
10489
|
+
const {
|
|
10490
|
+
inline,
|
|
10491
|
+
type,
|
|
10492
|
+
value
|
|
10493
|
+
} = comment;
|
|
10438
10494
|
|
|
10439
|
-
|
|
10495
|
+
let line_breaks_before = read_line_breaks(
|
|
10496
|
+
get_comment_line_breaks_before(comment)
|
|
10497
|
+
);
|
|
10440
10498
|
|
|
10441
|
-
|
|
10442
|
-
|
|
10499
|
+
if (line_breaks_before === null) {
|
|
10500
|
+
line_breaks_before = read_line_breaks_from_loc(last_comment, comment);
|
|
10501
|
+
}
|
|
10443
10502
|
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10503
|
+
if (line_breaks_before === null) {
|
|
10504
|
+
line_breaks_before = inline
|
|
10505
|
+
? 0
|
|
10506
|
+
: 1;
|
|
10507
|
+
}
|
|
10508
|
+
|
|
10509
|
+
const delimiter = line_breaks_before > 0
|
|
10510
|
+
? repeat_line_breaks(line_breaks_before, deeper_gap)
|
|
10511
|
+
: inline
|
|
10512
|
+
? SPACE
|
|
10513
|
+
// The first comment at the very beginning of the source.
|
|
10514
|
+
: i === 0
|
|
10515
|
+
? EMPTY
|
|
10516
|
+
: LF + deeper_gap;
|
|
10517
|
+
|
|
10518
|
+
const is_line_comment = type === 'LineComment';
|
|
10519
|
+
|
|
10520
|
+
str += delimiter + comment_stringify(value, is_line_comment);
|
|
10521
|
+
|
|
10522
|
+
last_comment = comment;
|
|
10523
|
+
});
|
|
10524
|
+
|
|
10525
|
+
const default_line_breaks_after = display_block
|
|
10526
|
+
// line comment should always end with a LF
|
|
10527
|
+
|| last_comment.type === 'LineComment'
|
|
10528
|
+
? 1
|
|
10529
|
+
: 0;
|
|
10530
|
+
|
|
10531
|
+
const line_breaks_after = Math.max(
|
|
10532
|
+
default_line_breaks_after,
|
|
10533
|
+
read_line_breaks(get_comment_line_breaks_after(last_comment)) || 0
|
|
10534
|
+
);
|
|
10535
|
+
|
|
10536
|
+
return str + repeat_line_breaks(line_breaks_after, deeper_gap)
|
|
10449
10537
|
};
|
|
10450
10538
|
|
|
10451
10539
|
let replacer = null;
|
|
@@ -10464,9 +10552,15 @@ function requireStringify () {
|
|
|
10464
10552
|
// and make a mistake.
|
|
10465
10553
|
// SO, we are not to only trimRight but trim for both sides
|
|
10466
10554
|
? one + two.trim() + LF + gap
|
|
10467
|
-
: one.trimRight() +
|
|
10555
|
+
: one.trimRight() + repeat_line_breaks(
|
|
10556
|
+
Math.max(1, count_trailing_line_breaks(one, gap)),
|
|
10557
|
+
gap
|
|
10558
|
+
)
|
|
10468
10559
|
: two
|
|
10469
|
-
? two.trimRight() +
|
|
10560
|
+
? two.trimRight() + repeat_line_breaks(
|
|
10561
|
+
Math.max(1, count_trailing_line_breaks(two, gap)),
|
|
10562
|
+
gap
|
|
10563
|
+
)
|
|
10470
10564
|
: EMPTY;
|
|
10471
10565
|
|
|
10472
10566
|
const join_content = (inside, value, gap) => {
|
|
@@ -10475,6 +10569,21 @@ function requireStringify () {
|
|
|
10475
10569
|
return join(comment, inside, gap)
|
|
10476
10570
|
};
|
|
10477
10571
|
|
|
10572
|
+
const stringify_string = (holder, key, value) => {
|
|
10573
|
+
const raw = get_raw_string_literal(holder, key);
|
|
10574
|
+
if (is_string(raw)) {
|
|
10575
|
+
try {
|
|
10576
|
+
if (JSON.parse(raw) === value) {
|
|
10577
|
+
return raw
|
|
10578
|
+
}
|
|
10579
|
+
} catch (e) {
|
|
10580
|
+
// ignore invalid raw string literals and fallback to native behavior
|
|
10581
|
+
}
|
|
10582
|
+
}
|
|
10583
|
+
|
|
10584
|
+
return quote(value)
|
|
10585
|
+
};
|
|
10586
|
+
|
|
10478
10587
|
// | deeper_gap |
|
|
10479
10588
|
// | gap | indent |
|
|
10480
10589
|
// [
|
|
@@ -10544,7 +10653,7 @@ function requireStringify () {
|
|
|
10544
10653
|
let after_comma = EMPTY;
|
|
10545
10654
|
let first = true;
|
|
10546
10655
|
|
|
10547
|
-
const keys = isArray(replacer)
|
|
10656
|
+
const keys = Array.isArray(replacer)
|
|
10548
10657
|
? replacer
|
|
10549
10658
|
: Object.keys(value);
|
|
10550
10659
|
|
|
@@ -10609,19 +10718,19 @@ function requireStringify () {
|
|
|
10609
10718
|
let value = holder[key];
|
|
10610
10719
|
|
|
10611
10720
|
// If the value has a toJSON method, call it to obtain a replacement value.
|
|
10612
|
-
if (
|
|
10721
|
+
if (is_object(value) && typeof value.toJSON === 'function') {
|
|
10613
10722
|
value = value.toJSON(key);
|
|
10614
10723
|
}
|
|
10615
10724
|
|
|
10616
10725
|
// If we were called with a replacer function, then call the replacer to
|
|
10617
10726
|
// obtain a replacement value.
|
|
10618
|
-
if (
|
|
10727
|
+
if (typeof replacer === 'function') {
|
|
10619
10728
|
value = replacer.call(holder, key, value);
|
|
10620
10729
|
}
|
|
10621
10730
|
|
|
10622
10731
|
switch (typeof value) {
|
|
10623
10732
|
case 'string':
|
|
10624
|
-
return
|
|
10733
|
+
return stringify_string(holder, key, value)
|
|
10625
10734
|
|
|
10626
10735
|
case 'number':
|
|
10627
10736
|
// JSON numbers must be finite. Encode non-finite numbers as null.
|
|
@@ -10642,7 +10751,7 @@ function requireStringify () {
|
|
|
10642
10751
|
return value.rawJSON
|
|
10643
10752
|
}
|
|
10644
10753
|
|
|
10645
|
-
return isArray(value)
|
|
10754
|
+
return Array.isArray(value)
|
|
10646
10755
|
? array_stringify(value, gap)
|
|
10647
10756
|
: object_stringify(value, gap)
|
|
10648
10757
|
// JSON.stringify(undefined) === undefined
|
|
@@ -10650,10 +10759,10 @@ function requireStringify () {
|
|
|
10650
10759
|
}
|
|
10651
10760
|
}
|
|
10652
10761
|
|
|
10653
|
-
const get_indent = space =>
|
|
10762
|
+
const get_indent = space => typeof space === 'string'
|
|
10654
10763
|
// If the space parameter is a string, it will be used as the indent string.
|
|
10655
10764
|
? space
|
|
10656
|
-
:
|
|
10765
|
+
: typeof space === 'number'
|
|
10657
10766
|
? SPACE.repeat(space)
|
|
10658
10767
|
: EMPTY;
|
|
10659
10768
|
|
|
@@ -10716,7 +10825,7 @@ function requireStringify () {
|
|
|
10716
10825
|
}
|
|
10717
10826
|
|
|
10718
10827
|
// vanilla `JSON.parse` allow invalid replacer
|
|
10719
|
-
if (
|
|
10828
|
+
if (typeof replacer_ !== 'function' && !Array.isArray(replacer_)) {
|
|
10720
10829
|
replacer_ = null;
|
|
10721
10830
|
}
|
|
10722
10831
|
|
|
@@ -10729,7 +10838,7 @@ function requireStringify () {
|
|
|
10729
10838
|
|
|
10730
10839
|
clean();
|
|
10731
10840
|
|
|
10732
|
-
return
|
|
10841
|
+
return is_object(value)
|
|
10733
10842
|
? process_comments(value, PREFIX_BEFORE_ALL, EMPTY, true).trimLeft()
|
|
10734
10843
|
+ str
|
|
10735
10844
|
+ process_comments(value, PREFIX_AFTER_ALL, EMPTY).trimRight()
|
|
@@ -11810,22 +11919,12 @@ new z__namespace.$ZodObject({
|
|
|
11810
11919
|
const updateBankAccountSchema = zodOpenapi.z.object({
|
|
11811
11920
|
...bankAccountMetadataSchema.shape,
|
|
11812
11921
|
partyId: zodOpenapi.z.uuid(),
|
|
11813
|
-
internalId: zodOpenapi.z.string().optional()
|
|
11922
|
+
internalId: zodOpenapi.z.string().optional(),
|
|
11814
11923
|
holderName: zodOpenapi.z.string(),
|
|
11815
|
-
number: zodOpenapi.z.string().
|
|
11816
|
-
bankCode: bankAccountMetadataSchema.shape.bankCode.nullish(),
|
|
11924
|
+
number: zodOpenapi.z.string().optional(),
|
|
11817
11925
|
currency: bankAccountMetadataSchema.shape.currency.nonoptional(),
|
|
11818
11926
|
countryCode: bankAccountMetadataSchema.shape.countryCode.nonoptional(),
|
|
11819
|
-
id: bankAccountMetadataSchema.shape.id.nonoptional()
|
|
11820
|
-
iban: bankAccountMetadataSchema.shape.iban.nullable().optional(),
|
|
11821
|
-
address: bankAccountMetadataSchema.shape.address.nullable().optional(),
|
|
11822
|
-
swiftBic: bankAccountMetadataSchema.shape.swiftBic.nullable().optional(),
|
|
11823
|
-
bicCor: bankAccountMetadataSchema.shape.bicCor.nullable().optional(),
|
|
11824
|
-
routingNumber: bankAccountMetadataSchema.shape.routingNumber.nullable().optional(),
|
|
11825
|
-
sortCode: bankAccountMetadataSchema.shape.sortCode.nullable().optional(),
|
|
11826
|
-
clabe: bankAccountMetadataSchema.shape.clabe.nullable().optional(),
|
|
11827
|
-
bsb: bankAccountMetadataSchema.shape.bsb.nullable().optional(),
|
|
11828
|
-
brBankNumber: bankAccountMetadataSchema.shape.brBankNumber.nullable().optional()
|
|
11927
|
+
id: bankAccountMetadataSchema.shape.id.nonoptional()
|
|
11829
11928
|
});
|
|
11830
11929
|
const bankAccountInputSchema = updateBankAccountSchema.required({
|
|
11831
11930
|
holderName: true,
|
|
@@ -11833,66 +11932,68 @@ const bankAccountInputSchema = updateBankAccountSchema.required({
|
|
|
11833
11932
|
countryCode: true
|
|
11834
11933
|
}).omit({ id: true, partyId: true });
|
|
11835
11934
|
const bankAccountOutputSchema = zodOpenapi.z.object({
|
|
11836
|
-
|
|
11935
|
+
id: zodOpenapi.z.string(),
|
|
11837
11936
|
partyId: zodOpenapi.z.uuid().nullable(),
|
|
11838
|
-
internalId: zodOpenapi.z.string().
|
|
11937
|
+
internalId: zodOpenapi.z.string().nullable(),
|
|
11839
11938
|
holderName: zodOpenapi.z.string(),
|
|
11840
|
-
number: zodOpenapi.z.string().
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
|
|
11847
|
-
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11939
|
+
number: zodOpenapi.z.string().nullable(),
|
|
11940
|
+
bankCode: zodOpenapi.z.string().nullable(),
|
|
11941
|
+
currency: zodOpenapi.z.string(),
|
|
11942
|
+
countryCode: zodOpenapi.z.string(),
|
|
11943
|
+
iban: zodOpenapi.z.string().nullable(),
|
|
11944
|
+
address: zodOpenapi.z.string().nullable(),
|
|
11945
|
+
swiftBic: zodOpenapi.z.string().nullable(),
|
|
11946
|
+
bicCor: zodOpenapi.z.string().nullable(),
|
|
11947
|
+
routingNumber: zodOpenapi.z.string().nullable(),
|
|
11948
|
+
sortCode: zodOpenapi.z.string().nullable(),
|
|
11949
|
+
clabe: zodOpenapi.z.string().nullable(),
|
|
11950
|
+
bsb: zodOpenapi.z.string().nullable(),
|
|
11951
|
+
brBankNumber: zodOpenapi.z.string().nullable(),
|
|
11952
|
+
updatedAt: zodOpenapi.z.coerce.date().nullable()
|
|
11852
11953
|
});
|
|
11853
11954
|
|
|
11854
11955
|
const createAmlInputSchema = zodOpenapi.z.object({
|
|
11855
|
-
partyId: zodOpenapi.z.uuid().optional()
|
|
11856
|
-
internalId: zodOpenapi.z.string().optional()
|
|
11956
|
+
partyId: zodOpenapi.z.uuid().optional(),
|
|
11957
|
+
internalId: zodOpenapi.z.string().optional(),
|
|
11857
11958
|
sourceOfWealth: zodOpenapi.z.string(),
|
|
11858
11959
|
yearlyIncome: zodOpenapi.z.string(),
|
|
11859
|
-
tradesPurpose: zodOpenapi.z.string().optional()
|
|
11960
|
+
tradesPurpose: zodOpenapi.z.string().optional(),
|
|
11860
11961
|
sourceOfIncome: zodOpenapi.z.string(),
|
|
11861
|
-
transactionType: zodOpenapi.z.string().optional()
|
|
11862
|
-
transactionTypeExpiry: zodOpenapi.z.date().optional()
|
|
11962
|
+
transactionType: zodOpenapi.z.string().optional(),
|
|
11963
|
+
transactionTypeExpiry: zodOpenapi.z.date().optional(),
|
|
11863
11964
|
isDistraint: zodOpenapi.z.boolean().default(false),
|
|
11864
11965
|
estTxsVolumeMonth: zodOpenapi.z.string(),
|
|
11865
11966
|
estTxsVolumeYear: zodOpenapi.z.string(),
|
|
11866
11967
|
tradingCountries: zodOpenapi.z.string(),
|
|
11867
11968
|
tradingSide: zodOpenapi.z.string(),
|
|
11868
11969
|
acceptedAMLTermsAndConditions: zodOpenapi.z.boolean(),
|
|
11869
|
-
signatureMethod: zodOpenapi.z.string().
|
|
11870
|
-
existencePeriod: zodOpenapi.z.string().
|
|
11871
|
-
reputation: zodOpenapi.z.string().
|
|
11872
|
-
riskLevel: zodOpenapi.z.enum(AmlScoreTypeZod).
|
|
11873
|
-
kycStatus: zodOpenapi.z.enum(KycStatusZod).
|
|
11970
|
+
signatureMethod: zodOpenapi.z.string().optional(),
|
|
11971
|
+
existencePeriod: zodOpenapi.z.string().optional(),
|
|
11972
|
+
reputation: zodOpenapi.z.string().optional(),
|
|
11973
|
+
riskLevel: zodOpenapi.z.enum(AmlScoreTypeZod).optional(),
|
|
11974
|
+
kycStatus: zodOpenapi.z.enum(KycStatusZod).optional()
|
|
11874
11975
|
});
|
|
11875
11976
|
const updateAmlInputSchema = zodOpenapi.z.object({
|
|
11876
11977
|
id: zodOpenapi.z.uuid(),
|
|
11877
|
-
partyId: zodOpenapi.z.uuid().optional()
|
|
11878
|
-
internalId: zodOpenapi.z.string().optional()
|
|
11978
|
+
partyId: zodOpenapi.z.uuid().optional(),
|
|
11979
|
+
internalId: zodOpenapi.z.string().optional(),
|
|
11879
11980
|
sourceOfWealth: zodOpenapi.z.string().optional(),
|
|
11880
11981
|
yearlyIncome: zodOpenapi.z.string().optional(),
|
|
11881
|
-
tradesPurpose: zodOpenapi.z.string().optional()
|
|
11982
|
+
tradesPurpose: zodOpenapi.z.string().optional(),
|
|
11882
11983
|
sourceOfIncome: zodOpenapi.z.string().optional(),
|
|
11883
|
-
transactionType: zodOpenapi.z.string().optional()
|
|
11884
|
-
transactionTypeExpiry: zodOpenapi.z.date().optional()
|
|
11984
|
+
transactionType: zodOpenapi.z.string().optional(),
|
|
11985
|
+
transactionTypeExpiry: zodOpenapi.z.date().optional(),
|
|
11885
11986
|
isDistraint: zodOpenapi.z.boolean().optional(),
|
|
11886
11987
|
estTxsVolumeMonth: zodOpenapi.z.string(),
|
|
11887
11988
|
estTxsVolumeYear: zodOpenapi.z.string(),
|
|
11888
11989
|
tradingCountries: zodOpenapi.z.string(),
|
|
11889
11990
|
tradingSide: zodOpenapi.z.string(),
|
|
11890
11991
|
acceptedAMLTermsAndConditions: zodOpenapi.z.boolean(),
|
|
11891
|
-
signatureMethod: zodOpenapi.z.string().
|
|
11892
|
-
existencePeriod: zodOpenapi.z.string().
|
|
11893
|
-
reputation: zodOpenapi.z.string().
|
|
11894
|
-
riskLevel: zodOpenapi.z.enum(AmlScoreTypeZod).
|
|
11895
|
-
kycStatus: zodOpenapi.z.enum(KycStatusZod).
|
|
11992
|
+
signatureMethod: zodOpenapi.z.string().optional(),
|
|
11993
|
+
existencePeriod: zodOpenapi.z.string().optional(),
|
|
11994
|
+
reputation: zodOpenapi.z.string().optional(),
|
|
11995
|
+
riskLevel: zodOpenapi.z.enum(AmlScoreTypeZod).optional(),
|
|
11996
|
+
kycStatus: zodOpenapi.z.enum(KycStatusZod).optional()
|
|
11896
11997
|
});
|
|
11897
11998
|
const createAmlOutputSchema = zodOpenapi.z.object({
|
|
11898
11999
|
id: zodOpenapi.z.uuid(),
|
|
@@ -11921,17 +12022,17 @@ const createAmlOutputSchema = zodOpenapi.z.object({
|
|
|
11921
12022
|
|
|
11922
12023
|
const createAddressInputSchema = zodOpenapi.z.object({
|
|
11923
12024
|
addressType: zodOpenapi.z.enum(AddressTypeZod),
|
|
11924
|
-
internalId: zodOpenapi.z.string().optional()
|
|
12025
|
+
internalId: zodOpenapi.z.string().optional(),
|
|
11925
12026
|
street: zodOpenapi.z.string(),
|
|
11926
|
-
orientationNumber: zodOpenapi.z.string().
|
|
11927
|
-
descriptiveNumber: zodOpenapi.z.string().
|
|
12027
|
+
orientationNumber: zodOpenapi.z.string().optional(),
|
|
12028
|
+
descriptiveNumber: zodOpenapi.z.string().optional(),
|
|
11928
12029
|
municipality: zodOpenapi.z.string().max(255),
|
|
11929
|
-
municipalityPart: zodOpenapi.z.string().
|
|
12030
|
+
municipalityPart: zodOpenapi.z.string().optional(),
|
|
11930
12031
|
zipCode: zodOpenapi.z.string().max(20),
|
|
11931
12032
|
district: zodOpenapi.z.string().max(255),
|
|
11932
12033
|
region: zodOpenapi.z.string().max(255),
|
|
11933
12034
|
countryCode: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2),
|
|
11934
|
-
ruianCode: zodOpenapi.z.string().
|
|
12035
|
+
ruianCode: zodOpenapi.z.string().optional()
|
|
11935
12036
|
});
|
|
11936
12037
|
const createAddressOutputSchema = zodOpenapi.z.object({
|
|
11937
12038
|
id: zodOpenapi.z.uuid(),
|
|
@@ -11955,38 +12056,38 @@ const createAddressOutputSchema = zodOpenapi.z.object({
|
|
|
11955
12056
|
const updateAddressInputSchema = zodOpenapi.z.object({
|
|
11956
12057
|
id: zodOpenapi.z.uuid(),
|
|
11957
12058
|
partyId: zodOpenapi.z.uuid(),
|
|
11958
|
-
internalId: zodOpenapi.z.string().optional()
|
|
12059
|
+
internalId: zodOpenapi.z.string().optional(),
|
|
11959
12060
|
addressType: zodOpenapi.z.enum(AddressTypeZod),
|
|
11960
12061
|
street: zodOpenapi.z.string(),
|
|
11961
|
-
orientationNumber: zodOpenapi.z.string().
|
|
11962
|
-
descriptiveNumber: zodOpenapi.z.string().
|
|
12062
|
+
orientationNumber: zodOpenapi.z.string().optional(),
|
|
12063
|
+
descriptiveNumber: zodOpenapi.z.string().optional(),
|
|
11963
12064
|
municipality: zodOpenapi.z.string().max(255),
|
|
11964
|
-
municipalityPart: zodOpenapi.z.string().
|
|
12065
|
+
municipalityPart: zodOpenapi.z.string().optional(),
|
|
11965
12066
|
zipCode: zodOpenapi.z.string().max(20),
|
|
11966
12067
|
district: zodOpenapi.z.string().max(255),
|
|
11967
12068
|
region: zodOpenapi.z.string().max(255),
|
|
11968
12069
|
countryCode: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2),
|
|
11969
|
-
ruianCode: zodOpenapi.z.string().
|
|
12070
|
+
ruianCode: zodOpenapi.z.string().optional()
|
|
11970
12071
|
});
|
|
11971
12072
|
|
|
11972
12073
|
const partySchema = zodOpenapi.z.object({
|
|
11973
12074
|
partyType: zodOpenapi.z.enum(PartyTypeZod),
|
|
11974
12075
|
language: zodOpenapi.z.enum(generalCodes.LANGUAGE_CODES),
|
|
11975
12076
|
id: zodOpenapi.z.uuid(),
|
|
11976
|
-
internalId: zodOpenapi.z.string().optional()
|
|
11977
|
-
note: zodOpenapi.z.string().
|
|
11978
|
-
countryCode: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).
|
|
12077
|
+
internalId: zodOpenapi.z.string().optional(),
|
|
12078
|
+
note: zodOpenapi.z.string().optional(),
|
|
12079
|
+
countryCode: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).optional()
|
|
11979
12080
|
});
|
|
11980
12081
|
const partyCreateOutputSchema = zodOpenapi.z.object({
|
|
11981
12082
|
customerStatus: zodOpenapi.z.enum(CustomerStatusZod),
|
|
11982
12083
|
partyType: zodOpenapi.z.enum(PartyTypeZod),
|
|
11983
12084
|
language: zodOpenapi.z.enum(generalCodes.LANGUAGE_CODES),
|
|
11984
|
-
id: zodOpenapi.z.uuid().nullable()
|
|
11985
|
-
internalId: zodOpenapi.z.string().
|
|
11986
|
-
note: zodOpenapi.z.string().nullable()
|
|
11987
|
-
countryCode: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable()
|
|
11988
|
-
createdAt: zodOpenapi.z.date().nullable()
|
|
11989
|
-
updatedAt: zodOpenapi.z.date().nullable()
|
|
12085
|
+
id: zodOpenapi.z.uuid().nullable(),
|
|
12086
|
+
internalId: zodOpenapi.z.string().nullable(),
|
|
12087
|
+
note: zodOpenapi.z.string().nullable(),
|
|
12088
|
+
countryCode: zodOpenapi.z.enum(generalCodes.COUNTRY_CODES_2).nullable(),
|
|
12089
|
+
createdAt: zodOpenapi.z.date().nullable(),
|
|
12090
|
+
updatedAt: zodOpenapi.z.date().nullable()
|
|
11990
12091
|
});
|
|
11991
12092
|
partyCreateOutputSchema.partial({
|
|
11992
12093
|
customerStatus: true,
|
|
@@ -12008,8 +12109,8 @@ const partyOutputSchema = zodOpenapi.z.object({
|
|
|
12008
12109
|
id: zodOpenapi.z.uuid(),
|
|
12009
12110
|
isClient: zodOpenapi.z.boolean()
|
|
12010
12111
|
}).nullable(),
|
|
12011
|
-
personalData: individualOutputSchema.
|
|
12012
|
-
organizationData: createOrganizationOutputSchema.
|
|
12112
|
+
personalData: individualOutputSchema.nullable(),
|
|
12113
|
+
organizationData: createOrganizationOutputSchema.nullable(),
|
|
12013
12114
|
bankAccounts: zodOpenapi.z.array(bankAccountOutputSchema).nullable(),
|
|
12014
12115
|
disponents: zodOpenapi.z.array(disponentOutputSchema).nullable(),
|
|
12015
12116
|
addresses: zodOpenapi.z.array(createAddressOutputSchema).nullable(),
|
|
@@ -12025,7 +12126,7 @@ const partyUpdateInputSchema = zodOpenapi.z.object({
|
|
|
12025
12126
|
disponents: zodOpenapi.z.array(disponentUpdateSchema).optional(),
|
|
12026
12127
|
addresses: zodOpenapi.z.array(updateAddressInputSchema),
|
|
12027
12128
|
recipients: zodOpenapi.z.array(updateBankAccountSchema).nullable(),
|
|
12028
|
-
aml: updateAmlInputSchema.
|
|
12129
|
+
aml: updateAmlInputSchema.optional()
|
|
12029
12130
|
});
|
|
12030
12131
|
const updatePartyOuputSchema = zodOpenapi.z.object({
|
|
12031
12132
|
id: zodOpenapi.z.uuid(),
|