@devizovaburza/mdm-sdk 0.0.16 → 0.0.17
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 +138 -79
- package/dist/v1/index.d.cts +3604 -726
- package/dist/v1/index.d.mts +3604 -726
- package/dist/v1/index.d.ts +3604 -726
- package/dist/v1/index.mjs +138 -79
- package/package.json +1 -1
package/dist/v1/index.mjs
CHANGED
|
@@ -12944,14 +12944,16 @@ const amlSelectSchema = z$3.object({
|
|
|
12944
12944
|
const bankAccountBaseInsertSchema = createInsertSchema(bankAccount);
|
|
12945
12945
|
createUpdateSchema(bankAccount);
|
|
12946
12946
|
createSelectSchema(bankAccount);
|
|
12947
|
-
const bankAccountUpdateSchema = bankAccountBaseInsertSchema.extend({ partyId: z$3.uuid() }).omit({});
|
|
12947
|
+
const bankAccountUpdateSchema = bankAccountBaseInsertSchema.extend({ partyId: z$3.uuid(), bankCode: z$3.string().nullable().optional() }).omit({});
|
|
12948
12948
|
const bankAccountInsertSchema = bankAccountUpdateSchema.omit({
|
|
12949
12949
|
id: true
|
|
12950
12950
|
});
|
|
12951
12951
|
const bankAccountUpsertSchema = bankAccountBaseInsertSchema.required({
|
|
12952
12952
|
id: true
|
|
12953
12953
|
});
|
|
12954
|
-
const bankAccountSelectSchema = bankAccountUpdateSchema.required()
|
|
12954
|
+
const bankAccountSelectSchema = bankAccountUpdateSchema.required().extend({
|
|
12955
|
+
bankCode: z$3.string().nullable()
|
|
12956
|
+
});
|
|
12955
12957
|
z$3.array(bankAccountSelectSchema);
|
|
12956
12958
|
|
|
12957
12959
|
createInsertSchema(contact);
|
|
@@ -13189,13 +13191,15 @@ const idDocumentUpdateSchema = z$3.object({
|
|
|
13189
13191
|
});
|
|
13190
13192
|
|
|
13191
13193
|
const recipientBaseInsertSchema = createInsertSchema(recipient);
|
|
13192
|
-
createUpdateSchema(recipient);
|
|
13194
|
+
const recipientBaseUpdateSchema = createUpdateSchema(recipient);
|
|
13193
13195
|
createSelectSchema(recipient);
|
|
13194
13196
|
const recipientUpsertSchema = recipientBaseInsertSchema.required({
|
|
13195
13197
|
id: true
|
|
13196
13198
|
});
|
|
13197
13199
|
const recipientInsertSchema = bankAccountInsertSchema;
|
|
13198
|
-
const recipientUpdateSchema =
|
|
13200
|
+
const recipientUpdateSchema = recipientBaseUpdateSchema.required({
|
|
13201
|
+
id: true
|
|
13202
|
+
});
|
|
13199
13203
|
const recipientSelectSchema = bankAccountSelectSchema;
|
|
13200
13204
|
|
|
13201
13205
|
const productTxsConfigSchema = z$3.object({
|
|
@@ -13661,21 +13665,21 @@ const partySchema$1 = z$3.object({
|
|
|
13661
13665
|
});
|
|
13662
13666
|
const individualInsertSchema = z$3.object({
|
|
13663
13667
|
internalId: z$3.string().optional(),
|
|
13664
|
-
name: z$3.string(),
|
|
13665
|
-
surname: z$3.string(),
|
|
13668
|
+
name: z$3.string().min(1, "Jm\xE9no je povinn\xE9"),
|
|
13669
|
+
surname: z$3.string().min(1, "P\u0159\xEDjmen\xED je povinn\xE9"),
|
|
13666
13670
|
email: z$3.string().optional(),
|
|
13667
13671
|
phone: z$3.string().optional(),
|
|
13668
13672
|
birthDate: z$3.string().optional(),
|
|
13669
|
-
birthPlace: z$3.string(),
|
|
13673
|
+
birthPlace: z$3.string().min(1, "M\u011Bsto narozen\xED je povinn\xE9"),
|
|
13670
13674
|
countryOfBirth: z$3.enum(COUNTRY_CODES_2).optional(),
|
|
13671
|
-
personalId: z$3.string(),
|
|
13672
|
-
gender: z$3.enum(GENDER),
|
|
13673
|
-
citizenship: z$3.enum(COUNTRY_CODES_2),
|
|
13675
|
+
personalId: z$3.string().min(1, "\u010C\xEDslo identifika\u010Dn\xEDho dokumentu je povinn\xE9"),
|
|
13676
|
+
gender: z$3.enum(GENDER, "Pohlav\xED je povinn\xE9"),
|
|
13677
|
+
citizenship: z$3.enum(COUNTRY_CODES_2, "St\xE1t je povinn\xFD"),
|
|
13674
13678
|
citizenshipOther: z$3.enum(COUNTRY_CODES_2).optional(),
|
|
13675
13679
|
employer: z$3.string().optional(),
|
|
13676
13680
|
employerCountry: z$3.enum(COUNTRY_CODES_2).optional(),
|
|
13677
13681
|
registeredNumber: z$3.string().optional(),
|
|
13678
|
-
isPep: z$3.boolean(),
|
|
13682
|
+
isPep: z$3.boolean({ error: "Politicky exponovan\xE1 osoba je povinn\xE1" }),
|
|
13679
13683
|
titleBefore: z$3.string().optional(),
|
|
13680
13684
|
titleAfter: z$3.string().optional(),
|
|
13681
13685
|
birthSurname: z$3.string().optional(),
|
|
@@ -13713,11 +13717,14 @@ const createOrganizationInputSchema = z$3.object({
|
|
|
13713
13717
|
});
|
|
13714
13718
|
const updateBankAccountSchema = z$3.object({
|
|
13715
13719
|
...bankAccountMetadataSchema.shape,
|
|
13720
|
+
bankCode: z$3.enum(BANK_CODES, "K\xF3d banky je povinn\xFD").optional(),
|
|
13721
|
+
iban: z$3.string().min(1, "IBAN je povinn\xFD").regex(/^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$/, "Neplatn\xFD form\xE1t IBAN").optional(),
|
|
13722
|
+
swiftBic: z$3.string().min(1, "BIC/SWIFT je povinn\xFD").regex(/^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/, "Neplatn\xFD form\xE1t BIC/SWIFT").optional(),
|
|
13716
13723
|
partyId: z$3.uuid(),
|
|
13717
13724
|
internalId: z$3.string().optional(),
|
|
13718
13725
|
holderName: z$3.string(),
|
|
13719
|
-
number: z$3.string().optional(),
|
|
13720
|
-
currency:
|
|
13726
|
+
number: z$3.string().min(1, "\u010C\xEDslo \xFA\u010Dtu je povinn\xE9").optional(),
|
|
13727
|
+
currency: z$3.enum(CURRENCY_CODES, "M\u011Bna je povinn\xE1"),
|
|
13721
13728
|
countryCode: bankAccountMetadataSchema.shape.countryCode.nonoptional(),
|
|
13722
13729
|
id: bankAccountMetadataSchema.shape.id.nonoptional()
|
|
13723
13730
|
});
|
|
@@ -13736,41 +13743,45 @@ const disponentSchema = z$3.discriminatedUnion("partyType", [
|
|
|
13736
13743
|
data: createOrganizationInputSchema
|
|
13737
13744
|
})
|
|
13738
13745
|
]);
|
|
13746
|
+
const zipCodeRegex = /^\d{3}\s?\d{2}$/;
|
|
13739
13747
|
const createAddressInputSchema = z$3.object({
|
|
13740
13748
|
addressType: z$3.enum(ADDRESS_TYPE),
|
|
13741
13749
|
internalId: z$3.string().optional(),
|
|
13742
|
-
street: z$3.string(),
|
|
13743
|
-
orientationNumber: z$3.string().optional(),
|
|
13744
|
-
descriptiveNumber: z$3.string().optional(),
|
|
13745
|
-
municipality: z$3.string().max(255),
|
|
13750
|
+
street: z$3.string().min(1, "Adresa je povinn\xE1"),
|
|
13751
|
+
orientationNumber: z$3.string().max(20, "\u010C\xEDslo orienta\u010Dn\xED je mimo povolen\xFD rozsah").optional(),
|
|
13752
|
+
descriptiveNumber: z$3.string().max(20, "\u010C\xEDslo popisn\xE9 je mimo povolen\xFD rozsah").optional(),
|
|
13753
|
+
municipality: z$3.string().min(1, "M\u011Bsto je povinn\xE9").max(255),
|
|
13746
13754
|
municipalityPart: z$3.string().optional(),
|
|
13747
|
-
zipCode: z$3.string().max(20),
|
|
13755
|
+
zipCode: z$3.string().min(1, "PS\u010C je povinn\xE9").max(20).regex(zipCodeRegex, "PS\u010C je v nespr\xE1vn\xE9m form\xE1tu"),
|
|
13748
13756
|
district: z$3.string().max(255),
|
|
13749
13757
|
region: z$3.string().max(255),
|
|
13750
|
-
countryCode: z$3.enum(COUNTRY_CODES_2),
|
|
13758
|
+
countryCode: z$3.enum(COUNTRY_CODES_2, "St\xE1t je povinn\xFD"),
|
|
13751
13759
|
ruianCode: z$3.string().optional()
|
|
13752
13760
|
});
|
|
13753
13761
|
const businessPartnerInputSchema$1 = z$3.object({
|
|
13754
|
-
name: z$3.string(),
|
|
13755
|
-
country: z$3.
|
|
13762
|
+
name: z$3.string().min(1, "N\xE1zev partnera je povinn\xFD"),
|
|
13763
|
+
country: z$3.enum(COUNTRY_CODES_2, "St\xE1t partnera je povinn\xFD"),
|
|
13756
13764
|
cooperationReason: z$3.string().nullable()
|
|
13757
13765
|
});
|
|
13758
13766
|
const foSourceOfWealthInputSchema$1 = z$3.object({
|
|
13759
|
-
incomeSources: z$3.array(z$3.enum(INCOME_SOURCE)).min(1),
|
|
13767
|
+
incomeSources: z$3.array(z$3.enum(INCOME_SOURCE)).min(1, "Hlavn\xED zdroj p\u0159\xEDjm\u016F je povinn\xFD"),
|
|
13760
13768
|
incomeSourceOther: z$3.string().nullable(),
|
|
13761
|
-
monthlyIncome: z$3.enum(MONTHLY_INCOME_RANGE),
|
|
13762
|
-
employer: z$3.string().nullable(),
|
|
13763
|
-
employerCountry: z$3.
|
|
13769
|
+
monthlyIncome: z$3.enum(MONTHLY_INCOME_RANGE, "M\u011Bs\xED\u010Dn\xED p\u0159\xEDjem je povinn\xFD"),
|
|
13770
|
+
employer: z$3.string().min(1, "N\xE1zev zam\u011Bstnavatele je povinn\xFD").nullable(),
|
|
13771
|
+
employerCountry: z$3.enum(COUNTRY_CODES_2, "St\xE1t zam\u011Bstnavatele je povinn\xFD").nullable()
|
|
13764
13772
|
});
|
|
13765
13773
|
const businessSourceOfWealthInputSchema$1 = z$3.object({
|
|
13766
|
-
financialFundsSources: z$3.array(z$3.enum(FINANCIAL_FUNDS_SOURCE)).min(1),
|
|
13774
|
+
financialFundsSources: z$3.array(z$3.enum(FINANCIAL_FUNDS_SOURCE)).min(1, "Zdroj finan\u010Dn\xEDch prost\u0159edk\u016F je povinn\xFD"),
|
|
13767
13775
|
financialFundsSourceOther: z$3.string().nullable(),
|
|
13768
|
-
mainBusinessSubjects: z$3.array(z$3.enum(CZ_TRADE_LICENSE_CODES)).min(1),
|
|
13769
|
-
companyTurnover: z$3.enum(
|
|
13770
|
-
|
|
13776
|
+
mainBusinessSubjects: z$3.array(z$3.enum(CZ_TRADE_LICENSE_CODES)).min(1, "Hlavn\xED p\u0159edm\u011Bt podnik\xE1n\xED je povinn\xFD"),
|
|
13777
|
+
companyTurnover: z$3.enum(
|
|
13778
|
+
COMPANY_TURNOVER_RANGE,
|
|
13779
|
+
"Obrat za posledn\xED 3 roky je povinn\xFD"
|
|
13780
|
+
),
|
|
13781
|
+
operatingCountries: z$3.array(z$3.enum(OPERATING_COUNTRY)).min(1, "Zem\u011B p\u016Fsoben\xED je povinn\xE1"),
|
|
13771
13782
|
operatingCountriesOther: z$3.array(z$3.enum(COUNTRY_CODES_2)).nullable(),
|
|
13772
|
-
businessPartners: z$3.array(businessPartnerInputSchema$1).nullable(),
|
|
13773
|
-
businessActivitiesNote: z$3.string().nullable()
|
|
13783
|
+
businessPartners: z$3.array(businessPartnerInputSchema$1).min(1, "Alespo\u0148 jeden partner je povinn\xFD").nullable(),
|
|
13784
|
+
businessActivitiesNote: z$3.string().min(1, "Detailn\xED popis v\u0161ech podnikatelsk\xFDch \u010Dinnost\xED je povinn\xFD").nullable()
|
|
13774
13785
|
});
|
|
13775
13786
|
const createAmlInputSchema = z$3.object({
|
|
13776
13787
|
internalId: z$3.string().optional(),
|
|
@@ -13779,28 +13790,37 @@ const createAmlInputSchema = z$3.object({
|
|
|
13779
13790
|
businessSourceOfWealthInputSchema$1
|
|
13780
13791
|
]),
|
|
13781
13792
|
yearlyIncome: z$3.enum(YEARLY_INCOME),
|
|
13782
|
-
sourceOfIncome: z$3.array(z$3.enum(INCOME_SOURCE)).min(1),
|
|
13793
|
+
sourceOfIncome: z$3.array(z$3.enum(INCOME_SOURCE)).min(1, "Zdroj p\u0159\xEDjm\u016F je povinn\xFD"),
|
|
13783
13794
|
incomeSourceOther: z$3.string().optional(),
|
|
13784
|
-
servicePurposes: z$3.array(z$3.enum(SERVICE_PURPOSE)).optional(),
|
|
13795
|
+
servicePurposes: z$3.array(z$3.enum(SERVICE_PURPOSE)).min(1, "\xDA\u010Del vyu\u017E\xEDv\xE1n\xED na\u0161ich slu\u017Eeb je povinn\xFD").optional(),
|
|
13785
13796
|
servicePurposesOther: z$3.string().optional(),
|
|
13786
|
-
taxDomicile: z$3.enum(TAX_DOMICILE).optional(),
|
|
13797
|
+
taxDomicile: z$3.enum(TAX_DOMICILE, { message: "Da\u0148ov\xE1 rezidence je povinn\xE1" }).optional(),
|
|
13787
13798
|
taxDomicileCountry: z$3.enum(COUNTRY_CODES_2).optional(),
|
|
13788
13799
|
transactionType: z$3.string().optional(),
|
|
13789
13800
|
transactionTypeExpiry: z$3.date().optional(),
|
|
13790
13801
|
isDistraint: z$3.boolean().default(false),
|
|
13791
|
-
estTxsVolumeMonth: z$3.enum(
|
|
13792
|
-
|
|
13802
|
+
estTxsVolumeMonth: z$3.enum(
|
|
13803
|
+
EST_TXS_VOLUME_MONTH,
|
|
13804
|
+
"Odhadovan\xFD m\u011Bs\xED\u010Dn\xED objem transakc\xED je povinn\xFD"
|
|
13805
|
+
),
|
|
13806
|
+
estTxsVolumeYear: z$3.enum(
|
|
13807
|
+
EST_TXS_VOLUME_YEAR,
|
|
13808
|
+
"Odhadovan\xFD ro\u010Dn\xED objem transakc\xED je povinn\xFD"
|
|
13809
|
+
),
|
|
13793
13810
|
estTxsCountMonth: z$3.number().int().optional(),
|
|
13794
|
-
tradingCountries: z$3.array(z$3.enum(TARGET_COUNTRY)).min(1),
|
|
13811
|
+
tradingCountries: z$3.array(z$3.enum(TARGET_COUNTRY)).min(1, "Vyberte alespo\u0148 jednu c\xEDlovou zemi"),
|
|
13795
13812
|
tradingCountriesOther: z$3.array(z$3.enum(COUNTRY_CODES_2)).optional(),
|
|
13796
|
-
tradingSide: z$3.enum(TRADING_SIDE),
|
|
13797
|
-
acceptedAMLTermsAndConditions: z$3.boolean(),
|
|
13798
|
-
|
|
13799
|
-
|
|
13813
|
+
tradingSide: z$3.enum(TRADING_SIDE, "Strana obchodov\xE1n\xED je povinn\xE1"),
|
|
13814
|
+
acceptedAMLTermsAndConditions: z$3.boolean().refine((v) => v === true, {
|
|
13815
|
+
message: "Mus\xEDte potvrdit souhlas s prohl\xE1\u0161en\xEDm",
|
|
13816
|
+
path: ["acceptedAMLTermsAndConditions"]
|
|
13817
|
+
}),
|
|
13818
|
+
signatureMethod: z$3.enum(SIGNATURE_METHOD, "Zp\u016Fsob nav\xE1z\xE1n\xED vztahu je povinn\xFD").optional(),
|
|
13819
|
+
existencePeriod: z$3.enum(EXISTENCE_PERIOD, "Historie klienta je povinn\xE1").optional(),
|
|
13800
13820
|
reputation: z$3.enum(REPUTATION).optional(),
|
|
13801
13821
|
riskBusinessAreas: z$3.array(z$3.enum(RISK_BUSINESS_AREA)).optional(),
|
|
13802
|
-
riskLevel: z$3.enum(AML_SCORE_TYPE).optional(),
|
|
13803
|
-
kycStatus: z$3.enum(KYC_STATUS).optional()
|
|
13822
|
+
riskLevel: z$3.enum(AML_SCORE_TYPE, "Rizikovost je povinn\xE1").optional(),
|
|
13823
|
+
kycStatus: z$3.enum(KYC_STATUS, "Stav kyc je povinn\xFD").optional()
|
|
13804
13824
|
});
|
|
13805
13825
|
const productsInputSchema$1 = z$3.object({
|
|
13806
13826
|
txs: z$3.object({
|
|
@@ -13813,18 +13833,18 @@ const productsInputSchema$1 = z$3.object({
|
|
|
13813
13833
|
});
|
|
13814
13834
|
const ownerInputSchema = z$3.object({
|
|
13815
13835
|
titleBefore: z$3.string().optional(),
|
|
13816
|
-
name: z$3.string(),
|
|
13817
|
-
surname: z$3.string(),
|
|
13836
|
+
name: z$3.string().min(1, "Jm\xE9no je povinn\xE9"),
|
|
13837
|
+
surname: z$3.string().min(1, "P\u0159\xEDjmen\xED je povinn\xE9"),
|
|
13818
13838
|
titleAfter: z$3.string().optional(),
|
|
13819
|
-
birthDate: z$3.string(),
|
|
13820
|
-
birthPlace: z$3.string(),
|
|
13821
|
-
personalId: z$3.string(),
|
|
13822
|
-
gender: z$3.enum(GENDER),
|
|
13823
|
-
citizenship: z$3.enum(COUNTRY_CODES_2),
|
|
13824
|
-
isPep: z$3.boolean(),
|
|
13839
|
+
birthDate: z$3.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
13840
|
+
birthPlace: z$3.string().min(1, "M\xEDsto narozen\xED je povinn\xE9"),
|
|
13841
|
+
personalId: z$3.string().min(1, "Rodn\xE9 \u010D\xEDslo je povinn\xE9"),
|
|
13842
|
+
gender: z$3.enum(GENDER, "Pohlav\xED je povinn\xE9"),
|
|
13843
|
+
citizenship: z$3.enum(COUNTRY_CODES_2, "St\xE1tn\xED p\u0159\xEDslu\u0161nost je povinn\xE1"),
|
|
13844
|
+
isPep: z$3.boolean({ error: "Politicky exponovan\xE1 osoba je povinn\xE1" }),
|
|
13825
13845
|
address: createAddressInputSchema,
|
|
13826
|
-
sharePercentage: z$3.number().max(100),
|
|
13827
|
-
shareEstablishedAt: z$3.
|
|
13846
|
+
sharePercentage: z$3.number({ error: "Pod\xEDl na spole\u010Dnosti je povinn\xFD" }).min(1, "Pod\xEDl na spole\u010Dnosti je povinn\xFD").max(100),
|
|
13847
|
+
shareEstablishedAt: z$3.string().min(1, "Datum vzniku pod\xEDlu je povinn\xFD")
|
|
13828
13848
|
});
|
|
13829
13849
|
const idDocumentInputSchema$1 = z$3.object({
|
|
13830
13850
|
idDocType: z$3.enum(ID_DOC_TYPE),
|
|
@@ -13837,21 +13857,21 @@ const idDocumentInputSchema$1 = z$3.object({
|
|
|
13837
13857
|
});
|
|
13838
13858
|
const legalRepresentativeInputSchema = z$3.object({
|
|
13839
13859
|
titleBefore: z$3.string().optional(),
|
|
13840
|
-
name: z$3.string(),
|
|
13841
|
-
surname: z$3.string(),
|
|
13860
|
+
name: z$3.string().min(1, "Jm\xE9no je povinn\xE9"),
|
|
13861
|
+
surname: z$3.string().min(1, "P\u0159\xEDjmen\xED je povinn\xE9"),
|
|
13842
13862
|
titleAfter: z$3.string().optional(),
|
|
13843
|
-
birthDate: z$3.string(),
|
|
13844
|
-
birthPlace: z$3.string(),
|
|
13845
|
-
personalId: z$3.string(),
|
|
13846
|
-
gender: z$3.enum(GENDER),
|
|
13847
|
-
citizenship: z$3.enum(COUNTRY_CODES_2),
|
|
13848
|
-
isPep: z$3.boolean(),
|
|
13863
|
+
birthDate: z$3.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
13864
|
+
birthPlace: z$3.string().min(1, "M\xEDsto narozen\xED je povinn\xE9"),
|
|
13865
|
+
personalId: z$3.string().min(1, "Rodn\xE9 \u010D\xEDslo je povinn\xE9"),
|
|
13866
|
+
gender: z$3.enum(GENDER, "Pohlav\xED je povinn\xE9"),
|
|
13867
|
+
citizenship: z$3.enum(COUNTRY_CODES_2, "St\xE1tn\xED p\u0159\xEDslu\u0161nost je povinn\xE1"),
|
|
13868
|
+
isPep: z$3.boolean({ error: "Politicky exponovan\xE1 osoba je povinn\xE1" }),
|
|
13849
13869
|
phone: z$3.string().optional(),
|
|
13850
13870
|
email: z$3.string().optional(),
|
|
13851
13871
|
pin: z$3.string().optional(),
|
|
13852
13872
|
identityDocuments: z$3.array(idDocumentInputSchema$1).optional(),
|
|
13853
13873
|
address: createAddressInputSchema,
|
|
13854
|
-
dateOfEstablishment: z$3.
|
|
13874
|
+
dateOfEstablishment: z$3.string().min(1, "Datum vzniku funkce je povinn\xFD")
|
|
13855
13875
|
});
|
|
13856
13876
|
const createPartyInputSchema = z$3.object({
|
|
13857
13877
|
party: partySchema$1.omit({ id: true }),
|
|
@@ -13950,7 +13970,7 @@ new OpenAPIHono().openapi(
|
|
|
13950
13970
|
toPartyId: partyData.id,
|
|
13951
13971
|
relationshipType: "UBO",
|
|
13952
13972
|
sharePercentage,
|
|
13953
|
-
fromDate: shareEstablishedAt
|
|
13973
|
+
fromDate: new Date(shareEstablishedAt)
|
|
13954
13974
|
});
|
|
13955
13975
|
}
|
|
13956
13976
|
}
|
|
@@ -13982,7 +14002,7 @@ new OpenAPIHono().openapi(
|
|
|
13982
14002
|
fromPartyId: repParty.id,
|
|
13983
14003
|
toPartyId: partyData.id,
|
|
13984
14004
|
relationshipType: "BOARD_MEMBER",
|
|
13985
|
-
fromDate: dateOfEstablishment
|
|
14005
|
+
fromDate: new Date(dateOfEstablishment)
|
|
13986
14006
|
});
|
|
13987
14007
|
if (identityDocuments?.length) {
|
|
13988
14008
|
for (const doc of identityDocuments) {
|
|
@@ -14168,26 +14188,29 @@ const syncAddressInputSchema = z$3.object({
|
|
|
14168
14188
|
ruianCode: z$3.string().optional()
|
|
14169
14189
|
});
|
|
14170
14190
|
const businessPartnerInputSchema = z$3.object({
|
|
14171
|
-
name: z$3.string(),
|
|
14172
|
-
country: z$3.
|
|
14191
|
+
name: z$3.string().min(1, "N\xE1zev partnera je povinn\xFD"),
|
|
14192
|
+
country: z$3.enum(COUNTRY_CODES_2, "St\xE1t partnera je povinn\xFD"),
|
|
14173
14193
|
cooperationReason: z$3.string().nullable()
|
|
14174
14194
|
});
|
|
14175
14195
|
const foSourceOfWealthInputSchema = z$3.object({
|
|
14176
|
-
incomeSources: z$3.array(z$3.enum(INCOME_SOURCE)).min(1),
|
|
14196
|
+
incomeSources: z$3.array(z$3.enum(INCOME_SOURCE)).min(1, "Hlavn\xED zdroj p\u0159\xEDjm\u016F je povinn\xFD"),
|
|
14177
14197
|
incomeSourceOther: z$3.string().nullable(),
|
|
14178
|
-
monthlyIncome: z$3.enum(MONTHLY_INCOME_RANGE),
|
|
14179
|
-
employer: z$3.string().nullable(),
|
|
14180
|
-
employerCountry: z$3.
|
|
14198
|
+
monthlyIncome: z$3.enum(MONTHLY_INCOME_RANGE, "M\u011Bs\xED\u010Dn\xED p\u0159\xEDjem je povinn\xFD"),
|
|
14199
|
+
employer: z$3.string().min(1, "N\xE1zev zam\u011Bstnavatele je povinn\xFD").nullable(),
|
|
14200
|
+
employerCountry: z$3.enum(COUNTRY_CODES_2, "St\xE1t zam\u011Bstnavatele je povinn\xFD").nullable()
|
|
14181
14201
|
});
|
|
14182
14202
|
const businessSourceOfWealthInputSchema = z$3.object({
|
|
14183
|
-
financialFundsSources: z$3.array(z$3.enum(FINANCIAL_FUNDS_SOURCE)).min(1),
|
|
14203
|
+
financialFundsSources: z$3.array(z$3.enum(FINANCIAL_FUNDS_SOURCE)).min(1, "Zdroj finan\u010Dn\xEDch prost\u0159edk\u016F je povinn\xFD"),
|
|
14184
14204
|
financialFundsSourceOther: z$3.string().nullable(),
|
|
14185
|
-
mainBusinessSubjects: z$3.array(z$3.enum(CZ_TRADE_LICENSE_CODES)).min(1),
|
|
14186
|
-
companyTurnover: z$3.enum(
|
|
14187
|
-
|
|
14205
|
+
mainBusinessSubjects: z$3.array(z$3.enum(CZ_TRADE_LICENSE_CODES)).min(1, "Hlavn\xED p\u0159edm\u011Bt podnik\xE1n\xED je povinn\xFD"),
|
|
14206
|
+
companyTurnover: z$3.enum(
|
|
14207
|
+
COMPANY_TURNOVER_RANGE,
|
|
14208
|
+
"Obrat za posledn\xED 3 roky je povinn\xFD"
|
|
14209
|
+
),
|
|
14210
|
+
operatingCountries: z$3.array(z$3.enum(OPERATING_COUNTRY)).min(1, "Zem\u011B p\u016Fsoben\xED je povinn\xE1"),
|
|
14188
14211
|
operatingCountriesOther: z$3.array(z$3.enum(COUNTRY_CODES_2)).nullable(),
|
|
14189
|
-
businessPartners: z$3.array(businessPartnerInputSchema).nullable(),
|
|
14190
|
-
businessActivitiesNote: z$3.string().nullable()
|
|
14212
|
+
businessPartners: z$3.array(businessPartnerInputSchema).min(1, "Alespo\u0148 jeden partner je povinn\xFD").nullable(),
|
|
14213
|
+
businessActivitiesNote: z$3.string().min(1, "Detailn\xED popis v\u0161ech podnikatelsk\xFDch \u010Dinnost\xED je povinn\xFD").nullable()
|
|
14191
14214
|
});
|
|
14192
14215
|
const updateAmlInputSchema = z$3.object({
|
|
14193
14216
|
id: z$3.uuid(),
|
|
@@ -14241,7 +14264,7 @@ const ownerSyncSchema = z$3.object({
|
|
|
14241
14264
|
isPep: z$3.boolean(),
|
|
14242
14265
|
address: syncAddressInputSchema,
|
|
14243
14266
|
sharePercentage: z$3.number().max(100),
|
|
14244
|
-
shareEstablishedAt: z$3.
|
|
14267
|
+
shareEstablishedAt: z$3.string().min(1, "Datum vzniku pod\xEDlu je povinn\xFD")
|
|
14245
14268
|
});
|
|
14246
14269
|
const idDocumentInputSchema = z$3.object({
|
|
14247
14270
|
idDocType: z$3.enum(ID_DOC_TYPE),
|
|
@@ -14269,7 +14292,7 @@ const legalRepresentativeSyncSchema = z$3.object({
|
|
|
14269
14292
|
pin: z$3.string().optional(),
|
|
14270
14293
|
identityDocuments: z$3.array(idDocumentInputSchema).optional(),
|
|
14271
14294
|
address: syncAddressInputSchema,
|
|
14272
|
-
dateOfEstablishment: z$3.
|
|
14295
|
+
dateOfEstablishment: z$3.string().min(1, "Datum vzniku funkce je povinn\xFD")
|
|
14273
14296
|
});
|
|
14274
14297
|
const partyUpdateInputSchema = z$3.object({
|
|
14275
14298
|
party: partySchema,
|
|
@@ -14535,6 +14558,40 @@ const createAmlOutputSchema = z$3.object({
|
|
|
14535
14558
|
createdAt: z$3.date().nullable(),
|
|
14536
14559
|
updatedAt: z$3.date().nullable()
|
|
14537
14560
|
});
|
|
14561
|
+
const ownerOutputSchema = z$3.object({
|
|
14562
|
+
id: z$3.uuid().optional(),
|
|
14563
|
+
name: z$3.string(),
|
|
14564
|
+
surname: z$3.string(),
|
|
14565
|
+
titleBefore: z$3.string().nullable(),
|
|
14566
|
+
titleAfter: z$3.string().nullable(),
|
|
14567
|
+
birthDate: z$3.string().nullable(),
|
|
14568
|
+
birthPlace: z$3.string(),
|
|
14569
|
+
personalId: z$3.string(),
|
|
14570
|
+
gender: z$3.enum(GENDER),
|
|
14571
|
+
citizenship: z$3.enum(COUNTRY_CODES_2),
|
|
14572
|
+
isPep: z$3.boolean(),
|
|
14573
|
+
sharePercentage: z$3.number(),
|
|
14574
|
+
shareEstablishedAt: z$3.string().nullable(),
|
|
14575
|
+
address: createAddressOutputSchema.nullable()
|
|
14576
|
+
});
|
|
14577
|
+
const legalRepresentativeOutputSchema = z$3.object({
|
|
14578
|
+
id: z$3.uuid().optional(),
|
|
14579
|
+
name: z$3.string(),
|
|
14580
|
+
surname: z$3.string(),
|
|
14581
|
+
titleBefore: z$3.string().nullable(),
|
|
14582
|
+
titleAfter: z$3.string().nullable(),
|
|
14583
|
+
birthDate: z$3.string().nullable(),
|
|
14584
|
+
birthPlace: z$3.string(),
|
|
14585
|
+
personalId: z$3.string(),
|
|
14586
|
+
gender: z$3.enum(GENDER),
|
|
14587
|
+
citizenship: z$3.enum(COUNTRY_CODES_2),
|
|
14588
|
+
isPep: z$3.boolean(),
|
|
14589
|
+
phone: z$3.string().nullable(),
|
|
14590
|
+
email: z$3.string().nullable(),
|
|
14591
|
+
pin: z$3.string().nullable(),
|
|
14592
|
+
dateOfEstablishment: z$3.string().nullable(),
|
|
14593
|
+
address: createAddressOutputSchema.nullable()
|
|
14594
|
+
});
|
|
14538
14595
|
const productsOutputSchema = z$3.object({
|
|
14539
14596
|
txs: z$3.object({
|
|
14540
14597
|
fee: z$3.number(),
|
|
@@ -14554,7 +14611,9 @@ const partyOutputSchema = z$3.object({
|
|
|
14554
14611
|
aml: createAmlOutputSchema.nullable(),
|
|
14555
14612
|
recipients: z$3.array(bankAccountOutputSchema).nullable(),
|
|
14556
14613
|
products: productsOutputSchema.nullable(),
|
|
14557
|
-
traderIds: z$3.array(z$3.uuid()).nullable()
|
|
14614
|
+
traderIds: z$3.array(z$3.uuid()).nullable(),
|
|
14615
|
+
owners: z$3.array(ownerOutputSchema).optional(),
|
|
14616
|
+
legalRepresentatives: z$3.array(legalRepresentativeOutputSchema).optional()
|
|
14558
14617
|
});
|
|
14559
14618
|
const responseBodySchema$3 = z$3.object({
|
|
14560
14619
|
message: z$3.string(),
|