sigo-entities 1.2.548 → 1.2.549
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/.claude/scheduled_tasks.lock +1 -0
- package/dist/index.d.mts +49 -1
- package/dist/index.d.ts +49 -1
- package/dist/index.js +408 -255
- package/dist/index.mjs +912 -751
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -635,12 +635,17 @@ __export(index_exports, {
|
|
|
635
635
|
PlantaPeru9112ClaroDTO: () => PlantaPeru9112ClaroDTO,
|
|
636
636
|
PlantaSomacylDTO: () => PlantaSomacylDTO,
|
|
637
637
|
PreAcceptedDto: () => PreAcceptedDto,
|
|
638
|
+
PreLiquidateInstalledMaterialCOLOMBIA9612Dto: () => PreLiquidateInstalledMaterialCOLOMBIA9612Dto,
|
|
638
639
|
PreLiquidateLineCHILE9512Dto: () => PreLiquidateLineCHILE9512Dto,
|
|
640
|
+
PreLiquidateLineCOLOMBIA9612Dto: () => PreLiquidateLineCOLOMBIA9612Dto,
|
|
639
641
|
PreLiquidateLineDto: () => PreLiquidateLineDto,
|
|
640
642
|
PreLiquidateMaterialDto: () => PreLiquidateMaterialDto,
|
|
641
643
|
PreLiquidateNewLaborDto: () => PreLiquidateNewLaborDto,
|
|
644
|
+
PreLiquidateRemovedMaterialCOLOMBIA9612Dto: () => PreLiquidateRemovedMaterialCOLOMBIA9612Dto,
|
|
645
|
+
PreLiquidateSubMOCOLOMBIA9612Dto: () => PreLiquidateSubMOCOLOMBIA9612Dto,
|
|
642
646
|
PreLiquidateUnitDto: () => PreLiquidateUnitDto,
|
|
643
647
|
PreLiquidateValuationCHILE9512Dto: () => PreLiquidateValuationCHILE9512Dto,
|
|
648
|
+
PreLiquidateValuationCOLOMBIA9612Dto: () => PreLiquidateValuationCOLOMBIA9612Dto,
|
|
644
649
|
PreLiquidateValuationDto: () => PreLiquidateValuationDto,
|
|
645
650
|
PrecioActualDTO: () => PrecioActualDTO,
|
|
646
651
|
PrecioAgencia_mam_onnetENTITY: () => PrecioAgencia_mam_onnetENTITY,
|
|
@@ -10108,6 +10113,7 @@ var SEUpdateAnexosTrabajoRequestBody = class {
|
|
|
10108
10113
|
ID_Valorizacion;
|
|
10109
10114
|
ID_Trabajo;
|
|
10110
10115
|
Anexos;
|
|
10116
|
+
SubsanarDocumentacion;
|
|
10111
10117
|
};
|
|
10112
10118
|
__decorateClass([
|
|
10113
10119
|
(0, import_class_validator176.IsDefined)({ message: "es requerido" }),
|
|
@@ -10129,6 +10135,11 @@ __decorateClass([
|
|
|
10129
10135
|
(0, import_class_validator176.ValidateNested)({ each: true }),
|
|
10130
10136
|
(0, import_class_transformer178.Expose)()
|
|
10131
10137
|
], SEUpdateAnexosTrabajoRequestBody.prototype, "Anexos", 2);
|
|
10138
|
+
__decorateClass([
|
|
10139
|
+
(0, import_class_validator176.IsOptional)(),
|
|
10140
|
+
(0, import_class_validator176.IsBoolean)({ message: "debe ser un booleano" }),
|
|
10141
|
+
(0, import_class_transformer178.Expose)()
|
|
10142
|
+
], SEUpdateAnexosTrabajoRequestBody.prototype, "SubsanarDocumentacion", 2);
|
|
10132
10143
|
|
|
10133
10144
|
// src/programados/procesos/trabajo/shared/dto/reject-valuation-request-body.ts
|
|
10134
10145
|
var import_class_transformer179 = require("class-transformer");
|
|
@@ -58226,21 +58237,158 @@ __decorateClass([
|
|
|
58226
58237
|
(0, import_class_transformer900.Expose)()
|
|
58227
58238
|
], PreLiquidateValuationCHILE9512Dto.prototype, "Lineas", 2);
|
|
58228
58239
|
|
|
58229
|
-
// src/v2/dtos/
|
|
58240
|
+
// src/v2/dtos/PreLiquidateValuationCOLOMBIA9612.ts
|
|
58230
58241
|
var import_class_transformer901 = require("class-transformer");
|
|
58231
58242
|
var import_class_validator877 = require("class-validator");
|
|
58243
|
+
var trim5 = ({ value }) => typeof value === "string" ? value.trim() : value;
|
|
58244
|
+
var PreLiquidateSubMOCOLOMBIA9612Dto = class {
|
|
58245
|
+
Codigo = "";
|
|
58246
|
+
Cantidad = 0;
|
|
58247
|
+
};
|
|
58248
|
+
__decorateClass([
|
|
58249
|
+
(0, import_class_transformer901.Transform)(trim5),
|
|
58250
|
+
(0, import_class_validator877.IsDefined)({ message: "Seleccione una Sub MO" }),
|
|
58251
|
+
(0, import_class_validator877.IsString)({ message: "Seleccione una Sub MO" }),
|
|
58252
|
+
(0, import_class_validator877.IsNotEmpty)({ message: "Seleccione una Sub MO" }),
|
|
58253
|
+
(0, import_class_transformer901.Expose)()
|
|
58254
|
+
], PreLiquidateSubMOCOLOMBIA9612Dto.prototype, "Codigo", 2);
|
|
58255
|
+
__decorateClass([
|
|
58256
|
+
(0, import_class_transformer901.Type)(() => Number),
|
|
58257
|
+
(0, import_class_validator877.IsDefined)({ message: "Ingrese la cantidad de la Sub MO" }),
|
|
58258
|
+
(0, import_class_validator877.IsInt)({ message: "La cantidad de la Sub MO debe ser un n\xFAmero entero" }),
|
|
58259
|
+
(0, import_class_validator877.IsPositive)({ message: "La cantidad de la Sub MO debe ser mayor a 0" }),
|
|
58260
|
+
(0, import_class_transformer901.Expose)()
|
|
58261
|
+
], PreLiquidateSubMOCOLOMBIA9612Dto.prototype, "Cantidad", 2);
|
|
58262
|
+
var PreLiquidateInstalledMaterialCOLOMBIA9612Dto = class {
|
|
58263
|
+
ID_StockPersonal = 0;
|
|
58264
|
+
Cantidad = 0;
|
|
58265
|
+
};
|
|
58266
|
+
__decorateClass([
|
|
58267
|
+
(0, import_class_transformer901.Type)(() => Number),
|
|
58268
|
+
(0, import_class_validator877.IsDefined)({ message: "Seleccione un material" }),
|
|
58269
|
+
(0, import_class_validator877.IsNumber)({}, { message: "Seleccione un material" }),
|
|
58270
|
+
(0, import_class_validator877.Min)(1, { message: "Seleccione un material" }),
|
|
58271
|
+
(0, import_class_transformer901.Expose)()
|
|
58272
|
+
], PreLiquidateInstalledMaterialCOLOMBIA9612Dto.prototype, "ID_StockPersonal", 2);
|
|
58273
|
+
__decorateClass([
|
|
58274
|
+
(0, import_class_transformer901.Type)(() => Number),
|
|
58275
|
+
(0, import_class_validator877.IsDefined)({ message: "Hay cantidades vacias o con valor 0 en lista de Materiales" }),
|
|
58276
|
+
(0, import_class_validator877.IsNumber)({}, { message: "Hay cantidades vacias o con valor 0 en lista de Materiales" }),
|
|
58277
|
+
(0, import_class_validator877.IsPositive)({ message: "Hay cantidades vacias o con valor 0 en lista de Materiales" }),
|
|
58278
|
+
(0, import_class_transformer901.Expose)()
|
|
58279
|
+
], PreLiquidateInstalledMaterialCOLOMBIA9612Dto.prototype, "Cantidad", 2);
|
|
58280
|
+
var PreLiquidateRemovedMaterialCOLOMBIA9612Dto = class {
|
|
58281
|
+
Codigo = "";
|
|
58282
|
+
Cantidad = 0;
|
|
58283
|
+
};
|
|
58284
|
+
__decorateClass([
|
|
58285
|
+
(0, import_class_transformer901.Transform)(trim5),
|
|
58286
|
+
(0, import_class_validator877.IsDefined)({ message: "Seleccione un material" }),
|
|
58287
|
+
(0, import_class_validator877.IsString)({ message: "Seleccione un material" }),
|
|
58288
|
+
(0, import_class_validator877.IsNotEmpty)({ message: "Seleccione un material" }),
|
|
58289
|
+
(0, import_class_transformer901.Expose)()
|
|
58290
|
+
], PreLiquidateRemovedMaterialCOLOMBIA9612Dto.prototype, "Codigo", 2);
|
|
58291
|
+
__decorateClass([
|
|
58292
|
+
(0, import_class_transformer901.Type)(() => Number),
|
|
58293
|
+
(0, import_class_validator877.IsDefined)({ message: "Hay cantidades vacias o con valor 0 en lista de Materiales" }),
|
|
58294
|
+
(0, import_class_validator877.IsNumber)({}, { message: "Hay cantidades vacias o con valor 0 en lista de Materiales" }),
|
|
58295
|
+
(0, import_class_validator877.IsPositive)({ message: "Hay cantidades vacias o con valor 0 en lista de Materiales" }),
|
|
58296
|
+
(0, import_class_transformer901.Expose)()
|
|
58297
|
+
], PreLiquidateRemovedMaterialCOLOMBIA9612Dto.prototype, "Cantidad", 2);
|
|
58298
|
+
var PreLiquidateLineCOLOMBIA9612Dto = class {
|
|
58299
|
+
LineaCodigoCub = "";
|
|
58300
|
+
CantidadMO = 0;
|
|
58301
|
+
SubManoObra = [];
|
|
58302
|
+
MaterialesInstalados = [];
|
|
58303
|
+
MaterialesRetirados = [];
|
|
58304
|
+
Anexos = [];
|
|
58305
|
+
};
|
|
58306
|
+
__decorateClass([
|
|
58307
|
+
(0, import_class_transformer901.Transform)(trim5),
|
|
58308
|
+
(0, import_class_validator877.IsDefined)({ message: "Seleccione una Valorizacion" }),
|
|
58309
|
+
(0, import_class_validator877.IsString)({ message: "Seleccione una Valorizacion" }),
|
|
58310
|
+
(0, import_class_validator877.IsNotEmpty)({ message: "Seleccione una Valorizacion" }),
|
|
58311
|
+
(0, import_class_transformer901.Expose)()
|
|
58312
|
+
], PreLiquidateLineCOLOMBIA9612Dto.prototype, "LineaCodigoCub", 2);
|
|
58313
|
+
__decorateClass([
|
|
58314
|
+
(0, import_class_transformer901.Type)(() => Number),
|
|
58315
|
+
(0, import_class_validator877.IsDefined)({ message: "Ingrese una cantidad MO a Preliquidar" }),
|
|
58316
|
+
(0, import_class_validator877.IsNumber)({}, { message: "Ingrese una cantidad MO a Preliquidar" }),
|
|
58317
|
+
(0, import_class_validator877.Min)(0, { message: "Ingrese una cantidad MO a Preliquidar mayor o igual a 0" }),
|
|
58318
|
+
(0, import_class_transformer901.Expose)()
|
|
58319
|
+
], PreLiquidateLineCOLOMBIA9612Dto.prototype, "CantidadMO", 2);
|
|
58320
|
+
__decorateClass([
|
|
58321
|
+
(0, import_class_validator877.IsArray)({ message: "La Sub MO debe ser un arreglo" }),
|
|
58322
|
+
(0, import_class_transformer901.Type)(() => PreLiquidateSubMOCOLOMBIA9612Dto),
|
|
58323
|
+
(0, import_class_validator877.ValidateNested)({ each: true }),
|
|
58324
|
+
(0, import_class_transformer901.Expose)()
|
|
58325
|
+
], PreLiquidateLineCOLOMBIA9612Dto.prototype, "SubManoObra", 2);
|
|
58326
|
+
__decorateClass([
|
|
58327
|
+
(0, import_class_validator877.IsArray)({ message: "Los materiales instalados deben ser un arreglo" }),
|
|
58328
|
+
(0, import_class_transformer901.Type)(() => PreLiquidateInstalledMaterialCOLOMBIA9612Dto),
|
|
58329
|
+
(0, import_class_validator877.ValidateNested)({ each: true }),
|
|
58330
|
+
(0, import_class_transformer901.Expose)()
|
|
58331
|
+
], PreLiquidateLineCOLOMBIA9612Dto.prototype, "MaterialesInstalados", 2);
|
|
58332
|
+
__decorateClass([
|
|
58333
|
+
(0, import_class_validator877.IsArray)({ message: "Los materiales retirados deben ser un arreglo" }),
|
|
58334
|
+
(0, import_class_transformer901.Type)(() => PreLiquidateRemovedMaterialCOLOMBIA9612Dto),
|
|
58335
|
+
(0, import_class_validator877.ValidateNested)({ each: true }),
|
|
58336
|
+
(0, import_class_transformer901.Expose)()
|
|
58337
|
+
], PreLiquidateLineCOLOMBIA9612Dto.prototype, "MaterialesRetirados", 2);
|
|
58338
|
+
__decorateClass([
|
|
58339
|
+
(0, import_class_validator877.IsArray)({ message: "Los anexos deben ser un arreglo" }),
|
|
58340
|
+
(0, import_class_transformer901.Type)(() => FilesDocDTO),
|
|
58341
|
+
(0, import_class_validator877.ValidateNested)({ each: true }),
|
|
58342
|
+
(0, import_class_transformer901.Expose)()
|
|
58343
|
+
], PreLiquidateLineCOLOMBIA9612Dto.prototype, "Anexos", 2);
|
|
58344
|
+
var PreLiquidateValuationCOLOMBIA9612Dto = class {
|
|
58345
|
+
ID_Operacion = "";
|
|
58346
|
+
CodigoParteDiario;
|
|
58347
|
+
ID_ValorizacionRechazadaMetraje;
|
|
58348
|
+
Lineas = [];
|
|
58349
|
+
};
|
|
58350
|
+
__decorateClass([
|
|
58351
|
+
(0, import_class_transformer901.Transform)(trim5),
|
|
58352
|
+
(0, import_class_validator877.IsDefined)({ message: "El ID de la operaci\xF3n es requerido" }),
|
|
58353
|
+
(0, import_class_validator877.IsString)({ message: "El ID de la operaci\xF3n debe ser una cadena de texto" }),
|
|
58354
|
+
(0, import_class_validator877.IsNotEmpty)({ message: "El ID de la operaci\xF3n es requerido" }),
|
|
58355
|
+
(0, import_class_transformer901.Expose)()
|
|
58356
|
+
], PreLiquidateValuationCOLOMBIA9612Dto.prototype, "ID_Operacion", 2);
|
|
58357
|
+
__decorateClass([
|
|
58358
|
+
(0, import_class_validator877.IsOptional)(),
|
|
58359
|
+
(0, import_class_validator877.IsString)({ message: "El c\xF3digo del parte diario debe ser una cadena de texto" }),
|
|
58360
|
+
(0, import_class_validator877.Matches)(/^\d{8}$/, { message: "El c\xF3digo del parte diario debe tener el formato YYYYMMDD" }),
|
|
58361
|
+
(0, import_class_transformer901.Expose)()
|
|
58362
|
+
], PreLiquidateValuationCOLOMBIA9612Dto.prototype, "CodigoParteDiario", 2);
|
|
58363
|
+
__decorateClass([
|
|
58364
|
+
(0, import_class_validator877.IsOptional)(),
|
|
58365
|
+
(0, import_class_transformer901.Type)(() => Number),
|
|
58366
|
+
(0, import_class_validator877.IsNumber)({}, { message: "La valorizaci\xF3n rechazada debe ser un n\xFAmero" }),
|
|
58367
|
+
(0, import_class_transformer901.Expose)()
|
|
58368
|
+
], PreLiquidateValuationCOLOMBIA9612Dto.prototype, "ID_ValorizacionRechazadaMetraje", 2);
|
|
58369
|
+
__decorateClass([
|
|
58370
|
+
(0, import_class_validator877.IsArray)({ message: "Las l\xEDneas deben ser un arreglo" }),
|
|
58371
|
+
(0, import_class_validator877.ArrayMinSize)(1, { message: "No ha agregado ninguna Valorizaci\xF3n." }),
|
|
58372
|
+
(0, import_class_transformer901.Type)(() => PreLiquidateLineCOLOMBIA9612Dto),
|
|
58373
|
+
(0, import_class_validator877.ValidateNested)({ each: true }),
|
|
58374
|
+
(0, import_class_transformer901.Expose)()
|
|
58375
|
+
], PreLiquidateValuationCOLOMBIA9612Dto.prototype, "Lineas", 2);
|
|
58376
|
+
|
|
58377
|
+
// src/v2/dtos/ChangeJobState.ts
|
|
58378
|
+
var import_class_transformer902 = require("class-transformer");
|
|
58379
|
+
var import_class_validator878 = require("class-validator");
|
|
58232
58380
|
var ChangeJobStateDto = class {
|
|
58233
58381
|
type = "OC";
|
|
58234
58382
|
};
|
|
58235
58383
|
__decorateClass([
|
|
58236
|
-
(0,
|
|
58237
|
-
(0,
|
|
58238
|
-
(0,
|
|
58384
|
+
(0, import_class_validator878.IsDefined)({ message: "El tipo de cierre es requerido" }),
|
|
58385
|
+
(0, import_class_validator878.IsIn)(HOME_PASS_STATE_TYPES, { message: `El tipo de cierre debe ser uno de: ${HOME_PASS_STATE_TYPES.join(", ")}` }),
|
|
58386
|
+
(0, import_class_transformer902.Expose)()
|
|
58239
58387
|
], ChangeJobStateDto.prototype, "type", 2);
|
|
58240
58388
|
|
|
58241
58389
|
// src/v2/dtos/SaveDailyReport.ts
|
|
58242
|
-
var
|
|
58243
|
-
var
|
|
58390
|
+
var import_class_transformer903 = require("class-transformer");
|
|
58391
|
+
var import_class_validator879 = require("class-validator");
|
|
58244
58392
|
var SaveDailyReportPhotoDto = class {
|
|
58245
58393
|
Ruta = "";
|
|
58246
58394
|
img = "";
|
|
@@ -58248,26 +58396,26 @@ var SaveDailyReportPhotoDto = class {
|
|
|
58248
58396
|
Fecha = /* @__PURE__ */ new Date();
|
|
58249
58397
|
};
|
|
58250
58398
|
__decorateClass([
|
|
58251
|
-
(0,
|
|
58252
|
-
(0,
|
|
58253
|
-
(0,
|
|
58254
|
-
(0,
|
|
58399
|
+
(0, import_class_validator879.IsDefined)({ message: "La ruta de la foto es requerida" }),
|
|
58400
|
+
(0, import_class_validator879.IsString)({ message: "La ruta de la foto debe ser un texto" }),
|
|
58401
|
+
(0, import_class_validator879.Length)(1, 500, { message: "La ruta de la foto debe tener entre 1 y 500 caracteres" }),
|
|
58402
|
+
(0, import_class_transformer903.Expose)()
|
|
58255
58403
|
], SaveDailyReportPhotoDto.prototype, "Ruta", 2);
|
|
58256
58404
|
__decorateClass([
|
|
58257
|
-
(0,
|
|
58258
|
-
(0,
|
|
58259
|
-
(0,
|
|
58260
|
-
(0,
|
|
58405
|
+
(0, import_class_validator879.IsDefined)({ message: "El nombre de la foto es requerido" }),
|
|
58406
|
+
(0, import_class_validator879.IsString)({ message: "El nombre de la foto debe ser un texto" }),
|
|
58407
|
+
(0, import_class_validator879.Length)(1, 500, { message: "El nombre de la foto debe tener entre 1 y 500 caracteres" }),
|
|
58408
|
+
(0, import_class_transformer903.Expose)()
|
|
58261
58409
|
], SaveDailyReportPhotoDto.prototype, "img", 2);
|
|
58262
58410
|
__decorateClass([
|
|
58263
|
-
(0,
|
|
58264
|
-
(0,
|
|
58265
|
-
(0,
|
|
58411
|
+
(0, import_class_transformer903.Type)(() => CoordenadasDTO),
|
|
58412
|
+
(0, import_class_validator879.ValidateNested)(),
|
|
58413
|
+
(0, import_class_transformer903.Expose)()
|
|
58266
58414
|
], SaveDailyReportPhotoDto.prototype, "Coordenadas", 2);
|
|
58267
58415
|
__decorateClass([
|
|
58268
|
-
(0,
|
|
58269
|
-
(0,
|
|
58270
|
-
(0,
|
|
58416
|
+
(0, import_class_transformer903.Type)(() => Date),
|
|
58417
|
+
(0, import_class_validator879.IsDate)({ message: "La fecha de la foto no es v\xE1lida" }),
|
|
58418
|
+
(0, import_class_transformer903.Expose)()
|
|
58271
58419
|
], SaveDailyReportPhotoDto.prototype, "Fecha", 2);
|
|
58272
58420
|
var SaveDailyReportDto = class {
|
|
58273
58421
|
Codigo = "";
|
|
@@ -58276,52 +58424,52 @@ var SaveDailyReportDto = class {
|
|
|
58276
58424
|
Fotos = [];
|
|
58277
58425
|
};
|
|
58278
58426
|
__decorateClass([
|
|
58279
|
-
(0,
|
|
58280
|
-
(0,
|
|
58281
|
-
(0,
|
|
58427
|
+
(0, import_class_validator879.IsDefined)({ message: "El c\xF3digo del parte diario es requerido" }),
|
|
58428
|
+
(0, import_class_validator879.Matches)(/^\d{8}$/, { message: "El c\xF3digo del parte diario debe tener el formato YYYYMMDD" }),
|
|
58429
|
+
(0, import_class_transformer903.Expose)()
|
|
58282
58430
|
], SaveDailyReportDto.prototype, "Codigo", 2);
|
|
58283
58431
|
__decorateClass([
|
|
58284
|
-
(0,
|
|
58285
|
-
(0,
|
|
58286
|
-
(0,
|
|
58287
|
-
(0,
|
|
58288
|
-
(0,
|
|
58289
|
-
(0,
|
|
58432
|
+
(0, import_class_validator879.IsDefined)({ message: "Ingrese una Novedad (al menos 5 caracteres)" }),
|
|
58433
|
+
(0, import_class_validator879.IsString)({ message: "La novedad debe ser un texto" }),
|
|
58434
|
+
(0, import_class_validator879.MinLength)(5, { message: "Debe tener al menos 5 caracteres" }),
|
|
58435
|
+
(0, import_class_validator879.MaxLength)(300, { message: "La novedad debe tener como m\xE1ximo 300 caracteres" }),
|
|
58436
|
+
(0, import_class_validator879.Matches)(/^[a-zA-Z0-9 ñÑ.]*$/, { message: "S\xF3lo se permiten letras, n\xFAmeros, espacios y puntos" }),
|
|
58437
|
+
(0, import_class_transformer903.Expose)()
|
|
58290
58438
|
], SaveDailyReportDto.prototype, "Novedad", 2);
|
|
58291
58439
|
__decorateClass([
|
|
58292
|
-
(0,
|
|
58293
|
-
(0,
|
|
58294
|
-
(0,
|
|
58440
|
+
(0, import_class_validator879.IsArray)({ message: "El personal debe ser un arreglo" }),
|
|
58441
|
+
(0, import_class_validator879.IsString)({ each: true, message: "Cada personal debe ser una identificaci\xF3n" }),
|
|
58442
|
+
(0, import_class_transformer903.Expose)()
|
|
58295
58443
|
], SaveDailyReportDto.prototype, "Personal", 2);
|
|
58296
58444
|
__decorateClass([
|
|
58297
|
-
(0,
|
|
58298
|
-
(0,
|
|
58299
|
-
(0,
|
|
58300
|
-
(0,
|
|
58301
|
-
(0,
|
|
58445
|
+
(0, import_class_validator879.IsArray)({ message: "Las fotos deben ser un arreglo" }),
|
|
58446
|
+
(0, import_class_validator879.ArrayMinSize)(2, { message: "Fotos es requerido. Al menos debe adjuntar dos fotos." }),
|
|
58447
|
+
(0, import_class_transformer903.Type)(() => SaveDailyReportPhotoDto),
|
|
58448
|
+
(0, import_class_validator879.ValidateNested)({ each: true }),
|
|
58449
|
+
(0, import_class_transformer903.Expose)()
|
|
58302
58450
|
], SaveDailyReportDto.prototype, "Fotos", 2);
|
|
58303
58451
|
|
|
58304
58452
|
// src/v2/dtos/SearchJobWorkOrder.ts
|
|
58305
|
-
var
|
|
58306
|
-
var
|
|
58453
|
+
var import_class_transformer904 = require("class-transformer");
|
|
58454
|
+
var import_class_validator880 = require("class-validator");
|
|
58307
58455
|
var SearchJobWorkOrderDto = class {
|
|
58308
58456
|
OrdenTrabajo = "";
|
|
58309
58457
|
};
|
|
58310
58458
|
__decorateClass([
|
|
58311
|
-
(0,
|
|
58312
|
-
(0,
|
|
58313
|
-
(0,
|
|
58314
|
-
(0,
|
|
58315
|
-
(0,
|
|
58316
|
-
(0,
|
|
58459
|
+
(0, import_class_transformer904.Transform)(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58460
|
+
(0, import_class_validator880.IsDefined)({ message: "Ingrese una Orden de Trabajo" }),
|
|
58461
|
+
(0, import_class_validator880.IsString)({ message: "Ingrese una Orden de Trabajo" }),
|
|
58462
|
+
(0, import_class_validator880.MinLength)(5, { message: "Orden de Trabajo debe tener al menos 5 caracteres" }),
|
|
58463
|
+
(0, import_class_validator880.Matches)(/^[a-zA-Z0-9\s-]+$/, { message: "Orden de Trabajo solo puede contener letras, n\xFAmeros, guiones y espacios" }),
|
|
58464
|
+
(0, import_class_transformer904.Expose)()
|
|
58317
58465
|
], SearchJobWorkOrderDto.prototype, "OrdenTrabajo", 2);
|
|
58318
58466
|
|
|
58319
58467
|
// src/v2/dtos/SearchDateRange.ts
|
|
58320
|
-
var
|
|
58321
|
-
var
|
|
58468
|
+
var import_class_transformer905 = require("class-transformer");
|
|
58469
|
+
var import_class_validator881 = require("class-validator");
|
|
58322
58470
|
function IsNotAfter(property, validationOptions) {
|
|
58323
58471
|
return function(object, propertyName) {
|
|
58324
|
-
(0,
|
|
58472
|
+
(0, import_class_validator881.registerDecorator)({
|
|
58325
58473
|
name: "isNotAfter",
|
|
58326
58474
|
target: object.constructor,
|
|
58327
58475
|
propertyName,
|
|
@@ -58340,7 +58488,7 @@ var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
|
58340
58488
|
var MAX_SEARCH_RANGE_DAYS = 14;
|
|
58341
58489
|
function MaxDaysFrom(property, days, validationOptions) {
|
|
58342
58490
|
return function(object, propertyName) {
|
|
58343
|
-
(0,
|
|
58491
|
+
(0, import_class_validator881.registerDecorator)({
|
|
58344
58492
|
name: "maxDaysFrom",
|
|
58345
58493
|
target: object.constructor,
|
|
58346
58494
|
propertyName,
|
|
@@ -58361,38 +58509,38 @@ var SearchDateRangeDto = class {
|
|
|
58361
58509
|
to;
|
|
58362
58510
|
};
|
|
58363
58511
|
__decorateClass([
|
|
58364
|
-
(0,
|
|
58365
|
-
(0,
|
|
58512
|
+
(0, import_class_validator881.IsNotEmpty)({ message: "La fecha desde es requerida" }),
|
|
58513
|
+
(0, import_class_validator881.IsDateString)({}, { message: "La fecha desde no es v\xE1lida" }),
|
|
58366
58514
|
IsNotAfter("to", { message: "La fecha desde no puede ser mayor a la fecha hasta" }),
|
|
58367
|
-
(0,
|
|
58515
|
+
(0, import_class_transformer905.Expose)()
|
|
58368
58516
|
], SearchDateRangeDto.prototype, "from", 2);
|
|
58369
58517
|
__decorateClass([
|
|
58370
|
-
(0,
|
|
58371
|
-
(0,
|
|
58518
|
+
(0, import_class_validator881.IsNotEmpty)({ message: "La fecha hasta es requerida" }),
|
|
58519
|
+
(0, import_class_validator881.IsDateString)({}, { message: "La fecha hasta no es v\xE1lida" }),
|
|
58372
58520
|
MaxDaysFrom("from", MAX_SEARCH_RANGE_DAYS, { message: `El rango no puede superar las 2 semanas (${MAX_SEARCH_RANGE_DAYS} d\xEDas)` }),
|
|
58373
|
-
(0,
|
|
58521
|
+
(0, import_class_transformer905.Expose)()
|
|
58374
58522
|
], SearchDateRangeDto.prototype, "to", 2);
|
|
58375
58523
|
|
|
58376
58524
|
// src/v2/entities/Delegation.ts
|
|
58377
|
-
var
|
|
58378
|
-
var
|
|
58525
|
+
var import_class_transformer907 = require("class-transformer");
|
|
58526
|
+
var import_class_validator883 = require("class-validator");
|
|
58379
58527
|
|
|
58380
58528
|
// src/v2/entities/Base.ts
|
|
58381
|
-
var
|
|
58382
|
-
var
|
|
58529
|
+
var import_class_transformer906 = require("class-transformer");
|
|
58530
|
+
var import_class_validator882 = require("class-validator");
|
|
58383
58531
|
var BaseEntity = class {
|
|
58384
58532
|
_id;
|
|
58385
58533
|
active;
|
|
58386
58534
|
};
|
|
58387
58535
|
__decorateClass([
|
|
58388
|
-
(0,
|
|
58389
|
-
(0,
|
|
58390
|
-
(0,
|
|
58536
|
+
(0, import_class_validator882.IsDefined)({ message: 'La propiedad "_id" es obligatoria.' }),
|
|
58537
|
+
(0, import_class_validator882.IsUUID)("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
58538
|
+
(0, import_class_transformer906.Expose)()
|
|
58391
58539
|
], BaseEntity.prototype, "_id", 2);
|
|
58392
58540
|
__decorateClass([
|
|
58393
|
-
(0,
|
|
58394
|
-
(0,
|
|
58395
|
-
(0,
|
|
58541
|
+
(0, import_class_validator882.IsDefined)({ message: 'La propiedad "activo" es obligatoria.' }),
|
|
58542
|
+
(0, import_class_validator882.IsBoolean)({ message: 'La propiedad "activo" debe ser un valor booleano.' }),
|
|
58543
|
+
(0, import_class_transformer906.Expose)()
|
|
58396
58544
|
], BaseEntity.prototype, "active", 2);
|
|
58397
58545
|
|
|
58398
58546
|
// src/v2/entities/Delegation.ts
|
|
@@ -58402,26 +58550,26 @@ var DelegationEntity = class extends BaseEntity {
|
|
|
58402
58550
|
name;
|
|
58403
58551
|
};
|
|
58404
58552
|
__decorateClass([
|
|
58405
|
-
(0,
|
|
58406
|
-
(0,
|
|
58407
|
-
(0,
|
|
58553
|
+
(0, import_class_validator883.IsDefined)({ message: "El campo pais es obligatorio" }),
|
|
58554
|
+
(0, import_class_validator883.IsUUID)("4", { message: "El campo pais debe ser un UUID v4 v\xE1lido." }),
|
|
58555
|
+
(0, import_class_transformer907.Expose)()
|
|
58408
58556
|
], DelegationEntity.prototype, "countryId", 2);
|
|
58409
58557
|
__decorateClass([
|
|
58410
|
-
(0,
|
|
58411
|
-
(0,
|
|
58412
|
-
(0,
|
|
58413
|
-
(0,
|
|
58558
|
+
(0, import_class_validator883.IsDefined)({ message: "El campo c\xF3digo es obligatorio." }),
|
|
58559
|
+
(0, import_class_validator883.IsString)({ message: "El campo c\xF3digo debe ser una cadena de texto." }),
|
|
58560
|
+
(0, import_class_validator883.IsNotEmpty)({ message: "El campo c\xF3digo no puede estar vac\xEDo." }),
|
|
58561
|
+
(0, import_class_transformer907.Expose)()
|
|
58414
58562
|
], DelegationEntity.prototype, "code", 2);
|
|
58415
58563
|
__decorateClass([
|
|
58416
|
-
(0,
|
|
58417
|
-
(0,
|
|
58418
|
-
(0,
|
|
58419
|
-
(0,
|
|
58564
|
+
(0, import_class_validator883.IsDefined)({ message: "El campo nombre es obligatorio." }),
|
|
58565
|
+
(0, import_class_validator883.IsString)({ message: "El campo nombre debe ser una cadena de texto." }),
|
|
58566
|
+
(0, import_class_validator883.IsNotEmpty)({ message: "El campo nombre no puede estar vac\xEDo." }),
|
|
58567
|
+
(0, import_class_transformer907.Expose)()
|
|
58420
58568
|
], DelegationEntity.prototype, "name", 2);
|
|
58421
58569
|
|
|
58422
58570
|
// src/v2/entities/User.ts
|
|
58423
|
-
var
|
|
58424
|
-
var
|
|
58571
|
+
var import_class_validator884 = require("class-validator");
|
|
58572
|
+
var import_class_transformer908 = require("class-transformer");
|
|
58425
58573
|
var UserEntity = class extends BaseEntity {
|
|
58426
58574
|
email;
|
|
58427
58575
|
password;
|
|
@@ -58436,126 +58584,126 @@ var UserEntity = class extends BaseEntity {
|
|
|
58436
58584
|
resourceSystem;
|
|
58437
58585
|
};
|
|
58438
58586
|
__decorateClass([
|
|
58439
|
-
(0,
|
|
58440
|
-
(0,
|
|
58441
|
-
(0,
|
|
58442
|
-
(0,
|
|
58587
|
+
(0, import_class_validator884.IsDefined)({ message: "El correo es requerido" }),
|
|
58588
|
+
(0, import_class_validator884.IsEmail)({}, { message: "El correo es invalido" }),
|
|
58589
|
+
(0, import_class_transformer908.Transform)(({ value }) => typeof value === "string" ? value.trim().toLowerCase() : value),
|
|
58590
|
+
(0, import_class_transformer908.Expose)()
|
|
58443
58591
|
], UserEntity.prototype, "email", 2);
|
|
58444
58592
|
__decorateClass([
|
|
58445
|
-
(0,
|
|
58446
|
-
(0,
|
|
58447
|
-
(0,
|
|
58448
|
-
(0,
|
|
58593
|
+
(0, import_class_transformer908.Transform)(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58594
|
+
(0, import_class_validator884.IsDefined)({ message: "La contrase\xF1a es requerida" }),
|
|
58595
|
+
(0, import_class_validator884.IsString)({ message: "La contrase\xF1a debe ser una cadena de texto" }),
|
|
58596
|
+
(0, import_class_transformer908.Expose)()
|
|
58449
58597
|
], UserEntity.prototype, "password", 2);
|
|
58450
58598
|
__decorateClass([
|
|
58451
|
-
(0,
|
|
58452
|
-
(0,
|
|
58453
|
-
(0,
|
|
58454
|
-
(0,
|
|
58599
|
+
(0, import_class_transformer908.Transform)(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58600
|
+
(0, import_class_validator884.IsDefined)({ message: "El apellido paterno es requerido" }),
|
|
58601
|
+
(0, import_class_validator884.IsString)({ message: "El apellido paterno debe ser una cadena de texto" }),
|
|
58602
|
+
(0, import_class_transformer908.Expose)()
|
|
58455
58603
|
], UserEntity.prototype, "paternalLastName", 2);
|
|
58456
58604
|
__decorateClass([
|
|
58457
|
-
(0,
|
|
58458
|
-
(0,
|
|
58459
|
-
(0,
|
|
58460
|
-
(0,
|
|
58605
|
+
(0, import_class_transformer908.Transform)(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58606
|
+
(0, import_class_validator884.IsDefined)({ message: "El apellido materno es requerido" }),
|
|
58607
|
+
(0, import_class_validator884.IsString)({ message: "El apellido materno debe ser una cadena de texto" }),
|
|
58608
|
+
(0, import_class_transformer908.Expose)()
|
|
58461
58609
|
], UserEntity.prototype, "maternalLastName", 2);
|
|
58462
58610
|
__decorateClass([
|
|
58463
|
-
(0,
|
|
58464
|
-
(0,
|
|
58465
|
-
(0,
|
|
58466
|
-
(0,
|
|
58611
|
+
(0, import_class_transformer908.Transform)(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58612
|
+
(0, import_class_validator884.IsDefined)({ message: "El nombre es requerido" }),
|
|
58613
|
+
(0, import_class_validator884.IsString)({ message: "El nombre debe ser una cadena de texto" }),
|
|
58614
|
+
(0, import_class_transformer908.Expose)()
|
|
58467
58615
|
], UserEntity.prototype, "firstNames", 2);
|
|
58468
58616
|
__decorateClass([
|
|
58469
|
-
(0,
|
|
58470
|
-
(0,
|
|
58471
|
-
(0,
|
|
58472
|
-
(0,
|
|
58617
|
+
(0, import_class_transformer908.Transform)(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58618
|
+
(0, import_class_validator884.IsDefined)({ message: "El n\xFAmero de identificaci\xF3n es requerido" }),
|
|
58619
|
+
(0, import_class_validator884.IsString)({ message: "El n\xFAmero de identificaci\xF3n debe ser una cadena de texto" }),
|
|
58620
|
+
(0, import_class_transformer908.Expose)()
|
|
58473
58621
|
], UserEntity.prototype, "identification", 2);
|
|
58474
58622
|
__decorateClass([
|
|
58475
|
-
(0,
|
|
58476
|
-
(0,
|
|
58477
|
-
(0,
|
|
58478
|
-
(0,
|
|
58479
|
-
(0,
|
|
58623
|
+
(0, import_class_validator884.IsDefined)({ message: "El campo empresas es requerido" }),
|
|
58624
|
+
(0, import_class_validator884.IsArray)({ message: "El campo empresas debe ser un array" }),
|
|
58625
|
+
(0, import_class_transformer908.Type)(() => CompanyDto),
|
|
58626
|
+
(0, import_class_validator884.ValidateNested)({ each: true }),
|
|
58627
|
+
(0, import_class_transformer908.Expose)()
|
|
58480
58628
|
], UserEntity.prototype, "companies", 2);
|
|
58481
58629
|
__decorateClass([
|
|
58482
|
-
(0,
|
|
58483
|
-
(0,
|
|
58484
|
-
(0,
|
|
58485
|
-
(0,
|
|
58630
|
+
(0, import_class_validator884.IsDefined)({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
58631
|
+
(0, import_class_validator884.IsArray)({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
58632
|
+
(0, import_class_validator884.IsUUID)("4", { each: true, message: "El campo delegaci\xF3n debe ser un UUID v4 v\xE1lido." }),
|
|
58633
|
+
(0, import_class_transformer908.Expose)()
|
|
58486
58634
|
], UserEntity.prototype, "delegationIds", 2);
|
|
58487
58635
|
__decorateClass([
|
|
58488
|
-
(0,
|
|
58489
|
-
(0,
|
|
58490
|
-
(0,
|
|
58636
|
+
(0, import_class_validator884.IsDefined)({ message: 'La propiedad "root" es obligatoria.' }),
|
|
58637
|
+
(0, import_class_validator884.IsBoolean)({ message: 'La propiedad "root" debe ser un valor booleano.' }),
|
|
58638
|
+
(0, import_class_transformer908.Expose)()
|
|
58491
58639
|
], UserEntity.prototype, "root", 2);
|
|
58492
58640
|
__decorateClass([
|
|
58493
|
-
(0,
|
|
58494
|
-
(0,
|
|
58495
|
-
(0,
|
|
58496
|
-
(0,
|
|
58641
|
+
(0, import_class_validator884.IsDefined)({ message: "El campo Perfil es obligatorio" }),
|
|
58642
|
+
(0, import_class_validator884.ValidateIf)((_, value) => value !== ""),
|
|
58643
|
+
(0, import_class_validator884.IsUUID)("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
58644
|
+
(0, import_class_transformer908.Expose)()
|
|
58497
58645
|
], UserEntity.prototype, "profileId", 2);
|
|
58498
58646
|
__decorateClass([
|
|
58499
|
-
(0,
|
|
58500
|
-
(0,
|
|
58501
|
-
(0,
|
|
58502
|
-
(0,
|
|
58503
|
-
(0,
|
|
58647
|
+
(0, import_class_validator884.IsDefined)({ message: "Resurso sistema es obligatoria" }),
|
|
58648
|
+
(0, import_class_transformer908.Type)(() => ResourceSystemDto),
|
|
58649
|
+
(0, import_class_validator884.ValidateNested)({ each: true }),
|
|
58650
|
+
(0, import_class_validator884.IsArray)({ message: "Recurso sistema debe ser un array" }),
|
|
58651
|
+
(0, import_class_transformer908.Expose)()
|
|
58504
58652
|
], UserEntity.prototype, "resourceSystem", 2);
|
|
58505
58653
|
|
|
58506
58654
|
// src/v2/entities/Profile.ts
|
|
58507
|
-
var
|
|
58508
|
-
var
|
|
58655
|
+
var import_class_transformer909 = require("class-transformer");
|
|
58656
|
+
var import_class_validator885 = require("class-validator");
|
|
58509
58657
|
var ProfileEntity = class extends BaseEntity {
|
|
58510
58658
|
name;
|
|
58511
58659
|
description;
|
|
58512
58660
|
systemOptions;
|
|
58513
58661
|
};
|
|
58514
58662
|
__decorateClass([
|
|
58515
|
-
(0,
|
|
58516
|
-
(0,
|
|
58517
|
-
(0,
|
|
58518
|
-
(0,
|
|
58519
|
-
(0,
|
|
58663
|
+
(0, import_class_validator885.IsDefined)({ message: "El campo nombre es requerido" }),
|
|
58664
|
+
(0, import_class_transformer909.Transform)(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58665
|
+
(0, import_class_validator885.IsString)({ message: "debe ser una cadena de texto" }),
|
|
58666
|
+
(0, import_class_validator885.Length)(4, 50, { message: "Nombre de perfil debe tener entre 4 y 50 caracteres." }),
|
|
58667
|
+
(0, import_class_transformer909.Expose)()
|
|
58520
58668
|
], ProfileEntity.prototype, "name", 2);
|
|
58521
58669
|
__decorateClass([
|
|
58522
|
-
(0,
|
|
58523
|
-
(0,
|
|
58524
|
-
(0,
|
|
58525
|
-
(0,
|
|
58526
|
-
(0,
|
|
58670
|
+
(0, import_class_validator885.IsDefined)({ message: "El campo descripci\xF3n es requerido" }),
|
|
58671
|
+
(0, import_class_transformer909.Transform)(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58672
|
+
(0, import_class_validator885.IsString)({ message: "debe ser una cadena de texto" }),
|
|
58673
|
+
(0, import_class_validator885.Length)(4, 50, { message: "Descripci\xF3n de perfil debe tener entre 4 y 50 caracteres." }),
|
|
58674
|
+
(0, import_class_transformer909.Expose)()
|
|
58527
58675
|
], ProfileEntity.prototype, "description", 2);
|
|
58528
58676
|
__decorateClass([
|
|
58529
|
-
(0,
|
|
58530
|
-
(0,
|
|
58531
|
-
(0,
|
|
58532
|
-
(0,
|
|
58533
|
-
(0,
|
|
58677
|
+
(0, import_class_validator885.IsDefined)({ message: "El campo opciones de sistema es requerido" }),
|
|
58678
|
+
(0, import_class_validator885.IsArray)({ message: "Opciones de sistema debe ser un arreglo" }),
|
|
58679
|
+
(0, import_class_validator885.IsString)({ each: true, message: "Cada elemento de opciones de sistema debe ser una cadena de texto v\xE1lida" }),
|
|
58680
|
+
(0, import_class_validator885.MinLength)(1, { each: true, message: "Cada opci\xF3n de sistema debe tener al menos un car\xE1cter" }),
|
|
58681
|
+
(0, import_class_transformer909.Expose)()
|
|
58534
58682
|
], ProfileEntity.prototype, "systemOptions", 2);
|
|
58535
58683
|
|
|
58536
58684
|
// src/v2/entities/Country.ts
|
|
58537
|
-
var
|
|
58538
|
-
var
|
|
58685
|
+
var import_class_transformer910 = require("class-transformer");
|
|
58686
|
+
var import_class_validator886 = require("class-validator");
|
|
58539
58687
|
var CountryEntity = class extends BaseEntity {
|
|
58540
58688
|
code;
|
|
58541
58689
|
name;
|
|
58542
58690
|
};
|
|
58543
58691
|
__decorateClass([
|
|
58544
|
-
(0,
|
|
58545
|
-
(0,
|
|
58546
|
-
(0,
|
|
58547
|
-
(0,
|
|
58692
|
+
(0, import_class_validator886.IsDefined)({ message: "El campo c\xF3digo es obligatorio." }),
|
|
58693
|
+
(0, import_class_validator886.IsString)({ message: "El campo c\xF3digo debe ser una cadena de texto." }),
|
|
58694
|
+
(0, import_class_validator886.IsNotEmpty)({ message: "El campo c\xF3digo no puede estar vac\xEDo." }),
|
|
58695
|
+
(0, import_class_transformer910.Expose)()
|
|
58548
58696
|
], CountryEntity.prototype, "code", 2);
|
|
58549
58697
|
__decorateClass([
|
|
58550
|
-
(0,
|
|
58551
|
-
(0,
|
|
58552
|
-
(0,
|
|
58553
|
-
(0,
|
|
58698
|
+
(0, import_class_validator886.IsDefined)({ message: "El campo nombre es obligatorio." }),
|
|
58699
|
+
(0, import_class_validator886.IsString)({ message: "El campo nombre debe ser una cadena de texto." }),
|
|
58700
|
+
(0, import_class_validator886.IsNotEmpty)({ message: "El campo nombre no puede estar vac\xEDo." }),
|
|
58701
|
+
(0, import_class_transformer910.Expose)()
|
|
58554
58702
|
], CountryEntity.prototype, "name", 2);
|
|
58555
58703
|
|
|
58556
58704
|
// src/v2/entities/Company.ts
|
|
58557
|
-
var
|
|
58558
|
-
var
|
|
58705
|
+
var import_class_transformer911 = require("class-transformer");
|
|
58706
|
+
var import_class_validator887 = require("class-validator");
|
|
58559
58707
|
var CompanyEntity = class extends BaseEntity {
|
|
58560
58708
|
companyType;
|
|
58561
58709
|
identification;
|
|
@@ -58569,87 +58717,87 @@ var CompanyEntity = class extends BaseEntity {
|
|
|
58569
58717
|
countryId;
|
|
58570
58718
|
};
|
|
58571
58719
|
__decorateClass([
|
|
58572
|
-
(0,
|
|
58573
|
-
(0,
|
|
58574
|
-
(0,
|
|
58720
|
+
(0, import_class_validator887.IsDefined)({ message: "El tipo de empresa es requerido" }),
|
|
58721
|
+
(0, import_class_validator887.IsEnum)(CompanyType, { message: "El tipo de empresa debe ser ${eachValueInArray}" }),
|
|
58722
|
+
(0, import_class_transformer911.Expose)()
|
|
58575
58723
|
], CompanyEntity.prototype, "companyType", 2);
|
|
58576
58724
|
__decorateClass([
|
|
58577
|
-
(0,
|
|
58578
|
-
(0,
|
|
58579
|
-
(0,
|
|
58580
|
-
(0,
|
|
58725
|
+
(0, import_class_validator887.IsDefined)({ message: "La identificaci\xF3n es requerida" }),
|
|
58726
|
+
(0, import_class_validator887.IsString)({ message: "La identificaci\xF3n debe ser una cadena de texto" }),
|
|
58727
|
+
(0, import_class_validator887.IsNotEmpty)({ message: "La identificaci\xF3n no debe estar vac\xEDa" }),
|
|
58728
|
+
(0, import_class_transformer911.Expose)()
|
|
58581
58729
|
], CompanyEntity.prototype, "identification", 2);
|
|
58582
58730
|
__decorateClass([
|
|
58583
|
-
(0,
|
|
58584
|
-
(0,
|
|
58585
|
-
(0,
|
|
58586
|
-
(0,
|
|
58731
|
+
(0, import_class_validator887.IsDefined)({ message: "El c\xF3digo es requerido" }),
|
|
58732
|
+
(0, import_class_validator887.IsString)({ message: "El c\xF3digo debe ser una cadena de texto" }),
|
|
58733
|
+
(0, import_class_validator887.IsNotEmpty)({ message: "El c\xF3digo no debe estar vac\xEDo" }),
|
|
58734
|
+
(0, import_class_transformer911.Expose)()
|
|
58587
58735
|
], CompanyEntity.prototype, "code", 2);
|
|
58588
58736
|
__decorateClass([
|
|
58589
|
-
(0,
|
|
58590
|
-
(0,
|
|
58591
|
-
(0,
|
|
58592
|
-
(0,
|
|
58737
|
+
(0, import_class_validator887.IsDefined)({ message: "El nombre legal es requerido" }),
|
|
58738
|
+
(0, import_class_validator887.IsString)({ message: "El nombre legal debe ser una cadena de texto" }),
|
|
58739
|
+
(0, import_class_validator887.IsNotEmpty)({ message: "El nombre legal no debe estar vac\xEDo" }),
|
|
58740
|
+
(0, import_class_transformer911.Expose)()
|
|
58593
58741
|
], CompanyEntity.prototype, "legalName", 2);
|
|
58594
58742
|
__decorateClass([
|
|
58595
|
-
(0,
|
|
58596
|
-
(0,
|
|
58597
|
-
(0,
|
|
58598
|
-
(0,
|
|
58743
|
+
(0, import_class_validator887.IsDefined)({ message: "El nombre comercial es requerido" }),
|
|
58744
|
+
(0, import_class_validator887.IsString)({ message: "El nombre comercial debe ser una cadena de texto" }),
|
|
58745
|
+
(0, import_class_validator887.IsNotEmpty)({ message: "El nombre comercial no debe estar vac\xEDo" }),
|
|
58746
|
+
(0, import_class_transformer911.Expose)()
|
|
58599
58747
|
], CompanyEntity.prototype, "tradeName", 2);
|
|
58600
58748
|
__decorateClass([
|
|
58601
|
-
(0,
|
|
58602
|
-
(0,
|
|
58603
|
-
(0,
|
|
58749
|
+
(0, import_class_validator887.IsDefined)({ message: "La propiedad es propia es requerida" }),
|
|
58750
|
+
(0, import_class_validator887.IsBoolean)({ message: "La propiedad es propia debe ser un booleano" }),
|
|
58751
|
+
(0, import_class_transformer911.Expose)()
|
|
58604
58752
|
], CompanyEntity.prototype, "isOwn", 2);
|
|
58605
58753
|
__decorateClass([
|
|
58606
|
-
(0,
|
|
58607
|
-
(0,
|
|
58608
|
-
(0,
|
|
58609
|
-
(0,
|
|
58754
|
+
(0, import_class_validator887.IsDefined)({ message: "La direcci\xF3n es requerida" }),
|
|
58755
|
+
(0, import_class_validator887.IsString)({ message: "La direcci\xF3n debe ser una cadena de texto" }),
|
|
58756
|
+
(0, import_class_validator887.IsNotEmpty)({ message: "La direcci\xF3n no debe estar vac\xEDa" }),
|
|
58757
|
+
(0, import_class_transformer911.Expose)()
|
|
58610
58758
|
], CompanyEntity.prototype, "address", 2);
|
|
58611
58759
|
__decorateClass([
|
|
58612
|
-
(0,
|
|
58613
|
-
(0,
|
|
58614
|
-
(0,
|
|
58615
|
-
(0,
|
|
58760
|
+
(0, import_class_validator887.IsDefined)({ message: "El campo correos electr\xF3nicos es requerido" }),
|
|
58761
|
+
(0, import_class_validator887.IsArray)({ message: "El campo correos electr\xF3nicos debe ser un arreglo" }),
|
|
58762
|
+
(0, import_class_validator887.IsEmail)({}, { each: true, message: "Cada correo electr\xF3nico debe ser v\xE1lido" }),
|
|
58763
|
+
(0, import_class_transformer911.Expose)()
|
|
58616
58764
|
], CompanyEntity.prototype, "emails", 2);
|
|
58617
58765
|
__decorateClass([
|
|
58618
|
-
(0,
|
|
58619
|
-
(0,
|
|
58620
|
-
(0,
|
|
58621
|
-
(0,
|
|
58622
|
-
(0,
|
|
58766
|
+
(0, import_class_validator887.IsDefined)({ message: "El campo tel\xE9fonos es requeridos" }),
|
|
58767
|
+
(0, import_class_validator887.IsArray)({ message: "El campo tel\xE9fonos debe ser un arreglo" }),
|
|
58768
|
+
(0, import_class_validator887.IsString)({ each: true, message: "Cada tel\xE9fono debe ser una cadena de texto" }),
|
|
58769
|
+
(0, import_class_validator887.IsNotEmpty)({ each: true, message: "Cada tel\xE9fono no debe estar vac\xEDo" }),
|
|
58770
|
+
(0, import_class_transformer911.Expose)()
|
|
58623
58771
|
], CompanyEntity.prototype, "phones", 2);
|
|
58624
58772
|
__decorateClass([
|
|
58625
|
-
(0,
|
|
58626
|
-
(0,
|
|
58627
|
-
(0,
|
|
58773
|
+
(0, import_class_validator887.IsDefined)({ message: "El campo pa\xEDs es requerido" }),
|
|
58774
|
+
(0, import_class_validator887.IsUUID)("4", { message: "El campo pa\xEDs debe ser un UUID" }),
|
|
58775
|
+
(0, import_class_transformer911.Expose)()
|
|
58628
58776
|
], CompanyEntity.prototype, "countryId", 2);
|
|
58629
58777
|
|
|
58630
58778
|
// src/v2/entities/ThemeConfigCountry.ts
|
|
58631
|
-
var
|
|
58632
|
-
var
|
|
58779
|
+
var import_class_transformer913 = require("class-transformer");
|
|
58780
|
+
var import_class_validator889 = require("class-validator");
|
|
58633
58781
|
|
|
58634
58782
|
// src/v2/shared-dto/ThemeCountryManualDTO.ts
|
|
58635
|
-
var
|
|
58636
|
-
var
|
|
58783
|
+
var import_class_transformer912 = require("class-transformer");
|
|
58784
|
+
var import_class_validator888 = require("class-validator");
|
|
58637
58785
|
var ThemeCountryManualDTO2 = class {
|
|
58638
58786
|
Codigo = "";
|
|
58639
58787
|
Delegacion = "";
|
|
58640
58788
|
Ruta = "";
|
|
58641
58789
|
};
|
|
58642
58790
|
__decorateClass([
|
|
58643
|
-
(0,
|
|
58644
|
-
(0,
|
|
58791
|
+
(0, import_class_validator888.IsString)(),
|
|
58792
|
+
(0, import_class_transformer912.Expose)()
|
|
58645
58793
|
], ThemeCountryManualDTO2.prototype, "Codigo", 2);
|
|
58646
58794
|
__decorateClass([
|
|
58647
|
-
(0,
|
|
58648
|
-
(0,
|
|
58795
|
+
(0, import_class_validator888.IsString)(),
|
|
58796
|
+
(0, import_class_transformer912.Expose)()
|
|
58649
58797
|
], ThemeCountryManualDTO2.prototype, "Delegacion", 2);
|
|
58650
58798
|
__decorateClass([
|
|
58651
|
-
(0,
|
|
58652
|
-
(0,
|
|
58799
|
+
(0, import_class_validator888.IsString)(),
|
|
58800
|
+
(0, import_class_transformer912.Expose)()
|
|
58653
58801
|
], ThemeCountryManualDTO2.prototype, "Ruta", 2);
|
|
58654
58802
|
|
|
58655
58803
|
// src/v2/entities/ThemeConfigCountry.ts
|
|
@@ -58664,46 +58812,46 @@ var ThemeConfigCountryEntity = class extends BaseEntity {
|
|
|
58664
58812
|
Pais = new CodigoNombreDTO4();
|
|
58665
58813
|
};
|
|
58666
58814
|
__decorateClass([
|
|
58667
|
-
(0,
|
|
58668
|
-
(0,
|
|
58815
|
+
(0, import_class_validator889.IsNumber)(),
|
|
58816
|
+
(0, import_class_transformer913.Expose)()
|
|
58669
58817
|
], ThemeConfigCountryEntity.prototype, "ID_TemeCountry", 2);
|
|
58670
58818
|
__decorateClass([
|
|
58671
|
-
(0,
|
|
58672
|
-
(0,
|
|
58819
|
+
(0, import_class_validator889.IsString)(),
|
|
58820
|
+
(0, import_class_transformer913.Expose)()
|
|
58673
58821
|
], ThemeConfigCountryEntity.prototype, "Color", 2);
|
|
58674
58822
|
__decorateClass([
|
|
58675
|
-
(0,
|
|
58676
|
-
(0,
|
|
58823
|
+
(0, import_class_validator889.IsString)(),
|
|
58824
|
+
(0, import_class_transformer913.Expose)()
|
|
58677
58825
|
], ThemeConfigCountryEntity.prototype, "TextFooterLeft", 2);
|
|
58678
58826
|
__decorateClass([
|
|
58679
|
-
(0,
|
|
58680
|
-
(0,
|
|
58827
|
+
(0, import_class_validator889.IsString)(),
|
|
58828
|
+
(0, import_class_transformer913.Expose)()
|
|
58681
58829
|
], ThemeConfigCountryEntity.prototype, "TextFooterRight", 2);
|
|
58682
58830
|
__decorateClass([
|
|
58683
|
-
(0,
|
|
58684
|
-
(0,
|
|
58685
|
-
(0,
|
|
58831
|
+
(0, import_class_validator889.ValidateNested)(),
|
|
58832
|
+
(0, import_class_transformer913.Type)(() => ImgLogoNavBarDTO2),
|
|
58833
|
+
(0, import_class_transformer913.Expose)()
|
|
58686
58834
|
], ThemeConfigCountryEntity.prototype, "ImgLogoNavBar", 2);
|
|
58687
58835
|
__decorateClass([
|
|
58688
|
-
(0,
|
|
58689
|
-
(0,
|
|
58690
|
-
(0,
|
|
58691
|
-
(0,
|
|
58836
|
+
(0, import_class_validator889.IsArray)(),
|
|
58837
|
+
(0, import_class_transformer913.Type)(() => ThemeCountryManualDTO2),
|
|
58838
|
+
(0, import_class_validator889.ValidateNested)({ each: true }),
|
|
58839
|
+
(0, import_class_transformer913.Expose)()
|
|
58692
58840
|
], ThemeConfigCountryEntity.prototype, "Manuales", 2);
|
|
58693
58841
|
__decorateClass([
|
|
58694
|
-
(0,
|
|
58695
|
-
(0,
|
|
58696
|
-
(0,
|
|
58842
|
+
(0, import_class_validator889.ValidateNested)(),
|
|
58843
|
+
(0, import_class_transformer913.Type)(() => EstadoDTO2),
|
|
58844
|
+
(0, import_class_transformer913.Expose)()
|
|
58697
58845
|
], ThemeConfigCountryEntity.prototype, "Estado", 2);
|
|
58698
58846
|
__decorateClass([
|
|
58699
|
-
(0,
|
|
58700
|
-
(0,
|
|
58701
|
-
(0,
|
|
58847
|
+
(0, import_class_validator889.ValidateNested)(),
|
|
58848
|
+
(0, import_class_transformer913.Type)(() => CodigoNombreDTO4),
|
|
58849
|
+
(0, import_class_transformer913.Expose)()
|
|
58702
58850
|
], ThemeConfigCountryEntity.prototype, "Pais", 2);
|
|
58703
58851
|
|
|
58704
58852
|
// src/v2/entities/ThemeConfigUser.ts
|
|
58705
|
-
var
|
|
58706
|
-
var
|
|
58853
|
+
var import_class_transformer914 = require("class-transformer");
|
|
58854
|
+
var import_class_validator890 = require("class-validator");
|
|
58707
58855
|
var ThemeConfigUserEntity = class {
|
|
58708
58856
|
_id;
|
|
58709
58857
|
active = true;
|
|
@@ -58715,47 +58863,47 @@ var ThemeConfigUserEntity = class {
|
|
|
58715
58863
|
Favoritos = [];
|
|
58716
58864
|
};
|
|
58717
58865
|
__decorateClass([
|
|
58718
|
-
(0,
|
|
58719
|
-
(0,
|
|
58866
|
+
(0, import_class_validator890.IsOptional)(),
|
|
58867
|
+
(0, import_class_transformer914.Expose)()
|
|
58720
58868
|
], ThemeConfigUserEntity.prototype, "_id", 2);
|
|
58721
58869
|
__decorateClass([
|
|
58722
|
-
(0,
|
|
58723
|
-
(0,
|
|
58724
|
-
(0,
|
|
58870
|
+
(0, import_class_validator890.IsDefined)({ message: 'La propiedad "activo" es obligatoria.' }),
|
|
58871
|
+
(0, import_class_validator890.IsBoolean)({ message: 'La propiedad "activo" debe ser un valor booleano.' }),
|
|
58872
|
+
(0, import_class_transformer914.Expose)()
|
|
58725
58873
|
], ThemeConfigUserEntity.prototype, "active", 2);
|
|
58726
58874
|
__decorateClass([
|
|
58727
|
-
(0,
|
|
58728
|
-
(0,
|
|
58875
|
+
(0, import_class_validator890.IsNumber)(),
|
|
58876
|
+
(0, import_class_transformer914.Expose)()
|
|
58729
58877
|
], ThemeConfigUserEntity.prototype, "ID_Theme", 2);
|
|
58730
58878
|
__decorateClass([
|
|
58731
|
-
(0,
|
|
58732
|
-
(0,
|
|
58879
|
+
(0, import_class_validator890.IsString)(),
|
|
58880
|
+
(0, import_class_transformer914.Expose)()
|
|
58733
58881
|
], ThemeConfigUserEntity.prototype, "Identificacion", 2);
|
|
58734
58882
|
__decorateClass([
|
|
58735
|
-
(0,
|
|
58736
|
-
(0,
|
|
58883
|
+
(0, import_class_validator890.IsString)(),
|
|
58884
|
+
(0, import_class_transformer914.Expose)()
|
|
58737
58885
|
], ThemeConfigUserEntity.prototype, "Color", 2);
|
|
58738
58886
|
__decorateClass([
|
|
58739
|
-
(0,
|
|
58740
|
-
(0,
|
|
58741
|
-
(0,
|
|
58887
|
+
(0, import_class_validator890.IsOptional)(),
|
|
58888
|
+
(0, import_class_validator890.IsString)(),
|
|
58889
|
+
(0, import_class_transformer914.Expose)()
|
|
58742
58890
|
], ThemeConfigUserEntity.prototype, "Language", 2);
|
|
58743
58891
|
__decorateClass([
|
|
58744
|
-
(0,
|
|
58745
|
-
(0,
|
|
58746
|
-
(0,
|
|
58892
|
+
(0, import_class_validator890.ValidateNested)(),
|
|
58893
|
+
(0, import_class_transformer914.Type)(() => EstadoDTO2),
|
|
58894
|
+
(0, import_class_transformer914.Expose)()
|
|
58747
58895
|
], ThemeConfigUserEntity.prototype, "Estado", 2);
|
|
58748
58896
|
__decorateClass([
|
|
58749
|
-
(0,
|
|
58750
|
-
(0,
|
|
58751
|
-
(0,
|
|
58752
|
-
(0,
|
|
58753
|
-
(0,
|
|
58897
|
+
(0, import_class_validator890.IsOptional)(),
|
|
58898
|
+
(0, import_class_validator890.IsArray)(),
|
|
58899
|
+
(0, import_class_validator890.ValidateNested)({ each: true }),
|
|
58900
|
+
(0, import_class_transformer914.Type)(() => FavoritoDTO2),
|
|
58901
|
+
(0, import_class_transformer914.Expose)()
|
|
58754
58902
|
], ThemeConfigUserEntity.prototype, "Favoritos", 2);
|
|
58755
58903
|
|
|
58756
58904
|
// src/v2/utils/validateCustom.ts
|
|
58757
|
-
var
|
|
58758
|
-
var
|
|
58905
|
+
var import_class_transformer915 = require("class-transformer");
|
|
58906
|
+
var import_class_validator891 = require("class-validator");
|
|
58759
58907
|
|
|
58760
58908
|
// src/v2/utils/getFirstError.ts
|
|
58761
58909
|
function getFirstError(errors, parentPath = "") {
|
|
@@ -58796,8 +58944,8 @@ function removeUndefined(obj) {
|
|
|
58796
58944
|
|
|
58797
58945
|
// src/v2/utils/validateCustom.ts
|
|
58798
58946
|
async function validateCustom(plain, cls, UnprocessableEntityException, groups) {
|
|
58799
|
-
const instance = (0,
|
|
58800
|
-
const errors = await (0,
|
|
58947
|
+
const instance = (0, import_class_transformer915.plainToInstance)(cls, plain, { excludeExtraneousValues: true, groups });
|
|
58948
|
+
const errors = await (0, import_class_validator891.validate)(instance, { groups });
|
|
58801
58949
|
if (errors.length) {
|
|
58802
58950
|
const msg = getFirstError(errors);
|
|
58803
58951
|
throw new UnprocessableEntityException(msg);
|
|
@@ -58806,15 +58954,15 @@ async function validateCustom(plain, cls, UnprocessableEntityException, groups)
|
|
|
58806
58954
|
}
|
|
58807
58955
|
|
|
58808
58956
|
// src/v2/middlewares/validateRequestBody.ts
|
|
58809
|
-
var
|
|
58810
|
-
var
|
|
58957
|
+
var import_class_transformer916 = require("class-transformer");
|
|
58958
|
+
var import_class_validator892 = require("class-validator");
|
|
58811
58959
|
async function validateRequestBody({ dtoClass, BadRequestException, groups }, req, _res, next) {
|
|
58812
58960
|
try {
|
|
58813
58961
|
if (Array.isArray(req.body)) {
|
|
58814
58962
|
const newBody = [];
|
|
58815
58963
|
for (const element of req.body) {
|
|
58816
|
-
const dtoInstance2 = (0,
|
|
58817
|
-
const errors2 = await (0,
|
|
58964
|
+
const dtoInstance2 = (0, import_class_transformer916.plainToInstance)(dtoClass, element, { excludeExtraneousValues: true, groups });
|
|
58965
|
+
const errors2 = await (0, import_class_validator892.validate)(dtoInstance2, { groups });
|
|
58818
58966
|
if (errors2.length > 0) {
|
|
58819
58967
|
const firstError = getFirstError(errors2);
|
|
58820
58968
|
return next(new BadRequestException(firstError));
|
|
@@ -58824,8 +58972,8 @@ async function validateRequestBody({ dtoClass, BadRequestException, groups }, re
|
|
|
58824
58972
|
req.body = newBody;
|
|
58825
58973
|
return next();
|
|
58826
58974
|
}
|
|
58827
|
-
const dtoInstance = (0,
|
|
58828
|
-
const errors = await (0,
|
|
58975
|
+
const dtoInstance = (0, import_class_transformer916.plainToInstance)(dtoClass, req.body, { excludeExtraneousValues: true, groups });
|
|
58976
|
+
const errors = await (0, import_class_validator892.validate)(dtoInstance, { groups });
|
|
58829
58977
|
if (errors.length > 0) {
|
|
58830
58978
|
const firstError = getFirstError(errors);
|
|
58831
58979
|
return next(new BadRequestException(firstError));
|
|
@@ -59445,12 +59593,17 @@ async function validateRequestBody({ dtoClass, BadRequestException, groups }, re
|
|
|
59445
59593
|
PlantaPeru9112ClaroDTO,
|
|
59446
59594
|
PlantaSomacylDTO,
|
|
59447
59595
|
PreAcceptedDto,
|
|
59596
|
+
PreLiquidateInstalledMaterialCOLOMBIA9612Dto,
|
|
59448
59597
|
PreLiquidateLineCHILE9512Dto,
|
|
59598
|
+
PreLiquidateLineCOLOMBIA9612Dto,
|
|
59449
59599
|
PreLiquidateLineDto,
|
|
59450
59600
|
PreLiquidateMaterialDto,
|
|
59451
59601
|
PreLiquidateNewLaborDto,
|
|
59602
|
+
PreLiquidateRemovedMaterialCOLOMBIA9612Dto,
|
|
59603
|
+
PreLiquidateSubMOCOLOMBIA9612Dto,
|
|
59452
59604
|
PreLiquidateUnitDto,
|
|
59453
59605
|
PreLiquidateValuationCHILE9512Dto,
|
|
59606
|
+
PreLiquidateValuationCOLOMBIA9612Dto,
|
|
59454
59607
|
PreLiquidateValuationDto,
|
|
59455
59608
|
PrecioActualDTO,
|
|
59456
59609
|
PrecioAgencia_mam_onnetENTITY,
|