fix: type wf function
This commit is contained in:
parent
bb87a6b8c6
commit
249f7d59f5
2 changed files with 20 additions and 1 deletions
|
|
@ -49,6 +49,8 @@ export type UpdatedBy = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface CreatedBy {
|
export interface CreatedBy {
|
||||||
|
selectedImage: string;
|
||||||
|
namePrefix: string;
|
||||||
updatedByUserId: string;
|
updatedByUserId: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
createdByUserId: string;
|
createdByUserId: string;
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ export type WorkflowStep = {
|
||||||
export type WorkflowTemplate = {
|
export type WorkflowTemplate = {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
registeredBranchId: string;
|
||||||
step: WorkflowStep[];
|
step: WorkflowStep[];
|
||||||
status: Status;
|
status: Status;
|
||||||
statusOrder: number;
|
statusOrder: number;
|
||||||
|
|
@ -30,11 +31,27 @@ export type WorkflowTemplate = {
|
||||||
|
|
||||||
export type WorkflowTemplatePayload = {
|
export type WorkflowTemplatePayload = {
|
||||||
registeredBranchId?: string;
|
registeredBranchId?: string;
|
||||||
|
status: Status;
|
||||||
name: string;
|
name: string;
|
||||||
step: {
|
step: {
|
||||||
name: string;
|
name: string;
|
||||||
type?: string;
|
type?: string | null;
|
||||||
value?: string[];
|
value?: string[];
|
||||||
responsiblePersonId?: 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;
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue