refactor: update type
This commit is contained in:
parent
b804fafc42
commit
032674f579
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { Prisma, Status } from "@prisma/client";
|
import { CustomerType, Prisma, Status } from "@prisma/client";
|
||||||
import {
|
import {
|
||||||
Body,
|
Body,
|
||||||
Controller,
|
Controller,
|
||||||
|
|
@ -27,14 +27,14 @@ const MINIO_BUCKET = process.env.MINIO_BUCKET;
|
||||||
|
|
||||||
export type CustomerCreate = {
|
export type CustomerCreate = {
|
||||||
status?: Status;
|
status?: Status;
|
||||||
customerType: string;
|
customerType: CustomerType;
|
||||||
customerName: string;
|
customerName: string;
|
||||||
customerNameEN: string;
|
customerNameEN: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CustomerUpdate = {
|
export type CustomerUpdate = {
|
||||||
status?: "ACTIVE" | "INACTIVE";
|
status?: "ACTIVE" | "INACTIVE";
|
||||||
customerType?: string;
|
customerType: CustomerType;
|
||||||
customerName?: string;
|
customerName?: string;
|
||||||
customerNameEN?: string;
|
customerNameEN?: string;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue