diff --git a/package.json b/package.json index ac4f293b..4224f302 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vesselapi/integrations", - "version": "1.0.37", + "version": "1.0.38", "description": "Vessel integrations", "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/src/platforms/hubspot/schemas.ts b/src/platforms/hubspot/schemas.ts index 4590fd74..53819927 100644 --- a/src/platforms/hubspot/schemas.ts +++ b/src/platforms/hubspot/schemas.ts @@ -204,7 +204,7 @@ export type HubspotContactUpdate = z.infer< const dealPropertiesSchema = z.object({ amount: z.union([z.string(), z.number()]).nullable(), dealname: z.string().nullable(), - closedate: custom.date().nullable(), + closedate: custom.date().or(z.string()).nullable(), dealstage: z.string().nullable(), hs_deal_stage_probability: z.union([z.string(), z.number()]).nullable(), hs_projected_amount: z.union([z.string(), z.number()]).nullable(),