File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/compass-collection/src
components/mock-data-generator-modal Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export type MockDataGeneratorState =
3737 | MockDataGeneratorCompletedState
3838 | MockDataGeneratorErrorState ;
3939
40- export type FakerSchemaMapping = MockDataSchemaResponse [ 'fields' ] [ number ] ;
40+ export type LlmFakerMapping = MockDataSchemaResponse [ 'fields' ] [ number ] ;
4141
4242export interface FakerFieldMapping {
4343 mongoType : MongoDBFieldType ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import {
3636import type { Document , MongoError } from 'mongodb' ;
3737import { MockDataGeneratorStep } from '../components/mock-data-generator-modal/types' ;
3838import type {
39- FakerSchemaMapping ,
39+ LlmFakerMapping ,
4040 FakerSchema ,
4141 MockDataGeneratorState ,
4242} from '../components/mock-data-generator-modal/types' ;
@@ -701,7 +701,7 @@ export const cancelSchemaAnalysis = (): CollectionThunkAction<void> => {
701701 * Moves fieldPath from object property to object key.
702702 */
703703function transformFakerSchemaToObject (
704- fakerSchema : FakerSchemaMapping [ ]
704+ fakerSchema : LlmFakerMapping [ ]
705705) : FakerSchema {
706706 const result : FakerSchema = { } ;
707707
@@ -762,7 +762,7 @@ function isValidFakerMethod(fakerMethod: string): boolean {
762762 */
763763const validateFakerSchema = (
764764 inputSchema : Record < string , FieldInfo > ,
765- fakerSchemaArray : FakerSchemaMapping [ ] ,
765+ fakerSchemaArray : LlmFakerMapping [ ] ,
766766 logger : Logger
767767) : FakerSchema => {
768768 // Transform to keyed object structure
You can’t perform that action at this time.
0 commit comments