meta-enc 1.4.9 → 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.
- package/dist/client/meta-enc.d.ts.map +1 -0
- package/dist/client/meta-enc.ts +334 -0
- package/dist/server/app-meta-enc.d.ts +136 -252
- package/dist/server/app-meta-enc.d.ts.map +1 -0
- package/dist/server/app-meta-enc.ts +96 -0
- package/dist/server/def-config.d.ts.map +1 -0
- package/dist/server/def-config.ts +59 -0
- package/dist/server/procedures-meta-enc.d.ts.map +1 -0
- package/dist/server/procedures-meta-enc.ts +398 -0
- package/dist/server/server-meta-enc.d.ts.map +1 -0
- package/dist/server/server-meta-enc.ts +7 -0
- package/dist/server/table-casilleros.d.ts +0 -1
- package/dist/server/table-casilleros.d.ts.map +1 -0
- package/dist/server/table-casilleros.ts +88 -0
- package/dist/server/table-casilleros_principales.d.ts +0 -1
- package/dist/server/table-casilleros_principales.d.ts.map +1 -0
- package/dist/server/table-casilleros_principales.ts +10 -0
- package/dist/server/table-formularios_json.d.ts +0 -1
- package/dist/server/table-formularios_json.d.ts.map +1 -0
- package/dist/server/table-formularios_json.ts +15 -0
- package/dist/server/table-subcasilleros.d.ts +0 -1
- package/dist/server/table-tipoc.d.ts +0 -1
- package/dist/server/table-tipoc.d.ts.map +1 -0
- package/dist/server/table-tipoc.ts +25 -0
- package/dist/server/table-tipoc_tipoc.d.ts +0 -1
- package/dist/server/table-tipoc_tipoc.d.ts.map +1 -0
- package/dist/server/table-tipoc_tipoc.ts +20 -0
- package/dist/server/table-unidad_analisis.d.ts +0 -1
- package/dist/server/table-unidad_analisis.d.ts.map +1 -0
- package/dist/server/table-unidad_analisis.ts +29 -0
- package/dist/server/types-meta-enc.d.ts.map +1 -0
- package/dist/server/types-meta-enc.ts +2 -0
- package/install/tipoc_tipoc.tab.bak +23 -0
- package/package.json +2 -2
|
@@ -1,4 +1,3 @@
|
|
|
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";
|
|
@@ -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:
|
|
15
|
+
tablasDatos: any[];
|
|
17
16
|
/* mixin-patch: cargarGenerados: ((client: relEnc.Client) => Promise<string>) & ((client: relEnc.Client) => Promise<string>); */
|
|
18
|
-
/* mixin-patch: generateBaseTableDef: ((tablaDatos:
|
|
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:
|
|
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,127 +63,61 @@ export declare function emergeAppMetaEnc<T extends Constructor<relEnc.AppRelEncT
|
|
|
42
63
|
result: any;
|
|
43
64
|
};
|
|
44
65
|
};
|
|
45
|
-
} &
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
84
|
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
69
|
-
} & {
|
|
70
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
71
|
-
} & {
|
|
72
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
73
|
-
} & {
|
|
74
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
75
85
|
};
|
|
76
86
|
exts: {
|
|
77
87
|
img: string[];
|
|
78
88
|
normal: string[];
|
|
79
|
-
} & {
|
|
80
|
-
img: string[];
|
|
81
|
-
normal: string[];
|
|
82
|
-
} & {
|
|
83
|
-
img: string[];
|
|
84
|
-
normal: string[];
|
|
85
|
-
} & {
|
|
86
|
-
img: string[];
|
|
87
|
-
normal: string[];
|
|
88
89
|
};
|
|
89
90
|
optsGenericForAll: {
|
|
90
91
|
allowedExts?: string[] | undefined;
|
|
91
|
-
} & {
|
|
92
|
-
allowedExts?: string[] | undefined;
|
|
93
|
-
} & {
|
|
94
|
-
allowedExts?: string[] | undefined;
|
|
95
|
-
} & {
|
|
96
|
-
allowedExts?: string[] | undefined;
|
|
97
92
|
};
|
|
98
93
|
sqls: {
|
|
99
94
|
[k: string]: string;
|
|
100
|
-
} & {
|
|
101
|
-
[k: string]: string;
|
|
102
|
-
} & {
|
|
103
|
-
[k: string]: string;
|
|
104
|
-
} & {
|
|
105
|
-
[k: string]: string;
|
|
106
95
|
};
|
|
107
96
|
messages: {
|
|
108
97
|
[k: string]: string;
|
|
109
|
-
} & {
|
|
110
|
-
[k: string]: string;
|
|
111
|
-
} & {
|
|
112
|
-
[k: string]: string;
|
|
113
|
-
} & {
|
|
114
|
-
[k: string]: string;
|
|
115
98
|
};
|
|
116
99
|
dbUserNameExpr: string;
|
|
117
100
|
dbUserRolExpr: string;
|
|
118
101
|
specialValueWhenInsert: {
|
|
119
102
|
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
120
|
-
} & {
|
|
121
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
122
|
-
} & {
|
|
123
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
124
|
-
} & {
|
|
125
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
126
103
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
dumpText: string;
|
|
133
|
-
}[]>); */
|
|
134
|
-
/* mixin-patch: clearCaches: (() => void) & (() => void); */
|
|
135
|
-
/* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
|
|
136
|
-
/* 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); */
|
|
137
|
-
/* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
|
|
138
|
-
/* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
139
|
-
/* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
140
|
-
/* mixin-patch: inDbClient: (<T_1_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>); */
|
|
141
|
-
/* mixin-patch: inTransaction: (<T_2_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_2_1>) => Promise<T_2_1>) & (<T_2>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_2>) => Promise<T_2>); */
|
|
142
|
-
/* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
|
|
143
|
-
/* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
|
|
144
|
-
/* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
|
|
145
|
-
/* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
146
|
-
mainSql: string;
|
|
147
|
-
enancePart: string;
|
|
148
|
-
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
149
|
-
mainSql: string;
|
|
150
|
-
enancePart: string;
|
|
151
|
-
}>); */
|
|
152
|
-
/* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
|
|
153
|
-
/* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => relEnc.ClientSetup) & ((req: relEnc.Request) => relEnc.ClientSetup); */
|
|
154
|
-
/* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
|
|
155
|
-
/* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
|
|
156
|
-
/* mixin-patch: mainPage: ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
157
|
-
toHtmlDoc: () => string;
|
|
158
|
-
}) & ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
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): {
|
|
159
109
|
toHtmlDoc: () => string;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
[key: string]:
|
|
163
|
-
})
|
|
164
|
-
|
|
165
|
-
|
|
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
|
+
};
|
|
166
121
|
};
|
|
167
122
|
} & T;
|
|
168
123
|
export declare var AppMetaEnc: {
|
|
@@ -175,12 +130,12 @@ export declare var AppMetaEnc: {
|
|
|
175
130
|
prepareGetTables(): void;
|
|
176
131
|
clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): relEnc.ClientModuleDefinition[];
|
|
177
132
|
/* mixin-patch: addLoggedServices: (() => void) & (() => void) & (() => void); */
|
|
178
|
-
tablasDatos:
|
|
133
|
+
tablasDatos: any[];
|
|
179
134
|
/* mixin-patch: cargarGenerados: ((client: relEnc.Client) => Promise<string>) & ((client: relEnc.Client) => Promise<string>); */
|
|
180
|
-
/* mixin-patch: generateBaseTableDef: ((tablaDatos:
|
|
135
|
+
/* mixin-patch: generateBaseTableDef: ((tablaDatos: any) => relEnc.TableDefinition) & ((tablaDatos: any) => relEnc.TableDefinition); */
|
|
181
136
|
/* mixin-patch: getTableDefFunction: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
|
|
182
137
|
/* mixin-patch: loadTableDef: ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction) & ((tableDef: relEnc.TableDefinition) => relEnc.TableDefinitionFunction); */
|
|
183
|
-
/* mixin-patch: generateAndLoadTableDef: ((tablaDatos:
|
|
138
|
+
/* mixin-patch: generateAndLoadTableDef: ((tablaDatos: any) => relEnc.TableDefinitionFunction) & ((tablaDatos: any) => relEnc.TableDefinitionFunction); */
|
|
184
139
|
procedures: relEnc.ProcedureDef[];
|
|
185
140
|
procedure: {
|
|
186
141
|
[key: string]: relEnc.ProcedureDef;
|
|
@@ -197,6 +152,28 @@ export declare var AppMetaEnc: {
|
|
|
197
152
|
db: typeof import("pg-promise-strict");
|
|
198
153
|
config: any;
|
|
199
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
|
+
}>); */
|
|
200
177
|
caches: {
|
|
201
178
|
procedures: {
|
|
202
179
|
[k: string]: {
|
|
@@ -204,137 +181,71 @@ export declare var AppMetaEnc: {
|
|
|
204
181
|
result: any;
|
|
205
182
|
};
|
|
206
183
|
};
|
|
207
|
-
} &
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
timestamp: number;
|
|
225
|
-
result: any;
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
};
|
|
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); */
|
|
229
201
|
fieldDomain: {
|
|
230
202
|
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
231
|
-
} & {
|
|
232
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
233
|
-
} & {
|
|
234
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
235
|
-
} & {
|
|
236
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
237
203
|
};
|
|
238
204
|
exts: {
|
|
239
205
|
img: string[];
|
|
240
206
|
normal: string[];
|
|
241
|
-
} & {
|
|
242
|
-
img: string[];
|
|
243
|
-
normal: string[];
|
|
244
|
-
} & {
|
|
245
|
-
img: string[];
|
|
246
|
-
normal: string[];
|
|
247
|
-
} & {
|
|
248
|
-
img: string[];
|
|
249
|
-
normal: string[];
|
|
250
207
|
};
|
|
251
208
|
optsGenericForAll: {
|
|
252
209
|
allowedExts?: string[] | undefined;
|
|
253
|
-
} & {
|
|
254
|
-
allowedExts?: string[] | undefined;
|
|
255
|
-
} & {
|
|
256
|
-
allowedExts?: string[] | undefined;
|
|
257
|
-
} & {
|
|
258
|
-
allowedExts?: string[] | undefined;
|
|
259
210
|
};
|
|
260
211
|
sqls: {
|
|
261
212
|
[k: string]: string;
|
|
262
|
-
} & {
|
|
263
|
-
[k: string]: string;
|
|
264
|
-
} & {
|
|
265
|
-
[k: string]: string;
|
|
266
|
-
} & {
|
|
267
|
-
[k: string]: string;
|
|
268
213
|
};
|
|
269
214
|
messages: {
|
|
270
215
|
[k: string]: string;
|
|
271
|
-
} & {
|
|
272
|
-
[k: string]: string;
|
|
273
|
-
} & {
|
|
274
|
-
[k: string]: string;
|
|
275
|
-
} & {
|
|
276
|
-
[k: string]: string;
|
|
277
216
|
};
|
|
278
217
|
dbUserNameExpr: string;
|
|
279
218
|
dbUserRolExpr: string;
|
|
280
219
|
specialValueWhenInsert: {
|
|
281
220
|
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
282
|
-
} & {
|
|
283
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
284
|
-
} & {
|
|
285
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
286
|
-
} & {
|
|
287
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
288
221
|
};
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
dumpText: string;
|
|
295
|
-
}[]>); */
|
|
296
|
-
/* mixin-patch: clearCaches: (() => void) & (() => void); */
|
|
297
|
-
/* mixin-patch: start: ((opts?: relEnc.StartOptions | undefined) => Promise<void>) & ((opts?: relEnc.StartOptions | undefined) => Promise<void>); */
|
|
298
|
-
/* 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); */
|
|
299
|
-
/* mixin-patch: getContext: ((req: relEnc.Request) => relEnc.Context) & ((req: relEnc.Request) => relEnc.Context); */
|
|
300
|
-
/* mixin-patch: addSchrödingerServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
301
|
-
/* mixin-patch: addUnloggedServices: ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void) & ((mainApp: relEnc.ExpressPlus, baseUrl: string) => void); */
|
|
302
|
-
/* mixin-patch: inDbClient: (<T_1_1>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T_1_1>) => Promise<T_1_1>) & (<T>(req: relEnc.Request | null, doThisWithDbClient: (client: relEnc.Client) => Promise<T>) => Promise<T>); */
|
|
303
|
-
/* mixin-patch: inTransaction: (<T_2_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_2_1>) => Promise<T_2_1>) & (<T_1>(req: relEnc.Request | null, doThisWithDbTransaction: (client: relEnc.Client) => Promise<T_1>) => Promise<T_1>); */
|
|
304
|
-
/* mixin-patch: procedureDefCompleter: ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef) & ((procedureDef: relEnc.ProcedureDef) => relEnc.ProcedureDef); */
|
|
305
|
-
/* mixin-patch: tableDefAdapt: ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition) & ((tableDef: relEnc.TableDefinition, context: relEnc.Context) => relEnc.TableDefinition); */
|
|
306
|
-
/* mixin-patch: pushApp: ((dirname: string) => void) & ((dirname: string) => void); */
|
|
307
|
-
/* mixin-patch: dumpDbSchemaPartial: ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
308
|
-
mainSql: string;
|
|
309
|
-
enancePart: string;
|
|
310
|
-
}>) & ((partialTableStructures: relEnc.TableDefinitions, opts?: relEnc.DumpOptions | undefined) => Promise<{
|
|
311
|
-
mainSql: string;
|
|
312
|
-
enancePart: string;
|
|
313
|
-
}>); */
|
|
314
|
-
/* mixin-patch: getContextForDump: (() => relEnc.ContextForDump) & (() => relEnc.ContextForDump); */
|
|
315
|
-
/* mixin-patch: getClientSetupForSendToFrontEnd: ((req: relEnc.Request) => relEnc.ClientSetup) & ((req: relEnc.Request) => relEnc.ClientSetup); */
|
|
316
|
-
/* mixin-patch: configList: (() => (string | object)[]) & (() => (string | object)[]); */
|
|
317
|
-
/* mixin-patch: setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void); */
|
|
318
|
-
/* mixin-patch: mainPage: ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
319
|
-
toHtmlDoc: () => string;
|
|
320
|
-
}) & ((req: {} | relEnc.Request, offlineMode?: boolean | undefined, opts?: relEnc.OptsClientPage | undefined) => {
|
|
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): {
|
|
321
227
|
toHtmlDoc: () => string;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
[key: string]:
|
|
325
|
-
})
|
|
326
|
-
|
|
327
|
-
|
|
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
|
+
};
|
|
328
239
|
};
|
|
329
240
|
} & (new (...args: any[]) => {
|
|
330
|
-
clientIncludes(req: relEnc.Request, hideBEPlusInclusions:
|
|
241
|
+
clientIncludes(req: relEnc.Request, hideBEPlusInclusions: any): relEnc.ClientModuleDefinition[];
|
|
331
242
|
addLoggedServices(): void;
|
|
332
|
-
tablasDatos:
|
|
243
|
+
tablasDatos: any[];
|
|
333
244
|
cargarGenerados(client: relEnc.Client): Promise<string>;
|
|
334
|
-
generateBaseTableDef(tablaDatos:
|
|
245
|
+
generateBaseTableDef(tablaDatos: any): relEnc.TableDefinition;
|
|
335
246
|
getTableDefFunction(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
336
247
|
loadTableDef(tableDef: relEnc.TableDefinition): relEnc.TableDefinitionFunction;
|
|
337
|
-
generateAndLoadTableDef(tablaDatos:
|
|
248
|
+
generateAndLoadTableDef(tablaDatos: any): relEnc.TableDefinitionFunction;
|
|
338
249
|
procedures: relEnc.ProcedureDef[];
|
|
339
250
|
procedure: {
|
|
340
251
|
[key: string]: relEnc.ProcedureDef;
|
|
@@ -347,6 +258,19 @@ export declare var AppMetaEnc: {
|
|
|
347
258
|
db: typeof import("pg-promise-strict");
|
|
348
259
|
config: any;
|
|
349
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
|
+
}>);
|
|
350
274
|
caches: {
|
|
351
275
|
procedures: {
|
|
352
276
|
[k: string]: {
|
|
@@ -354,48 +278,8 @@ export declare var AppMetaEnc: {
|
|
|
354
278
|
result: any;
|
|
355
279
|
};
|
|
356
280
|
};
|
|
357
|
-
} & {
|
|
358
|
-
procedures: {
|
|
359
|
-
[k: string]: {
|
|
360
|
-
timestamp: number;
|
|
361
|
-
result: any;
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
fieldDomain: {
|
|
366
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
367
|
-
} & {
|
|
368
|
-
[k: string]: Partial<relEnc.FieldDefinition>;
|
|
369
|
-
};
|
|
370
|
-
exts: {
|
|
371
|
-
img: string[];
|
|
372
|
-
normal: string[];
|
|
373
|
-
} & {
|
|
374
|
-
img: string[];
|
|
375
|
-
normal: string[];
|
|
376
|
-
};
|
|
377
|
-
optsGenericForAll: {
|
|
378
|
-
allowedExts?: string[] | undefined;
|
|
379
|
-
} & {
|
|
380
|
-
allowedExts?: string[] | undefined;
|
|
381
|
-
};
|
|
382
|
-
sqls: {
|
|
383
|
-
[k: string]: string;
|
|
384
|
-
} & {
|
|
385
|
-
[k: string]: string;
|
|
386
|
-
};
|
|
387
|
-
messages: {
|
|
388
|
-
[k: string]: string;
|
|
389
|
-
} & {
|
|
390
|
-
[k: string]: string;
|
|
391
|
-
};
|
|
392
|
-
dbUserNameExpr: string;
|
|
393
|
-
dbUserRolExpr: string;
|
|
394
|
-
specialValueWhenInsert: {
|
|
395
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
396
|
-
} & {
|
|
397
|
-
[k: string]: (context: relEnc.ProcedureContext, defField: relEnc.FieldDefinition, parameters: object) => any;
|
|
398
281
|
};
|
|
282
|
+
clearCaches(): void;
|
|
399
283
|
}) & {
|
|
400
284
|
new (...args: any[]): {
|
|
401
285
|
tablasDatos: relEnc.TablaDatos[];
|
|
@@ -461,8 +345,8 @@ export declare var AppMetaEnc: {
|
|
|
461
345
|
addUnloggedServices(mainApp: relEnc.ExpressPlus, baseUrl: string): void;
|
|
462
346
|
addLoggedServices(): void;
|
|
463
347
|
getProcedures(): Promise<relEnc.ProcedureDef[]>;
|
|
464
|
-
inDbClient<
|
|
465
|
-
inTransaction<
|
|
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>;
|
|
466
350
|
procedureDefCompleter(procedureDef: relEnc.ProcedureDef): relEnc.ProcedureDef;
|
|
467
351
|
tableDefAdapt(tableDef: relEnc.TableDefinition, context: relEnc.Context): relEnc.TableDefinition;
|
|
468
352
|
pushApp(dirname: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-meta-enc.d.ts","sourceRoot":"","sources":["../../src/server/app-meta-enc.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAC,cAAc,EAAE,OAAO,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAMzE,oBAAY,WAAW,CAAC,CAAC,IAAI,KAAI,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAEtD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,WAAW,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,IAAI,EAAC,CAAC;kBAExD,GAAG,EAAE;;mBAmBd,cAAc;;;;4BA0DN,OAAO,wBAAuB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAMtE;AACD,eAAO,IAAI,UAAU;kBApFO,GAAG,EAAE;;mBAmBd,cAAc;;;;4BA0DN,OAAO,wBAAuB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAOe,CAAC;AACvF,oBAAY,cAAc,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import * as relEnc from "rel-enc";
|
|
4
|
+
export * from "./types-meta-enc";
|
|
5
|
+
import {MenuDefinition, Request} from "./types-meta-enc";
|
|
6
|
+
import {ProceduresMetaEnc} from "./procedures-meta-enc";
|
|
7
|
+
import {defConfig} from "./def-config"
|
|
8
|
+
|
|
9
|
+
export type Constructor<T> = new(...args: any[]) => T;
|
|
10
|
+
|
|
11
|
+
export function emergeAppMetaEnc<T extends Constructor<relEnc.AppRelEncType>>(Base:T){
|
|
12
|
+
return class AppMetaEnc extends Base{
|
|
13
|
+
constructor(...args:any[]){
|
|
14
|
+
super(args);
|
|
15
|
+
this.sqls={
|
|
16
|
+
exprFieldUaPkPadre: `
|
|
17
|
+
coalesce((
|
|
18
|
+
with recursive uas(operativo, profundidad, padre, pk) as (
|
|
19
|
+
select ua.operativo, 1 as profundidad, ua.padre, null as pk
|
|
20
|
+
union all
|
|
21
|
+
select uas.operativo, profundidad+1, p.padre, p.pk_agregada
|
|
22
|
+
from uas left join unidad_analisis p on p.unidad_analisis = uas.padre and p.operativo = uas.operativo
|
|
23
|
+
where p.unidad_analisis is not null
|
|
24
|
+
) select array_agg(pk order by profundidad desc) from uas where pk is not null
|
|
25
|
+
),array[]::text[])`
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
configStaticConfig(){
|
|
29
|
+
super.configStaticConfig();
|
|
30
|
+
this.setStaticConfig(defConfig);
|
|
31
|
+
}
|
|
32
|
+
getMenu(): MenuDefinition {
|
|
33
|
+
let menu: MenuDefinition =
|
|
34
|
+
{menu:[
|
|
35
|
+
{menuType:'menu', name:'metadatos', menuContent:[
|
|
36
|
+
{menuType:'table', name:'operativos'},
|
|
37
|
+
{menuType:'table', name:'normal' , table:'casilleros_principales'},
|
|
38
|
+
{menuType:'table', name:'plano' , table:'casilleros'},
|
|
39
|
+
]},
|
|
40
|
+
{menuType:'menu', name:'encuestas_de_prueba', menuContent:[
|
|
41
|
+
{menuType:'proc', name:'caso_traer', proc:'caso_traer', label:'traer caso' },
|
|
42
|
+
{menuType:'proc', name:'caso_nuevo' , proc:'caso_nuevo' , label:'nuevo caso' },
|
|
43
|
+
]},
|
|
44
|
+
{menuType:'menu', name:'configuracion', menuContent:[
|
|
45
|
+
{menuType:'menu', name:'elementos', menuContent:[
|
|
46
|
+
{menuType:'table', name:'tipoc', label:'tipos de celdas', selectedByDefault:true},
|
|
47
|
+
{menuType:'table', name:'tipoc_tipoc', label:'inclusiones de celdas'},
|
|
48
|
+
{menuType:'table', name:'tipovar', label:'tipos de variables'},
|
|
49
|
+
]},
|
|
50
|
+
{menuType:'table', name:'usuarios', selectedByDefault:true},
|
|
51
|
+
]},
|
|
52
|
+
{menuType:'proc', name:'generate_tabledef', proc:'tabledef_generate', label:'generar tablas' },
|
|
53
|
+
]};
|
|
54
|
+
return menu;
|
|
55
|
+
}
|
|
56
|
+
getTables(){
|
|
57
|
+
return super.getTables().concat([
|
|
58
|
+
{path:__dirname, name:'tipoc' },
|
|
59
|
+
{path:__dirname, name:'tipoc_tipoc' },
|
|
60
|
+
{path:__dirname, name:'unidad_analisis' },
|
|
61
|
+
{path:__dirname, name:'casilleros' },
|
|
62
|
+
{path:__dirname, name:'casilleros_principales'},
|
|
63
|
+
{path:__dirname, name:'formularios_json' },
|
|
64
|
+
]);
|
|
65
|
+
}
|
|
66
|
+
getProcedures(){
|
|
67
|
+
var be = this;
|
|
68
|
+
return super.getProcedures().then(function(procedures){
|
|
69
|
+
return procedures.concat(
|
|
70
|
+
ProceduresMetaEnc.map(be.procedureDefCompleter, be)
|
|
71
|
+
)
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
prepareGetTables(){
|
|
75
|
+
super.prepareGetTables();
|
|
76
|
+
this.getTableDefinition={
|
|
77
|
+
...this.getTableDefinition,
|
|
78
|
+
}
|
|
79
|
+
this.appendToTableDefinition('operativos', function(tableDef){
|
|
80
|
+
tableDef.detailTables = tableDef.detailTables.concat([
|
|
81
|
+
{table:'casilleros_principales', fields:['operativo'], abr:'C' , label:'casilleros principales', refreshParent:true },
|
|
82
|
+
{table:'casilleros' , fields:['operativo'], abr:'P' , label:'casilleros (forma plana)', refreshParent:true },
|
|
83
|
+
{table:'unidad_analisis' , fields:['operativo'], abr:'UA', label:'unidades de análisis', refreshParent:true },
|
|
84
|
+
]);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
clientIncludes(req:Request, hideBEPlusInclusions:boolean){
|
|
89
|
+
return super.clientIncludes(req, hideBEPlusInclusions).concat([
|
|
90
|
+
{ type: 'js', module:'meta-enc', modPath: '../client', file: 'meta-enc.js', path:'client_modules' }
|
|
91
|
+
])
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
export var AppMetaEnc = emergeAppMetaEnc(relEnc.emergeAppRelEnc(relEnc.AppOperativos));
|
|
96
|
+
export type AppMetaEncType = InstanceType<typeof AppMetaEnc>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"def-config.d.ts","sourceRoot":"","sources":["../../src/server/def-config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,2nDA4DrB,CAAC"}
|