@devizovaburza/mdm-sdk 2.2.0 → 2.2.1
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 +193 -193
- package/dist/v1/index.d.ts +193 -193
- package/dist/v1/index.mjs +26 -26
- package/package.json +1 -1
package/dist/v1/index.mjs
CHANGED
|
@@ -976,9 +976,9 @@ const individualUpdateSchema = z.object({
|
|
|
976
976
|
internalId: z.string().optional(),
|
|
977
977
|
name: z.string().optional(),
|
|
978
978
|
surname: z.string().optional(),
|
|
979
|
-
email: z.email("E-mail je povinn\xFD"),
|
|
979
|
+
email: z.email("E-mail je povinn\xFD").optional(),
|
|
980
980
|
phone: z.string().optional(),
|
|
981
|
-
birthDate: z.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
981
|
+
birthDate: z.string().min(1, "Datum narozen\xED je povinn\xE9").optional(),
|
|
982
982
|
birthPlace: z.string().optional(),
|
|
983
983
|
countryOfBirth: z.enum(COUNTRY_CODES).optional(),
|
|
984
984
|
personalId: z.string().optional(),
|
|
@@ -1022,9 +1022,9 @@ const organizationUpdateSchema = z.object({
|
|
|
1022
1022
|
fileNumber: z.string().optional(),
|
|
1023
1023
|
websiteUrl: z.url("Invalid website URL").optional(),
|
|
1024
1024
|
vatPayer: z.boolean().optional(),
|
|
1025
|
-
companyObjectsDescription: z.string(),
|
|
1026
|
-
turnover3years: z.number(),
|
|
1027
|
-
operationCountries: z.string(),
|
|
1025
|
+
companyObjectsDescription: z.string().optional(),
|
|
1026
|
+
turnover3years: z.number().optional(),
|
|
1027
|
+
operationCountries: z.string().optional(),
|
|
1028
1028
|
riskyBusinessType: z.string().optional(),
|
|
1029
1029
|
vatId: z.string().optional(),
|
|
1030
1030
|
court: z.enum(COURT).optional(),
|
|
@@ -1045,14 +1045,14 @@ const disponentIndividualSyncDataSchema = z.object({
|
|
|
1045
1045
|
id: z.uuid().optional(),
|
|
1046
1046
|
name: z.string(),
|
|
1047
1047
|
surname: z.string(),
|
|
1048
|
-
email: z.email("E-mail je povinn\xFD"),
|
|
1048
|
+
email: z.email("E-mail je povinn\xFD").optional(),
|
|
1049
1049
|
phone: z.string().optional(),
|
|
1050
|
-
birthDate: z.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
1050
|
+
birthDate: z.string().min(1, "Datum narozen\xED je povinn\xE9").optional(),
|
|
1051
1051
|
birthPlace: z.string().optional(),
|
|
1052
1052
|
countryOfBirth: z.enum(COUNTRY_CODES).optional(),
|
|
1053
1053
|
personalId: z.string(),
|
|
1054
1054
|
gender: z.enum(GENDER),
|
|
1055
|
-
citizenship: z.enum(COUNTRY_CODES),
|
|
1055
|
+
citizenship: z.enum(COUNTRY_CODES).optional(),
|
|
1056
1056
|
citizenshipOther: z.enum(COUNTRY_CODES).optional(),
|
|
1057
1057
|
employer: z.string().optional(),
|
|
1058
1058
|
employerCountry: z.enum(COUNTRY_CODES).optional(),
|
|
@@ -1078,14 +1078,14 @@ const syncAddressInputSchema = z.object({
|
|
|
1078
1078
|
partyId: z.uuid(),
|
|
1079
1079
|
internalId: z.string().optional(),
|
|
1080
1080
|
addressType: z.enum(ADDRESS_TYPE),
|
|
1081
|
-
street: z.string(),
|
|
1081
|
+
street: z.string().optional(),
|
|
1082
1082
|
orientationNumber: z.string().optional(),
|
|
1083
1083
|
descriptiveNumber: z.string().optional(),
|
|
1084
|
-
municipality: z.string().max(255),
|
|
1084
|
+
municipality: z.string().min(1).max(255).optional(),
|
|
1085
1085
|
municipalityPart: z.string().optional(),
|
|
1086
|
-
zipCode: z.string().max(20),
|
|
1087
|
-
district: z.string().max(255),
|
|
1088
|
-
region: z.string().max(255),
|
|
1086
|
+
zipCode: z.string().min(1).max(20).optional(),
|
|
1087
|
+
district: z.string().max(255).optional(),
|
|
1088
|
+
region: z.string().max(255).optional(),
|
|
1089
1089
|
countryCode: z.enum(COUNTRY_CODES),
|
|
1090
1090
|
ruianCode: z.string().optional()
|
|
1091
1091
|
});
|
|
@@ -1095,21 +1095,21 @@ const businessPartnerInputSchema = z.object({
|
|
|
1095
1095
|
cooperationReason: z.string().nullable()
|
|
1096
1096
|
});
|
|
1097
1097
|
const foSourceOfWealthInputSchema = z.object({
|
|
1098
|
-
incomeSources: z.array(z.enum(INCOME_SOURCE)).
|
|
1098
|
+
incomeSources: z.array(z.enum(INCOME_SOURCE)).optional(),
|
|
1099
1099
|
incomeSourceOther: z.string().nullable(),
|
|
1100
1100
|
monthlyIncome: z.enum(MONTHLY_INCOME_RANGE, "M\u011Bs\xED\u010Dn\xED p\u0159\xEDjem je povinn\xFD"),
|
|
1101
|
-
employer: z.string().
|
|
1102
|
-
employerCountry: z.enum(COUNTRY_CODES
|
|
1101
|
+
employer: z.string().nullable().optional(),
|
|
1102
|
+
employerCountry: z.enum(COUNTRY_CODES).nullable().optional()
|
|
1103
1103
|
});
|
|
1104
1104
|
const businessSourceOfWealthInputSchema = z.object({
|
|
1105
|
-
financialFundsSources: z.array(z.enum(FINANCIAL_FUNDS_SOURCE)).
|
|
1105
|
+
financialFundsSources: z.array(z.enum(FINANCIAL_FUNDS_SOURCE)).optional(),
|
|
1106
1106
|
financialFundsSourceOther: z.string().nullable(),
|
|
1107
|
-
mainBusinessSubjects: z.array(z.enum(CZ_TRADE_LICENSE_CODES)).
|
|
1107
|
+
mainBusinessSubjects: z.array(z.enum(CZ_TRADE_LICENSE_CODES)).optional(),
|
|
1108
1108
|
companyTurnover: z.enum(
|
|
1109
1109
|
COMPANY_TURNOVER_RANGE,
|
|
1110
1110
|
"Obrat za posledn\xED 3 roky je povinn\xFD"
|
|
1111
1111
|
),
|
|
1112
|
-
operatingCountries: z.array(z.enum(OPERATING_COUNTRY)).
|
|
1112
|
+
operatingCountries: z.array(z.enum(OPERATING_COUNTRY)).optional(),
|
|
1113
1113
|
operatingCountriesOther: z.array(z.enum(COUNTRY_CODES)).nullable(),
|
|
1114
1114
|
businessPartners: z.array(businessPartnerInputSchema).min(1, "Alespo\u0148 jeden partner je povinn\xFD").nullable(),
|
|
1115
1115
|
businessActivitiesNote: z.string().min(1, "Detailn\xED popis v\u0161ech podnikatelsk\xFDch \u010Dinnost\xED je povinn\xFD").nullable()
|
|
@@ -1167,15 +1167,15 @@ const ownerSyncSchema = z.object({
|
|
|
1167
1167
|
surname: z.string(),
|
|
1168
1168
|
titleAfter: z.string().optional(),
|
|
1169
1169
|
email: z.email("E-mail je povinn\xFD").optional(),
|
|
1170
|
-
birthDate: z.string(),
|
|
1170
|
+
birthDate: z.string().min(1, "Datum narozen\xED je povinn\xE9").optional(),
|
|
1171
1171
|
birthPlace: z.string().optional(),
|
|
1172
1172
|
personalId: z.string(),
|
|
1173
1173
|
gender: z.enum(GENDER),
|
|
1174
1174
|
citizenship: z.enum(COUNTRY_CODES),
|
|
1175
1175
|
isPep: z.boolean(),
|
|
1176
1176
|
address: syncAddressInputSchema,
|
|
1177
|
-
sharePercentage: z.number().max(100),
|
|
1178
|
-
shareEstablishedAt: z.string().
|
|
1177
|
+
sharePercentage: z.number().max(100).optional(),
|
|
1178
|
+
shareEstablishedAt: z.string().optional()
|
|
1179
1179
|
});
|
|
1180
1180
|
const legalRepresentativeSyncSchema = z.object({
|
|
1181
1181
|
id: z.uuid().optional(),
|
|
@@ -1183,8 +1183,8 @@ const legalRepresentativeSyncSchema = z.object({
|
|
|
1183
1183
|
name: z.string(),
|
|
1184
1184
|
surname: z.string(),
|
|
1185
1185
|
titleAfter: z.string().optional(),
|
|
1186
|
-
email: z.email("E-mail je povinn\xFD"),
|
|
1187
|
-
birthDate: z.string(),
|
|
1186
|
+
email: z.email("E-mail je povinn\xFD").optional(),
|
|
1187
|
+
birthDate: z.string().min(1, "Datum narozen\xED je povinn\xE9").optional(),
|
|
1188
1188
|
birthPlace: z.string().optional(),
|
|
1189
1189
|
personalId: z.string(),
|
|
1190
1190
|
gender: z.enum(GENDER),
|
|
@@ -1194,13 +1194,13 @@ const legalRepresentativeSyncSchema = z.object({
|
|
|
1194
1194
|
pin: z.string().optional(),
|
|
1195
1195
|
identityDocuments: z.array(idDocumentInputSchema).optional(),
|
|
1196
1196
|
address: syncAddressInputSchema,
|
|
1197
|
-
dateOfEstablishment: z.string().
|
|
1197
|
+
dateOfEstablishment: z.string().optional()
|
|
1198
1198
|
});
|
|
1199
1199
|
const partyUpdateInputSchema = z.object({
|
|
1200
1200
|
party: partySchema,
|
|
1201
1201
|
personalData: individualUpdateSchema.nullable(),
|
|
1202
1202
|
organizationData: organizationUpdateSchema.nullable(),
|
|
1203
|
-
bankAccounts: z.array(syncBankAccountSchema),
|
|
1203
|
+
bankAccounts: z.array(syncBankAccountSchema).optional(),
|
|
1204
1204
|
disponents: z.array(disponentSyncSchema).optional(),
|
|
1205
1205
|
addresses: z.array(syncAddressInputSchema),
|
|
1206
1206
|
owners: z.array(ownerSyncSchema).optional(),
|