dmencu 3.0.8 → 3.1.1

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 (56) hide show
  1. package/dist/client/client/client.js +2 -2
  2. package/dist/client/unlogged/abrir-formulario.js +1 -1
  3. package/dist/client/unlogged/css/bootstrap.min.css +6 -6
  4. package/dist/client/unlogged/css/formulario-react.styl +21 -0
  5. package/dist/client/unlogged/redux-formulario.js +2 -2
  6. package/dist/client/unlogged/render-config.js +1 -1
  7. package/dist/client/unlogged/render-formulario.js +17 -13
  8. package/dist/client/unlogged/render-formulario.tsx +12 -8
  9. package/dist/client/unlogged/render-init.js +1 -1
  10. package/dist/client/unlogged/tipos.d.ts +33 -3
  11. package/dist/client/unlogged/tipos.js +1 -1
  12. package/dist/client/unlogged/tsconfig.json +14 -14
  13. package/dist/server/server/app-dmencu.d.ts +857 -510
  14. package/dist/server/server/procedures-dmencu.js +35 -43
  15. package/dist/server/server/table-area_enc_proximas.js +1 -1
  16. package/dist/server/server/table-barrios.js +1 -1
  17. package/dist/server/server/table-encuestadores.js +7 -7
  18. package/dist/server/server/table-fracciones.js +1 -1
  19. package/dist/server/server/table-hogares.js +1 -1
  20. package/dist/server/server/table-hogares_sup.js +1 -1
  21. package/dist/server/server/table-manzanas.js +1 -1
  22. package/dist/server/server/table-parametros.js +1 -1
  23. package/dist/server/server/table-personal.js +7 -7
  24. package/dist/server/server/table-personal_rol.js +7 -7
  25. package/dist/server/server/table-personas.js +1 -1
  26. package/dist/server/server/table-personas_sup.js +1 -1
  27. package/dist/server/server/table-radios.js +1 -1
  28. package/dist/server/server/table-recepcionistas.js +1 -1
  29. package/dist/server/server/table-visitas.js +1 -1
  30. package/dist/server/server/table-visitas_sup.js +1 -1
  31. package/dist/server/server/table-viviendas.js +1 -1
  32. package/dist/server/server/types-dmencu.js +1 -1
  33. package/dist/server/unlogged/tipos.d.ts +33 -3
  34. package/dist/server/unlogged/tipos.js +1 -1
  35. package/dist/unlogged/unlogged/abrir-formulario.js +1 -1
  36. package/dist/unlogged/unlogged/css/bootstrap.min.css +6 -6
  37. package/dist/unlogged/unlogged/css/formulario-react.styl +21 -0
  38. package/dist/unlogged/unlogged/render-config.js +1 -1
  39. package/dist/unlogged/unlogged/render-formulario.js +13 -9
  40. package/dist/unlogged/unlogged/render-formulario.tsx +12 -8
  41. package/dist/unlogged/unlogged/render-init.js +1 -1
  42. package/dist/unlogged/unlogged/tipos.d.ts +17 -0
  43. package/dist/unlogged/unlogged/tipos.js +1 -1
  44. package/dist/unlogged/unlogged/tsconfig.json +14 -14
  45. package/install/actualizar-2023-05-14.sql +38 -38
  46. package/install/actualizar_inconvar.sql +28 -28
  47. package/install/agregados_tem.sql +4 -4
  48. package/install/asignar_desasignar_tareas_tem_trg.sql +43 -43
  49. package/install/metadatos/permisos.tab +11 -11
  50. package/install/metadatos/roles.tab +10 -10
  51. package/install/metadatos/roles_permisos.tab +94 -94
  52. package/install/metadatos/tipovar.tab +9 -9
  53. package/install/sincro_tareas_areas_tareas_tem_trg.sql +29 -29
  54. package/install/usuarios_trg.sql +41 -41
  55. package/install/validar_tareas_tem_trg.sql +67 -67
  56. package/package.json +91 -91
@@ -89,6 +89,7 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
89
89
  menu: procesamiento.MenuInfoBase[];
90
90
  };
91
91
  prepareGetTables(): void;
92
+ config: any;
92
93
  tablasDatos: import("consistencias").TablaDatos[];
93
94
  procedures: import("backend-plus").ProcedureDef[];
