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 {
|
export interface SubDistrict {
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
districtId: string;
|
districtId: string;
|
||||||
|
|
@ -16,7 +16,7 @@ export interface SubDistrict {
|
||||||
|
|
||||||
export interface District {
|
export interface District {
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
provinceId: string;
|
provinceId: string;
|
||||||
|
|
@ -27,7 +27,7 @@ export interface District {
|
||||||
|
|
||||||
export interface Province {
|
export interface Province {
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
nameEN: string;
|
nameEN: string;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ export type BranchContact = {
|
||||||
id: string;
|
id: string;
|
||||||
telephoneNo: string;
|
telephoneNo: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
branchId: string;
|
branchId: string;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ export type Branch = {
|
||||||
district: District | null;
|
district: District | null;
|
||||||
province: Province | null;
|
province: Province | null;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
status: Status;
|
status: Status;
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ export type Customer = {
|
||||||
status: Status;
|
status: Status;
|
||||||
createdBy: string | null;
|
createdBy: string | null;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
updateBy: string | null;
|
updatedBy: string | null;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
taxNo: string;
|
taxNo: string;
|
||||||
personName: string;
|
personName: string;
|
||||||
|
|
@ -52,7 +52,7 @@ export type CustomerBranch = {
|
||||||
status: Status;
|
status: Status;
|
||||||
createdBy: string | null;
|
createdBy: string | null;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
updateBy: string | null;
|
updatedBy: string | null;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
province: Province;
|
province: Province;
|
||||||
district: District;
|
district: District;
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ export type Employee = {
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
subDistrict: SubDistrict | null;
|
subDistrict: SubDistrict | null;
|
||||||
district: District | null;
|
district: District | null;
|
||||||
province: Province | null;
|
province: Province | null;
|
||||||
|
|
@ -129,7 +129,7 @@ export type EmployeeUpdate = {
|
||||||
|
|
||||||
export type EmployeeCheckup = {
|
export type EmployeeCheckup = {
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
updateBy: Date;
|
updatedBy: Date;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
coverageExpireDate: Date;
|
coverageExpireDate: Date;
|
||||||
|
|
@ -159,7 +159,7 @@ export type EmployeeCheckupCreate = {
|
||||||
|
|
||||||
export type EmployeeWork = {
|
export type EmployeeWork = {
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
workEndDate: Date;
|
workEndDate: Date;
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ export type ServiceAndProduct =
|
||||||
export interface Service {
|
export interface Service {
|
||||||
productTypeId: string;
|
productTypeId: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
status: Status;
|
status: Status;
|
||||||
|
|
@ -37,7 +37,7 @@ export interface Work {
|
||||||
serviceId: string;
|
serviceId: string;
|
||||||
createdBy: string | null;
|
createdBy: string | null;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
updateBy: string | null;
|
updatedBy: string | null;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -69,7 +69,7 @@ export type AdditionalType = 'string' | 'number' | 'date' | 'array';
|
||||||
export interface ServiceById {
|
export interface ServiceById {
|
||||||
work: (Work & { productOnWork: ProductOnWork[] })[];
|
work: (Work & { productOnWork: ProductOnWork[] })[];
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
status: Status;
|
status: Status;
|
||||||
|
|
@ -85,7 +85,7 @@ export interface ServiceById {
|
||||||
export interface ProductOnWork {
|
export interface ProductOnWork {
|
||||||
product: ProductList;
|
product: ProductList;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
productId: string;
|
productId: string;
|
||||||
|
|
@ -103,7 +103,7 @@ export interface WorkItems {
|
||||||
export interface ProductList {
|
export interface ProductList {
|
||||||
remark: string;
|
remark: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
productTypeId: string;
|
productTypeId: string;
|
||||||
|
|
@ -156,7 +156,7 @@ export type ProductGroup = {
|
||||||
status: Status;
|
status: Status;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ export type User = {
|
||||||
district: District | null;
|
district: District | null;
|
||||||
province: Province | null;
|
province: Province | null;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
updateBy: string;
|
updatedBy: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
createdBy: string;
|
createdBy: string;
|
||||||
status: Status;
|
status: Status;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue