fiscalia_bo-nest-helpers 0.1.81 → 0.1.82
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/README.md
CHANGED
@@ -16,7 +16,7 @@ Este proyecto esta orientado a la publicación de helpers básicos al momento de
|
|
16
16
|
|
17
17
|
De momento se tienen los siguientes servicios:
|
18
18
|
|
19
|
-
- <b>MS-FILES</b>: Para su uso debe tener la variable de entorno "
|
19
|
+
- <b>MS-FILES</b>: Para su uso debe tener la variable de entorno "ENV_SERVICE_MS_FILES_URL='url del entorno de ms-files'"
|
20
20
|
|
21
21
|
## Compilación antes de publicar
|
22
22
|
|
@@ -39,7 +39,7 @@ import { MsFilesService } from 'fiscalia_bo-nest-helpers';
|
|
39
39
|
## variables de entorno obligatorios
|
40
40
|
|
41
41
|
```properties
|
42
|
-
|
42
|
+
ENV_SERVICE_MS_FILES_URL='https://ms-files.url'
|
43
43
|
```
|
44
44
|
|
45
45
|
# USO DEL MODULO `MS-SEGURIDAD`
|
@@ -14,9 +14,9 @@ const ms_files_service_1 = require("./ms-files.service");
|
|
14
14
|
const chalk_1 = require("chalk");
|
15
15
|
let MsFilesModule = MsFilesModule_1 = class MsFilesModule {
|
16
16
|
static register(options) {
|
17
|
-
const url = (options === null || options === void 0 ? void 0 : options.urlMsFiles) || process.env.
|
17
|
+
const url = (options === null || options === void 0 ? void 0 : options.urlMsFiles) || process.env.ENV_SERVICE_MS_FILES_URL;
|
18
18
|
if (!url)
|
19
|
-
console.warn(chalk_1.bold.red(`
|
19
|
+
console.warn(chalk_1.bold.red(`ENV_SERVICE_MS_FILES_URL no definido en variables de entorno para ms-files`));
|
20
20
|
return {
|
21
21
|
global: options.global,
|
22
22
|
module: MsFilesModule_1,
|
@@ -34,9 +34,9 @@ let MsFilesModule = MsFilesModule_1 = class MsFilesModule {
|
|
34
34
|
};
|
35
35
|
}
|
36
36
|
static async registerAsync(options) {
|
37
|
-
const url = (options === null || options === void 0 ? void 0 : options.urlMsFiles) || process.env.
|
37
|
+
const url = (options === null || options === void 0 ? void 0 : options.urlMsFiles) || process.env.ENV_SERVICE_MS_FILES_URL;
|
38
38
|
if (!url)
|
39
|
-
console.warn(chalk_1.bold.red(`
|
39
|
+
console.warn(chalk_1.bold.red(`ENV_SERVICE_MS_FILES_URL no definido en variables de entorno para ms-files`));
|
40
40
|
return {
|
41
41
|
global: options.global,
|
42
42
|
module: MsFilesModule_1,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ms-files.module.js","sourceRoot":"","sources":["../../src/ms-files/ms-files.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,yCAA2C;AAC3C,2CAAuD;AACvD,yDAAoD;AACpD,iCAA6B;AAUtB,IAAM,aAAa,qBAAnB,MAAM,aAAa;IAIxB,MAAM,CAAC,QAAQ,CAAC,OAA8B;QAC5C,MAAM,GAAG,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,KAAI,OAAO,CAAC,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"ms-files.module.js","sourceRoot":"","sources":["../../src/ms-files/ms-files.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,yCAA2C;AAC3C,2CAAuD;AACvD,yDAAoD;AACpD,iCAA6B;AAUtB,IAAM,aAAa,qBAAnB,MAAM,aAAa;IAIxB,MAAM,CAAC,QAAQ,CAAC,OAA8B;QAC5C,MAAM,GAAG,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,KAAI,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;QACxE,IAAI,CAAC,GAAG;YACN,OAAO,CAAC,IAAI,CACV,YAAI,CAAC,GAAG,CAAC,4EAA4E,CAAC,CACvF,CAAC;QACJ,OAAO;YACL,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,MAAM,EAAE,eAAa;YACrB,OAAO,EAAE;gBACP,kBAAU,CAAC,QAAQ,CAAC;oBAClB,OAAO,EAAE,GAAG;oBACZ,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,IAAI;oBAChC,YAAY,EAAE,CAAC;oBACf,aAAa,EAAE,OAAO,CAAC,aAAa;oBACpC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;iBAC3C,CAAC;aACH;YACD,SAAS,EAAE,CAAC,iCAAc,CAAC;YAC3B,OAAO,EAAE,CAAC,iCAAc,CAAC;SAC1B,CAAC;IACJ,CAAC;IAKD,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,OAA6B;QACtD,MAAM,GAAG,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,KAAI,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;QACxE,IAAI,CAAC,GAAG;YACN,OAAO,CAAC,IAAI,CACV,YAAI,CAAC,GAAG,CAAC,4EAA4E,CAAC,CACvF,CAAC;QAEJ,OAAO;YACL,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,MAAM,EAAE,eAAa;YACrB,OAAO,EAAE;gBACP,kBAAU,CAAC,QAAQ,CAAC;oBAClB,OAAO,EAAE,GAAG;oBACZ,OAAO,EAAE,IAAI;oBACb,YAAY,EAAE,CAAC;oBACf,aAAa,EAAE,OAAO,CAAC,aAAa;oBACpC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;iBAC3C,CAAC;aACH;YACD,SAAS,EAAE,CAAC,iCAAc,CAAC;YAC3B,OAAO,EAAE,CAAC,iCAAc,CAAC;SAC1B,CAAC;IACJ,CAAC;CACF,CAAA;AArDY,aAAa;IADzB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,aAAa,CAqDzB;AArDY,sCAAa"}
|
@@ -201,12 +201,13 @@ export interface LoginResponse_Funcionario {
|
|
201
201
|
oficina: string;
|
202
202
|
oficinaId: number;
|
203
203
|
municipio: string;
|
204
|
-
|
204
|
+
municipioId: number;
|
205
205
|
entidad: string;
|
206
206
|
entidadId: number;
|
207
207
|
institucionId: number;
|
208
208
|
institucion: string;
|
209
209
|
departamento: string;
|
210
|
+
departamentoId: number;
|
210
211
|
}
|
211
212
|
export interface LoginResponse_App {
|
212
213
|
nombre: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"seguridad.pb.js","sourceRoot":"","sources":["../../src/ms-seguridad/seguridad.pb.ts"],"names":[],"mappings":";;;AACA,yDAAqE;AAGxD,QAAA,eAAe,GAAG,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"seguridad.pb.js","sourceRoot":"","sources":["../../src/ms-seguridad/seguridad.pb.ts"],"names":[],"mappings":";;;AACA,yDAAqE;AAGxD,QAAA,eAAe,GAAG,oBAAoB,CAAC;AAsTvC,QAAA,+BAA+B,GAAG,oBAAoB,CAAC;AAgGpE,SAAgB,iCAAiC;IAC/C,OAAO,UAAU,WAAqB;QACpC,MAAM,WAAW,GAAa;YAC5B,iBAAiB;YACjB,cAAc;YACd,eAAe;YACf,gBAAgB;YAChB,aAAa;YACb,0BAA0B;YAC1B,sBAAsB;YACtB,wBAAwB;YACxB,wBAAwB;YACxB,YAAY;YACZ,OAAO;YACP,wBAAwB;YACxB,kBAAkB;YAClB,QAAQ;YACR,iBAAiB;YACjB,YAAY;YACZ,UAAU;SACX,CAAC;QACF,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE;YAChC,MAAM,UAAU,GAAQ,OAAO,CAAC,wBAAwB,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxF,IAAA,0BAAU,EAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;SAC3F;QACD,MAAM,iBAAiB,GAAa,EAAE,CAAC;QACvC,KAAK,MAAM,MAAM,IAAI,iBAAiB,EAAE;YACtC,MAAM,UAAU,GAAQ,OAAO,CAAC,wBAAwB,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxF,IAAA,gCAAgB,EAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;SACjG;IACH,CAAC,CAAC;AACJ,CAAC;AA/BD,8EA+BC;AAEY,QAAA,sBAAsB,GAAG,kBAAkB,CAAC"}
|
@@ -259,12 +259,13 @@ message LoginResponse {
|
|
259
259
|
string oficina = 19;
|
260
260
|
int32 oficinaId = 20;
|
261
261
|
string municipio = 21;
|
262
|
-
int32
|
262
|
+
int32 municipioId = 22;
|
263
263
|
string entidad = 23;
|
264
264
|
int32 entidadId = 24;
|
265
265
|
int32 institucionId = 25;
|
266
266
|
string institucion = 26;
|
267
267
|
string departamento = 27;
|
268
|
+
int32 departamentoId = 28;
|
268
269
|
}
|
269
270
|
|
270
271
|
message App {
|