@devizovaburza/mdm-sdk 1.1.1 → 1.1.2
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 +133 -93
- package/dist/v1/index.d.ts +133 -93
- package/dist/v1/index.mjs +27 -23
- package/package.json +1 -1
package/dist/v1/index.mjs
CHANGED
|
@@ -389,11 +389,11 @@ const individual = sqliteTable("individual", {
|
|
|
389
389
|
internalId: text("internal_id"),
|
|
390
390
|
partyId: text("party_id").notNull().unique().references(() => party.id),
|
|
391
391
|
name: text("name").notNull(),
|
|
392
|
-
email: text("email"),
|
|
392
|
+
email: text("email").notNull(),
|
|
393
393
|
phone: text("phone"),
|
|
394
394
|
surname: text("surname").notNull(),
|
|
395
|
-
birthDate: text("birth_date"),
|
|
396
|
-
birthPlace: text("birth_place")
|
|
395
|
+
birthDate: text("birth_date").notNull(),
|
|
396
|
+
birthPlace: text("birth_place"),
|
|
397
397
|
countryOfBirth: text("country_of_birth", { enum: COUNTRY_CODES_2 }),
|
|
398
398
|
personalId: text("personal_id").notNull(),
|
|
399
399
|
gender: text("gender", { enum: GENDER }).notNull(),
|
|
@@ -844,7 +844,7 @@ const contactUpdateSchema = z.object({
|
|
|
844
844
|
const insertOverrides = {
|
|
845
845
|
id: z.uuid(),
|
|
846
846
|
partyId: z.uuid(),
|
|
847
|
-
email: z.email("Invalid email format")
|
|
847
|
+
email: z.email("Invalid email format")
|
|
848
848
|
};
|
|
849
849
|
const selectOverrides = {
|
|
850
850
|
id: z.uuid(),
|
|
@@ -858,10 +858,11 @@ const individualBaseInsertSchema = createInsertSchema(
|
|
|
858
858
|
individual,
|
|
859
859
|
insertOverrides
|
|
860
860
|
);
|
|
861
|
-
createUpdateSchema(
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
)
|
|
861
|
+
createUpdateSchema(individual, {
|
|
862
|
+
id: z.uuid(),
|
|
863
|
+
partyId: z.uuid(),
|
|
864
|
+
email: z.email("Invalid email format").optional()
|
|
865
|
+
});
|
|
865
866
|
const individualBaseSelectSchema = createSelectSchema(
|
|
866
867
|
individual,
|
|
867
868
|
selectOverrides
|
|
@@ -1636,10 +1637,10 @@ const individualInsertSchema = z$1.object({
|
|
|
1636
1637
|
internalId: z$1.string().optional(),
|
|
1637
1638
|
name: z$1.string().min(1, "Jm\xE9no je povinn\xE9"),
|
|
1638
1639
|
surname: z$1.string().min(1, "P\u0159\xEDjmen\xED je povinn\xE9"),
|
|
1639
|
-
email: z$1.
|
|
1640
|
+
email: z$1.email("E-mail je povinn\xFD"),
|
|
1640
1641
|
phone: z$1.string().optional(),
|
|
1641
|
-
birthDate: z$1.string().
|
|
1642
|
-
birthPlace: z$1.string().
|
|
1642
|
+
birthDate: z$1.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
1643
|
+
birthPlace: z$1.string().optional(),
|
|
1643
1644
|
countryOfBirth: z$1.enum(COUNTRY_CODES_2).optional(),
|
|
1644
1645
|
personalId: z$1.string().min(1, "\u010C\xEDslo identifika\u010Dn\xEDho dokumentu je povinn\xE9"),
|
|
1645
1646
|
gender: z$1.enum(GENDER, "Pohlav\xED je povinn\xE9"),
|
|
@@ -1818,6 +1819,7 @@ const ownerInputSchema = z$1.object({
|
|
|
1818
1819
|
name: z$1.string().min(1, "Jm\xE9no je povinn\xE9"),
|
|
1819
1820
|
surname: z$1.string().min(1, "P\u0159\xEDjmen\xED je povinn\xE9"),
|
|
1820
1821
|
titleAfter: z$1.string().optional(),
|
|
1822
|
+
email: z$1.email("E-mail je povinn\xFD"),
|
|
1821
1823
|
birthDate: z$1.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
1822
1824
|
birthPlace: z$1.string().min(1, "M\xEDsto narozen\xED je povinn\xE9"),
|
|
1823
1825
|
personalId: z$1.string().min(1, "Rodn\xE9 \u010D\xEDslo je povinn\xE9"),
|
|
@@ -1833,6 +1835,7 @@ const legalRepresentativeInputSchema = z$1.object({
|
|
|
1833
1835
|
name: z$1.string().min(1, "Jm\xE9no je povinn\xE9"),
|
|
1834
1836
|
surname: z$1.string().min(1, "P\u0159\xEDjmen\xED je povinn\xE9"),
|
|
1835
1837
|
titleAfter: z$1.string().optional(),
|
|
1838
|
+
email: z$1.email("E-mail je povinn\xFD"),
|
|
1836
1839
|
birthDate: z$1.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
1837
1840
|
birthPlace: z$1.string().min(1, "M\xEDsto narozen\xED je povinn\xE9"),
|
|
1838
1841
|
personalId: z$1.string().min(1, "Rodn\xE9 \u010D\xEDslo je povinn\xE9"),
|
|
@@ -1840,7 +1843,6 @@ const legalRepresentativeInputSchema = z$1.object({
|
|
|
1840
1843
|
citizenship: z$1.enum(COUNTRY_CODES_2, "St\xE1tn\xED p\u0159\xEDslu\u0161nost je povinn\xE1"),
|
|
1841
1844
|
isPep: z$1.boolean({ error: "Politicky exponovan\xE1 osoba je povinn\xE1" }),
|
|
1842
1845
|
phone: z$1.string().optional(),
|
|
1843
|
-
email: z$1.string().optional(),
|
|
1844
1846
|
pin: z$1.string().optional(),
|
|
1845
1847
|
identityDocuments: z$1.array(idDocumentInputSchema$1).optional(),
|
|
1846
1848
|
address: createAddressInputSchema,
|
|
@@ -2234,9 +2236,9 @@ const disponentIndividualSyncDataSchema = z$1.object({
|
|
|
2234
2236
|
id: z$1.uuid().optional(),
|
|
2235
2237
|
name: z$1.string(),
|
|
2236
2238
|
surname: z$1.string(),
|
|
2237
|
-
email: z$1.
|
|
2239
|
+
email: z$1.email("E-mail je povinn\xFD"),
|
|
2238
2240
|
phone: z$1.string().optional(),
|
|
2239
|
-
birthDate: z$1.string().
|
|
2241
|
+
birthDate: z$1.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
2240
2242
|
birthPlace: z$1.string(),
|
|
2241
2243
|
countryOfBirth: z$1.enum(COUNTRY_CODES_2).optional(),
|
|
2242
2244
|
personalId: z$1.string(),
|
|
@@ -2387,6 +2389,7 @@ const ownerSyncSchema = z$1.object({
|
|
|
2387
2389
|
name: z$1.string(),
|
|
2388
2390
|
surname: z$1.string(),
|
|
2389
2391
|
titleAfter: z$1.string().optional(),
|
|
2392
|
+
email: z$1.email("E-mail je povinn\xFD"),
|
|
2390
2393
|
birthDate: z$1.string(),
|
|
2391
2394
|
birthPlace: z$1.string(),
|
|
2392
2395
|
personalId: z$1.string(),
|
|
@@ -2403,6 +2406,7 @@ const legalRepresentativeSyncSchema = z$1.object({
|
|
|
2403
2406
|
name: z$1.string(),
|
|
2404
2407
|
surname: z$1.string(),
|
|
2405
2408
|
titleAfter: z$1.string().optional(),
|
|
2409
|
+
email: z$1.email("E-mail je povinn\xFD"),
|
|
2406
2410
|
birthDate: z$1.string(),
|
|
2407
2411
|
birthPlace: z$1.string(),
|
|
2408
2412
|
personalId: z$1.string(),
|
|
@@ -2410,7 +2414,6 @@ const legalRepresentativeSyncSchema = z$1.object({
|
|
|
2410
2414
|
citizenship: z$1.enum(COUNTRY_CODES_2),
|
|
2411
2415
|
isPep: z$1.boolean(),
|
|
2412
2416
|
phone: z$1.string().optional(),
|
|
2413
|
-
email: z$1.string().optional(),
|
|
2414
2417
|
pin: z$1.string().optional(),
|
|
2415
2418
|
identityDocuments: z$1.array(idDocumentInputSchema).optional(),
|
|
2416
2419
|
address: syncAddressInputSchema,
|
|
@@ -2760,10 +2763,10 @@ const individualOutputSchema = z$1.object({
|
|
|
2760
2763
|
internalId: z$1.string().nullable(),
|
|
2761
2764
|
name: z$1.string(),
|
|
2762
2765
|
surname: z$1.string(),
|
|
2763
|
-
email: z$1.string()
|
|
2766
|
+
email: z$1.string(),
|
|
2764
2767
|
phone: z$1.string().nullable(),
|
|
2765
|
-
birthDate: z$1.string()
|
|
2766
|
-
birthPlace: z$1.string(),
|
|
2768
|
+
birthDate: z$1.string(),
|
|
2769
|
+
birthPlace: z$1.string().nullable(),
|
|
2767
2770
|
countryOfBirth: z$1.enum(COUNTRY_CODES_2).nullable(),
|
|
2768
2771
|
personalId: z$1.string(),
|
|
2769
2772
|
gender: z$1.enum(GENDER),
|
|
@@ -2934,8 +2937,9 @@ const ownerOutputSchema = z$1.object({
|
|
|
2934
2937
|
surname: z$1.string(),
|
|
2935
2938
|
titleBefore: z$1.string().nullable(),
|
|
2936
2939
|
titleAfter: z$1.string().nullable(),
|
|
2937
|
-
|
|
2938
|
-
|
|
2940
|
+
email: z$1.string(),
|
|
2941
|
+
birthDate: z$1.string(),
|
|
2942
|
+
birthPlace: z$1.string().nullable(),
|
|
2939
2943
|
personalId: z$1.string(),
|
|
2940
2944
|
gender: z$1.enum(GENDER),
|
|
2941
2945
|
citizenship: z$1.enum(COUNTRY_CODES_2),
|
|
@@ -2950,14 +2954,14 @@ const legalRepresentativeOutputSchema = z$1.object({
|
|
|
2950
2954
|
surname: z$1.string(),
|
|
2951
2955
|
titleBefore: z$1.string().nullable(),
|
|
2952
2956
|
titleAfter: z$1.string().nullable(),
|
|
2953
|
-
|
|
2954
|
-
|
|
2957
|
+
email: z$1.string(),
|
|
2958
|
+
birthDate: z$1.string(),
|
|
2959
|
+
birthPlace: z$1.string().nullable(),
|
|
2955
2960
|
personalId: z$1.string(),
|
|
2956
2961
|
gender: z$1.enum(GENDER),
|
|
2957
2962
|
citizenship: z$1.enum(COUNTRY_CODES_2),
|
|
2958
2963
|
isPep: z$1.boolean(),
|
|
2959
2964
|
phone: z$1.string().nullable(),
|
|
2960
|
-
email: z$1.string().nullable(),
|
|
2961
2965
|
pin: z$1.string().nullable(),
|
|
2962
2966
|
dateOfEstablishment: z$1.string().nullable(),
|
|
2963
2967
|
address: createAddressOutputSchema.nullable()
|