fix: type wf function

This commit is contained in:
puriphatt 2024-10-28 10:54:17 +07:00
parent bb87a6b8c6
commit 249f7d59f5
2 changed files with 20 additions and 1 deletions

View file

@ -49,6 +49,8 @@ export type UpdatedBy = {
};
export interface CreatedBy {
selectedImage: string;
namePrefix: string;
updatedByUserId: string;
updatedAt: string;
createdByUserId: string;

View file

@ -19,6 +19,7 @@ export type WorkflowStep = {
export type WorkflowTemplate = {
id: string;
name: string;
registeredBranchId: string;
step: WorkflowStep[];
status: Status;
statusOrder: number;
@ -30,11 +31,27 @@ export type WorkflowTemplate = {
export type WorkflowTemplatePayload = {
registeredBranchId?: string;
status: Status;
name: string;
step: {
name: string;
type?: string;
type?: string | null;
value?: string[];
responsiblePersonId?: string[];
}[];
};
export type WorkflowUserInTable = {
name: string;
resposiblePerson: {
id: string;
selectedImage?: string;
gender: string;
namePrefix?: string | null;
firstName: string;
lastName: string;
firstNameEN: string;
lastNameEN: string;
code: string;
}[];
};