UNPKG

@aws-amplify/appsync-modelgen-plugin

Version:
11 lines 1.09 kB
import { CodeGenDirective, CodeGenField, CodeGenModel, CodeGenMutation, CodeGenQuery } from '../visitors/appsync-visitor'; export declare function addFieldToModel(model: CodeGenModel, field: CodeGenField): void; export declare function removeFieldFromModel(model: CodeGenModel, fieldName: string): void; export declare const getDirective: (fieldOrModel: CodeGenField | CodeGenModel) => (directiveName: string) => CodeGenDirective | undefined; export declare const getDirectives: (fieldOrModel: CodeGenField | CodeGenModel) => (directiveName: string) => CodeGenDirective[] | undefined; export declare function toCamelCase(words: string[]): string; export declare function getOtherSideBelongsToField(type: string, otherSideModel: CodeGenModel): CodeGenField | undefined; export declare function getModelPrimaryKeyComponentFields(model: CodeGenModel): CodeGenField[]; export declare function containsConversationDirective(queryField: CodeGenMutation): boolean; export declare function containsGenerationDirective(queryField: CodeGenQuery): boolean; //# sourceMappingURL=fieldUtils.d.ts.map