@devizovaburza/mdm-sdk 1.2.7 → 1.2.9
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.d.mts +1135 -191
- package/dist/v1/index.d.ts +1135 -191
- package/dist/v1/index.mjs +29 -17
- package/package.json +1 -1
package/dist/v1/index.mjs
CHANGED
|
@@ -455,6 +455,14 @@ const createAddressInputSchema = z.object({
|
|
|
455
455
|
countryCode: z.enum(COUNTRY_CODES, "St\xE1t je povinn\xFD"),
|
|
456
456
|
ruianCode: z.string().optional()
|
|
457
457
|
});
|
|
458
|
+
const ownerAddressInputSchema = createAddressInputSchema.extend({
|
|
459
|
+
addressType: z.enum(ADDRESS_TYPE).default("PERMANENT_ADDRESS"),
|
|
460
|
+
district: z.string().max(255).nullish(),
|
|
461
|
+
region: z.string().max(255).nullish()
|
|
462
|
+
});
|
|
463
|
+
const ownerIndividualInputSchema = individualInsertSchema.extend({
|
|
464
|
+
email: z.email("E-mail je povinn\xFD").optional()
|
|
465
|
+
});
|
|
458
466
|
const businessPartnerInputSchema$1 = z.object({
|
|
459
467
|
name: z.string().min(1, "N\xE1zev partnera je povinn\xFD"),
|
|
460
468
|
country: z.enum(COUNTRY_CODES, "St\xE1t partnera je povinn\xFD"),
|
|
@@ -523,7 +531,7 @@ const createAmlInputSchema = z.object({
|
|
|
523
531
|
personName: z.string(),
|
|
524
532
|
personRole: z.enum(PERSON_ROLE),
|
|
525
533
|
answer: z.enum(YES_NO_UNKNOWN),
|
|
526
|
-
|
|
534
|
+
countries: z.array(z.enum(COUNTRY_CODES))
|
|
527
535
|
})
|
|
528
536
|
).optional()
|
|
529
537
|
});
|
|
@@ -536,19 +544,11 @@ const productsInputSchema$1 = z.object({
|
|
|
536
544
|
}).optional(),
|
|
537
545
|
cbs: z.object({}).optional()
|
|
538
546
|
});
|
|
539
|
-
const ownerInputSchema =
|
|
547
|
+
const ownerInputSchema = ownerIndividualInputSchema.extend({
|
|
540
548
|
titleBefore: z.string().optional(),
|
|
541
|
-
name: z.string().min(1, "Jm\xE9no je povinn\xE9"),
|
|
542
|
-
surname: z.string().min(1, "P\u0159\xEDjmen\xED je povinn\xE9"),
|
|
543
549
|
titleAfter: z.string().optional(),
|
|
544
|
-
email: z.email("E-mail je povinn\xFD"),
|
|
545
|
-
birthDate: z.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
546
|
-
birthPlace: z.string().optional(),
|
|
547
|
-
personalId: z.string().min(1, "Rodn\xE9 \u010D\xEDslo je povinn\xE9"),
|
|
548
|
-
gender: z.enum(GENDER, "Pohlav\xED je povinn\xE9"),
|
|
549
|
-
citizenship: z.enum(COUNTRY_CODES, "St\xE1tn\xED p\u0159\xEDslu\u0161nost je povinn\xE1"),
|
|
550
550
|
isPep: z.boolean({ error: "Politicky exponovan\xE1 osoba je povinn\xE1" }),
|
|
551
|
-
address:
|
|
551
|
+
address: ownerAddressInputSchema,
|
|
552
552
|
sharePercentage: z.number({ error: "Pod\xEDl na spole\u010Dnosti je povinn\xFD" }).min(1, "Pod\xEDl na spole\u010Dnosti je povinn\xFD").max(100),
|
|
553
553
|
shareEstablishedAt: z.string().min(1, "Datum vzniku pod\xEDlu je povinn\xFD")
|
|
554
554
|
});
|
|
@@ -567,7 +567,7 @@ const legalRepresentativeInputSchema = z.object({
|
|
|
567
567
|
phone: z.string().optional(),
|
|
568
568
|
pin: z.string().optional(),
|
|
569
569
|
identityDocuments: z.array(idDocumentInputSchema$1).optional(),
|
|
570
|
-
address:
|
|
570
|
+
address: ownerAddressInputSchema,
|
|
571
571
|
dateOfEstablishment: z.string().min(1, "Datum vzniku funkce je povinn\xFD")
|
|
572
572
|
});
|
|
573
573
|
const createPartyInputSchema = z.object({
|
|
@@ -758,12 +758,18 @@ new OpenAPIHono().openapi(
|
|
|
758
758
|
language: partyInput.party.language,
|
|
759
759
|
customerStatus: "NEW"
|
|
760
760
|
},
|
|
761
|
-
personalData: individual,
|
|
761
|
+
personalData: { ...individual, email: individual.email ?? "" },
|
|
762
762
|
organizationData: null,
|
|
763
763
|
bankAccounts: null,
|
|
764
764
|
recipients: null,
|
|
765
765
|
disponents: null,
|
|
766
|
-
addresses: [
|
|
766
|
+
addresses: [
|
|
767
|
+
{
|
|
768
|
+
...address,
|
|
769
|
+
district: address.district ?? "",
|
|
770
|
+
region: address.region ?? ""
|
|
771
|
+
}
|
|
772
|
+
],
|
|
767
773
|
aml: null
|
|
768
774
|
});
|
|
769
775
|
if (ownerParty && !ownerError) {
|
|
@@ -796,7 +802,13 @@ new OpenAPIHono().openapi(
|
|
|
796
802
|
bankAccounts: null,
|
|
797
803
|
recipients: null,
|
|
798
804
|
disponents: null,
|
|
799
|
-
addresses: [
|
|
805
|
+
addresses: [
|
|
806
|
+
{
|
|
807
|
+
...address,
|
|
808
|
+
district: address.district ?? "",
|
|
809
|
+
region: address.region ?? ""
|
|
810
|
+
}
|
|
811
|
+
],
|
|
800
812
|
aml: null
|
|
801
813
|
});
|
|
802
814
|
if (!repParty || repError) {
|
|
@@ -1060,7 +1072,7 @@ const updateAmlInputSchema = z.object({
|
|
|
1060
1072
|
personName: z.string(),
|
|
1061
1073
|
personRole: z.enum(PERSON_ROLE),
|
|
1062
1074
|
answer: z.enum(YES_NO_UNKNOWN),
|
|
1063
|
-
|
|
1075
|
+
countries: z.array(z.enum(COUNTRY_CODES))
|
|
1064
1076
|
})
|
|
1065
1077
|
).optional()
|
|
1066
1078
|
});
|
|
@@ -1612,7 +1624,7 @@ const createAmlOutputSchema = z.object({
|
|
|
1612
1624
|
personName: z.string(),
|
|
1613
1625
|
personRole: z.enum(PERSON_ROLE),
|
|
1614
1626
|
answer: z.enum(YES_NO_UNKNOWN),
|
|
1615
|
-
|
|
1627
|
+
countries: z.array(z.enum(COUNTRY_CODES))
|
|
1616
1628
|
})
|
|
1617
1629
|
).nullable(),
|
|
1618
1630
|
createdAt: z.iso.datetime().nullable(),
|