94
95
  procedure: {
@@ -131,115 +132,9 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
131
132
  app: import("backend-plus").ExpressPlus;
132
133
  getTableDefinition: import("backend-plus").TableDefinitionsGetters;
133
134
  tableStructures: import("backend-plus").TableDefinitions;
134
- db: typeof import("pg-promise-strict");
135
- config: any;
135
+ db: import("backend-plus").MotorDb;
136
136
  rootPath: string;
137
- caches: {
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
- } & {
201
- procedures: {
202
- [k: string]: {
203
- timestamp: number;
204
- result: any;
205
- };
206
- };
207
- } & {
208
- procedures: {
209
- [k: string]: {
210
- timestamp: number;
211
- result: any;
212
- };
213
- };
214
- } & {
215
- procedures: {
216
- [k: string]: {
217
- timestamp: number;
218
- result: any;
219
- };
220
- };
221
- } & {
222
- procedures: {
223
- [k: string]: {
224
- timestamp: number;
225
- result: any;
226
- };
227
- };
228
- } & {
229
- procedures: {
230
- [k: string]: {
231
- timestamp: number;
232
- result: any;
233
- };
234
- };
235
- } & {
236
- procedures: {
237
- [k: string]: {
238
- timestamp: number;
239
- result: any;
240
- };
241
- };
242
- } & {
137
+ caches: procesamiento.Caches & {
243
138
  procedures: {
244
139
  [k: string]: {
245
140
  timestamp: number;
@@ -253,7 +148,7 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
253
148
  result: any;
254
149
  };
255
150
  };
256
- } & procesamiento.Caches;
151
+ };
257
152
  fieldDomain: {
258
153
  [k: string]: Partial<procesamiento.FieldDefinition>;
259
154
  } & {
@@ -283,27 +178,180 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
283
178
  } & {
284
179
  [k: string]: Partial<procesamiento.FieldDefinition>;
285
180
  } & {
286
- [k: string]: Partial<procesamiento.FieldDefinition>;
287
- } & {
288
- [k: string]: Partial<procesamiento.FieldDefinition>;
181
+ [k: string]: Partial<procesamiento.EditableDbDefinition & {
182
+ name: string;
183
+ typeName: import("backend-plus").PgKnownTypes;
184
+ label?: string | undefined;
185
+ title?: string | undefined;
186
+ nullable?: boolean | undefined;
187
+ dbNullable?: boolean | undefined;
188
+ defaultValue?: any;
189
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
190
+ clientSide?: string | undefined;
191
+ isName?: boolean | undefined;
192
+ isPk?: number | undefined;
193
+ serverSide?: boolean | undefined;
194
+ inTable?: boolean | undefined;
195
+ allowEmtpyText?: boolean | undefined;
196
+ mobileInputType?: string | undefined;
197
+ extraRow?: number | undefined;
198
+ inexactNumber?: number | undefined;
199
+ visible?: boolean | undefined;
200
+ width?: number | undefined;
201
+ references?: string | undefined;
202
+ referencesField?: string | undefined;
203
+ aggregate?: string | undefined;
204
+ specialDefaultValue?: string | undefined;
205
+ specialValueWhenInsert?: string | undefined;
206
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
207
+ description?: string | undefined;
208
+ dataLength?: number | undefined;
209
+ options?: (string | {
210
+ option: string | number;
211
+ label: string;
212
+ })[] | undefined;
213
+ inView?: boolean | undefined;
214
+ sortMethod?: string | undefined;
215
+ generatedAs?: string | undefined;
216
+ }> | Partial<procesamiento.EditableDbDefinition & {
217
+ name: string;
218
+ typeName: import("backend-plus").PgKnownTypes;
219
+ label?: string | undefined;
220
+ title?: string | undefined;
221
+ nullable?: boolean | undefined;
222
+ dbNullable?: boolean | undefined;
223
+ defaultValue?: any;
224
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
225
+ clientSide?: string | undefined;
226
+ isName?: boolean | undefined;
227
+ isPk?: number | undefined;
228
+ serverSide?: boolean | undefined;
229
+ inTable?: boolean | undefined;
230
+ allowEmtpyText?: boolean | undefined;
231
+ mobileInputType?: string | undefined;
232
+ extraRow?: number | undefined;
233
+ inexactNumber?: number | undefined;
234
+ visible?: boolean | undefined;
235
+ width?: number | undefined;
236
+ references?: string | undefined;
237
+ referencesField?: string | undefined;
238
+ aggregate?: string | undefined;
239
+ specialDefaultValue?: string | undefined;
240
+ specialValueWhenInsert?: string | undefined;
241
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
242
+ description?: string | undefined;
243
+ dataLength?: number | undefined;
244
+ options?: (string | {
245
+ option: string | number;
246
+ label: string;
247
+ })[] | undefined;
248
+ inView?: boolean | undefined;
249
+ sortMethod?: string | undefined;
250
+ generatedAs?: string | undefined;
251
+ } & {
252
+ sequence: import("backend-plus").SequenceDefinition;
253
+ nullable: true;
254
+ editable: false;
255
+ }>;
256
+ } & {
257
+ [k: string]: Partial<procesamiento.EditableDbDefinition & {
258
+ name: string;
259
+ typeName: import("backend-plus").PgKnownTypes;
260
+ label?: string | undefined;
261
+ title?: string | undefined;
262
+ nullable?: boolean | undefined;
263
+ dbNullable?: boolean | undefined;
264
+ defaultValue?: any;
265
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
266
+ clientSide?: string | undefined;
267
+ isName?: boolean | undefined;
268
+ isPk?: number | undefined;
269
+ serverSide?: boolean | undefined;
270
+ inTable?: boolean | undefined;
271
+ allowEmtpyText?: boolean | undefined;
272
+ mobileInputType?: string | undefined;
273
+ extraRow?: number | undefined;
274
+ inexactNumber?: number | undefined;
275
+ visible?: boolean | undefined;
276
+ width?: number | undefined;
277
+ references?: string | undefined;
278
+ referencesField?: string | undefined;
279
+ aggregate?: string | undefined;
280
+ specialDefaultValue?: string | undefined;
281
+ specialValueWhenInsert?: string | undefined;
282
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
283
+ description?: string | undefined;
284
+ dataLength?: number | undefined;
285
+ options?: (string | {
286
+ option: string | number;
287
+ label: string;
288
+ })[] | undefined;
289
+ inView?: boolean | undefined;
290
+ sortMethod?: string | undefined;
291
+ generatedAs?: string | undefined;
292
+ }> | Partial<procesamiento.EditableDbDefinition & {
293
+ name: string;
294
+ typeName: import("backend-plus").PgKnownTypes;
295
+ label?: string | undefined;
296
+ title?: string | undefined;
297
+ nullable?: boolean | undefined;
298
+ dbNullable?: boolean | undefined;
299
+ defaultValue?: any;
300
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
301
+ clientSide?: string | undefined;
302
+ isName?: boolean | undefined;
303
+ isPk?: number | undefined;
304
+ serverSide?: boolean | undefined;
305
+ inTable?: boolean | undefined;
306
+ allowEmtpyText?: boolean | undefined;
307
+ mobileInputType?: string | undefined;
308
+ extraRow?: number | undefined;
309
+ inexactNumber?: number | undefined;
310
+ visible?: boolean | undefined;
311
+ width?: number | undefined;
312
+ references?: string | undefined;
313
+ referencesField?: string | undefined;
314
+ aggregate?: string | undefined;
315
+ specialDefaultValue?: string | undefined;
316
+ specialValueWhenInsert?: string | undefined;
317
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
318
+ description?: string | undefined;
319
+ dataLength?: number | undefined;
320
+ options?: (string | {
321
+ option: string | number;
322
+ label: string;
323
+ })[] | undefined;
324
+ inView?: boolean | undefined;
325
+ sortMethod?: string | undefined;
326
+ generatedAs?: string | undefined;
327
+ } & {
328
+ sequence: import("backend-plus").SequenceDefinition;
329
+ nullable: true;
330
+ editable: false;
331
+ }>;
289
332
  } & {
290
333
  [k: string]: Partial<procesamiento.FieldDefinition>;
291
334
  } & {
292
335
  [k: string]: Partial<procesamiento.FieldDefinition>;
293
336
  };
294
337
  exts: {
295
- img?: string[] | undefined;
338
+ img: string[];
339
+ normal: string[];
296
340
  } & {
297
- img?: string[] | undefined;
341
+ img: string[];
342
+ normal: string[];
298
343
  } & {
299
- img?: string[] | undefined;
344
+ img: string[];
345
+ normal: string[];
300
346
  } & {
301
347
  img: string[];
302
348
  normal: string[];
303
349
  } & {
304
- img?: string[] | undefined;
350
+ img: string[];
351
+ normal: string[];
305
352
  } & {
306
- img?: string[] | undefined;
353
+ img: string[];
354
+ normal: string[];
307
355
  } & {
308
356
  img: string[];
309
357
  normal: string[];
@@ -311,18 +359,23 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
311
359
  img: string[];
312
360
  normal: string[];
313
361
  } & {
314
- img?: string[] | undefined;
362
+ img: string[];
363
+ normal: string[];
315
364
  } & {
316
- img?: string[] | undefined;
365
+ img: string[];
366
+ normal: string[];
317
367
  } & {
318
- img?: string[] | undefined;
368
+ img: string[];
369
+ normal: string[];
319
370
  } & {
320
371
  img: string[];
321
372
  normal: string[];
322
373
  } & {
323
- img?: string[] | undefined;
374
+ img: string[];
375
+ normal: string[];
324
376
  } & {
325
- img?: string[] | undefined;
377
+ img: string[];
378
+ normal: string[];
326
379
  } & {
327
380
  img?: string[] | undefined;
328
381
  } & {
@@ -335,39 +388,39 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
335
388
  normal: string[];
336
389
  };
337
390
  optsGenericForAll: {
338
- allowedExts?: string[] | undefined;
391
+ allowedExts?: string[];
339
392
  } & {
340
- allowedExts?: string[] | undefined;
393
+ allowedExts?: string[];
341
394
  } & {
342
- allowedExts?: string[] | undefined;
395
+ allowedExts?: string[];
343
396
  } & {
344
- allowedExts?: string[] | undefined;
397
+ allowedExts?: string[];
345
398
  } & {
346
- allowedExts?: string[] | undefined;
399
+ allowedExts?: string[];
347
400
  } & {
348
- allowedExts?: string[] | undefined;
401
+ allowedExts?: string[];
349
402
  } & {
350
- allowedExts?: string[] | undefined;
403
+ allowedExts?: string[];
351
404
  } & {
352
- allowedExts?: string[] | undefined;
405
+ allowedExts?: string[];
353
406
  } & {
354
- allowedExts?: string[] | undefined;
407
+ allowedExts?: string[];
355
408
  } & {
356
- allowedExts?: string[] | undefined;
409
+ allowedExts?: string[];
357
410
  } & {
358
- allowedExts?: string[] | undefined;
411
+ allowedExts?: string[];
359
412
  } & {
360
- allowedExts?: string[] | undefined;
413
+ allowedExts?: string[];
361
414
  } & {
362
- allowedExts?: string[] | undefined;
415
+ allowedExts?: string[];
363
416
  } & {
364
- allowedExts?: string[] | undefined;
417
+ allowedExts?: string[];
365
418
  } & {
366
419
  allowedExts?: string[] | undefined;
367
420
  } & {
368
421
  allowedExts?: string[] | undefined;
369
422
  } & {
370
- allowedExts?: string[] | undefined;
423
+ allowedExts?: string[];
371
424
  } & {
372
425
  allowedExts?: string[];
373
426
  };
@@ -477,10 +530,6 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
477
530
  [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
478
531
  } & {
479
532
  [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
480
- } & {
481
- [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
482
- } & {
483
- [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
484
533
  } & {
485
534
  [k: string]: (context: ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
486
535
  };
@@ -490,10 +539,33 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
490
539
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
491
540
  } & {
492
541
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
542
+ } & {
543
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
544
+ } & {
545
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
546
+ } & {
547
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
548
+ } & {
549
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
550
+ } & {
551
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
552
+ } & {
553
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
554
+ } & {
555
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
556
+ } & {
557
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
558
+ } & {
559
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
560
+ } & {
561
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
562
+ } & {
563
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
564
+ } & {
565
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
493
566
  } & {
494
567
  messages: Record<procesamiento.LangId, Record<string, string>>;
495
568
  };
496
- dumpDbTableFields: ((tableDefinition: import("backend-plus").TableDefinition) => string[]) & ((tableDefinition: procesamiento.TableDefinition) => string[]);
497
569
  generateAndLoadTableDefs: (() => import("backend-plus").TableDefinitions) & (() => import("backend-plus").TableDefinitions);
498
570
  generateBaseTableDef: ((tablaDatos: import("consistencias").TablaDatos) => import("backend-plus").TableDefinition) & ((tablaDatos: import("consistencias").TablaDatos) => import("backend-plus").TableDefinition) & ((tablaDatos: import("consistencias").TablaDatos) => import("backend-plus").TableDefinition);
499
571
  cargarGenerados: ((client: import("pg-promise-strict").Client) => Promise<string>) & ((client: import("pg-promise-strict").Client) => Promise<string>) & ((client: import("pg-promise-strict").Client) => Promise<string>);
@@ -506,50 +578,66 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
506
578
  dumpText: string;
507
579
  }[]>);
508
580
  clearCaches: (() => void) & (() => void);
509
- start: ((opts?: import("backend-plus").StartOptions | undefined) => Promise<void>) & ((opts?: procesamiento.StartOptions) => Promise<void>);
581
+ start: ((opts?: import("backend-plus").StartOptions) => Promise<void>) & ((opts?: procesamiento.StartOptions) => Promise<void>);
510
582
  getTables: (() => import("backend-plus").TableItemDef[]) & (() => procesamiento.TableItemDef[]);
511
- appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: import("backend-plus").TableDefinition, context?: import("backend-plus").TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext) => void) => void);
583
+ appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: import("backend-plus").TableDefinition, context?: import("backend-plus").TableContext) => void) => void) & ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext) => void) => void);
512
584
  addUnloggedServices: ((mainApp: import("backend-plus").ExpressPlus, baseUrl: string) => void) & ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void);
