dmencu 2.0.17 → 2.0.19

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