diff --git a/src/controllers/branch/branch-controller.ts b/src/controllers/branch/branch-controller.ts index 79af679..8d30d10 100644 --- a/src/controllers/branch/branch-controller.ts +++ b/src/controllers/branch/branch-controller.ts @@ -21,6 +21,7 @@ import { RequestWithUser } from "../../interfaces/user"; type BranchCreate = { code?: string; + status?: Status; taxNo: string; nameEN: string; name: string; @@ -40,6 +41,7 @@ type BranchCreate = { type BranchUpdate = { code?: string; + status?: "ACTIVE" | "INACTIVE"; taxNo?: string; nameEN?: string; name?: string; diff --git a/src/controllers/user-controller.ts b/src/controllers/user-controller.ts index c0fe6be..1863c21 100644 --- a/src/controllers/user-controller.ts +++ b/src/controllers/user-controller.ts @@ -27,6 +27,8 @@ if (!process.env.MINIO_BUCKET) { const MINIO_BUCKET = process.env.MINIO_BUCKET; type UserCreate = { + status?: Status; + keycloakId: string; userType: string; @@ -61,6 +63,8 @@ type UserCreate = { }; type UserUpdate = { + status?: "ACTIVE" | "INACTIVE"; + userType?: string; userRole?: string;