From 249f7d59f5b0ebc16039804074ad6787075e4e52 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Mon, 28 Oct 2024 10:54:17 +0700 Subject: [PATCH] fix: type wf function --- src/stores/types.ts | 2 ++ src/stores/workflow-template/types.ts | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/stores/types.ts b/src/stores/types.ts index 7a1ab7a5..92c5425c 100644 --- a/src/stores/types.ts +++ b/src/stores/types.ts @@ -49,6 +49,8 @@ export type UpdatedBy = { }; export interface CreatedBy { + selectedImage: string; + namePrefix: string; updatedByUserId: string; updatedAt: string; createdByUserId: string; diff --git a/src/stores/workflow-template/types.ts b/src/stores/workflow-template/types.ts index f6a629d7..f8319bb2 100644 --- a/src/stores/workflow-template/types.ts +++ b/src/stores/workflow-template/types.ts @@ -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; + }[]; +};