513
- inDbClient: (<T_1_1>(req: Request | null, doThisWithDbClient: (client: import("pg-promise-strict").Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T_1>(req: procesamiento.RequestDb | null, doThisWithDbClient: (client: Client) => Promise<T_1>) => Promise<T_1>);
514
- inTransaction: (<T_2_1>(req: Request | null, doThisWithDbTransaction: (client: import("pg-promise-strict").Client) => Promise<T_2_1>) => Promise<T_2_1>) & (<T_1>(req: procesamiento.RequestDb | null, doThisWithDbTransaction: (client: Client) => Promise<T_1>) => Promise<T_1>);
515
- procedureDefCompleter: ((procedureDef: import("backend-plus").ProcedureDef) => import("backend-plus").ProcedureDef) & (<T_1>(procedureDef: ProcedureDef) => ProcedureDef<T_1>);
585
+ isAdmin: ((reqOrContext: Request | import("backend-plus").Context) => boolean) & ((reqOrContext: Request | Context) => boolean);
586
+ inDbClient: (<T_1>(req: import("backend-plus").RequestDb | null, doThisWithDbClient: (client: import("pg-promise-strict").Client) => Promise<T_1>) => Promise<T_1>) & (<T_1>(req: procesamiento.RequestDb | null, doThisWithDbClient: (client: Client) => Promise<T_1>) => Promise<T_1>);
587
+ inTransaction: (<T_1>(req: import("backend-plus").RequestDb | null, doThisWithDbTransaction: (client: import("pg-promise-strict").Client) => Promise<T_1>) => Promise<T_1>) & (<T_1>(req: procesamiento.RequestDb | null, doThisWithDbTransaction: (client: Client) => Promise<T_1>) => Promise<T_1>);
588
+ inTransactionProcedureContext: (<T_1>(req: Request | null, coreFunction: (context: import("backend-plus").ProcedureContext) => Promise<T_1>) => Promise<T_1>) & (<T_1>(req: Request | null, coreFunction: (context: ProcedureContext) => Promise<T_1>) => Promise<T_1>);
589
+ procedureDefCompleter: (<T_1>(procedureDef: import("backend-plus").ProcedureDef) => import("backend-plus").ProcedureDef<T_1>) & (<T_1>(procedureDef: ProcedureDef) => ProcedureDef<T_1>);
516
590
  tableDefAdapt: ((tableDef: import("backend-plus").TableDefinition, context: import("backend-plus").Context) => import("backend-plus").TableDefinition) & ((tableDef: procesamiento.TableDefinition, context: Context) => procesamiento.TableDefinition);
517
591
  pushApp: ((dirname: string) => void) & ((dirname: string) => void);
518
- dumpDbSchemaPartial: ((partialTableStructures: import("backend-plus").TableDefinitions, opts?: import("backend-plus").DumpOptions | undefined) => Promise<{
592
+ dumpDbTableFields: ((tableDefinition: import("backend-plus").TableDefinition) => string[]) & ((tableDefinition: procesamiento.TableDefinition) => string[]);
593
+ dumpDbSchemaPartial: ((partialTableStructures: import("backend-plus").TableDefinitions, opts?: import("backend-plus").DumpOptions) => Promise<{
519
594
  mainSql: string;
520
595
  enancePart: string;
521
596
  }>) & ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions) => Promise<{
522
597
  mainSql: string;
523
598
  enancePart: string;
524
599
  }>);
525
- configList: (() => (string | object)[]) & (() => (object | string)[]);
600
+ configList: (() => (object | string)[]) & (() => (object | string)[]);
526
601
  setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void);
527
- mainPage: ((req: {} | Request, offlineMode?: boolean | undefined, opts?: OptsClientPage | undefined) => {
602
+ mainPage: ((req: Request | {}, offlineMode?: boolean, opts?: OptsClientPage) => {
528
603
  toHtmlDoc: () => string;
529
604
  }) & ((req: Request | {}, offlineMode?: boolean, opts?: OptsClientPage) => {
530
605
  toHtmlDoc: () => string;
531
606
  });
532
- isThisProcedureAllowed: (<T_3>(context: import("backend-plus").Context, procedureDef: import("backend-plus").ProcedureDef, params: {
533
- [key: string]: T_3;
607
+ isThisProcedureAllowed: (<T_1>(context: import("backend-plus").Context, procedureDef: import("backend-plus").ProcedureDef, params: {
608
+ [key: string]: T_1;
534
609
  }) => Promise<boolean>) & (<T_1>(context: Context, procedureDef: ProcedureDef, params: {
535
610
  [key: string]: T_1;
536
611
  }) => Promise<boolean>);
537
- isAdmin(): boolean;
538
- inTransactionProcedureContext<T_1>(req: Request | null, coreFunction: (context: ProcedureContext) => Promise<T_1>): Promise<T_1>;
539
- shutdownCallbackListAdd(param: {
612
+ shutdownCallbackListAdd: ((param: {
540
613
  message: string;
541
614
  fun: () => Promise<void>;
542
- }): void;
543
- shutdownBackend(): Promise<void>;
544
- setLog(opts: {
615
+ }) => void) & ((param: {
616
+ message: string;
617
+ fun: () => Promise<void>;
618
+ }) => void);
619
+ shutdownBackend: (() => Promise<void>) & ((opts?: {
620
+ skipTurnOff?: boolean;
621
+ onlyTurnOff?: boolean;
622
+ }) => Promise<void>);
623
+ setLog: ((opts: {
545
624
  until: string;
546
625
  results?: boolean;
547
- }): void;
548
- getDataDumpTransformations(rawData: string): Promise<{
626
+ }) => void) & ((opts: {
627
+ until: string;
628
+ results?: boolean;
629
+ }) => void);
630
+ getDataDumpTransformations: ((rawData: string) => Promise<{
549
631
  rawData: string;
550
632
  prepareTransformationSql: string[];
551
633
  endTransformationSql: string[];
552
- }>;
634
+ }>) & ((rawData: string) => Promise<{
635
+ rawData: string;
636
+ prepareTransformationSql: string[];
637
+ endTransformationSql: string[];
638
+ }>);
639
+ specialSqlDefaultExpressions: Record<string, string>;
640
+ activeSkinFiles: Set<string>;
553
641
  };
554
642
  } & T;
555
643
  export declare var AppDmEncu: {
@@ -635,6 +723,7 @@ export declare var AppDmEncu: {
635
723
  menu: procesamiento.MenuInfoBase[];
636
724
  };
637
725
  prepareGetTables(): void;
726
+ config: any;
638
727
  tablasDatos: import("consistencias").TablaDatos[];
639
728
  procedures: import("backend-plus").ProcedureDef[];
640
729
  procedure: {
@@ -677,10 +766,9 @@ export declare var AppDmEncu: {
677
766
  app: import("backend-plus").ExpressPlus;
678
767
  getTableDefinition: import("backend-plus").TableDefinitionsGetters;
679
768
  tableStructures: import("backend-plus").TableDefinitions;
680
- db: typeof import("pg-promise-strict");
681
- config: any;
769
+ db: import("backend-plus").MotorDb;
682
770
  rootPath: string;
683
- caches: {
771
+ caches: procesamiento.Caches & {
684
772
  procedures: {
685
773
  [k: string]: {
686
774
  timestamp: number;
@@ -694,120 +782,17 @@ export declare var AppDmEncu: {
694
782
  result: any;
695
783
  };
696
784
  };
785
+ };
786
+ fieldDomain: {
787
+ [k: string]: Partial<procesamiento.FieldDefinition>;
697
788
  } & {
698
- procedures: {
699
- [k: string]: {
700
- timestamp: number;
701
- result: any;
702
- };
703
- };
789
+ [k: string]: Partial<procesamiento.FieldDefinition>;
704
790
  } & {
705
- procedures: {
706
- [k: string]: {
707
- timestamp: number;
708
- result: any;
709
- };
710
- };
791
+ [k: string]: Partial<procesamiento.FieldDefinition>;
711
792
  } & {
712
- procedures: {
713
- [k: string]: {
714
- timestamp: number;
715
- result: any;
716
- };
717
- };
793
+ [k: string]: Partial<procesamiento.FieldDefinition>;
718
794
  } & {
719
- procedures: {
720
- [k: string]: {
721
- timestamp: number;
722
- result: any;
723
- };
724
- };
725
- } & {
726
- procedures: {
727
- [k: string]: {
728
- timestamp: number;
729
- result: any;
730
- };
731
- };
732
- } & {
733
- procedures: {
734
- [k: string]: {
735
- timestamp: number;
736
- result: any;
737
- };
738
- };
739
- } & {
740
- procedures: {
741
- [k: string]: {
742
- timestamp: number;
743
- result: any;
744
- };
745
- };
746
- } & {
747
- procedures: {
748
- [k: string]: {
749
- timestamp: number;
750
- result: any;
751
- };
752
- };
753
- } & {
754
- procedures: {
755
- [k: string]: {
756
- timestamp: number;
757
- result: any;
758
- };
759
- };
760
- } & {
761
- procedures: {
762
- [k: string]: {
763
- timestamp: number;
764
- result: any;
765
- };
766
- };
767
- } & {
768
- procedures: {
769
- [k: string]: {
770
- timestamp: number;
771
- result: any;
772
- };
773
- };
774
- } & {
775
- procedures: {
776
- [k: string]: {
777
- timestamp: number;
778
- result: any;
779
- };
780
- };
781
- } & {
782
- procedures: {
783
- [k: string]: {
784
- timestamp: number;
785
- result: any;
786
- };
787
- };
788
- } & {
789
- procedures: {
790
- [k: string]: {
791
- timestamp: number;
792
- result: any;
793
- };
794
- };
795
- } & {
796
- procedures: {
797
- [k: string]: {
798
- timestamp: number;
799
- result: any;
800
- };
801
- };
802
- } & procesamiento.Caches;
803
- fieldDomain: {
804
- [k: string]: Partial<procesamiento.FieldDefinition>;
805
- } & {
806
- [k: string]: Partial<procesamiento.FieldDefinition>;
807
- } & {
808
- [k: string]: Partial<procesamiento.FieldDefinition>;
809
- } & {
810
- [k: string]: Partial<procesamiento.FieldDefinition>;
795
+ [k: string]: Partial<procesamiento.FieldDefinition>;
811
796
  } & {
812
797
  [k: string]: Partial<procesamiento.FieldDefinition>;
813
798
  } & {
@@ -827,29 +812,180 @@ export declare var AppDmEncu: {
827
812
  } & {
828
813
  [k: string]: Partial<procesamiento.FieldDefinition>;
829
814
  } & {
830
- [k: string]: Partial<procesamiento.FieldDefinition>;
831
- } & {
832
- [k: string]: Partial<procesamiento.FieldDefinition>;
833
- } & {
834
- [k: string]: Partial<procesamiento.FieldDefinition>;
815
+ [k: string]: Partial<procesamiento.EditableDbDefinition & {
816
+ name: string;
817
+ typeName: import("backend-plus").PgKnownTypes;
818
+ label?: string | undefined;
819
+ title?: string | undefined;
820
+ nullable?: boolean | undefined;
821
+ dbNullable?: boolean | undefined;
822
+ defaultValue?: any;
823
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
824
+ clientSide?: string | undefined;
825
+ isName?: boolean | undefined;
826
+ isPk?: number | undefined;
827
+ serverSide?: boolean | undefined;
828
+ inTable?: boolean | undefined;
829
+ allowEmtpyText?: boolean | undefined;
830
+ mobileInputType?: string | undefined;
831
+ extraRow?: number | undefined;
832
+ inexactNumber?: number | undefined;
833
+ visible?: boolean | undefined;
834
+ width?: number | undefined;
835
+ references?: string | undefined;
836
+ referencesField?: string | undefined;
837
+ aggregate?: string | undefined;
838
+ specialDefaultValue?: string | undefined;
839
+ specialValueWhenInsert?: string | undefined;
840
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
841
+ description?: string | undefined;
842
+ dataLength?: number | undefined;
843
+ options?: (string | {
844
+ option: string | number;
845
+ label: string;
846
+ })[] | undefined;
847
+ inView?: boolean | undefined;
848
+ sortMethod?: string | undefined;
849
+ generatedAs?: string | undefined;
850
+ }> | Partial<procesamiento.EditableDbDefinition & {
851
+ name: string;
852
+ typeName: import("backend-plus").PgKnownTypes;
853
+ label?: string | undefined;
854
+ title?: string | undefined;
855
+ nullable?: boolean | undefined;
856
+ dbNullable?: boolean | undefined;
857
+ defaultValue?: any;
858
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
859
+ clientSide?: string | undefined;
860
+ isName?: boolean | undefined;
861
+ isPk?: number | undefined;
862
+ serverSide?: boolean | undefined;
863
+ inTable?: boolean | undefined;
864
+ allowEmtpyText?: boolean | undefined;
865
+ mobileInputType?: string | undefined;
866
+ extraRow?: number | undefined;
867
+ inexactNumber?: number | undefined;
868
+ visible?: boolean | undefined;
869
+ width?: number | undefined;
870
+ references?: string | undefined;
871
+ referencesField?: string | undefined;
872
+ aggregate?: string | undefined;
873
+ specialDefaultValue?: string | undefined;
874
+ specialValueWhenInsert?: string | undefined;
875
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
876
+ description?: string | undefined;
877
+ dataLength?: number | undefined;
878
+ options?: (string | {
879
+ option: string | number;
880
+ label: string;
881
+ })[] | undefined;
882
+ inView?: boolean | undefined;
883
+ sortMethod?: string | undefined;
884
+ generatedAs?: string | undefined;
885
+ } & {
886
+ sequence: import("backend-plus").SequenceDefinition;
887
+ nullable: true;
888
+ editable: false;
889
+ }>;
890
+ } & {
891
+ [k: string]: Partial<procesamiento.EditableDbDefinition & {
892
+ name: string;
893
+ typeName: import("backend-plus").PgKnownTypes;
894
+ label?: string | undefined;
895
+ title?: string | undefined;
896
+ nullable?: boolean | undefined;
897
+ dbNullable?: boolean | undefined;
898
+ defaultValue?: any;
899
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
900
+ clientSide?: string | undefined;
901
+ isName?: boolean | undefined;
902
+ isPk?: number | undefined;
903
+ serverSide?: boolean | undefined;
904
+ inTable?: boolean | undefined;
905
+ allowEmtpyText?: boolean | undefined;
906
+ mobileInputType?: string | undefined;
907
+ extraRow?: number | undefined;
908
+ inexactNumber?: number | undefined;
909
+ visible?: boolean | undefined;
910
+ width?: number | undefined;
911
+ references?: string | undefined;
912
+ referencesField?: string | undefined;
913
+ aggregate?: string | undefined;
914
+ specialDefaultValue?: string | undefined;
915
+ specialValueWhenInsert?: string | undefined;
916
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
917
+ description?: string | undefined;
918
+ dataLength?: number | undefined;
919
+ options?: (string | {
920
+ option: string | number;
921
+ label: string;
922
+ })[] | undefined;
923
+ inView?: boolean | undefined;
924
+ sortMethod?: string | undefined;
925
+ generatedAs?: string | undefined;
926
+ }> | Partial<procesamiento.EditableDbDefinition & {
927
+ name: string;
928
+ typeName: import("backend-plus").PgKnownTypes;
929
+ label?: string | undefined;
930
+ title?: string | undefined;
931
+ nullable?: boolean | undefined;
932
+ dbNullable?: boolean | undefined;
933
+ defaultValue?: any;
934
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
935
+ clientSide?: string | undefined;
936
+ isName?: boolean | undefined;
937
+ isPk?: number | undefined;
938
+ serverSide?: boolean | undefined;
939
+ inTable?: boolean | undefined;
940
+ allowEmtpyText?: boolean | undefined;
941
+ mobileInputType?: string | undefined;
942
+ extraRow?: number | undefined;
943
+ inexactNumber?: number | undefined;
944
+ visible?: boolean | undefined;
945
+ width?: number | undefined;
946
+ references?: string | undefined;
947
+ referencesField?: string | undefined;
948
+ aggregate?: string | undefined;
949
+ specialDefaultValue?: string | undefined;
950
+ specialValueWhenInsert?: string | undefined;
951
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
952
+ description?: string | undefined;
953
+ dataLength?: number | undefined;
954
+ options?: (string | {
955
+ option: string | number;
956
+ label: string;
957
+ })[] | undefined;
958
+ inView?: boolean | undefined;
959
+ sortMethod?: string | undefined;
960
+ generatedAs?: string | undefined;
961
+ } & {
962
+ sequence: import("backend-plus").SequenceDefinition;
963
+ nullable: true;
964
+ editable: false;
965
+ }>;
835
966
  } & {
836
967
  [k: string]: Partial<procesamiento.FieldDefinition>;
837
968
  } & {
838
969
  [k: string]: Partial<procesamiento.FieldDefinition>;
839
970
  };
840
971
  exts: {
841
- img?: string[] | undefined;
972
+ img: string[];
973
+ normal: string[];
842
974
  } & {
843
- img?: string[] | undefined;
975
+ img: string[];
976
+ normal: string[];
844
977
  } & {
845
- img?: string[] | undefined;
978
+ img: string[];
979
+ normal: string[];
846
980
  } & {
847
981
  img: string[];
848
982
  normal: string[];
849
983
  } & {
850
- img?: string[] | undefined;
984
+ img: string[];
985
+ normal: string[];
851
986
  } & {
852
- img?: string[] | undefined;
987
+ img: string[];
988
+ normal: string[];
853
989
  } & {
854
990
  img: string[];
855
991
  normal: string[];
@@ -857,18 +993,23 @@ export declare var AppDmEncu: {
857
993
  img: string[];
858
994
  normal: string[];
859
995
  } & {
860
- img?: string[] | undefined;
996
+ img: string[];
997
+ normal: string[];
861
998
  } & {
862
- img?: string[] | undefined;
999
+ img: string[];
1000
+ normal: string[];
863
1001
  } & {
864
- img?: string[] | undefined;
1002
+ img: string[];
1003
+ normal: string[];
865
1004
  } & {
866
1005
  img: string[];
867
1006
  normal: string[];
868
1007
  } & {
869
- img?: string[] | undefined;
1008
+ img: string[];
1009
+ normal: string[];
870
1010
  } & {
871
- img?: string[] | undefined;
1011
+ img: string[];
1012
+ normal: string[];
872
1013
  } & {
873
1014
  img?: string[] | undefined;
874
1015
  } & {
@@ -881,39 +1022,39 @@ export declare var AppDmEncu: {
881
1022
  normal: string[];
882
1023
  };
883
1024
  optsGenericForAll: {
884
- allowedExts?: string[] | undefined;
1025
+ allowedExts?: string[];
885
1026
  } & {
886
- allowedExts?: string[] | undefined;
1027
+ allowedExts?: string[];
887
1028
  } & {
888
- allowedExts?: string[] | undefined;
1029
+ allowedExts?: string[];
889
1030
  } & {
890
- allowedExts?: string[] | undefined;
1031
+ allowedExts?: string[];
891
1032
  } & {
892
- allowedExts?: string[] | undefined;
1033
+ allowedExts?: string[];
893
1034
  } & {
894
- allowedExts?: string[] | undefined;
1035
+ allowedExts?: string[];
895
1036
  } & {
896
- allowedExts?: string[] | undefined;
1037
+ allowedExts?: string[];
897
1038
  } & {
898
- allowedExts?: string[] | undefined;
1039
+ allowedExts?: string[];
899
1040
  } & {
900
- allowedExts?: string[] | undefined;
1041
+ allowedExts?: string[];
901
1042
  } & {
902
- allowedExts?: string[] | undefined;
1043
+ allowedExts?: string[];
903
1044
  } & {
904
- allowedExts?: string[] | undefined;
1045
+ allowedExts?: string[];
905
1046
  } & {
906
- allowedExts?: string[] | undefined;
1047
+ allowedExts?: string[];
907
1048
  } & {
908
- allowedExts?: string[] | undefined;
1049
+ allowedExts?: string[];
909
1050
  } & {
910
- allowedExts?: string[] | undefined;
1051
+ allowedExts?: string[];
911
1052
  } & {
912
1053
  allowedExts?: string[] | undefined;
913
1054
  } & {
914
1055
  allowedExts?: string[] | undefined;
915
1056
  } & {
916
- allowedExts?: string[] | undefined;
1057
+ allowedExts?: string[];
917
1058
  } & {
918
1059
  allowedExts?: string[];
919
1060
  };
@@ -1023,10 +1164,6 @@ export declare var AppDmEncu: {
1023
1164
  [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
1024
1165
  } & {
1025
1166
  [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
1026
- } & {
1027
- [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
1028
- } & {
1029
- [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
1030
1167
  } & {
1031
1168
  [k: string]: (context: ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1032
1169
  };
@@ -1036,10 +1173,33 @@ export declare var AppDmEncu: {
1036
1173
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
1037
1174
  } & {
1038
1175
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
1176
+ } & {
1177
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1178
+ } & {
1179
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1180
+ } & {
1181
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1182
+ } & {
1183
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1184
+ } & {
1185
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1186
+ } & {
1187
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1188
+ } & {
1189
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1190
+ } & {
1191
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1192
+ } & {
1193
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1194
+ } & {
1195
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1196
+ } & {
1197
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1198
+ } & {
1199
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1039
1200
  } & {
1040
1201
  messages: Record<procesamiento.LangId, Record<string, string>>;
1041
1202
  };
1042
- dumpDbTableFields: ((tableDefinition: import("backend-plus").TableDefinition) => string[]) & ((tableDefinition: procesamiento.TableDefinition) => string[]);
1043
1203
  generateAndLoadTableDefs: (() => import("backend-plus").TableDefinitions) & (() => import("backend-plus").TableDefinitions);
1044
1204
  generateBaseTableDef: ((tablaDatos: import("consistencias").TablaDatos) => import("backend-plus").TableDefinition) & ((tablaDatos: import("consistencias").TablaDatos) => import("backend-plus").TableDefinition) & ((tablaDatos: import("consistencias").TablaDatos) => import("backend-plus").TableDefinition);
1045
1205
  cargarGenerados: ((client: import("pg-promise-strict").Client) => Promise<string>) & ((client: import("pg-promise-strict").Client) => Promise<string>) & ((client: import("pg-promise-strict").Client) => Promise<string>);
@@ -1052,137 +1212,97 @@ export declare var AppDmEncu: {
1052
1212
  dumpText: string;
1053
1213
  }[]>);
1054
1214
  clearCaches: (() => void) & (() => void);
1055
- start: ((opts?: import("backend-plus").StartOptions | undefined) => Promise<void>) & ((opts?: procesamiento.StartOptions) => Promise<void>);
1215
+ start: ((opts?: import("backend-plus").StartOptions) => Promise<void>) & ((opts?: procesamiento.StartOptions) => Promise<void>);
1056
1216
  getTables: (() => import("backend-plus").TableItemDef[]) & (() => procesamiento.TableItemDef[]);
1057
- appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: import("backend-plus").TableDefinition, context?: import("backend-plus").TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext) => void) => void);
1217
+ appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: import("backend-plus").TableDefinition, context?: import("backend-plus").TableContext) => void) => void) & ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext) => void) => void);
1058
1218
  addUnloggedServices: ((mainApp: import("backend-plus").ExpressPlus, baseUrl: string) => void) & ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void);
1059
- inDbClient: (<T_1_1>(req: Request | null, doThisWithDbClient: (client: import("pg-promise-strict").Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T>(req: procesamiento.RequestDb | null, doThisWithDbClient: (client: Client) => Promise<T>) => Promise<T>);
1060
- inTransaction: (<T_2_1>(req: Request | null, doThisWithDbTransaction: (client: import("pg-promise-strict").Client) => Promise<T_2_1>) => Promise<T_2_1>) & (<T>(req: procesamiento.RequestDb | null, doThisWithDbTransaction: (client: Client) => Promise<T>) => Promise<T>);
1061
- procedureDefCompleter: ((procedureDef: import("backend-plus").ProcedureDef) => import("backend-plus").ProcedureDef) & (<T>(procedureDef: ProcedureDef) => ProcedureDef<T>);
1219
+ isAdmin: ((reqOrContext: Request | import("backend-plus").Context) => boolean) & ((reqOrContext: Request | Context) => boolean);
1220
+ inDbClient: (<T_1>(req: import("backend-plus").RequestDb | null, doThisWithDbClient: (client: import("pg-promise-strict").Client) => Promise<T_1>) => Promise<T_1>) & (<T>(req: procesamiento.RequestDb | null, doThisWithDbClient: (client: Client) => Promise<T>) => Promise<T>);
1221
+ inTransaction: (<T_1>(req: import("backend-plus").RequestDb | null, doThisWithDbTransaction: (client: import("pg-promise-strict").Client) => Promise<T_1>) => Promise<T_1>) & (<T>(req: procesamiento.RequestDb | null, doThisWithDbTransaction: (client: Client) => Promise<T>) => Promise<T>);
1222
+ inTransactionProcedureContext: (<T_1>(req: Request | null, coreFunction: (context: import("backend-plus").ProcedureContext) => Promise<T_1>) => Promise<T_1>) & (<T>(req: Request | null, coreFunction: (context: ProcedureContext) => Promise<T>) => Promise<T>);
1223
+ procedureDefCompleter: (<T_1>(procedureDef: import("backend-plus").ProcedureDef) => import("backend-plus").ProcedureDef<T_1>) & (<T>(procedureDef: ProcedureDef) => ProcedureDef<T>);
1062
1224
  tableDefAdapt: ((tableDef: import("backend-plus").TableDefinition, context: import("backend-plus").Context) => import("backend-plus").TableDefinition) & ((tableDef: procesamiento.TableDefinition, context: Context) => procesamiento.TableDefinition);
1063
1225
  pushApp: ((dirname: string) => void) & ((dirname: string) => void);
1064
- dumpDbSchemaPartial: ((partialTableStructures: import("backend-plus").TableDefinitions, opts?: import("backend-plus").DumpOptions | undefined) => Promise<{
1226
+ dumpDbTableFields: ((tableDefinition: import("backend-plus").TableDefinition) => string[]) & ((tableDefinition: procesamiento.TableDefinition) => string[]);
1227
+ dumpDbSchemaPartial: ((partialTableStructures: import("backend-plus").TableDefinitions, opts?: import("backend-plus").DumpOptions) => Promise<{
1065
1228
  mainSql: string;
1066
1229
  enancePart: string;
1067
1230
  }>) & ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions) => Promise<{
1068
1231
  mainSql: string;
1069
1232
  enancePart: string;
1070
1233
  }>);
1071
- configList: (() => (string | object)[]) & (() => (object | string)[]);
1234
+ configList: (() => (object | string)[]) & (() => (object | string)[]);
1072
1235
  setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void);
1073
- mainPage: ((req: {} | Request, offlineMode?: boolean | undefined, opts?: OptsClientPage | undefined) => {
1236
+ mainPage: ((req: Request | {}, offlineMode?: boolean, opts?: OptsClientPage) => {
1074
1237
  toHtmlDoc: () => string;
1075
1238
  }) & ((req: Request | {}, offlineMode?: boolean, opts?: OptsClientPage) => {
1076
1239
  toHtmlDoc: () => string;
1077
1240
  });
1078
- isThisProcedureAllowed: (<T_3>(context: import("backend-plus").Context, procedureDef: import("backend-plus").ProcedureDef, params: {
1079
- [key: string]: T_3;
1241
+ isThisProcedureAllowed: (<T_1>(context: import("backend-plus").Context, procedureDef: import("backend-plus").ProcedureDef, params: {
1242
+ [key: string]: T_1;
1080
1243
  }) => Promise<boolean>) & (<T>(context: Context, procedureDef: ProcedureDef, params: {
1081
1244
  [key: string]: T;
1082
1245
  }) => Promise<boolean>);
1083
- isAdmin(): boolean;
1084
- inTransactionProcedureContext<T>(req: Request | null, coreFunction: (context: ProcedureContext) => Promise<T>): Promise<T>;
1085
- shutdownCallbackListAdd(param: {
1246
+ shutdownCallbackListAdd: ((param: {
1086
1247
  message: string;
1087
1248
  fun: () => Promise<void>;
1088
- }): void;
1089
- shutdownBackend(): Promise<void>;
1090
- setLog(opts: {
1249
+ }) => void) & ((param: {
1250
+ message: string;
1251
+ fun: () => Promise<void>;
1252
+ }) => void);
1253
+ shutdownBackend: (() => Promise<void>) & ((opts?: {
1254
+ skipTurnOff?: boolean;
1255
+ onlyTurnOff?: boolean;
1256
+ }) => Promise<void>);
1257
+ setLog: ((opts: {
1091
1258
  until: string;
1092
1259
  results?: boolean;
1093
- }): void;
1094
- getDataDumpTransformations(rawData: string): Promise<{
1260
+ }) => void) & ((opts: {
1261
+ until: string;
1262
+ results?: boolean;
1263
+ }) => void);
1264
+ getDataDumpTransformations: ((rawData: string) => Promise<{
1095
1265
  rawData: string;
1096
1266
  prepareTransformationSql: string[];
1097
1267
  endTransformationSql: string[];
1098
- }>;
1268
+ }>) & ((rawData: string) => Promise<{
1269
+ rawData: string;
1270
+ prepareTransformationSql: string[];
1271
+ endTransformationSql: string[];
1272
+ }>);
1273
+ specialSqlDefaultExpressions: Record<string, string>;
1274
+ activeSkinFiles: Set<string>;
1099
1275
  };
1100
1276
  } & (new (...args: any[]) => {
1101
- getProcedures(): Promise<import("backend-plus").ProcedureDef[]>;
1277
+ getProcedures(): Promise<import("backend-plus").ProcedureDef<any>[]>;
1102
1278
  clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): import("backend-plus").ClientModuleDefinition[];
1103
1279
  configStaticConfig(): void;
1280
+ config: import("consistencias").ConsistenciasAppConfig & import("backend-plus").AppConfig;
1104
1281
  tablasDatos: import("consistencias").TablaDatos[];
1105
1282
  procedures: import("backend-plus").ProcedureDef[];
1106
1283
  procedure: {
1107
- [key: string]: import("backend-plus").ProcedureDef;
1284
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1108
1285
  } & {
1109
- [key: string]: import("backend-plus").ProcedureDef;
1286
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1110
1287
  } & {
1111
- [key: string]: import("backend-plus").ProcedureDef;
1288
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1112
1289
  } & {
1113
- [key: string]: import("backend-plus").ProcedureDef;
1290
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1114
1291
  } & {
1115
- [key: string]: import("backend-plus").ProcedureDef;
1292
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1116
1293
  } & {
1117
- [key: string]: import("backend-plus").ProcedureDef;
1294
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1118
1295
  } & {
1119
- [key: string]: import("backend-plus").ProcedureDef;
1296
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1120
1297
  } & {
1121
- [key: string]: import("backend-plus").ProcedureDef;
1298
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1122
1299
  };
1123
1300
  app: import("backend-plus").ExpressPlus;
1124
1301
  getTableDefinition: import("backend-plus").TableDefinitionsGetters;
1125
1302
  tableStructures: import("backend-plus").TableDefinitions;
1126
- db: typeof import("pg-promise-strict");
1127
- config: any;
1303
+ db: import("backend-plus").MotorDb;
1128
1304
  rootPath: string;
1129
- caches: {
1130
- procedures: {
1131
- [k: string]: {
1132
- timestamp: number;
1133
- result: any;
1134
- };
1135
- };
1136
- } & {
1137
- procedures: {
1138
- [k: string]: {
1139
- timestamp: number;
1140
- result: any;
1141
- };
1142
- };
1143
- } & {
1144
- procedures: {
1145
- [k: string]: {
1146
- timestamp: number;
1147
- result: any;
1148
- };
1149
- };
1150
- } & {
1151
- procedures: {
1152
- [k: string]: {
1153
- timestamp: number;
1154
- result: any;
1155
- };
1156
- };
1157
- } & {
1158
- procedures: {
1159
- [k: string]: {
1160
- timestamp: number;
1161
- result: any;
1162
- };
1163
- };
1164
- } & {
1165
- procedures: {
1166
- [k: string]: {
1167
- timestamp: number;
1168
- result: any;
1169
- };
1170
- };
1171
- } & {
1172
- procedures: {
1173
- [k: string]: {
1174
- timestamp: number;
1175
- result: any;
1176
- };
1177
- };
1178
- } & {
1179
- procedures: {
1180
- [k: string]: {
1181
- timestamp: number;
1182
- result: any;
1183
- };
1184
- };
1185
- };
1305
+ caches: import("backend-plus").Caches;
1186
1306
  fieldDomain: {
1187
1307
  [k: string]: Partial<import("backend-plus").FieldDefinition>;
1188
1308
  } & {
@@ -1201,18 +1321,23 @@ export declare var AppDmEncu: {
1201
1321
  [k: string]: Partial<import("backend-plus").FieldDefinition>;
1202
1322
  };
1203
1323
  exts: {
1204
- img?: string[] | undefined;
1324
+ img: string[];
1325
+ normal: string[];
1205
1326
  } & {
1206
- img?: string[] | undefined;
1327
+ img: string[];
1328
+ normal: string[];
1207
1329
  } & {
1208
- img?: string[] | undefined;
1330
+ img: string[];
1331
+ normal: string[];
1209
1332
  } & {
1210
1333
  img: string[];
1211
1334
  normal: string[];
1212
1335
  } & {
1213
- img?: string[] | undefined;
1336
+ img: string[];
1337
+ normal: string[];
1214
1338
  } & {
1215
- img?: string[] | undefined;
1339
+ img: string[];
1340
+ normal: string[];
1216
1341
  } & {
1217
1342
  img: string[];
1218
1343
  normal: string[];
@@ -1221,21 +1346,21 @@ export declare var AppDmEncu: {
1221
1346
  normal: string[];
1222
1347
  };
1223
1348
  optsGenericForAll: {
1224
- allowedExts?: string[] | undefined;
1349
+ allowedExts?: string[];
1225
1350
  } & {
1226
- allowedExts?: string[] | undefined;
1351
+ allowedExts?: string[];
1227
1352
  } & {
1228
- allowedExts?: string[] | undefined;
1353
+ allowedExts?: string[];
1229
1354
  } & {
1230
- allowedExts?: string[] | undefined;
1355
+ allowedExts?: string[];
1231
1356
  } & {
1232
- allowedExts?: string[] | undefined;
1357
+ allowedExts?: string[];
1233
1358
  } & {
1234
- allowedExts?: string[] | undefined;
1359
+ allowedExts?: string[];
1235
1360
  } & {
1236
- allowedExts?: string[] | undefined;
1361
+ allowedExts?: string[];
1237
1362
  } & {
1238
- allowedExts?: string[] | undefined;
1363
+ allowedExts?: string[];
1239
1364
  };
1240
1365
  sqls: {
1241
1366
  [k: string]: string;
@@ -1294,48 +1419,45 @@ export declare var AppDmEncu: {
1294
1419
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
1295
1420
  } & {
1296
1421
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
1422
+ } & {
1423
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1424
+ } & {
1425
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1426
+ } & {
1427
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1428
+ } & {
1429
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1430
+ } & {
1431
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1432
+ } & {
1433
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1297
1434
  };
1298
- dumpDbTableFields(tableDefinition: import("backend-plus").TableDefinition): string[];
1299
- }) & procesamiento.Constructor<{
1300
- getProcedures(): Promise<import("backend-plus").ProcedureDef[]>;
1435
+ }) & (new (...args: any[]) => {
1436
+ config: procesamiento.ConsistenciasAppConfig;
1437
+ getProcedures(): Promise<import("backend-plus").ProcedureDef<any>[]>;
1301
1438
  clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): import("backend-plus").ClientModuleDefinition[];
1302
1439
  configStaticConfig(): void;
1303
1440
  getMenu(): procesamiento.MenuDefinition;
1304
1441
  postConfig(): Promise<void>;
1305
1442
  prepareGetTables(): void;
1306
- generateAndLoadTableDefs(): import("backend-plus" /** @type {{type:'js', src:string}[]} */).TableDefinitions;
1443
+ generateAndLoadTableDefs(): import("backend-plus").TableDefinitions;
1307
1444
  tablasDatos: import("varcal").TablaDatos[];
1308
1445
  procedures: import("backend-plus").ProcedureDef[];
1309
1446
  procedure: {
1310
- [key: string]: import("backend-plus").ProcedureDef;
1447
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1311
1448
  } & {
1312
- [key: string]: import("backend-plus").ProcedureDef;
1449
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1313
1450
  } & {
1314
- [key: string]: import("backend-plus").ProcedureDef;
1451
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1315
1452
  } & {
1316
- [key: string]: import("backend-plus").ProcedureDef;
1453
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1317
1454
  };
1318
1455
  app: import("backend-plus").ExpressPlus;
1319
1456
  getTableDefinition: import("backend-plus").TableDefinitionsGetters;
1320
1457
  tableStructures: import("backend-plus").TableDefinitions;
1321
- db: typeof import("pg-promise-strict");
1322
- config: any;
1458
+ db: import("backend-plus").MotorDb;
1323
1459
  rootPath: string;
1324
- caches: {
1325
- procedures: {
1326
- [k: string]: {
1327
- timestamp: number;
1328
- result: any;
1329
- };
1330
- };
1331
- } & import("backend-plus").Caches & {
1332
- procedures: {
1333
- [k: string]: {
1334
- timestamp: number;
1335
- result: any;
1336
- };
1337
- };
1338
- };
1460
+ caches: import("backend-plus").Caches;
1339
1461
  fieldDomain: {
1340
1462
  [k: string]: Partial<import("backend-plus").FieldDefinition>;
1341
1463
  } & {
@@ -1359,13 +1481,13 @@ export declare var AppDmEncu: {
1359
1481
  normal: string[];
1360
1482
  };
1361
1483
  optsGenericForAll: {
1362
- allowedExts?: string[] | undefined;
1484
+ allowedExts?: string[];
1363
1485
  } & {
1364
- allowedExts?: string[] | undefined;
1486
+ allowedExts?: string[];
1365
1487
  } & {
1366
- allowedExts?: string[] | undefined;
1488
+ allowedExts?: string[];
1367
1489
  } & {
1368
- allowedExts?: string[] | undefined;
1490
+ allowedExts?: string[];
1369
1491
  };
1370
1492
  sqls: {
1371
1493
  [k: string]: string;
@@ -1400,39 +1522,36 @@ export declare var AppDmEncu: {
1400
1522
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
1401
1523
  } & {
1402
1524
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
1525
+ } & {
1526
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1527
+ } & {
1528
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1403
1529
  };
1404
- } & {
1530
+ }) & (new (...args: any[]) => {
1405
1531
  configStaticConfig(): void;
1406
- getProcedures(): Promise<import("backend-plus").ProcedureDef[]>;
1532
+ getProcedures(): Promise<import("backend-plus").ProcedureDef<any>[]>;
1407
1533
  clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): import("backend-plus").ClientModuleDefinition[];
1408
- generateAndLoadTableDefs(): import("backend-plus").TableDefinitions;
1409
- generateBaseTableDef(tablaDatos: import("varcal").TablaDatos): import("backend-plus").TableDefinition;
1534
+ generateAndLoadTableDefs(): procesamiento.TableDefinitions;
1535
+ generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinition;
1410
1536
  prepareGetTables(): void;
1411
- tablasDatos: import("varcal").TablaDatos[];
1537
+ tablasDatos: procesamiento.TablaDatos[];
1412
1538
  cargarGenerados(client: import("pg-promise-strict").Client): Promise<string>;
1413
- getTableDefFunction(tableDef: import("backend-plus").TableDefinition): import("backend-plus").TableDefinitionFunction;
1414
- loadTableDef(tableDef: import("backend-plus").TableDefinition): import("backend-plus").TableDefinitionFunction;
1415
- generateAndLoadTableDef(tablaDatos: import("varcal").TablaDatos): import("backend-plus").TableDefinitionFunction;
1539
+ getTableDefFunction(tableDef: procesamiento.TableDefinition): import("backend-plus").TableDefinitionFunction;
1540
+ loadTableDef(tableDef: procesamiento.TableDefinition): import("backend-plus").TableDefinitionFunction;
1541
+ generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): import("backend-plus").TableDefinitionFunction;
1416
1542
  procedures: import("backend-plus").ProcedureDef[];
1417
1543
  procedure: {
1418
- [key: string]: import("backend-plus").ProcedureDef;
1544
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1419
1545
  } & {
1420
- [key: string]: import("backend-plus").ProcedureDef;
1546
+ [key: string]: import("backend-plus").ProcedureDef<any>;
1421
1547
  };
1422
1548
  app: import("backend-plus").ExpressPlus;
1423
1549
  getTableDefinition: import("backend-plus").TableDefinitionsGetters;
1424
1550
  tableStructures: import("backend-plus").TableDefinitions;
1425
- db: typeof import("pg-promise-strict");
1426
- config: any;
1551
+ db: import("backend-plus").MotorDb;
1552
+ config: import("backend-plus").AppConfig;
1427
1553
  rootPath: string;
1428
- caches: {
1429
- procedures: {
1430
- [k: string]: {
1431
- timestamp: number;
1432
- result: any;
1433
- };
1434
- };
1435
- } & import("backend-plus").Caches;
1554
+ caches: import("backend-plus").Caches;
1436
1555
  fieldDomain: {
1437
1556
  [k: string]: Partial<import("backend-plus").FieldDefinition>;
1438
1557
  } & {
@@ -1446,9 +1565,9 @@ export declare var AppDmEncu: {
1446
1565
  normal: string[];
1447
1566
  };
1448
1567
  optsGenericForAll: {
1449
- allowedExts?: string[] | undefined;
1568
+ allowedExts?: string[];
1450
1569
  } & {
1451
- allowedExts?: string[] | undefined;
1570
+ allowedExts?: string[];
1452
1571
  };
1453
1572
  sqls: {
1454
1573
  [k: string]: string;
@@ -1467,32 +1586,27 @@ export declare var AppDmEncu: {
1467
1586
  } & {
1468
1587
  [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
1469
1588
  };
1470
- isAdmin(): boolean;
1471
- canChangePass(): Promise<boolean>;
1472
- inTransactionProcedureContext<T_5>(req: Request | null, coreFunction: (context: import("backend-plus").ProcedureContext) => Promise<T_5>): Promise<T_5>;
1473
- dumpDbTableFields(tableDefinition: import("backend-plus").TableDefinition): string[];
1474
1589
  i18n: {
1475
1590
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
1591
+ } & {
1592
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1476
1593
  };
1477
- } & {
1478
- tablasDatos: import("varcal").TablaDatos[];
1594
+ }) & (new (...args: any[]) => {
1479
1595
  configStaticConfig(): void;
1596
+ generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): import("backend-plus").TableDefinition;
1597
+ getProcedures(): Promise<import("backend-plus").ProcedureDef[]>;
1598
+ clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): import("backend-plus").ClientModuleDefinition[];
1599
+ prepareGetTables(): void;
1600
+ tablasDatos: procesamiento.TablaDatos[];
1480
1601
  cargarGenerados(client: import("pg-promise-strict").Client): Promise<string>;
1481
- postConfig(): Promise<void>;
1482
- generateBaseTableDef(tablaDatos: import("varcal").TablaDatos): import("backend-plus").TableDefinition;
1483
1602
  getTableDefFunction(tableDef: import("backend-plus").TableDefinition): import("backend-plus").TableDefinitionFunction;
1484
1603
  loadTableDef(tableDef: import("backend-plus").TableDefinition): import("backend-plus").TableDefinitionFunction;
1485
- generateAndLoadTableDef(tablaDatos: import("varcal").TablaDatos): import("backend-plus").TableDefinitionFunction;
1486
- clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): import("backend-plus").ClientModuleDefinition[];
1487
- getMenu(): procesamiento.MenuDefinition;
1488
- prepareGetTables(): void;
1489
- checkDatabaseStructure(client: import("pg-promise-strict").Client): Promise<void>;
1490
- getDbFunctions(opts: import("backend-plus").DumpOptions): Promise<{
1491
- dumpText: string;
1492
- }[]>;
1604
+ generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): import("backend-plus").TableDefinitionFunction;
1493
1605
  procedures: import("backend-plus").ProcedureDef[];
1494
1606
  procedure: {
1495
1607
  [key: string]: import("backend-plus").ProcedureDef;
1608
+ } & {
1609
+ [key: string]: import("backend-plus").ProcedureDef;
1496
1610
  };
1497
1611
  app: import("backend-plus").ExpressPlus;
1498
1612
  getTableDefinition: import("backend-plus").TableDefinitionsGetters;
@@ -1507,55 +1621,288 @@ export declare var AppDmEncu: {
1507
1621
  result: any;
1508
1622
  };
1509
1623
  };
1624
+ } & {
1625
+ procedures: {
1626
+ [k: string]: {
1627
+ timestamp: number;
1628
+ result: any;
1629
+ };
1630
+ };
1510
1631
  };
1511
1632
  fieldDomain: {
1512
- [k: string]: Partial<import("backend-plus").FieldDefinition>;
1633
+ [k: string]: Partial<import("backend-plus").EditableDbDefinition & {
1634
+ name: string;
1635
+ typeName: import("backend-plus").PgKnownTypes;
1636
+ label?: string | undefined;
1637
+ title?: string | undefined;
1638
+ nullable?: boolean | undefined;
1639
+ dbNullable?: boolean | undefined;
1640
+ defaultValue?: any;
1641
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
1642
+ clientSide?: string | undefined;
1643
+ isName?: boolean | undefined;
1644
+ isPk?: number | undefined;
1645
+ serverSide?: boolean | undefined;
1646
+ inTable?: boolean | undefined;
1647
+ allowEmtpyText?: boolean | undefined;
1648
+ mobileInputType?: string | undefined;
1649
+ extraRow?: number | undefined;
1650
+ inexactNumber?: number | undefined;
1651
+ visible?: boolean | undefined;
1652
+ width?: number | undefined;
1653
+ references?: string | undefined;
1654
+ referencesField?: string | undefined;
1655
+ aggregate?: string | undefined;
1656
+ specialDefaultValue?: string | undefined;
1657
+ specialValueWhenInsert?: string | undefined;
1658
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
1659
+ description?: string | undefined;
1660
+ dataLength?: number | undefined;
1661
+ options?: (string | {
1662
+ option: string | number;
1663
+ label: string;
1664
+ })[] | undefined;
1665
+ inView?: boolean | undefined;
1666
+ sortMethod?: string | undefined;
1667
+ generatedAs?: string | undefined;
1668
+ }> | Partial<import("backend-plus").EditableDbDefinition & {
1669
+ name: string;
1670
+ typeName: import("backend-plus").PgKnownTypes;
1671
+ label?: string | undefined;
1672
+ title?: string | undefined;
1673
+ nullable?: boolean | undefined;
1674
+ dbNullable?: boolean | undefined;
1675
+ defaultValue?: any;
1676
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
1677
+ clientSide?: string | undefined;
1678
+ isName?: boolean | undefined;
1679
+ isPk?: number | undefined;
1680
+ serverSide?: boolean | undefined;
1681
+ inTable?: boolean | undefined;
1682
+ allowEmtpyText?: boolean | undefined;
1683
+ mobileInputType?: string | undefined;
1684
+ extraRow?: number | undefined;
1685
+ inexactNumber?: number | undefined;
1686
+ visible?: boolean | undefined;
1687
+ width?: number | undefined;
1688
+ references?: string | undefined;
1689
+ referencesField?: string | undefined;
1690
+ aggregate?: string | undefined;
1691
+ specialDefaultValue?: string | undefined;
1692
+ specialValueWhenInsert?: string | undefined;
1693
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
1694
+ description?: string | undefined;
1695
+ dataLength?: number | undefined;
1696
+ options?: (string | {
1697
+ option: string | number;
1698
+ label: string;
1699
+ })[] | undefined;
1700
+ inView?: boolean | undefined;
1701
+ sortMethod?: string | undefined;
1702
+ generatedAs?: string | undefined;
1703
+ } & {
1704
+ sequence: import("backend-plus").SequenceDefinition;
1705
+ nullable: true;
1706
+ editable: false;
1707
+ }>;
1708
+ } & {
1709
+ [k: string]: Partial<import("backend-plus").EditableDbDefinition & {
1710
+ name: string;
1711
+ typeName: import("backend-plus").PgKnownTypes;
1712
+ label?: string | undefined;
1713
+ title?: string | undefined;
1714
+ nullable?: boolean | undefined;
1715
+ dbNullable?: boolean | undefined;
1716
+ defaultValue?: any;
1717
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
1718
+ clientSide?: string | undefined;
1719
+ isName?: boolean | undefined;
1720
+ isPk?: number | undefined;
1721
+ serverSide?: boolean | undefined;
1722
+ inTable?: boolean | undefined;
1723
+ allowEmtpyText?: boolean | undefined;
1724
+ mobileInputType?: string | undefined;
1725
+ extraRow?: number | undefined;
1726
+ inexactNumber?: number | undefined;
1727
+ visible?: boolean | undefined;
1728
+ width?: number | undefined;
1729
+ references?: string | undefined;
1730
+ referencesField?: string | undefined;
1731
+ aggregate?: string | undefined;
1732
+ specialDefaultValue?: string | undefined;
1733
+ specialValueWhenInsert?: string | undefined;
1734
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
1735
+ description?: string | undefined;
1736
+ dataLength?: number | undefined;
1737
+ options?: (string | {
1738
+ option: string | number;
1739
+ label: string;
1740
+ })[] | undefined;
1741
+ inView?: boolean | undefined;
1742
+ sortMethod?: string | undefined;
1743
+ generatedAs?: string | undefined;
1744
+ }> | Partial<import("backend-plus").EditableDbDefinition & {
1745
+ name: string;
1746
+ typeName: import("backend-plus").PgKnownTypes;
1747
+ label?: string | undefined;
1748
+ title?: string | undefined;
1749
+ nullable?: boolean | undefined;
1750
+ dbNullable?: boolean | undefined;
1751
+ defaultValue?: any;
1752
+ defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
1753
+ clientSide?: string | undefined;
1754
+ isName?: boolean | undefined;
1755
+ isPk?: number | undefined;
1756
+ serverSide?: boolean | undefined;
1757
+ inTable?: boolean | undefined;
1758
+ allowEmtpyText?: boolean | undefined;
1759
+ mobileInputType?: string | undefined;
1760
+ extraRow?: number | undefined;
1761
+ inexactNumber?: number | undefined;
1762
+ visible?: boolean | undefined;
1763
+ width?: number | undefined;
1764
+ references?: string | undefined;
1765
+ referencesField?: string | undefined;
1766
+ aggregate?: string | undefined;
1767
+ specialDefaultValue?: string | undefined;
1768
+ specialValueWhenInsert?: string | undefined;
1769
+ exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
1770
+ description?: string | undefined;
1771
+ dataLength?: number | undefined;
1772
+ options?: (string | {
1773
+ option: string | number;
1774
+ label: string;
1775
+ })[] | undefined;
1776
+ inView?: boolean | undefined;
1777
+ sortMethod?: string | undefined;
1778
+ generatedAs?: string | undefined;
1779
+ } & {
1780
+ sequence: import("backend-plus").SequenceDefinition;
1781
+ nullable: true;
1782
+ editable: false;
1783
+ }>;
1513
1784
  };
1514
1785
  exts: {
1515
- img: string[];
1516
- normal: string[];
1786
+ img?: string[] | undefined;
1787
+ } & {
1788
+ img?: string[] | undefined;
1517
1789
  };
1518
1790
  optsGenericForAll: {
1519
1791
  allowedExts?: string[] | undefined;
1792
+ } & {
1793
+ allowedExts?: string[] | undefined;
1520
1794
  };
1521
1795
  sqls: {
1522
1796
  [k: string]: string;
1797
+ } & {
1798
+ [k: string]: string;
1523
1799
  };
1524
1800
  messages: {
1525
1801
  [k: string]: string;
1802
+ } & {
1803
+ [k: string]: string;
1526
1804
  };
1527
1805
  dbUserNameExpr: string;
1528
1806
  dbUserRolExpr: string;
1529
- specialValueWhenInsert: {
1530
- [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
1531
- };
1532
- clearCaches(): void;
1533
- start(opts?: import("backend-plus").StartOptions | undefined): Promise<void>;
1534
- getTables(): import("backend-plus").TableItemDef[];
1535
- appendToTableDefinition(tableName: string, appenderFunction: (tableDef: import("backend-plus").TableDefinition, context?: import("backend-plus").TableContext | undefined) => void): void;
1536
- getContext(req: Request): import("backend-plus").Context;
1537
- addSchrödingerServices(mainApp: import("backend-plus").ExpressPlus, baseUrl: string): void;
1538
- addUnloggedServices(mainApp: import("backend-plus").ExpressPlus, baseUrl: string): void;
1539
- addLoggedServices(): void;
1540
- getProcedures(): Promise<import("backend-plus").ProcedureDef[]>;
1541
- inDbClient<T_1>(req: Request | null, doThisWithDbClient: (client: import("pg-promise-strict").Client) => Promise<T_1>): Promise<T_1>;
1542
- inTransaction<T_2>(req: Request | null, doThisWithDbTransaction: (client: import("pg-promise-strict").Client) => Promise<T_2>): Promise<T_2>;
1543
- procedureDefCompleter(procedureDef: import("backend-plus").ProcedureDef): import("backend-plus").ProcedureDef;
1544
- tableDefAdapt(tableDef: import("backend-plus").TableDefinition, context: import("backend-plus").Context): import("backend-plus").TableDefinition;
1545
- pushApp(dirname: string): void;
1546
- dumpDbSchemaPartial(partialTableStructures: import("backend-plus").TableDefinitions, opts?: import("backend-plus").DumpOptions | undefined): Promise<{
1547
- mainSql: string;
1548
- enancePart: string;
1549
- }>;
1550
- getContextForDump(): import("backend-plus").ContextForDump;
1551
- getClientSetupForSendToFrontEnd(req: Request): import("backend-plus").ClientSetup;
1552
- configList(): (string | object)[];
1553
- setStaticConfig(defConfigYamlString: string): void;
1554
- mainPage(req: {} | Request, offlineMode?: boolean | undefined, opts?: OptsClientPage | undefined): {
1555
- toHtmlDoc: () => string;
1807
+ }) & {
1808
+ new (...args: any[]): {
1809
+ tablasDatos: procesamiento.TablaDatos[];
1810
+ configStaticConfig(): void;
1811
+ cargarGenerados(client: Client): Promise<string>;
1812
+ postConfig(): Promise<void>;
1813
+ generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinition;
1814
+ getTableDefFunction(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1815
+ loadTableDef(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1816
+ generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinitionFunction;
1817
+ clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): import("backend-plus").ClientModuleDefinition[];
1818
+ getMenu(): procesamiento.MenuDefinition;
1819
+ prepareGetTables(): void;
1820
+ checkDatabaseStructure(client: Client): Promise<void>;
1821
+ getDbFunctions(opts: procesamiento.DumpOptions): Promise<{
1822
+ dumpText: string;
1823
+ }[]>;
1824
+ procedures: import("backend-plus").ProcedureDef[];
1825
+ procedure: {
1826
+ [key: string]: import("backend-plus").ProcedureDef;
1827
+ };
1828
+ app: import("backend-plus").ExpressPlus;
1829
+ getTableDefinition: import("backend-plus").TableDefinitionsGetters;
1830
+ tableStructures: import("backend-plus").TableDefinitions;
1831
+ db: import("backend-plus").MotorDb;
1832
+ config: import("backend-plus").AppConfig;
1833
+ rootPath: string;
1834
+ caches: import("backend-plus").Caches;
1835
+ fieldDomain: {
1836
+ [k: string]: Partial<import("backend-plus").FieldDefinition>;
1837
+ };
1838
+ exts: {
1839
+ img: string[];
1840
+ normal: string[];
1841
+ };
1842
+ optsGenericForAll: {
1843
+ allowedExts?: string[];
1844
+ };
1845
+ sqls: {
1846
+ [k: string]: string;
1847
+ };
1848
+ messages: {
1849
+ [k: string]: string;
1850
+ };
1851
+ dbUserNameExpr: string;
1852
+ dbUserRolExpr: string;
1853
+ specialValueWhenInsert: {
1854
+ [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
1855
+ };
1856
+ clearCaches(): void;
1857
+ start(opts?: import("backend-plus").StartOptions): Promise<void>;
1858
+ getTables(): import("backend-plus").TableItemDef[];
1859
+ appendToTableDefinition(tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: import("backend-plus").TableContext) => void): void;
1860
+ getContext(req: Request): Context;
1861
+ addSchrödingerServices(mainApp: import("backend-plus").ExpressPlus, baseUrl: string): void;
1862
+ addUnloggedServices(mainApp: import("backend-plus").ExpressPlus, baseUrl: string): void;
1863
+ addLoggedServices(): void;
1864
+ getProcedures(): Promise<import("backend-plus").ProcedureDef[]>;
1865
+ isAdmin(reqOrContext: Request | Context): boolean;
1866
+ canChangePass(): Promise<boolean>;
1867
+ inDbClient<T_1>(req: import("backend-plus").RequestDb | null, doThisWithDbClient: (client: Client) => Promise<T_1>): Promise<T_1>;
1868
+ inTransaction<T_1>(req: import("backend-plus").RequestDb | null, doThisWithDbTransaction: (client: Client) => Promise<T_1>): Promise<T_1>;
1869
+ inTransactionProcedureContext<T_1>(req: Request | null, coreFunction: (context: import("backend-plus").ProcedureContext) => Promise<T_1>): Promise<T_1>;
1870
+ procedureDefCompleter<T_1>(procedureDef: import("backend-plus").ProcedureDef): import("backend-plus").ProcedureDef<T_1>;
1871
+ tableDefAdapt(tableDef: procesamiento.TableDefinition, context: Context): procesamiento.TableDefinition;
1872
+ pushApp(dirname: string): void;
1873
+ dumpDbTableFields(tableDefinition: procesamiento.TableDefinition): string[];
1874
+ dumpDbSchemaPartial(partialTableStructures: import("backend-plus").TableDefinitions, opts?: procesamiento.DumpOptions): Promise<{
1875
+ mainSql: string;
1876
+ enancePart: string;
1877
+ }>;
1878
+ getContextForDump(): import("backend-plus").ContextForDump;
1879
+ getClientSetupForSendToFrontEnd(req: Request): Promise<import("backend-plus").ClientSetup>;
1880
+ configList(): (object | string)[];
1881
+ setStaticConfig(defConfigYamlString: string): void;
1882
+ mainPage(req: Request | {}, offlineMode?: boolean, opts?: OptsClientPage): {
1883
+ toHtmlDoc: () => string;
1884
+ };
1885
+ isThisProcedureAllowed<T_1>(context: Context, procedureDef: import("backend-plus").ProcedureDef, params: {
1886
+ [key: string]: T_1;
1887
+ }): Promise<boolean>;
1888
+ i18n: {
1889
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
1890
+ };
1891
+ shutdownCallbackListAdd(param: {
1892
+ message: string;
1893
+ fun: () => Promise<void>;
1894
+ }): void;
1895
+ shutdownBackend(): Promise<void>;
1896
+ setLog(opts: {
1897
+ until: string;
1898
+ results?: boolean;
1899
+ }): void;
1900
+ getDataDumpTransformations(rawData: string): Promise<{
1901
+ rawData: string;
1902
+ prepareTransformationSql: string[];
1903
+ endTransformationSql: string[];
1904
+ }>;
1556
1905
  };
1557
- isThisProcedureAllowed<T_3_1>(context: import("backend-plus").Context, procedureDef: import("backend-plus").ProcedureDef, params: {
1558
- [key: string]: T_3_1;
1559
- }): Promise<boolean>;
1560
- } & procesamiento.AppBackend>;
1906
+ prefixTableName(tableName: string, prefix: string): string;
1907
+ } & typeof procesamiento.AppBackend;
1561
1908
  export type AppAppDmEncuType = InstanceType<typeof AppDmEncu>;