Skip to content

Commit bd3f61a

Browse files
committed
rename FakerSchemaMapping to LlmFakerMapping
1 parent dd22acf commit bd3f61a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/compass-collection/src/components/mock-data-generator-modal/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

4242
export interface FakerFieldMapping {
4343
mongoType: MongoDBFieldType;

packages/compass-collection/src/modules/collection-tab.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import {
3636
import type { Document, MongoError } from 'mongodb';
3737
import { MockDataGeneratorStep } from '../components/mock-data-generator-modal/types';
3838
import 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
*/
703703
function transformFakerSchemaToObject(
704-
fakerSchema: FakerSchemaMapping[]
704+
fakerSchema: LlmFakerMapping[]
705705
): FakerSchema {
706706
const result: FakerSchema = {};
707707

@@ -762,7 +762,7 @@ function isValidFakerMethod(fakerMethod: string): boolean {
762762
*/
763763
const validateFakerSchema = (
764764
inputSchema: Record<string, FieldInfo>,
765-
fakerSchemaArray: FakerSchemaMapping[],
765+
fakerSchemaArray: LlmFakerMapping[],
766766
logger: Logger
767767
): FakerSchema => {
768768
// Transform to keyed object structure

0 commit comments

Comments
 (0)