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 = { type BranchCreate = {
code?: string; code?: string;
status?: Status;
taxNo: string; taxNo: string;
nameEN: string; nameEN: string;
name: string; name: string;
@ -40,6 +41,7 @@ type BranchCreate = {
type BranchUpdate = { type BranchUpdate = {
code?: string; code?: string;
status?: "ACTIVE" | "INACTIVE";
taxNo?: string; taxNo?: string;
nameEN?: string; nameEN?: string;
name?: string; name?: string;

View file

@ -27,6 +27,8 @@ if (!process.env.MINIO_BUCKET) {
const MINIO_BUCKET = process.env.MINIO_BUCKET; const MINIO_BUCKET = process.env.MINIO_BUCKET;
type UserCreate = { type UserCreate = {
status?: Status;
keycloakId: string; keycloakId: string;
userType: string; userType: string;
@ -61,6 +63,8 @@ type UserCreate = {
}; };
type UserUpdate = { type UserUpdate = {
status?: "ACTIVE" | "INACTIVE";
userType?: string; userType?: string;
userRole?: string; userRole?: string;