From 293ec35c15a3b36aed40753f8311a7f8b280fb8a Mon Sep 17 00:00:00 2001 From: Leonardo Brandao Date: Thu, 4 Sep 2025 12:11:00 -0300 Subject: [PATCH 1/2] fix: adjust batch-update schemas type --- package.json | 2 +- src/interface/model/FTTHClient.ts | 2 +- src/interface/model/Property.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e79c497..1270149 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ozmap/ozmap-sdk", - "version": "1.1.3", + "version": "1.1.4", "description": "Use this sdk to access ozmap plataform and connect it to your own systems. ", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/interface/model/FTTHClient.ts b/src/interface/model/FTTHClient.ts index 7745103..40ef013 100644 --- a/src/interface/model/FTTHClient.ts +++ b/src/interface/model/FTTHClient.ts @@ -48,7 +48,7 @@ const BatchUpdateFTTHClientDTOSchema = FTTHClientDataSchema.pick({ certified: true, implanted: true, status: true, -}); +}).partial(); type FTTHClient = z.infer; type CreateFTTHClientDTO = z.infer; diff --git a/src/interface/model/Property.ts b/src/interface/model/Property.ts index 4fcd01f..45c7f1f 100644 --- a/src/interface/model/Property.ts +++ b/src/interface/model/Property.ts @@ -88,7 +88,7 @@ const UpdatePropertyDTOSchema = PropertyDataSchema.merge(z.object({ external_id: const BatchUpdatePropertyDTOSchema = PropertyDataSchema.pick({ potencyRead: true, -}); +}).required(); type Property = z.infer; type CreatePropertyDTO = z.infer; From 4be0010bca4e02cbf4e6c23ce8531110c6fe3e3e Mon Sep 17 00:00:00 2001 From: Leonardo Brandao Date: Thu, 4 Sep 2025 13:10:25 -0300 Subject: [PATCH 2/2] fix: change BatchUpdatePropertyDTOSchema to use partial type --- src/interface/model/Property.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/model/Property.ts b/src/interface/model/Property.ts index 45c7f1f..dc0f08e 100644 --- a/src/interface/model/Property.ts +++ b/src/interface/model/Property.ts @@ -88,7 +88,7 @@ const UpdatePropertyDTOSchema = PropertyDataSchema.merge(z.object({ external_id: const BatchUpdatePropertyDTOSchema = PropertyDataSchema.pick({ potencyRead: true, -}).required(); +}).partial(); type Property = z.infer; type CreatePropertyDTO = z.infer;