@@ -89,16 +89,16 @@ const entityTypesRequiringLink = ['transaction', 'event', 'account'] as const;
8989type EntityTypeRequiringLink = ( typeof entityTypesRequiringLink ) [ number ] ;
9090
9191const tableEntityStepCommonShape = {
92- name : z . string ( ) . min ( 1 ) . regex ( dataModelNameRegex , {
93- error : 'Table/name: Only lower case alphanumeric and _, must start with a letter' ,
94- } ) ,
9592 alias : z . string ( ) ,
9693 belongsToTableId : z . string ( ) ,
9794} ;
9895
9996export const createTableEntityStepSchema = z
10097 . object ( {
10198 ...tableEntityStepCommonShape ,
99+ name : z . string ( ) . min ( 1 ) . regex ( dataModelNameRegex , {
100+ error : 'Table/name: Only lower case alphanumeric and _, must start with a letter' ,
101+ } ) ,
102102 entityType : z . enum ( ftmEntities ) ,
103103 subEntity : z . enum ( ftmEntityPersonOptions ) . optional ( ) ,
104104 } )
@@ -121,6 +121,7 @@ export const createTableEntityStepSchema = z
121121const editTableEntityStepSchema = z
122122 . object ( {
123123 ...tableEntityStepCommonShape ,
124+ name : z . string ( ) . min ( 1 ) ,
124125 entityType : z . union ( [ z . enum ( ftmEntities ) , z . literal ( 'unset' ) ] ) ,
125126 subEntity : z . union ( [ z . enum ( ftmEntityPersonOptions ) , z . literal ( 'unset' ) ] ) . optional ( ) ,
126127 } )
0 commit comments