meta-enc 1.4.11 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/app-meta-enc.d.ts +4 -358
- package/dist/server/procedures-meta-enc.d.ts +0 -1
- package/package.json +2 -2
- package/dist/client/meta-enc.d.ts.map +0 -1
- package/dist/client/meta-enc.ts +0 -334
- package/dist/server/app-meta-enc.d.ts.map +0 -1
- package/dist/server/app-meta-enc.ts +0 -96
- package/dist/server/def-config.d.ts.map +0 -1
- package/dist/server/def-config.ts +0 -59
- package/dist/server/procedures-meta-enc.d.ts.map +0 -1
- package/dist/server/procedures-meta-enc.ts +0 -398
- package/dist/server/server-meta-enc.d.ts.map +0 -1
- package/dist/server/server-meta-enc.ts +0 -7
- package/dist/server/table-casilleros.d.ts.map +0 -1
- package/dist/server/table-casilleros.ts +0 -88
- package/dist/server/table-casilleros_principales.d.ts.map +0 -1
- package/dist/server/table-casilleros_principales.ts +0 -10
- package/dist/server/table-formularios_json.d.ts.map +0 -1
- package/dist/server/table-formularios_json.ts +0 -15
- package/dist/server/table-tipoc.d.ts.map +0 -1
- package/dist/server/table-tipoc.ts +0 -25
- package/dist/server/table-tipoc_tipoc.d.ts.map +0 -1
- package/dist/server/table-tipoc_tipoc.ts +0 -20
- package/dist/server/table-unidad_analisis.d.ts.map +0 -1
- package/dist/server/table-unidad_analisis.ts +0 -29
- package/dist/server/types-meta-enc.d.ts.map +0 -1
- package/dist/server/types-meta-enc.ts +0 -2
- package/install/tipoc_tipoc.tab.bak +0 -23
|
@@ -1,370 +1,16 @@
|
|
|
1
1
|
import * as relEnc from "rel-enc";
|
|
2
2
|
export * from "./types-meta-enc";
|
|
3
|
-
import { MenuDefinition, Request, OptsClientPage } from "./types-meta-enc";
|
|
4
3
|
export type Constructor<T> = new (...args: any[]) => T;
|
|
5
4
|
export declare function emergeAppMetaEnc<T extends Constructor<relEnc.AppRelEncType>>(Base: T): {
|
|
6
5
|
new (...args: any[]): {
|
|
7
6
|
metaEncIncluirCasillerosSaltoREL: boolean;
|
|
8
7
|
configStaticConfig(): void;
|
|
9
8
|
getMenu(): MenuDefinition;
|
|
10
|
-
getTables():
|
|
11
|
-
getProcedures():
|
|
9
|
+
getTables(): any;
|
|
10
|
+
getProcedures(): any;
|
|
12
11
|
prepareGetTables(): void;
|
|
13
|
-
clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage):
|
|
14
|
-
/* mixin-patch: addLoggedServices: (() => void) & (() => void) & (() => void); */
|
|
15
|
-
tablasDatos: any[];
|
|
16
|
-
/* mixin-patch: cargarGenerados: ((client: relEnc.Client) => Promise<string>) & ((client: relEnc.Client) => Promise<string>); */
|
|
17
|
-
/* mixin-patch: generateBaseTableDef: ((tablaDatos: any) => relEnc.TableDefinition) & ((tablaDatos: any) => relEnc.TableDefinition); */
|
|
18
|
-
/* mixin-patch: getTableDefFunction: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
|
|
19
|
-
/* mixin-patch: loadTableDef: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
|
|
20
|
-
/* mixin-patch: generateAndLoadTableDef: ((tablaDatos: any) => relEnc.TableDefinitionFunction) & ((tablaDatos: any) => relEnc.TableDefinitionFunction); */
|
|
21
|
-
procedures: relEnc.ProcedureDef[];
|
|
22
|
-
procedure: {
|
|
23
|
-
[key: string]: relEnc.ProcedureDef;
|
|
24
|
-
} & {
|
|
25
|
-
[key: string]: relEnc.ProcedureDef;
|
|
26
|
-
} & {
|
|
27
|
-
[key: string]: relEnc.ProcedureDef;
|
|
28
|
-
} & {
|
|
29
|
-
[key: string]: relEnc.ProcedureDef;
|
|
30
|
-
};
|
|
31
|
-
app: relEnc.ExpressPlus;
|
|
32
|
-
getTableDefinition: relEnc.TableDefinitionsGetters;
|
|
33
|
-
tableStructures: relEnc.TableDefinitions;
|
|
34
|
-
db: typeof import("pg-promise-strict");
|
|
35
|
-
config: any;
|
|
36
|
-
rootPath: string;
|
|
37
|
-
/* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: {
|
|
38
|
-
complete?: boolean | undefined;
|
|
39
|
-
skipEnance?: boolean | undefined;
|
|
40
|
-
} | undefined) => Promise<{
|
|
41
|
-
mainSql: string;
|
|
42
|
-
enancePart: string;
|
|
43
|
-
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: {
|
|
44
|
-
complete?: boolean | undefined;
|
|
45
|
-
skipEnance?: boolean | undefined;
|
|
46
|
-
} | undefined) => Promise<{
|
|
47
|
-
mainSql: string;
|
|
48
|
-
enancePart: string;
|
|
49
|
-
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: {
|
|
50
|
-
complete?: boolean | undefined;
|
|
51
|
-
skipEnance?: boolean | undefined;
|
|
52
|
-
} | undefined) => Promise<{
|
|
53
|
-
mainSql: string;
|
|
54
|
-
enancePart: string;
|
|
55
|
-
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
56
|
-
mainSql: string;
|
|
57
|
-
enancePart: string;
|
|
58
|
-
}>); */
|
|
59
|
-
caches: {
|
|
60
|
-
procedures: {
|
|
61
|
-
[k: string]: {
|
|
62
|
-
timestamp: number;
|
|
63
|
-
result: any;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
} & relEnc.Caches;
|
|
67
|
-
/* mixin-patch: clearCaches: (() => void) & (() => void); */
|
|
68
|
-
/* mixin-patch: postConfig: (() => Promise<void>) & ((...params: any[]) => Promise<void>); */
|
|
69
|
-
/* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
|
|
70
|
-
/* mixin-patch: appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void); */
|
|
71
|
-
/* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
|
|
72
|
-
/* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
73
|
-
/* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
74
|
-
/* mixin-patch: inDbClient: (<T_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>) & (<T_2>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_2>) => Promise<T_2>); */
|
|
75
|
-
/* mixin-patch: inTransaction: (<T_1_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T_3>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_3>) => Promise<T_3>); */
|
|
76
|
-
/* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
|
|
77
|
-
/* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
|
|
78
|
-
/* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
|
|
79
|
-
/* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
|
|
80
|
-
/* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => relEnc.ClientSetup) & ((req: relEnc.Request) => Promise<relEnc.ClientSetup>); */
|
|
81
|
-
/* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
|
|
82
|
-
/* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
|
|
83
|
-
fieldDomain: {
|
|
84
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
85
|
-
};
|
|
86
|
-
exts: {
|
|
87
|
-
img: string[];
|
|
88
|
-
normal: string[];
|
|
89
|
-
};
|
|
90
|
-
optsGenericForAll: {
|
|
91
|
-
allowedExts?: string[] | undefined;
|
|
92
|
-
};
|
|
93
|
-
sqls: {
|
|
94
|
-
[k: string]: string;
|
|
95
|
-
};
|
|
96
|
-
messages: {
|
|
97
|
-
[k: string]: string;
|
|
98
|
-
};
|
|
99
|
-
dbUserNameExpr: string;
|
|
100
|
-
dbUserRolExpr: string;
|
|
101
|
-
specialValueWhenInsert: {
|
|
102
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
103
|
-
};
|
|
104
|
-
isAdmin(): boolean;
|
|
105
|
-
canChangePass(): Promise<boolean>;
|
|
106
|
-
inTransactionProcedureContext<T_4>(req: relEnc.Request | null, coreFunction: (context: relEnc.ProcedureContext) => Promise<T_4>): Promise<T_4>;
|
|
107
|
-
dumpDbTableFields(tableDefinition: relEnc.TableDefinition): string[];
|
|
108
|
-
mainPage(req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined): {
|
|
109
|
-
toHtmlDoc: () => string;
|
|
110
|
-
};
|
|
111
|
-
isThisProcedureAllowed<T_5>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
112
|
-
[key: string]: T_5;
|
|
113
|
-
}): Promise<boolean>;
|
|
114
|
-
checkDatabaseStructure(client: relEnc.Client): Promise<void>;
|
|
115
|
-
getDbFunctions(opts: relEnc.DumpOptions): Promise<{
|
|
116
|
-
dumpText: string;
|
|
117
|
-
}[]>;
|
|
118
|
-
i18n: {
|
|
119
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
120
|
-
};
|
|
12
|
+
clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): any;
|
|
121
13
|
};
|
|
122
14
|
} & T;
|
|
123
|
-
export declare var AppMetaEnc:
|
|
124
|
-
new (...args: any[]): {
|
|
125
|
-
metaEncIncluirCasillerosSaltoREL: boolean;
|
|
126
|
-
configStaticConfig(): void;
|
|
127
|
-
getMenu(): MenuDefinition;
|
|
128
|
-
getTables(): relEnc.TableItemDef[];
|
|
129
|
-
getProcedures(): Promise<relEnc.ProcedureDef[]>;
|
|
130
|
-
prepareGetTables(): void;
|
|
131
|
-
clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): relEnc.ClientModuleDefinition[];
|
|
132
|
-
/* mixin-patch: addLoggedServices: (() => void) & (() => void) & (() => void); */
|
|
133
|
-
tablasDatos: any[];
|
|
134
|
-
/* mixin-patch: cargarGenerados: ((client: relEnc.Client) => Promise<string>) & ((client: relEnc.Client) => Promise<string>); */
|
|
135
|
-
/* mixin-patch: generateBaseTableDef: ((tablaDatos: any) => relEnc.TableDefinition) & ((tablaDatos: any) => relEnc.TableDefinition); */
|
|
136
|
-
/* mixin-patch: getTableDefFunction: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
|
|
137
|
-
/* mixin-patch: loadTableDef: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
|
|
138
|
-
/* mixin-patch: generateAndLoadTableDef: ((tablaDatos: any) => relEnc.TableDefinitionFunction) & ((tablaDatos: any) => relEnc.TableDefinitionFunction); */
|
|
139
|
-
procedures: relEnc.ProcedureDef[];
|
|
140
|
-
procedure: {
|
|
141
|
-
[key: string]: relEnc.ProcedureDef;
|
|
142
|
-
} & {
|
|
143
|
-
[key: string]: relEnc.ProcedureDef;
|
|
144
|
-
} & {
|
|
145
|
-
[key: string]: relEnc.ProcedureDef;
|
|
146
|
-
} & {
|
|
147
|
-
[key: string]: relEnc.ProcedureDef;
|
|
148
|
-
};
|
|
149
|
-
app: relEnc.ExpressPlus;
|
|
150
|
-
getTableDefinition: relEnc.TableDefinitionsGetters;
|
|
151
|
-
tableStructures: relEnc.TableDefinitions;
|
|
152
|
-
db: typeof import("pg-promise-strict");
|
|
153
|
-
config: any;
|
|
154
|
-
rootPath: string;
|
|
155
|
-
/* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: {
|
|
156
|
-
complete?: boolean | undefined;
|
|
157
|
-
skipEnance?: boolean | undefined;
|
|
158
|
-
} | undefined) => Promise<{
|
|
159
|
-
mainSql: string;
|
|
160
|
-
enancePart: string;
|
|
161
|
-
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: {
|
|
162
|
-
complete?: boolean | undefined;
|
|
163
|
-
skipEnance?: boolean | undefined;
|
|
164
|
-
} | undefined) => Promise<{
|
|
165
|
-
mainSql: string;
|
|
166
|
-
enancePart: string;
|
|
167
|
-
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: {
|
|
168
|
-
complete?: boolean | undefined;
|
|
169
|
-
skipEnance?: boolean | undefined;
|
|
170
|
-
} | undefined) => Promise<{
|
|
171
|
-
mainSql: string;
|
|
172
|
-
enancePart: string;
|
|
173
|
-
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
174
|
-
mainSql: string;
|
|
175
|
-
enancePart: string;
|
|
176
|
-
}>); */
|
|
177
|
-
caches: {
|
|
178
|
-
procedures: {
|
|
179
|
-
[k: string]: {
|
|
180
|
-
timestamp: number;
|
|
181
|
-
result: any;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
} & relEnc.Caches;
|
|
185
|
-
/* mixin-patch: clearCaches: (() => void) & (() => void); */
|
|
186
|
-
/* mixin-patch: postConfig: (() => Promise<void>) & ((...params: any[]) => Promise<void>); */
|
|
187
|
-
/* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
|
|
188
|
-
/* mixin-patch: appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void); */
|
|
189
|
-
/* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
|
|
190
|
-
/* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
191
|
-
/* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
192
|
-
/* mixin-patch: inDbClient: (<T_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>) & (<T>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T>) => Promise<T>); */
|
|
193
|
-
/* mixin-patch: inTransaction: (<T_1_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T_2>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_2>) => Promise<T_2>); */
|
|
194
|
-
/* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
|
|
195
|
-
/* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
|
|
196
|
-
/* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
|
|
197
|
-
/* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
|
|
198
|
-
/* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => relEnc.ClientSetup) & ((req: relEnc.Request) => Promise<relEnc.ClientSetup>); */
|
|
199
|
-
/* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
|
|
200
|
-
/* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
|
|
201
|
-
fieldDomain: {
|
|
202
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
203
|
-
};
|
|
204
|
-
exts: {
|
|
205
|
-
img: string[];
|
|
206
|
-
normal: string[];
|
|
207
|
-
};
|
|
208
|
-
optsGenericForAll: {
|
|
209
|
-
allowedExts?: string[] | undefined;
|
|
210
|
-
};
|
|
211
|
-
sqls: {
|
|
212
|
-
[k: string]: string;
|
|
213
|
-
};
|
|
214
|
-
messages: {
|
|
215
|
-
[k: string]: string;
|
|
216
|
-
};
|
|
217
|
-
dbUserNameExpr: string;
|
|
218
|
-
dbUserRolExpr: string;
|
|
219
|
-
specialValueWhenInsert: {
|
|
220
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
221
|
-
};
|
|
222
|
-
isAdmin(): boolean;
|
|
223
|
-
canChangePass(): Promise<boolean>;
|
|
224
|
-
inTransactionProcedureContext<T_3>(req: relEnc.Request | null, coreFunction: (context: relEnc.ProcedureContext) => Promise<T_3>): Promise<T_3>;
|
|
225
|
-
dumpDbTableFields(tableDefinition: relEnc.TableDefinition): string[];
|
|
226
|
-
mainPage(req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined): {
|
|
227
|
-
toHtmlDoc: () => string;
|
|
228
|
-
};
|
|
229
|
-
isThisProcedureAllowed<T_4>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
230
|
-
[key: string]: T_4;
|
|
231
|
-
}): Promise<boolean>;
|
|
232
|
-
checkDatabaseStructure(client: relEnc.Client): Promise<void>;
|
|
233
|
-
getDbFunctions(opts: relEnc.DumpOptions): Promise<{
|
|
234
|
-
dumpText: string;
|
|
235
|
-
}[]>;
|
|
236
|
-
i18n: {
|
|
237
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
} & (new (...args: any[]) => {
|
|
241
|
-
clientIncludes(req: relEnc.Request, hideBEPlusInclusions: any): relEnc.ClientModuleDefinition[];
|
|
242
|
-
addLoggedServices(): void;
|
|
243
|
-
tablasDatos: any[];
|
|
244
|
-
cargarGenerados(client: relEnc.Client): Promise<string>;
|
|
245
|
-
generateBaseTableDef(tablaDatos: any): relEnc.TableDefinition;
|
|
246
|
-
getTableDefFunction(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
247
|
-
loadTableDef(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
248
|
-
generateAndLoadTableDef(tablaDatos: any): relEnc.TableDefinitionFunction;
|
|
249
|
-
procedures: relEnc.ProcedureDef[];
|
|
250
|
-
procedure: {
|
|
251
|
-
[key: string]: relEnc.ProcedureDef;
|
|
252
|
-
} & {
|
|
253
|
-
[key: string]: relEnc.ProcedureDef;
|
|
254
|
-
};
|
|
255
|
-
app: relEnc.ExpressPlus;
|
|
256
|
-
getTableDefinition: relEnc.TableDefinitionsGetters;
|
|
257
|
-
tableStructures: relEnc.TableDefinitions;
|
|
258
|
-
db: typeof import("pg-promise-strict");
|
|
259
|
-
config: any;
|
|
260
|
-
rootPath: string;
|
|
261
|
-
dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: {
|
|
262
|
-
complete?: boolean | undefined;
|
|
263
|
-
skipEnance?: boolean | undefined;
|
|
264
|
-
} | undefined) => Promise<{
|
|
265
|
-
mainSql: string;
|
|
266
|
-
enancePart: string;
|
|
267
|
-
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: {
|
|
268
|
-
complete?: boolean | undefined;
|
|
269
|
-
skipEnance?: boolean | undefined;
|
|
270
|
-
} | undefined) => Promise<{
|
|
271
|
-
mainSql: string;
|
|
272
|
-
enancePart: string;
|
|
273
|
-
}>);
|
|
274
|
-
caches: {
|
|
275
|
-
procedures: {
|
|
276
|
-
[k: string]: {
|
|
277
|
-
timestamp: number;
|
|
278
|
-
result: any;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
clearCaches(): void;
|
|
283
|
-
}) & {
|
|
284
|
-
new (...args: any[]): {
|
|
285
|
-
tablasDatos: relEnc.TablaDatos[];
|
|
286
|
-
configStaticConfig(): void;
|
|
287
|
-
cargarGenerados(client: relEnc.Client): Promise<string>;
|
|
288
|
-
postConfig(): Promise<void>;
|
|
289
|
-
generateBaseTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinition;
|
|
290
|
-
getTableDefFunction(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
291
|
-
loadTableDef(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
292
|
-
generateAndLoadTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinitionFunction;
|
|
293
|
-
clientIncludes(req: relEnc.Request, hideBEPlusInclusions: relEnc.OptsClientPage): relEnc.ClientModuleDefinition[];
|
|
294
|
-
getMenu(): relEnc.MenuDefinition;
|
|
295
|
-
prepareGetTables(): void;
|
|
296
|
-
checkDatabaseStructure(client: relEnc.Client): Promise<void>;
|
|
297
|
-
getDbFunctions(opts: relEnc.DumpOptions): Promise<{
|
|
298
|
-
dumpText: string;
|
|
299
|
-
}[]>;
|
|
300
|
-
procedures: relEnc.ProcedureDef[];
|
|
301
|
-
procedure: {
|
|
302
|
-
[key: string]: relEnc.ProcedureDef;
|
|
303
|
-
};
|
|
304
|
-
app: relEnc.ExpressPlus;
|
|
305
|
-
getTableDefinition: relEnc.TableDefinitionsGetters;
|
|
306
|
-
tableStructures: relEnc.TableDefinitions;
|
|
307
|
-
db: typeof import("pg-promise-strict");
|
|
308
|
-
config: any;
|
|
309
|
-
rootPath: string;
|
|
310
|
-
caches: {
|
|
311
|
-
procedures: {
|
|
312
|
-
[k: string]: {
|
|
313
|
-
timestamp: number;
|
|
314
|
-
result: any;
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
|
-
fieldDomain: {
|
|
319
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
320
|
-
};
|
|
321
|
-
exts: {
|
|
322
|
-
img: string[];
|
|
323
|
-
normal: string[];
|
|
324
|
-
};
|
|
325
|
-
optsGenericForAll: {
|
|
326
|
-
allowedExts?: string[] | undefined;
|
|
327
|
-
};
|
|
328
|
-
sqls: {
|
|
329
|
-
[k: string]: string;
|
|
330
|
-
};
|
|
331
|
-
messages: {
|
|
332
|
-
[k: string]: string;
|
|
333
|
-
};
|
|
334
|
-
dbUserNameExpr: string;
|
|
335
|
-
dbUserRolExpr: string;
|
|
336
|
-
specialValueWhenInsert: {
|
|
337
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
338
|
-
};
|
|
339
|
-
clearCaches(): void;
|
|
340
|
-
start(opts?: relEnc.StartOptions | undefined): Promise<void>;
|
|
341
|
-
getTables(): relEnc.TableItemDef[];
|
|
342
|
-
appendToTableDefinition(tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void): void;
|
|
343
|
-
getContext(req: relEnc.Request): relEnc.Context;
|
|
344
|
-
addSchrödingerServices(mainApp: relEnc.ExpressPlus, baseUrl: string): void;
|
|
345
|
-
addUnloggedServices(mainApp: relEnc.ExpressPlus, baseUrl: string): void;
|
|
346
|
-
addLoggedServices(): void;
|
|
347
|
-
getProcedures(): Promise<relEnc.ProcedureDef[]>;
|
|
348
|
-
inDbClient<T_5>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_5>): Promise<T_5>;
|
|
349
|
-
inTransaction<T_1_2>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1_2>): Promise<T_1_2>;
|
|
350
|
-
procedureDefCompleter(procedureDef: relEnc.ProcedureDef): relEnc.ProcedureDef;
|
|
351
|
-
tableDefAdapt(tableDef: relEnc.TableDefinition, context: relEnc.Context): relEnc.TableDefinition;
|
|
352
|
-
pushApp(dirname: string): void;
|
|
353
|
-
dumpDbSchemaPartial(partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined): Promise<{
|
|
354
|
-
mainSql: string;
|
|
355
|
-
enancePart: string;
|
|
356
|
-
}>;
|
|
357
|
-
getContextForDump(): relEnc.ContextForDump;
|
|
358
|
-
getClientSetupForSendToFrontEnd(req: relEnc.Request): relEnc.ClientSetup;
|
|
359
|
-
configList(): (string | object)[];
|
|
360
|
-
setStaticConfig(defConfigYamlString: string): void;
|
|
361
|
-
mainPage(req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined): {
|
|
362
|
-
toHtmlDoc: () => string;
|
|
363
|
-
};
|
|
364
|
-
isThisProcedureAllowed<T_2>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
365
|
-
[key: string]: T_2;
|
|
366
|
-
}): Promise<boolean>;
|
|
367
|
-
};
|
|
368
|
-
prefixTableName(tableName: string, prefix: string): string;
|
|
369
|
-
} & typeof relEnc.AppBackend;
|
|
15
|
+
export declare var AppMetaEnc: any;
|
|
370
16
|
export type AppMetaEncType = InstanceType<typeof AppMetaEnc>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meta-enc",
|
|
3
3
|
"description": "Metadatos de encuestas",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.13",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "codenautas/meta-enc",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"unlogged"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"rel-enc": "^1.3.
|
|
16
|
+
"rel-enc": "^1.3.11"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"types.d.ts": "^0.6.7",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta-enc.d.ts","sourceRoot":"","sources":["../../src/client/meta-enc.ts"],"names":[],"mappings":""}
|