meta-enc 1.4.8 → 1.4.10

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,8 +1,7 @@
1
- /// <reference types="backend-plus" />
2
1
  import * as relEnc from "rel-enc";
3
2
  export * from "./types-meta-enc";
4
3
  import { MenuDefinition, Request, OptsClientPage } from "./types-meta-enc";
5
- export declare type Constructor<T> = new (...args: any[]) => T;
4
+ export type Constructor<T> = new (...args: any[]) => T;
6
5
  export declare function emergeAppMetaEnc<T extends Constructor<relEnc.AppRelEncType>>(Base: T): {
7
6
  new (...args: any[]): {
8
7
  metaEncIncluirCasillerosSaltoREL: boolean;
@@ -13,12 +12,12 @@ export declare function emergeAppMetaEnc<T extends Constructor<relEnc.AppRelEncT
13
12
  prepareGetTables(): void;
14
13
  clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): relEnc.ClientModuleDefinition[];
15
14
  /* mixin-patch: addLoggedServices: (() => void) & (() => void) & (() => void); */
16
- tablasDatos: relEnc.TablaDatos[];
15
+ tablasDatos: any[];
17
16
  /* mixin-patch: cargarGenerados: ((client: relEnc.Client) => Promise<string>) & ((client: relEnc.Client) => Promise<string>); */
18
- /* mixin-patch: generateBaseTableDef: ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinition) & ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinition); */
17
+ /* mixin-patch: generateBaseTableDef: ((tablaDatos: any) => relEnc.TableDefinition) & ((tablaDatos: any) => relEnc.TableDefinition); */
19
18
  /* mixin-patch: getTableDefFunction: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
20
19
  /* mixin-patch: loadTableDef: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
21
- /* mixin-patch: generateAndLoadTableDef: ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinitionFunction) & ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinitionFunction); */
20
+ /* mixin-patch: generateAndLoadTableDef: ((tablaDatos: any) => relEnc.TableDefinitionFunction) & ((tablaDatos: any) => relEnc.TableDefinitionFunction); */
22
21
  procedures: relEnc.ProcedureDef[];
23
22
  procedure: {
24
23
  [key: string]: relEnc.ProcedureDef;
@@ -35,6 +34,28 @@ export declare function emergeAppMetaEnc<T extends Constructor<relEnc.AppRelEncT
35
34
  db: typeof import("pg-promise-strict");
36
35
  config: any;
37
36
  rootPath: string;
37
+ /* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: {
38
+ complete?: boolean | undefined;
39
+ skipEnance?: boolean | undefined;
40
+ } | undefined) => Promise<{
41
+ mainSql: string;
42
+ enancePart: string;
43
+ }>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: {
44
+ complete?: boolean | undefined;
45
+ skipEnance?: boolean | undefined;
46
+ } | undefined) => Promise<{
47
+ mainSql: string;
48
+ enancePart: string;
49
+ }>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: {
50
+ complete?: boolean | undefined;
51
+ skipEnance?: boolean | undefined;
52
+ } | undefined) => Promise<{
53
+ mainSql: string;
54
+ enancePart: string;
55
+ }>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
56
+ mainSql: string;
57
+ enancePart: string;
58
+ }>); */
38
59
  caches: {
39
60
  procedures: {
40
61
  [k: string]: {
@@ -42,336 +63,61 @@ export declare function emergeAppMetaEnc<T extends Constructor<relEnc.AppRelEncT
42
63
  result: any;
43
64
  };
44
65
  };
45
- } & {
46
- procedures: {
47
- [k: string]: {
48
- timestamp: number;
49
- result: any;
50
- };
51
- };
52
- } & {
53
- procedures: {
54
- [k: string]: {
55
- timestamp: number;
56
- result: any;
57
- };
58
- };
59
- } & {
60
- procedures: {
61
- [k: string]: {
62
- timestamp: number;
63
- result: any;
64
- };
65
- };
66
- };
66
+ } & relEnc.Caches;
67
+ /* mixin-patch: clearCaches: (() => void) & (() => void); */
68
+ /* mixin-patch: postConfig: (() => Promise<void>) & ((...params: any[]) => Promise<void>); */
69
+ /* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
70
+ /* mixin-patch: appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void); */
71
+ /* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
72
+ /* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
73
+ /* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
74
+ /* mixin-patch: inDbClient: (<T_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>) & (<T_2>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_2>) => Promise<T_2>); */
75
+ /* mixin-patch: inTransaction: (<T_1_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T_3>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_3>) => Promise<T_3>); */
76
+ /* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
77
+ /* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
78
+ /* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
79
+ /* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
80
+ /* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => relEnc.ClientSetup) & ((req: relEnc.Request) => Promise<relEnc.ClientSetup>); */
81
+ /* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
82
+ /* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
67
83
  fieldDomain: {
68
- [k: string]: Partial<relEnc.EditableDbDefinition & {
69
- name: string;
70
- typeName: relEnc.PgKnownTypes;
71
- label?: string | undefined;
72
- title?: string | undefined;
73
- nullable?: boolean | undefined;
74
- dbNullable?: boolean | undefined;
75
- defaultValue?: any;
76
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
77
- clientSide?: string | undefined;
78
- isName?: boolean | undefined;
79
- isPk?: number | undefined;
80
- serverSide?: boolean | undefined;
81
- inTable?: boolean | undefined;
82
- allowEmtpyText?: boolean | undefined;
83
- mobileInputType?: string | undefined;
84
- extraRow?: number | undefined;
85
- inexactNumber?: number | undefined;
86
- visible?: boolean | undefined;
87
- width?: number | undefined;
88
- references?: string | undefined;
89
- referencesField?: string | undefined;
90
- aggregate?: string | undefined;
91
- specialDefaultValue?: string | undefined;
92
- specialValueWhenInsert?: string | undefined;
93
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
94
- description?: string | undefined;
95
- dataLength?: number | undefined;
96
- options?: (string | {
97
- option: string | number;
98
- label: string;
99
- })[] | undefined;
100
- inView?: boolean | undefined;
101
- sortMethod?: string | undefined;
102
- generatedAs?: string | undefined;
103
- }> | Partial<relEnc.EditableDbDefinition & {
104
- name: string;
105
- typeName: relEnc.PgKnownTypes;
106
- label?: string | undefined;
107
- title?: string | undefined;
108
- nullable?: boolean | undefined;
109
- dbNullable?: boolean | undefined;
110
- defaultValue?: any;
111
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
112
- clientSide?: string | undefined;
113
- isName?: boolean | undefined;
114
- isPk?: number | undefined;
115
- serverSide?: boolean | undefined;
116
- inTable?: boolean | undefined;
117
- allowEmtpyText?: boolean | undefined;
118
- mobileInputType?: string | undefined;
119
- extraRow?: number | undefined;
120
- inexactNumber?: number | undefined;
121
- visible?: boolean | undefined;
122
- width?: number | undefined;
123
- references?: string | undefined;
124
- referencesField?: string | undefined;
125
- aggregate?: string | undefined;
126
- specialDefaultValue?: string | undefined;
127
- specialValueWhenInsert?: string | undefined;
128
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
129
- description?: string | undefined;
130
- dataLength?: number | undefined;
131
- options?: (string | {
132
- option: string | number;
133
- label: string;
134
- })[] | undefined;
135
- inView?: boolean | undefined;
136
- sortMethod?: string | undefined;
137
- generatedAs?: string | undefined;
138
- } & {
139
- sequence: relEnc.SequenceDefinition;
140
- nullable: true;
141
- editable: false;
142
- }>;
143
- } & {
144
- [k: string]: Partial<relEnc.EditableDbDefinition & {
145
- name: string;
146
- typeName: relEnc.PgKnownTypes;
147
- label?: string | undefined;
148
- title?: string | undefined;
149
- nullable?: boolean | undefined;
150
- dbNullable?: boolean | undefined;
151
- defaultValue?: any;
152
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
153
- clientSide?: string | undefined;
154
- isName?: boolean | undefined;
155
- isPk?: number | undefined;
156
- serverSide?: boolean | undefined;
157
- inTable?: boolean | undefined;
158
- allowEmtpyText?: boolean | undefined;
159
- mobileInputType?: string | undefined;
160
- extraRow?: number | undefined;
161
- inexactNumber?: number | undefined;
162
- visible?: boolean | undefined;
163
- width?: number | undefined;
164
- references?: string | undefined;
165
- referencesField?: string | undefined;
166
- aggregate?: string | undefined;
167
- specialDefaultValue?: string | undefined;
168
- specialValueWhenInsert?: string | undefined;
169
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
170
- description?: string | undefined;
171
- dataLength?: number | undefined;
172
- options?: (string | {
173
- option: string | number;
174
- label: string;
175
- })[] | undefined;
176
- inView?: boolean | undefined;
177
- sortMethod?: string | undefined;
178
- generatedAs?: string | undefined;
179
- }> | Partial<relEnc.EditableDbDefinition & {
180
- name: string;
181
- typeName: relEnc.PgKnownTypes;
182
- label?: string | undefined;
183
- title?: string | undefined;
184
- nullable?: boolean | undefined;
185
- dbNullable?: boolean | undefined;
186
- defaultValue?: any;
187
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
188
- clientSide?: string | undefined;
189
- isName?: boolean | undefined;
190
- isPk?: number | undefined;
191
- serverSide?: boolean | undefined;
192
- inTable?: boolean | undefined;
193
- allowEmtpyText?: boolean | undefined;
194
- mobileInputType?: string | undefined;
195
- extraRow?: number | undefined;
196
- inexactNumber?: number | undefined;
197
- visible?: boolean | undefined;
198
- width?: number | undefined;
199
- references?: string | undefined;
200
- referencesField?: string | undefined;
201
- aggregate?: string | undefined;
202
- specialDefaultValue?: string | undefined;
203
- specialValueWhenInsert?: string | undefined;
204
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
205
- description?: string | undefined;
206
- dataLength?: number | undefined;
207
- options?: (string | {
208
- option: string | number;
209
- label: string;
210
- })[] | undefined;
211
- inView?: boolean | undefined;
212
- sortMethod?: string | undefined;
213
- generatedAs?: string | undefined;
214
- } & {
215
- sequence: relEnc.SequenceDefinition;
216
- nullable: true;
217
- editable: false;
218
- }>;
219
- } & {
220
- [k: string]: Partial<relEnc.EditableDbDefinition & {
221
- name: string;
222
- typeName: relEnc.PgKnownTypes;
223
- label?: string | undefined;
224
- title?: string | undefined;
225
- nullable?: boolean | undefined;
226
- dbNullable?: boolean | undefined;
227
- defaultValue?: any;
228
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
229
- clientSide?: string | undefined;
230
- isName?: boolean | undefined;
231
- isPk?: number | undefined;
232
- serverSide?: boolean | undefined;
233
- inTable?: boolean | undefined;
234
- allowEmtpyText?: boolean | undefined;
235
- mobileInputType?: string | undefined;
236
- extraRow?: number | undefined;
237
- inexactNumber?: number | undefined;
238
- visible?: boolean | undefined;
239
- width?: number | undefined;
240
- references?: string | undefined;
241
- referencesField?: string | undefined;
242
- aggregate?: string | undefined;
243
- specialDefaultValue?: string | undefined;
244
- specialValueWhenInsert?: string | undefined;
245
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
246
- description?: string | undefined;
247
- dataLength?: number | undefined;
248
- options?: (string | {
249
- option: string | number;
250
- label: string;
251
- })[] | undefined;
252
- inView?: boolean | undefined;
253
- sortMethod?: string | undefined;
254
- generatedAs?: string | undefined;
255
- }> | Partial<relEnc.EditableDbDefinition & {
256
- name: string;
257
- typeName: relEnc.PgKnownTypes;
258
- label?: string | undefined;
259
- title?: string | undefined;
260
- nullable?: boolean | undefined;
261
- dbNullable?: boolean | undefined;
262
- defaultValue?: any;
263
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
264
- clientSide?: string | undefined;
265
- isName?: boolean | undefined;
266
- isPk?: number | undefined;
267
- serverSide?: boolean | undefined;
268
- inTable?: boolean | undefined;
269
- allowEmtpyText?: boolean | undefined;
270
- mobileInputType?: string | undefined;
271
- extraRow?: number | undefined;
272
- inexactNumber?: number | undefined;
273
- visible?: boolean | undefined;
274
- width?: number | undefined;
275
- references?: string | undefined;
276
- referencesField?: string | undefined;
277
- aggregate?: string | undefined;
278
- specialDefaultValue?: string | undefined;
279
- specialValueWhenInsert?: string | undefined;
280
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
281
- description?: string | undefined;
282
- dataLength?: number | undefined;
283
- options?: (string | {
284
- option: string | number;
285
- label: string;
286
- })[] | undefined;
287
- inView?: boolean | undefined;
288
- sortMethod?: string | undefined;
289
- generatedAs?: string | undefined;
290
- } & {
291
- sequence: relEnc.SequenceDefinition;
292
- nullable: true;
293
- editable: false;
294
- }>;
295
- } & {
296
84
  [k: string]: Partial<relEnc.FieldDefinition>;
297
85
  };
298
86
  exts: {
299
- img?: string[] | undefined;
300
- } & {
301
- img?: string[] | undefined;
302
- } & {
303
- img?: string[] | undefined;
304
- } & {
305
- img?: string[] | undefined;
87
+ img: string[];
88
+ normal: string[];
306
89
  };
307
90
  optsGenericForAll: {
308
91
  allowedExts?: string[] | undefined;
309
- } & {
310
- allowedExts?: string[] | undefined;
311
- } & {
312
- allowedExts?: string[] | undefined;
313
- } & {
314
- allowedExts?: string[] | undefined;
315
92
  };
316
93
  sqls: {
317
94
  [k: string]: string;
318
- } & {
319
- [k: string]: string;
320
- } & {
321
- [k: string]: string;
322
- } & {
323
- [k: string]: string;
324
95
  };
325
96
  messages: {
326
97
  [k: string]: string;
327
- } & {
328
- [k: string]: string;
329
- } & {
330
- [k: string]: string;
331
- } & {
332
- [k: string]: string;
333
98
  };
334
99
  dbUserNameExpr: string;
335
100
  dbUserRolExpr: string;
336
- /* mixin-patch: postConfig: (() => Promise<void>) & ((...params: any[]) => any); */
337
- /* mixin-patch: checkDatabaseStructure: ((client: relEnc.Client) => Promise<void>) & ((client: relEnc.Client) => Promise<void>); */
338
- /* mixin-patch: getDbFunctions: ((opts: relEnc.DumpOptions) => Promise<{
339
- dumpText: string;
340
- }[]>) & ((opts: relEnc.DumpOptions) => Promise<{
341
- dumpText: string;
342
- }[]>); */
343
- /* mixin-patch: clearCaches: (() => void) & (() => void); */
344
- /* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
345
- /* mixin-patch: appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void); */
346
- /* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
347
- /* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
348
- /* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
349
- /* mixin-patch: inDbClient: (<T_1_2>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1_2>) => Promise<T_1_2>) & (<T_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>); */
350
- /* mixin-patch: inTransaction: (<T_2_2>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_2_2>) => Promise<T_2_2>) & (<T_2>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_2>) => Promise<T_2>); */
351
- /* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
352
- /* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
353
- /* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
354
- /* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
355
- mainSql: string;
356
- enancePart: string;
357
- }>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
358
- mainSql: string;
359
- enancePart: string;
360
- }>); */
361
- /* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
362
- /* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => relEnc.ClientSetup) & ((req: relEnc.Request) => relEnc.ClientSetup); */
363
- /* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
364
- /* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
365
- /* mixin-patch: mainPage: ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
366
- toHtmlDoc: () => string;
367
- }) & ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
101
+ specialValueWhenInsert: {
102
+ [k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
103
+ };
104
+ isAdmin(): boolean;
105
+ canChangePass(): Promise<boolean>;
106
+ inTransactionProcedureContext<T_4>(req: relEnc.Request | null, coreFunction: (context: relEnc.ProcedureContext) => Promise<T_4>): Promise<T_4>;
107
+ dumpDbTableFields(tableDefinition: relEnc.TableDefinition): string[];
108
+ mainPage(req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined): {
368
109
  toHtmlDoc: () => string;
369
- }); */
370
- /* mixin-patch: isThisProcedureAllowed: (<T_3_1>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
371
- [key: string]: T_3_1;
372
- }) => Promise<boolean>) & (<T_3>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
373
- [key: string]: T_3;
374
- }) => Promise<boolean>); */
110
+ };
111
+ isThisProcedureAllowed<T_5>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
112
+ [key: string]: T_5;
113
+ }): Promise<boolean>;
114
+ checkDatabaseStructure(client: relEnc.Client): Promise<void>;
115
+ getDbFunctions(opts: relEnc.DumpOptions): Promise<{
116
+ dumpText: string;
117
+ }[]>;
118
+ i18n: {
119
+ messages: Record<relEnc.LangId, Record<string, string>>;
120
+ };
375
121
  };
