@@ -14,13 +14,14 @@ export const DEMO_REQUEST_REGION_VALUES = [
1414 'other' ,
1515] as const
1616
17- export const DEMO_REQUEST_USER_COUNT_VALUES = [
17+ export const DEMO_REQUEST_COMPANY_SIZE_VALUES = [
1818 '1_10' ,
1919 '11_50' ,
2020 '51_200' ,
2121 '201_500' ,
2222 '501_1000' ,
23- '1000_plus' ,
23+ '1001_10000' ,
24+ '10000_plus' ,
2425] as const
2526
2627export const DEMO_REQUEST_REGION_OPTIONS = [
@@ -32,13 +33,14 @@ export const DEMO_REQUEST_REGION_OPTIONS = [
3233 { value : 'other' , label : 'Other' } ,
3334] as const
3435
35- export const DEMO_REQUEST_USER_COUNT_OPTIONS = [
36- { value : '1_10' , label : '1-10' } ,
37- { value : '11_50' , label : '11-50' } ,
38- { value : '51_200' , label : '51-200' } ,
39- { value : '201_500' , label : '201-500' } ,
40- { value : '501_1000' , label : '501-1,000' } ,
41- { value : '1000_plus' , label : '1,000+' } ,
36+ export const DEMO_REQUEST_COMPANY_SIZE_OPTIONS = [
37+ { value : '1_10' , label : '1–10' } ,
38+ { value : '11_50' , label : '11–50' } ,
39+ { value : '51_200' , label : '51–200' } ,
40+ { value : '201_500' , label : '201–500' } ,
41+ { value : '501_1000' , label : '501–1,000' } ,
42+ { value : '1001_10000' , label : '1,001–10,000' } ,
43+ { value : '10000_plus' , label : '10,000+' } ,
4244] as const
4345
4446export const demoRequestSchema = z . object ( {
@@ -74,8 +76,8 @@ export const demoRequestSchema = z.object({
7476 region : z . enum ( DEMO_REQUEST_REGION_VALUES , {
7577 errorMap : ( ) => ( { message : 'Please select a region' } ) ,
7678 } ) ,
77- userCount : z . enum ( DEMO_REQUEST_USER_COUNT_VALUES , {
78- errorMap : ( ) => ( { message : 'Please select the number of users ' } ) ,
79+ companySize : z . enum ( DEMO_REQUEST_COMPANY_SIZE_VALUES , {
80+ errorMap : ( ) => ( { message : 'Please select company size ' } ) ,
7981 } ) ,
8082 details : z . string ( ) . trim ( ) . min ( 1 , 'Details are required' ) . max ( 2000 ) ,
8183} )
@@ -86,6 +88,6 @@ export function getDemoRequestRegionLabel(value: DemoRequestPayload['region']):
8688 return DEMO_REQUEST_REGION_OPTIONS . find ( ( option ) => option . value === value ) ?. label ?? value
8789}
8890
89- export function getDemoRequestUserCountLabel ( value : DemoRequestPayload [ 'userCount ' ] ) : string {
90- return DEMO_REQUEST_USER_COUNT_OPTIONS . find ( ( option ) => option . value === value ) ?. label ?? value
91+ export function getDemoRequestCompanySizeLabel ( value : DemoRequestPayload [ 'companySize ' ] ) : string {
92+ return DEMO_REQUEST_COMPANY_SIZE_OPTIONS . find ( ( option ) => option . value === value ) ?. label ?? value
9193}
0 commit comments