400 workflows webhooks trigger (#11041)
https://github.com/user-attachments/assets/dc0ece22-4d87-417f-b9e1-a11c3fd52ce8
This commit is contained in:
@ -7,6 +7,7 @@ import {
|
||||
IconRobot,
|
||||
IconSettingsAutomation,
|
||||
IconUserCircle,
|
||||
IconWebhook,
|
||||
} from 'twenty-ui';
|
||||
|
||||
export const getActorSourceMultiSelectOptions = (
|
||||
@ -53,6 +54,13 @@ export const getActorSourceMultiSelectOptions = (
|
||||
AvatarIcon: IconSettingsAutomation,
|
||||
isIconInverted: true,
|
||||
},
|
||||
{
|
||||
id: 'WEBHOOK',
|
||||
name: 'Webhook',
|
||||
isSelected: selectedSourceNames.includes('WEBHOOK'),
|
||||
AvatarIcon: IconWebhook,
|
||||
isIconInverted: true,
|
||||
},
|
||||
{
|
||||
id: 'SYSTEM',
|
||||
name: 'System',
|
||||
|
||||
@ -286,15 +286,18 @@ const FieldActorSourceSchema = z.union([
|
||||
z.literal('MANUAL'),
|
||||
z.literal('SYSTEM'),
|
||||
z.literal('WORKFLOW'),
|
||||
z.literal('WEBHOOK'),
|
||||
]);
|
||||
|
||||
export const FieldActorValueSchema = z.object({
|
||||
source: FieldActorSourceSchema,
|
||||
workspaceMemberId: z.string().nullable(),
|
||||
name: z.string(),
|
||||
context: z.object({
|
||||
provider: z.nativeEnum(ConnectedAccountProvider).optional(),
|
||||
}),
|
||||
context: z
|
||||
.object({
|
||||
provider: z.nativeEnum(ConnectedAccountProvider).optional(),
|
||||
})
|
||||
.nullable(),
|
||||
});
|
||||
export type FieldActorValue = z.infer<typeof FieldActorValueSchema>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user