mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
fix: add page and pageSize
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
|
|
||||||
export type DailyMarketingReportFilterType = {
|
export type DailyMarketingReportFilterType = {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
search: string | null;
|
search: string | null;
|
||||||
area_id: string | null;
|
area_id: string | null;
|
||||||
location_id: string | null;
|
location_id: string | null;
|
||||||
@@ -14,6 +16,8 @@ export type DailyMarketingReportFilterType = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const DailyMarketingReportFilterSchema = yup.object({
|
export const DailyMarketingReportFilterSchema = yup.object({
|
||||||
|
page: yup.number().nullable(),
|
||||||
|
pageSize: yup.number().nullable(),
|
||||||
search: yup.string().nullable(),
|
search: yup.string().nullable(),
|
||||||
area_id: yup.string().nullable(),
|
area_id: yup.string().nullable(),
|
||||||
location_id: yup.string().nullable(),
|
location_id: yup.string().nullable(),
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
|
|
||||||
export type HppPerKandangFilterType = {
|
export type HppPerKandangFilterType = {
|
||||||
|
page?: number;
|
||||||
|
pageSize?: number;
|
||||||
area_id: string | null;
|
area_id: string | null;
|
||||||
location_id: string | null;
|
location_id: string | null;
|
||||||
kandang_id: string | null;
|
kandang_id: string | null;
|
||||||
@@ -12,6 +14,8 @@ export type HppPerKandangFilterType = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const HppPerKandangFilterSchema = yup.object({
|
export const HppPerKandangFilterSchema = yup.object({
|
||||||
|
page: yup.number().nullable(),
|
||||||
|
pageSize: yup.number().nullable(),
|
||||||
area_id: yup.string().nullable(),
|
area_id: yup.string().nullable(),
|
||||||
location_id: yup.string().nullable(),
|
location_id: yup.string().nullable(),
|
||||||
kandang_id: yup.string().nullable(),
|
kandang_id: yup.string().nullable(),
|
||||||
|
|||||||
Reference in New Issue
Block a user