@@ -11,10 +11,6 @@ export const SORT_COLUMNS = [
1111
1212export type SortColumn = ( typeof SORT_COLUMNS ) [ number ] ;
1313
14- export const INDEX_OPERATORS = [ "gt" , "lt" , "eq" ] as const ;
15-
16- export type IndexOperator = ( typeof INDEX_OPERATORS ) [ number ] ;
17-
1814export const DEFAULT_PAGE_SIZE = 20 ;
1915
2016export const searchDeclarationsSchema = z . object ( {
@@ -23,8 +19,6 @@ export const searchDeclarationsSchema = z.object({
2319 year : z . coerce . number ( ) . int ( ) . min ( 2018 ) . max ( 2100 ) . optional ( ) ,
2420 dateFrom : z . string ( ) . date ( ) . optional ( ) . or ( z . literal ( "" ) ) ,
2521 dateTo : z . string ( ) . date ( ) . optional ( ) . or ( z . literal ( "" ) ) ,
26- index : z . coerce . number ( ) . int ( ) . min ( 0 ) . max ( 100 ) . optional ( ) ,
27- indexOperator : z . enum ( INDEX_OPERATORS ) . optional ( ) ,
2822 status : z . enum ( [ "draft" , "submitted" ] ) . optional ( ) ,
2923 page : z . coerce . number ( ) . int ( ) . min ( 1 ) . default ( 1 ) ,
3024 pageSize : z . coerce . number ( ) . int ( ) . min ( 10 ) . max ( 100 ) . default ( DEFAULT_PAGE_SIZE ) ,
@@ -43,8 +37,6 @@ export const searchDeclarationsFormSchema = z.object({
4337 year : z . string ( ) . optional ( ) ,
4438 dateFrom : z . string ( ) . optional ( ) ,
4539 dateTo : z . string ( ) . optional ( ) ,
46- index : z . string ( ) . optional ( ) ,
47- indexOperator : z . enum ( [ "" , ...INDEX_OPERATORS ] ) . optional ( ) ,
4840 status : z . enum ( [ "" , "draft" , "submitted" ] ) . optional ( ) ,
4941} ) ;
5042
0 commit comments