meta-enc 1.4.12 → 1.4.13
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.
- package/dist/server/app-meta-enc.d.ts +4 -479
- package/dist/server/procedures-meta-enc.d.ts +0 -1
- package/dist/server/table-casilleros.d.ts +0 -1
- package/dist/server/table-casilleros_principales.d.ts +0 -1
- package/dist/server/table-formularios_json.d.ts +0 -1
- package/dist/server/table-subcasilleros.d.ts +0 -1
- package/dist/server/table-tipoc.d.ts +0 -1
- package/dist/server/table-tipoc_tipoc.d.ts +0 -1
- package/dist/server/table-unidad_analisis.d.ts +0 -1
- package/package.json +2 -2
- package/dist/client/meta-enc.d.ts.map +0 -1
- package/dist/client/meta-enc.ts +0 -334
- package/dist/server/app-meta-enc.d.ts.map +0 -1
- package/dist/server/app-meta-enc.ts +0 -96
- package/dist/server/def-config.d.ts.map +0 -1
- package/dist/server/def-config.ts +0 -59
- package/dist/server/procedures-meta-enc.d.ts.map +0 -1
- package/dist/server/procedures-meta-enc.ts +0 -398
- package/dist/server/server-meta-enc.d.ts.map +0 -1
- package/dist/server/server-meta-enc.ts +0 -7
- package/dist/server/table-casilleros.d.ts.map +0 -1
- package/dist/server/table-casilleros.ts +0 -88
- package/dist/server/table-casilleros_principales.d.ts.map +0 -1
- package/dist/server/table-casilleros_principales.ts +0 -10
- package/dist/server/table-formularios_json.d.ts.map +0 -1
- package/dist/server/table-formularios_json.ts +0 -15
- package/dist/server/table-tipoc.d.ts.map +0 -1
- package/dist/server/table-tipoc.ts +0 -25
- package/dist/server/table-tipoc_tipoc.d.ts.map +0 -1
- package/dist/server/table-tipoc_tipoc.ts +0 -20
- package/dist/server/table-unidad_analisis.d.ts.map +0 -1
- package/dist/server/table-unidad_analisis.ts +0 -29
- package/dist/server/types-meta-enc.d.ts.map +0 -1
- package/dist/server/types-meta-enc.ts +0 -2
- package/install/tipoc_tipoc.tab.bak +0 -23
|
@@ -1,491 +1,16 @@
|
|
|
1
|
-
/// <reference types="backend-plus" />
|
|
2
1
|
import * as relEnc from "rel-enc";
|
|
3
2
|
export * from "./types-meta-enc";
|
|
4
|
-
import { MenuDefinition, Request, OptsClientPage } from "./types-meta-enc";
|
|
5
3
|
export type Constructor<T> = new (...args: any[]) => T;
|
|
6
4
|
export declare function emergeAppMetaEnc<T extends Constructor<relEnc.AppRelEncType>>(Base: T): {
|
|
7
5
|
new (...args: any[]): {
|
|
8
6
|
metaEncIncluirCasillerosSaltoREL: boolean;
|
|
9
7
|
configStaticConfig(): void;
|
|
10
8
|
getMenu(): MenuDefinition;
|
|
11
|
-
getTables():
|
|
12
|
-
getProcedures():
|
|
9
|
+
getTables(): any;
|
|
10
|
+
getProcedures(): any;
|
|
13
11
|
prepareGetTables(): void;
|
|
14
|
-
clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage):
|
|
15
|
-
/* mixin-patch: addLoggedServices: (() => void) & (() => void) & (() => void); */
|
|
16
|
-
tablasDatos: relEnc.TablaDatos[];
|
|
17
|
-
/* 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); */
|
|
19
|
-
/* mixin-patch: getTableDefFunction: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
|
|
20
|
-
/* 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); */
|
|
22
|
-
procedures: relEnc.ProcedureDef[];
|
|
23
|
-
procedure: {
|
|
24
|
-
[key: string]: relEnc.ProcedureDef;
|
|
25
|
-
} & {
|
|
26
|
-
[key: string]: relEnc.ProcedureDef;
|
|
27
|
-
} & {
|
|
28
|
-
[key: string]: relEnc.ProcedureDef;
|
|
29
|
-
} & {
|
|
30
|
-
[key: string]: relEnc.ProcedureDef;
|
|
31
|
-
};
|
|
32
|
-
app: relEnc.ExpressPlus;
|
|
33
|
-
getTableDefinition: relEnc.TableDefinitionsGetters;
|
|
34
|
-
tableStructures: relEnc.TableDefinitions;
|
|
35
|
-
db: typeof import("pg-promise-strict");
|
|
36
|
-
config: any;
|
|
37
|
-
rootPath: string;
|
|
38
|
-
caches: relEnc.Caches;
|
|
39
|
-
fieldDomain: {
|
|
40
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
41
|
-
} & {
|
|
42
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
43
|
-
} & {
|
|
44
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
45
|
-
} & {
|
|
46
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
47
|
-
};
|
|
48
|
-
exts: {
|
|
49
|
-
img: string[];
|
|
50
|
-
normal: string[];
|
|
51
|
-
} & {
|
|
52
|
-
img: string[];
|
|
53
|
-
normal: string[];
|
|
54
|
-
} & {
|
|
55
|
-
img: string[];
|
|
56
|
-
normal: string[];
|
|
57
|
-
} & {
|
|
58
|
-
img: string[];
|
|
59
|
-
normal: string[];
|
|
60
|
-
};
|
|
61
|
-
optsGenericForAll: {
|
|
62
|
-
allowedExts?: string[] | undefined;
|
|
63
|
-
} & {
|
|
64
|
-
allowedExts?: string[] | undefined;
|
|
65
|
-
} & {
|
|
66
|
-
allowedExts?: string[] | undefined;
|
|
67
|
-
} & {
|
|
68
|
-
allowedExts?: string[] | undefined;
|
|
69
|
-
};
|
|
70
|
-
sqls: {
|
|
71
|
-
[k: string]: string;
|
|
72
|
-
} & {
|
|
73
|
-
[k: string]: string;
|
|
74
|
-
} & {
|
|
75
|
-
[k: string]: string;
|
|
76
|
-
} & {
|
|
77
|
-
[k: string]: string;
|
|
78
|
-
};
|
|
79
|
-
messages: {
|
|
80
|
-
[k: string]: string;
|
|
81
|
-
} & {
|
|
82
|
-
[k: string]: string;
|
|
83
|
-
} & {
|
|
84
|
-
[k: string]: string;
|
|
85
|
-
} & {
|
|
86
|
-
[k: string]: string;
|
|
87
|
-
};
|
|
88
|
-
dbUserNameExpr: string;
|
|
89
|
-
dbUserRolExpr: string;
|
|
90
|
-
specialValueWhenInsert: {
|
|
91
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
92
|
-
} & {
|
|
93
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
94
|
-
} & {
|
|
95
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
96
|
-
} & {
|
|
97
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
98
|
-
};
|
|
99
|
-
i18n: {
|
|
100
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
101
|
-
} & {
|
|
102
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
103
|
-
} & {
|
|
104
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
105
|
-
} & {
|
|
106
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
107
|
-
};
|
|
108
|
-
/* mixin-patch: postConfig: (() => Promise<void>) & ((...params: any[]) => Promise<void>); */
|
|
109
|
-
/* mixin-patch: checkDatabaseStructure: ((client: relEnc.Client) => Promise<void>) & ((client: relEnc.Client) => Promise<void>); */
|
|
110
|
-
/* mixin-patch: getDbFunctions: ((opts: relEnc.DumpOptions) => Promise<{
|
|
111
|
-
dumpText: string;
|
|
112
|
-
}[]>) & ((opts: relEnc.DumpOptions) => Promise<{
|
|
113
|
-
dumpText: string;
|
|
114
|
-
}[]>); */
|
|
115
|
-
/* mixin-patch: clearCaches: (() => void) & (() => void); */
|
|
116
|
-
/* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
|
|
117
|
-
/* 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); */
|
|
118
|
-
/* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
|
|
119
|
-
/* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
120
|
-
/* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
121
|
-
/* mixin-patch: isAdmin: (() => boolean) & (() => boolean); */
|
|
122
|
-
/* mixin-patch: canChangePass: (() => Promise<boolean>) & (() => Promise<boolean>); */
|
|
123
|
-
/* mixin-patch: inDbClient: (<T_5>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_5>) => Promise<T_5>) & (<T_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>); */
|
|
124
|
-
/* 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>); */
|
|
125
|
-
/* mixin-patch: inTransactionProcedureContext: (<T_2_1>(req: relEnc.Request | null, coreFunction: (context: relEnc.ProcedureContext) => Promise<T_2_1>) => Promise<T_2_1>) & (<T_3>(req: relEnc.Request | null, coreFunction: (context: relEnc.ProcedureContext) => Promise<T_3>) => Promise<T_3>); */
|
|
126
|
-
/* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
|
|
127
|
-
/* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
|
|
128
|
-
/* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
|
|
129
|
-
/* mixin-patch: dumpDbTableFields: ((tableDefinition: relEnc.TableDefinition) => string[]) & ((tableDefinition: relEnc.TableDefinition) => string[]); */
|
|
130
|
-
/* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
131
|
-
mainSql: string;
|
|
132
|
-
enancePart: string;
|
|
133
|
-
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
134
|
-
mainSql: string;
|
|
135
|
-
enancePart: string;
|
|
136
|
-
}>); */
|
|
137
|
-
/* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
|
|
138
|
-
/* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => Promise<relEnc.ClientSetup>) & ((req: relEnc.Request) => Promise<relEnc.ClientSetup>); */
|
|
139
|
-
/* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
|
|
140
|
-
/* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
|
|
141
|
-
/* mixin-patch: mainPage: ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
142
|
-
toHtmlDoc: () => string;
|
|
143
|
-
}) & ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
144
|
-
toHtmlDoc: () => string;
|
|
145
|
-
}); */
|
|
146
|
-
/* mixin-patch: isThisProcedureAllowed: (<T_3_1>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
147
|
-
[key: string]: T_3_1;
|
|
148
|
-
}) => Promise<boolean>) & (<T_4>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
149
|
-
[key: string]: T_4;
|
|
150
|
-
}) => Promise<boolean>); */
|
|
151
|
-
/* mixin-patch: shootDownBackend: (() => Promise<void>) & (() => Promise<void>); */
|
|
152
|
-
/* mixin-patch: setLog: ((opts: {
|
|
153
|
-
until: string;
|
|
154
|
-
results?: boolean | undefined;
|
|
155
|
-
}) => void) & ((opts: {
|
|
156
|
-
until: string;
|
|
157
|
-
results?: boolean | undefined;
|
|
158
|
-
}) => void); */
|
|
159
|
-
/* mixin-patch: getDataDumpTransformations: ((rawData: string) => Promise<{
|
|
160
|
-
rawData: string;
|
|
161
|
-
prepareTransformationSql: string[];
|
|
162
|
-
endTransformationSql: string[];
|
|
163
|
-
}>) & ((rawData: string) => Promise<{
|
|
164
|
-
rawData: string;
|
|
165
|
-
prepareTransformationSql: string[];
|
|
166
|
-
endTransformationSql: string[];
|
|
167
|
-
}>); */
|
|
12
|
+
clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): any;
|
|
168
13
|
};
|
|
169
14
|
} & T;
|
|
170
|
-
export declare var AppMetaEnc:
|
|
171
|
-
new (...args: any[]): {
|
|
172
|
-
metaEncIncluirCasillerosSaltoREL: boolean;
|
|
173
|
-
configStaticConfig(): void;
|
|
174
|
-
getMenu(): MenuDefinition;
|
|
175
|
-
getTables(): relEnc.TableItemDef[];
|
|
176
|
-
getProcedures(): Promise<relEnc.ProcedureDef[]>;
|
|
177
|
-
prepareGetTables(): void;
|
|
178
|
-
clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): relEnc.ClientModuleDefinition[];
|
|
179
|
-
/* mixin-patch: addLoggedServices: (() => void) & (() => void) & (() => void); */
|
|
180
|
-
tablasDatos: relEnc.TablaDatos[];
|
|
181
|
-
/* mixin-patch: cargarGenerados: ((client: relEnc.Client) => Promise<string>) & ((client: relEnc.Client) => Promise<string>); */
|
|
182
|
-
/* mixin-patch: generateBaseTableDef: ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinition) & ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinition); */
|
|
183
|
-
/* mixin-patch: getTableDefFunction: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
|
|
184
|
-
/* mixin-patch: loadTableDef: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
|
|
185
|
-
/* mixin-patch: generateAndLoadTableDef: ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinitionFunction) & ((tablaDatos: relEnc.TablaDatos) => relEnc.TableDefinitionFunction); */
|
|
186
|
-
procedures: relEnc.ProcedureDef[];
|
|
187
|
-
procedure: {
|
|
188
|
-
[key: string]: relEnc.ProcedureDef;
|
|
189
|
-
} & {
|
|
190
|
-
[key: string]: relEnc.ProcedureDef;
|
|
191
|
-
} & {
|
|
192
|
-
[key: string]: relEnc.ProcedureDef;
|
|
193
|
-
} & {
|
|
194
|
-
[key: string]: relEnc.ProcedureDef;
|
|
195
|
-
};
|
|
196
|
-
app: relEnc.ExpressPlus;
|
|
197
|
-
getTableDefinition: relEnc.TableDefinitionsGetters;
|
|
198
|
-
tableStructures: relEnc.TableDefinitions;
|
|
199
|
-
db: typeof import("pg-promise-strict");
|
|
200
|
-
config: any;
|
|
201
|
-
rootPath: string;
|
|
202
|
-
caches: relEnc.Caches;
|
|
203
|
-
fieldDomain: {
|
|
204
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
205
|
-
} & {
|
|
206
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
207
|
-
} & {
|
|
208
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
209
|
-
} & {
|
|
210
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
211
|
-
};
|
|
212
|
-
exts: {
|
|
213
|
-
img: string[];
|
|
214
|
-
normal: string[];
|
|
215
|
-
} & {
|
|
216
|
-
img: string[];
|
|
217
|
-
normal: string[];
|
|
218
|
-
} & {
|
|
219
|
-
img: string[];
|
|
220
|
-
normal: string[];
|
|
221
|
-
} & {
|
|
222
|
-
img: string[];
|
|
223
|
-
normal: string[];
|
|
224
|
-
};
|
|
225
|
-
optsGenericForAll: {
|
|
226
|
-
allowedExts?: string[] | undefined;
|
|
227
|
-
} & {
|
|
228
|
-
allowedExts?: string[] | undefined;
|
|
229
|
-
} & {
|
|
230
|
-
allowedExts?: string[] | undefined;
|
|
231
|
-
} & {
|
|
232
|
-
allowedExts?: string[] | undefined;
|
|
233
|
-
};
|
|
234
|
-
sqls: {
|
|
235
|
-
[k: string]: string;
|
|
236
|
-
} & {
|
|
237
|
-
[k: string]: string;
|
|
238
|
-
} & {
|
|
239
|
-
[k: string]: string;
|
|
240
|
-
} & {
|
|
241
|
-
[k: string]: string;
|
|
242
|
-
};
|
|
243
|
-
messages: {
|
|
244
|
-
[k: string]: string;
|
|
245
|
-
} & {
|
|
246
|
-
[k: string]: string;
|
|
247
|
-
} & {
|
|
248
|
-
[k: string]: string;
|
|
249
|
-
} & {
|
|
250
|
-
[k: string]: string;
|
|
251
|
-
};
|
|
252
|
-
dbUserNameExpr: string;
|
|
253
|
-
dbUserRolExpr: string;
|
|
254
|
-
specialValueWhenInsert: {
|
|
255
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
256
|
-
} & {
|
|
257
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
258
|
-
} & {
|
|
259
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
260
|
-
} & {
|
|
261
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
262
|
-
};
|
|
263
|
-
i18n: {
|
|
264
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
265
|
-
} & {
|
|
266
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
267
|
-
} & {
|
|
268
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
269
|
-
} & {
|
|
270
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
271
|
-
};
|
|
272
|
-
/* mixin-patch: postConfig: (() => Promise<void>) & ((...params: any[]) => Promise<void>); */
|
|
273
|
-
/* mixin-patch: checkDatabaseStructure: ((client: relEnc.Client) => Promise<void>) & ((client: relEnc.Client) => Promise<void>); */
|
|
274
|
-
/* mixin-patch: getDbFunctions: ((opts: relEnc.DumpOptions) => Promise<{
|
|
275
|
-
dumpText: string;
|
|
276
|
-
}[]>) & ((opts: relEnc.DumpOptions) => Promise<{
|
|
277
|
-
dumpText: string;
|
|
278
|
-
}[]>); */
|
|
279
|
-
/* mixin-patch: clearCaches: (() => void) & (() => void); */
|
|
280
|
-
/* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
|
|
281
|
-
/* 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); */
|
|
282
|
-
/* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
|
|
283
|
-
/* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
284
|
-
/* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
285
|
-
/* mixin-patch: isAdmin: (() => boolean) & (() => boolean); */
|
|
286
|
-
/* mixin-patch: canChangePass: (() => Promise<boolean>) & (() => Promise<boolean>); */
|
|
287
|
-
/* mixin-patch: inDbClient: (<T_5>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_5>) => Promise<T_5>) & (<T>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T>) => Promise<T>); */
|
|
288
|
-
/* mixin-patch: inTransaction: (<T_1_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>); */
|
|
289
|
-
/* mixin-patch: inTransactionProcedureContext: (<T_2_1>(req: relEnc.Request | null, coreFunction: (context: relEnc.ProcedureContext) => Promise<T_2_1>) => Promise<T_2_1>) & (<T_2>(req: relEnc.Request | null, coreFunction: (context: relEnc.ProcedureContext) => Promise<T_2>) => Promise<T_2>); */
|
|
290
|
-
/* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
|
|
291
|
-
/* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
|
|
292
|
-
/* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
|
|
293
|
-
/* mixin-patch: dumpDbTableFields: ((tableDefinition: relEnc.TableDefinition) => string[]) & ((tableDefinition: relEnc.TableDefinition) => string[]); */
|
|
294
|
-
/* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
295
|
-
mainSql: string;
|
|
296
|
-
enancePart: string;
|
|
297
|
-
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
298
|
-
mainSql: string;
|
|
299
|
-
enancePart: string;
|
|
300
|
-
}>); */
|
|
301
|
-
/* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
|
|
302
|
-
/* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => Promise<relEnc.ClientSetup>) & ((req: relEnc.Request) => Promise<relEnc.ClientSetup>); */
|
|
303
|
-
/* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
|
|
304
|
-
/* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
|
|
305
|
-
/* mixin-patch: mainPage: ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
306
|
-
toHtmlDoc: () => string;
|
|
307
|
-
}) & ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
308
|
-
toHtmlDoc: () => string;
|
|
309
|
-
}); */
|
|
310
|
-
/* mixin-patch: isThisProcedureAllowed: (<T_3_1>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
311
|
-
[key: string]: T_3_1;
|
|
312
|
-
}) => Promise<boolean>) & (<T_3>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
313
|
-
[key: string]: T_3;
|
|
314
|
-
}) => Promise<boolean>); */
|
|
315
|
-
/* mixin-patch: shootDownBackend: (() => Promise<void>) & (() => Promise<void>); */
|
|
316
|
-
/* mixin-patch: setLog: ((opts: {
|
|
317
|
-
until: string;
|
|
318
|
-
results?: boolean | undefined;
|
|
319
|
-
}) => void) & ((opts: {
|
|
320
|
-
until: string;
|
|
321
|
-
results?: boolean | undefined;
|
|
322
|
-
}) => void); */
|
|
323
|
-
/* mixin-patch: getDataDumpTransformations: ((rawData: string) => Promise<{
|
|
324
|
-
rawData: string;
|
|
325
|
-
prepareTransformationSql: string[];
|
|
326
|
-
endTransformationSql: string[];
|
|
327
|
-
}>) & ((rawData: string) => Promise<{
|
|
328
|
-
rawData: string;
|
|
329
|
-
prepareTransformationSql: string[];
|
|
330
|
-
endTransformationSql: string[];
|
|
331
|
-
}>); */
|
|
332
|
-
};
|
|
333
|
-
} & (new (...args: any[]) => {
|
|
334
|
-
clientIncludes(req: relEnc.Request, hideBEPlusInclusions: relEnc.OptsClientPage): relEnc.ClientModuleDefinition[];
|
|
335
|
-
addLoggedServices(): void;
|
|
336
|
-
tablasDatos: relEnc.TablaDatos[];
|
|
337
|
-
cargarGenerados(client: relEnc.Client): Promise<string>;
|
|
338
|
-
generateBaseTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinition;
|
|
339
|
-
getTableDefFunction(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
340
|
-
loadTableDef(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
341
|
-
generateAndLoadTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinitionFunction;
|
|
342
|
-
procedures: relEnc.ProcedureDef[];
|
|
343
|
-
procedure: {
|
|
344
|
-
[key: string]: relEnc.ProcedureDef;
|
|
345
|
-
} & {
|
|
346
|
-
[key: string]: relEnc.ProcedureDef;
|
|
347
|
-
};
|
|
348
|
-
app: relEnc.ExpressPlus;
|
|
349
|
-
getTableDefinition: relEnc.TableDefinitionsGetters;
|
|
350
|
-
tableStructures: relEnc.TableDefinitions;
|
|
351
|
-
db: typeof import("pg-promise-strict");
|
|
352
|
-
config: any;
|
|
353
|
-
rootPath: string;
|
|
354
|
-
caches: relEnc.Caches;
|
|
355
|
-
fieldDomain: {
|
|
356
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
357
|
-
} & {
|
|
358
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
359
|
-
};
|
|
360
|
-
exts: {
|
|
361
|
-
img: string[];
|
|
362
|
-
normal: string[];
|
|
363
|
-
} & {
|
|
364
|
-
img: string[];
|
|
365
|
-
normal: string[];
|
|
366
|
-
};
|
|
367
|
-
optsGenericForAll: {
|
|
368
|
-
allowedExts?: string[] | undefined;
|
|
369
|
-
} & {
|
|
370
|
-
allowedExts?: string[] | undefined;
|
|
371
|
-
};
|
|
372
|
-
sqls: {
|
|
373
|
-
[k: string]: string;
|
|
374
|
-
} & {
|
|
375
|
-
[k: string]: string;
|
|
376
|
-
};
|
|
377
|
-
messages: {
|
|
378
|
-
[k: string]: string;
|
|
379
|
-
} & {
|
|
380
|
-
[k: string]: string;
|
|
381
|
-
};
|
|
382
|
-
dbUserNameExpr: string;
|
|
383
|
-
dbUserRolExpr: string;
|
|
384
|
-
specialValueWhenInsert: {
|
|
385
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
386
|
-
} & {
|
|
387
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
388
|
-
};
|
|
389
|
-
i18n: {
|
|
390
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
391
|
-
} & {
|
|
392
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
393
|
-
};
|
|
394
|
-
}) & {
|
|
395
|
-
new (...args: any[]): {
|
|
396
|
-
tablasDatos: relEnc.TablaDatos[];
|
|
397
|
-
configStaticConfig(): void;
|
|
398
|
-
cargarGenerados(client: relEnc.Client): Promise<string>;
|
|
399
|
-
postConfig(): Promise<void>;
|
|
400
|
-
generateBaseTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinition;
|
|
401
|
-
getTableDefFunction(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
402
|
-
loadTableDef(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
403
|
-
generateAndLoadTableDef(tablaDatos: relEnc.TablaDatos): relEnc.TableDefinitionFunction;
|
|
404
|
-
clientIncludes(req: relEnc.Request, hideBEPlusInclusions: relEnc.OptsClientPage): relEnc.ClientModuleDefinition[];
|
|
405
|
-
getMenu(): relEnc.MenuDefinition;
|
|
406
|
-
prepareGetTables(): void;
|
|
407
|
-
checkDatabaseStructure(client: relEnc.Client): Promise<void>;
|
|
408
|
-
getDbFunctions(opts: relEnc.DumpOptions): Promise<{
|
|
409
|
-
dumpText: string;
|
|
410
|
-
}[]>;
|
|
411
|
-
procedures: relEnc.ProcedureDef[];
|
|
412
|
-
procedure: {
|
|
413
|
-
[key: string]: relEnc.ProcedureDef;
|
|
414
|
-
};
|
|
415
|
-
app: relEnc.ExpressPlus;
|
|
416
|
-
getTableDefinition: relEnc.TableDefinitionsGetters;
|
|
417
|
-
tableStructures: relEnc.TableDefinitions;
|
|
418
|
-
db: typeof import("pg-promise-strict");
|
|
419
|
-
config: any;
|
|
420
|
-
rootPath: string;
|
|
421
|
-
caches: relEnc.Caches;
|
|
422
|
-
fieldDomain: {
|
|
423
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
424
|
-
};
|
|
425
|
-
exts: {
|
|
426
|
-
img: string[];
|
|
427
|
-
normal: string[];
|
|
428
|
-
};
|
|
429
|
-
optsGenericForAll: {
|
|
430
|
-
allowedExts?: string[] | undefined;
|
|
431
|
-
};
|
|
432
|
-
sqls: {
|
|
433
|
-
[k: string]: string;
|
|
434
|
-
};
|
|
435
|
-
messages: {
|
|
436
|
-
[k: string]: string;
|
|
437
|
-
};
|
|
438
|
-
dbUserNameExpr: string;
|
|
439
|
-
dbUserRolExpr: string;
|
|
440
|
-
specialValueWhenInsert: {
|
|
441
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
442
|
-
};
|
|
443
|
-
clearCaches(): void;
|
|
444
|
-
start(opts?: relEnc.StartOptions | undefined): Promise<void>;
|
|
445
|
-
getTables(): relEnc.TableItemDef[];
|
|
446
|
-
appendToTableDefinition(tableName: string, appenderFunction: (tableDef: relEnc.TableDefinition, context?: relEnc.TableContext | undefined) => void): void;
|
|
447
|
-
getContext(req: relEnc.Request): relEnc.Context;
|
|
448
|
-
addSchrödingerServices(mainApp: relEnc.ExpressPlus, baseUrl: string): void;
|
|
449
|
-
addUnloggedServices(mainApp: relEnc.ExpressPlus, baseUrl: string): void;
|
|
450
|
-
addLoggedServices(): void;
|
|
451
|
-
getProcedures(): Promise<relEnc.ProcedureDef[]>;
|
|
452
|
-
isAdmin(): boolean;
|
|
453
|
-
canChangePass(): Promise<boolean>;
|
|
454
|
-
inDbClient<T_4>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_4>): Promise<T_4>;
|
|
455
|
-
inTransaction<T_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1>): Promise<T_1>;
|
|
456
|
-
inTransactionProcedureContext<T_2>(req: relEnc.Request | null, coreFunction: (context: relEnc.ProcedureContext) => Promise<T_2>): Promise<T_2>;
|
|
457
|
-
procedureDefCompleter(procedureDef: relEnc.ProcedureDef): relEnc.ProcedureDef;
|
|
458
|
-
tableDefAdapt(tableDef: relEnc.TableDefinition, context: relEnc.Context): relEnc.TableDefinition;
|
|
459
|
-
pushApp(dirname: string): void;
|
|
460
|
-
dumpDbTableFields(tableDefinition: relEnc.TableDefinition): string[];
|
|
461
|
-
dumpDbSchemaPartial(partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined): Promise<{
|
|
462
|
-
mainSql: string;
|
|
463
|
-
enancePart: string;
|
|
464
|
-
}>;
|
|
465
|
-
getContextForDump(): relEnc.ContextForDump;
|
|
466
|
-
getClientSetupForSendToFrontEnd(req: relEnc.Request): Promise<relEnc.ClientSetup>;
|
|
467
|
-
configList(): (string | object)[];
|
|
468
|
-
setStaticConfig(defConfigYamlString: string): void;
|
|
469
|
-
mainPage(req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined): {
|
|
470
|
-
toHtmlDoc: () => string;
|
|
471
|
-
};
|
|
472
|
-
isThisProcedureAllowed<T_3>(context: relEnc.Context, procedureDef: relEnc.ProcedureDef, params: {
|
|
473
|
-
[key: string]: T_3;
|
|
474
|
-
}): Promise<boolean>;
|
|
475
|
-
i18n: {
|
|
476
|
-
messages: Record<relEnc.LangId, Record<string, string>>;
|
|
477
|
-
};
|
|
478
|
-
shootDownBackend(): Promise<void>;
|
|
479
|
-
setLog(opts: {
|
|
480
|
-
until: string;
|
|
481
|
-
results?: boolean | undefined;
|
|
482
|
-
}): void;
|
|
483
|
-
getDataDumpTransformations(rawData: string): Promise<{
|
|
484
|
-
rawData: string;
|
|
485
|
-
prepareTransformationSql: string[];
|
|
486
|
-
endTransformationSql: string[];
|
|
487
|
-
}>;
|
|
488
|
-
};
|
|
489
|
-
prefixTableName(tableName: string, prefix: string): string;
|
|
490
|
-
} & typeof relEnc.AppBackend;
|
|
15
|
+
export declare var AppMetaEnc: any;
|
|
491
16
|
export type AppMetaEncType = InstanceType<typeof AppMetaEnc>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meta-enc",
|
|
3
3
|
"description": "Metadatos de encuestas",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.13",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "codenautas/meta-enc",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"unlogged"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"rel-enc": "^1.3.
|
|
16
|
+
"rel-enc": "^1.3.11"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"types.d.ts": "^0.6.7",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta-enc.d.ts","sourceRoot":"","sources":["../../src/client/meta-enc.ts"],"names":[],"mappings":""}
|