Skip to content

Commit bef44cb

Browse files
authored
Making timestamp optional for input (#107)
1 parent f00d012 commit bef44cb

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
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.74",
3+
"version": "0.0.75",
44
"description": "Vessel integrations",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

src/platforms/hubspot/schemas.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export const hubspotTaskUpsertSchema = z
300300
hs_task_subject: z.string(),
301301
hs_task_status: z.string(),
302302
hs_task_priority: z.string(),
303-
hs_timestamp: z.string(),
303+
hs_timestamp: z.string().optional(),
304304
hubspot_owner_id: z.string(),
305305
})
306306
.partial();
@@ -332,7 +332,7 @@ export type HubspotMeeting = z.infer<typeof hubspotMeetingSchema>;
332332

333333
export const hubspotMeetingUpsertSchema = z
334334
.object({
335-
hs_timestamp: z.string(),
335+
hs_timestamp: z.string().optional(),
336336
hs_meeting_title: z.string(),
337337
hs_meeting_body: z.string(),
338338
hs_meeting_location: z.string(),
@@ -433,11 +433,9 @@ export const hubspotCallCreateSchema = callPropertiesSchema
433433
hs_call_body: true,
434434
hs_call_title: true,
435435
hubspot_owner_id: true,
436+
hs_timestamp: true,
436437
})
437-
.partial()
438-
.extend({
439-
hs_timestamp: z.string(),
440-
});
438+
.partial();
441439
export type HubspotCallCreate = z.infer<typeof hubspotCallCreateSchema>;
442440

443441
export const hubspotCallUpdateSchema = callPropertiesSchema

0 commit comments

Comments
 (0)