fiscalia_bo-nest-helpers 0.1.100 → 0.2.2

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.
@@ -113,7 +113,9 @@ exports.FilterHttpServiceResponse = (0, rxjs_1.catchError)((error) => {
113
113
  resp = {
114
114
  error: true,
115
115
  message: axiosResponseStatusMessages[error.response.status],
116
- response: null,
116
+ response: {
117
+ data: respData,
118
+ },
117
119
  status: error.response.status,
118
120
  };
119
121
  }
@@ -1 +1 @@
1
- {"version":3,"file":"http-service.pipes.js","sourceRoot":"","sources":["../../src/http-service/http-service.pipes.ts"],"names":[],"mappings":";;;AACA,+BAA4D;AAG5D,MAAM,2BAA2B,GAAG;IAClC,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,sBAAsB;IAC3B,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,oBAAoB;IACzB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,6BAA6B;IAClC,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,sBAAsB;IAC3B,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,sBAAsB;IAC3B,GAAG,EAAE,wBAAwB;IAC7B,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,sBAAsB;IAC3B,GAAG,EAAE,wBAAwB;IAC7B,GAAG,EAAE,sBAAsB;IAC3B,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,qBAAqB;IAC1B,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,kCAAkC;I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AAK,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;SACtG;aAAM,IAAI,KAAK,CAAC,QAAQ,EAAE;YACzB,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAW,CAAC;YAC5C,IAAI,OAAO,QAAQ,CAAC,MAAM,KAAK,QAAQ,IAAI,OAAO,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE;gBAC9E,IAAI,GAAG,QAA6B,CAAC;aACtC;iBAAM;gBACL,IAAI,GAAG;oBACL,KAAK,EAAE,IAAI;oBACX,OAAO,EAAE,2BAA2B,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;oBAC3D,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;qBACf;oBACD,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM;iBAC9B,CAAC;aACH;SACF;KACF;IACD,IAAI,IAAI,CAAC,OAAO,KAAK,kBAAkB;QAAE,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC9D,OAAO,IAAA,SAAE,EAAC,IAAI,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export * as MsWhatsApp from './ms-whatsapp';
22
22
  export * as MsPdf from './ms-pdf';
23
23
  export * as MsFiles from './ms-files';
24
24
  export * as MsAgetic from './ms-agetic';
25
+ export * as MsMarcaAgua from './ms-marca-agua';
25
26
  export * as CustomValidators from './custom-validators';
26
27
  export * as Decorators from './decorators';
27
28
  export * as Dtos from './dto';
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.SeguridadConvenio = exports.ExcelJS = exports.MsShortLink = exports.HttpService = exports.Helpers = exports.MsLogs = exports.MsRabbit = exports.RequestRestrict = exports.Dtos = exports.Decorators = exports.CustomValidators = exports.MsAgetic = exports.MsFiles = exports.MsPdf = exports.MsWhatsApp = exports.MsPersonas = exports.PermissionsGuard = exports.MsSeguridadHttpError = void 0;
17
+ exports.SeguridadConvenio = exports.ExcelJS = exports.MsShortLink = exports.HttpService = exports.Helpers = exports.MsLogs = exports.MsRabbit = exports.RequestRestrict = exports.Dtos = exports.Decorators = exports.CustomValidators = exports.MsMarcaAgua = exports.MsAgetic = exports.MsFiles = exports.MsPdf = exports.MsWhatsApp = exports.MsPersonas = exports.PermissionsGuard = exports.MsSeguridadHttpError = void 0;
18
18
  __exportStar(require("./ms-redis/ms-redis.module"), exports);
19
19
  __exportStar(require("./ms-redis/ms-redis.service"), exports);
20
20
  __exportStar(require("./ms-redis/datapass.interceptor"), exports);
@@ -41,6 +41,7 @@ exports.MsWhatsApp = require("./ms-whatsapp");
41
41
  exports.MsPdf = require("./ms-pdf");
42
42
  exports.MsFiles = require("./ms-files");
43
43
  exports.MsAgetic = require("./ms-agetic");
44
+ exports.MsMarcaAgua = require("./ms-marca-agua");
44
45
  exports.CustomValidators = require("./custom-validators");
45
46
  exports.Decorators = require("./decorators");
46
47
  exports.Dtos = require("./dto");
@@ -0,0 +1,3 @@
1
+ export * from './ms-marca-agua.module';
2
+ export * from './ms-marca-agua.service';
3
+ export * as Types from './types';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Types = void 0;
18
+ __exportStar(require("./ms-marca-agua.module"), exports);
19
+ __exportStar(require("./ms-marca-agua.service"), exports);
20
+ exports.Types = require("./types");
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ms-marca-agua/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,0DAAwC;AACxC,mCAAiC"}
@@ -0,0 +1,13 @@
1
+ import { DynamicModule } from '@nestjs/common';
2
+ type MsMarcaAguaModuleOptions = {
3
+ global?: boolean;
4
+ urlMsMarcaAgua: string;
5
+ maxBodyLength?: number;
6
+ timeout?: number;
7
+ maxContentLength?: number;
8
+ };
9
+ export declare class MsMarcaAguaModule {
10
+ static register(options?: MsMarcaAguaModuleOptions): DynamicModule;
11
+ static registerAsync(options: MsMarcaAguaModuleOptions): Promise<DynamicModule>;
12
+ }
13
+ export {};
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var MsMarcaAguaModule_1;
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.MsMarcaAguaModule = void 0;
11
+ const axios_1 = require("@nestjs/axios");
12
+ const common_1 = require("@nestjs/common");
13
+ const chalk_1 = require("chalk");
14
+ const ms_marca_agua_service_1 = require("./ms-marca-agua.service");
15
+ let MsMarcaAguaModule = MsMarcaAguaModule_1 = class MsMarcaAguaModule {
16
+ static register(options) {
17
+ const url = (options === null || options === void 0 ? void 0 : options.urlMsMarcaAgua) || process.env.ENV_SERVICE_MS_MARCA_AGUA;
18
+ if (!url)
19
+ console.warn(chalk_1.bold.red(`ENV_SERVICE_MS_MARCA_AGUA no definido en variables de entorno`));
20
+ if (!url)
21
+ return { module: MsMarcaAguaModule_1 };
22
+ return {
23
+ global: options.global,
24
+ module: MsMarcaAguaModule_1,
25
+ imports: [
26
+ axios_1.HttpModule.register({
27
+ baseURL: url,
28
+ timeout: options.timeout || 10000,
29
+ maxRedirects: 5,
30
+ maxBodyLength: options.maxBodyLength,
31
+ maxContentLength: options.maxContentLength,
32
+ }),
33
+ ],
34
+ providers: [ms_marca_agua_service_1.MsMarcaAguaService],
35
+ exports: [ms_marca_agua_service_1.MsMarcaAguaService],
36
+ };
37
+ }
38
+ static async registerAsync(options) {
39
+ const url = (options === null || options === void 0 ? void 0 : options.urlMsMarcaAgua) || process.env.ENV_SERVICE_MS_MARCA_AGUA;
40
+ if (!url)
41
+ console.warn(chalk_1.bold.red(`ENV_SERVICE_MS_MARCA_AGUA no definido en variables de entorno`));
42
+ if (!url)
43
+ return { module: MsMarcaAguaModule_1 };
44
+ return {
45
+ global: options.global,
46
+ module: MsMarcaAguaModule_1,
47
+ imports: [
48
+ axios_1.HttpModule.register({
49
+ baseURL: url,
50
+ timeout: options.timeout || 5000,
51
+ maxRedirects: 5,
52
+ maxBodyLength: options.maxBodyLength,
53
+ maxContentLength: options.maxContentLength,
54
+ }),
55
+ ],
56
+ providers: [ms_marca_agua_service_1.MsMarcaAguaService],
57
+ exports: [ms_marca_agua_service_1.MsMarcaAguaService],
58
+ };
59
+ }
60
+ };
61
+ MsMarcaAguaModule = MsMarcaAguaModule_1 = __decorate([
62
+ (0, common_1.Module)({})
63
+ ], MsMarcaAguaModule);
64
+ exports.MsMarcaAguaModule = MsMarcaAguaModule;
65
+ //# sourceMappingURL=ms-marca-agua.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ms-marca-agua.module.js","sourceRoot":"","sources":["../../src/ms-marca-agua/ms-marca-agua.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,yCAA2C;AAC3C,2CAAuD;AACvD,iCAA6B;AAC7B,mEAA6D;AAYtD,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAI5B,MAAM,CAAC,QAAQ,CAAC,OAAkC;QAChD,MAAM,GAAG,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,KAAI,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;QAC7E,IAAI,CAAC,GAAG;YACN,OAAO,CAAC,IAAI,CAAC,YAAI,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAC,CAAC;QAC1F,IAAI,CAAC,GAAG;YAAE,OAAO,EAAE,MAAM,EAAE,mBAAiB,EAAE,CAAC;QAE/C,OAAO;YACL,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,MAAM,EAAE,mBAAiB;YACzB,OAAO,EAAE;gBACP,kBAAU,CAAC,QAAQ,CAAC;oBAClB,OAAO,EAAE,GAAG;oBACZ,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,KAAK;oBACjC,YAAY,EAAE,CAAC;oBACf,aAAa,EAAE,OAAO,CAAC,aAAa;oBACpC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;iBAC3C,CAAC;aACH;YAED,SAAS,EAAE,CAAC,0CAAkB,CAAC;YAC/B,OAAO,EAAE,CAAC,0CAAkB,CAAC;SAC9B,CAAC;IACJ,CAAC;IAKD,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,OAAiC;QAC1D,MAAM,GAAG,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,KAAI,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;QAC7E,IAAI,CAAC,GAAG;YACN,OAAO,CAAC,IAAI,CAAC,YAAI,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAC,CAAC;QAC1F,IAAI,CAAC,GAAG;YAAE,OAAO,EAAE,MAAM,EAAE,mBAAiB,EAAE,CAAC;QAE/C,OAAO;YACL,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,MAAM,EAAE,mBAAiB;YACzB,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;YAED,SAAS,EAAE,CAAC,0CAAkB,CAAC;YAC/B,OAAO,EAAE,CAAC,0CAAkB,CAAC;SAC9B,CAAC;IACJ,CAAC;CACF,CAAA;AAtDY,iBAAiB;IAD7B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,iBAAiB,CAsD7B;AAtDY,8CAAiB"}
@@ -0,0 +1,11 @@
1
+ import 'dotenv/config';
2
+ import { HttpService } from '@nestjs/axios';
3
+ import { AplicarMarcaAguaDto, IWaterMarkBody } from './types';
4
+ import { IResponseDTO } from 'src/types';
5
+ export declare class MsMarcaAguaService {
6
+ private readonly httpService;
7
+ private requestHttpService;
8
+ constructor(httpService: HttpService);
9
+ aplicarMarca(inputDto: AplicarMarcaAguaDto): Promise<IResponseDTO<string>>;
10
+ aplicarMarcaConDB(inputDto: IWaterMarkBody): Promise<IResponseDTO<string>>;
11
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MsMarcaAguaService = void 0;
13
+ require("dotenv/config");
14
+ const common_1 = require("@nestjs/common");
15
+ const axios_1 = require("@nestjs/axios");
16
+ const request_helper_1 = require("../helpers/request.helper");
17
+ let MsMarcaAguaService = class MsMarcaAguaService {
18
+ constructor(httpService) {
19
+ this.httpService = httpService;
20
+ this.requestHttpService = (0, request_helper_1.newHttpServiceRequest)(httpService);
21
+ }
22
+ async aplicarMarca(inputDto) {
23
+ const result = await this.requestHttpService({
24
+ url: 'api/remarcarsinbd',
25
+ method: 'post',
26
+ data: inputDto,
27
+ });
28
+ if (result.error)
29
+ return result;
30
+ return result;
31
+ }
32
+ async aplicarMarcaConDB(inputDto) {
33
+ const result = await this.requestHttpService({
34
+ url: 'api/remarcar',
35
+ method: 'post',
36
+ data: inputDto,
37
+ });
38
+ if (result.error)
39
+ return result;
40
+ return result;
41
+ }
42
+ };
43
+ MsMarcaAguaService = __decorate([
44
+ (0, common_1.Injectable)(),
45
+ __metadata("design:paramtypes", [axios_1.HttpService])
46
+ ], MsMarcaAguaService);
47
+ exports.MsMarcaAguaService = MsMarcaAguaService;
48
+ //# sourceMappingURL=ms-marca-agua.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ms-marca-agua.service.js","sourceRoot":"","sources":["../../src/ms-marca-agua/ms-marca-agua.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAuB;AACvB,2CAA4C;AAC5C,yCAA4C;AAE5C,8DAAmE;AAI5D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAG7B,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QACnD,IAAI,CAAC,kBAAkB,GAAG,IAAA,sCAAqB,EAAC,WAAW,CAAC,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,QAA6B;QAC9C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC;YAC3C,GAAG,EAAE,mBAAmB;YACxB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,QAAQ;SACf,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,KAAK;YAAE,OAAO,MAAM,CAAC;QAChC,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,QAAwB;QAC9C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC;YAC3C,GAAG,EAAE,cAAc;YACnB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,QAAQ;SACf,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,KAAK;YAAE,OAAO,MAAM,CAAC;QAChC,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AA5BY,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;qCAI+B,mBAAW;GAH1C,kBAAkB,CA4B9B;AA5BY,gDAAkB"}
@@ -0,0 +1,35 @@
1
+ declare class Datos {
2
+ descripcion?: string;
3
+ tablaNombre?: string;
4
+ tablaId?: number;
5
+ linkRecurso?: string;
6
+ nombreApp?: string;
7
+ nombreModulo?: string;
8
+ tritonUserId?: number;
9
+ funcionarioId?: number;
10
+ nombreCompleto?: string;
11
+ ci?: string;
12
+ ip?: string;
13
+ so?: string;
14
+ browser?: string;
15
+ device?: string;
16
+ latitud?: string;
17
+ longitud?: string;
18
+ departamento?: string;
19
+ municipio?: string;
20
+ institucion?: string;
21
+ oficina?: string;
22
+ division?: string;
23
+ masInfo?: string;
24
+ }
25
+ export declare class IWaterMarkBody {
26
+ pdf: string;
27
+ entrada: number;
28
+ datos: Datos;
29
+ }
30
+ export declare class AplicarMarcaAguaDto {
31
+ pdf: string;
32
+ entrada: number;
33
+ mensaje: string;
34
+ }
35
+ export {};
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AplicarMarcaAguaDto = exports.IWaterMarkBody = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ const validator_sms_1 = require("../custom-validators/validator.sms");
17
+ class Datos {
18
+ }
19
+ class IWaterMarkBody {
20
+ }
21
+ exports.IWaterMarkBody = IWaterMarkBody;
22
+ class AplicarMarcaAguaDto {
23
+ }
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)(),
26
+ (0, class_transformer_1.Type)(() => String),
27
+ (0, class_validator_1.IsString)({ message: (v) => (0, validator_sms_1.smsIsString)(v) }),
28
+ (0, class_validator_1.IsNotEmpty)({ message: validator_sms_1.smsNotEmpty }),
29
+ (0, swagger_1.ApiProperty)({ description: 'numero de documento', required: true }),
30
+ __metadata("design:type", String)
31
+ ], AplicarMarcaAguaDto.prototype, "pdf", void 0);
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)(),
34
+ (0, class_transformer_1.Type)(() => Number),
35
+ (0, class_validator_1.IsNumber)({ allowInfinity: false, allowNaN: false, maxDecimalPlaces: 0 }, { message: (v) => (0, validator_sms_1.smsInteger)(v) }),
36
+ (0, swagger_1.ApiProperty)({
37
+ description: 'tipo de entrada',
38
+ required: true,
39
+ }),
40
+ __metadata("design:type", Number)
41
+ ], AplicarMarcaAguaDto.prototype, "entrada", void 0);
42
+ __decorate([
43
+ (0, class_transformer_1.Expose)(),
44
+ (0, class_transformer_1.Transform)(({ value }) => (value ? value.toString().toUpperCase().trim() : value)),
45
+ (0, class_transformer_1.Type)(() => String),
46
+ (0, class_validator_1.IsString)({ message: (v) => (0, validator_sms_1.smsIsString)(v) }),
47
+ (0, class_validator_1.IsNotEmpty)({ message: validator_sms_1.smsNotEmpty }),
48
+ (0, swagger_1.ApiProperty)({ description: 'numero de documento', required: true }),
49
+ __metadata("design:type", String)
50
+ ], AplicarMarcaAguaDto.prototype, "mensaje", void 0);
51
+ exports.AplicarMarcaAguaDto = AplicarMarcaAguaDto;
52
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/ms-marca-agua/types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,6CAA8C;AAC9C,yDAA4D;AAC5D,qDAAiE;AACjE,sEAA2F;AAE3F,MAAM,KAAK;CAuBV;AACD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAGD,MAAa,mBAAmB;CA2B/B;AA1BC;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,2BAAW,EAAC,CAAC,CAAC,EAAE,CAAC;IAC5C,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,2BAAW,EAAE,CAAC;IACpC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACxD;AAEZ;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,EACP,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,EAAE,EAC9D,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,0BAAU,EAAC,CAAC,CAAC,EAAE,CAClC;IACA,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,iBAAiB;QAC9B,QAAQ,EAAE,IAAI;KACf,CAAC;;oDACc;AAEhB;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACjF,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,2BAAW,EAAC,CAAC,CAAC,EAAE,CAAC;IAC5C,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,2BAAW,EAAE,CAAC;IACpC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACpD;AA1BlB,kDA2BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiscalia_bo-nest-helpers",
3
- "version": "0.1.100",
3
+ "version": "0.2.2",
4
4
  "description": "Helpers y servicios para NestJS",
5
5
  "author": "UTIC - Ministerio Público",
6
6
  "contact": {
@@ -14,6 +14,7 @@
14
14
  "dist/ms-redis/*",
15
15
  "dist/ms-files/*",
16
16
  "dist/ms-personas/*",
17
+ "dist/ms-marca-agua/*",
17
18
  "dist/ms-whatsapp/*",
18
19
  "dist/ms-agetic/*",
19
20
  "dist/ms-pdf/*",