meta-enc 1.2.2 → 1.4.2
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/client/meta-enc.d.ts +1 -0
- package/dist/client/meta-enc.js +443 -442
- package/dist/server/app-meta-enc.d.ts +475 -0
- package/dist/server/app-meta-enc.js +103 -102
- package/dist/server/def-config.d.ts +1 -0
- package/dist/server/def-config.js +14 -14
- package/dist/server/procedures-meta-enc.d.ts +15 -0
- package/dist/server/procedures-meta-enc.js +346 -345
- package/dist/server/server-meta-enc.d.ts +1 -0
- package/dist/server/server-meta-enc.js +17 -17
- package/dist/server/table-casilleros.d.ts +0 -0
- package/dist/server/table-casilleros.js +75 -70
- package/dist/server/table-casilleros_principales.d.ts +1 -0
- package/dist/server/table-casilleros_principales.js +8 -8
- package/dist/server/table-formularios_json.d.ts +0 -0
- package/dist/server/table-formularios_json.js +14 -14
- package/dist/server/table-tipoc.d.ts +0 -0
- package/dist/server/table-tipoc.js +24 -24
- package/dist/server/table-tipoc_tipoc.d.ts +0 -0
- package/dist/server/table-tipoc_tipoc.js +19 -19
- package/dist/server/table-unidad_analisis.d.ts +0 -0
- package/dist/server/table-unidad_analisis.js +30 -30
- package/dist/server/types-meta-enc.d.ts +1 -0
- package/dist/server/types-meta-enc.js +23 -23
- package/dist/tsconfig-common.json +1 -0
- package/install/actualizar_estructura.sql +4 -0
- package/install/casilleros_orden_total_fun.sql +1 -0
- package/install/complete_variables.sql +6 -5
- package/install/{casilleros.tab → example-casilleros.tab-ejemplo} +26 -26
- package/package.json +6 -8
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
/// <reference types="backend-plus" />
|
|
2
|
+
import * as relEnc from "rel-enc";
|
|
3
|
+
export * from "./types-meta-enc";
|
|
4
|
+
import { MenuDefinition, Request, OptsClientPage } from "./types-meta-enc";
|
|
5
|
+
export declare type Constructor<T> = new (...args: any[]) => T;
|
|
6
|
+
export declare function emergeAppMetaEnc<T extends Constructor<relEnc.AppRelEncType>>(Base: T): {
|
|
7
|
+
new (...args: any[]): {
|
|
8
|
+
configStaticConfig(): void;
|
|
9
|
+
getMenu(): MenuDefinition;
|
|
10
|
+
getTables(): relEnc.TableItemDef[];
|
|
11
|
+
getProcedures(): Promise<relEnc.ProcedureDef[]>;
|
|
12
|
+
prepareGetTables(): void;
|
|
13
|
+
clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): relEnc.ClientModuleDefinition[];
|
|
14
|
+
/* mixin-patch: addLoggedServices: (() => void) & (() => void) & (() => void); */
|
|
15
|
+
tablasDatos: relEnc.TablaDatos[];
|
|
16
|
+
/* mixin-patch: cargarGenerados: ((client: relEnc.Client) => Promise<string>) & ((client: relEnc.Client) => Promise<string>); */
|
|
17
|
+
/* mixin-patch: generateBaseTableDef: ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinition) & ((tablaDatos: relEnc.TablaDatos) => 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: relEnc.TablaDatos) => relEnc.TableDefinitionFunction) & ((tablaDatos: relEnc.TablaDatos) => 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
|
+
caches: {
|
|
38
|
+
procedures: {
|
|
39
|
+
[k: string]: {
|
|
40
|
+
timestamp: number;
|
|
41
|
+
result: any;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
} & {
|
|
45
|
+
procedures: {
|
|
46
|
+
[k: string]: {
|
|
47
|
+
timestamp: number;
|
|
48
|
+
result: any;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
} & {
|
|
52
|
+
procedures: {
|
|
53
|
+
[k: string]: {
|
|
54
|
+
timestamp: number;
|
|
55
|
+
result: any;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
} & {
|
|
59
|
+
procedures: {
|
|
60
|
+
[k: string]: {
|
|
61
|
+
timestamp: number;
|
|
62
|
+
result: any;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
fieldDomain: {
|
|
67
|
+
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
68
|
+
} & {
|
|
69
|
+
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
70
|
+
} & {
|
|
71
|
+
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
72
|
+
} & {
|
|
73
|
+
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
74
|
+
};
|
|
75
|
+
exts: {
|
|
76
|
+
img?: string[] | undefined;
|
|
77
|
+
} & {
|
|
78
|
+
img?: string[] | undefined;
|
|
79
|
+
} & {
|
|
80
|
+
img?: string[] | undefined;
|
|
81
|
+
} & {
|
|
82
|
+
img: string[];
|
|
83
|
+
normal: string[];
|
|
84
|
+
};
|
|
85
|
+
optsGenericForAll: {
|
|
86
|
+
allowedExts?: string[] | undefined;
|
|
87
|
+
} & {
|
|
88
|
+
allowedExts?: string[] | undefined;
|
|
89
|
+
} & {
|
|
90
|
+
allowedExts?: string[] | undefined;
|
|
91
|
+
} & {
|
|
92
|
+
allowedExts?: string[] | undefined;
|
|
93
|
+
};
|
|
94
|
+
sqls: {
|
|
95
|
+
[k: string]: string;
|
|
96
|
+
} & {
|
|
97
|
+
[k: string]: string;
|
|
98
|
+
} & {
|
|
99
|
+
[k: string]: string;
|
|
100
|
+
} & {
|
|
101
|
+
[k: string]: string;
|
|
102
|
+
};
|
|
103
|
+
messages: {
|
|
104
|
+
[k: string]: string;
|
|
105
|
+
} & {
|
|
106
|
+
[k: string]: string;
|
|
107
|
+
} & {
|
|
108
|
+
[k: string]: string;
|
|
109
|
+
} & {
|
|
110
|
+
[k: string]: string;
|
|
111
|
+
};
|
|
112
|
+
dbUserNameExpr: string;
|
|
113
|
+
dbUserRolExpr: string;
|
|
114
|
+
specialValueWhenInsert: {
|
|
115
|
+
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
116
|
+
} & {
|
|
117
|
+
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
118
|
+
} & {
|
|
119
|
+
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
120
|
+
} & {
|
|
121
|
+
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
122
|
+
};
|
|
123
|
+
/* mixin-patch: postConfig: (() => Promise<void>) & ((...params: any[]) => Promise<void>); */
|
|
124
|
+
/* mixin-patch: checkDatabaseStructure: ((client: relEnc.Client) => Promise<void>) & ((client: relEnc.Client) => Promise<void>); */
|
|
125
|
+
/* mixin-patch: getDbFunctions: ((opts: relEnc.DumpOptions) => Promise<{
|
|
126
|
+
dumpText: string;
|
|
127
|
+
}[]>) & ((opts: relEnc.DumpOptions) => Promise<{
|
|
128
|
+
dumpText: string;
|
|
129
|
+
}[]>); */
|
|
130
|
+
/* mixin-patch: clearCaches: (() => void) & (() => void); */
|
|
131
|
+
/* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
|
|
132
|
+
/* 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); */
|
|
133
|
+
/* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
|
|
134
|
+
/* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
135
|
+
/* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
136
|
+
/* mixin-patch: inDbClient: (<T_1_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>); */
|
|
137
|
+
/* mixin-patch: inTransaction: (<T_2_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_2_1>) => Promise<T_2_1>) & (<T_2>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_2>) => Promise<T_2>); */
|
|
138
|
+
/* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
|
|
139
|
+
/* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
|
|
140
|
+
/* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
|
|
141
|
+
/* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
142
|
+
mainSql: string;
|
|
143
|
+
enancePart: string;
|
|
144
|
+
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
145
|
+
mainSql: string;
|
|
146
|
+
enancePart: string;
|
|
147
|
+
}>); */
|
|
148
|
+
/* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
|
|
149
|
+
/* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => relEnc.ClientSetup) & ((req: relEnc.Request) => relEnc.ClientSetup); */
|
|
150
|
+
/* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
|
|
151
|
+
/* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
|
|
152
|
+
/* mixin-patch: mainPage: ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
153
|
+
toHtmlDoc: () => string;
|
|
154
|
+
}) & ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
155
|
+
toHtmlDoc: () => string;
|
|
156
|
+
}); */
|
|
157
|
+
/* mixin-patch: isThisProcedureAllowed: (<T_3>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
158
|
+
[key: string]: T_3;
|
|
159
|
+
}) => Promise<boolean>) & (<T_4>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
160
|
+
[key: string]: T_4;
|
|
161
|
+
}) => Promise<boolean>); */
|
|
162
|
+
};
|
|
163
|
+
} & T;
|
|
164
|
+
export declare var AppMetaEnc: {
|
|
165
|
+
new (...args: any[]): {
|
|
166
|
+
configStaticConfig(): void;
|
|
167
|
+
getMenu(): MenuDefinition;
|
|
168
|
+
getTables(): relEnc.TableItemDef[];
|
|
169
|
+
getProcedures(): Promise<relEnc.ProcedureDef[]>;
|
|
170
|
+
prepareGetTables(): void;
|
|
171
|
+
clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): relEnc.ClientModuleDefinition[];
|
|
172
|
+
/* mixin-patch: addLoggedServices: (() => void) & (() => void) & (() => void); */
|
|
173
|
+
tablasDatos: relEnc.TablaDatos[];
|
|
174
|
+
/* mixin-patch: cargarGenerados: ((client: relEnc.Client) => Promise<string>) & ((client: relEnc.Client) => Promise<string>); */
|
|
175
|
+
/* mixin-patch: generateBaseTableDef: ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinition) & ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinition); */
|
|
176
|
+
/* mixin-patch: getTableDefFunction: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
|
|
177
|
+
/* mixin-patch: loadTableDef: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
|
|
178
|
+
/* mixin-patch: generateAndLoadTableDef: ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinitionFunction) & ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinitionFunction); */
|
|
179
|
+
procedures: relEnc.ProcedureDef[];
|
|
180
|
+
procedure: {
|
|
181
|
+
[key: string]: relEnc.ProcedureDef;
|
|
182
|
+
} & {
|
|
183
|
+
[key: string]: relEnc.ProcedureDef;
|
|
184
|
+
} & {
|
|
185
|
+
[key: string]: relEnc.ProcedureDef;
|
|
186
|
+
} & {
|
|
187
|
+
[key: string]: relEnc.ProcedureDef;
|
|
188
|
+
};
|
|
189
|
+
app: relEnc.ExpressPlus;
|
|
190
|
+
getTableDefinition: relEnc.TableDefinitionsGetters;
|
|
191
|
+
tableStructures: relEnc.TableDefinitions;
|
|
192
|
+
db: typeof import("pg-promise-strict");
|
|
193
|
+
config: any;
|
|
194
|
+
rootPath: string;
|
|
195
|
+
caches: {
|
|
196
|
+
procedures: {
|
|
197
|
+
[k: string]: {
|
|
198
|
+
timestamp: number;
|
|
199
|
+
result: any;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
} & {
|
|
203
|
+
procedures: {
|
|
204
|
+
[k: string]: {
|
|
205
|
+
timestamp: number;
|
|
206
|
+
result: any;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
} & {
|
|
210
|
+
procedures: {
|
|
211
|
+
[k: string]: {
|
|
212
|
+
timestamp: number;
|
|
213
|
+
result: any;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
} & {
|
|
217
|
+
procedures: {
|
|
218
|
+
[k: string]: {
|
|
219
|
+
timestamp: number;
|
|
220
|
+
result: any;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
fieldDomain: {
|
|
225
|
+
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
226
|
+
} & {
|
|
227
|
+
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
228
|
+
} & {
|
|
229
|
+
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
230
|
+
} & {
|
|
231
|
+
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
232
|
+
};
|
|
233
|
+
exts: {
|
|
234
|
+
img?: string[] | undefined;
|
|
235
|
+
} & {
|
|
236
|
+
img?: string[] | undefined;
|
|
237
|
+
} & {
|
|
238
|
+
img?: string[] | undefined;
|
|
239
|
+
} & {
|
|
240
|
+
img: string[];
|
|
241
|
+
normal: string[];
|
|
242
|
+
};
|
|
243
|
+
optsGenericForAll: {
|
|
244
|
+
allowedExts?: string[] | undefined;
|
|
245
|
+
} & {
|
|
246
|
+
allowedExts?: string[] | undefined;
|
|
247
|
+
} & {
|
|
248
|
+
allowedExts?: string[] | undefined;
|
|
249
|
+
} & {
|
|
250
|
+
allowedExts?: string[] | undefined;
|
|
251
|
+
};
|
|
252
|
+
sqls: {
|
|
253
|
+
[k: string]: string;
|
|
254
|
+
} & {
|
|
255
|
+
[k: string]: string;
|
|
256
|
+
} & {
|
|
257
|
+
[k: string]: string;
|
|
258
|
+
} & {
|
|
259
|
+
[k: string]: string;
|
|
260
|
+
};
|
|
261
|
+
messages: {
|
|
262
|
+
[k: string]: string;
|
|
263
|
+
} & {
|
|
264
|
+
[k: string]: string;
|
|
265
|
+
} & {
|
|
266
|
+
[k: string]: string;
|
|
267
|
+
} & {
|
|
268
|
+
[k: string]: string;
|
|
269
|
+
};
|
|
270
|
+
dbUserNameExpr: string;
|
|
271
|
+
dbUserRolExpr: string;
|
|
272
|
+
specialValueWhenInsert: {
|
|
273
|
+
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
274
|
+
} & {
|
|
275
|
+
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
276
|
+
} & {
|
|
277
|
+
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
278
|
+
} & {
|
|
279
|
+
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
280
|
+
};
|
|
281
|
+
/* mixin-patch: postConfig: (() => Promise<void>) & ((...params: any[]) => Promise<void>); */
|
|
282
|
+
/* mixin-patch: checkDatabaseStructure: ((client: relEnc.Client) => Promise<void>) & ((client: relEnc.Client) => Promise<void>); */
|
|
283
|
+
/* mixin-patch: getDbFunctions: ((opts: relEnc.DumpOptions) => Promise<{
|
|
284
|
+
dumpText: string;
|
|
285
|
+
}[]>) & ((opts: relEnc.DumpOptions) => Promise<{
|
|
286
|
+
dumpText: string;
|
|
287
|
+
}[]>); */
|
|
288
|
+
/* mixin-patch: clearCaches: (() => void) & (() => void); */
|
|
289
|
+
/* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
|
|
290
|
+
/* 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); */
|
|
291
|
+
/* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
|
|
292
|
+
/* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
293
|
+
/* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
294
|
+
/* mixin-patch: inDbClient: (<T_1_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T>) => Promise<T>); */
|
|
295
|
+
/* mixin-patch: inTransaction: (<T_2_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_2_1>) => Promise<T_2_1>) & (<T_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>); */
|
|
296
|
+
/* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
|
|
297
|
+
/* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
|
|
298
|
+
/* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
|
|
299
|
+
/* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
300
|
+
mainSql: string;
|
|
301
|
+
enancePart: string;
|
|
302
|
+
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
303
|
+
mainSql: string;
|
|
304
|
+
enancePart: string;
|
|
305
|
+
}>); */
|
|
306
|
+
/* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
|
|
307
|
+
/* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => relEnc.ClientSetup) & ((req: relEnc.Request) => relEnc.ClientSetup); */
|
|
308
|
+
/* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
|
|
309
|
+
/* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
|
|
310
|
+
/* mixin-patch: mainPage: ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
311
|
+
toHtmlDoc: () => string;
|
|
312
|
+
}) & ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
313
|
+
toHtmlDoc: () => string;
|
|
314
|
+
}); */
|
|
315
|
+
/* mixin-patch: isThisProcedureAllowed: (<T_3>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
316
|
+
[key: string]: T_3;
|
|
317
|
+
}) => Promise<boolean>) & (<T_2>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
318
|
+
[key: string]: T_2;
|
|
319
|
+
}) => Promise<boolean>); */
|
|
320
|
+
};
|
|
321
|
+
} & (new (...args: any[]) => {
|
|
322
|
+
clientIncludes(req: relEnc.Request, hideBEPlusInclusions: relEnc.OptsClientPage): relEnc.ClientModuleDefinition[];
|
|
323
|
+
addLoggedServices(): void;
|
|
324
|
+
tablasDatos: relEnc.TablaDatos[];
|
|
325
|
+
cargarGenerados(client: relEnc.Client): Promise<string>;
|
|
326
|
+
generateBaseTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinition;
|
|
327
|
+
getTableDefFunction(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
328
|
+
loadTableDef(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
329
|
+
generateAndLoadTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinitionFunction;
|
|
330
|
+
procedures: relEnc.ProcedureDef[];
|
|
331
|
+
procedure: {
|
|
332
|
+
[key: string]: relEnc.ProcedureDef;
|
|
333
|
+
} & {
|
|
334
|
+
[key: string]: relEnc.ProcedureDef;
|
|
335
|
+
};
|
|
336
|
+
app: relEnc.ExpressPlus;
|
|
337
|
+
getTableDefinition: relEnc.TableDefinitionsGetters;
|
|
338
|
+
tableStructures: relEnc.TableDefinitions;
|
|
339
|
+
db: typeof import("pg-promise-strict");
|
|
340
|
+
config: any;
|
|
341
|
+
rootPath: string;
|
|
342
|
+
caches: {
|
|
343
|
+
procedures: {
|
|
344
|
+
[k: string]: {
|
|
345
|
+
timestamp: number;
|
|
346
|
+
result: any;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
} & {
|
|
350
|
+
procedures: {
|
|
351
|
+
[k: string]: {
|
|
352
|
+
timestamp: number;
|
|
353
|
+
result: any;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
fieldDomain: {
|
|
358
|
+
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
359
|
+
} & {
|
|
360
|
+
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
361
|
+
};
|
|
362
|
+
exts: {
|
|
363
|
+
img?: string[] | undefined;
|
|
364
|
+
} & {
|
|
365
|
+
img?: string[] | undefined;
|
|
366
|
+
};
|
|
367
|
+
optsGenericForAll: {
|
|
368
|
+
allowedExts?: string[] | undefined;
|
|
369
|
+
} & {
|
|
370
|
+
allowedExts?: string[] | undefined;
|
|
371
|
+
};
|
|
372
|
+
sqls: {
|
|
373
|
+
[k: string]: string;
|
|
374
|
+
} & {
|
|
375
|
+
[k: string]: string;
|
|
376
|
+
};
|
|
377
|
+
messages: {
|
|
378
|
+
[k: string]: string;
|
|
379
|
+
} & {
|
|
380
|
+
[k: string]: string;
|
|
381
|
+
};
|
|
382
|
+
dbUserNameExpr: string;
|
|
383
|
+
dbUserRolExpr: string;
|
|
384
|
+
specialValueWhenInsert: {
|
|
385
|
+
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
386
|
+
} & {
|
|
387
|
+
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
388
|
+
};
|
|
389
|
+
}) & {
|
|
390
|
+
new (...args: any[]): {
|
|
391
|
+
tablasDatos: relEnc.TablaDatos[];
|
|
392
|
+
configStaticConfig(): void;
|
|
393
|
+
cargarGenerados(client: relEnc.Client): Promise<string>;
|
|
394
|
+
postConfig(): Promise<void>;
|
|
395
|
+
generateBaseTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinition;
|
|
396
|
+
getTableDefFunction(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
397
|
+
loadTableDef(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
398
|
+
generateAndLoadTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinitionFunction;
|
|
399
|
+
clientIncludes(req: relEnc.Request, hideBEPlusInclusions: relEnc.OptsClientPage): relEnc.ClientModuleDefinition[];
|
|
400
|
+
getMenu(): relEnc.MenuDefinition;
|
|
401
|
+
prepareGetTables(): void;
|
|
402
|
+
checkDatabaseStructure(client: relEnc.Client): Promise<void>;
|
|
403
|
+
getDbFunctions(opts: relEnc.DumpOptions): Promise<{
|
|
404
|
+
dumpText: string;
|
|
405
|
+
}[]>;
|
|
406
|
+
procedures: relEnc.ProcedureDef[];
|
|
407
|
+
procedure: {
|
|
408
|
+
[key: string]: relEnc.ProcedureDef;
|
|
409
|
+
};
|
|
410
|
+
app: relEnc.ExpressPlus;
|
|
411
|
+
getTableDefinition: relEnc.TableDefinitionsGetters;
|
|
412
|
+
tableStructures: relEnc.TableDefinitions;
|
|
413
|
+
db: typeof import("pg-promise-strict");
|
|
414
|
+
config: any;
|
|
415
|
+
rootPath: string;
|
|
416
|
+
caches: {
|
|
417
|
+
procedures: {
|
|
418
|
+
[k: string]: {
|
|
419
|
+
timestamp: number;
|
|
420
|
+
result: any;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
fieldDomain: {
|
|
425
|
+
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
426
|
+
};
|
|
427
|
+
exts: {
|
|
428
|
+
img?: string[] | undefined;
|
|
429
|
+
};
|
|
430
|
+
optsGenericForAll: {
|
|
431
|
+
allowedExts?: string[] | undefined;
|
|
432
|
+
};
|
|
433
|
+
sqls: {
|
|
434
|
+
[k: string]: string;
|
|
435
|
+
};
|
|
436
|
+
messages: {
|
|
437
|
+
[k: string]: string;
|
|
438
|
+
};
|
|
439
|
+
dbUserNameExpr: string;
|
|
440
|
+
dbUserRolExpr: string;
|
|
441
|
+
specialValueWhenInsert: {
|
|
442
|
+
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
443
|
+
};
|
|
444
|
+
clearCaches(): void;
|
|
445
|
+
start(opts?: relEnc.StartOptions | undefined): Promise<void>;
|
|
446
|
+
getTables(): relEnc.TableItemDef[];
|
|
447
|
+
appendToTableDefinition(tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void): void;
|
|
448
|
+
getContext(req: relEnc.Request): relEnc.Context;
|
|
449
|
+
addSchrödingerServices(mainApp: relEnc.ExpressPlus, baseUrl: string): void;
|
|
450
|
+
addUnloggedServices(mainApp: relEnc.ExpressPlus, baseUrl: string): void;
|
|
451
|
+
addLoggedServices(): void;
|
|
452
|
+
getProcedures(): Promise<relEnc.ProcedureDef[]>;
|
|
453
|
+
inDbClient<T_4>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_4>): Promise<T_4>;
|
|
454
|
+
inTransaction<T_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1>): Promise<T_1>;
|
|
455
|
+
procedureDefCompleter(procedureDef: relEnc.ProcedureDef): relEnc.ProcedureDef;
|
|
456
|
+
tableDefAdapt(tableDef: relEnc.TableDefinition, context: relEnc.Context): relEnc.TableDefinition;
|
|
457
|
+
pushApp(dirname: string): void;
|
|
458
|
+
dumpDbSchemaPartial(partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined): Promise<{
|
|
459
|
+
mainSql: string;
|
|
460
|
+
enancePart: string;
|
|
461
|
+
}>;
|
|
462
|
+
getContextForDump(): relEnc.ContextForDump;
|
|
463
|
+
getClientSetupForSendToFrontEnd(req: relEnc.Request): relEnc.ClientSetup;
|
|
464
|
+
configList(): (string | object)[];
|
|
465
|
+
setStaticConfig(defConfigYamlString: string): void;
|
|
466
|
+
mainPage(req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined): {
|
|
467
|
+
toHtmlDoc: () => string;
|
|
468
|
+
};
|
|
469
|
+
isThisProcedureAllowed<T_2>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
470
|
+
[key: string]: T_2;
|
|
471
|
+
}): Promise<boolean>;
|
|
472
|
+
};
|
|
473
|
+
prefixTableName(tableName: string, prefix: string): string;
|
|
474
|
+
} & typeof relEnc.AppBackend;
|
|
475
|
+
export declare type AppMetaEncType = InstanceType<typeof AppMetaEnc>;
|