refactor: simplify workflow assignee types and remove legacy user/role identification fields
This commit is contained in:
parent
da289b14de
commit
8f5638b4f9
@ -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,
|
||||
|
||||
@ -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[];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user