refactor!: update type
This commit is contained in:
parent
f183216a1f
commit
d8c77b18b3
7 changed files with 17 additions and 17 deletions
|
|
@ -4,7 +4,7 @@ import { api } from 'src/boot/axios';
|
|||
|
||||
export interface SubDistrict {
|
||||
updatedAt: string;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
createdAt: string;
|
||||
createdBy: string;
|
||||
districtId: string;
|
||||
|
|
@ -16,7 +16,7 @@ export interface SubDistrict {
|
|||
|
||||
export interface District {
|
||||
updatedAt: string;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
createdAt: string;
|
||||
createdBy: string;
|
||||
provinceId: string;
|
||||
|
|
@ -27,7 +27,7 @@ export interface District {
|
|||
|
||||
export interface Province {
|
||||
updatedAt: string;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
createdAt: string;
|
||||
createdBy: string;
|
||||
nameEN: string;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ export type BranchContact = {
|
|||
id: string;
|
||||
telephoneNo: string;
|
||||
updatedAt: string;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
createdAt: string;
|
||||
createdBy: string;
|
||||
branchId: string;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ export type Branch = {
|
|||
district: District | null;
|
||||
province: Province | null;
|
||||
updatedAt: string;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
createdAt: string;
|
||||
createdBy: string;
|
||||
status: Status;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export type Customer = {
|
|||
status: Status;
|
||||
createdBy: string | null;
|
||||
createdAt: string;
|
||||
updateBy: string | null;
|
||||
updatedBy: string | null;
|
||||
updatedAt: string;
|
||||
taxNo: string;
|
||||
personName: string;
|
||||
|
|
@ -52,7 +52,7 @@ export type CustomerBranch = {
|
|||
status: Status;
|
||||
createdBy: string | null;
|
||||
createdAt: string;
|
||||
updateBy: string | null;
|
||||
updatedBy: string | null;
|
||||
updatedAt: string;
|
||||
province: Province;
|
||||
district: District;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export type Employee = {
|
|||
createdAt: Date;
|
||||
createdBy: string;
|
||||
updatedAt: Date;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
subDistrict: SubDistrict | null;
|
||||
district: District | null;
|
||||
province: Province | null;
|
||||
|
|
@ -129,7 +129,7 @@ export type EmployeeUpdate = {
|
|||
|
||||
export type EmployeeCheckup = {
|
||||
updatedAt: Date;
|
||||
updateBy: Date;
|
||||
updatedBy: Date;
|
||||
createdAt: Date;
|
||||
createdBy: string;
|
||||
coverageExpireDate: Date;
|
||||
|
|
@ -159,7 +159,7 @@ export type EmployeeCheckupCreate = {
|
|||
|
||||
export type EmployeeWork = {
|
||||
updatedAt: Date;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
createdAt: Date;
|
||||
createdBy: string;
|
||||
workEndDate: Date;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export type ServiceAndProduct =
|
|||
export interface Service {
|
||||
productTypeId: string;
|
||||
updatedAt: string;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
createdAt: string;
|
||||
createdBy: string;
|
||||
status: Status;
|
||||
|
|
@ -37,7 +37,7 @@ export interface Work {
|
|||
serviceId: string;
|
||||
createdBy: string | null;
|
||||
createdAt: string;
|
||||
updateBy: string | null;
|
||||
updatedBy: string | null;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ export type AdditionalType = 'string' | 'number' | 'date' | 'array';
|
|||
export interface ServiceById {
|
||||
work: (Work & { productOnWork: ProductOnWork[] })[];
|
||||
updatedAt: string;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
createdAt: string;
|
||||
createdBy: string;
|
||||
status: Status;
|
||||
|
|
@ -85,7 +85,7 @@ export interface ServiceById {
|
|||
export interface ProductOnWork {
|
||||
product: ProductList;
|
||||
updatedAt: string;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
createdAt: string;
|
||||
createdBy: string;
|
||||
productId: string;
|
||||
|
|
@ -103,7 +103,7 @@ export interface WorkItems {
|
|||
export interface ProductList {
|
||||
remark: string;
|
||||
updatedAt: string;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
createdAt: string;
|
||||
createdBy: string;
|
||||
productTypeId: string;
|
||||
|
|
@ -156,7 +156,7 @@ export type ProductGroup = {
|
|||
status: Status;
|
||||
createdBy: string;
|
||||
createdAt: string;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
updatedAt: string;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ export type User = {
|
|||
district: District | null;
|
||||
province: Province | null;
|
||||
updatedAt: string;
|
||||
updateBy: string;
|
||||
updatedBy: string;
|
||||
createdAt: string;
|
||||
createdBy: string;
|
||||
status: Status;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue