refactor: simplify workflow assignee types and remove legacy user/role identification fields

This commit is contained in:
Yashwin 2026-05-14 14:17:52 +05:30
parent da289b14de
commit 8f5638b4f9
2 changed files with 1 additions and 4 deletions

View File

@ -359,7 +359,7 @@ export const WorkflowDefinitionModal = ({
step_type: s.step_type,
assignee_type: s.assignee.type,
assignee_role_ids: s.assignee.role_ids ?? undefined,
assignee_user_ids: s.assignee.user_ids ?? s.assignee.ids ?? undefined,
assignee_user_ids: s.assignee.user_ids ?? undefined,
available_actions: s.available_actions || [],
requires_signature: s.requires_signature || false,
requires_comment: s.requires_comment || false,

View File

@ -7,10 +7,7 @@ export interface WorkflowStep {
step_type: 'initial' | 'task' | 'approval' | 'terminal';
assignee: {
type: 'role' | 'user' | 'originator';
id?: string | null;
ids?: string[] | null;
user_ids?: string[] | null;
role?: string[] | string | null;
role_ids?: string[] | null;
};
available_actions: string[];