dmencu 0.3.34 → 0.3.36

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.
Files changed (127) hide show
  1. package/dist/client/client/client.d.ts +1 -1
  2. package/dist/client/client/client.js +540 -539
  3. package/dist/client/client/menu.js +2 -2
  4. package/dist/client/unlogged/abrir-formulario.d.ts +12 -12
  5. package/dist/client/unlogged/abrir-formulario.js +102 -102
  6. package/dist/client/unlogged/bypass-formulario.d.ts +200 -200
  7. package/dist/client/unlogged/bypass-formulario.js +1041 -1041
  8. package/dist/client/unlogged/redux-formulario.d.ts +349 -349
  9. package/dist/client/unlogged/redux-formulario.js +317 -317
  10. package/dist/client/unlogged/tipos.d.ts +469 -469
  11. package/dist/client/unlogged/tipos.js +21 -21
  12. package/dist/server/server/app-dmencu.d.ts +1511 -1511
  13. package/dist/server/server/app-dmencu.js +649 -649
  14. package/dist/server/server/def-config.d.ts +1 -1
  15. package/dist/server/server/def-config.js +14 -14
  16. package/dist/server/server/procedures-dmencu.d.ts +6 -6
  17. package/dist/server/server/procedures-dmencu.js +854 -854
  18. package/dist/server/server/server-dmencu.d.ts +1 -1
  19. package/dist/server/server/server-dmencu.js +20 -20
  20. package/dist/server/server/table-acciones.d.ts +3 -3
  21. package/dist/server/server/table-acciones.js +53 -53
  22. package/dist/server/server/table-areas.d.ts +3 -3
  23. package/dist/server/server/table-areas.js +88 -88
  24. package/dist/server/server/table-comunas.d.ts +3 -3
  25. package/dist/server/server/table-comunas.js +28 -28
  26. package/dist/server/server/table-control_campo.d.ts +11 -11
  27. package/dist/server/server/table-control_campo.js +71 -71
  28. package/dist/server/server/table-control_resumen.d.ts +3 -3
  29. package/dist/server/server/table-control_resumen.js +18 -18
  30. package/dist/server/server/table-encuestadores.d.ts +3 -3
  31. package/dist/server/server/table-encuestadores.js +18 -18
  32. package/dist/server/server/table-estados.d.ts +3 -3
  33. package/dist/server/server/table-estados.js +60 -60
  34. package/dist/server/server/table-estados_acciones.d.ts +3 -3
  35. package/dist/server/server/table-estados_acciones.js +38 -38
  36. package/dist/server/server/table-hogares.d.ts +3 -3
  37. package/dist/server/server/table-hogares.js +156 -156
  38. package/dist/server/server/table-hogares_sup.d.ts +3 -3
  39. package/dist/server/server/table-hogares_sup.js +191 -191
  40. package/dist/server/server/table-lotes.d.ts +3 -3
  41. package/dist/server/server/table-lotes.js +35 -35
  42. package/dist/server/server/table-mis_encuestadores.d.ts +3 -3
  43. package/dist/server/server/table-mis_encuestadores.js +56 -56
  44. package/dist/server/server/table-mis_tareas.d.ts +3 -3
  45. package/dist/server/server/table-mis_tareas.js +18 -18
  46. package/dist/server/server/table-mis_tareas_areas.d.ts +3 -3
  47. package/dist/server/server/table-mis_tareas_areas.js +20 -20
  48. package/dist/server/server/table-no_rea.d.ts +3 -3
  49. package/dist/server/server/table-no_rea.js +32 -32
  50. package/dist/server/server/table-no_rea_sup.d.ts +3 -3
  51. package/dist/server/server/table-no_rea_sup.js +32 -32
  52. package/dist/server/server/table-operaciones.d.ts +3 -3
  53. package/dist/server/server/table-operaciones.js +30 -30
  54. package/dist/server/server/table-parametros.d.ts +3 -3
  55. package/dist/server/server/table-parametros.js +39 -39
  56. package/dist/server/server/table-permisos.d.ts +3 -3
  57. package/dist/server/server/table-permisos.js +31 -31
  58. package/dist/server/server/table-personal.d.ts +6 -6
  59. package/dist/server/server/table-personal.js +56 -56
  60. package/dist/server/server/table-personal_rol.d.ts +3 -3
  61. package/dist/server/server/table-personal_rol.js +36 -36
  62. package/dist/server/server/table-personas.d.ts +3 -3
  63. package/dist/server/server/table-personas.js +448 -448
  64. package/dist/server/server/table-personas_sup.d.ts +3 -3
  65. package/dist/server/server/table-personas_sup.js +93 -93
  66. package/dist/server/server/table-recepcionistas.d.ts +3 -3
  67. package/dist/server/server/table-recepcionistas.js +18 -18
  68. package/dist/server/server/table-recuperadores.d.ts +3 -3
  69. package/dist/server/server/table-recuperadores.js +18 -18
  70. package/dist/server/server/table-resultados_tarea.d.ts +3 -3
  71. package/dist/server/server/table-resultados_tarea.js +28 -28
  72. package/dist/server/server/table-roles.d.ts +3 -3
  73. package/dist/server/server/table-roles.js +32 -32
  74. package/dist/server/server/table-roles_permisos.d.ts +3 -3
  75. package/dist/server/server/table-roles_permisos.js +35 -35
  76. package/dist/server/server/table-roles_subordinados.d.ts +3 -3
  77. package/dist/server/server/table-roles_subordinados.js +32 -32
  78. package/dist/server/server/table-semanas.d.ts +3 -3
  79. package/dist/server/server/table-semanas.js +34 -34
  80. package/dist/server/server/table-sincronizaciones.d.ts +3 -3
  81. package/dist/server/server/table-sincronizaciones.js +30 -30
  82. package/dist/server/server/table-supervisores.d.ts +3 -3
  83. package/dist/server/server/table-supervisores.js +18 -18
  84. package/dist/server/server/table-tareas.d.ts +3 -3
  85. package/dist/server/server/table-tareas.js +46 -46
  86. package/dist/server/server/table-tareas_areas.d.ts +3 -3
  87. package/dist/server/server/table-tareas_areas.js +55 -55
  88. package/dist/server/server/table-tareas_tem.d.ts +3 -3
  89. package/dist/server/server/table-tareas_tem.js +104 -105
  90. package/dist/server/server/table-tareas_tem_asignables.d.ts +1 -1
  91. package/dist/server/server/table-tareas_tem_asignables.js +5 -5
  92. package/dist/server/server/table-tareas_tem_recepcion.d.ts +3 -5
  93. package/dist/server/server/table-tareas_tem_recepcion.js +33 -43
  94. package/dist/server/server/table-tem.d.ts +3 -3
  95. package/dist/server/server/table-tem.js +192 -192
  96. package/dist/server/server/table-tem_asignacion.d.ts +3 -0
  97. package/dist/server/server/table-tem_asignacion.js +51 -0
  98. package/dist/server/server/table-tem_recepcion.d.ts +3 -3
  99. package/dist/server/server/table-tem_recepcion.js +18 -18
  100. package/dist/server/server/table-usuarios.d.ts +3 -3
  101. package/dist/server/server/table-usuarios.js +58 -58
  102. package/dist/server/server/table-visitas.d.ts +3 -3
  103. package/dist/server/server/table-visitas.js +91 -91
  104. package/dist/server/server/table-visitas_sup.d.ts +3 -3
  105. package/dist/server/server/table-visitas_sup.js +91 -91
  106. package/dist/server/server/table-viviendas.d.ts +3 -3
  107. package/dist/server/server/table-viviendas.js +299 -299
  108. package/dist/server/server/types-dmencu.d.ts +24 -24
  109. package/dist/server/server/types-dmencu.js +32 -32
  110. package/dist/server/unlogged/tipos.d.ts +469 -469
  111. package/dist/server/unlogged/tipos.js +21 -21
  112. package/dist/unlogged/unlogged/abrir-formulario.d.ts +12 -12
  113. package/dist/unlogged/unlogged/abrir-formulario.js +102 -102
  114. package/dist/unlogged/unlogged/adapt.js +7 -7
  115. package/dist/unlogged/unlogged/bypass-formulario.d.ts +200 -200
  116. package/dist/unlogged/unlogged/bypass-formulario.js +1041 -1041
  117. package/dist/unlogged/unlogged/redux-formulario.d.ts +349 -349
  118. package/dist/unlogged/unlogged/redux-formulario.js +317 -317
  119. package/dist/unlogged/unlogged/render-formulario.d.ts +54 -54
  120. package/dist/unlogged/unlogged/render-formulario.js +1485 -1485
  121. package/dist/unlogged/unlogged/render-general.d.ts +126 -126
  122. package/dist/unlogged/unlogged/render-general.js +184 -184
  123. package/dist/unlogged/unlogged/tipos.d.ts +469 -469
  124. package/dist/unlogged/unlogged/tipos.js +21 -21
  125. package/dist/unlogged/unlogged/unlogged.d.ts +1 -1
  126. package/dist/unlogged/unlogged/unlogged.js +162 -162
  127. package/package.json +1 -1
