feat(FE-42): add Product API and form validation schema with product flags

This commit is contained in:
rstubryan
2025-10-07 21:21:24 +07:00
parent 26ec456937
commit 3241cc9868
4 changed files with 115 additions and 1 deletions
+12 -1
View File
@@ -29,6 +29,11 @@ import {
ProductCategory,
UpdateProductCategoryPayload,
} from '@/types/api/master-data/product-category';
import {
CreateProductPayload,
Product,
UpdateProductPayload,
} from '@/types/api/master-data/product';
export const UomApi = new BaseApiService<
Uom,
@@ -64,4 +69,10 @@ export const ProductCategoryApi = new BaseApiService<
ProductCategory,
CreateProductCategoryPayload,
UpdateProductCategoryPayload
>('/master-data/product-categories');
>('/master-data/product-categories');
export const ProductApi = new BaseApiService<
Product,
CreateProductPayload,
UpdateProductPayload
>('/master-data/products');