Skip to content

Commit 98b4a3e

Browse files
authored
Making HS properties partial (#111)
1 parent c4fd75e commit 98b4a3e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vesselapi/integrations",
3-
"version": "0.0.78",
3+
"version": "0.0.79",
44
"description": "Vessel integrations",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

src/platforms/hubspot/schemas.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ const contactPropertiesSchema = z
137137
company: z.string(),
138138
hubspot_owner_id: z.string(),
139139
})
140+
.partial()
140141
.passthrough();
141142
export const contactProperties = Object.keys(contactPropertiesSchema.shape);
142143

@@ -178,6 +179,7 @@ const dealPropertiesSchema = z
178179
hs_is_closed: hubspotBooleanSchema,
179180
hubspot_owner_id: z.string(),
180181
})
182+
.partial()
181183
.passthrough();
182184
export const dealProperties = Object.keys(dealPropertiesSchema.shape);
183185

@@ -218,6 +220,7 @@ const companyPropertiesSchema = z
218220
description: z.string(),
219221
hubspot_owner_id: z.string(),
220222
})
223+
.partial()
221224
.passthrough();
222225
export const companyProperties = Object.keys(companyPropertiesSchema.shape);
223226

@@ -256,6 +259,7 @@ const notePropertiesSchema = z
256259
hubspot_owner_id: hubspotIdSchema,
257260
hs_note_body: z.string(),
258261
})
262+
.partial()
259263
.passthrough();
260264
export const noteProperties = Object.keys(notePropertiesSchema.shape);
261265

@@ -287,6 +291,7 @@ const taskPropertiesSchema = z
287291
hs_task_priority: z.string(),
288292
hubspot_owner_id: hubspotIdSchema,
289293
})
294+
.partial()
290295
.passthrough();
291296
export const taskProperties = Object.keys(taskPropertiesSchema.shape);
292297

@@ -322,6 +327,7 @@ const meetingPropertiesSchema = z
322327
hs_meeting_end_time: custom.date().optional(),
323328
hubspot_owner_id: hubspotIdSchema,
324329
})
330+
.partial()
325331
.passthrough();
326332
export const meetingProperties = Object.keys(meetingPropertiesSchema.shape);
327333

@@ -371,6 +377,7 @@ const emailPropertiesSchema = z
371377
hs_email_status: z.string(),
372378
hubspot_owner_id: hubspotIdSchema,
373379
})
380+
.partial()
374381
.passthrough();
375382
export const emailProperties = Object.keys(emailPropertiesSchema.shape);
376383

@@ -426,6 +433,7 @@ const callPropertiesSchema = z
426433
hs_call_title: z.string(),
427434
hubspot_owner_id: hubspotIdSchema,
428435
})
436+
.partial()
429437
.passthrough();
430438
export const callProperties = Object.keys(callPropertiesSchema.shape);
431439

0 commit comments

Comments
 (0)