feat: status input on created and update

This commit is contained in:
Methapon2001 2024-04-05 10:44:13 +07:00
parent 36e00ce935
commit 4d8ea943a9
2 changed files with 6 additions and 0 deletions

View file

@ -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;

View file

@ -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;