mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
chore(triggers): deprecate trigger-save subblock (#4107)
* chore(triggers): deprecate trigger-save subblock Remove the defunct triggerSave subblock from all 102 trigger definitions, the SubBlockType union, SYSTEM_SUBBLOCK_IDS, tool params, and command templates. Retain the backwards-compat filter in getTrigger() for any legacy stored data. * fix(triggers): remove leftover no-op blocks.push() in linear utils * chore(triggers): remove orphaned triggerId property and stale comments
This commit is contained in:
@@ -423,7 +423,6 @@ export const {service}PollingTrigger: TriggerConfig = {
|
||||
subBlocks: [
|
||||
{ id: 'triggerCredentials', type: 'oauth-input', title: 'Credentials', serviceId: '{service}', requiredScopes: [], required: true, mode: 'trigger', supportsCredentialSets: true },
|
||||
// ... service-specific config fields (dropdowns, inputs, switches) ...
|
||||
{ id: 'triggerSave', type: 'trigger-save', title: '', hideFromPreview: true, mode: 'trigger', triggerId: '{service}_poller' },
|
||||
{ id: 'triggerInstructions', type: 'text', title: 'Setup Instructions', hideFromPreview: true, mode: 'trigger', defaultValue: '...' },
|
||||
],
|
||||
|
||||
@@ -486,7 +485,6 @@ Add to `helm/sim/values.yaml` under the existing polling cron jobs:
|
||||
- [ ] Handler implements `PollingProviderHandler` at `lib/webhooks/polling/{service}.ts`
|
||||
- [ ] Trigger config has `polling: true` and defines subBlocks manually (no `buildTriggerSubBlocks`)
|
||||
- [ ] Provider string matches across: trigger config, handler, `POLLING_PROVIDERS`, polling registry
|
||||
- [ ] `triggerSave` subBlock `triggerId` matches trigger config `id`
|
||||
- [ ] First poll seeds state and emits nothing
|
||||
- [ ] Added provider to `POLLING_PROVIDERS` in `triggers/constants.ts`
|
||||
- [ ] Added handler to `POLLING_HANDLERS` in `lib/webhooks/polling/registry.ts`
|
||||
|
||||
@@ -418,7 +418,6 @@ export const {service}PollingTrigger: TriggerConfig = {
|
||||
subBlocks: [
|
||||
{ id: 'triggerCredentials', type: 'oauth-input', title: 'Credentials', serviceId: '{service}', requiredScopes: [], required: true, mode: 'trigger', supportsCredentialSets: true },
|
||||
// ... service-specific config fields (dropdowns, inputs, switches) ...
|
||||
{ id: 'triggerSave', type: 'trigger-save', title: '', hideFromPreview: true, mode: 'trigger', triggerId: '{service}_poller' },
|
||||
{ id: 'triggerInstructions', type: 'text', title: 'Setup Instructions', hideFromPreview: true, mode: 'trigger', defaultValue: '...' },
|
||||
],
|
||||
|
||||
@@ -481,7 +480,6 @@ Add to `helm/sim/values.yaml` under the existing polling cron jobs:
|
||||
- [ ] Handler implements `PollingProviderHandler` at `lib/webhooks/polling/{service}.ts`
|
||||
- [ ] Trigger config has `polling: true` and defines subBlocks manually (no `buildTriggerSubBlocks`)
|
||||
- [ ] Provider string matches across: trigger config, handler, `POLLING_PROVIDERS`, polling registry
|
||||
- [ ] `triggerSave` subBlock `triggerId` matches trigger config `id`
|
||||
- [ ] First poll seeds state and emits nothing
|
||||
- [ ] Added provider to `POLLING_PROVIDERS` in `triggers/constants.ts`
|
||||
- [ ] Added handler to `POLLING_HANDLERS` in `lib/webhooks/polling/registry.ts`
|
||||
|
||||
@@ -399,7 +399,6 @@ describe.concurrent('Blocks Module', () => {
|
||||
'mcp-dynamic-args',
|
||||
'input-format',
|
||||
'response-format',
|
||||
'trigger-save',
|
||||
'file-upload',
|
||||
'input-mapping',
|
||||
'variables-input',
|
||||
|
||||
@@ -2561,7 +2561,6 @@ export const LinearV2Block: BlockConfig<LinearResponse> = {
|
||||
(sb) =>
|
||||
!sb.id?.startsWith('webhookUrlDisplay') &&
|
||||
!sb.id?.startsWith('webhookSecret') &&
|
||||
!sb.id?.startsWith('triggerSave') &&
|
||||
!sb.id?.startsWith('triggerInstructions') &&
|
||||
!sb.id?.startsWith('selectedTriggerId')
|
||||
),
|
||||
|
||||
@@ -153,10 +153,6 @@ export type SubBlockType =
|
||||
| 'response-format' // Response structure format
|
||||
| 'filter-builder' // Filter conditions builder
|
||||
| 'sort-builder' // Sort conditions builder
|
||||
/**
|
||||
* @deprecated Legacy trigger save subblock type.
|
||||
*/
|
||||
| 'trigger-save' // Trigger save button with validation
|
||||
| 'file-upload' // File uploader
|
||||
| 'input-mapping' // Map parent variables to child workflow input schema
|
||||
| 'variables-input' // Variable assignments for updating workflow variables
|
||||
@@ -414,8 +410,6 @@ export interface SubBlockConfig {
|
||||
dependsOn?: string[] | { all?: string[]; any?: string[] }
|
||||
// Copyable-text specific: Use webhook URL from webhook management hook
|
||||
useWebhookUrl?: boolean
|
||||
// Trigger-save specific: The trigger ID for validation and saving
|
||||
triggerId?: string
|
||||
// Dropdown/Combobox: Function to fetch options dynamically
|
||||
// Works with both 'dropdown' (select-only) and 'combobox' (editable with expression support)
|
||||
fetchOptions?: (blockId: string) => Promise<Array<{ label: string; id: string }>>
|
||||
|
||||
@@ -869,7 +869,6 @@ const EXCLUDED_SUBBLOCK_TYPES = new Set([
|
||||
'eval-input',
|
||||
'webhook-config',
|
||||
'schedule-info',
|
||||
'trigger-save',
|
||||
'input-format',
|
||||
'response-format',
|
||||
'mcp-server-selector',
|
||||
|
||||
@@ -47,14 +47,6 @@ export const airtableWebhookTrigger: TriggerConfig = {
|
||||
defaultValue: false,
|
||||
mode: 'trigger',
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'airtable_webhook',
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -56,13 +56,6 @@ export function buildAttioTriggerSubBlocks(triggerId: string): SubBlockConfig[]
|
||||
required: true,
|
||||
condition: { field: 'selectedTriggerId', value: triggerId },
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: 'Save',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
condition: { field: 'selectedTriggerId', value: triggerId },
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -38,18 +38,6 @@ export const calendlyInviteeCanceledTrigger: TriggerConfig = {
|
||||
value: 'calendly_invitee_canceled',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'calendly_invitee_canceled',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'calendly_invitee_canceled',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -47,18 +47,6 @@ export const calendlyInviteeCreatedTrigger: TriggerConfig = {
|
||||
value: 'calendly_invitee_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'calendly_invitee_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'calendly_invitee_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -38,18 +38,6 @@ export const calendlyRoutingFormSubmittedTrigger: TriggerConfig = {
|
||||
value: 'calendly_routing_form_submitted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'calendly_routing_form_submitted',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'calendly_routing_form_submitted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -37,18 +37,6 @@ export const calendlyWebhookTrigger: TriggerConfig = {
|
||||
value: 'calendly_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'calendly_webhook',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'calendly_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -39,18 +39,6 @@ export const circlebackMeetingCompletedTrigger: TriggerConfig = {
|
||||
value: 'circleback_meeting_completed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'circleback_meeting_completed',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'circleback_meeting_completed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -39,18 +39,6 @@ export const circlebackMeetingNotesTrigger: TriggerConfig = {
|
||||
value: 'circleback_meeting_notes',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'circleback_meeting_notes',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'circleback_meeting_notes',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -48,18 +48,6 @@ export const circlebackWebhookTrigger: TriggerConfig = {
|
||||
value: 'circleback_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'circleback_webhook',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'circleback_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -11,7 +11,6 @@ export const SYSTEM_SUBBLOCK_IDS: string[] = [
|
||||
'samplePayload', // Example payload display
|
||||
'setupScript', // Setup script code (e.g., Apps Script)
|
||||
'scheduleInfo', // Schedule status display (next run, last run)
|
||||
'triggerSave', // UI-only save button — stores no config data
|
||||
]
|
||||
|
||||
/**
|
||||
|
||||
@@ -91,18 +91,6 @@ export const fathomNewMeetingTrigger: TriggerConfig = {
|
||||
value: 'fathom_new_meeting',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'fathom_new_meeting',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'fathom_new_meeting',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -91,18 +91,6 @@ export const fathomWebhookTrigger: TriggerConfig = {
|
||||
value: 'fathom_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'fathom_webhook',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'fathom_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -30,14 +30,6 @@ export const firefliesTranscriptionCompleteTrigger: TriggerConfig = {
|
||||
required: false,
|
||||
mode: 'trigger',
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'fireflies_transcription_complete',
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -110,14 +110,6 @@ export const genericWebhookTrigger: TriggerConfig = {
|
||||
'Define the expected JSON input schema for this webhook (optional). Use type "file[]" for file uploads.',
|
||||
mode: 'trigger',
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'generic_webhook',
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -75,18 +75,6 @@ export const githubIssueClosedTrigger: TriggerConfig = {
|
||||
value: 'github_issue_closed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_issue_closed',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_issue_closed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -75,18 +75,6 @@ export const githubIssueCommentTrigger: TriggerConfig = {
|
||||
value: 'github_issue_comment',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_issue_comment',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_issue_comment',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -96,18 +96,6 @@ export const githubIssueOpenedTrigger: TriggerConfig = {
|
||||
value: 'github_issue_opened',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_issue_opened',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_issue_opened',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -76,18 +76,6 @@ export const githubPRClosedTrigger: TriggerConfig = {
|
||||
value: 'github_pr_closed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_pr_closed',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_pr_closed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -75,18 +75,6 @@ export const githubPRCommentTrigger: TriggerConfig = {
|
||||
value: 'github_pr_comment',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_pr_comment',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_pr_comment',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -75,18 +75,6 @@ export const githubPRMergedTrigger: TriggerConfig = {
|
||||
value: 'github_pr_merged',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_pr_merged',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_pr_merged',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -75,18 +75,6 @@ export const githubPROpenedTrigger: TriggerConfig = {
|
||||
value: 'github_pr_opened',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_pr_opened',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_pr_opened',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -76,18 +76,6 @@ export const githubPRReviewedTrigger: TriggerConfig = {
|
||||
value: 'github_pr_reviewed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_pr_reviewed',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_pr_reviewed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -75,18 +75,6 @@ export const githubPushTrigger: TriggerConfig = {
|
||||
value: 'github_push',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_push',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_push',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -75,18 +75,6 @@ export const githubReleasePublishedTrigger: TriggerConfig = {
|
||||
value: 'github_release_published',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_release_published',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_release_published',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -72,18 +72,6 @@ export const githubWebhookTrigger: TriggerConfig = {
|
||||
value: 'github_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_webhook',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -76,18 +76,6 @@ export const githubWorkflowRunTrigger: TriggerConfig = {
|
||||
value: 'github_workflow_run',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'github_workflow_run',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'github_workflow_run',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -152,14 +152,6 @@ Return ONLY the Gmail search query, no explanations or markdown.`,
|
||||
required: false,
|
||||
mode: 'trigger',
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'gmail_poller',
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -71,14 +71,6 @@ export const googleCalendarPollingTrigger: TriggerConfig = {
|
||||
required: false,
|
||||
mode: 'trigger',
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'google_calendar_poller',
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -92,14 +92,6 @@ export const googleDrivePollingTrigger: TriggerConfig = {
|
||||
required: false,
|
||||
mode: 'trigger',
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'google_drive_poller',
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -98,14 +98,6 @@ export const googleSheetsPollingTrigger: TriggerConfig = {
|
||||
required: false,
|
||||
mode: 'trigger',
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'google_sheets_poller',
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -59,14 +59,6 @@ export const googleFormsWebhookTrigger: TriggerConfig = {
|
||||
defaultValue: true,
|
||||
mode: 'trigger',
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'google_forms_webhook',
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -38,18 +38,6 @@ export const grainHighlightCreatedTrigger: TriggerConfig = {
|
||||
value: 'grain_highlight_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'grain_highlight_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'grain_highlight_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -38,18 +38,6 @@ export const grainHighlightUpdatedTrigger: TriggerConfig = {
|
||||
value: 'grain_highlight_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'grain_highlight_updated',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'grain_highlight_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -39,18 +39,6 @@ export const grainItemAddedTrigger: TriggerConfig = {
|
||||
value: 'grain_item_added',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'grain_item_added',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'grain_item_added',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -39,18 +39,6 @@ export const grainItemUpdatedTrigger: TriggerConfig = {
|
||||
value: 'grain_item_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'grain_item_updated',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'grain_item_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -38,18 +38,6 @@ export const grainRecordingCreatedTrigger: TriggerConfig = {
|
||||
value: 'grain_recording_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'grain_recording_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'grain_recording_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -38,18 +38,6 @@ export const grainRecordingUpdatedTrigger: TriggerConfig = {
|
||||
value: 'grain_recording_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'grain_recording_updated',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'grain_recording_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -38,18 +38,6 @@ export const grainStoryCreatedTrigger: TriggerConfig = {
|
||||
value: 'grain_story_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'grain_story_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'grain_story_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -39,18 +39,6 @@ export const grainWebhookTrigger: TriggerConfig = {
|
||||
value: 'grain_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'grain_webhook',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'grain_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotCompanyCreatedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_company_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_company_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_company_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotCompanyDeletedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_company_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_company_deleted',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_company_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotCompanyMergedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_company_merged',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_company_merged',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_company_merged',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -107,17 +107,6 @@ export const hubspotCompanyPropertyChangedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_company_property_changed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_company_property_changed',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_company_property_changed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotCompanyRestoredTrigger: TriggerConfig = {
|
||||
value: 'hubspot_company_restored',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_company_restored',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_company_restored',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotContactCreatedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_contact_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_contact_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_contact_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotContactDeletedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_contact_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_contact_deleted',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_contact_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotContactMergedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_contact_merged',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_contact_merged',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_contact_merged',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -94,17 +94,6 @@ export const hubspotContactPrivacyDeletedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_contact_privacy_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_contact_privacy_deleted',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_contact_privacy_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -107,17 +107,6 @@ export const hubspotContactPropertyChangedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_contact_property_changed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_contact_property_changed',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_contact_property_changed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotContactRestoredTrigger: TriggerConfig = {
|
||||
value: 'hubspot_contact_restored',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_contact_restored',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_contact_restored',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotConversationCreationTrigger: TriggerConfig = {
|
||||
value: 'hubspot_conversation_creation',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_conversation_creation',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_conversation_creation',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotConversationDeletionTrigger: TriggerConfig = {
|
||||
value: 'hubspot_conversation_deletion',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_conversation_deletion',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_conversation_deletion',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotConversationNewMessageTrigger: TriggerConfig = {
|
||||
value: 'hubspot_conversation_new_message',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_conversation_new_message',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_conversation_new_message',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -94,17 +94,6 @@ export const hubspotConversationPrivacyDeletionTrigger: TriggerConfig = {
|
||||
value: 'hubspot_conversation_privacy_deletion',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_conversation_privacy_deletion',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_conversation_privacy_deletion',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -107,17 +107,6 @@ export const hubspotConversationPropertyChangedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_conversation_property_changed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_conversation_property_changed',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_conversation_property_changed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotDealCreatedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_deal_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_deal_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_deal_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotDealDeletedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_deal_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_deal_deleted',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_deal_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotDealMergedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_deal_merged',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_deal_merged',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_deal_merged',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -107,17 +107,6 @@ export const hubspotDealPropertyChangedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_deal_property_changed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_deal_property_changed',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_deal_property_changed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotDealRestoredTrigger: TriggerConfig = {
|
||||
value: 'hubspot_deal_restored',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_deal_restored',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_deal_restored',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotTicketCreatedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_ticket_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_ticket_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_ticket_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotTicketDeletedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_ticket_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_ticket_deleted',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_ticket_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotTicketMergedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_ticket_merged',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_ticket_merged',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_ticket_merged',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -107,17 +107,6 @@ export const hubspotTicketPropertyChangedTrigger: TriggerConfig = {
|
||||
value: 'hubspot_ticket_property_changed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_ticket_property_changed',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_ticket_property_changed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotTicketRestoredTrigger: TriggerConfig = {
|
||||
value: 'hubspot_ticket_restored',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_ticket_restored',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_ticket_restored',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -93,17 +93,6 @@ export const hubspotWebhookTrigger: TriggerConfig = {
|
||||
value: 'hubspot_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
mode: 'trigger',
|
||||
triggerId: 'hubspot_webhook',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'hubspot_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -192,14 +192,6 @@ Return ONLY valid JSON, no explanations or markdown.`,
|
||||
mode: 'trigger',
|
||||
},
|
||||
// Instructions
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'imap_poller',
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -73,9 +73,11 @@ export function getTrigger(triggerId: string): TriggerConfig {
|
||||
throw new Error(`Trigger not found: ${triggerId}`)
|
||||
}
|
||||
|
||||
// Clone and filter out deprecated trigger-save subblocks
|
||||
// Filter out deprecated trigger-save subblocks from legacy stored data
|
||||
const subBlocks = trigger.subBlocks
|
||||
.filter((subBlock) => subBlock.id !== 'triggerSave' && subBlock.type !== 'trigger-save')
|
||||
.filter(
|
||||
(subBlock) => subBlock.id !== 'triggerSave' && (subBlock.type as string) !== 'trigger-save'
|
||||
)
|
||||
.map((subBlock) => namespaceSubBlockId(subBlock, triggerId))
|
||||
|
||||
const clonedTrigger = { ...trigger, subBlocks }
|
||||
@@ -154,7 +156,7 @@ export interface BuildTriggerSubBlocksOptions {
|
||||
|
||||
/**
|
||||
* Generic builder for trigger subBlocks.
|
||||
* Creates a consistent structure: [dropdown?] -> webhookUrl -> extraFields -> save -> instructions
|
||||
* Creates a consistent structure: [dropdown?] -> webhookUrl -> extraFields -> instructions
|
||||
*
|
||||
* Usage:
|
||||
* - Primary trigger: `buildTriggerSubBlocks({ ...options, includeDropdown: true })`
|
||||
|
||||
@@ -56,18 +56,6 @@ export const jiraIssueCommentedTrigger: TriggerConfig = {
|
||||
value: 'jira_issue_commented',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'jira_issue_commented',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'jira_issue_commented',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -65,18 +65,6 @@ export const jiraIssueCreatedTrigger: TriggerConfig = {
|
||||
value: 'jira_issue_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'jira_issue_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'jira_issue_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -56,18 +56,6 @@ export const jiraIssueDeletedTrigger: TriggerConfig = {
|
||||
value: 'jira_issue_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'jira_issue_deleted',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'jira_issue_deleted',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -70,18 +70,6 @@ export const jiraIssueUpdatedTrigger: TriggerConfig = {
|
||||
value: 'jira_issue_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'jira_issue_updated',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'jira_issue_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const jiraWebhookTrigger: TriggerConfig = {
|
||||
value: 'jira_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'jira_webhook',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'jira_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -56,18 +56,6 @@ export const jiraWorklogCreatedTrigger: TriggerConfig = {
|
||||
value: 'jira_worklog_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'jira_worklog_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'jira_worklog_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearCommentCreatedTrigger: TriggerConfig = {
|
||||
value: 'linear_comment_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_comment_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_comment_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearCommentUpdatedTrigger: TriggerConfig = {
|
||||
value: 'linear_comment_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_comment_updated',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_comment_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearCustomerRequestCreatedTrigger: TriggerConfig = {
|
||||
value: 'linear_customer_request_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_customer_request_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_customer_request_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearCustomerRequestUpdatedTrigger: TriggerConfig = {
|
||||
value: 'linear_customer_request_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_customer_request_updated',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_customer_request_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearCycleCreatedTrigger: TriggerConfig = {
|
||||
value: 'linear_cycle_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_cycle_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_cycle_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearCycleUpdatedTrigger: TriggerConfig = {
|
||||
value: 'linear_cycle_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_cycle_updated',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_cycle_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -53,18 +53,6 @@ export const linearIssueCreatedTrigger: TriggerConfig = {
|
||||
value: 'linear_issue_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_issue_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_issue_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearIssueRemovedTrigger: TriggerConfig = {
|
||||
value: 'linear_issue_removed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_issue_removed',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_issue_removed',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearIssueUpdatedTrigger: TriggerConfig = {
|
||||
value: 'linear_issue_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_issue_updated',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_issue_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearLabelCreatedTrigger: TriggerConfig = {
|
||||
value: 'linear_label_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_label_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_label_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearLabelUpdatedTrigger: TriggerConfig = {
|
||||
value: 'linear_label_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_label_updated',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_label_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearProjectCreatedTrigger: TriggerConfig = {
|
||||
value: 'linear_project_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_project_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_project_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearProjectUpdateCreatedTrigger: TriggerConfig = {
|
||||
value: 'linear_project_update_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_project_update_created',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_project_update_created',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -43,18 +43,6 @@ export const linearProjectUpdatedTrigger: TriggerConfig = {
|
||||
value: 'linear_project_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_project_updated',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_project_updated',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -126,7 +126,7 @@ export const linearV2TriggerOptions = [
|
||||
* Builds the complete subBlocks array for a v2 Linear trigger.
|
||||
* Webhooks are managed via API, so no webhook URL is displayed.
|
||||
*
|
||||
* Structure: [dropdown?] -> apiKey -> triggerSave -> instructions
|
||||
* Structure: [dropdown?] -> apiKey -> instructions
|
||||
*/
|
||||
export function buildLinearV2SubBlocks(options: {
|
||||
triggerId: string
|
||||
@@ -170,16 +170,6 @@ export function buildLinearV2SubBlocks(options: {
|
||||
condition: { field: 'selectedTriggerId', value: triggerId },
|
||||
})
|
||||
|
||||
blocks.push({
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId,
|
||||
condition: { field: 'selectedTriggerId', value: triggerId },
|
||||
})
|
||||
|
||||
blocks.push({
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -44,18 +44,6 @@ export const linearWebhookTrigger: TriggerConfig = {
|
||||
value: 'linear_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'linear_webhook',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'linear_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -72,18 +72,6 @@ export const microsoftTeamsChatSubscriptionTrigger: TriggerConfig = {
|
||||
value: 'microsoftteams_chat_subscription',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'microsoftteams_chat_subscription',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'microsoftteams_chat_subscription',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -51,18 +51,6 @@ export const microsoftTeamsWebhookTrigger: TriggerConfig = {
|
||||
value: 'microsoftteams_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'microsoftteams_webhook',
|
||||
condition: {
|
||||
field: 'selectedTriggerId',
|
||||
value: 'microsoftteams_webhook',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -111,14 +111,6 @@ export const outlookPollingTrigger: TriggerConfig = {
|
||||
required: false,
|
||||
mode: 'trigger',
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'outlook_poller',
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
@@ -20,14 +20,6 @@ export const rssPollingTrigger: TriggerConfig = {
|
||||
required: true,
|
||||
mode: 'trigger',
|
||||
},
|
||||
{
|
||||
id: 'triggerSave',
|
||||
title: '',
|
||||
type: 'trigger-save',
|
||||
hideFromPreview: true,
|
||||
mode: 'trigger',
|
||||
triggerId: 'rss_poller',
|
||||
},
|
||||
{
|
||||
id: 'triggerInstructions',
|
||||
title: 'Setup Instructions',
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user