UNPKG

generator-begcode

Version:

Spring Boot + Angular/React/Vue in one handy generator

18 lines (17 loc) 1.32 kB
import type { PrimaryKey } from '../../../lib/types/application/entity.js'; import type { FieldType } from '../../../lib/application/field-types.js'; import type { Field } from '../../../lib/types/application/field.js'; export declare const filterRelevantRelationships: (relationships: any) => any; export declare const generateEntityClientImports: (relationships: any, dto?: any, clientFramework?: any) => Map<any, any>; export declare const generateEntityClientEnumImports: (fields: Field[], clientFramework: string) => Map<any, any>; export declare const generateTestEntityId: (primaryKey: FieldType | PrimaryKey, index?: 0 | 1 | "random", wrapped?: boolean) => string | number; export declare const generateTsTestEntityForFields: (fields: Field[]) => Record<string, string | number | boolean>; export declare const stringifyTsEntity: (data: Record<string, any>, options?: { sep?: string; }) => string; export declare const generateTestEntity: (references: any, index?: 0 | 1 | "random") => { [k: string]: any; }; export declare const generateTypescriptTestEntity: (references: any, additionalFields?: {}) => string; export declare const generateTestEntityPrimaryKey: (primaryKey: any, index: 0 | 1 | "random") => string; export declare const getEntityParentPathAddition: (clientRootFolder: string) => string;