376
122
  } & T;
377
123
  export declare var AppMetaEnc: {
@@ -384,12 +130,12 @@ export declare var AppMetaEnc: {
384
130
  prepareGetTables(): void;
385
131
  clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): relEnc.ClientModuleDefinition[];
386
132
  /* mixin-patch: addLoggedServices: (() => void) & (() => void) & (() => void); */
387
- tablasDatos: relEnc.TablaDatos[];
133
+ tablasDatos: any[];
388
134
  /* mixin-patch: cargarGenerados: ((client: relEnc.Client) => Promise<string>) & ((client: relEnc.Client) => Promise<string>); */
389
- /* mixin-patch: generateBaseTableDef: ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinition) & ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinition); */
135
+ /* mixin-patch: generateBaseTableDef: ((tablaDatos: any) => relEnc.TableDefinition) & ((tablaDatos: any) => relEnc.TableDefinition); */
390
136
  /* mixin-patch: getTableDefFunction: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
391
137
  /* mixin-patch: loadTableDef: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
392
- /* mixin-patch: generateAndLoadTableDef: ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinitionFunction) & ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinitionFunction); */
138
+ /* mixin-patch: generateAndLoadTableDef: ((tablaDatos: any) => relEnc.TableDefinitionFunction) & ((tablaDatos: any) => relEnc.TableDefinitionFunction); */
393
139
  procedures: relEnc.ProcedureDef[];
394
140
  procedure: {
395
141
  [key: string]: relEnc.ProcedureDef;
@@ -406,6 +152,28 @@ export declare var AppMetaEnc: {
406
152
  db: typeof import("pg-promise-strict");
407
153
  config: any;
408
154
  rootPath: string;
155
+ /* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: {
156
+ complete?: boolean | undefined;
157
+ skipEnance?: boolean | undefined;
158
+ } | undefined) => Promise<{
159
+ mainSql: string;
160
+ enancePart: string;
161
+ }>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: {
162
+ complete?: boolean | undefined;
163
+ skipEnance?: boolean | undefined;
164
+ } | undefined) => Promise<{
165
+ mainSql: string;
166
+ enancePart: string;
167
+ }>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: {
168
+ complete?: boolean | undefined;
169
+ skipEnance?: boolean | undefined;
170
+ } | undefined) => Promise<{
171
+ mainSql: string;
172
+ enancePart: string;
173
+ }>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
174
+ mainSql: string;
175
+ enancePart: string;
176
+ }>); */
409
177
  caches: {
410
178
  procedures: {
411
179
  [k: string]: {
@@ -413,346 +181,71 @@ export declare var AppMetaEnc: {
413
181
  result: any;
414
182
  };
415
183
  };
416
- } & {
417
- procedures: {
418
- [k: string]: {
419
- timestamp: number;
420
- result: any;
421
- };
422
- };
423
- } & {
424
- procedures: {
425
- [k: string]: {
426
- timestamp: number;
427
- result: any;
428
- };
429
- };
430
- } & {
431
- procedures: {
432
- [k: string]: {
433
- timestamp: number;
434
- result: any;
435
- };
436
- };
437
- };
184
+ } & relEnc.Caches;
185
+ /* mixin-patch: clearCaches: (() => void) & (() => void); */
186
+ /* mixin-patch: postConfig: (() => Promise<void>) & ((...params: any[]) => Promise<void>); */
187
+ /* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
188
+ /* mixin-patch: appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void); */
189
+ /* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
190
+ /* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
191
+ /* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
192
+ /* mixin-patch: inDbClient: (<T_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>) & (<T>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T>) => Promise<T>); */
193
+ /* mixin-patch: inTransaction: (<T_1_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T_2>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_2>) => Promise<T_2>); */
194
+ /* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
195
+ /* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
196
+ /* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
197
+ /* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
198
+ /* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => relEnc.ClientSetup) & ((req: relEnc.Request) => Promise<relEnc.ClientSetup>); */
199
+ /* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
200
+ /* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
438
201
  fieldDomain: {
439
- [k: string]: Partial<relEnc.EditableDbDefinition & {
440
- name: string;
441
- typeName: relEnc.PgKnownTypes;
442
- label?: string | undefined;
443
- title?: string | undefined;
444
- nullable?: boolean | undefined;
445
- dbNullable?: boolean | undefined;
446
- defaultValue?: any;
447
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
448
- clientSide?: string | undefined;
449
- isName?: boolean | undefined;
450
- isPk?: number | undefined;
451
- serverSide?: boolean | undefined;
452
- inTable?: boolean | undefined;
453
- allowEmtpyText?: boolean | undefined;
454
- mobileInputType?: string | undefined;
455
- extraRow?: number | undefined;
456
- inexactNumber?: number | undefined;
457
- visible?: boolean | undefined;
458
- width?: number | undefined;
459
- references?: string | undefined;
460
- referencesField?: string | undefined;
461
- aggregate?: string | undefined;
462
- specialDefaultValue?: string | undefined;
463
- specialValueWhenInsert?: string | undefined;
464
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
465
- description?: string | undefined;
466
- dataLength?: number | undefined;
467
- options?: (string | {
468
- option: string | number;
469
- label: string;
470
- })[] | undefined;
471
- inView?: boolean | undefined;
472
- sortMethod?: string | undefined;
473
- generatedAs?: string | undefined;
474
- }> | Partial<relEnc.EditableDbDefinition & {
475
- name: string;
476
- typeName: relEnc.PgKnownTypes;
477
- label?: string | undefined;
478
- title?: string | undefined;
479
- nullable?: boolean | undefined;
480
- dbNullable?: boolean | undefined;
481
- defaultValue?: any;
482
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
483
- clientSide?: string | undefined;
484
- isName?: boolean | undefined;
485
- isPk?: number | undefined;
486
- serverSide?: boolean | undefined;
487
- inTable?: boolean | undefined;
488
- allowEmtpyText?: boolean | undefined;
489
- mobileInputType?: string | undefined;
490
- extraRow?: number | undefined;
491
- inexactNumber?: number | undefined;
492
- visible?: boolean | undefined;
493
- width?: number | undefined;
494
- references?: string | undefined;
495
- referencesField?: string | undefined;
496
- aggregate?: string | undefined;
497
- specialDefaultValue?: string | undefined;
498
- specialValueWhenInsert?: string | undefined;
499
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
500
- description?: string | undefined;
501
- dataLength?: number | undefined;
502
- options?: (string | {
503
- option: string | number;
504
- label: string;
505
- })[] | undefined;
506
- inView?: boolean | undefined;
507
- sortMethod?: string | undefined;
508
- generatedAs?: string | undefined;
509
- } & {
510
- sequence: relEnc.SequenceDefinition;
511
- nullable: true;
512
- editable: false;
513
- }>;
514
- } & {
515
- [k: string]: Partial<relEnc.EditableDbDefinition & {
516
- name: string;
517
- typeName: relEnc.PgKnownTypes;
518
- label?: string | undefined;
519
- title?: string | undefined;
520
- nullable?: boolean | undefined;
521
- dbNullable?: boolean | undefined;
522
- defaultValue?: any;
523
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
524
- clientSide?: string | undefined;
525
- isName?: boolean | undefined;
526
- isPk?: number | undefined;
527
- serverSide?: boolean | undefined;
528
- inTable?: boolean | undefined;
529
- allowEmtpyText?: boolean | undefined;
530
- mobileInputType?: string | undefined;
531
- extraRow?: number | undefined;
532
- inexactNumber?: number | undefined;
533
- visible?: boolean | undefined;
534
- width?: number | undefined;
535
- references?: string | undefined;
536
- referencesField?: string | undefined;
537
- aggregate?: string | undefined;
538
- specialDefaultValue?: string | undefined;
539
- specialValueWhenInsert?: string | undefined;
540
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
541
- description?: string | undefined;
542
- dataLength?: number | undefined;
543
- options?: (string | {
544
- option: string | number;
545
- label: string;
546
- })[] | undefined;
547
- inView?: boolean | undefined;
548
- sortMethod?: string | undefined;
549
- generatedAs?: string | undefined;
550
- }> | Partial<relEnc.EditableDbDefinition & {
551
- name: string;
552
- typeName: relEnc.PgKnownTypes;
553
- label?: string | undefined;
554
- title?: string | undefined;
555
- nullable?: boolean | undefined;
556
- dbNullable?: boolean | undefined;
557
- defaultValue?: any;
558
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
559
- clientSide?: string | undefined;
560
- isName?: boolean | undefined;
561
- isPk?: number | undefined;
562
- serverSide?: boolean | undefined;
563
- inTable?: boolean | undefined;
564
- allowEmtpyText?: boolean | undefined;
565
- mobileInputType?: string | undefined;
566
- extraRow?: number | undefined;
567
- inexactNumber?: number | undefined;
568
- visible?: boolean | undefined;
569
- width?: number | undefined;
570
- references?: string | undefined;
571
- referencesField?: string | undefined;
572
- aggregate?: string | undefined;
573
- specialDefaultValue?: string | undefined;
574
- specialValueWhenInsert?: string | undefined;
575
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
576
- description?: string | undefined;
577
- dataLength?: number | undefined;
578
- options?: (string | {
579
- option: string | number;
580
- label: string;
581
- })[] | undefined;
582
- inView?: boolean | undefined;
583
- sortMethod?: string | undefined;
584
- generatedAs?: string | undefined;
585
- } & {
586
- sequence: relEnc.SequenceDefinition;
587
- nullable: true;
588
- editable: false;
589
- }>;
590
- } & {
591
- [k: string]: Partial<relEnc.EditableDbDefinition & {
592
- name: string;
593
- typeName: relEnc.PgKnownTypes;
594
- label?: string | undefined;
595
- title?: string | undefined;
596
- nullable?: boolean | undefined;
597
- dbNullable?: boolean | undefined;
598
- defaultValue?: any;
599
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
600
- clientSide?: string | undefined;
601
- isName?: boolean | undefined;
602
- isPk?: number | undefined;
603
- serverSide?: boolean | undefined;
604
- inTable?: boolean | undefined;
605
- allowEmtpyText?: boolean | undefined;
606
- mobileInputType?: string | undefined;
607
- extraRow?: number | undefined;
608
- inexactNumber?: number | undefined;
609
- visible?: boolean | undefined;
610
- width?: number | undefined;
611
- references?: string | undefined;
612
- referencesField?: string | undefined;
613
- aggregate?: string | undefined;
614
- specialDefaultValue?: string | undefined;
615
- specialValueWhenInsert?: string | undefined;
616
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
617
- description?: string | undefined;
618
- dataLength?: number | undefined;
619
- options?: (string | {
620
- option: string | number;
621
- label: string;
622
- })[] | undefined;
623
- inView?: boolean | undefined;
624
- sortMethod?: string | undefined;
625
- generatedAs?: string | undefined;
626
- }> | Partial<relEnc.EditableDbDefinition & {
627
- name: string;
628
- typeName: relEnc.PgKnownTypes;
629
- label?: string | undefined;
630
- title?: string | undefined;
631
- nullable?: boolean | undefined;
632
- dbNullable?: boolean | undefined;
633
- defaultValue?: any;
634
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
635
- clientSide?: string | undefined;
636
- isName?: boolean | undefined;
637
- isPk?: number | undefined;
638
- serverSide?: boolean | undefined;
639
- inTable?: boolean | undefined;
640
- allowEmtpyText?: boolean | undefined;
641
- mobileInputType?: string | undefined;
642
- extraRow?: number | undefined;
643
- inexactNumber?: number | undefined;
644
- visible?: boolean | undefined;
645
- width?: number | undefined;
646
- references?: string | undefined;
647
- referencesField?: string | undefined;
648
- aggregate?: string | undefined;
649
- specialDefaultValue?: string | undefined;
650
- specialValueWhenInsert?: string | undefined;
651
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
652
- description?: string | undefined;
653
- dataLength?: number | undefined;
654
- options?: (string | {
655
- option: string | number;
656
- label: string;
657
- })[] | undefined;
658
- inView?: boolean | undefined;
659
- sortMethod?: string | undefined;
660
- generatedAs?: string | undefined;
661
- } & {
662
- sequence: relEnc.SequenceDefinition;
663
- nullable: true;
664
- editable: false;
665
- }>;
666
- } & {
667
202
  [k: string]: Partial<relEnc.FieldDefinition>;
668
203
  };
669
204
  exts: {
670
- img?: string[] | undefined;
671
- } & {
672
- img?: string[] | undefined;
673
- } & {
674
- img?: string[] | undefined;
675
- } & {
676
- img?: string[] | undefined;
205
+ img: string[];
206
+ normal: string[];
677
207
  };
678
208
  optsGenericForAll: {
679
209
  allowedExts?: string[] | undefined;
680
- } & {
681
- allowedExts?: string[] | undefined;
682
- } & {
683
- allowedExts?: string[] | undefined;
684
- } & {
685
- allowedExts?: string[] | undefined;
686
210
  };
687
211
  sqls: {
688
212
  [k: string]: string;
689
- } & {
690
- [k: string]: string;
691
- } & {
692
- [k: string]: string;
693
- } & {
694
- [k: string]: string;
695
213
  };
696
214
  messages: {
697
215
  [k: string]: string;
698
- } & {
699
- [k: string]: string;
700
- } & {
701
- [k: string]: string;
702
- } & {
703
- [k: string]: string;
704
216
  };
705
217
  dbUserNameExpr: string;
706
218
  dbUserRolExpr: string;
707
- /* mixin-patch: postConfig: (() => Promise<void>) & ((...params: any[]) => any); */
708
- /* mixin-patch: checkDatabaseStructure: ((client: relEnc.Client) => Promise<void>) & ((client: relEnc.Client) => Promise<void>); */
709
- /* mixin-patch: getDbFunctions: ((opts: relEnc.DumpOptions) => Promise<{
710
- dumpText: string;
711
- }[]>) & ((opts: relEnc.DumpOptions) => Promise<{
712
- dumpText: string;
713
- }[]>); */
714
- /* mixin-patch: clearCaches: (() => void) & (() => void); */
715
- /* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
716
- /* mixin-patch: appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void) => void); */
717
- /* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
718
- /* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
719
- /* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
720
- /* mixin-patch: inDbClient: (<T_1_2>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1_2>) => Promise<T_1_2>) & (<T>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T>) => Promise<T>); */
721
- /* mixin-patch: inTransaction: (<T_2_2>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_2_2>) => Promise<T_2_2>) & (<T_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>); */
722
- /* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
723
- /* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
724
- /* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
725
- /* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
726
- mainSql: string;
727
- enancePart: string;
728
- }>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
729
- mainSql: string;
730
- enancePart: string;
731
- }>); */
732
- /* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
733
- /* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => relEnc.ClientSetup) & ((req: relEnc.Request) => relEnc.ClientSetup); */
734
- /* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
735
- /* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
736
- /* mixin-patch: mainPage: ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
737
- toHtmlDoc: () => string;
738
- }) & ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
219
+ specialValueWhenInsert: {
220
+ [k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
221
+ };
222
+ isAdmin(): boolean;
223
+ canChangePass(): Promise<boolean>;
224
+ inTransactionProcedureContext<T_3>(req: relEnc.Request | null, coreFunction: (context: relEnc.ProcedureContext) => Promise<T_3>): Promise<T_3>;
225
+ dumpDbTableFields(tableDefinition: relEnc.TableDefinition): string[];
226
+ mainPage(req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined): {
739
227
  toHtmlDoc: () => string;
740
- }); */
741
- /* mixin-patch: isThisProcedureAllowed: (<T_3_1>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
742
- [key: string]: T_3_1;
743
- }) => Promise<boolean>) & (<T_2>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
744
- [key: string]: T_2;
745
- }) => Promise<boolean>); */
228
+ };
229
+ isThisProcedureAllowed<T_4>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
230
+ [key: string]: T_4;
231
+ }): Promise<boolean>;
232
+ checkDatabaseStructure(client: relEnc.Client): Promise<void>;
233
+ getDbFunctions(opts: relEnc.DumpOptions): Promise<{
234
+ dumpText: string;
235
+ }[]>;
236
+ i18n: {
237
+ messages: Record<relEnc.LangId, Record<string, string>>;
238
+ };
746
239
  };
