@devizovaburza/mdm-sdk 2.2.6 → 2.3.0-canary.9833ee27
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 +636 -346
- package/dist/v1/index.d.ts +636 -346
- package/dist/v1/index.mjs +6 -3
- package/package.json +1 -1
package/dist/v1/index.mjs
CHANGED
|
@@ -527,6 +527,9 @@ const ownerAddressInputSchema = createAddressInputSchema.extend({
|
|
|
527
527
|
district: z.string().max(255).nullish(),
|
|
528
528
|
region: z.string().max(255).nullish()
|
|
529
529
|
});
|
|
530
|
+
const legalRepresentativeAddressInputSchema = ownerAddressInputSchema.extend({
|
|
531
|
+
street: z.string().optional()
|
|
532
|
+
});
|
|
530
533
|
const ownerIndividualInputSchema = individualInsertSchema.extend({
|
|
531
534
|
email: z.email("E-mail je povinn\xFD").optional()
|
|
532
535
|
});
|
|
@@ -634,8 +637,8 @@ const legalRepresentativeInputSchema = z.object({
|
|
|
634
637
|
phone: z.string().optional(),
|
|
635
638
|
pin: z.string().optional(),
|
|
636
639
|
identityDocuments: z.array(idDocumentInputSchema$1).optional(),
|
|
637
|
-
address:
|
|
638
|
-
dateOfEstablishment: z.string().
|
|
640
|
+
address: legalRepresentativeAddressInputSchema,
|
|
641
|
+
dateOfEstablishment: z.string().optional()
|
|
639
642
|
});
|
|
640
643
|
const createPartyInputSchema = z.object({
|
|
641
644
|
party: partySchema$1.omit({ id: true }),
|
|
@@ -905,7 +908,7 @@ new OpenAPIHono().openapi(createPartyRoute, async (context) => {
|
|
|
905
908
|
fromPartyId: repParty.id,
|
|
906
909
|
toPartyId: partyData.id,
|
|
907
910
|
relationshipType: "BOARD_MEMBER",
|
|
908
|
-
fromDate: new Date(dateOfEstablishment)
|
|
911
|
+
fromDate: dateOfEstablishment ? new Date(dateOfEstablishment) : void 0
|
|
909
912
|
});
|
|
910
913
|
if (linkRepError) {
|
|
911
914
|
return context.json(
|