Skip to content

Commit ac391d5

Browse files
committed
fix(integrations): default Intercom message recipients to a documented type, accept boolean done on Pipedrive updates, keep the Pipedrive file_type output
1 parent 94e95b4 commit ac391d5

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/sim/blocks/blocks/intercom.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,9 +855,9 @@ Return ONLY the subject line - no explanations.`,
855855
title: 'To Type',
856856
type: 'dropdown',
857857
options: [
858-
{ label: 'Contact', id: 'contact' },
859858
{ label: 'User', id: 'user' },
860859
{ label: 'Lead', id: 'lead' },
860+
{ label: 'Contact', id: 'contact' },
861861
],
862862
required: true,
863863
condition: {

‎apps/sim/tools/pipedrive/types.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export const PIPEDRIVE_FILE_OUTPUT_PROPERTIES = {
107107
id: { type: 'number', description: 'File ID' },
108108
name: { type: 'string', description: 'File name' },
109109
file_name: { type: 'string', description: 'Stored file name' },
110+
file_type: { type: 'string', description: 'File type/extension' },
110111
file_size: { type: 'number', description: 'File size in bytes' },
111112
add_time: { type: 'string', description: 'When the file was uploaded' },
112113
update_time: { type: 'string', description: 'When the file was last updated' },

‎apps/sim/tools/pipedrive/update_activity.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const pipedriveUpdateActivityTool: ToolConfig<
9696
if (params.due_date) body.due_date = params.due_date
9797
if (params.due_time) body.due_time = params.due_time
9898
if (params.duration) body.duration = params.duration
99-
if (params.done !== undefined) body.done = params.done === '1' || params.done === 'true'
99+
if (params.done !== undefined) body.done = [true, 1, '1', 'true'].includes(params.done)
100100
if (params.note) body.note = params.note
101101

102102
return body

0 commit comments

Comments
 (0)