@@ -1,1511 +1,1511 @@
1
- /// <reference types="backend-plus" />
2
- /// <reference types="express-serve-static-core" />
3
- import * as procesamiento from "procesamiento";
4
- import { ClientModuleDefinition, OptsClientPage } from "procesamiento";
5
- import * as pg from "pg-promise-strict";
6
- import { Context, Request } from "./types-dmencu";
7
- export * from "./types-dmencu";
8
- export declare function emergeAppDmEncu<T extends procesamiento.Constructor<procesamiento.AppProcesamientoType>>(Base: T): {
9
- new (...args: any[]): {
10
- getProcedures(): Promise<procesamiento.ProcedureDef[]>;
11
- checkDatabaseStructure(_client: Client): Promise<void>;
12
- addSchrödingerServices(mainApp: procesamiento.Express, baseUrl: string): void;
13
- getColorsJson(_sufijo: '_test' | '_capa' | ''): {
14
- start_url: string;
15
- display: string;
16
- theme_color: string;
17
- background_color: string;
18
- };
19
- addLoggedServices(): void;
20
- postConfig(): Promise<void>;
21
- configStaticConfig(): void;
22
- clientIncludes(req: Request, opts: OptsClientPage): ClientModuleDefinition[];
23
- refreshCaches(): Promise<void>;
24
- getContext(req: Request): Context;
25
- getContextForDump(): Context;
26
- getClientSetupForSendToFrontEnd(req: Request): {
27
- idper: string | undefined;
28
- setup: Record<string, any>;
29
- procedures: procesamiento.ProcedureDef[];
30
- };
31
- createResourcesForCacheJson(parameters: any): {};
32
- getMenu(context: Context): {
33
- menu: procesamiento.MenuInfoBase[];
34
- };
35
- prepareGetTables(): void;
36
- tablasDatos: procesamiento.TablaDatos[];
37
- procedures: procesamiento.ProcedureDef[];
38
- procedure: {
39
- [key: string]: procesamiento.ProcedureDef;
40
- } & {
41
- [key: string]: procesamiento.ProcedureDef;
42
- } & {
43
- [key: string]: procesamiento.ProcedureDef;
44
- } & {
45
- [key: string]: procesamiento.ProcedureDef;
46
- } & {
47
- [key: string]: procesamiento.ProcedureDef;
48
- } & {
49
- [key: string]: procesamiento.ProcedureDef;
50
- } & {
51
- [key: string]: procesamiento.ProcedureDef;
52
- } & {
53
- [key: string]: procesamiento.ProcedureDef;
54
- } & {
55
- [key: string]: procesamiento.ProcedureDef;
56
- } & {
57
- [key: string]: procesamiento.ProcedureDef;
58
- } & {
59
- [key: string]: procesamiento.ProcedureDef;
60
- } & {
61
- [key: string]: procesamiento.ProcedureDef;
62
- } & {
63
- [key: string]: procesamiento.ProcedureDef;
64
- } & {
65
- [key: string]: procesamiento.ProcedureDef;
66
- } & {
67
- [key: string]: procesamiento.ProcedureDef;
68
- } & {
69
- [key: string]: procesamiento.ProcedureDef;
70
- } & {
71
- [key: string]: procesamiento.ProcedureDef;
72
- } & {
73
- [key: string]: procesamiento.ProcedureDef;
74
- };
75
- app: procesamiento.ExpressPlus;
76
- getTableDefinition: procesamiento.TableDefinitionsGetters;
77
- tableStructures: procesamiento.TableDefinitions;
78
- db: typeof pg;
79
- config: any;
80
- rootPath: string;
81
- caches: {
82
- procedures: {
83
- [k: string]: {
84
- timestamp: number;
85
- result: any;
86
- };
87
- };
88
- } & {
89
- procedures: {
90
- [k: string]: {
91
- timestamp: number;
92
- result: any;
93
- };
94
- };
95
- } & {
96
- procedures: {
97
- [k: string]: {
98
- timestamp: number;
99
- result: any;
100
- };
101
- };
102
- } & {
103
- procedures: {
104
- [k: string]: {
105
- timestamp: number;
106
- result: any;
107
- };
108
- };
109
- } & {
110
- procedures: {
111
- [k: string]: {
112
- timestamp: number;
113
- result: any;
114
- };
115
- };
116
- } & {
117
- procedures: {
118
- [k: string]: {
119
- timestamp: number;
120
- result: any;
121
- };
122
- };
123
- } & {
124
- procedures: {
125
- [k: string]: {
126
- timestamp: number;
127
- result: any;
128
- };
129
- };
130
- } & {
131
- procedures: {
132
- [k: string]: {
133
- timestamp: number;
134
- result: any;
135
- };
136
- };
137
- } & {
138
- procedures: {
139
- [k: string]: {
140
- timestamp: number;
141
- result: any;
142
- };
143
- };
144
- } & {
145
- procedures: {
146
- [k: string]: {
147
- timestamp: number;
148
- result: any;
149
- };
150
- };
151
- } & {
152
- procedures: {
153
- [k: string]: {
154
- timestamp: number;
155
- result: any;
156
- };
157
- };
158
- } & {
159
- procedures: {
160
- [k: string]: {
161
- timestamp: number;
162
- result: any;
163
- };
164
- };
165
- } & {
166
- procedures: {
167
- [k: string]: {
168
- timestamp: number;
169
- result: any;
170
- };
171
- };
172
- } & {
173
- procedures: {
174
- [k: string]: {
175
- timestamp: number;
176
- result: any;
177
- };
178
- };
179
- } & {
180
- procedures: {
181
- [k: string]: {
182
- timestamp: number;
183
- result: any;
184
- };
185
- };
186
- } & {
187
- procedures: {
188
- [k: string]: {
189
- timestamp: number;
190
- result: any;
191
- };
192
- };
193
- } & {
194
- procedures: {
195
- [k: string]: {
196
- timestamp: number;
197
- result: any;
198
- };
199
- };
200
- } & procesamiento.Caches;
201
- fieldDomain: {
202
- [k: string]: Partial<procesamiento.FieldDefinition>;
203
- } & {
204
- [k: string]: Partial<procesamiento.FieldDefinition>;
205
- } & {
206
- [k: string]: Partial<procesamiento.FieldDefinition>;
207
- } & {
208
- [k: string]: Partial<procesamiento.FieldDefinition>;
209
- } & {
210
- [k: string]: Partial<procesamiento.FieldDefinition>;
211
- } & {
212
- [k: string]: Partial<procesamiento.FieldDefinition>;
213
- } & {
214
- [k: string]: Partial<procesamiento.FieldDefinition>;
215
- } & {
216
- [k: string]: Partial<procesamiento.FieldDefinition>;
217
- } & {
218
- [k: string]: Partial<procesamiento.FieldDefinition>;
219
- } & {
220
- [k: string]: Partial<procesamiento.FieldDefinition>;
221
- } & {
222
- [k: string]: Partial<procesamiento.FieldDefinition>;
223
- } & {
224
- [k: string]: Partial<procesamiento.FieldDefinition>;
225
- } & {
226
- [k: string]: Partial<procesamiento.FieldDefinition>;
227
- } & {
228
- [k: string]: Partial<procesamiento.FieldDefinition>;
229
- } & {
230
- [k: string]: Partial<procesamiento.FieldDefinition>;
231
- } & {
232
- [k: string]: Partial<procesamiento.FieldDefinition>;
233
- } & {
234
- [k: string]: Partial<procesamiento.FieldDefinition>;
235
- } & {
236
- [k: string]: Partial<procesamiento.FieldDefinition>;
237
- };
238
- exts: {
239
- img?: string[] | undefined;
240
- } & {
241
- img?: string[] | undefined;
242
- } & {
243
- img?: string[] | undefined;
244
- } & {
245
- img: string[];
246
- normal: string[];
247
- } & {
248
- img?: string[] | undefined;
249
- } & {
250
- img?: string[] | undefined;
251
- } & {
252
- img: string[];
253
- normal: string[];
254
- } & {
255
- img: string[];
256
- normal: string[];
257
- } & {
258
- img?: string[] | undefined;
259
- } & {
260
- img?: string[] | undefined;
261
- } & {
262
- img?: string[] | undefined;
263
- } & {
264
- img: string[];
265
- normal: string[];
266
- } & {
267
- img?: string[] | undefined;
268
- } & {
269
- img?: string[] | undefined;
270
- } & {
271
- img?: string[] | undefined;
272
- } & {
273
- img?: string[] | undefined;
274
- } & {
275
- img: string[];
276
- normal: string[];
277
- } & {
278
- img: string[];
279
- normal: string[];
280
- };
281
- optsGenericForAll: {
282
- allowedExts?: string[] | undefined;
283
- } & {
284
- allowedExts?: string[] | undefined;
285
- } & {
286
- allowedExts?: string[] | undefined;
287
- } & {
288
- allowedExts?: string[] | undefined;
289
- } & {
290
- allowedExts?: string[] | undefined;
291
- } & {
292
- allowedExts?: string[] | undefined;
293
- } & {
294
- allowedExts?: string[] | undefined;
295
- } & {
296
- allowedExts?: string[] | undefined;
297
- } & {
298
- allowedExts?: string[] | undefined;
299
- } & {
300
- allowedExts?: string[] | undefined;
301
- } & {
302
- allowedExts?: string[] | undefined;
303
- } & {
304
- allowedExts?: string[] | undefined;
305
- } & {
306
- allowedExts?: string[] | undefined;
307
- } & {
308
- allowedExts?: string[] | undefined;
309
- } & {
310
- allowedExts?: string[] | undefined;
311
- } & {
312
- allowedExts?: string[] | undefined;
313
- } & {
314
- allowedExts?: string[] | undefined;
315
- } & {
316
- allowedExts?: string[] | undefined;
317
- };
318
- sqls: {
319
- [k: string]: string;
320
- } & {
321
- [k: string]: string;
322
- } & {
323
- [k: string]: string;
324
- } & {
325
- [k: string]: string;
326
- } & {
327
- [k: string]: string;
328
- } & {
329
- [k: string]: string;
330
- } & {
331
- [k: string]: string;
332
- } & {
333
- [k: string]: string;
334
- } & {
335
- [k: string]: string;
336
- } & {
337
- [k: string]: string;
338
- } & {
339
- [k: string]: string;
340
- } & {
341
- [k: string]: string;
342
- } & {
343
- [k: string]: string;
344
- } & {
345
- [k: string]: string;
346
- } & {
347
- [k: string]: string;
348
- } & {
349
- [k: string]: string;
350
- } & {
351
- [k: string]: string;
352
- } & {
353
- [k: string]: string;
354
- };
355
- messages: {
356
- [k: string]: string;
357
- } & {
358
- [k: string]: string;
359
- } & {
360
- [k: string]: string;
361
- } & {
362
- [k: string]: string;
363
- } & {
364
- [k: string]: string;
365
- } & {
366
- [k: string]: string;
367
- } & {
368
- [k: string]: string;
369
- } & {
370
- [k: string]: string;
371
- } & {
372
- [k: string]: string;
373
- } & {
374
- [k: string]: string;
375
- } & {
376
- [k: string]: string;
377
- } & {
378
- [k: string]: string;
379
- } & {
380
- [k: string]: string;
381
- } & {
382
- [k: string]: string;
383
- } & {
384
- [k: string]: string;
385
- } & {
386
- [k: string]: string;
387
- } & {
388
- [k: string]: string;
389
- } & {
390
- [k: string]: string;
391
- };
392
- dbUserNameExpr: string;
393
- dbUserRolExpr: string;
394
- specialValueWhenInsert: {
395
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
396
- } & {
397
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
398
- } & {
399
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
400
- } & {
401
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
402
- } & {
403
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
404
- } & {
405
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
406
- } & {
407
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
408
- } & {
409
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
410
- } & {
411
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
412
- } & {
413
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
414
- } & {
415
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
416
- } & {
417
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
418
- } & {
419
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
420
- } & {
421
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
422
- } & {
423
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
424
- } & {
425
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
426
- } & {
427
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
428
- } & {
429
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
430
- };
431
- i18n: {
432
- messages: Record<procesamiento.LangId, Record<string, string>>;
433
- } & {
434
- messages: Record<procesamiento.LangId, Record<string, string>>;
435
- } & {
436
- messages: Record<procesamiento.LangId, Record<string, string>>;
437
- } & {
438
- messages: Record<procesamiento.LangId, Record<string, string>>;
439
- };
440
- dumpDbTableFields: ((tableDefinition: procesamiento.TableDefinition) => string[]) & ((tableDefinition: procesamiento.TableDefinition) => string[]);
441
- generateAndLoadTableDefs: (() => procesamiento.TableDefinitions) & (() => procesamiento.TableDefinitions);
442
- generateBaseTableDef: ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition);
443
- cargarGenerados: ((client: procesamiento.Client) => Promise<string>) & ((client: procesamiento.Client) => Promise<string>) & ((client: procesamiento.Client) => Promise<string>);
444
- getTableDefFunction: ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction);
445
- loadTableDef: ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction);
446
- generateAndLoadTableDef: ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction);
447
- getDbFunctions: ((opts: procesamiento.DumpOptions) => Promise<{
448
- dumpText: string;
449
- }[]>) & ((opts: procesamiento.DumpOptions) => Promise<{
450
- dumpText: string;
451
- }[]>);
452
- clearCaches: (() => void) & (() => void);
453
- start: ((opts?: procesamiento.StartOptions | undefined) => Promise<void>) & ((opts?: procesamiento.StartOptions | undefined) => Promise<void>);
454
- getTables: (() => procesamiento.TableItemDef[]) & (() => procesamiento.TableItemDef[]);
455
- appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void) => void);
456
- addUnloggedServices: ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void) & ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void);
457
- inDbClient: (<T_1_1>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T_1>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T_1>) => Promise<T_1>);
458
- inTransaction: (<T_2_1>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_2_1>) => Promise<T_2_1>) & (<T_2>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_2>) => Promise<T_2>);
459
- procedureDefCompleter: ((procedureDef: procesamiento.ProcedureDef) => procesamiento.ProcedureDef) & ((procedureDef: procesamiento.ProcedureDef) => procesamiento.ProcedureDef);
460
- tableDefAdapt: ((tableDef: procesamiento.TableDefinition, context: procesamiento.Context) => procesamiento.TableDefinition) & ((tableDef: procesamiento.TableDefinition, context: procesamiento.Context) => procesamiento.TableDefinition);
461
- pushApp: ((dirname: string) => void) & ((dirname: string) => void);
462
- dumpDbSchemaPartial: ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined) => Promise<{
463
- mainSql: string;
464
- enancePart: string;
465
- }>) & ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined) => Promise<{
466
- mainSql: string;
467
- enancePart: string;
468
- }>);
469
- configList: (() => (string | object)[]) & (() => (string | object)[]);
470
- setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void);
471
- mainPage: ((req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined) => {
472
- toHtmlDoc: () => string;
473
- }) & ((req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined) => {
474
- toHtmlDoc: () => string;
475
- });
476
- isThisProcedureAllowed: (<T_3>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
477
- [key: string]: T_3;
478
- }) => Promise<boolean>) & (<T_4>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
479
- [key: string]: T_4;
480
- }) => Promise<boolean>);
481
- inTransactionProcedureContext<T_5>(req: procesamiento.Request | null, coreFunction: (context: procesamiento.ProcedureContext) => Promise<T_5>): Promise<T_5>;
482
- };
483
- } & T;
484
- export declare var AppDmEncu: {
485
- new (...args: any[]): {
486
- getProcedures(): Promise<procesamiento.ProcedureDef[]>;
487
- checkDatabaseStructure(_client: Client): Promise<void>;
488
- addSchrödingerServices(mainApp: procesamiento.Express, baseUrl: string): void;
489
- getColorsJson(_sufijo: '_test' | '_capa' | ''): {
490
- start_url: string;
491
- display: string;
492
- theme_color: string;
493
- background_color: string;
494
- };
495
- addLoggedServices(): void;
496
- postConfig(): Promise<void>;
497
- configStaticConfig(): void;
498
- clientIncludes(req: Request, opts: OptsClientPage): ClientModuleDefinition[];
499
- refreshCaches(): Promise<void>;
500
- getContext(req: Request): Context;
501
- getContextForDump(): Context;
502
- getClientSetupForSendToFrontEnd(req: Request): {
503
- idper: string | undefined;
504
- setup: Record<string, any>;
505
- procedures: procesamiento.ProcedureDef[];
506
- };
507
- createResourcesForCacheJson(parameters: any): {};
508
- getMenu(context: Context): {
509
- menu: procesamiento.MenuInfoBase[];
510
- };
511
- prepareGetTables(): void;
512
- tablasDatos: procesamiento.TablaDatos[];
513
- procedures: procesamiento.ProcedureDef[];
514
- procedure: {
515
- [key: string]: procesamiento.ProcedureDef;
516
- } & {
517
- [key: string]: procesamiento.ProcedureDef;
518
- } & {
519
- [key: string]: procesamiento.ProcedureDef;
520
- } & {
521
- [key: string]: procesamiento.ProcedureDef;
522
- } & {
523
- [key: string]: procesamiento.ProcedureDef;
524
- } & {
525
- [key: string]: procesamiento.ProcedureDef;
526
- } & {
527
- [key: string]: procesamiento.ProcedureDef;
528
- } & {
529
- [key: string]: procesamiento.ProcedureDef;
530
- } & {
531
- [key: string]: procesamiento.ProcedureDef;
532
- } & {
533
- [key: string]: procesamiento.ProcedureDef;
534
- } & {
535
- [key: string]: procesamiento.ProcedureDef;
536
- } & {
537
- [key: string]: procesamiento.ProcedureDef;
538
- } & {
539
- [key: string]: procesamiento.ProcedureDef;
540
- } & {
541
- [key: string]: procesamiento.ProcedureDef;
542
- } & {
543
- [key: string]: procesamiento.ProcedureDef;
544
- } & {
545
- [key: string]: procesamiento.ProcedureDef;
546
- } & {
547
- [key: string]: procesamiento.ProcedureDef;
548
- } & {
549
- [key: string]: procesamiento.ProcedureDef;
550
- };
551
- app: procesamiento.ExpressPlus;
552
- getTableDefinition: procesamiento.TableDefinitionsGetters;
553
- tableStructures: procesamiento.TableDefinitions;
554
- db: typeof pg;
555
- config: any;
556
- rootPath: string;
557
- caches: {
558
- procedures: {
559
- [k: string]: {
560
- timestamp: number;
561
- result: any;
562
- };
563
- };
564
- } & {
565
- procedures: {
566
- [k: string]: {
567
- timestamp: number;
568
- result: any;
569
- };
570
- };
571
- } & {
572
- procedures: {
573
- [k: string]: {
574
- timestamp: number;
575
- result: any;
576
- };
577
- };
578
- } & {
579
- procedures: {
580
- [k: string]: {
581
- timestamp: number;
582
- result: any;
583
- };
584
- };
585
- } & {
586
- procedures: {
587
- [k: string]: {
588
- timestamp: number;
589
- result: any;
590
- };
591
- };
592
- } & {
593
- procedures: {
594
- [k: string]: {
595
- timestamp: number;
596
- result: any;
597
- };
598
- };
599
- } & {
600
- procedures: {
601
- [k: string]: {
602
- timestamp: number;
603
- result: any;
604
- };
605
- };
606
- } & {
607
- procedures: {
608
- [k: string]: {
609
- timestamp: number;
610
- result: any;
611
- };
612
- };
613
- } & {
614
- procedures: {
615
- [k: string]: {
616
- timestamp: number;
617
- result: any;
618
- };
619
- };
620
- } & {
621
- procedures: {
622
- [k: string]: {
623
- timestamp: number;
624
- result: any;
625
- };
626
- };
627
- } & {
628
- procedures: {
629
- [k: string]: {
630
- timestamp: number;
631
- result: any;
632
- };
633
- };
634
- } & {
635
- procedures: {
636
- [k: string]: {
637
- timestamp: number;
638
- result: any;
639
- };
640
- };
641
- } & {
642
- procedures: {
643
- [k: string]: {
644
- timestamp: number;
645
- result: any;
646
- };
647
- };
648
- } & {
649
- procedures: {
650
- [k: string]: {
651
- timestamp: number;
652
- result: any;
653
- };
654
- };
655
- } & {
656
- procedures: {
657
- [k: string]: {
658
- timestamp: number;
659
- result: any;
660
- };
661
- };
662
- } & {
663
- procedures: {
664
- [k: string]: {
665
- timestamp: number;
666
- result: any;
667
- };
668
- };
669
- } & {
670
- procedures: {
671
- [k: string]: {
672
- timestamp: number;
673
- result: any;
674
- };
675
- };
676
- } & procesamiento.Caches;
677
- fieldDomain: {
678
- [k: string]: Partial<procesamiento.FieldDefinition>;
679
- } & {
680
- [k: string]: Partial<procesamiento.FieldDefinition>;
681
- } & {
682
- [k: string]: Partial<procesamiento.FieldDefinition>;
683
- } & {
684
- [k: string]: Partial<procesamiento.FieldDefinition>;
685
- } & {
686
- [k: string]: Partial<procesamiento.FieldDefinition>;
687
- } & {
688
- [k: string]: Partial<procesamiento.FieldDefinition>;
689
- } & {
690
- [k: string]: Partial<procesamiento.FieldDefinition>;
691
- } & {
692
- [k: string]: Partial<procesamiento.FieldDefinition>;
693
- } & {
694
- [k: string]: Partial<procesamiento.FieldDefinition>;
695
- } & {
696
- [k: string]: Partial<procesamiento.FieldDefinition>;
697
- } & {
698
- [k: string]: Partial<procesamiento.FieldDefinition>;
699
- } & {
700
- [k: string]: Partial<procesamiento.FieldDefinition>;
701
- } & {
702
- [k: string]: Partial<procesamiento.FieldDefinition>;
703
- } & {
704
- [k: string]: Partial<procesamiento.FieldDefinition>;
705
- } & {
706
- [k: string]: Partial<procesamiento.FieldDefinition>;
707
- } & {
708
- [k: string]: Partial<procesamiento.FieldDefinition>;
709
- } & {
710
- [k: string]: Partial<procesamiento.FieldDefinition>;
711
- } & {
712
- [k: string]: Partial<procesamiento.FieldDefinition>;
713
- };
714
- exts: {
715
- img?: string[] | undefined;
716
- } & {
717
- img?: string[] | undefined;
718
- } & {
719
- img?: string[] | undefined;
720
- } & {
721
- img: string[];
722
- normal: string[];
723
- } & {
724
- img?: string[] | undefined;
725
- } & {
726
- img?: string[] | undefined;
727
- } & {
728
- img: string[];
729
- normal: string[];
730
- } & {
731
- img: string[];
732
- normal: string[];
733
- } & {
734
- img?: string[] | undefined;
735
- } & {
736
- img?: string[] | undefined;
737
- } & {
738
- img?: string[] | undefined;
739
- } & {
740
- img: string[];
741
- normal: string[];
742
- } & {
743
- img?: string[] | undefined;
744
- } & {
745
- img?: string[] | undefined;
746
- } & {
747
- img?: string[] | undefined;
748
- } & {
749
- img?: string[] | undefined;
750
- } & {
751
- img: string[];
752
- normal: string[];
753
- } & {
754
- img: string[];
755
- normal: string[];
756
- };
757
- optsGenericForAll: {
758
- allowedExts?: string[] | undefined;
759
- } & {
760
- allowedExts?: string[] | undefined;
761
- } & {
762
- allowedExts?: string[] | undefined;
763
- } & {
764
- allowedExts?: string[] | undefined;
765
- } & {
766
- allowedExts?: string[] | undefined;
767
- } & {
768
- allowedExts?: string[] | undefined;
769
- } & {
770
- allowedExts?: string[] | undefined;
771
- } & {
772
- allowedExts?: string[] | undefined;
773
- } & {
774
- allowedExts?: string[] | undefined;
775
- } & {
776
- allowedExts?: string[] | undefined;
777
- } & {
778
- allowedExts?: string[] | undefined;
779
- } & {
780
- allowedExts?: string[] | undefined;
781
- } & {
782
- allowedExts?: string[] | undefined;
783
- } & {
784
- allowedExts?: string[] | undefined;
785
- } & {
786
- allowedExts?: string[] | undefined;
787
- } & {
788
- allowedExts?: string[] | undefined;
789
- } & {
790
- allowedExts?: string[] | undefined;
791
- } & {
792
- allowedExts?: string[] | undefined;
793
- };
794
- sqls: {
795
- [k: string]: string;
796
- } & {
797
- [k: string]: string;
798
- } & {
799
- [k: string]: string;
800
- } & {
801
- [k: string]: string;
802
- } & {
803
- [k: string]: string;
804
- } & {
805
- [k: string]: string;
806
- } & {
807
- [k: string]: string;
808
- } & {
809
- [k: string]: string;
810
- } & {
811
- [k: string]: string;
812
- } & {
813
- [k: string]: string;
814
- } & {
815
- [k: string]: string;
816
- } & {
817
- [k: string]: string;
818
- } & {
819
- [k: string]: string;
820
- } & {
821
- [k: string]: string;
822
- } & {
823
- [k: string]: string;
824
- } & {
825
- [k: string]: string;
826
- } & {
827
- [k: string]: string;
828
- } & {
829
- [k: string]: string;
830
- };
831
- messages: {
832
- [k: string]: string;
833
- } & {
834
- [k: string]: string;
835
- } & {
836
- [k: string]: string;
837
- } & {
838
- [k: string]: string;
839
- } & {
840
- [k: string]: string;
841
- } & {
842
- [k: string]: string;
843
- } & {
844
- [k: string]: string;
845
- } & {
846
- [k: string]: string;
847
- } & {
848
- [k: string]: string;
849
- } & {
850
- [k: string]: string;
851
- } & {
852
- [k: string]: string;
853
- } & {
854
- [k: string]: string;
855
- } & {
856
- [k: string]: string;
857
- } & {
858
- [k: string]: string;
859
- } & {
860
- [k: string]: string;
861
- } & {
862
- [k: string]: string;
863
- } & {
864
- [k: string]: string;
865
- } & {
866
- [k: string]: string;
867
- };
868
- dbUserNameExpr: string;
869
- dbUserRolExpr: string;
870
- specialValueWhenInsert: {
871
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
872
- } & {
873
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
874
- } & {
875
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
876
- } & {
877
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
878
- } & {
879
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
880
- } & {
881
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
882
- } & {
883
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
884
- } & {
885
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
886
- } & {
887
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
888
- } & {
889
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
890
- } & {
891
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
892
- } & {
893
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
894
- } & {
895
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
896
- } & {
897
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
898
- } & {
899
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
900
- } & {
901
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
902
- } & {
903
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
904
- } & {
905
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
906
- };
907
- i18n: {
908
- messages: Record<procesamiento.LangId, Record<string, string>>;
909
- } & {
910
- messages: Record<procesamiento.LangId, Record<string, string>>;
911
- } & {
912
- messages: Record<procesamiento.LangId, Record<string, string>>;
913
- } & {
914
- messages: Record<procesamiento.LangId, Record<string, string>>;
915
- };
916
- dumpDbTableFields: ((tableDefinition: procesamiento.TableDefinition) => string[]) & ((tableDefinition: procesamiento.TableDefinition) => string[]);
917
- generateAndLoadTableDefs: (() => procesamiento.TableDefinitions) & (() => procesamiento.TableDefinitions);
918
- generateBaseTableDef: ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition);
919
- cargarGenerados: ((client: procesamiento.Client) => Promise<string>) & ((client: procesamiento.Client) => Promise<string>) & ((client: procesamiento.Client) => Promise<string>);
920
- getTableDefFunction: ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction);
921
- loadTableDef: ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction);
922
- generateAndLoadTableDef: ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction);
923
- getDbFunctions: ((opts: procesamiento.DumpOptions) => Promise<{
924
- dumpText: string;
925
- }[]>) & ((opts: procesamiento.DumpOptions) => Promise<{
926
- dumpText: string;
927
- }[]>);
928
- clearCaches: (() => void) & (() => void);
929
- start: ((opts?: procesamiento.StartOptions | undefined) => Promise<void>) & ((opts?: procesamiento.StartOptions | undefined) => Promise<void>);
930
- getTables: (() => procesamiento.TableItemDef[]) & (() => procesamiento.TableItemDef[]);
931
- appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void) => void);
932
- addUnloggedServices: ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void) & ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void);
933
- inDbClient: (<T_1_1>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T>) => Promise<T>);
934
- inTransaction: (<T_2_1>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_2_1>) => Promise<T_2_1>) & (<T_1>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_1>) => Promise<T_1>);
935
- procedureDefCompleter: ((procedureDef: procesamiento.ProcedureDef) => procesamiento.ProcedureDef) & ((procedureDef: procesamiento.ProcedureDef) => procesamiento.ProcedureDef);
936
- tableDefAdapt: ((tableDef: procesamiento.TableDefinition, context: procesamiento.Context) => procesamiento.TableDefinition) & ((tableDef: procesamiento.TableDefinition, context: procesamiento.Context) => procesamiento.TableDefinition);
937
- pushApp: ((dirname: string) => void) & ((dirname: string) => void);
938
- dumpDbSchemaPartial: ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined) => Promise<{
939
- mainSql: string;
940
- enancePart: string;
941
- }>) & ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined) => Promise<{
942
- mainSql: string;
943
- enancePart: string;
944
- }>);
945
- configList: (() => (string | object)[]) & (() => (string | object)[]);
946
- setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void);
947
- mainPage: ((req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined) => {
948
- toHtmlDoc: () => string;
949
- }) & ((req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined) => {
950
- toHtmlDoc: () => string;
951
- });
952
- isThisProcedureAllowed: (<T_3>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
953
- [key: string]: T_3;
954
- }) => Promise<boolean>) & (<T_2>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
955
- [key: string]: T_2;
956
- }) => Promise<boolean>);
957
- inTransactionProcedureContext<T_4>(req: procesamiento.Request | null, coreFunction: (context: procesamiento.ProcedureContext) => Promise<T_4>): Promise<T_4>;
958
- };
959
- } & (new (...args: any[]) => {
960
- getProcedures(): Promise<procesamiento.ProcedureDef[]>;
961
- clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
962
- configStaticConfig(): void;
963
- tablasDatos: procesamiento.TablaDatos[];
964
- procedures: procesamiento.ProcedureDef[];
965
- procedure: {
966
- [key: string]: procesamiento.ProcedureDef;
967
- } & {
968
- [key: string]: procesamiento.ProcedureDef;
969
- } & {
970
- [key: string]: procesamiento.ProcedureDef;
971
- } & {
972
- [key: string]: procesamiento.ProcedureDef;
973
- } & {
974
- [key: string]: procesamiento.ProcedureDef;
975
- } & {
976
- [key: string]: procesamiento.ProcedureDef;
977
- } & {
978
- [key: string]: procesamiento.ProcedureDef;
979
- } & {
980
- [key: string]: procesamiento.ProcedureDef;
981
- };
982
- app: procesamiento.ExpressPlus;
983
- getTableDefinition: procesamiento.TableDefinitionsGetters;
984
- tableStructures: procesamiento.TableDefinitions;
985
- db: typeof pg;
986
- config: any;
987
- rootPath: string;
988
- caches: {
989
- procedures: {
990
- [k: string]: {
991
- timestamp: number;
992
- result: any;
993
- };
994
- };
995
- } & {
996
- procedures: {
997
- [k: string]: {
998
- timestamp: number;
999
- result: any;
1000
- };
1001
- };
1002
- } & {
1003
- procedures: {
1004
- [k: string]: {
1005
- timestamp: number;
1006
- result: any;
1007
- };
1008
- };
1009
- } & {
1010
- procedures: {
1011
- [k: string]: {
1012
- timestamp: number;
1013
- result: any;
1014
- };
1015
- };
1016
- } & {
1017
- procedures: {
1018
- [k: string]: {
1019
- timestamp: number;
1020
- result: any;
1021
- };
1022
- };
1023
- } & {
1024
- procedures: {
1025
- [k: string]: {
1026
- timestamp: number;
1027
- result: any;
1028
- };
1029
- };
1030
- } & {
1031
- procedures: {
1032
- [k: string]: {
1033
- timestamp: number;
1034
- result: any;
1035
- };
1036
- };
1037
- } & {
1038
- procedures: {
1039
- [k: string]: {
1040
- timestamp: number;
1041
- result: any;
1042
- };
1043
- };
1044
- };
1045
- fieldDomain: {
1046
- [k: string]: Partial<procesamiento.FieldDefinition>;
1047
- } & {
1048
- [k: string]: Partial<procesamiento.FieldDefinition>;
1049
- } & {
1050
- [k: string]: Partial<procesamiento.FieldDefinition>;
1051
- } & {
1052
- [k: string]: Partial<procesamiento.FieldDefinition>;
1053
- } & {
1054
- [k: string]: Partial<procesamiento.FieldDefinition>;
1055
- } & {
1056
- [k: string]: Partial<procesamiento.FieldDefinition>;
1057
- } & {
1058
- [k: string]: Partial<procesamiento.FieldDefinition>;
1059
- } & {
1060
- [k: string]: Partial<procesamiento.FieldDefinition>;
1061
- };
1062
- exts: {
1063
- img?: string[] | undefined;
1064
- } & {
1065
- img?: string[] | undefined;
1066
- } & {
1067
- img?: string[] | undefined;
1068
- } & {
1069
- img: string[];
1070
- normal: string[];
1071
- } & {
1072
- img?: string[] | undefined;
1073
- } & {
1074
- img?: string[] | undefined;
1075
- } & {
1076
- img: string[];
1077
- normal: string[];
1078
- } & {
1079
- img: string[];
1080
- normal: string[];
1081
- };
1082
- optsGenericForAll: {
1083
- allowedExts?: string[] | undefined;
1084
- } & {
1085
- allowedExts?: string[] | undefined;
1086
- } & {
1087
- allowedExts?: string[] | undefined;
1088
- } & {
1089
- allowedExts?: string[] | undefined;
1090
- } & {
1091
- allowedExts?: string[] | undefined;
1092
- } & {
1093
- allowedExts?: string[] | undefined;
1094
- } & {
1095
- allowedExts?: string[] | undefined;
1096
- } & {
1097
- allowedExts?: string[] | undefined;
1098
- };
1099
- sqls: {
1100
- [k: string]: string;
1101
- } & {
1102
- [k: string]: string;
1103
- } & {
1104
- [k: string]: string;
1105
- } & {
1106
- [k: string]: string;
1107
- } & {
1108
- [k: string]: string;
1109
- } & {
1110
- [k: string]: string;
1111
- } & {
1112
- [k: string]: string;
1113
- } & {
1114
- [k: string]: string;
1115
- };
1116
- messages: {
1117
- [k: string]: string;
1118
- } & {
1119
- [k: string]: string;
1120
- } & {
1121
- [k: string]: string;
1122
- } & {
1123
- [k: string]: string;
1124
- } & {
1125
- [k: string]: string;
1126
- } & {
1127
- [k: string]: string;
1128
- } & {
1129
- [k: string]: string;
1130
- } & {
1131
- [k: string]: string;
1132
- };
1133
- dbUserNameExpr: string;
1134
- dbUserRolExpr: string;
1135
- specialValueWhenInsert: {
1136
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1137
- } & {
1138
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1139
- } & {
1140
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1141
- } & {
1142
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1143
- } & {
1144
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1145
- } & {
1146
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1147
- } & {
1148
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1149
- } & {
1150
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1151
- };
1152
- i18n: {
1153
- messages: Record<procesamiento.LangId, Record<string, string>>;
1154
- } & {
1155
- messages: Record<procesamiento.LangId, Record<string, string>>;
1156
- };
1157
- dumpDbTableFields(tableDefinition: procesamiento.TableDefinition): string[];
1158
- }) & (new (...args: any[]) => {
1159
- getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1160
- clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1161
- configStaticConfig(): void;
1162
- getMenu(): procesamiento.MenuDefinition;
1163
- postConfig(): Promise<void>;
1164
- prepareGetTables(): void;
1165
- generateAndLoadTableDefs(): procesamiento.TableDefinitions;
1166
- tablasDatos: procesamiento.TablaDatos[];
1167
- procedures: procesamiento.ProcedureDef[];
1168
- procedure: {
1169
- [key: string]: procesamiento.ProcedureDef;
1170
- } & {
1171
- [key: string]: procesamiento.ProcedureDef;
1172
- } & {
1173
- [key: string]: procesamiento.ProcedureDef;
1174
- } & {
1175
- [key: string]: procesamiento.ProcedureDef;
1176
- };
1177
- app: procesamiento.ExpressPlus;
1178
- getTableDefinition: procesamiento.TableDefinitionsGetters;
1179
- tableStructures: procesamiento.TableDefinitions;
1180
- db: typeof pg;
1181
- config: any;
1182
- rootPath: string;
1183
- caches: {
1184
- procedures: {
1185
- [k: string]: {
1186
- timestamp: number;
1187
- result: any;
1188
- };
1189
- };
1190
- } & {
1191
- procedures: {
1192
- [k: string]: {
1193
- timestamp: number;
1194
- result: any;
1195
- };
1196
- };
1197
- } & {
1198
- procedures: {
1199
- [k: string]: {
1200
- timestamp: number;
1201
- result: any;
1202
- };
1203
- };
1204
- } & {
1205
- procedures: {
1206
- [k: string]: {
1207
- timestamp: number;
1208
- result: any;
1209
- };
1210
- };
1211
- };
1212
- fieldDomain: {
1213
- [k: string]: Partial<procesamiento.FieldDefinition>;
1214
- } & {
1215
- [k: string]: Partial<procesamiento.FieldDefinition>;
1216
- } & {
1217
- [k: string]: Partial<procesamiento.FieldDefinition>;
1218
- } & {
1219
- [k: string]: Partial<procesamiento.FieldDefinition>;
1220
- };
1221
- exts: {
1222
- img?: string[] | undefined;
1223
- } & {
1224
- img?: string[] | undefined;
1225
- } & {
1226
- img?: string[] | undefined;
1227
- } & {
1228
- img: string[];
1229
- normal: string[];
1230
- };
1231
- optsGenericForAll: {
1232
- allowedExts?: string[] | undefined;
1233
- } & {
1234
- allowedExts?: string[] | undefined;
1235
- } & {
1236
- allowedExts?: string[] | undefined;
1237
- } & {
1238
- allowedExts?: string[] | undefined;
1239
- };
1240
- sqls: {
1241
- [k: string]: string;
1242
- } & {
1243
- [k: string]: string;
1244
- } & {
1245
- [k: string]: string;
1246
- } & {
1247
- [k: string]: string;
1248
- };
1249
- messages: {
1250
- [k: string]: string;
1251
- } & {
1252
- [k: string]: string;
1253
- } & {
1254
- [k: string]: string;
1255
- } & {
1256
- [k: string]: string;
1257
- };
1258
- dbUserNameExpr: string;
1259
- dbUserRolExpr: string;
1260
- specialValueWhenInsert: {
1261
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1262
- } & {
1263
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1264
- } & {
1265
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1266
- } & {
1267
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1268
- };
1269
- i18n: {
1270
- messages: Record<procesamiento.LangId, Record<string, string>>;
1271
- };
1272
- }) & (new (...args: any[]) => {
1273
- configStaticConfig(): void;
1274
- getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1275
- clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1276
- generateAndLoadTableDefs(): procesamiento.TableDefinitions;
1277
- generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinition;
1278
- prepareGetTables(): void;
1279
- tablasDatos: procesamiento.TablaDatos[];
1280
- cargarGenerados(client: procesamiento.Client): Promise<string>;
1281
- getTableDefFunction(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1282
- loadTableDef(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1283
- generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinitionFunction;
1284
- procedures: procesamiento.ProcedureDef[];
1285
- procedure: {
1286
- [key: string]: procesamiento.ProcedureDef;
1287
- } & {
1288
- [key: string]: procesamiento.ProcedureDef;
1289
- };
1290
- app: procesamiento.ExpressPlus;
1291
- getTableDefinition: procesamiento.TableDefinitionsGetters;
1292
- tableStructures: procesamiento.TableDefinitions;
1293
- db: typeof pg;
1294
- config: any;
1295
- rootPath: string;
1296
- caches: {
1297
- procedures: {
1298
- [k: string]: {
1299
- timestamp: number;
1300
- result: any;
1301
- };
1302
- };
1303
- } & {
1304
- procedures: {
1305
- [k: string]: {
1306
- timestamp: number;
1307
- result: any;
1308
- };
1309
- };
1310
- };
1311
- fieldDomain: {
1312
- [k: string]: Partial<procesamiento.FieldDefinition>;
1313
- } & {
1314
- [k: string]: Partial<procesamiento.FieldDefinition>;
1315
- };
1316
- exts: {
1317
- img: string[];
1318
- normal: string[];
1319
- } & {
1320
- img: string[];
1321
- normal: string[];
1322
- };
1323
- optsGenericForAll: {
1324
- allowedExts?: string[] | undefined;
1325
- } & {
1326
- allowedExts?: string[] | undefined;
1327
- };
1328
- sqls: {
1329
- [k: string]: string;
1330
- } & {
1331
- [k: string]: string;
1332
- };
1333
- messages: {
1334
- [k: string]: string;
1335
- } & {
1336
- [k: string]: string;
1337
- };
1338
- dbUserNameExpr: string;
1339
- dbUserRolExpr: string;
1340
- specialValueWhenInsert: {
1341
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1342
- } & {
1343
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1344
- };
1345
- i18n: {
1346
- messages: Record<procesamiento.LangId, Record<string, string>>;
1347
- };
1348
- }) & (new (...args: any[]) => {
1349
- configStaticConfig(): void;
1350
- generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinition;
1351
- getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1352
- clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1353
- prepareGetTables(): void;
1354
- tablasDatos: procesamiento.TablaDatos[];
1355
- cargarGenerados(client: procesamiento.Client): Promise<string>;
1356
- getTableDefFunction(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1357
- loadTableDef(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1358
- generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinitionFunction;
1359
- procedures: procesamiento.ProcedureDef[];
1360
- procedure: {
1361
- [key: string]: procesamiento.ProcedureDef;
1362
- } & {
1363
- [key: string]: procesamiento.ProcedureDef;
1364
- };
1365
- app: procesamiento.ExpressPlus;
1366
- getTableDefinition: procesamiento.TableDefinitionsGetters;
1367
- tableStructures: procesamiento.TableDefinitions;
1368
- db: typeof pg;
1369
- config: any;
1370
- rootPath: string;
1371
- caches: {
1372
- procedures: {
1373
- [k: string]: {
1374
- timestamp: number;
1375
- result: any;
1376
- };
1377
- };
1378
- } & {
1379
- procedures: {
1380
- [k: string]: {
1381
- timestamp: number;
1382
- result: any;
1383
- };
1384
- };
1385
- };
1386
- fieldDomain: {
1387
- [k: string]: Partial<procesamiento.FieldDefinition>;
1388
- } & {
1389
- [k: string]: Partial<procesamiento.FieldDefinition>;
1390
- };
1391
- exts: {
1392
- img: string[];
1393
- normal: string[];
1394
- } & {
1395
- img: string[];
1396
- normal: string[];
1397
- };
1398
- optsGenericForAll: {
1399
- allowedExts?: string[] | undefined;
1400
- } & {
1401
- allowedExts?: string[] | undefined;
1402
- };
1403
- sqls: {
1404
- [k: string]: string;
1405
- } & {
1406
- [k: string]: string;
1407
- };
1408
- messages: {
1409
- [k: string]: string;
1410
- } & {
1411
- [k: string]: string;
1412
- };
1413
- dbUserNameExpr: string;
1414
- dbUserRolExpr: string;
1415
- specialValueWhenInsert: {
1416
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1417
- } & {
1418
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1419
- };
1420
- dumpDbTableFields(tableDefinition: procesamiento.TableDefinition): string[];
1421
- i18n: {
1422
- messages: Record<procesamiento.LangId, Record<string, string>>;
1423
- };
1424
- }) & {
1425
- new (...args: any[]): {
1426
- tablasDatos: procesamiento.TablaDatos[];
1427
- configStaticConfig(): void;
1428
- cargarGenerados(client: procesamiento.Client): Promise<string>;
1429
- postConfig(): Promise<void>;
1430
- generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinition;
1431
- getTableDefFunction(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1432
- loadTableDef(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1433
- generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinitionFunction;
1434
- clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1435
- getMenu(): procesamiento.MenuDefinition;
1436
- prepareGetTables(): void;
1437
- checkDatabaseStructure(client: procesamiento.Client): Promise<void>;
1438
- getDbFunctions(opts: procesamiento.DumpOptions): Promise<{
1439
- dumpText: string;
1440
- }[]>;
1441
- procedures: procesamiento.ProcedureDef[];
1442
- procedure: {
1443
- [key: string]: procesamiento.ProcedureDef;
1444
- };
1445
- app: procesamiento.ExpressPlus;
1446
- getTableDefinition: procesamiento.TableDefinitionsGetters;
1447
- tableStructures: procesamiento.TableDefinitions;
1448
- db: typeof pg;
1449
- config: any;
1450
- rootPath: string;
1451
- caches: {
1452
- procedures: {
1453
- [k: string]: {
1454
- timestamp: number;
1455
- result: any;
1456
- };
1457
- };
1458
- };
1459
- fieldDomain: {
1460
- [k: string]: Partial<procesamiento.FieldDefinition>;
1461
- };
1462
- exts: {
1463
- img: string[];
1464
- normal: string[];
1465
- };
1466
- optsGenericForAll: {
1467
- allowedExts?: string[] | undefined;
1468
- };
1469
- sqls: {
1470
- [k: string]: string;
1471
- };
1472
- messages: {
1473
- [k: string]: string;
1474
- };
1475
- dbUserNameExpr: string;
1476
- dbUserRolExpr: string;
1477
- specialValueWhenInsert: {
1478
- [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1479
- };
1480
- clearCaches(): void;
1481
- start(opts?: procesamiento.StartOptions | undefined): Promise<void>;
1482
- getTables(): procesamiento.TableItemDef[];
1483
- appendToTableDefinition(tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void): void;
1484
- getContext(req: procesamiento.Request): procesamiento.Context;
1485
- addSchrödingerServices(mainApp: procesamiento.ExpressPlus, baseUrl: string): void;
1486
- addUnloggedServices(mainApp: procesamiento.ExpressPlus, baseUrl: string): void;
1487
- addLoggedServices(): void;
1488
- getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1489
- inDbClient<T_1>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T_1>): Promise<T_1>;
1490
- inTransaction<T_2>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_2>): Promise<T_2>;
1491
- procedureDefCompleter(procedureDef: procesamiento.ProcedureDef): procesamiento.ProcedureDef;
1492
- tableDefAdapt(tableDef: procesamiento.TableDefinition, context: procesamiento.Context): procesamiento.TableDefinition;
1493
- pushApp(dirname: string): void;
1494
- dumpDbSchemaPartial(partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined): Promise<{
1495
- mainSql: string;
1496
- enancePart: string;
1497
- }>;
1498
- getContextForDump(): procesamiento.ContextForDump;
1499
- getClientSetupForSendToFrontEnd(req: procesamiento.Request): procesamiento.ClientSetup;
1500
- configList(): (string | object)[];
1501
- setStaticConfig(defConfigYamlString: string): void;
1502
- mainPage(req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined): {
1503
- toHtmlDoc: () => string;
1504
- };
1505
- isThisProcedureAllowed<T_3_1>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
1506
- [key: string]: T_3_1;
1507
- }): Promise<boolean>;
1508
- };
1509
- prefixTableName(tableName: string, prefix: string): string;
1510
- } & typeof procesamiento.AppBackend;
1511
- export declare type AppAppDmEncuType = InstanceType<typeof AppDmEncu>;
1
+ /// <reference types="backend-plus" />
2
+ /// <reference types="express-serve-static-core" />
3
+ import * as procesamiento from "procesamiento";
4
+ import { ClientModuleDefinition, OptsClientPage } from "procesamiento";
5
+ import * as pg from "pg-promise-strict";
6
+ import { Context, Request } from "./types-dmencu";
7
+ export * from "./types-dmencu";
8
+ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<procesamiento.AppProcesamientoType>>(Base: T): {
9
+ new (...args: any[]): {
10
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
11
+ checkDatabaseStructure(_client: Client): Promise<void>;
12
+ addSchrödingerServices(mainApp: procesamiento.Express, baseUrl: string): void;
13
+ getColorsJson(_sufijo: '_test' | '_capa' | ''): {
14
+ start_url: string;
15
+ display: string;
16
+ theme_color: string;
17
+ background_color: string;
18
+ };
19
+ addLoggedServices(): void;
20
+ postConfig(): Promise<void>;
21
+ configStaticConfig(): void;
22
+ clientIncludes(req: Request, opts: OptsClientPage): ClientModuleDefinition[];
23
+ refreshCaches(): Promise<void>;
24
+ getContext(req: Request): Context;
25
+ getContextForDump(): Context;
26
+ getClientSetupForSendToFrontEnd(req: Request): {
27
+ idper: string | undefined;
28
+ setup: Record<string, any>;
29
+ procedures: procesamiento.ProcedureDef[];
30
+ };
31
+ createResourcesForCacheJson(parameters: any): {};
32
+ getMenu(context: Context): {
33
+ menu: procesamiento.MenuInfoBase[];
34
+ };
35
+ prepareGetTables(): void;
36
+ tablasDatos: procesamiento.TablaDatos[];
37
+ procedures: procesamiento.ProcedureDef[];
38
+ procedure: {
39
+ [key: string]: procesamiento.ProcedureDef;
40
+ } & {
41
+ [key: string]: procesamiento.ProcedureDef;
42
+ } & {
43
+ [key: string]: procesamiento.ProcedureDef;
44
+ } & {
45
+ [key: string]: procesamiento.ProcedureDef;
46
+ } & {
47
+ [key: string]: procesamiento.ProcedureDef;
48
+ } & {
49
+ [key: string]: procesamiento.ProcedureDef;
50
+ } & {
51
+ [key: string]: procesamiento.ProcedureDef;
52
+ } & {
53
+ [key: string]: procesamiento.ProcedureDef;
54
+ } & {
55
+ [key: string]: procesamiento.ProcedureDef;
56
+ } & {
57
+ [key: string]: procesamiento.ProcedureDef;
58
+ } & {
59
+ [key: string]: procesamiento.ProcedureDef;
60
+ } & {
61
+ [key: string]: procesamiento.ProcedureDef;
62
+ } & {
63
+ [key: string]: procesamiento.ProcedureDef;
64
+ } & {
65
+ [key: string]: procesamiento.ProcedureDef;
66
+ } & {
67
+ [key: string]: procesamiento.ProcedureDef;
68
+ } & {
69
+ [key: string]: procesamiento.ProcedureDef;
70
+ } & {
71
+ [key: string]: procesamiento.ProcedureDef;
72
+ } & {
73
+ [key: string]: procesamiento.ProcedureDef;
74
+ };
75
+ app: procesamiento.ExpressPlus;
76
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
77
+ tableStructures: procesamiento.TableDefinitions;
78
+ db: typeof pg;
79
+ config: any;
80
+ rootPath: string;
81
+ caches: {
82
+ procedures: {
83
+ [k: string]: {
84
+ timestamp: number;
85
+ result: any;
86
+ };
87
+ };
88
+ } & {
89
+ procedures: {
90
+ [k: string]: {
91
+ timestamp: number;
92
+ result: any;
93
+ };
94
+ };
95
+ } & {
96
+ procedures: {
97
+ [k: string]: {
98
+ timestamp: number;
99
+ result: any;
100
+ };
101
+ };
102
+ } & {
103
+ procedures: {
104
+ [k: string]: {
105
+ timestamp: number;
106
+ result: any;
107
+ };
108
+ };
109
+ } & {
110
+ procedures: {
111
+ [k: string]: {
112
+ timestamp: number;
113
+ result: any;
114
+ };
115
+ };
116
+ } & {
117
+ procedures: {
118
+ [k: string]: {
119
+ timestamp: number;
120
+ result: any;
121
+ };
122
+ };
123
+ } & {
124
+ procedures: {
125
+ [k: string]: {
126
+ timestamp: number;
127
+ result: any;
128
+ };
129
+ };
130
+ } & {
131
+ procedures: {
132
+ [k: string]: {
133
+ timestamp: number;
134
+ result: any;
135
+ };
136
+ };
137
+ } & {
138
+ procedures: {
139
+ [k: string]: {
140
+ timestamp: number;
141
+ result: any;
142
+ };
143
+ };
144
+ } & {
145
+ procedures: {
146
+ [k: string]: {
147
+ timestamp: number;
148
+ result: any;
149
+ };
150
+ };
151
+ } & {
152
+ procedures: {
153
+ [k: string]: {
154
+ timestamp: number;
155
+ result: any;
156
+ };
157
+ };
158
+ } & {
159
+ procedures: {
160
+ [k: string]: {
161
+ timestamp: number;
162
+ result: any;
163
+ };
164
+ };
165
+ } & {
166
+ procedures: {
167
+ [k: string]: {
168
+ timestamp: number;
169
+ result: any;
170
+ };
171
+ };
172
+ } & {
173
+ procedures: {
174
+ [k: string]: {
175
+ timestamp: number;
176
+ result: any;
177
+ };
178
+ };
179
+ } & {
180
+ procedures: {
181
+ [k: string]: {
182
+ timestamp: number;
183
+ result: any;
184
+ };
185
+ };
186
+ } & {
187
+ procedures: {
188
+ [k: string]: {
189
+ timestamp: number;
190
+ result: any;
191
+ };
192
+ };
193
+ } & {
194
+ procedures: {
195
+ [k: string]: {
196
+ timestamp: number;
197
+ result: any;
198
+ };
199
+ };
200
+ } & procesamiento.Caches;
201
+ fieldDomain: {
202
+ [k: string]: Partial<procesamiento.FieldDefinition>;
203
+ } & {
204
+ [k: string]: Partial<procesamiento.FieldDefinition>;
205
+ } & {
206
+ [k: string]: Partial<procesamiento.FieldDefinition>;
207
+ } & {
208
+ [k: string]: Partial<procesamiento.FieldDefinition>;
209
+ } & {
210
+ [k: string]: Partial<procesamiento.FieldDefinition>;
211
+ } & {
212
+ [k: string]: Partial<procesamiento.FieldDefinition>;
213
+ } & {
214
+ [k: string]: Partial<procesamiento.FieldDefinition>;
215
+ } & {
216
+ [k: string]: Partial<procesamiento.FieldDefinition>;
217
+ } & {
218
+ [k: string]: Partial<procesamiento.FieldDefinition>;
219
+ } & {
220
+ [k: string]: Partial<procesamiento.FieldDefinition>;
221
+ } & {
222
+ [k: string]: Partial<procesamiento.FieldDefinition>;
223
+ } & {
224
+ [k: string]: Partial<procesamiento.FieldDefinition>;
225
+ } & {
226
+ [k: string]: Partial<procesamiento.FieldDefinition>;
227
+ } & {
228
+ [k: string]: Partial<procesamiento.FieldDefinition>;
229
+ } & {
230
+ [k: string]: Partial<procesamiento.FieldDefinition>;
231
+ } & {
232
+ [k: string]: Partial<procesamiento.FieldDefinition>;
233
+ } & {
234
+ [k: string]: Partial<procesamiento.FieldDefinition>;
235
+ } & {
236
+ [k: string]: Partial<procesamiento.FieldDefinition>;
237
+ };
238
+ exts: {
239
+ img?: string[] | undefined;
240
+ } & {
241
+ img?: string[] | undefined;
242
+ } & {
243
+ img?: string[] | undefined;
244
+ } & {
245
+ img: string[];
246
+ normal: string[];
247
+ } & {
248
+ img?: string[] | undefined;
249
+ } & {
250
+ img?: string[] | undefined;
251
+ } & {
252
+ img: string[];
253
+ normal: string[];
254
+ } & {
255
+ img: string[];
256
+ normal: string[];
257
+ } & {
258
+ img?: string[] | undefined;
259
+ } & {
260
+ img?: string[] | undefined;
261
+ } & {
262
+ img?: string[] | undefined;
263
+ } & {
264
+ img: string[];
265
+ normal: string[];
266
+ } & {
267
+ img?: string[] | undefined;
268
+ } & {
269
+ img?: string[] | undefined;
270
+ } & {
271
+ img?: string[] | undefined;
272
+ } & {
273
+ img?: string[] | undefined;
274
+ } & {
275
+ img: string[];
276
+ normal: string[];
277
+ } & {
278
+ img: string[];
279
+ normal: string[];
280
+ };
281
+ optsGenericForAll: {
282
+ allowedExts?: string[] | undefined;
283
+ } & {
284
+ allowedExts?: string[] | undefined;
285
+ } & {
286
+ allowedExts?: string[] | undefined;
287
+ } & {
288
+ allowedExts?: string[] | undefined;
289
+ } & {
290
+ allowedExts?: string[] | undefined;
291
+ } & {
292
+ allowedExts?: string[] | undefined;
293
+ } & {
294
+ allowedExts?: string[] | undefined;
295
+ } & {
296
+ allowedExts?: string[] | undefined;
297
+ } & {
298
+ allowedExts?: string[] | undefined;
299
+ } & {
300
+ allowedExts?: string[] | undefined;
301
+ } & {
302
+ allowedExts?: string[] | undefined;
303
+ } & {
304
+ allowedExts?: string[] | undefined;
305
+ } & {
306
+ allowedExts?: string[] | undefined;
307
+ } & {
308
+ allowedExts?: string[] | undefined;
309
+ } & {
310
+ allowedExts?: string[] | undefined;
311
+ } & {
312
+ allowedExts?: string[] | undefined;
313
+ } & {
314
+ allowedExts?: string[] | undefined;
315
+ } & {
316
+ allowedExts?: string[] | undefined;
317
+ };
318
+ sqls: {
319
+ [k: string]: string;
320
+ } & {
321
+ [k: string]: string;
322
+ } & {
323
+ [k: string]: string;
324
+ } & {
325
+ [k: string]: string;
326
+ } & {
327
+ [k: string]: string;
328
+ } & {
329
+ [k: string]: string;
330
+ } & {
331
+ [k: string]: string;
332
+ } & {
333
+ [k: string]: string;
334
+ } & {
335
+ [k: string]: string;
336
+ } & {
337
+ [k: string]: string;
338
+ } & {
339
+ [k: string]: string;
340
+ } & {
341
+ [k: string]: string;
342
+ } & {
343
+ [k: string]: string;
344
+ } & {
345
+ [k: string]: string;
346
+ } & {
347
+ [k: string]: string;
348
+ } & {
349
+ [k: string]: string;
350
+ } & {
351
+ [k: string]: string;
352
+ } & {
353
+ [k: string]: string;
354
+ };
355
+ messages: {
356
+ [k: string]: string;
357
+ } & {
358
+ [k: string]: string;
359
+ } & {
360
+ [k: string]: string;
361
+ } & {
362
+ [k: string]: string;
363
+ } & {
364
+ [k: string]: string;
365
+ } & {
366
+ [k: string]: string;
367
+ } & {
368
+ [k: string]: string;
369
+ } & {
370
+ [k: string]: string;
371
+ } & {
372
+ [k: string]: string;
373
+ } & {
374
+ [k: string]: string;
375
+ } & {
376
+ [k: string]: string;
377
+ } & {
378
+ [k: string]: string;
379
+ } & {
380
+ [k: string]: string;
381
+ } & {
382
+ [k: string]: string;
383
+ } & {
384
+ [k: string]: string;
385
+ } & {
386
+ [k: string]: string;
387
+ } & {
388
+ [k: string]: string;
389
+ } & {
390
+ [k: string]: string;
391
+ };
392
+ dbUserNameExpr: string;
393
+ dbUserRolExpr: string;
394
+ specialValueWhenInsert: {
395
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
396
+ } & {
397
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
398
+ } & {
399
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
400
+ } & {
401
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
402
+ } & {
403
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
404
+ } & {
405
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
406
+ } & {
407
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
408
+ } & {
409
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
410
+ } & {
411
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
412
+ } & {
413
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
414
+ } & {
415
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
416
+ } & {
417
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
418
+ } & {
419
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
420
+ } & {
421
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
422
+ } & {
423
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
424
+ } & {
425
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
426
+ } & {
427
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
428
+ } & {
429
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
430
+ };
431
+ i18n: {
432
+ messages: Record<procesamiento.LangId, Record<string, string>>;
433
+ } & {
434
+ messages: Record<procesamiento.LangId, Record<string, string>>;
435
+ } & {
436
+ messages: Record<procesamiento.LangId, Record<string, string>>;
437
+ } & {
438
+ messages: Record<procesamiento.LangId, Record<string, string>>;
439
+ };
440
+ dumpDbTableFields: ((tableDefinition: procesamiento.TableDefinition) => string[]) & ((tableDefinition: procesamiento.TableDefinition) => string[]);
441
+ generateAndLoadTableDefs: (() => procesamiento.TableDefinitions) & (() => procesamiento.TableDefinitions);
442
+ generateBaseTableDef: ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition);
443
+ cargarGenerados: ((client: procesamiento.Client) => Promise<string>) & ((client: procesamiento.Client) => Promise<string>) & ((client: procesamiento.Client) => Promise<string>);
444
+ getTableDefFunction: ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction);
445
+ loadTableDef: ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction);
446
+ generateAndLoadTableDef: ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction);
447
+ getDbFunctions: ((opts: procesamiento.DumpOptions) => Promise<{
448
+ dumpText: string;
449
+ }[]>) & ((opts: procesamiento.DumpOptions) => Promise<{
450
+ dumpText: string;
451
+ }[]>);
452
+ clearCaches: (() => void) & (() => void);
453
+ start: ((opts?: procesamiento.StartOptions | undefined) => Promise<void>) & ((opts?: procesamiento.StartOptions | undefined) => Promise<void>);
454
+ getTables: (() => procesamiento.TableItemDef[]) & (() => procesamiento.TableItemDef[]);
455
+ appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void) => void);
456
+ addUnloggedServices: ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void) & ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void);
457
+ inDbClient: (<T_1_1>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T>) => Promise<T>);
458
+ inTransaction: (<T_2_1>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_2_1>) => Promise<T_2_1>) & (<T_1>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_1>) => Promise<T_1>);
459
+ procedureDefCompleter: ((procedureDef: procesamiento.ProcedureDef) => procesamiento.ProcedureDef) & ((procedureDef: procesamiento.ProcedureDef) => procesamiento.ProcedureDef);
460
+ tableDefAdapt: ((tableDef: procesamiento.TableDefinition, context: procesamiento.Context) => procesamiento.TableDefinition) & ((tableDef: procesamiento.TableDefinition, context: procesamiento.Context) => procesamiento.TableDefinition);
461
+ pushApp: ((dirname: string) => void) & ((dirname: string) => void);
462
+ dumpDbSchemaPartial: ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined) => Promise<{
463
+ mainSql: string;
464
+ enancePart: string;
465
+ }>) & ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined) => Promise<{
466
+ mainSql: string;
467
+ enancePart: string;
468
+ }>);
469
+ configList: (() => (string | object)[]) & (() => (string | object)[]);
470
+ setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void);
471
+ mainPage: ((req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined) => {
472
+ toHtmlDoc: () => string;
473
+ }) & ((req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined) => {
474
+ toHtmlDoc: () => string;
475
+ });
476
+ isThisProcedureAllowed: (<T_3>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
477
+ [key: string]: T_3;
478
+ }) => Promise<boolean>) & (<T_2>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
479
+ [key: string]: T_2;
480
+ }) => Promise<boolean>);
481
+ inTransactionProcedureContext<T_4>(req: procesamiento.Request | null, coreFunction: (context: procesamiento.ProcedureContext) => Promise<T_4>): Promise<T_4>;
482
+ };
483
+ } & T;
484
+ export declare var AppDmEncu: {
485
+ new (...args: any[]): {
486
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
487
+ checkDatabaseStructure(_client: Client): Promise<void>;
488
+ addSchrödingerServices(mainApp: procesamiento.Express, baseUrl: string): void;
489
+ getColorsJson(_sufijo: '_test' | '_capa' | ''): {
490
+ start_url: string;
491
+ display: string;
492
+ theme_color: string;
493
+ background_color: string;
494
+ };
495
+ addLoggedServices(): void;
496
+ postConfig(): Promise<void>;
497
+ configStaticConfig(): void;
498
+ clientIncludes(req: Request, opts: OptsClientPage): ClientModuleDefinition[];
499
+ refreshCaches(): Promise<void>;
500
+ getContext(req: Request): Context;
501
+ getContextForDump(): Context;
502
+ getClientSetupForSendToFrontEnd(req: Request): {
503
+ idper: string | undefined;
504
+ setup: Record<string, any>;
505
+ procedures: procesamiento.ProcedureDef[];
506
+ };
507
+ createResourcesForCacheJson(parameters: any): {};
508
+ getMenu(context: Context): {
509
+ menu: procesamiento.MenuInfoBase[];
510
+ };
511
+ prepareGetTables(): void;
512
+ tablasDatos: procesamiento.TablaDatos[];
513
+ procedures: procesamiento.ProcedureDef[];
514
+ procedure: {
515
+ [key: string]: procesamiento.ProcedureDef;
516
+ } & {
517
+ [key: string]: procesamiento.ProcedureDef;
518
+ } & {
519
+ [key: string]: procesamiento.ProcedureDef;
520
+ } & {
521
+ [key: string]: procesamiento.ProcedureDef;
522
+ } & {
523
+ [key: string]: procesamiento.ProcedureDef;
524
+ } & {
525
+ [key: string]: procesamiento.ProcedureDef;
526
+ } & {
527
+ [key: string]: procesamiento.ProcedureDef;
528
+ } & {
529
+ [key: string]: procesamiento.ProcedureDef;
530
+ } & {
531
+ [key: string]: procesamiento.ProcedureDef;
532
+ } & {
533
+ [key: string]: procesamiento.ProcedureDef;
534
+ } & {
535
+ [key: string]: procesamiento.ProcedureDef;
536
+ } & {
537
+ [key: string]: procesamiento.ProcedureDef;
538
+ } & {
539
+ [key: string]: procesamiento.ProcedureDef;
540
+ } & {
541
+ [key: string]: procesamiento.ProcedureDef;
542
+ } & {
543
+ [key: string]: procesamiento.ProcedureDef;
544
+ } & {
545
+ [key: string]: procesamiento.ProcedureDef;
546
+ } & {
547
+ [key: string]: procesamiento.ProcedureDef;
548
+ } & {
549
+ [key: string]: procesamiento.ProcedureDef;
550
+ };
551
+ app: procesamiento.ExpressPlus;
552
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
553
+ tableStructures: procesamiento.TableDefinitions;
554
+ db: typeof pg;
555
+ config: any;
556
+ rootPath: string;
557
+ caches: {
558
+ procedures: {
559
+ [k: string]: {
560
+ timestamp: number;
561
+ result: any;
562
+ };
563
+ };
564
+ } & {
565
+ procedures: {
566
+ [k: string]: {
567
+ timestamp: number;
568
+ result: any;
569
+ };
570
+ };
571
+ } & {
572
+ procedures: {
573
+ [k: string]: {
574
+ timestamp: number;
575
+ result: any;
576
+ };
577
+ };
578
+ } & {
579
+ procedures: {
580
+ [k: string]: {
581
+ timestamp: number;
582
+ result: any;
583
+ };
584
+ };
585
+ } & {
586
+ procedures: {
587
+ [k: string]: {
588
+ timestamp: number;
589
+ result: any;
590
+ };
591
+ };
592
+ } & {
593
+ procedures: {
594
+ [k: string]: {
595
+ timestamp: number;
596
+ result: any;
597
+ };
598
+ };
599
+ } & {
600
+ procedures: {
601
+ [k: string]: {
602
+ timestamp: number;
603
+ result: any;
604
+ };
605
+ };
606
+ } & {
607
+ procedures: {
608
+ [k: string]: {
609
+ timestamp: number;
610
+ result: any;
611
+ };
612
+ };
613
+ } & {
614
+ procedures: {
615
+ [k: string]: {
616
+ timestamp: number;
617
+ result: any;
618
+ };
619
+ };
620
+ } & {
621
+ procedures: {
622
+ [k: string]: {
623
+ timestamp: number;
624
+ result: any;
625
+ };
626
+ };
627
+ } & {
628
+ procedures: {
629
+ [k: string]: {
630
+ timestamp: number;
631
+ result: any;
632
+ };
633
+ };
634
+ } & {
635
+ procedures: {
636
+ [k: string]: {
637
+ timestamp: number;
638
+ result: any;
639
+ };
640
+ };
641
+ } & {
642
+ procedures: {
643
+ [k: string]: {
644
+ timestamp: number;
645
+ result: any;
646
+ };
647
+ };
648
+ } & {
649
+ procedures: {
650
+ [k: string]: {
651
+ timestamp: number;
652
+ result: any;
653
+ };
654
+ };
655
+ } & {
656
+ procedures: {
657
+ [k: string]: {
658
+ timestamp: number;
659
+ result: any;
660
+ };
661
+ };
662
+ } & {
663
+ procedures: {
664
+ [k: string]: {
665
+ timestamp: number;
666
+ result: any;
667
+ };
668
+ };
669
+ } & {
670
+ procedures: {
671
+ [k: string]: {
672
+ timestamp: number;
673
+ result: any;
674
+ };
675
+ };
676
+ } & procesamiento.Caches;
677
+ fieldDomain: {
678
+ [k: string]: Partial<procesamiento.FieldDefinition>;
679
+ } & {
680
+ [k: string]: Partial<procesamiento.FieldDefinition>;
681
+ } & {
682
+ [k: string]: Partial<procesamiento.FieldDefinition>;
683
+ } & {
684
+ [k: string]: Partial<procesamiento.FieldDefinition>;
685
+ } & {
686
+ [k: string]: Partial<procesamiento.FieldDefinition>;
687
+ } & {
688
+ [k: string]: Partial<procesamiento.FieldDefinition>;
689
+ } & {
690
+ [k: string]: Partial<procesamiento.FieldDefinition>;
691
+ } & {
692
+ [k: string]: Partial<procesamiento.FieldDefinition>;
693
+ } & {
694
+ [k: string]: Partial<procesamiento.FieldDefinition>;
695
+ } & {
696
+ [k: string]: Partial<procesamiento.FieldDefinition>;
697
+ } & {
698
+ [k: string]: Partial<procesamiento.FieldDefinition>;
699
+ } & {
700
+ [k: string]: Partial<procesamiento.FieldDefinition>;
701
+ } & {
702
+ [k: string]: Partial<procesamiento.FieldDefinition>;
703
+ } & {
704
+ [k: string]: Partial<procesamiento.FieldDefinition>;
705
+ } & {
706
+ [k: string]: Partial<procesamiento.FieldDefinition>;
707
+ } & {
708
+ [k: string]: Partial<procesamiento.FieldDefinition>;
709
+ } & {
710
+ [k: string]: Partial<procesamiento.FieldDefinition>;
711
+ } & {
712
+ [k: string]: Partial<procesamiento.FieldDefinition>;
713
+ };
714
+ exts: {
715
+ img?: string[] | undefined;
716
+ } & {
717
+ img?: string[] | undefined;
718
+ } & {
719
+ img?: string[] | undefined;
720
+ } & {
721
+ img: string[];
722
+ normal: string[];
723
+ } & {
724
+ img?: string[] | undefined;
725
+ } & {
726
+ img?: string[] | undefined;
727
+ } & {
728
+ img: string[];
729
+ normal: string[];
730
+ } & {
731
+ img: string[];
732
+ normal: string[];
733
+ } & {
734
+ img?: string[] | undefined;
735
+ } & {
736
+ img?: string[] | undefined;
737
+ } & {
738
+ img?: string[] | undefined;
739
+ } & {
740
+ img: string[];
741
+ normal: string[];
742
+ } & {
743
+ img?: string[] | undefined;
744
+ } & {
745
+ img?: string[] | undefined;
746
+ } & {
747
+ img?: string[] | undefined;
748
+ } & {
749
+ img?: string[] | undefined;
750
+ } & {
751
+ img: string[];
752
+ normal: string[];
753
+ } & {
754
+ img: string[];
755
+ normal: string[];
756
+ };
757
+ optsGenericForAll: {
758
+ allowedExts?: string[] | undefined;
759
+ } & {
760
+ allowedExts?: string[] | undefined;
761
+ } & {
762
+ allowedExts?: string[] | undefined;
763
+ } & {
764
+ allowedExts?: string[] | undefined;
765
+ } & {
766
+ allowedExts?: string[] | undefined;
767
+ } & {
768
+ allowedExts?: string[] | undefined;
769
+ } & {
770
+ allowedExts?: string[] | undefined;
771
+ } & {
772
+ allowedExts?: string[] | undefined;
773
+ } & {
774
+ allowedExts?: string[] | undefined;
775
+ } & {
776
+ allowedExts?: string[] | undefined;
777
+ } & {
778
+ allowedExts?: string[] | undefined;
779
+ } & {
780
+ allowedExts?: string[] | undefined;
781
+ } & {
782
+ allowedExts?: string[] | undefined;
783
+ } & {
784
+ allowedExts?: string[] | undefined;
785
+ } & {
786
+ allowedExts?: string[] | undefined;
787
+ } & {
788
+ allowedExts?: string[] | undefined;
789
+ } & {
790
+ allowedExts?: string[] | undefined;
791
+ } & {
792
+ allowedExts?: string[] | undefined;
793
+ };
794
+ sqls: {
795
+ [k: string]: string;
796
+ } & {
797
+ [k: string]: string;
798
+ } & {
799
+ [k: string]: string;
800
+ } & {
801
+ [k: string]: string;
802
+ } & {
803
+ [k: string]: string;
804
+ } & {
805
+ [k: string]: string;
806
+ } & {
807
+ [k: string]: string;
808
+ } & {
809
+ [k: string]: string;
810
+ } & {
811
+ [k: string]: string;
812
+ } & {
813
+ [k: string]: string;
814
+ } & {
815
+ [k: string]: string;
816
+ } & {
817
+ [k: string]: string;
818
+ } & {
819
+ [k: string]: string;
820
+ } & {
821
+ [k: string]: string;
822
+ } & {
823
+ [k: string]: string;
824
+ } & {
825
+ [k: string]: string;
826
+ } & {
827
+ [k: string]: string;
828
+ } & {
829
+ [k: string]: string;
830
+ };
831
+ messages: {
832
+ [k: string]: string;
833
+ } & {
834
+ [k: string]: string;
835
+ } & {
836
+ [k: string]: string;
837
+ } & {
838
+ [k: string]: string;
839
+ } & {
840
+ [k: string]: string;
841
+ } & {
842
+ [k: string]: string;
843
+ } & {
844
+ [k: string]: string;
845
+ } & {
846
+ [k: string]: string;
847
+ } & {
848
+ [k: string]: string;
849
+ } & {
850
+ [k: string]: string;
851
+ } & {
852
+ [k: string]: string;
853
+ } & {
854
+ [k: string]: string;
855
+ } & {
856
+ [k: string]: string;
857
+ } & {
858
+ [k: string]: string;
859
+ } & {
860
+ [k: string]: string;
861
+ } & {
862
+ [k: string]: string;
863
+ } & {
864
+ [k: string]: string;
865
+ } & {
866
+ [k: string]: string;
867
+ };
868
+ dbUserNameExpr: string;
869
+ dbUserRolExpr: string;
870
+ specialValueWhenInsert: {
871
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
872
+ } & {
873
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
874
+ } & {
875
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
876
+ } & {
877
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
878
+ } & {
879
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
880
+ } & {
881
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
882
+ } & {
883
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
884
+ } & {
885
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
886
+ } & {
887
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
888
+ } & {
889
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
890
+ } & {
891
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
892
+ } & {
893
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
894
+ } & {
895
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
896
+ } & {
897
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
898
+ } & {
899
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
900
+ } & {
901
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
902
+ } & {
903
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
904
+ } & {
905
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
906
+ };
907
+ i18n: {
908
+ messages: Record<procesamiento.LangId, Record<string, string>>;
909
+ } & {
910
+ messages: Record<procesamiento.LangId, Record<string, string>>;
911
+ } & {
912
+ messages: Record<procesamiento.LangId, Record<string, string>>;
913
+ } & {
914
+ messages: Record<procesamiento.LangId, Record<string, string>>;
915
+ };
916
+ dumpDbTableFields: ((tableDefinition: procesamiento.TableDefinition) => string[]) & ((tableDefinition: procesamiento.TableDefinition) => string[]);
917
+ generateAndLoadTableDefs: (() => procesamiento.TableDefinitions) & (() => procesamiento.TableDefinitions);
918
+ generateBaseTableDef: ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition);
919
+ cargarGenerados: ((client: procesamiento.Client) => Promise<string>) & ((client: procesamiento.Client) => Promise<string>) & ((client: procesamiento.Client) => Promise<string>);
920
+ getTableDefFunction: ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction);
921
+ loadTableDef: ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction);
922
+ generateAndLoadTableDef: ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction);
923
+ getDbFunctions: ((opts: procesamiento.DumpOptions) => Promise<{
924
+ dumpText: string;
925
+ }[]>) & ((opts: procesamiento.DumpOptions) => Promise<{
926
+ dumpText: string;
927
+ }[]>);
928
+ clearCaches: (() => void) & (() => void);
929
+ start: ((opts?: procesamiento.StartOptions | undefined) => Promise<void>) & ((opts?: procesamiento.StartOptions | undefined) => Promise<void>);
930
+ getTables: (() => procesamiento.TableItemDef[]) & (() => procesamiento.TableItemDef[]);
931
+ appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void) => void);
932
+ addUnloggedServices: ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void) & ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void);
933
+ inDbClient: (<T_1_1>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T>) => Promise<T>);
934
+ inTransaction: (<T_2_1>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_2_1>) => Promise<T_2_1>) & (<T_1>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_1>) => Promise<T_1>);
935
+ procedureDefCompleter: ((procedureDef: procesamiento.ProcedureDef) => procesamiento.ProcedureDef) & ((procedureDef: procesamiento.ProcedureDef) => procesamiento.ProcedureDef);
936
+ tableDefAdapt: ((tableDef: procesamiento.TableDefinition, context: procesamiento.Context) => procesamiento.TableDefinition) & ((tableDef: procesamiento.TableDefinition, context: procesamiento.Context) => procesamiento.TableDefinition);
937
+ pushApp: ((dirname: string) => void) & ((dirname: string) => void);
938
+ dumpDbSchemaPartial: ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined) => Promise<{
939
+ mainSql: string;
940
+ enancePart: string;
941
+ }>) & ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined) => Promise<{
942
+ mainSql: string;
943
+ enancePart: string;
944
+ }>);
945
+ configList: (() => (string | object)[]) & (() => (string | object)[]);
946
+ setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void);
947
+ mainPage: ((req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined) => {
948
+ toHtmlDoc: () => string;
949
+ }) & ((req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined) => {
950
+ toHtmlDoc: () => string;
951
+ });
952
+ isThisProcedureAllowed: (<T_3>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
953
+ [key: string]: T_3;
954
+ }) => Promise<boolean>) & (<T_2>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
955
+ [key: string]: T_2;
956
+ }) => Promise<boolean>);
957
+ inTransactionProcedureContext<T_4>(req: procesamiento.Request | null, coreFunction: (context: procesamiento.ProcedureContext) => Promise<T_4>): Promise<T_4>;
958
+ };
959
+ } & (new (...args: any[]) => {
960
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
961
+ clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
962
+ configStaticConfig(): void;
963
+ tablasDatos: procesamiento.TablaDatos[];
964
+ procedures: procesamiento.ProcedureDef[];
965
+ procedure: {
966
+ [key: string]: procesamiento.ProcedureDef;
967
+ } & {
968
+ [key: string]: procesamiento.ProcedureDef;
969
+ } & {
970
+ [key: string]: procesamiento.ProcedureDef;
971
+ } & {
972
+ [key: string]: procesamiento.ProcedureDef;
973
+ } & {
974
+ [key: string]: procesamiento.ProcedureDef;
975
+ } & {
976
+ [key: string]: procesamiento.ProcedureDef;
977
+ } & {
978
+ [key: string]: procesamiento.ProcedureDef;
979
+ } & {
980
+ [key: string]: procesamiento.ProcedureDef;
981
+ };
982
+ app: procesamiento.ExpressPlus;
983
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
984
+ tableStructures: procesamiento.TableDefinitions;
985
+ db: typeof pg;
986
+ config: any;
987
+ rootPath: string;
988
+ caches: {
989
+ procedures: {
990
+ [k: string]: {
991
+ timestamp: number;
992
+ result: any;
993
+ };
994
+ };
995
+ } & {
996
+ procedures: {
997
+ [k: string]: {
998
+ timestamp: number;
999
+ result: any;
1000
+ };
1001
+ };
1002
+ } & {
1003
+ procedures: {
1004
+ [k: string]: {
1005
+ timestamp: number;
1006
+ result: any;
1007
+ };
1008
+ };
1009
+ } & {
1010
+ procedures: {
1011
+ [k: string]: {
1012
+ timestamp: number;
1013
+ result: any;
1014
+ };
1015
+ };
1016
+ } & {
1017
+ procedures: {
1018
+ [k: string]: {
1019
+ timestamp: number;
1020
+ result: any;
1021
+ };
1022
+ };
1023
+ } & {
1024
+ procedures: {
1025
+ [k: string]: {
1026
+ timestamp: number;
1027
+ result: any;
1028
+ };
1029
+ };
1030
+ } & {
1031
+ procedures: {
1032
+ [k: string]: {
1033
+ timestamp: number;
1034
+ result: any;
1035
+ };
1036
+ };
1037
+ } & {
1038
+ procedures: {
1039
+ [k: string]: {
1040
+ timestamp: number;
1041
+ result: any;
1042
+ };
1043
+ };
1044
+ };
1045
+ fieldDomain: {
1046
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1047
+ } & {
1048
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1049
+ } & {
1050
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1051
+ } & {
1052
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1053
+ } & {
1054
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1055
+ } & {
1056
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1057
+ } & {
1058
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1059
+ } & {
1060
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1061
+ };
1062
+ exts: {
1063
+ img?: string[] | undefined;
1064
+ } & {
1065
+ img?: string[] | undefined;
1066
+ } & {
1067
+ img?: string[] | undefined;
1068
+ } & {
1069
+ img: string[];
1070
+ normal: string[];
1071
+ } & {
1072
+ img?: string[] | undefined;
1073
+ } & {
1074
+ img?: string[] | undefined;
1075
+ } & {
1076
+ img: string[];
1077
+ normal: string[];
1078
+ } & {
1079
+ img: string[];
1080
+ normal: string[];
1081
+ };
1082
+ optsGenericForAll: {
1083
+ allowedExts?: string[] | undefined;
1084
+ } & {
1085
+ allowedExts?: string[] | undefined;
1086
+ } & {
1087
+ allowedExts?: string[] | undefined;
1088
+ } & {
1089
+ allowedExts?: string[] | undefined;
1090
+ } & {
1091
+ allowedExts?: string[] | undefined;
1092
+ } & {
1093
+ allowedExts?: string[] | undefined;
1094
+ } & {
1095
+ allowedExts?: string[] | undefined;
1096
+ } & {
1097
+ allowedExts?: string[] | undefined;
1098
+ };
1099
+ sqls: {
1100
+ [k: string]: string;
1101
+ } & {
1102
+ [k: string]: string;
1103
+ } & {
1104
+ [k: string]: string;
1105
+ } & {
1106
+ [k: string]: string;
1107
+ } & {
1108
+ [k: string]: string;
1109
+ } & {
1110
+ [k: string]: string;
1111
+ } & {
1112
+ [k: string]: string;
1113
+ } & {
1114
+ [k: string]: string;
1115
+ };
1116
+ messages: {
1117
+ [k: string]: string;
1118
+ } & {
1119
+ [k: string]: string;
1120
+ } & {
1121
+ [k: string]: string;
1122
+ } & {
1123
+ [k: string]: string;
1124
+ } & {
1125
+ [k: string]: string;
1126
+ } & {
1127
+ [k: string]: string;
1128
+ } & {
1129
+ [k: string]: string;
1130
+ } & {
1131
+ [k: string]: string;
1132
+ };
1133
+ dbUserNameExpr: string;
1134
+ dbUserRolExpr: string;
1135
+ specialValueWhenInsert: {
1136
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1137
+ } & {
1138
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1139
+ } & {
1140
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1141
+ } & {
1142
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1143
+ } & {
1144
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1145
+ } & {
1146
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1147
+ } & {
1148
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1149
+ } & {
1150
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1151
+ };
1152
+ i18n: {
1153
+ messages: Record<procesamiento.LangId, Record<string, string>>;
1154
+ } & {
1155
+ messages: Record<procesamiento.LangId, Record<string, string>>;
1156
+ };
1157
+ dumpDbTableFields(tableDefinition: procesamiento.TableDefinition): string[];
1158
+ }) & (new (...args: any[]) => {
1159
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1160
+ clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1161
+ configStaticConfig(): void;
1162
+ getMenu(): procesamiento.MenuDefinition;
1163
+ postConfig(): Promise<void>;
1164
+ prepareGetTables(): void;
1165
+ generateAndLoadTableDefs(): procesamiento.TableDefinitions;
1166
+ tablasDatos: procesamiento.TablaDatos[];
1167
+ procedures: procesamiento.ProcedureDef[];
1168
+ procedure: {
1169
+ [key: string]: procesamiento.ProcedureDef;
1170
+ } & {
1171
+ [key: string]: procesamiento.ProcedureDef;
1172
+ } & {
1173
+ [key: string]: procesamiento.ProcedureDef;
1174
+ } & {
1175
+ [key: string]: procesamiento.ProcedureDef;
1176
+ };
1177
+ app: procesamiento.ExpressPlus;
1178
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
1179
+ tableStructures: procesamiento.TableDefinitions;
1180
+ db: typeof pg;
1181
+ config: any;
1182
+ rootPath: string;
1183
+ caches: {
1184
+ procedures: {
1185
+ [k: string]: {
1186
+ timestamp: number;
1187
+ result: any;
1188
+ };
1189
+ };
1190
+ } & {
1191
+ procedures: {
1192
+ [k: string]: {
1193
+ timestamp: number;
1194
+ result: any;
1195
+ };
1196
+ };
1197
+ } & {
1198
+ procedures: {
1199
+ [k: string]: {
1200
+ timestamp: number;
1201
+ result: any;
1202
+ };
1203
+ };
1204
+ } & {
1205
+ procedures: {
1206
+ [k: string]: {
1207
+ timestamp: number;
1208
+ result: any;
1209
+ };
1210
+ };
1211
+ };
1212
+ fieldDomain: {
1213
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1214
+ } & {
1215
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1216
+ } & {
1217
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1218
+ } & {
1219
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1220
+ };
1221
+ exts: {
1222
+ img?: string[] | undefined;
1223
+ } & {
1224
+ img?: string[] | undefined;
1225
+ } & {
1226
+ img?: string[] | undefined;
1227
+ } & {
1228
+ img: string[];
1229
+ normal: string[];
1230
+ };
1231
+ optsGenericForAll: {
1232
+ allowedExts?: string[] | undefined;
1233
+ } & {
1234
+ allowedExts?: string[] | undefined;
1235
+ } & {
1236
+ allowedExts?: string[] | undefined;
1237
+ } & {
1238
+ allowedExts?: string[] | undefined;
1239
+ };
1240
+ sqls: {
1241
+ [k: string]: string;
1242
+ } & {
1243
+ [k: string]: string;
1244
+ } & {
1245
+ [k: string]: string;
1246
+ } & {
1247
+ [k: string]: string;
1248
+ };
1249
+ messages: {
1250
+ [k: string]: string;
1251
+ } & {
1252
+ [k: string]: string;
1253
+ } & {
1254
+ [k: string]: string;
1255
+ } & {
1256
+ [k: string]: string;
1257
+ };
1258
+ dbUserNameExpr: string;
1259
+ dbUserRolExpr: string;
1260
+ specialValueWhenInsert: {
1261
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1262
+ } & {
1263
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1264
+ } & {
1265
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1266
+ } & {
1267
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1268
+ };
1269
+ i18n: {
1270
+ messages: Record<procesamiento.LangId, Record<string, string>>;
1271
+ };
1272
+ }) & (new (...args: any[]) => {
1273
+ configStaticConfig(): void;
1274
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1275
+ clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1276
+ generateAndLoadTableDefs(): procesamiento.TableDefinitions;
1277
+ generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinition;
1278
+ prepareGetTables(): void;
1279
+ tablasDatos: procesamiento.TablaDatos[];
1280
+ cargarGenerados(client: procesamiento.Client): Promise<string>;
1281
+ getTableDefFunction(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1282
+ loadTableDef(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1283
+ generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinitionFunction;
1284
+ procedures: procesamiento.ProcedureDef[];
1285
+ procedure: {
1286
+ [key: string]: procesamiento.ProcedureDef;
1287
+ } & {
1288
+ [key: string]: procesamiento.ProcedureDef;
1289
+ };
1290
+ app: procesamiento.ExpressPlus;
1291
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
1292
+ tableStructures: procesamiento.TableDefinitions;
1293
+ db: typeof pg;
1294
+ config: any;
1295
+ rootPath: string;
1296
+ caches: {
1297
+ procedures: {
1298
+ [k: string]: {
1299
+ timestamp: number;
1300
+ result: any;
1301
+ };
1302
+ };
1303
+ } & {
1304
+ procedures: {
1305
+ [k: string]: {
1306
+ timestamp: number;
1307
+ result: any;
1308
+ };
1309
+ };
1310
+ };
1311
+ fieldDomain: {
1312
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1313
+ } & {
1314
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1315
+ };
1316
+ exts: {
1317
+ img: string[];
1318
+ normal: string[];
1319
+ } & {
1320
+ img: string[];
1321
+ normal: string[];
1322
+ };
1323
+ optsGenericForAll: {
1324
+ allowedExts?: string[] | undefined;
1325
+ } & {
1326
+ allowedExts?: string[] | undefined;
1327
+ };
1328
+ sqls: {
1329
+ [k: string]: string;
1330
+ } & {
1331
+ [k: string]: string;
1332
+ };
1333
+ messages: {
1334
+ [k: string]: string;
1335
+ } & {
1336
+ [k: string]: string;
1337
+ };
1338
+ dbUserNameExpr: string;
1339
+ dbUserRolExpr: string;
1340
+ specialValueWhenInsert: {
1341
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1342
+ } & {
1343
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1344
+ };
1345
+ i18n: {
1346
+ messages: Record<procesamiento.LangId, Record<string, string>>;
1347
+ };
1348
+ }) & (new (...args: any[]) => {
1349
+ configStaticConfig(): void;
1350
+ generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinition;
1351
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1352
+ clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1353
+ prepareGetTables(): void;
1354
+ tablasDatos: procesamiento.TablaDatos[];
1355
+ cargarGenerados(client: procesamiento.Client): Promise<string>;
1356
+ getTableDefFunction(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1357
+ loadTableDef(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1358
+ generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinitionFunction;
1359
+ procedures: procesamiento.ProcedureDef[];
1360
+ procedure: {
1361
+ [key: string]: procesamiento.ProcedureDef;
1362
+ } & {
1363
+ [key: string]: procesamiento.ProcedureDef;
1364
+ };
1365
+ app: procesamiento.ExpressPlus;
1366
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
1367
+ tableStructures: procesamiento.TableDefinitions;
1368
+ db: typeof pg;
1369
+ config: any;
1370
+ rootPath: string;
1371
+ caches: {
1372
+ procedures: {
1373
+ [k: string]: {
1374
+ timestamp: number;
1375
+ result: any;
1376
+ };
1377
+ };
1378
+ } & {
1379
+ procedures: {
1380
+ [k: string]: {
1381
+ timestamp: number;
1382
+ result: any;
1383
+ };
1384
+ };
1385
+ };
1386
+ fieldDomain: {
1387
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1388
+ } & {
1389
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1390
+ };
1391
+ exts: {
1392
+ img: string[];
1393
+ normal: string[];
1394
+ } & {
1395
+ img: string[];
1396
+ normal: string[];
1397
+ };
1398
+ optsGenericForAll: {
1399
+ allowedExts?: string[] | undefined;
1400
+ } & {
1401
+ allowedExts?: string[] | undefined;
1402
+ };
1403
+ sqls: {
1404
+ [k: string]: string;
1405
+ } & {
1406
+ [k: string]: string;
1407
+ };
1408
+ messages: {
1409
+ [k: string]: string;
1410
+ } & {
1411
+ [k: string]: string;
1412
+ };
1413
+ dbUserNameExpr: string;
1414
+ dbUserRolExpr: string;
1415
+ specialValueWhenInsert: {
1416
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1417
+ } & {
1418
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1419
+ };
1420
+ dumpDbTableFields(tableDefinition: procesamiento.TableDefinition): string[];
1421
+ i18n: {
1422
+ messages: Record<procesamiento.LangId, Record<string, string>>;
1423
+ };
1424
+ }) & {
1425
+ new (...args: any[]): {
1426
+ tablasDatos: procesamiento.TablaDatos[];
1427
+ configStaticConfig(): void;
1428
+ cargarGenerados(client: procesamiento.Client): Promise<string>;
1429
+ postConfig(): Promise<void>;
1430
+ generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinition;
1431
+ getTableDefFunction(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1432
+ loadTableDef(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1433
+ generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinitionFunction;
1434
+ clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1435
+ getMenu(): procesamiento.MenuDefinition;
1436
+ prepareGetTables(): void;
1437
+ checkDatabaseStructure(client: procesamiento.Client): Promise<void>;
1438
+ getDbFunctions(opts: procesamiento.DumpOptions): Promise<{
1439
+ dumpText: string;
1440
+ }[]>;
1441
+ procedures: procesamiento.ProcedureDef[];
1442
+ procedure: {
1443
+ [key: string]: procesamiento.ProcedureDef;
1444
+ };
1445
+ app: procesamiento.ExpressPlus;
1446
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
1447
+ tableStructures: procesamiento.TableDefinitions;
1448
+ db: typeof pg;
1449
+ config: any;
1450
+ rootPath: string;
1451
+ caches: {
1452
+ procedures: {
1453
+ [k: string]: {
1454
+ timestamp: number;
1455
+ result: any;
1456
+ };
1457
+ };
1458
+ };
1459
+ fieldDomain: {
1460
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1461
+ };
1462
+ exts: {
1463
+ img: string[];
1464
+ normal: string[];
1465
+ };
1466
+ optsGenericForAll: {
1467
+ allowedExts?: string[] | undefined;
1468
+ };
1469
+ sqls: {
1470
+ [k: string]: string;
1471
+ };
1472
+ messages: {
1473
+ [k: string]: string;
1474
+ };
1475
+ dbUserNameExpr: string;
1476
+ dbUserRolExpr: string;
1477
+ specialValueWhenInsert: {
1478
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1479
+ };
1480
+ clearCaches(): void;
1481
+ start(opts?: procesamiento.StartOptions | undefined): Promise<void>;
1482
+ getTables(): procesamiento.TableItemDef[];
1483
+ appendToTableDefinition(tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void): void;
1484
+ getContext(req: procesamiento.Request): procesamiento.Context;
1485
+ addSchrödingerServices(mainApp: procesamiento.ExpressPlus, baseUrl: string): void;
1486
+ addUnloggedServices(mainApp: procesamiento.ExpressPlus, baseUrl: string): void;
1487
+ addLoggedServices(): void;
1488
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1489
+ inDbClient<T_1>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T_1>): Promise<T_1>;
1490
+ inTransaction<T_2>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_2>): Promise<T_2>;
1491
+ procedureDefCompleter(procedureDef: procesamiento.ProcedureDef): procesamiento.ProcedureDef;
1492
+ tableDefAdapt(tableDef: procesamiento.TableDefinition, context: procesamiento.Context): procesamiento.TableDefinition;
1493
+ pushApp(dirname: string): void;
1494
+ dumpDbSchemaPartial(partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined): Promise<{
1495
+ mainSql: string;
1496
+ enancePart: string;
1497
+ }>;
1498
+ getContextForDump(): procesamiento.ContextForDump;
1499
+ getClientSetupForSendToFrontEnd(req: procesamiento.Request): procesamiento.ClientSetup;
1500
+ configList(): (string | object)[];
1501
+ setStaticConfig(defConfigYamlString: string): void;
1502
+ mainPage(req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined): {
1503
+ toHtmlDoc: () => string;
1504
+ };
1505
+ isThisProcedureAllowed<T_3_1>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
1506
+ [key: string]: T_3_1;
1507
+ }): Promise<boolean>;
1508
+ };
1509
+ prefixTableName(tableName: string, prefix: string): string;
1510
+ } & typeof procesamiento.AppBackend;
1511
+ export type AppAppDmEncuType = InstanceType<typeof AppDmEncu>;