fix: add page and pageSize

This commit is contained in:
ValdiANS
2026-04-20 01:13:51 +07:00
parent 267a6f37cc
commit 5b5113de6e
2 changed files with 8 additions and 0 deletions
@@ -1,6 +1,8 @@
import * as yup from 'yup';
export type DailyMarketingReportFilterType = {
page?: number;
pageSize?: number;
search: string | null;
area_id: string | null;
location_id: string | null;
@@ -14,6 +16,8 @@ export type DailyMarketingReportFilterType = {
};
export const DailyMarketingReportFilterSchema = yup.object({
page: yup.number().nullable(),
pageSize: yup.number().nullable(),
search: yup.string().nullable(),
area_id: yup.string().nullable(),
location_id: yup.string().nullable(),
@@ -1,6 +1,8 @@
import * as yup from 'yup';
export type HppPerKandangFilterType = {
page?: number;
pageSize?: number;
area_id: string | null;
location_id: string | null;
kandang_id: string | null;
@@ -12,6 +14,8 @@ export type HppPerKandangFilterType = {
};
export const HppPerKandangFilterSchema = yup.object({
page: yup.number().nullable(),
pageSize: yup.number().nullable(),
area_id: yup.string().nullable(),
location_id: yup.string().nullable(),
kandang_id: yup.string().nullable(),