mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
* fix(attio): use code subblock type for JSON input fields * fix(attio): correct people name attribute format in wand prompt example * fix(attio): improve wand prompt with correct attribute formats for all field types * fix(attio): use array format with full_name for personal-name attribute in wand prompt * fix(attio): use loose null checks to prevent sending null params to API * fix(attio): add offset param and make pagination fields advanced mode * fix(attio): remove redundant (optional) from placeholders * fix(attio): always send required workspace_access and workspace_member_access in create list * fix(attio): always send api_slug in create list, auto-generate from name if not provided * fix(attio): update api slug placeholder text * fix(tools): manage lifecycle for attio tools * updated docs * fix(attio): remove incorrect save button reference from setup instructions * fix(attio): log debug message when signature verification is skipped
30 lines
797 B
TypeScript
30 lines
797 B
TypeScript
import { AttioIcon } from '@/components/icons'
|
|
import { buildAttioTriggerSubBlocks, buildCommentOutputs } from '@/triggers/attio/utils'
|
|
import type { TriggerConfig } from '@/triggers/types'
|
|
|
|
/**
|
|
* Attio Comment Created Trigger
|
|
*
|
|
* Triggers when a comment is created in Attio.
|
|
*/
|
|
export const attioCommentCreatedTrigger: TriggerConfig = {
|
|
id: 'attio_comment_created',
|
|
name: 'Attio Comment Created',
|
|
provider: 'attio',
|
|
description: 'Trigger workflow when a new comment is created in Attio',
|
|
version: '1.0.0',
|
|
icon: AttioIcon,
|
|
|
|
subBlocks: buildAttioTriggerSubBlocks('attio_comment_created'),
|
|
|
|
outputs: buildCommentOutputs(),
|
|
|
|
webhook: {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
'Attio-Signature': 'hmac-sha256-signature',
|
|
},
|
|
},
|
|
}
|