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