mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
14 lines
362 B
TypeScript
14 lines
362 B
TypeScript
import * as yup from 'yup';
|
|
|
|
export const dateRange = {
|
|
startAt: yup.number().integer().required(),
|
|
endAt: yup.number().integer().moreThan(yup.ref('startAt')).required(),
|
|
};
|
|
|
|
export const pageInfo = {
|
|
query: yup.string(),
|
|
page: yup.number().integer().positive(),
|
|
pageSize: yup.number().integer().positive().min(1).max(200),
|
|
orderBy: yup.string(),
|
|
};
|