747
240
  } & (new (...args: any[]) => {
748
- clientIncludes(req: relEnc.Request, hideBEPlusInclusions: relEnc.OptsClientPage): relEnc.ClientModuleDefinition[];
241
+ clientIncludes(req: relEnc.Request, hideBEPlusInclusions: any): relEnc.ClientModuleDefinition[];
749
242
  addLoggedServices(): void;
750
- tablasDatos: relEnc.TablaDatos[];
243
+ tablasDatos: any[];
751
244
  cargarGenerados(client: relEnc.Client): Promise<string>;
752
- generateBaseTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinition;
245
+ generateBaseTableDef(tablaDatos: any): relEnc.TableDefinition;
753
246
  getTableDefFunction(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
754
247
  loadTableDef(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
755
- generateAndLoadTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinitionFunction;
248
+ generateAndLoadTableDef(tablaDatos: any): relEnc.TableDefinitionFunction;
756
249
  procedures: relEnc.ProcedureDef[];
757
250
  procedure: {
758
251
  [key: string]: relEnc.ProcedureDef;
@@ -765,6 +258,19 @@ export declare var AppMetaEnc: {
765
258
  db: typeof import("pg-promise-strict");
766
259
  config: any;
767
260
  rootPath: string;
261
+ dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: {
262
+ complete?: boolean | undefined;
263
+ skipEnance?: boolean | undefined;
264
+ } | undefined) => Promise<{
265
+ mainSql: string;
266
+ enancePart: string;
267
+ }>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: {
268
+ complete?: boolean | undefined;
269
+ skipEnance?: boolean | undefined;
270
+ } | undefined) => Promise<{
271
+ mainSql: string;
272
+ enancePart: string;
273
+ }>);
768
274
  caches: {
769
275
  procedures: {
770
276
  [k: string]: {
@@ -772,189 +278,8 @@ export declare var AppMetaEnc: {
772
278
  result: any;
773
279
  };
774
280
  };
775
- } & {
776
- procedures: {
777
- [k: string]: {
778
- timestamp: number;
779
- result: any;
780
- };
781
- };
782
281
  };
783
- fieldDomain: {
784
- [k: string]: Partial<relEnc.EditableDbDefinition & {
785
- name: string;
786
- typeName: relEnc.PgKnownTypes;
787
- label?: string | undefined;
788
- title?: string | undefined;
789
- nullable?: boolean | undefined;
790
- dbNullable?: boolean | undefined;
791
- defaultValue?: any;
792
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
793
- clientSide?: string | undefined;
794
- isName?: boolean | undefined;
795
- isPk?: number | undefined;
796
- serverSide?: boolean | undefined;
797
- inTable?: boolean | undefined;
798
- allowEmtpyText?: boolean | undefined;
799
- mobileInputType?: string | undefined;
800
- extraRow?: number | undefined;
801
- inexactNumber?: number | undefined;
802
- visible?: boolean | undefined;
803
- width?: number | undefined;
804
- references?: string | undefined;
805
- referencesField?: string | undefined;
806
- aggregate?: string | undefined;
807
- specialDefaultValue?: string | undefined;
808
- specialValueWhenInsert?: string | undefined;
809
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
810
- description?: string | undefined;
811
- dataLength?: number | undefined;
812
- options?: (string | {
813
- option: string | number;
814
- label: string;
815
- })[] | undefined;
816
- inView?: boolean | undefined;
817
- sortMethod?: string | undefined;
818
- generatedAs?: string | undefined;
819
- }> | Partial<relEnc.EditableDbDefinition & {
820
- name: string;
821
- typeName: relEnc.PgKnownTypes;
822
- label?: string | undefined;
823
- title?: string | undefined;
824
- nullable?: boolean | undefined;
825
- dbNullable?: boolean | undefined;
826
- defaultValue?: any;
827
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
828
- clientSide?: string | undefined;
829
- isName?: boolean | undefined;
830
- isPk?: number | undefined;
831
- serverSide?: boolean | undefined;
832
- inTable?: boolean | undefined;
833
- allowEmtpyText?: boolean | undefined;
834
- mobileInputType?: string | undefined;
835
- extraRow?: number | undefined;
836
- inexactNumber?: number | undefined;
837
- visible?: boolean | undefined;
838
- width?: number | undefined;
839
- references?: string | undefined;
840
- referencesField?: string | undefined;
841
- aggregate?: string | undefined;
842
- specialDefaultValue?: string | undefined;
843
- specialValueWhenInsert?: string | undefined;
844
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
845
- description?: string | undefined;
846
- dataLength?: number | undefined;
847
- options?: (string | {
848
- option: string | number;
849
- label: string;
850
- })[] | undefined;
851
- inView?: boolean | undefined;
852
- sortMethod?: string | undefined;
853
- generatedAs?: string | undefined;
854
- } & {
855
- sequence: relEnc.SequenceDefinition;
856
- nullable: true;
857
- editable: false;
858
- }>;
859
- } & {
860
- [k: string]: Partial<relEnc.EditableDbDefinition & {
861
- name: string;
862
- typeName: relEnc.PgKnownTypes;
863
- label?: string | undefined;
864
- title?: string | undefined;
865
- nullable?: boolean | undefined;
866
- dbNullable?: boolean | undefined;
867
- defaultValue?: any;
868
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
869
- clientSide?: string | undefined;
870
- isName?: boolean | undefined;
871
- isPk?: number | undefined;
872
- serverSide?: boolean | undefined;
873
- inTable?: boolean | undefined;
874
- allowEmtpyText?: boolean | undefined;
875
- mobileInputType?: string | undefined;
876
- extraRow?: number | undefined;
877
- inexactNumber?: number | undefined;
878
- visible?: boolean | undefined;
879
- width?: number | undefined;
880
- references?: string | undefined;
881
- referencesField?: string | undefined;
882
- aggregate?: string | undefined;
883
- specialDefaultValue?: string | undefined;
884
- specialValueWhenInsert?: string | undefined;
885
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
886
- description?: string | undefined;
887
- dataLength?: number | undefined;
888
- options?: (string | {
889
- option: string | number;
890
- label: string;
891
- })[] | undefined;
892
- inView?: boolean | undefined;
893
- sortMethod?: string | undefined;
894
- generatedAs?: string | undefined;
895
- }> | Partial<relEnc.EditableDbDefinition & {
896
- name: string;
897
- typeName: relEnc.PgKnownTypes;
898
- label?: string | undefined;
899
- title?: string | undefined;
900
- nullable?: boolean | undefined;
901
- dbNullable?: boolean | undefined;
902
- defaultValue?: any;
903
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
904
- clientSide?: string | undefined;
905
- isName?: boolean | undefined;
906
- isPk?: number | undefined;
907
- serverSide?: boolean | undefined;
908
- inTable?: boolean | undefined;
909
- allowEmtpyText?: boolean | undefined;
910
- mobileInputType?: string | undefined;
911
- extraRow?: number | undefined;
912
- inexactNumber?: number | undefined;
913
- visible?: boolean | undefined;
914
- width?: number | undefined;
915
- references?: string | undefined;
916
- referencesField?: string | undefined;
917
- aggregate?: string | undefined;
918
- specialDefaultValue?: string | undefined;
919
- specialValueWhenInsert?: string | undefined;
920
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
921
- description?: string | undefined;
922
- dataLength?: number | undefined;
923
- options?: (string | {
924
- option: string | number;
925
- label: string;
926
- })[] | undefined;
927
- inView?: boolean | undefined;
928
- sortMethod?: string | undefined;
929
- generatedAs?: string | undefined;
930
- } & {
931
- sequence: relEnc.SequenceDefinition;
932
- nullable: true;
933
- editable: false;
934
- }>;
935
- };
936
- exts: {
937
- img?: string[] | undefined;
938
- } & {
939
- img?: string[] | undefined;
940
- };
941
- optsGenericForAll: {
942
- allowedExts?: string[] | undefined;
943
- } & {
944
- allowedExts?: string[] | undefined;
945
- };
946
- sqls: {
947
- [k: string]: string;
948
- } & {
949
- [k: string]: string;
950
- };
951
- messages: {
952
- [k: string]: string;
953
- } & {
954
- [k: string]: string;
955
- };
956
- dbUserNameExpr: string;
957
- dbUserRolExpr: string;
282
+ clearCaches(): void;
958
283
  }) & {
959
284
  new (...args: any[]): {
960
285
  tablasDatos: relEnc.TablaDatos[];
@@ -991,84 +316,11 @@ export declare var AppMetaEnc: {
991
316
  };
992
317
  };
993
318
  fieldDomain: {
994
- [k: string]: Partial<relEnc.EditableDbDefinition & {
995
- name: string;
996
- typeName: relEnc.PgKnownTypes;
997
- label?: string | undefined;
998
- title?: string | undefined;
999
- nullable?: boolean | undefined;
1000
- dbNullable?: boolean | undefined;
1001
- defaultValue?: any;
1002
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
1003
- clientSide?: string | undefined;
1004
- isName?: boolean | undefined;
1005
- isPk?: number | undefined;
1006
- serverSide?: boolean | undefined;
1007
- inTable?: boolean | undefined;
1008
- allowEmtpyText?: boolean | undefined;
1009
- mobileInputType?: string | undefined;
1010
- extraRow?: number | undefined;
1011
- inexactNumber?: number | undefined;
1012
- visible?: boolean | undefined;
1013
- width?: number | undefined;
1014
- references?: string | undefined;
1015
- referencesField?: string | undefined;
1016
- aggregate?: string | undefined;
1017
- specialDefaultValue?: string | undefined;
1018
- specialValueWhenInsert?: string | undefined;
1019
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
1020
- description?: string | undefined;
1021
- dataLength?: number | undefined;
1022
- options?: (string | {
1023
- option: string | number;
1024
- label: string;
1025
- })[] | undefined;
1026
- inView?: boolean | undefined;
1027
- sortMethod?: string | undefined;
1028
- generatedAs?: string | undefined;
1029
- }> | Partial<relEnc.EditableDbDefinition & {
1030
- name: string;
1031
- typeName: relEnc.PgKnownTypes;
1032
- label?: string | undefined;
1033
- title?: string | undefined;
1034
- nullable?: boolean | undefined;
1035
- dbNullable?: boolean | undefined;
1036
- defaultValue?: any;
1037
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
1038
- clientSide?: string | undefined;
1039
- isName?: boolean | undefined;
1040
- isPk?: number | undefined;
1041
- serverSide?: boolean | undefined;
1042
- inTable?: boolean | undefined;
1043
- allowEmtpyText?: boolean | undefined;
1044
- mobileInputType?: string | undefined;
1045
- extraRow?: number | undefined;
1046
- inexactNumber?: number | undefined;
1047
- visible?: boolean | undefined;
1048
- width?: number | undefined;
1049
- references?: string | undefined;
1050
- referencesField?: string | undefined;
1051
- aggregate?: string | undefined;
1052
- specialDefaultValue?: string | undefined;
1053
- specialValueWhenInsert?: string | undefined;
1054
- exportMetadata?: relEnc.ExportMetadataDefinition | undefined;
1055
- description?: string | undefined;
1056
- dataLength?: number | undefined;
1057
- options?: (string | {
1058
- option: string | number;
1059
- label: string;
1060
- })[] | undefined;
1061
- inView?: boolean | undefined;
1062
- sortMethod?: string | undefined;
1063
- generatedAs?: string | undefined;
1064
- } & {
1065
- sequence: relEnc.SequenceDefinition;
1066
- nullable: true;
1067
- editable: false;
1068
- }>;
319
+ [k: string]: Partial<relEnc.FieldDefinition>;
1069
320
  };
1070
321
  exts: {
1071
- img?: string[] | undefined;
322
+ img: string[];
323
+ normal: string[];
1072
324
  };
1073
325
  optsGenericForAll: {
1074
326
  allowedExts?: string[] | undefined;
@@ -1081,6 +333,9 @@ export declare var AppMetaEnc: {
1081
333
  };
1082
334
  dbUserNameExpr: string;
1083
335
  dbUserRolExpr: string;
336
+ specialValueWhenInsert: {
337
+ [k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
338
+ };
1084
339
  clearCaches(): void;
1085
340
  start(opts?: relEnc.StartOptions | undefined): Promise<void>;
1086
341
  getTables(): relEnc.TableItemDef[];
@@ -1090,8 +345,8 @@ export declare var AppMetaEnc: {
1090
345
  addUnloggedServices(mainApp: relEnc.ExpressPlus, baseUrl: string): void;
1091
346
  addLoggedServices(): void;
1092
347
  getProcedures(): Promise<relEnc.ProcedureDef[]>;
1093
- inDbClient<T_3>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_3>): Promise<T_3>;
1094
- inTransaction<T_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1>): Promise<T_1>;
348
+ inDbClient<T_5>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_5>): Promise<T_5>;
349
+ inTransaction<T_1_2>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1_2>): Promise<T_1_2>;
1095
350
  procedureDefCompleter(procedureDef: relEnc.ProcedureDef): relEnc.ProcedureDef;
1096
351
  tableDefAdapt(tableDef: relEnc.TableDefinition, context: relEnc.Context): relEnc.TableDefinition;
1097
352
  pushApp(dirname: string): void;
@@ -1112,4 +367,4 @@ export declare var AppMetaEnc: {
1112
367
  };
1113
368
  prefixTableName(tableName: string, prefix: string): string;
1114
369
  } & typeof relEnc.AppBackend;
1115
- export declare type AppMetaEncType = InstanceType<typeof AppMetaEnc>;
370
+ export type AppMetaEncType = InstanceType<typeof AppMetaEnc>;