File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
packages/compass-generative-ai/src Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -224,13 +224,13 @@ export const MockDataSchemaRawFieldMappingShape = z.record(
224224 } )
225225) ;
226226
227- export const MockDataSchemaRequestShape = z . object ( {
228- collectionName : z . string ( ) ,
229- databaseName : z . string ( ) ,
230- schema : MockDataSchemaRawFieldMappingShape ,
231- validationRules : z . record ( z . string ( ) , z . unknown ( ) ) . nullable ( ) . optional ( ) ,
232- includeSampleValues : z . boolean ( ) . default ( false ) ,
233- } ) ;
227+ export interface MockDataSchemaRequest {
228+ collectionName : string ;
229+ databaseName : string ;
230+ schema : MockDataSchemaRawFieldMapping ;
231+ validationRules ?: Record < string , unknown > | null ;
232+ includeSampleValues ?: boolean ;
233+ }
234234
235235export const MockDataSchemaResponseShape = z . object ( {
236236 content : z . object ( {
@@ -260,7 +260,6 @@ export type MockDataSchemaRawFieldMapping = z.infer<
260260 typeof MockDataSchemaRawFieldMappingShape
261261> ;
262262export type MockDataSchemaRawField = MockDataSchemaRawFieldMapping [ string ] ;
263- export type MockDataSchemaRequest = z . infer < typeof MockDataSchemaRequestShape > ;
264263export type MockDataSchemaResponse = z . infer <
265264 typeof MockDataSchemaResponseShape
266265> ;
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ export {
2525} from './components' ;
2626
2727export {
28- MockDataSchemaRequestShape ,
2928 MockDataSchemaRawFieldMappingShape ,
3029 MockDataSchemaResponseShape ,
3130} from './atlas-ai-service' ;
You can’t perform that action at this time.
0 commit comments