Refacto workflow folders (#9302)
- Create separated folders for sections - Add components - Add utils and clean old ones - Add constants - Rename search variables folder and components Next steps: - clean hooks - clean states
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
import { WorkflowStepType } from '@/workflow/types/Workflow';
|
||||
import {
|
||||
IconAddressBook,
|
||||
IconComponent,
|
||||
IconSettingsAutomation,
|
||||
} from 'twenty-ui';
|
||||
|
||||
export const ACTIONS: Array<{
|
||||
label: string;
|
||||
type: WorkflowStepType;
|
||||
icon: IconComponent;
|
||||
}> = [
|
||||
{
|
||||
label: 'Serverless Function',
|
||||
type: 'CODE',
|
||||
icon: IconSettingsAutomation,
|
||||
},
|
||||
{
|
||||
label: 'Send Email',
|
||||
type: 'SEND_EMAIL',
|
||||
icon: IconSettingsAutomation,
|
||||
},
|
||||
{
|
||||
label: 'Create Record',
|
||||
type: 'CREATE_RECORD',
|
||||
icon: IconAddressBook,
|
||||
},
|
||||
{
|
||||
label: 'Update Record',
|
||||
type: 'UPDATE_RECORD',
|
||||
icon: IconAddressBook,
|
||||
},
|
||||
{
|
||||
label: 'Delete Record',
|
||||
type: 'DELETE_RECORD',
|
||||
icon: IconAddressBook,
|
||||
},
|
||||
];
|
||||
@@ -1 +0,0 @@
|
||||
export const CREATE_STEP_STEP_ID = 'create-step';
|
||||
@@ -1 +0,0 @@
|
||||
export const EMPTY_TRIGGER_STEP_ID = 'empty-trigger';
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
import { WorkflowManualTriggerAvailability } from '@/workflow/types/Workflow';
|
||||
import { IconCheckbox, IconComponent, IconSquare } from 'twenty-ui';
|
||||
|
||||
export const MANUAL_TRIGGER_AVAILABILITY_OPTIONS: Array<{
|
||||
label: string;
|
||||
value: WorkflowManualTriggerAvailability;
|
||||
Icon: IconComponent;
|
||||
}> = [
|
||||
{
|
||||
label: 'When record(s) are selected',
|
||||
value: 'WHEN_RECORD_SELECTED',
|
||||
Icon: IconCheckbox,
|
||||
},
|
||||
{
|
||||
label: 'When no record(s) are selected',
|
||||
value: 'EVERYWHERE',
|
||||
Icon: IconSquare,
|
||||
},
|
||||
];
|
||||
@@ -1,16 +0,0 @@
|
||||
import { SelectOption } from '@/ui/input/components/Select';
|
||||
|
||||
export const OBJECT_EVENT_TRIGGERS: Array<SelectOption<string>> = [
|
||||
{
|
||||
label: 'Created',
|
||||
value: 'created',
|
||||
},
|
||||
{
|
||||
label: 'Updated',
|
||||
value: 'updated',
|
||||
},
|
||||
{
|
||||
label: 'Deleted',
|
||||
value: 'deleted',
|
||||
},
|
||||
];
|
||||
@@ -1 +0,0 @@
|
||||
export const TRIGGER_STEP_ID = 'trigger';
|
||||
@@ -1,19 +0,0 @@
|
||||
import { WorkflowTriggerType } from '@/workflow/types/Workflow';
|
||||
import { IconComponent, IconSettingsAutomation } from 'twenty-ui';
|
||||
|
||||
export const TRIGGER_TYPES: Array<{
|
||||
name: string;
|
||||
type: WorkflowTriggerType;
|
||||
icon: IconComponent;
|
||||
}> = [
|
||||
{
|
||||
name: 'Database Event',
|
||||
type: 'DATABASE_EVENT',
|
||||
icon: IconSettingsAutomation,
|
||||
},
|
||||
{
|
||||
name: 'Manual Trigger',
|
||||
type: 'MANUAL',
|
||||
icon: IconSettingsAutomation,
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user