UNPKG

@vendure/cli

Version:

A modern, headless ecommerce framework

26 lines (25 loc) 918 B
import { CliCommand, CliCommandReturnVal } from '../../../shared/cli-command'; import { EntityRef } from '../../../shared/entity-ref'; import { VendurePluginRef } from '../../../shared/vendure-plugin-ref'; export interface AddEntityOptions { plugin?: VendurePluginRef; className: string; fileName: string; translationFileName: string; features: { customFields: boolean; translatable: boolean; }; config?: string; isNonInteractive?: boolean; pluginName?: string; customFields?: boolean; translatable?: boolean; } export declare const addEntityCommand: CliCommand<Record<string, any>, CliCommandReturnVal<{ entityRef: EntityRef; }>>; export declare function addEntity(options?: Partial<AddEntityOptions>): Promise<CliCommandReturnVal<{ entityRef: EntityRef; }>>; export declare function getCustomEntityName(_cancelledMessage: string): Promise<string>;