@@ -97,29 +97,31 @@ export const opportunityCreateParseSchema = opportunityCreateSchema
9797
9898 return val ;
9999 } , opportunityCreateSchema . shape . keywords ) ,
100- meta : opportunityCreateSchema . shape . meta . extend ( {
101- teamSize : opportunityCreateSchema . shape . meta . shape . teamSize . optional ( ) ,
102- salary : z
103- . object ( {
104- min : z . preprocess ( ( val : bigint ) => {
105- if ( typeof val === 'undefined' ) {
106- return val ;
107- }
100+ meta : opportunityCreateSchema . shape . meta
101+ . extend ( {
102+ teamSize : opportunityCreateSchema . shape . meta . shape . teamSize . optional ( ) ,
103+ salary : z
104+ . object ( {
105+ min : z . preprocess ( ( val : bigint ) => {
106+ if ( typeof val === 'undefined' ) {
107+ return val ;
108+ }
108109
109- return parseBigInt ( val ) ;
110- } , z . number ( ) . int ( ) . nonnegative ( ) . max ( 100_000_000 ) . optional ( ) ) ,
111- max : z . preprocess ( ( val : bigint ) => {
112- if ( typeof val === 'undefined' ) {
113- return val ;
114- }
110+ return parseBigInt ( val ) ;
111+ } , z . number ( ) . int ( ) . nonnegative ( ) . max ( 100_000_000 ) . optional ( ) ) ,
112+ max : z . preprocess ( ( val : bigint ) => {
113+ if ( typeof val === 'undefined' ) {
114+ return val ;
115+ }
115116
116- return parseBigInt ( val ) ;
117- } , z . number ( ) . int ( ) . nonnegative ( ) . max ( 100_000_000 ) . optional ( ) ) ,
118- period : z . number ( ) ,
119- } )
120- . partial ( )
121- . optional ( ) ,
122- } ) ,
117+ return parseBigInt ( val ) ;
118+ } , z . number ( ) . int ( ) . nonnegative ( ) . max ( 100_000_000 ) . optional ( ) ) ,
119+ period : z . number ( ) ,
120+ } )
121+ . partial ( )
122+ . optional ( ) ,
123+ } )
124+ . partial ( ) ,
123125 } ) ;
124126
125127export const opportunityEditSchema = z
0 commit comments