From d8c77b18b30c9fa9892133d95ca60c57c681bf78 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 28 Jun 2024 09:38:35 +0700 Subject: [PATCH] refactor!: update type --- src/stores/address/index.ts | 6 +++--- src/stores/branch-contact/types.ts | 2 +- src/stores/branch/types.ts | 2 +- src/stores/customer/types.ts | 4 ++-- src/stores/employee/types.ts | 6 +++--- src/stores/product-service/types.ts | 12 ++++++------ src/stores/user/types.ts | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/stores/address/index.ts b/src/stores/address/index.ts index 16167fab..6688eeda 100644 --- a/src/stores/address/index.ts +++ b/src/stores/address/index.ts @@ -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; diff --git a/src/stores/branch-contact/types.ts b/src/stores/branch-contact/types.ts index 6e5279de..bb1f735d 100644 --- a/src/stores/branch-contact/types.ts +++ b/src/stores/branch-contact/types.ts @@ -2,7 +2,7 @@ export type BranchContact = { id: string; telephoneNo: string; updatedAt: string; - updateBy: string; + updatedBy: string; createdAt: string; createdBy: string; branchId: string; diff --git a/src/stores/branch/types.ts b/src/stores/branch/types.ts index 6e957a07..7cedf929 100644 --- a/src/stores/branch/types.ts +++ b/src/stores/branch/types.ts @@ -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; diff --git a/src/stores/customer/types.ts b/src/stores/customer/types.ts index 99c32e13..ad2f3043 100644 --- a/src/stores/customer/types.ts +++ b/src/stores/customer/types.ts @@ -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; diff --git a/src/stores/employee/types.ts b/src/stores/employee/types.ts index 08419b75..8c079d9c 100644 --- a/src/stores/employee/types.ts +++ b/src/stores/employee/types.ts @@ -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; diff --git a/src/stores/product-service/types.ts b/src/stores/product-service/types.ts index 92cbe9f7..00a6c11c 100644 --- a/src/stores/product-service/types.ts +++ b/src/stores/product-service/types.ts @@ -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; }; diff --git a/src/stores/user/types.ts b/src/stores/user/types.ts index 2676ead6..23c2f2af 100644 --- a/src/stores/user/types.ts +++ b/src/stores/user/types.ts @@ -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;