@devizovaburza/mdm-sdk 2.2.6 → 2.3.0-canary.0d6240b9

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.mjs CHANGED
@@ -193,7 +193,13 @@ const ID_DOC_STATUS = [
193
193
  "EXPIRE_SOON",
194
194
  "REVOKED"
195
195
  ];
196
- const CUSTOMER_STATUS = ["NEW", "ACTIVE", "CLOSED", "BLOCKED"];
196
+ const CUSTOMER_STATUS = [
197
+ "NEW",
198
+ "ACTIVE",
199
+ "PENDING_RELATIONS",
200
+ "CLOSED",
201
+ "BLOCKED"
202
+ ];
197
203
  const BLOCK_REASON = [
198
204
  "MISSING_OWNERSHIP_STRUCTURE",
199
205
  "REMOVED_FROM_REGISTRY",
@@ -527,6 +533,9 @@ const ownerAddressInputSchema = createAddressInputSchema.extend({
527
533
  district: z.string().max(255).nullish(),
528
534
  region: z.string().max(255).nullish()
529
535
  });
536
+ const legalRepresentativeAddressInputSchema = ownerAddressInputSchema.extend({
537
+ street: z.string().optional()
538
+ });
530
539
  const ownerIndividualInputSchema = individualInsertSchema.extend({
531
540
  email: z.email("E-mail je povinn\xFD").optional()
532
541
  });
@@ -634,8 +643,8 @@ const legalRepresentativeInputSchema = z.object({
634
643
  phone: z.string().optional(),
635
644
  pin: z.string().optional(),
636
645
  identityDocuments: z.array(idDocumentInputSchema$1).optional(),
637
- address: ownerAddressInputSchema,
638
- dateOfEstablishment: z.string().min(1, "Datum vzniku funkce je povinn\xFD")
646
+ address: legalRepresentativeAddressInputSchema,
647
+ dateOfEstablishment: z.string().optional()
639
648
  });
640
649
  const createPartyInputSchema = z.object({
641
650
  party: partySchema$1.omit({ id: true }),
@@ -905,7 +914,7 @@ new OpenAPIHono().openapi(createPartyRoute, async (context) => {
905
914
  fromPartyId: repParty.id,
906
915
  toPartyId: partyData.id,
907
916
  relationshipType: "BOARD_MEMBER",
908
- fromDate: new Date(dateOfEstablishment)
917
+ fromDate: dateOfEstablishment ? new Date(dateOfEstablishment) : void 0
909
918
  });
910
919
  if (linkRepError) {
911
920
  return context.json(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devizovaburza/mdm-sdk",
3
- "version": "2.2.6",
3
+ "version": "2.3.0-canary.0d6240b9",
4
4
  "author": "Devizová burza a.s.",
5
5
  "license": "ISC",
6
6
  "type": "module",