feat: status input on created and update
This commit is contained in:
parent
36e00ce935
commit
4d8ea943a9
2 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue