Files
twenty/packages/twenty-front/src/modules/workflow/constants/Actions.ts
T
Thomas Trompette 5c565345ae Add delete record action (#8908)
<img width="1272" alt="Capture d’écran 2024-12-05 à 18 04 19"
src="https://github.com/user-attachments/assets/dcbcc761-2f6d-4b6d-9e10-0f5b25d12c39">

- Adding new action
- Adding tests
- Moving into action folder
2024-12-06 13:02:17 +01:00

39 lines
735 B
TypeScript

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: 'RECORD_CRUD.CREATE',
icon: IconAddressBook,
},
{
label: 'Update Record',
type: 'RECORD_CRUD.UPDATE',
icon: IconAddressBook,
},
{
label: 'Delete Record',
type: 'RECORD_CRUD.DELETE',
icon: IconAddressBook,
},
];