///
export interface ftCreateProjectArgs {
org: string;
}
export interface ftModelArgs {
withjsonannotation: boolean;
}
export interface ftInitArgs {
withjsonannotation: boolean;
}
export interface ftComponentArgs {
stless: boolean;
stfull: boolean;
sidemenu: boolean;
}
export interface TsModelArgs {
stringid: boolean;
controlfields: boolean;
codeid: boolean;
uuid: boolean;
autogenerate: boolean;
empty: boolean;
inherited: boolean;
}
export interface TsReportTemplateArgs {
boletobancario: string;
}
export interface TsEnvArgs {
environment: string;
install: boolean;
}
export interface TsDbArgs {
mariadb: boolean;
mysql: boolean;
mssql: boolean;
oraclesid: boolean;
oracleservicename: boolean;
postgres: boolean;
sqlite: boolean;
main: boolean;
}
export interface NgPageArgs {
crud: boolean;
}
export interface NgServiceArgs {
crud: boolean;
route: string;
}
export interface TsControllerArgs {
crudc: boolean;
crud: boolean;
cron: boolean;
custom: boolean;
stringid: boolean;
uuid: boolean;
codeid: boolean;
controlfields: boolean;
autogenerate: boolean;
}
export interface NameConfig {
table: string;
model: string;
file: string;
path: string;
}
export declare enum TypeSnippets {
Ts = 0,
Ng = 1,
Ft = 2
}
export declare enum TypeDir {
main = 0,
api = 1,
dist = 2,
apicontroller = 3,
apishared = 4,
apimodels = 5,
apiviews = 6,
apireport = 7,
template = 8,
vscodedef = 9,
ngservice = 10,
ngpage = 11,
startyproject = 12,
sql = 13,
sqlDest = 14,
reportTemplate = 15,
ftSource = 16,
ftLib = 17,
ftApp = 18,
ftModules = 19,
ftModels = 20,
ftShared = 21,
ftComponents = 22,
pySource = 23
}
export declare enum TypeTemplate {
tsdb_mariadb = 0,
tsdb_mysql = 1,
tsdb_mssql = 2,
tsdb_oracleservicename = 3,
tsdb_oraclesid = 4,
tsdb_postgres = 5,
tsdb_sqlite = 6,
tspm2_json = 7,
tsapp_json = 8,
tsmodel_empty = 9,
tsview = 10,
tsmodel_codeid_control_fields = 11,
tsmodel_codeid = 12,
tsmodel_control_fields = 13,
tsmodel_control_fields_auto_incrment = 14,
tsmodel_control_fields_inherited = 15,
tsmodel_stringid_control_fields = 16,
tsmodel_stringid = 17,
tsmodel_uuid_control_fields = 18,
tsmodel_uuid = 19,
tsmodel = 20,
tsmodel_auto_increment = 21,
tsmodel_inherited = 22,
tsjob = 23,
tsjob_websocket = 24,
jrboleto_bancario = 25,
ngsnippets_websocket_server = 26,
tscontroller_cron = 27,
tscontroller_crud = 28,
tscontroller_custom = 29,
tssnippets_codeid = 30,
tssnippets_http_delete = 31,
tssnippets_http_get = 32,
tssnippets_http_post = 33,
tssnippets_http_put = 34,
tssnippets_stringid = 35,
tssnippets_uuid = 36,
tssnippets_evt = 37,
tssnippets_evtvoid = 38,
tssnippets_cronmethod = 39,
tssnippets_evtwebsocketclientemessage = 40,
tssnippets_evtwebsocketclienteconnection = 41,
tssnippets_evtwebsocketclienteclose = 42,
tssnippets_evttokenaccessbeforevalidation = 43,
tssnippets_evttokenaccessaftervalidation = 44,
tssnippets_evtmodelbeforeupdate = 45,
tssnippets_evtmodelbeforesoftdelete = 46,
tssnippets_evtmodelbeforeinsert = 47,
tssnippets_evtmodelbeforedelete = 48,
tssnippets_evtmodelafterupdate = 49,
tssnippets_evtmodelaftersoftdelete = 50,
tssnippets_evtmodelafterinsert = 51,
tssnippets_evtmodelafterdelete = 52,
tssnippets_evtmappingroutes = 53,
tssnippets_evterrorrouter = 54,
tssnippets_evterrorcron = 55,
tssnippets_evtendrouter = 56,
tssnippets_evtendcron = 57,
tssnippets_evtcreatecron = 58,
tssnippets_evtcreateapiserver = 59,
tssnippets_evtbeginrouter = 60,
tssnippets_evtbegincron = 61,
tssnippets_evtbeginprocess = 62,
tssnippets_evtendprocess = 63,
tssnippets_evterrorprocess = 64,
ngservice_crud = 65,
ngservice = 66,
ngcomponent_html = 67,
ngcomponent_crud_html = 68,
ngcomponent_scss = 69,
ngcomponent_ts = 70,
ngcomponent_crud_ts = 71,
ngmodule_page = 72,
ngmodule_component = 73,
ngrouting_module = 74,
ngwebsocket_service = 75,
ftapp_module = 76,
ftapp_widget = 77,
fthttp_overrides_custom = 78,
ftcomponent_exception = 79,
ftmain = 80,
ftmodel = 81,
ftmodel_with_annotation = 82,
ftmodel_with_annotation_g = 83,
ftmodule = 84,
ftpage = 85,
ftpubspec = 86,
ftpubspec_with_annotation = 87,
ftrepository = 88,
ftpstore_g = 89,
ftstore = 90,
ftwidget_main_menu = 91,
ftwidget_stfull = 92,
ftwidget_stless = 93,
pystart = 94,
pyinstall = 95,
pyuninstall = 96
}
export declare class Commands {
static unZipFile(fileZip: Buffer): Promise;
static changeValue(value: string, key: any, newValue: any): string;
static changeIndex(value: string, params: any[]): string;
static templatePath(typeTemplate: TypeTemplate): string;
static tamplateToFile(typeTemplate: TypeTemplate, fileName: string, params: string[]): void;
static template(typeTemplate: TypeTemplate, params: string[], mainDirectory?: string): string;
static directory(typeDir: TypeDir): string;
static error(message: string): void;
static info(message: string): void;
static execCommand(command: string): Promise;
static nameConfig(name: string, type?: string): NameConfig;
static tsDb(name: string, args: TsDbArgs): void;
static ngWebSocket(): Promise;
static ngComponent(name: string): Promise;
static ngPage(name: string, args: NgPageArgs): void;
static ngService(name: string, args: NgServiceArgs): void;
static tsView(name: string): void;
static tsModel(name: string, args: TsModelArgs): void;
static tsApp(args: TsEnvArgs): void;
static copyFolderSync(from: string, to: string): void;
static tsBuild(args: TsEnvArgs): Promise;
static tsReport(args: TsReportTemplateArgs): void;
static compileTs(): void;
static tsPm2(): void;
static tsInit(): void;
static importBasePath(path: string): string;
static tsJob(name: string, id: string): void;
static tsController(name: string, args: TsControllerArgs): void;
static createTsSnippets(): void;
static createSnippets(typeSnippet: TypeSnippets): void;
static isProjectFlutter(mainDirectory?: string): boolean;
static ftCreateComponent(name: string, args: ftComponentArgs): void;
static ftCreateModel(name: string, args: ftModelArgs): void;
static ftCreateRepository(name: string): void;
static ftCreatePage(name: string): void;
static ftInit(args: ftInitArgs): void;
static ftCreateProject(name: string, args: ftCreateProjectArgs): Promise;
static ftHomologateVersion(): void;
static ftBuildRunner(): Promise;
static pyInit(name: string): Promise;
}