mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE): Add filter schemas and types for master data components
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { string, object } from 'yup';
|
||||
|
||||
export const KandangFilterSchema = object().shape({
|
||||
location_id: string().nullable(),
|
||||
pic_id: string().nullable(),
|
||||
});
|
||||
|
||||
export type KandangFilterType = {
|
||||
location_id: string | null;
|
||||
pic_id: string | null;
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
import { string, object } from 'yup';
|
||||
|
||||
export const LocationFilterSchema = object().shape({
|
||||
area_id: string().nullable(),
|
||||
});
|
||||
|
||||
export type LocationFilterType = {
|
||||
area_id: string | null;
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
import { string, object } from 'yup';
|
||||
|
||||
export const ProductFilterSchema = object().shape({
|
||||
product_category_id: string().nullable(),
|
||||
});
|
||||
|
||||
export type ProductFilterType = {
|
||||
product_category_id: string | null;
|
||||
};
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import { string, object } from 'yup';
|
||||
|
||||
export const ProductionStandardFilterSchema = object().shape({
|
||||
project_category: string().nullable(),
|
||||
});
|
||||
|
||||
export type ProductionStandardFilterType = {
|
||||
project_category: string | null;
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
import { string, boolean, object } from 'yup';
|
||||
|
||||
export const SupplierFilterSchema = object().shape({
|
||||
category_id: string().nullable(),
|
||||
flag: boolean().nullable(),
|
||||
});
|
||||
|
||||
export type SupplierFilterType = {
|
||||
category_id: string | null;
|
||||
flag: boolean | null;
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
import { string, boolean, object } from 'yup';
|
||||
|
||||
export const WarehouseFilterSchema = object().shape({
|
||||
area_id: string().nullable(),
|
||||
active_project_flock: boolean().nullable(),
|
||||
});
|
||||
|
||||
export type WarehouseFilterType = {
|
||||
area_id: string | null;
|
||||
active_project_flock: boolean | null;
|
||||
};
|
||||
Reference in New Issue
Block a user