diff --git a/src/stores/product-service/types.ts b/src/stores/product-service/types.ts index e6f07cfb..4e319d09 100644 --- a/src/stores/product-service/types.ts +++ b/src/stores/product-service/types.ts @@ -1,5 +1,5 @@ import { Status } from '../types'; -import { Pagination } from 'src/stores/types'; +import { Pagination, UpdatedBy, CreatedBy } from 'src/stores/types'; export type ServiceAndProduct = | (Service & { type: 'service' }) @@ -8,9 +8,9 @@ export type ServiceAndProduct = export interface Service { productTypeId: string; updatedAt: string; - updatedBy: string; + updatedBy: UpdatedBy; createdAt: string; - createdBy: string; + createdBy: CreatedBy; status: Status; attributes: Attributes; detail: string; @@ -19,6 +19,7 @@ export interface Service { id: string; work: Work[]; imageUrl: string; + registeredBranchId: string; } export interface WorkCreate { @@ -54,6 +55,7 @@ export interface ServiceCreate { image?: File; status?: Status; productTypeId: string; + registeredBranchId: string; } export interface Attributes { @@ -69,9 +71,9 @@ export type AdditionalType = 'string' | 'number' | 'date' | 'array'; export interface ServiceById { work: (Work & { productOnWork: ProductOnWork[] })[]; updatedAt: string; - updatedBy: string; + updatedBy: UpdatedBy; createdAt: string; - createdBy: string; + createdBy: CreatedBy; status: Status; attributes: Attributes; detail: string; @@ -80,14 +82,16 @@ export interface ServiceById { id: string; imageUrl: 'string'; productTypeId: string; + registeredBranchId: string; } export interface ProductOnWork { product: ProductList; + registeredBranchId: string; updatedAt: string; - updatedBy: string; + updatedBy: UpdatedBy; createdAt: string; - createdBy: string; + createdBy: CreatedBy; productId: string; workId: string; order: number; @@ -103,9 +107,9 @@ export interface WorkItems { export interface ProductList { remark: string; updatedAt: string; - updatedBy: string; + updatedBy: UpdatedBy; createdAt: string; - createdBy: string; + createdBy: CreatedBy; productTypeId: string; status: Status; serviceCharge: number; @@ -117,9 +121,11 @@ export interface ProductList { code: string; id: string; imageUrl: string; + registeredBranchId: string; } export interface ProductCreate { + registeredBranchId: string; productTypeId: string; remark: string; serviceCharge: number; @@ -154,9 +160,9 @@ export type ProductGroup = { detail: string; remark: string; status: Status; - createdBy: string; + createdBy: CreatedBy; createdAt: string; - updatedBy: string; + updatedBy: UpdatedBy; updatedAt: string; _count: { product: number; type: number; service: number }; };