sigo-entities 1.2.95 → 1.2.97
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/index.d.mts +24 -26
- package/dist/index.d.ts +24 -26
- package/dist/index.js +985 -987
- package/dist/index.mjs +788 -789
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3179,8 +3179,27 @@ __decorateClass([
|
|
|
3179
3179
|
Length56(1, 30, { message: "debe tener entre 1 y 30 caracteres" })
|
|
3180
3180
|
], TipoStockStockPersonalDTO.prototype, "Nombre", 2);
|
|
3181
3181
|
|
|
3182
|
+
// src/shared/dto/stock-quantity-employee-dto.ts
|
|
3183
|
+
import { Expose as Expose78 } from "class-transformer";
|
|
3184
|
+
import { IsDefined as IsDefined8, IsNumber as IsNumber49, Min as Min41 } from "class-validator";
|
|
3185
|
+
var StockQuantityEmployeeDTO = class {
|
|
3186
|
+
quantity;
|
|
3187
|
+
_id_stock_employee = 0;
|
|
3188
|
+
};
|
|
3189
|
+
__decorateClass([
|
|
3190
|
+
IsDefined8({ message: "El campo quantity es obligatorio." }),
|
|
3191
|
+
IsNumber49({}, { message: "El campo quantity debe ser un n\xFAmero" }),
|
|
3192
|
+
Min41(1, { message: "El valor m\xEDnimo de quantity es 1" }),
|
|
3193
|
+
Expose78({ name: "quantity" })
|
|
3194
|
+
], StockQuantityEmployeeDTO.prototype, "quantity", 2);
|
|
3195
|
+
__decorateClass([
|
|
3196
|
+
IsDefined8({ message: "El campo _id_stock_employee es obligatorio." }),
|
|
3197
|
+
IsNumber49({}, { message: 'La propiedad "_id_stock_employee" debe ser un numero.' }),
|
|
3198
|
+
Expose78({ name: "_id_stock_employee" })
|
|
3199
|
+
], StockQuantityEmployeeDTO.prototype, "_id_stock_employee", 2);
|
|
3200
|
+
|
|
3182
3201
|
// src/shared/dto/usuario-logistica-dto.ts
|
|
3183
|
-
import { Expose as
|
|
3202
|
+
import { Expose as Expose79, Type as Type44 } from "class-transformer";
|
|
3184
3203
|
import { IsNotEmpty as IsNotEmpty65, ValidateNested as ValidateNested39 } from "class-validator";
|
|
3185
3204
|
var UsuarioLogisticaDTO = class {
|
|
3186
3205
|
Guia = new UsuarioID_UsuarioDTO();
|
|
@@ -3192,69 +3211,69 @@ var UsuarioLogisticaDTO = class {
|
|
|
3192
3211
|
__decorateClass([
|
|
3193
3212
|
Type44(() => UsuarioID_UsuarioDTO),
|
|
3194
3213
|
IsNotEmpty65({ message: "es requerido" }),
|
|
3195
|
-
|
|
3214
|
+
Expose79(),
|
|
3196
3215
|
ValidateNested39()
|
|
3197
3216
|
], UsuarioLogisticaDTO.prototype, "Guia", 2);
|
|
3198
3217
|
__decorateClass([
|
|
3199
3218
|
Type44(() => UsuarioID_UsuarioDTO),
|
|
3200
3219
|
IsNotEmpty65({ message: "es requerido" }),
|
|
3201
|
-
|
|
3220
|
+
Expose79(),
|
|
3202
3221
|
ValidateNested39()
|
|
3203
3222
|
], UsuarioLogisticaDTO.prototype, "Ingreso", 2);
|
|
3204
3223
|
__decorateClass([
|
|
3205
3224
|
Type44(() => UsuarioID_UsuarioDTO),
|
|
3206
3225
|
IsNotEmpty65({ message: "es requerido" }),
|
|
3207
|
-
|
|
3226
|
+
Expose79(),
|
|
3208
3227
|
ValidateNested39()
|
|
3209
3228
|
], UsuarioLogisticaDTO.prototype, "Aprobacion", 2);
|
|
3210
3229
|
__decorateClass([
|
|
3211
3230
|
Type44(() => UsuarioID_UsuarioDTO),
|
|
3212
3231
|
IsNotEmpty65({ message: "es requerido" }),
|
|
3213
|
-
|
|
3232
|
+
Expose79(),
|
|
3214
3233
|
ValidateNested39()
|
|
3215
3234
|
], UsuarioLogisticaDTO.prototype, "Recepcion", 2);
|
|
3216
3235
|
__decorateClass([
|
|
3217
3236
|
Type44(() => UsuarioID_UsuarioDTO),
|
|
3218
3237
|
IsNotEmpty65({ message: "es requerido" }),
|
|
3219
|
-
|
|
3238
|
+
Expose79(),
|
|
3220
3239
|
ValidateNested39()
|
|
3221
3240
|
], UsuarioLogisticaDTO.prototype, "Anulacion", 2);
|
|
3222
3241
|
|
|
3223
3242
|
// src/shared/dto/variante-dto.ts
|
|
3224
|
-
import { Expose as
|
|
3225
|
-
import { IsNotEmpty as IsNotEmpty66, IsNumber as
|
|
3243
|
+
import { Expose as Expose80 } from "class-transformer";
|
|
3244
|
+
import { IsNotEmpty as IsNotEmpty66, IsNumber as IsNumber50, IsString as IsString65, Length as Length57, Min as Min42 } from "class-validator";
|
|
3226
3245
|
var VarianteDTO = class {
|
|
3227
3246
|
ID_Variante = 0;
|
|
3228
3247
|
Descripcion = "";
|
|
3229
3248
|
};
|
|
3230
3249
|
__decorateClass([
|
|
3231
|
-
|
|
3232
|
-
|
|
3250
|
+
Expose80(),
|
|
3251
|
+
IsNumber50({}, { message: "debe ser un numero" }),
|
|
3233
3252
|
IsNotEmpty66({ message: "es requerido" }),
|
|
3234
|
-
|
|
3253
|
+
Min42(0, { message: "el valor m\xEDnimo es 0" })
|
|
3235
3254
|
], VarianteDTO.prototype, "ID_Variante", 2);
|
|
3236
3255
|
__decorateClass([
|
|
3237
3256
|
IsString65({ message: "debe ser un texto" }),
|
|
3238
3257
|
Length57(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
3239
|
-
|
|
3258
|
+
Expose80()
|
|
3240
3259
|
], VarianteDTO.prototype, "Descripcion", 2);
|
|
3241
3260
|
|
|
3242
3261
|
// src/shared/dto/zona-trabajo-dto.ts
|
|
3243
|
-
import { Expose as
|
|
3244
|
-
import { IsNotEmpty as IsNotEmpty67, IsNumber as
|
|
3262
|
+
import { Expose as Expose81 } from "class-transformer";
|
|
3263
|
+
import { IsNotEmpty as IsNotEmpty67, IsNumber as IsNumber51, Min as Min43 } from "class-validator";
|
|
3245
3264
|
var ZonaTrabajoDTO = class extends CodigoNombreDTO {
|
|
3246
3265
|
ID_ZonaTrabajo = 0;
|
|
3247
3266
|
};
|
|
3248
3267
|
__decorateClass([
|
|
3249
|
-
|
|
3250
|
-
|
|
3268
|
+
Expose81(),
|
|
3269
|
+
IsNumber51({}, { message: "debe ser un numero" }),
|
|
3251
3270
|
IsNotEmpty67({ message: "es requerido" }),
|
|
3252
|
-
|
|
3271
|
+
Min43(0, { message: "el valor m\xEDnimo es 0" })
|
|
3253
3272
|
], ZonaTrabajoDTO.prototype, "ID_ZonaTrabajo", 2);
|
|
3254
3273
|
|
|
3255
3274
|
// src/shared/dto/empresa-pc-mo-dto.ts
|
|
3256
|
-
import { IsNotEmpty as IsNotEmpty68, IsNumber as
|
|
3257
|
-
import { Expose as
|
|
3275
|
+
import { IsNotEmpty as IsNotEmpty68, IsNumber as IsNumber52, IsString as IsString66, Length as Length58, Min as Min44 } from "class-validator";
|
|
3276
|
+
import { Expose as Expose82 } from "class-transformer";
|
|
3258
3277
|
var EmpresaPCMODTO = class {
|
|
3259
3278
|
ID_Empresa = 0;
|
|
3260
3279
|
Codigo = "";
|
|
@@ -3263,37 +3282,37 @@ var EmpresaPCMODTO = class {
|
|
|
3263
3282
|
NumeroDocumentoIdentidad = "";
|
|
3264
3283
|
};
|
|
3265
3284
|
__decorateClass([
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3285
|
+
IsNumber52({}, { message: "debe ser un numero" }),
|
|
3286
|
+
Expose82(),
|
|
3287
|
+
Min44(0)
|
|
3269
3288
|
], EmpresaPCMODTO.prototype, "ID_Empresa", 2);
|
|
3270
3289
|
__decorateClass([
|
|
3271
3290
|
IsString66({ message: "debe ser un texto" }),
|
|
3272
3291
|
IsNotEmpty68({ message: "es requerido" }),
|
|
3273
3292
|
Length58(1, 100, { message: "debe tener entre 1 y 100 caracteres" }),
|
|
3274
|
-
|
|
3293
|
+
Expose82()
|
|
3275
3294
|
], EmpresaPCMODTO.prototype, "Codigo", 2);
|
|
3276
3295
|
__decorateClass([
|
|
3277
3296
|
IsString66({ message: "debe ser un texto" }),
|
|
3278
3297
|
IsNotEmpty68({ message: "es requerido" }),
|
|
3279
3298
|
Length58(1, 150, { message: "debe tener entre 1 y 150 caracteres" }),
|
|
3280
|
-
|
|
3299
|
+
Expose82()
|
|
3281
3300
|
], EmpresaPCMODTO.prototype, "NombreComercial", 2);
|
|
3282
3301
|
__decorateClass([
|
|
3283
3302
|
IsString66({ message: "debe ser un texto" }),
|
|
3284
3303
|
IsNotEmpty68({ message: "es requerido" }),
|
|
3285
3304
|
Length58(1, 150, { message: "debe tener entre 1 y 150 caracteres" }),
|
|
3286
|
-
|
|
3305
|
+
Expose82()
|
|
3287
3306
|
], EmpresaPCMODTO.prototype, "RazonSocial", 2);
|
|
3288
3307
|
__decorateClass([
|
|
3289
3308
|
IsString66({ message: "debe ser un texto" }),
|
|
3290
3309
|
IsNotEmpty68({ message: "es requerido" }),
|
|
3291
3310
|
Length58(1, 150, { message: "debe tener entre 1 y 150 caracteres" }),
|
|
3292
|
-
|
|
3311
|
+
Expose82()
|
|
3293
3312
|
], EmpresaPCMODTO.prototype, "NumeroDocumentoIdentidad", 2);
|
|
3294
3313
|
|
|
3295
3314
|
// src/shared/dto/body-update-dto.ts
|
|
3296
|
-
import { Expose as
|
|
3315
|
+
import { Expose as Expose83 } from "class-transformer";
|
|
3297
3316
|
import { IsNotEmptyObject, IsObject } from "class-validator";
|
|
3298
3317
|
var BodyUpdateOne = class {
|
|
3299
3318
|
filter;
|
|
@@ -3302,33 +3321,14 @@ var BodyUpdateOne = class {
|
|
|
3302
3321
|
__decorateClass([
|
|
3303
3322
|
IsObject({ message: "debe ser un objeto" }),
|
|
3304
3323
|
IsNotEmptyObject({}, { message: "es requerido" }),
|
|
3305
|
-
|
|
3324
|
+
Expose83()
|
|
3306
3325
|
], BodyUpdateOne.prototype, "filter", 2);
|
|
3307
3326
|
__decorateClass([
|
|
3308
3327
|
IsObject({ message: "debe ser un objeto" }),
|
|
3309
3328
|
IsNotEmptyObject({}, { message: "es requerido" }),
|
|
3310
|
-
|
|
3329
|
+
Expose83()
|
|
3311
3330
|
], BodyUpdateOne.prototype, "update", 2);
|
|
3312
3331
|
|
|
3313
|
-
// src/shared/dto/stock-quantity-employee-dto.ts
|
|
3314
|
-
import { Expose as Expose83 } from "class-transformer";
|
|
3315
|
-
import { IsDefined as IsDefined8, IsNumber as IsNumber52, Min as Min44 } from "class-validator";
|
|
3316
|
-
var StockQuantityEmployeeDTO = class {
|
|
3317
|
-
quantity;
|
|
3318
|
-
_id_stock_employee = 0;
|
|
3319
|
-
};
|
|
3320
|
-
__decorateClass([
|
|
3321
|
-
IsDefined8({ message: "El campo quantity es obligatorio." }),
|
|
3322
|
-
IsNumber52({}, { message: "El campo quantity debe ser un n\xFAmero" }),
|
|
3323
|
-
Min44(1, { message: "El valor m\xEDnimo de quantity es 1" }),
|
|
3324
|
-
Expose83({ name: "quantity" })
|
|
3325
|
-
], StockQuantityEmployeeDTO.prototype, "quantity", 2);
|
|
3326
|
-
__decorateClass([
|
|
3327
|
-
IsDefined8({ message: "El campo _id_stock_employee es obligatorio." }),
|
|
3328
|
-
IsNumber52({}, { message: 'La propiedad "_id_stock_employee" debe ser un numero.' }),
|
|
3329
|
-
Expose83({ name: "_id_stock_employee" })
|
|
3330
|
-
], StockQuantityEmployeeDTO.prototype, "_id_stock_employee", 2);
|
|
3331
|
-
|
|
3332
3332
|
// src/shared/dto/toa-segmento.ts
|
|
3333
3333
|
import { Expose as Expose84, Transform as Transform17 } from "class-transformer";
|
|
3334
3334
|
import { IsDefined as IsDefined9, IsString as IsString67 } from "class-validator";
|
|
@@ -33548,94 +33548,86 @@ __decorateClass([
|
|
|
33548
33548
|
], OnnetFibraENTITY.prototype, "DetailMaintenanceOrder", 2);
|
|
33549
33549
|
|
|
33550
33550
|
// src/operativa/procesos/TOA order stock/shared/index.ts
|
|
33551
|
-
import { Expose as Expose552 } from "class-transformer";
|
|
33552
|
-
import { IsDefined as IsDefined159, IsNumber as IsNumber364 } from "class-validator";
|
|
33553
|
-
|
|
33554
|
-
// src/operativa/procesos/order stock/shared/index.ts
|
|
33555
33551
|
import { Expose as Expose551, Type as Type357 } from "class-transformer";
|
|
33556
33552
|
import { IsArray as IsArray183, IsDefined as IsDefined158, IsEnum as IsEnum19, IsNotEmpty as IsNotEmpty375, IsNumber as IsNumber363, IsString as IsString447, IsUUID as IsUUID3, MaxLength as MaxLength2, ValidateNested as ValidateNested318 } from "class-validator";
|
|
33557
|
-
var
|
|
33553
|
+
var TOAOrderStockENTITY = class {
|
|
33558
33554
|
_id;
|
|
33559
33555
|
id_recurso;
|
|
33560
33556
|
itemCode;
|
|
33561
|
-
lot;
|
|
33562
33557
|
serial;
|
|
33563
33558
|
quantity;
|
|
33564
33559
|
numero_de_peticion;
|
|
33565
33560
|
stock_quantity_employee = [];
|
|
33566
33561
|
state_consumption;
|
|
33567
33562
|
state_replacement;
|
|
33563
|
+
quantity_original;
|
|
33564
|
+
lot;
|
|
33568
33565
|
};
|
|
33569
33566
|
__decorateClass([
|
|
33570
33567
|
IsDefined158({ message: "El campo _id es obligatorio." }),
|
|
33571
33568
|
IsUUID3("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
33572
33569
|
Expose551({ name: "_id" })
|
|
33573
|
-
],
|
|
33570
|
+
], TOAOrderStockENTITY.prototype, "_id", 2);
|
|
33574
33571
|
__decorateClass([
|
|
33575
33572
|
Expose551({ name: "id_recurso" }),
|
|
33576
33573
|
IsDefined158({ message: "El campo ID Recurso es obligatorio." }),
|
|
33577
33574
|
IsString447()
|
|
33578
|
-
],
|
|
33575
|
+
], TOAOrderStockENTITY.prototype, "id_recurso", 2);
|
|
33579
33576
|
__decorateClass([
|
|
33580
33577
|
IsDefined158({ message: "El campo itemCode es obligatorio" }),
|
|
33581
33578
|
IsString447({ message: "El campo itemCode debe ser una cadena de texto v\xE1lida" }),
|
|
33582
33579
|
MaxLength2(50, { message: "El campo itemCode no puede superar los 50 caracteres" }),
|
|
33583
33580
|
IsNotEmpty375({ message: "El campo itemCode no puede estar vac\xEDo" }),
|
|
33584
33581
|
Expose551({ name: "codigo" })
|
|
33585
|
-
],
|
|
33586
|
-
__decorateClass([
|
|
33587
|
-
IsString447({ message: "El campo lot debe ser una cadena de texto v\xE1lida" }),
|
|
33588
|
-
MaxLength2(100, { message: "El campo lot no puede superar los 100 caracteres" }),
|
|
33589
|
-
Expose551({ name: "lote" })
|
|
33590
|
-
], OrderStockENTITY.prototype, "lot", 2);
|
|
33582
|
+
], TOAOrderStockENTITY.prototype, "itemCode", 2);
|
|
33591
33583
|
__decorateClass([
|
|
33592
33584
|
IsDefined158({ message: "El campo serial es obligatorio." }),
|
|
33593
33585
|
IsString447({ message: "El campo serial debe ser una cadena de texto" }),
|
|
33594
33586
|
Expose551({ name: "invsn" })
|
|
33595
|
-
],
|
|
33587
|
+
], TOAOrderStockENTITY.prototype, "serial", 2);
|
|
33596
33588
|
__decorateClass([
|
|
33597
33589
|
Expose551({ name: "cantidad" }),
|
|
33598
33590
|
IsDefined158({ message: "El campo quantity es obligatorio." }),
|
|
33599
33591
|
IsNumber363()
|
|
33600
|
-
],
|
|
33592
|
+
], TOAOrderStockENTITY.prototype, "quantity", 2);
|
|
33601
33593
|
__decorateClass([
|
|
33602
33594
|
Expose551({ name: "numero_de_peticion" }),
|
|
33603
33595
|
IsDefined158({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
33604
33596
|
IsString447()
|
|
33605
|
-
],
|
|
33597
|
+
], TOAOrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
33606
33598
|
__decorateClass([
|
|
33607
33599
|
IsDefined158({ message: "El campo stock_quantity_employee es obligatorio" }),
|
|
33608
33600
|
IsArray183({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
33609
33601
|
ValidateNested318({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
33610
33602
|
Type357(() => StockQuantityEmployeeDTO),
|
|
33611
33603
|
Expose551({ name: "stock_quantity_employee" })
|
|
33612
|
-
],
|
|
33604
|
+
], TOAOrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
33613
33605
|
__decorateClass([
|
|
33614
33606
|
IsDefined158({ message: "El campo estado consumo es obligatorio." }),
|
|
33615
33607
|
Expose551({ name: "state_consumption" }),
|
|
33616
33608
|
IsEnum19(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
33617
|
-
],
|
|
33609
|
+
], TOAOrderStockENTITY.prototype, "state_consumption", 2);
|
|
33618
33610
|
__decorateClass([
|
|
33619
33611
|
IsDefined158({ message: "El campo estado reposicion es obligatorio." }),
|
|
33620
33612
|
Expose551({ name: "state_replacement" }),
|
|
33621
33613
|
IsEnum19(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
33622
|
-
],
|
|
33623
|
-
|
|
33624
|
-
// src/operativa/procesos/TOA order stock/shared/index.ts
|
|
33625
|
-
var TOAOrderStockENTITY = class extends OrderStockENTITY {
|
|
33626
|
-
quantity_original;
|
|
33627
|
-
};
|
|
33614
|
+
], TOAOrderStockENTITY.prototype, "state_replacement", 2);
|
|
33628
33615
|
__decorateClass([
|
|
33629
|
-
|
|
33630
|
-
|
|
33631
|
-
|
|
33616
|
+
Expose551({ name: "quantity_original" }),
|
|
33617
|
+
IsDefined158({ message: "El campo quantity original es obligatorio." }),
|
|
33618
|
+
IsNumber363()
|
|
33632
33619
|
], TOAOrderStockENTITY.prototype, "quantity_original", 2);
|
|
33620
|
+
__decorateClass([
|
|
33621
|
+
IsString447({ message: "El campo lot debe ser una cadena de texto v\xE1lida" }),
|
|
33622
|
+
MaxLength2(100, { message: "El campo lot no puede superar los 100 caracteres" }),
|
|
33623
|
+
Expose551({ name: "lote" })
|
|
33624
|
+
], TOAOrderStockENTITY.prototype, "lot", 2);
|
|
33633
33625
|
|
|
33634
33626
|
// src/operativa/procesos/request number TTL/shared/index.ts
|
|
33635
|
-
import { Expose as
|
|
33627
|
+
import { Expose as Expose552, Type as Type358 } from "class-transformer";
|
|
33636
33628
|
import {
|
|
33637
33629
|
IsString as IsString448,
|
|
33638
|
-
IsDefined as
|
|
33630
|
+
IsDefined as IsDefined159,
|
|
33639
33631
|
MinLength as MinLength46,
|
|
33640
33632
|
IsUUID as IsUUID4,
|
|
33641
33633
|
IsDate as IsDate132
|
|
@@ -33646,43 +33638,43 @@ var RequestNumberTTLENTITY = class {
|
|
|
33646
33638
|
createdAt = /* @__PURE__ */ new Date();
|
|
33647
33639
|
};
|
|
33648
33640
|
__decorateClass([
|
|
33649
|
-
|
|
33641
|
+
IsDefined159({ message: "El campo _id es obligatorio." }),
|
|
33650
33642
|
IsUUID4("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
33651
|
-
|
|
33643
|
+
Expose552({ name: "_id" })
|
|
33652
33644
|
], RequestNumberTTLENTITY.prototype, "_id", 2);
|
|
33653
33645
|
__decorateClass([
|
|
33654
|
-
|
|
33646
|
+
IsDefined159({ message: "numero_de_peticion es obligatorio" }),
|
|
33655
33647
|
IsString448({ message: "numero_de_peticion debe ser una cadena de texto v\xE1lida" }),
|
|
33656
33648
|
MinLength46(1, { message: "numero_de_peticion no puede estar vacio" }),
|
|
33657
|
-
|
|
33649
|
+
Expose552({ name: "numero_de_peticion" })
|
|
33658
33650
|
], RequestNumberTTLENTITY.prototype, "numero_de_peticion", 2);
|
|
33659
33651
|
__decorateClass([
|
|
33660
|
-
|
|
33652
|
+
IsDefined159({ message: "createdAt es obligatoria" }),
|
|
33661
33653
|
IsDate132({ message: "createdAt debe ser una fecha v\xE1lida" }),
|
|
33662
33654
|
Type358(() => Date),
|
|
33663
|
-
|
|
33655
|
+
Expose552({ name: "createdAt" })
|
|
33664
33656
|
], RequestNumberTTLENTITY.prototype, "createdAt", 2);
|
|
33665
33657
|
|
|
33666
33658
|
// src/operativa/procesos/win_order/shared/index.ts
|
|
33667
|
-
import { Expose as
|
|
33659
|
+
import { Expose as Expose556, Transform as Transform76, Type as Type362 } from "class-transformer";
|
|
33668
33660
|
import {
|
|
33669
|
-
IsDefined as
|
|
33661
|
+
IsDefined as IsDefined163,
|
|
33670
33662
|
IsString as IsString452,
|
|
33671
33663
|
ValidateNested as ValidateNested321,
|
|
33672
33664
|
IsArray as IsArray186,
|
|
33673
33665
|
IsDate as IsDate136,
|
|
33674
33666
|
IsEnum as IsEnum22,
|
|
33675
|
-
IsNumber as
|
|
33667
|
+
IsNumber as IsNumber367,
|
|
33676
33668
|
IsUUID as IsUUID5
|
|
33677
33669
|
} from "class-validator";
|
|
33678
33670
|
import "reflect-metadata";
|
|
33679
33671
|
|
|
33680
33672
|
// src/operativa/procesos/win_order/shared/dto/index.ts
|
|
33681
|
-
import { Expose as
|
|
33673
|
+
import { Expose as Expose553, Transform as Transform74 } from "class-transformer";
|
|
33682
33674
|
import {
|
|
33683
|
-
IsDefined as
|
|
33675
|
+
IsDefined as IsDefined160,
|
|
33684
33676
|
IsString as IsString449,
|
|
33685
|
-
IsNumber as
|
|
33677
|
+
IsNumber as IsNumber364,
|
|
33686
33678
|
IsDate as IsDate133
|
|
33687
33679
|
} from "class-validator";
|
|
33688
33680
|
import "reflect-metadata";
|
|
@@ -33701,63 +33693,63 @@ var UbicacionwinDTO = class {
|
|
|
33701
33693
|
ubicacion = "";
|
|
33702
33694
|
};
|
|
33703
33695
|
__decorateClass([
|
|
33704
|
-
|
|
33705
|
-
|
|
33696
|
+
Expose553({ name: "Direcci\xF3n" }),
|
|
33697
|
+
IsDefined160({ message: "El campo Direcci\xF3n es obligatorio." }),
|
|
33706
33698
|
IsString449()
|
|
33707
33699
|
], UbicacionwinDTO.prototype, "direccion", 2);
|
|
33708
33700
|
__decorateClass([
|
|
33709
|
-
|
|
33710
|
-
|
|
33701
|
+
Expose553({ name: "C\xF3digo Postal" }),
|
|
33702
|
+
IsDefined160({ message: "El campo C\xF3digo Postal es obligatorio." }),
|
|
33711
33703
|
IsString449()
|
|
33712
33704
|
], UbicacionwinDTO.prototype, "codigo_postal", 2);
|
|
33713
33705
|
__decorateClass([
|
|
33714
|
-
|
|
33715
|
-
|
|
33706
|
+
Expose553({ name: "Georeferencia" }),
|
|
33707
|
+
IsDefined160({ message: "El campo Georeferencia es obligatorio." }),
|
|
33716
33708
|
IsString449()
|
|
33717
33709
|
], UbicacionwinDTO.prototype, "georeferencia", 2);
|
|
33718
33710
|
__decorateClass([
|
|
33719
|
-
|
|
33720
|
-
|
|
33711
|
+
Expose553({ name: "Sector Operativo" }),
|
|
33712
|
+
IsDefined160({ message: "El campo Sector Operativo es obligatorio." }),
|
|
33721
33713
|
IsString449()
|
|
33722
33714
|
], UbicacionwinDTO.prototype, "sector_operativo", 2);
|
|
33723
33715
|
__decorateClass([
|
|
33724
|
-
|
|
33725
|
-
|
|
33716
|
+
Expose553({ name: "Region" }),
|
|
33717
|
+
IsDefined160({ message: "El campo Region es obligatorio." }),
|
|
33726
33718
|
IsString449()
|
|
33727
33719
|
], UbicacionwinDTO.prototype, "region", 2);
|
|
33728
33720
|
__decorateClass([
|
|
33729
|
-
|
|
33730
|
-
|
|
33721
|
+
Expose553({ name: "Zona" }),
|
|
33722
|
+
IsDefined160({ message: "El campo Zona es obligatorio." }),
|
|
33731
33723
|
IsString449()
|
|
33732
33724
|
], UbicacionwinDTO.prototype, "zona", 2);
|
|
33733
33725
|
__decorateClass([
|
|
33734
|
-
|
|
33735
|
-
|
|
33726
|
+
Expose553({ name: "Localidad_1" }),
|
|
33727
|
+
IsDefined160({ message: "El campo Localidad_1 es obligatorio." }),
|
|
33736
33728
|
IsString449()
|
|
33737
33729
|
], UbicacionwinDTO.prototype, "localidad_1", 2);
|
|
33738
33730
|
__decorateClass([
|
|
33739
|
-
|
|
33740
|
-
|
|
33731
|
+
Expose553({ name: "Localidad_2" }),
|
|
33732
|
+
IsDefined160({ message: "El campo Localidad_2 es obligatorio." }),
|
|
33741
33733
|
IsString449()
|
|
33742
33734
|
], UbicacionwinDTO.prototype, "localidad_2", 2);
|
|
33743
33735
|
__decorateClass([
|
|
33744
|
-
|
|
33745
|
-
|
|
33736
|
+
Expose553({ name: "Pais" }),
|
|
33737
|
+
IsDefined160({ message: "El campo Pais es obligatorio." }),
|
|
33746
33738
|
IsString449()
|
|
33747
33739
|
], UbicacionwinDTO.prototype, "pais", 2);
|
|
33748
33740
|
__decorateClass([
|
|
33749
|
-
|
|
33750
|
-
|
|
33741
|
+
Expose553({ name: "Empresa" }),
|
|
33742
|
+
IsDefined160({ message: "El campo Empresa es obligatorio." }),
|
|
33751
33743
|
IsString449()
|
|
33752
33744
|
], UbicacionwinDTO.prototype, "empresa", 2);
|
|
33753
33745
|
__decorateClass([
|
|
33754
|
-
|
|
33755
|
-
|
|
33746
|
+
Expose553({ name: "Tipo Ubicaci\xF3n" }),
|
|
33747
|
+
IsDefined160({ message: "El campo Tipo Ubicaci\xF3n es obligatorio." }),
|
|
33756
33748
|
IsString449()
|
|
33757
33749
|
], UbicacionwinDTO.prototype, "tipo_de_vivienda", 2);
|
|
33758
33750
|
__decorateClass([
|
|
33759
|
-
|
|
33760
|
-
|
|
33751
|
+
Expose553({ name: "Ubicaci\xF3n" }),
|
|
33752
|
+
IsDefined160({ message: "El campo Ubicaci\xF3n es obligatorio." }),
|
|
33761
33753
|
IsString449()
|
|
33762
33754
|
], UbicacionwinDTO.prototype, "ubicacion", 2);
|
|
33763
33755
|
var MaterialeswinDTO = class {
|
|
@@ -33770,40 +33762,40 @@ var MaterialeswinDTO = class {
|
|
|
33770
33762
|
ID_StockPersonal = 0;
|
|
33771
33763
|
};
|
|
33772
33764
|
__decorateClass([
|
|
33773
|
-
|
|
33774
|
-
|
|
33765
|
+
Expose553(),
|
|
33766
|
+
IsDefined160({ message: "El campo key es obligatorio." }),
|
|
33775
33767
|
Transform74(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
33776
33768
|
IsString449()
|
|
33777
33769
|
], MaterialeswinDTO.prototype, "key", 2);
|
|
33778
33770
|
__decorateClass([
|
|
33779
|
-
|
|
33780
|
-
|
|
33771
|
+
Expose553(),
|
|
33772
|
+
IsDefined160({ message: "El campo codigo es obligatorio." }),
|
|
33781
33773
|
IsString449()
|
|
33782
33774
|
], MaterialeswinDTO.prototype, "codigo", 2);
|
|
33783
33775
|
__decorateClass([
|
|
33784
|
-
|
|
33785
|
-
|
|
33776
|
+
Expose553(),
|
|
33777
|
+
IsDefined160({ message: "El campo descripcion es obligatorio." }),
|
|
33786
33778
|
IsString449()
|
|
33787
33779
|
], MaterialeswinDTO.prototype, "descripcion", 2);
|
|
33788
33780
|
__decorateClass([
|
|
33789
|
-
|
|
33790
|
-
|
|
33791
|
-
|
|
33781
|
+
Expose553(),
|
|
33782
|
+
IsDefined160({ message: "El campo cantidad es obligatorio." }),
|
|
33783
|
+
IsNumber364()
|
|
33792
33784
|
], MaterialeswinDTO.prototype, "cantidad", 2);
|
|
33793
33785
|
__decorateClass([
|
|
33794
|
-
|
|
33795
|
-
|
|
33786
|
+
Expose553(),
|
|
33787
|
+
IsDefined160({ message: "El campo invsn es obligatorio." }),
|
|
33796
33788
|
IsString449()
|
|
33797
33789
|
], MaterialeswinDTO.prototype, "invsn", 2);
|
|
33798
33790
|
__decorateClass([
|
|
33799
|
-
|
|
33800
|
-
|
|
33791
|
+
Expose553(),
|
|
33792
|
+
IsDefined160({ message: "El campo invpool es obligatorio." }),
|
|
33801
33793
|
IsString449()
|
|
33802
33794
|
], MaterialeswinDTO.prototype, "invpool", 2);
|
|
33803
33795
|
__decorateClass([
|
|
33804
|
-
|
|
33805
|
-
|
|
33806
|
-
|
|
33796
|
+
Expose553(),
|
|
33797
|
+
IsDefined160({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
33798
|
+
IsNumber364()
|
|
33807
33799
|
], MaterialeswinDTO.prototype, "ID_StockPersonal", 2);
|
|
33808
33800
|
var HistorialEstadoswinDTO = class {
|
|
33809
33801
|
estado = "";
|
|
@@ -33812,23 +33804,23 @@ var HistorialEstadoswinDTO = class {
|
|
|
33812
33804
|
fecha = /* @__PURE__ */ new Date();
|
|
33813
33805
|
};
|
|
33814
33806
|
__decorateClass([
|
|
33815
|
-
|
|
33816
|
-
|
|
33807
|
+
Expose553({ name: "Estado" }),
|
|
33808
|
+
IsDefined160({ message: "El campo Estado es obligatorio." }),
|
|
33817
33809
|
IsString449()
|
|
33818
33810
|
], HistorialEstadoswinDTO.prototype, "estado", 2);
|
|
33819
33811
|
__decorateClass([
|
|
33820
|
-
|
|
33821
|
-
|
|
33812
|
+
Expose553({ name: "Usuario" }),
|
|
33813
|
+
IsDefined160({ message: "El campo Usuario es obligatorio." }),
|
|
33822
33814
|
IsString449()
|
|
33823
33815
|
], HistorialEstadoswinDTO.prototype, "usuario", 2);
|
|
33824
33816
|
__decorateClass([
|
|
33825
|
-
|
|
33826
|
-
|
|
33817
|
+
Expose553({ name: "Observacion" }),
|
|
33818
|
+
IsDefined160({ message: "El campo Observacion es obligatorio." }),
|
|
33827
33819
|
IsString449()
|
|
33828
33820
|
], HistorialEstadoswinDTO.prototype, "observacion", 2);
|
|
33829
33821
|
__decorateClass([
|
|
33830
|
-
|
|
33831
|
-
|
|
33822
|
+
Expose553({ name: "Fecha" }),
|
|
33823
|
+
IsDefined160({ message: "El campo Fecha es obligatorio." }),
|
|
33832
33824
|
IsDate133({ message: "debe ser una fecha" })
|
|
33833
33825
|
], HistorialEstadoswinDTO.prototype, "fecha", 2);
|
|
33834
33826
|
var StateWin = /* @__PURE__ */ ((StateWin2) => {
|
|
@@ -33843,24 +33835,24 @@ var StateWin = /* @__PURE__ */ ((StateWin2) => {
|
|
|
33843
33835
|
})(StateWin || {});
|
|
33844
33836
|
|
|
33845
33837
|
// src/operativa/procesos/win_order_db/shared/index.ts
|
|
33846
|
-
import { Expose as
|
|
33838
|
+
import { Expose as Expose555, Type as Type361 } from "class-transformer";
|
|
33847
33839
|
import {
|
|
33848
|
-
IsDefined as
|
|
33840
|
+
IsDefined as IsDefined162,
|
|
33849
33841
|
IsString as IsString451,
|
|
33850
33842
|
ValidateNested as ValidateNested320,
|
|
33851
33843
|
IsArray as IsArray185,
|
|
33852
33844
|
IsDate as IsDate135,
|
|
33853
33845
|
IsEnum as IsEnum21,
|
|
33854
|
-
IsNumber as
|
|
33846
|
+
IsNumber as IsNumber366
|
|
33855
33847
|
} from "class-validator";
|
|
33856
33848
|
import "reflect-metadata";
|
|
33857
33849
|
|
|
33858
33850
|
// src/operativa/procesos/win_order_db/shared/dto/index.ts
|
|
33859
|
-
import { Expose as
|
|
33851
|
+
import { Expose as Expose554, Transform as Transform75 } from "class-transformer";
|
|
33860
33852
|
import {
|
|
33861
|
-
IsDefined as
|
|
33853
|
+
IsDefined as IsDefined161,
|
|
33862
33854
|
IsString as IsString450,
|
|
33863
|
-
IsNumber as
|
|
33855
|
+
IsNumber as IsNumber365,
|
|
33864
33856
|
IsDate as IsDate134
|
|
33865
33857
|
} from "class-validator";
|
|
33866
33858
|
import "reflect-metadata";
|
|
@@ -33879,63 +33871,63 @@ var UbicacionwinDBDTO = class {
|
|
|
33879
33871
|
ubicacion = "";
|
|
33880
33872
|
};
|
|
33881
33873
|
__decorateClass([
|
|
33882
|
-
|
|
33883
|
-
|
|
33874
|
+
Expose554(),
|
|
33875
|
+
IsDefined161({ message: "El campo direccion es obligatorio." }),
|
|
33884
33876
|
IsString450()
|
|
33885
33877
|
], UbicacionwinDBDTO.prototype, "direccion", 2);
|
|
33886
33878
|
__decorateClass([
|
|
33887
|
-
|
|
33888
|
-
|
|
33879
|
+
Expose554(),
|
|
33880
|
+
IsDefined161({ message: "El campo codigo_postal es obligatorio." }),
|
|
33889
33881
|
IsString450()
|
|
33890
33882
|
], UbicacionwinDBDTO.prototype, "codigo_postal", 2);
|
|
33891
33883
|
__decorateClass([
|
|
33892
|
-
|
|
33893
|
-
|
|
33884
|
+
Expose554(),
|
|
33885
|
+
IsDefined161({ message: "El campo georeferencia es obligatorio." }),
|
|
33894
33886
|
IsString450()
|
|
33895
33887
|
], UbicacionwinDBDTO.prototype, "georeferencia", 2);
|
|
33896
33888
|
__decorateClass([
|
|
33897
|
-
|
|
33898
|
-
|
|
33889
|
+
Expose554(),
|
|
33890
|
+
IsDefined161({ message: "El campo sector_operativo es obligatorio." }),
|
|
33899
33891
|
IsString450()
|
|
33900
33892
|
], UbicacionwinDBDTO.prototype, "sector_operativo", 2);
|
|
33901
33893
|
__decorateClass([
|
|
33902
|
-
|
|
33903
|
-
|
|
33894
|
+
Expose554(),
|
|
33895
|
+
IsDefined161({ message: "El campo region es obligatorio." }),
|
|
33904
33896
|
IsString450()
|
|
33905
33897
|
], UbicacionwinDBDTO.prototype, "region", 2);
|
|
33906
33898
|
__decorateClass([
|
|
33907
|
-
|
|
33908
|
-
|
|
33899
|
+
Expose554(),
|
|
33900
|
+
IsDefined161({ message: "El campo zona es obligatorio." }),
|
|
33909
33901
|
IsString450()
|
|
33910
33902
|
], UbicacionwinDBDTO.prototype, "zona", 2);
|
|
33911
33903
|
__decorateClass([
|
|
33912
|
-
|
|
33913
|
-
|
|
33904
|
+
Expose554(),
|
|
33905
|
+
IsDefined161({ message: "El campo localidad_1 es obligatorio." }),
|
|
33914
33906
|
IsString450()
|
|
33915
33907
|
], UbicacionwinDBDTO.prototype, "localidad_1", 2);
|
|
33916
33908
|
__decorateClass([
|
|
33917
|
-
|
|
33918
|
-
|
|
33909
|
+
Expose554(),
|
|
33910
|
+
IsDefined161({ message: "El campo localidad_2 es obligatorio." }),
|
|
33919
33911
|
IsString450()
|
|
33920
33912
|
], UbicacionwinDBDTO.prototype, "localidad_2", 2);
|
|
33921
33913
|
__decorateClass([
|
|
33922
|
-
|
|
33923
|
-
|
|
33914
|
+
Expose554(),
|
|
33915
|
+
IsDefined161({ message: "El campo pais es obligatorio." }),
|
|
33924
33916
|
IsString450()
|
|
33925
33917
|
], UbicacionwinDBDTO.prototype, "pais", 2);
|
|
33926
33918
|
__decorateClass([
|
|
33927
|
-
|
|
33928
|
-
|
|
33919
|
+
Expose554(),
|
|
33920
|
+
IsDefined161({ message: "El campo empresa es obligatorio." }),
|
|
33929
33921
|
IsString450()
|
|
33930
33922
|
], UbicacionwinDBDTO.prototype, "empresa", 2);
|
|
33931
33923
|
__decorateClass([
|
|
33932
|
-
|
|
33933
|
-
|
|
33924
|
+
Expose554(),
|
|
33925
|
+
IsDefined161({ message: "El campo tipo_de_vivienda es obligatorio." }),
|
|
33934
33926
|
IsString450()
|
|
33935
33927
|
], UbicacionwinDBDTO.prototype, "tipo_de_vivienda", 2);
|
|
33936
33928
|
__decorateClass([
|
|
33937
|
-
|
|
33938
|
-
|
|
33929
|
+
Expose554(),
|
|
33930
|
+
IsDefined161({ message: "El campo ubicacion es obligatorio." }),
|
|
33939
33931
|
IsString450()
|
|
33940
33932
|
], UbicacionwinDBDTO.prototype, "ubicacion", 2);
|
|
33941
33933
|
var MaterialeswinDBDTO = class {
|
|
@@ -33948,40 +33940,40 @@ var MaterialeswinDBDTO = class {
|
|
|
33948
33940
|
ID_StockPersonal = 0;
|
|
33949
33941
|
};
|
|
33950
33942
|
__decorateClass([
|
|
33951
|
-
|
|
33952
|
-
|
|
33943
|
+
Expose554(),
|
|
33944
|
+
IsDefined161({ message: "El campo key es obligatorio." }),
|
|
33953
33945
|
Transform75(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
33954
33946
|
IsString450()
|
|
33955
33947
|
], MaterialeswinDBDTO.prototype, "key", 2);
|
|
33956
33948
|
__decorateClass([
|
|
33957
|
-
|
|
33958
|
-
|
|
33949
|
+
Expose554(),
|
|
33950
|
+
IsDefined161({ message: "El campo codigo es obligatorio." }),
|
|
33959
33951
|
IsString450()
|
|
33960
33952
|
], MaterialeswinDBDTO.prototype, "codigo", 2);
|
|
33961
33953
|
__decorateClass([
|
|
33962
|
-
|
|
33963
|
-
|
|
33954
|
+
Expose554(),
|
|
33955
|
+
IsDefined161({ message: "El campo descripcion es obligatorio." }),
|
|
33964
33956
|
IsString450()
|
|
33965
33957
|
], MaterialeswinDBDTO.prototype, "descripcion", 2);
|
|
33966
33958
|
__decorateClass([
|
|
33967
|
-
|
|
33968
|
-
|
|
33969
|
-
|
|
33959
|
+
Expose554(),
|
|
33960
|
+
IsDefined161({ message: "El campo cantidad es obligatorio." }),
|
|
33961
|
+
IsNumber365()
|
|
33970
33962
|
], MaterialeswinDBDTO.prototype, "cantidad", 2);
|
|
33971
33963
|
__decorateClass([
|
|
33972
|
-
|
|
33973
|
-
|
|
33964
|
+
Expose554(),
|
|
33965
|
+
IsDefined161({ message: "El campo invsn es obligatorio." }),
|
|
33974
33966
|
IsString450()
|
|
33975
33967
|
], MaterialeswinDBDTO.prototype, "invsn", 2);
|
|
33976
33968
|
__decorateClass([
|
|
33977
|
-
|
|
33978
|
-
|
|
33969
|
+
Expose554(),
|
|
33970
|
+
IsDefined161({ message: "El campo invpool es obligatorio." }),
|
|
33979
33971
|
IsString450()
|
|
33980
33972
|
], MaterialeswinDBDTO.prototype, "invpool", 2);
|
|
33981
33973
|
__decorateClass([
|
|
33982
|
-
|
|
33983
|
-
|
|
33984
|
-
|
|
33974
|
+
Expose554(),
|
|
33975
|
+
IsDefined161({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
33976
|
+
IsNumber365()
|
|
33985
33977
|
], MaterialeswinDBDTO.prototype, "ID_StockPersonal", 2);
|
|
33986
33978
|
var HistorialEstadoswinDBDTO = class {
|
|
33987
33979
|
estado = "";
|
|
@@ -33990,23 +33982,23 @@ var HistorialEstadoswinDBDTO = class {
|
|
|
33990
33982
|
fecha = /* @__PURE__ */ new Date();
|
|
33991
33983
|
};
|
|
33992
33984
|
__decorateClass([
|
|
33993
|
-
|
|
33994
|
-
|
|
33985
|
+
Expose554(),
|
|
33986
|
+
IsDefined161({ message: "El campo estado es obligatorio." }),
|
|
33995
33987
|
IsString450()
|
|
33996
33988
|
], HistorialEstadoswinDBDTO.prototype, "estado", 2);
|
|
33997
33989
|
__decorateClass([
|
|
33998
|
-
|
|
33999
|
-
|
|
33990
|
+
Expose554(),
|
|
33991
|
+
IsDefined161({ message: "El campo usuario es obligatorio." }),
|
|
34000
33992
|
IsString450()
|
|
34001
33993
|
], HistorialEstadoswinDBDTO.prototype, "usuario", 2);
|
|
34002
33994
|
__decorateClass([
|
|
34003
|
-
|
|
34004
|
-
|
|
33995
|
+
Expose554(),
|
|
33996
|
+
IsDefined161({ message: "El campo observacion es obligatorio." }),
|
|
34005
33997
|
IsString450()
|
|
34006
33998
|
], HistorialEstadoswinDBDTO.prototype, "observacion", 2);
|
|
34007
33999
|
__decorateClass([
|
|
34008
|
-
|
|
34009
|
-
|
|
34000
|
+
Expose554(),
|
|
34001
|
+
IsDefined161({ message: "El campo fecha es obligatorio." }),
|
|
34010
34002
|
IsDate134({ message: "debe ser una fecha" })
|
|
34011
34003
|
], HistorialEstadoswinDBDTO.prototype, "fecha", 2);
|
|
34012
34004
|
var EECCDBWINDTO = class {
|
|
@@ -34014,11 +34006,11 @@ var EECCDBWINDTO = class {
|
|
|
34014
34006
|
RazonSocial = "";
|
|
34015
34007
|
};
|
|
34016
34008
|
__decorateClass([
|
|
34017
|
-
|
|
34009
|
+
Expose554(),
|
|
34018
34010
|
IsString450()
|
|
34019
34011
|
], EECCDBWINDTO.prototype, "RUC", 2);
|
|
34020
34012
|
__decorateClass([
|
|
34021
|
-
|
|
34013
|
+
Expose554(),
|
|
34022
34014
|
IsString450()
|
|
34023
34015
|
], EECCDBWINDTO.prototype, "RazonSocial", 2);
|
|
34024
34016
|
|
|
@@ -34055,152 +34047,152 @@ var Peru9112WinENTITYDB = class {
|
|
|
34055
34047
|
EECC = new EECCDBWINDTO();
|
|
34056
34048
|
};
|
|
34057
34049
|
__decorateClass([
|
|
34058
|
-
|
|
34059
|
-
|
|
34050
|
+
IsDefined162({ message: "El campo _id es obligatorio." }),
|
|
34051
|
+
Expose555({ name: "_id" })
|
|
34060
34052
|
], Peru9112WinENTITYDB.prototype, "_id", 2);
|
|
34061
34053
|
__decorateClass([
|
|
34062
|
-
|
|
34063
|
-
|
|
34054
|
+
Expose555(),
|
|
34055
|
+
IsDefined162({ message: "El campo ID Recurso es obligatorio." }),
|
|
34064
34056
|
IsString451({ message: "El campo toa_resource_id debe ser una cadena de texto" })
|
|
34065
34057
|
], Peru9112WinENTITYDB.prototype, "resource_id", 2);
|
|
34066
34058
|
__decorateClass([
|
|
34067
|
-
|
|
34068
|
-
|
|
34059
|
+
Expose555(),
|
|
34060
|
+
IsDefined162({ message: "El campo tecnico es obligatorio." }),
|
|
34069
34061
|
IsString451()
|
|
34070
34062
|
], Peru9112WinENTITYDB.prototype, "tecnico", 2);
|
|
34071
34063
|
__decorateClass([
|
|
34072
|
-
|
|
34073
|
-
|
|
34064
|
+
Expose555(),
|
|
34065
|
+
IsDefined162({ message: "El campo subtipo_de_actividad es obligatorio." }),
|
|
34074
34066
|
IsString451()
|
|
34075
34067
|
], Peru9112WinENTITYDB.prototype, "subtipo_de_actividad", 2);
|
|
34076
34068
|
__decorateClass([
|
|
34077
|
-
|
|
34078
|
-
|
|
34069
|
+
Expose555(),
|
|
34070
|
+
IsDefined162({ message: "El campo tipo_orden es obligatorio." }),
|
|
34079
34071
|
IsString451()
|
|
34080
34072
|
], Peru9112WinENTITYDB.prototype, "tipo_orden", 2);
|
|
34081
34073
|
__decorateClass([
|
|
34082
|
-
|
|
34083
|
-
|
|
34074
|
+
Expose555(),
|
|
34075
|
+
IsDefined162({ message: "El campo numero_de_peticion es obligatorio." }),
|
|
34084
34076
|
IsString451()
|
|
34085
34077
|
], Peru9112WinENTITYDB.prototype, "numero_de_peticion", 2);
|
|
34086
34078
|
__decorateClass([
|
|
34087
|
-
|
|
34088
|
-
|
|
34079
|
+
Expose555(),
|
|
34080
|
+
IsDefined162({ message: "El campo fecha_visita es obligatorio." }),
|
|
34089
34081
|
IsDate135({ message: "debe ser una fecha" })
|
|
34090
34082
|
], Peru9112WinENTITYDB.prototype, "fecha_visita", 2);
|
|
34091
34083
|
__decorateClass([
|
|
34092
|
-
|
|
34093
|
-
|
|
34084
|
+
Expose555(),
|
|
34085
|
+
IsDefined162({ message: "El campo inicio_visita es obligatorio." }),
|
|
34094
34086
|
IsDate135({ message: "debe ser una fecha" })
|
|
34095
34087
|
], Peru9112WinENTITYDB.prototype, "inicio_visita", 2);
|
|
34096
34088
|
__decorateClass([
|
|
34097
|
-
|
|
34098
|
-
|
|
34089
|
+
Expose555(),
|
|
34090
|
+
IsDefined162({ message: "El campo fin_visita es obligatorio." }),
|
|
34099
34091
|
IsDate135({ message: "debe ser una fecha" })
|
|
34100
34092
|
], Peru9112WinENTITYDB.prototype, "fin_visita", 2);
|
|
34101
34093
|
__decorateClass([
|
|
34102
|
-
|
|
34103
|
-
|
|
34094
|
+
Expose555(),
|
|
34095
|
+
IsDefined162({ message: "El campo cliente es obligatorio." }),
|
|
34104
34096
|
IsString451()
|
|
34105
34097
|
], Peru9112WinENTITYDB.prototype, "cliente", 2);
|
|
34106
34098
|
__decorateClass([
|
|
34107
|
-
|
|
34108
|
-
|
|
34099
|
+
Expose555(),
|
|
34100
|
+
IsDefined162({ message: "El campo direccion_cliente es obligatorio." }),
|
|
34109
34101
|
ValidateNested320(),
|
|
34110
34102
|
Type361(() => UbicacionwinDBDTO)
|
|
34111
34103
|
], Peru9112WinENTITYDB.prototype, "direccion_cliente", 2);
|
|
34112
34104
|
__decorateClass([
|
|
34113
|
-
|
|
34114
|
-
|
|
34105
|
+
Expose555(),
|
|
34106
|
+
IsDefined162({ message: "El campo motivo_regestion es obligatorio." }),
|
|
34115
34107
|
IsString451()
|
|
34116
34108
|
], Peru9112WinENTITYDB.prototype, "motivo_regestion", 2);
|
|
34117
34109
|
__decorateClass([
|
|
34118
|
-
|
|
34119
|
-
|
|
34110
|
+
Expose555(),
|
|
34111
|
+
IsDefined162({ message: "El campo motivo_cancelacion es obligatorio." }),
|
|
34120
34112
|
IsString451()
|
|
34121
34113
|
], Peru9112WinENTITYDB.prototype, "motivo_cancelacion", 2);
|
|
34122
34114
|
__decorateClass([
|
|
34123
|
-
|
|
34124
|
-
|
|
34115
|
+
Expose555(),
|
|
34116
|
+
IsDefined162({ message: "El campo motivo_suspension es obligatorio." }),
|
|
34125
34117
|
IsString451()
|
|
34126
34118
|
], Peru9112WinENTITYDB.prototype, "motivo_suspension", 2);
|
|
34127
34119
|
__decorateClass([
|
|
34128
|
-
|
|
34129
|
-
|
|
34120
|
+
Expose555(),
|
|
34121
|
+
IsDefined162({ message: "El campo estado es obligatorio." }),
|
|
34130
34122
|
IsEnum21(StateWin, { message: "El campo Estado no es v\xE1lido" })
|
|
34131
34123
|
], Peru9112WinENTITYDB.prototype, "estado", 2);
|
|
34132
34124
|
__decorateClass([
|
|
34133
|
-
|
|
34134
|
-
|
|
34125
|
+
Expose555(),
|
|
34126
|
+
IsDefined162({ message: "El campo fecha_estado es obligatorio." }),
|
|
34135
34127
|
IsDate135({ message: "debe ser una fecha" })
|
|
34136
34128
|
], Peru9112WinENTITYDB.prototype, "fecha_estado", 2);
|
|
34137
34129
|
__decorateClass([
|
|
34138
|
-
|
|
34139
|
-
|
|
34130
|
+
Expose555(),
|
|
34131
|
+
IsDefined162({ message: "El campo fecha_solicitud es obligatorio." }),
|
|
34140
34132
|
IsDate135({ message: "debe ser una fecha" })
|
|
34141
34133
|
], Peru9112WinENTITYDB.prototype, "fecha_solicitud", 2);
|
|
34142
34134
|
__decorateClass([
|
|
34143
|
-
|
|
34144
|
-
|
|
34135
|
+
Expose555(),
|
|
34136
|
+
IsDefined162({ message: "El campo tipo_de_orden es obligatorio." }),
|
|
34145
34137
|
IsString451()
|
|
34146
34138
|
], Peru9112WinENTITYDB.prototype, "tipo_de_orden", 2);
|
|
34147
34139
|
__decorateClass([
|
|
34148
|
-
|
|
34149
|
-
|
|
34140
|
+
Expose555(),
|
|
34141
|
+
IsDefined162({ message: "El campo datos_tecnicos es obligatorio." }),
|
|
34150
34142
|
IsString451()
|
|
34151
34143
|
], Peru9112WinENTITYDB.prototype, "datos_tecnicos", 2);
|
|
34152
34144
|
__decorateClass([
|
|
34153
|
-
|
|
34154
|
-
|
|
34145
|
+
Expose555(),
|
|
34146
|
+
IsDefined162({ message: "El campo movil es obligatorio." }),
|
|
34155
34147
|
IsString451()
|
|
34156
34148
|
], Peru9112WinENTITYDB.prototype, "movil", 2);
|
|
34157
34149
|
__decorateClass([
|
|
34158
|
-
|
|
34159
|
-
|
|
34150
|
+
Expose555(),
|
|
34151
|
+
IsDefined162({ message: "El campo prioridad es obligatorio." }),
|
|
34160
34152
|
IsString451()
|
|
34161
34153
|
], Peru9112WinENTITYDB.prototype, "prioridad", 2);
|
|
34162
34154
|
__decorateClass([
|
|
34163
|
-
|
|
34164
|
-
|
|
34155
|
+
Expose555(),
|
|
34156
|
+
IsDefined162({ message: "El campo suscripci\xF3n es obligatorio." }),
|
|
34165
34157
|
IsString451()
|
|
34166
34158
|
], Peru9112WinENTITYDB.prototype, "suscripci\xF3n", 2);
|
|
34167
34159
|
__decorateClass([
|
|
34168
|
-
|
|
34169
|
-
|
|
34160
|
+
Expose555(),
|
|
34161
|
+
IsDefined162({ message: "El campo proveedor es obligatorio." }),
|
|
34170
34162
|
IsString451()
|
|
34171
34163
|
], Peru9112WinENTITYDB.prototype, "proveedor", 2);
|
|
34172
34164
|
__decorateClass([
|
|
34173
|
-
|
|
34174
|
-
|
|
34165
|
+
Expose555(),
|
|
34166
|
+
IsDefined162({ message: "El campo historial_estados es obligatorio." }),
|
|
34175
34167
|
IsArray185(),
|
|
34176
34168
|
ValidateNested320({ each: true }),
|
|
34177
34169
|
Type361(() => HistorialEstadoswinDBDTO)
|
|
34178
34170
|
], Peru9112WinENTITYDB.prototype, "historial_estados", 2);
|
|
34179
34171
|
__decorateClass([
|
|
34180
|
-
|
|
34181
|
-
|
|
34172
|
+
Expose555(),
|
|
34173
|
+
IsDefined162({ message: "El campo inventory es obligatorio." }),
|
|
34182
34174
|
IsArray185(),
|
|
34183
34175
|
ValidateNested320({ each: true }),
|
|
34184
34176
|
Type361(() => MaterialeswinDBDTO)
|
|
34185
34177
|
], Peru9112WinENTITYDB.prototype, "inventory", 2);
|
|
34186
34178
|
__decorateClass([
|
|
34187
|
-
|
|
34188
|
-
|
|
34189
|
-
|
|
34179
|
+
Expose555(),
|
|
34180
|
+
IsDefined162({ message: "El campo PB es obligatorio." }),
|
|
34181
|
+
IsNumber366()
|
|
34190
34182
|
], Peru9112WinENTITYDB.prototype, "PB", 2);
|
|
34191
34183
|
__decorateClass([
|
|
34192
|
-
|
|
34193
|
-
|
|
34194
|
-
|
|
34184
|
+
Expose555(),
|
|
34185
|
+
IsDefined162({ message: "El campo MO es obligatorio." }),
|
|
34186
|
+
IsNumber366()
|
|
34195
34187
|
], Peru9112WinENTITYDB.prototype, "MO", 2);
|
|
34196
34188
|
__decorateClass([
|
|
34197
|
-
|
|
34198
|
-
|
|
34199
|
-
|
|
34189
|
+
Expose555(),
|
|
34190
|
+
IsDefined162({ message: "El campo Gasto_EECC es obligatorio." }),
|
|
34191
|
+
IsNumber366()
|
|
34200
34192
|
], Peru9112WinENTITYDB.prototype, "Gasto_EECC", 2);
|
|
34201
34193
|
__decorateClass([
|
|
34202
|
-
|
|
34203
|
-
|
|
34194
|
+
Expose555(),
|
|
34195
|
+
IsDefined162({ message: "El campo EECC es obligatorio." }),
|
|
34204
34196
|
ValidateNested320(),
|
|
34205
34197
|
Type361(() => EECCDBWINDTO)
|
|
34206
34198
|
], Peru9112WinENTITYDB.prototype, "EECC", 2);
|
|
@@ -34239,303 +34231,230 @@ var Peru9112WinENTITY = class {
|
|
|
34239
34231
|
EECC = new EECCDBWINDTO();
|
|
34240
34232
|
};
|
|
34241
34233
|
__decorateClass([
|
|
34242
|
-
|
|
34234
|
+
IsDefined163({ message: "El campo _id es obligatorio." }),
|
|
34243
34235
|
IsUUID5("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34244
|
-
|
|
34236
|
+
Expose556({ name: "_id" })
|
|
34245
34237
|
], Peru9112WinENTITY.prototype, "_id", 2);
|
|
34246
34238
|
__decorateClass([
|
|
34247
|
-
|
|
34248
|
-
|
|
34239
|
+
Expose556({ name: "ID Recurso" }),
|
|
34240
|
+
IsDefined163({ message: "El campo ID Recurso es obligatorio." }),
|
|
34249
34241
|
IsString452({ message: "El campo toa_resource_id debe ser una cadena de texto" })
|
|
34250
34242
|
], Peru9112WinENTITY.prototype, "resource_id", 2);
|
|
34251
34243
|
__decorateClass([
|
|
34252
|
-
|
|
34253
|
-
|
|
34244
|
+
Expose556({ name: "Cuadrilla" }),
|
|
34245
|
+
IsDefined163({ message: "El campo T\xE9cnico es obligatorio." }),
|
|
34254
34246
|
IsString452()
|
|
34255
34247
|
], Peru9112WinENTITY.prototype, "tecnico", 2);
|
|
34256
34248
|
__decorateClass([
|
|
34257
|
-
|
|
34258
|
-
|
|
34249
|
+
Expose556({ name: "Tipo Trabajo" }),
|
|
34250
|
+
IsDefined163({ message: "El campo Tipo Trabajo es obligatorio." }),
|
|
34259
34251
|
IsString452()
|
|
34260
34252
|
], Peru9112WinENTITY.prototype, "subtipo_de_actividad", 2);
|
|
34261
34253
|
__decorateClass([
|
|
34262
|
-
|
|
34263
|
-
|
|
34254
|
+
Expose556({ name: "Tipo Orden" }),
|
|
34255
|
+
IsDefined163({ message: "El campo Tipo Orden es obligatorio." }),
|
|
34264
34256
|
IsString452()
|
|
34265
34257
|
], Peru9112WinENTITY.prototype, "tipo_orden", 2);
|
|
34266
34258
|
__decorateClass([
|
|
34267
|
-
|
|
34268
|
-
|
|
34259
|
+
Expose556({ name: "Cod Seguimiento Cliente" }),
|
|
34260
|
+
IsDefined163({ message: "El campo Cod Seguimiento Cliente es obligatorio." }),
|
|
34269
34261
|
IsString452()
|
|
34270
34262
|
], Peru9112WinENTITY.prototype, "numero_de_peticion", 2);
|
|
34271
34263
|
__decorateClass([
|
|
34272
|
-
|
|
34273
|
-
|
|
34264
|
+
Expose556({ name: "Fecha Visita" }),
|
|
34265
|
+
IsDefined163({ message: "El campo Fecha Visita es obligatorio." }),
|
|
34274
34266
|
IsDate136({ message: "debe ser una fecha" })
|
|
34275
34267
|
], Peru9112WinENTITY.prototype, "fecha_visita", 2);
|
|
34276
34268
|
__decorateClass([
|
|
34277
|
-
|
|
34278
|
-
|
|
34269
|
+
Expose556({ name: "Inicio de Visita" }),
|
|
34270
|
+
IsDefined163({ message: "El campo Inicio de Visita es obligatorio." }),
|
|
34279
34271
|
IsDate136({ message: "debe ser una fecha" })
|
|
34280
34272
|
], Peru9112WinENTITY.prototype, "inicio_visita", 2);
|
|
34281
34273
|
__decorateClass([
|
|
34282
|
-
|
|
34283
|
-
|
|
34274
|
+
Expose556({ name: "Fin de Visita" }),
|
|
34275
|
+
IsDefined163({ message: "El campo Fin de Visita es obligatorio." }),
|
|
34284
34276
|
IsDate136({ message: "debe ser una fecha" })
|
|
34285
34277
|
], Peru9112WinENTITY.prototype, "fin_visita", 2);
|
|
34286
34278
|
__decorateClass([
|
|
34287
|
-
|
|
34288
|
-
|
|
34279
|
+
Expose556({ name: "Cliente" }),
|
|
34280
|
+
IsDefined163({ message: "El campo Nombre Cliente es obligatorio." }),
|
|
34289
34281
|
IsString452()
|
|
34290
34282
|
], Peru9112WinENTITY.prototype, "cliente", 2);
|
|
34291
34283
|
__decorateClass([
|
|
34292
|
-
|
|
34293
|
-
|
|
34284
|
+
Expose556({ name: "Direcci\xF3n Cliente" }),
|
|
34285
|
+
IsDefined163({ message: "El campo direccion_cliente es obligatorio." }),
|
|
34294
34286
|
ValidateNested321(),
|
|
34295
34287
|
Type362(() => UbicacionwinDTO)
|
|
34296
34288
|
], Peru9112WinENTITY.prototype, "direccion_cliente", 2);
|
|
34297
34289
|
__decorateClass([
|
|
34298
|
-
|
|
34299
|
-
|
|
34290
|
+
Expose556({ name: "Motivo Regesti\xF3n" }),
|
|
34291
|
+
IsDefined163({ message: "El campo Motivo Regesti\xF3n es obligatorio." }),
|
|
34300
34292
|
IsString452()
|
|
34301
34293
|
], Peru9112WinENTITY.prototype, "motivo_regestion", 2);
|
|
34302
34294
|
__decorateClass([
|
|
34303
|
-
|
|
34304
|
-
|
|
34295
|
+
Expose556({ name: "Motivo de Cancelaci\xF3n" }),
|
|
34296
|
+
IsDefined163({ message: "El campo Motivo de Cancelaci\xF3n es obligatorio." }),
|
|
34305
34297
|
IsString452()
|
|
34306
34298
|
], Peru9112WinENTITY.prototype, "motivo_cancelacion", 2);
|
|
34307
34299
|
__decorateClass([
|
|
34308
|
-
|
|
34309
|
-
|
|
34300
|
+
Expose556({ name: "Motivo de Suspensi\xF3n" }),
|
|
34301
|
+
IsDefined163({ message: "El campo Motivo de Suspensi\xF3n es obligatorio." }),
|
|
34310
34302
|
IsString452()
|
|
34311
34303
|
], Peru9112WinENTITY.prototype, "motivo_suspension", 2);
|
|
34312
34304
|
__decorateClass([
|
|
34313
|
-
|
|
34314
|
-
|
|
34305
|
+
Expose556({ name: "Estado" }),
|
|
34306
|
+
IsDefined163({ message: "El campo Estado actividad es obligatorio." }),
|
|
34315
34307
|
IsEnum22(StateWin, { message: "El campo Estado no es v\xE1lido" })
|
|
34316
34308
|
], Peru9112WinENTITY.prototype, "estado", 2);
|
|
34317
34309
|
__decorateClass([
|
|
34318
|
-
|
|
34310
|
+
Expose556({ name: "Estado Interno" }),
|
|
34319
34311
|
Transform76(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
34320
|
-
|
|
34312
|
+
IsDefined163({ message: "El campo estado interno es obligatorio." }),
|
|
34321
34313
|
IsEnum22(StateInternalOrder, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrder).join(", ")}.` })
|
|
34322
34314
|
], Peru9112WinENTITY.prototype, "estado_interno", 2);
|
|
34323
34315
|
__decorateClass([
|
|
34324
|
-
|
|
34325
|
-
|
|
34316
|
+
Expose556({ name: "Fecha Estado" }),
|
|
34317
|
+
IsDefined163({ message: "El campo Fecha Estado es obligatorio." }),
|
|
34326
34318
|
IsDate136({ message: "debe ser una fecha" })
|
|
34327
34319
|
], Peru9112WinENTITY.prototype, "fecha_estado", 2);
|
|
34328
34320
|
__decorateClass([
|
|
34329
|
-
|
|
34330
|
-
|
|
34321
|
+
Expose556({ name: "Fecha Solicitud" }),
|
|
34322
|
+
IsDefined163({ message: "El campo Fecha Solicitud es obligatorio." }),
|
|
34331
34323
|
IsDate136({ message: "debe ser una fecha" })
|
|
34332
34324
|
], Peru9112WinENTITY.prototype, "fecha_solicitud", 2);
|
|
34333
34325
|
__decorateClass([
|
|
34334
|
-
|
|
34335
|
-
|
|
34326
|
+
Expose556({ name: "Tipo Orden" }),
|
|
34327
|
+
IsDefined163({ message: "El campo Tipo Orden es obligatorio." }),
|
|
34336
34328
|
IsString452()
|
|
34337
34329
|
], Peru9112WinENTITY.prototype, "tipo_de_orden", 2);
|
|
34338
34330
|
__decorateClass([
|
|
34339
|
-
|
|
34340
|
-
|
|
34331
|
+
Expose556({ name: "Datos T\xE9cnicos" }),
|
|
34332
|
+
IsDefined163({ message: "El campo Datos T\xE9cnicos es obligatorio." }),
|
|
34341
34333
|
IsString452()
|
|
34342
34334
|
], Peru9112WinENTITY.prototype, "datos_tecnicos", 2);
|
|
34343
34335
|
__decorateClass([
|
|
34344
|
-
|
|
34345
|
-
|
|
34336
|
+
Expose556({ name: "M\xF3vil" }),
|
|
34337
|
+
IsDefined163({ message: "El campo M\xF3vil es obligatorio." }),
|
|
34346
34338
|
IsString452()
|
|
34347
34339
|
], Peru9112WinENTITY.prototype, "movil", 2);
|
|
34348
34340
|
__decorateClass([
|
|
34349
|
-
|
|
34350
|
-
|
|
34341
|
+
Expose556({ name: "Prioridad" }),
|
|
34342
|
+
IsDefined163({ message: "El campo Prioridad es obligatorio." }),
|
|
34351
34343
|
IsString452()
|
|
34352
34344
|
], Peru9112WinENTITY.prototype, "prioridad", 2);
|
|
34353
34345
|
__decorateClass([
|
|
34354
|
-
|
|
34355
|
-
|
|
34346
|
+
Expose556({ name: "Suscripci\xF3n" }),
|
|
34347
|
+
IsDefined163({ message: "El campo Suscripci\xF3n es obligatorio." }),
|
|
34356
34348
|
IsString452()
|
|
34357
34349
|
], Peru9112WinENTITY.prototype, "suscripci\xF3n", 2);
|
|
34358
34350
|
__decorateClass([
|
|
34359
|
-
|
|
34360
|
-
|
|
34351
|
+
Expose556({ name: "Proveedeor" }),
|
|
34352
|
+
IsDefined163({ message: "El campo proveedor es obligatorio." }),
|
|
34361
34353
|
IsString452()
|
|
34362
34354
|
], Peru9112WinENTITY.prototype, "proveedor", 2);
|
|
34363
34355
|
__decorateClass([
|
|
34364
|
-
|
|
34365
|
-
|
|
34356
|
+
Expose556({ name: "Historial de Estados" }),
|
|
34357
|
+
IsDefined163({ message: "El campo Historial de Estados es obligatorio." }),
|
|
34366
34358
|
IsArray186(),
|
|
34367
34359
|
ValidateNested321({ each: true }),
|
|
34368
34360
|
Type362(() => HistorialEstadoswinDTO)
|
|
34369
34361
|
], Peru9112WinENTITY.prototype, "historial_estados", 2);
|
|
34370
34362
|
__decorateClass([
|
|
34371
|
-
|
|
34372
|
-
|
|
34363
|
+
Expose556({ name: "Inventory" }),
|
|
34364
|
+
IsDefined163({ message: "El campo Inventory es obligatorio." }),
|
|
34373
34365
|
IsArray186(),
|
|
34374
34366
|
ValidateNested321({ each: true }),
|
|
34375
34367
|
Type362(() => MaterialeswinDTO)
|
|
34376
34368
|
], Peru9112WinENTITY.prototype, "inventory", 2);
|
|
34377
34369
|
__decorateClass([
|
|
34378
|
-
|
|
34379
|
-
|
|
34380
|
-
|
|
34370
|
+
Expose556({ name: "PB" }),
|
|
34371
|
+
IsDefined163({ message: "El campo PB es obligatorio." }),
|
|
34372
|
+
IsNumber367()
|
|
34381
34373
|
], Peru9112WinENTITY.prototype, "PB", 2);
|
|
34382
34374
|
__decorateClass([
|
|
34383
|
-
|
|
34384
|
-
|
|
34385
|
-
|
|
34375
|
+
Expose556({ name: "MO" }),
|
|
34376
|
+
IsDefined163({ message: "El campo MO es obligatorio." }),
|
|
34377
|
+
IsNumber367()
|
|
34386
34378
|
], Peru9112WinENTITY.prototype, "MO", 2);
|
|
34387
34379
|
__decorateClass([
|
|
34388
|
-
|
|
34389
|
-
|
|
34390
|
-
|
|
34380
|
+
Expose556({ name: "Gasto_EECC" }),
|
|
34381
|
+
IsDefined163({ message: "El campo Gasto_EECC es obligatorio." }),
|
|
34382
|
+
IsNumber367()
|
|
34391
34383
|
], Peru9112WinENTITY.prototype, "Gasto_EECC", 2);
|
|
34392
34384
|
__decorateClass([
|
|
34393
|
-
|
|
34394
|
-
|
|
34385
|
+
Expose556({ name: "EECC" }),
|
|
34386
|
+
IsDefined163({ message: "El campo EECC es obligatorio." }),
|
|
34395
34387
|
ValidateNested321(),
|
|
34396
34388
|
Type362(() => EECCDBWINDTO)
|
|
34397
34389
|
], Peru9112WinENTITY.prototype, "EECC", 2);
|
|
34398
34390
|
|
|
34399
|
-
// src/operativa/procesos/
|
|
34400
|
-
import { Expose as
|
|
34391
|
+
// src/operativa/procesos/fibramas_order/shared/index.ts
|
|
34392
|
+
import { Expose as Expose560, Transform as Transform79, Type as Type366 } from "class-transformer";
|
|
34401
34393
|
import {
|
|
34402
|
-
|
|
34403
|
-
|
|
34404
|
-
|
|
34405
|
-
|
|
34406
|
-
|
|
34394
|
+
IsDefined as IsDefined167,
|
|
34395
|
+
IsString as IsString456,
|
|
34396
|
+
IsNumber as IsNumber371,
|
|
34397
|
+
ValidateNested as ValidateNested324,
|
|
34398
|
+
IsArray as IsArray189,
|
|
34399
|
+
IsDate as IsDate139,
|
|
34400
|
+
IsEnum as IsEnum25,
|
|
34401
|
+
IsUUID as IsUUID6
|
|
34402
|
+
} from "class-validator";
|
|
34403
|
+
import "reflect-metadata";
|
|
34404
|
+
|
|
34405
|
+
// src/operativa/procesos/fibramas_order/shared/dto/index.ts
|
|
34406
|
+
import { Expose as Expose557, Transform as Transform77 } from "class-transformer";
|
|
34407
|
+
import {
|
|
34408
|
+
IsDefined as IsDefined164,
|
|
34407
34409
|
IsString as IsString453,
|
|
34408
|
-
|
|
34409
|
-
MaxLength as MaxLength3,
|
|
34410
|
-
ValidateNested as ValidateNested322
|
|
34411
|
-
} from "class-validator";
|
|
34412
|
-
var WINOrderStockENTITY = class {
|
|
34413
|
-
_id;
|
|
34414
|
-
id_recurso;
|
|
34415
|
-
itemCode;
|
|
34416
|
-
serial;
|
|
34417
|
-
quantity;
|
|
34418
|
-
numero_de_peticion;
|
|
34419
|
-
stock_quantity_employee = [];
|
|
34420
|
-
state_consumption;
|
|
34421
|
-
state_replacement;
|
|
34422
|
-
};
|
|
34423
|
-
__decorateClass([
|
|
34424
|
-
IsDefined165({ message: "El campo _id es obligatorio." }),
|
|
34425
|
-
IsUUID6("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34426
|
-
Expose558()
|
|
34427
|
-
], WINOrderStockENTITY.prototype, "_id", 2);
|
|
34428
|
-
__decorateClass([
|
|
34429
|
-
Expose558({ name: "id_recurso" }),
|
|
34430
|
-
IsDefined165({ message: "El campo ID Recurso es obligatorio." }),
|
|
34431
|
-
IsString453()
|
|
34432
|
-
], WINOrderStockENTITY.prototype, "id_recurso", 2);
|
|
34433
|
-
__decorateClass([
|
|
34434
|
-
IsDefined165({ message: "El campo itemCode es obligatorio" }),
|
|
34435
|
-
IsString453({ message: "El campo itemCode debe ser una cadena de texto v\xE1lida" }),
|
|
34436
|
-
MaxLength3(50, { message: "El campo itemCode no puede superar los 50 caracteres" }),
|
|
34437
|
-
IsNotEmpty376({ message: "El campo itemCode no puede estar vac\xEDo" }),
|
|
34438
|
-
Expose558()
|
|
34439
|
-
], WINOrderStockENTITY.prototype, "itemCode", 2);
|
|
34440
|
-
__decorateClass([
|
|
34441
|
-
IsDefined165({ message: "El campo serial es obligatorio." }),
|
|
34442
|
-
IsString453({ message: "El campo serial debe ser una cadena de texto" }),
|
|
34443
|
-
Expose558()
|
|
34444
|
-
], WINOrderStockENTITY.prototype, "serial", 2);
|
|
34445
|
-
__decorateClass([
|
|
34446
|
-
Expose558(),
|
|
34447
|
-
IsDefined165({ message: "El campo quantity es obligatorio." }),
|
|
34448
|
-
IsNumber369()
|
|
34449
|
-
], WINOrderStockENTITY.prototype, "quantity", 2);
|
|
34450
|
-
__decorateClass([
|
|
34451
|
-
Expose558(),
|
|
34452
|
-
IsDefined165({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
34453
|
-
IsString453()
|
|
34454
|
-
], WINOrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
34455
|
-
__decorateClass([
|
|
34456
|
-
IsDefined165({ message: "El campo stock_quantity_employee es obligatorio" }),
|
|
34457
|
-
IsArray187({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
34458
|
-
ValidateNested322({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
34459
|
-
Type363(() => StockQuantityEmployeeDTO),
|
|
34460
|
-
Expose558()
|
|
34461
|
-
], WINOrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
34462
|
-
__decorateClass([
|
|
34463
|
-
IsDefined165({ message: "El campo estado consumo es obligatorio." }),
|
|
34464
|
-
Expose558(),
|
|
34465
|
-
IsEnum23(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
34466
|
-
], WINOrderStockENTITY.prototype, "state_consumption", 2);
|
|
34467
|
-
__decorateClass([
|
|
34468
|
-
IsDefined165({ message: "El campo estado reposicion es obligatorio." }),
|
|
34469
|
-
Expose558(),
|
|
34470
|
-
IsEnum23(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
34471
|
-
], WINOrderStockENTITY.prototype, "state_replacement", 2);
|
|
34472
|
-
|
|
34473
|
-
// src/operativa/procesos/fibramas_order/shared/index.ts
|
|
34474
|
-
import { Expose as Expose562, Transform as Transform77, Type as Type367 } from "class-transformer";
|
|
34475
|
-
import {
|
|
34476
|
-
IsDefined as IsDefined169,
|
|
34477
|
-
IsString as IsString457,
|
|
34478
|
-
IsNumber as IsNumber373,
|
|
34479
|
-
ValidateNested as ValidateNested325,
|
|
34480
|
-
IsArray as IsArray190,
|
|
34481
|
-
IsDate as IsDate139,
|
|
34482
|
-
IsEnum as IsEnum26,
|
|
34483
|
-
IsUUID as IsUUID7
|
|
34484
|
-
} from "class-validator";
|
|
34485
|
-
import "reflect-metadata";
|
|
34486
|
-
|
|
34487
|
-
// src/operativa/procesos/fibramas_order/shared/dto/index.ts
|
|
34488
|
-
import { Expose as Expose559 } from "class-transformer";
|
|
34489
|
-
import {
|
|
34490
|
-
IsDefined as IsDefined166,
|
|
34491
|
-
IsString as IsString454,
|
|
34492
|
-
IsNumber as IsNumber370
|
|
34410
|
+
IsNumber as IsNumber368
|
|
34493
34411
|
} from "class-validator";
|
|
34494
34412
|
import "reflect-metadata";
|
|
34495
34413
|
var MaterialesFibramasDTO = class {
|
|
34414
|
+
key = "";
|
|
34496
34415
|
codigo = "";
|
|
34497
34416
|
descripcion = "";
|
|
34498
|
-
lote = "";
|
|
34499
34417
|
cantidad = 0;
|
|
34500
34418
|
invsn = "";
|
|
34501
|
-
invtype = "";
|
|
34502
34419
|
invpool = "";
|
|
34420
|
+
ID_StockPersonal = 0;
|
|
34503
34421
|
};
|
|
34504
34422
|
__decorateClass([
|
|
34505
|
-
|
|
34506
|
-
|
|
34507
|
-
|
|
34423
|
+
Expose557(),
|
|
34424
|
+
IsDefined164({ message: "El campo key es obligatorio." }),
|
|
34425
|
+
Transform77(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
34426
|
+
IsString453()
|
|
34427
|
+
], MaterialesFibramasDTO.prototype, "key", 2);
|
|
34428
|
+
__decorateClass([
|
|
34429
|
+
Expose557(),
|
|
34430
|
+
IsDefined164({ message: "El campo codigo es obligatorio." }),
|
|
34431
|
+
IsString453()
|
|
34508
34432
|
], MaterialesFibramasDTO.prototype, "codigo", 2);
|
|
34509
34433
|
__decorateClass([
|
|
34510
|
-
|
|
34511
|
-
|
|
34512
|
-
|
|
34434
|
+
Expose557(),
|
|
34435
|
+
IsDefined164({ message: "El campo descripcion es obligatorio." }),
|
|
34436
|
+
IsString453()
|
|
34513
34437
|
], MaterialesFibramasDTO.prototype, "descripcion", 2);
|
|
34514
34438
|
__decorateClass([
|
|
34515
|
-
|
|
34516
|
-
|
|
34517
|
-
|
|
34518
|
-
], MaterialesFibramasDTO.prototype, "lote", 2);
|
|
34519
|
-
__decorateClass([
|
|
34520
|
-
Expose559({ name: "quantity" }),
|
|
34521
|
-
IsDefined166({ message: "El campo quantity es obligatorio." }),
|
|
34522
|
-
IsNumber370()
|
|
34439
|
+
Expose557(),
|
|
34440
|
+
IsDefined164({ message: "El campo cantidad es obligatorio." }),
|
|
34441
|
+
IsNumber368()
|
|
34523
34442
|
], MaterialesFibramasDTO.prototype, "cantidad", 2);
|
|
34524
34443
|
__decorateClass([
|
|
34525
|
-
|
|
34526
|
-
|
|
34527
|
-
|
|
34444
|
+
Expose557(),
|
|
34445
|
+
IsDefined164({ message: "El campo invsn es obligatorio." }),
|
|
34446
|
+
IsString453()
|
|
34528
34447
|
], MaterialesFibramasDTO.prototype, "invsn", 2);
|
|
34529
34448
|
__decorateClass([
|
|
34530
|
-
|
|
34531
|
-
|
|
34532
|
-
|
|
34533
|
-
], MaterialesFibramasDTO.prototype, "invtype", 2);
|
|
34534
|
-
__decorateClass([
|
|
34535
|
-
Expose559({ name: "invpool" }),
|
|
34536
|
-
IsDefined166({ message: "El campo invpool es obligatorio." }),
|
|
34537
|
-
IsString454()
|
|
34449
|
+
Expose557(),
|
|
34450
|
+
IsDefined164({ message: "El campo invpool es obligatorio." }),
|
|
34451
|
+
IsString453()
|
|
34538
34452
|
], MaterialesFibramasDTO.prototype, "invpool", 2);
|
|
34453
|
+
__decorateClass([
|
|
34454
|
+
Expose557(),
|
|
34455
|
+
IsDefined164({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
34456
|
+
IsNumber368()
|
|
34457
|
+
], MaterialesFibramasDTO.prototype, "ID_StockPersonal", 2);
|
|
34539
34458
|
var StateFibramas = /* @__PURE__ */ ((StateFibramas2) => {
|
|
34540
34459
|
StateFibramas2["REGISTRADA"] = "REGISTRADA";
|
|
34541
34460
|
StateFibramas2["FINALIZADA"] = "DESCARGADA";
|
|
@@ -34548,81 +34467,88 @@ var StateServiceFibramas = /* @__PURE__ */ ((StateServiceFibramas2) => {
|
|
|
34548
34467
|
})(StateServiceFibramas || {});
|
|
34549
34468
|
|
|
34550
34469
|
// src/operativa/procesos/fibramas_order_db/shared/index.ts
|
|
34551
|
-
import { Expose as
|
|
34470
|
+
import { Expose as Expose559, Type as Type365 } from "class-transformer";
|
|
34552
34471
|
import {
|
|
34553
|
-
IsDefined as
|
|
34554
|
-
IsString as
|
|
34555
|
-
IsNumber as
|
|
34556
|
-
ValidateNested as
|
|
34557
|
-
IsArray as
|
|
34472
|
+
IsDefined as IsDefined166,
|
|
34473
|
+
IsString as IsString455,
|
|
34474
|
+
IsNumber as IsNumber370,
|
|
34475
|
+
ValidateNested as ValidateNested323,
|
|
34476
|
+
IsArray as IsArray188,
|
|
34558
34477
|
IsDate as IsDate138,
|
|
34559
|
-
IsEnum as
|
|
34478
|
+
IsEnum as IsEnum24
|
|
34560
34479
|
} from "class-validator";
|
|
34561
34480
|
import "reflect-metadata";
|
|
34562
34481
|
|
|
34563
34482
|
// src/operativa/procesos/fibramas_order_db/shared/dto/index.ts
|
|
34564
|
-
import { Expose as
|
|
34483
|
+
import { Expose as Expose558, Transform as Transform78 } from "class-transformer";
|
|
34565
34484
|
import {
|
|
34566
|
-
IsDefined as
|
|
34567
|
-
IsString as
|
|
34568
|
-
IsNumber as
|
|
34485
|
+
IsDefined as IsDefined165,
|
|
34486
|
+
IsString as IsString454,
|
|
34487
|
+
IsNumber as IsNumber369
|
|
34569
34488
|
} from "class-validator";
|
|
34570
34489
|
import "reflect-metadata";
|
|
34571
34490
|
var MaterialesFibramasDBDTO = class {
|
|
34491
|
+
key = "";
|
|
34572
34492
|
codigo = "";
|
|
34573
34493
|
descripcion = "";
|
|
34574
|
-
lote = "";
|
|
34575
34494
|
cantidad = 0;
|
|
34576
34495
|
invsn = "";
|
|
34577
34496
|
invtype = "";
|
|
34578
34497
|
invpool = "";
|
|
34498
|
+
ID_StockPersonal = 0;
|
|
34579
34499
|
};
|
|
34580
34500
|
__decorateClass([
|
|
34581
|
-
|
|
34582
|
-
|
|
34583
|
-
|
|
34501
|
+
Expose558(),
|
|
34502
|
+
IsDefined165({ message: "El campo key es obligatorio." }),
|
|
34503
|
+
Transform78(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
34504
|
+
IsString454()
|
|
34505
|
+
], MaterialesFibramasDBDTO.prototype, "key", 2);
|
|
34506
|
+
__decorateClass([
|
|
34507
|
+
Expose558(),
|
|
34508
|
+
IsDefined165({ message: "El campo code es obligatorio." }),
|
|
34509
|
+
IsString454()
|
|
34584
34510
|
], MaterialesFibramasDBDTO.prototype, "codigo", 2);
|
|
34585
34511
|
__decorateClass([
|
|
34586
|
-
|
|
34587
|
-
|
|
34588
|
-
|
|
34512
|
+
Expose558(),
|
|
34513
|
+
IsDefined165({ message: "El campo description es obligatorio." }),
|
|
34514
|
+
IsString454()
|
|
34589
34515
|
], MaterialesFibramasDBDTO.prototype, "descripcion", 2);
|
|
34590
34516
|
__decorateClass([
|
|
34591
|
-
|
|
34592
|
-
|
|
34593
|
-
|
|
34594
|
-
], MaterialesFibramasDBDTO.prototype, "lote", 2);
|
|
34595
|
-
__decorateClass([
|
|
34596
|
-
Expose560(),
|
|
34597
|
-
IsDefined167({ message: "El campo quantity es obligatorio." }),
|
|
34598
|
-
IsNumber371()
|
|
34517
|
+
Expose558(),
|
|
34518
|
+
IsDefined165({ message: "El campo quantity es obligatorio." }),
|
|
34519
|
+
IsNumber369()
|
|
34599
34520
|
], MaterialesFibramasDBDTO.prototype, "cantidad", 2);
|
|
34600
34521
|
__decorateClass([
|
|
34601
|
-
|
|
34602
|
-
|
|
34603
|
-
|
|
34522
|
+
Expose558(),
|
|
34523
|
+
IsDefined165({ message: "El campo invsn es obligatorio." }),
|
|
34524
|
+
IsString454()
|
|
34604
34525
|
], MaterialesFibramasDBDTO.prototype, "invsn", 2);
|
|
34605
34526
|
__decorateClass([
|
|
34606
|
-
|
|
34607
|
-
|
|
34608
|
-
|
|
34527
|
+
Expose558(),
|
|
34528
|
+
IsDefined165({ message: "El campo invtype es obligatorio." }),
|
|
34529
|
+
IsString454()
|
|
34609
34530
|
], MaterialesFibramasDBDTO.prototype, "invtype", 2);
|
|
34610
34531
|
__decorateClass([
|
|
34611
|
-
|
|
34612
|
-
|
|
34613
|
-
|
|
34532
|
+
Expose558(),
|
|
34533
|
+
IsDefined165({ message: "El campo invpool es obligatorio." }),
|
|
34534
|
+
IsString454()
|
|
34614
34535
|
], MaterialesFibramasDBDTO.prototype, "invpool", 2);
|
|
34536
|
+
__decorateClass([
|
|
34537
|
+
Expose558(),
|
|
34538
|
+
IsDefined165({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
34539
|
+
IsNumber369()
|
|
34540
|
+
], MaterialesFibramasDBDTO.prototype, "ID_StockPersonal", 2);
|
|
34615
34541
|
var EECCFibramasDBDTO = class {
|
|
34616
34542
|
RUC = "";
|
|
34617
34543
|
RazonSocial = "";
|
|
34618
34544
|
};
|
|
34619
34545
|
__decorateClass([
|
|
34620
|
-
|
|
34621
|
-
|
|
34546
|
+
Expose558(),
|
|
34547
|
+
IsString454()
|
|
34622
34548
|
], EECCFibramasDBDTO.prototype, "RUC", 2);
|
|
34623
34549
|
__decorateClass([
|
|
34624
|
-
|
|
34625
|
-
|
|
34550
|
+
Expose558(),
|
|
34551
|
+
IsString454()
|
|
34626
34552
|
], EECCFibramasDBDTO.prototype, "RazonSocial", 2);
|
|
34627
34553
|
|
|
34628
34554
|
// src/operativa/procesos/fibramas_order_db/shared/index.ts
|
|
@@ -34658,151 +34584,151 @@ var Peru9112FibramasENTITYDB = class {
|
|
|
34658
34584
|
EECC = new EECCFibramasDBDTO();
|
|
34659
34585
|
};
|
|
34660
34586
|
__decorateClass([
|
|
34661
|
-
|
|
34662
|
-
|
|
34587
|
+
IsDefined166({ message: "El campo _id es obligatorio." }),
|
|
34588
|
+
Expose559()
|
|
34663
34589
|
], Peru9112FibramasENTITYDB.prototype, "_id", 2);
|
|
34664
34590
|
__decorateClass([
|
|
34665
|
-
|
|
34666
|
-
|
|
34667
|
-
|
|
34591
|
+
Expose559(),
|
|
34592
|
+
IsDefined166({ message: "El campo numero_de_peticion es obligatorio." }),
|
|
34593
|
+
IsString455()
|
|
34668
34594
|
], Peru9112FibramasENTITYDB.prototype, "numero_de_peticion", 2);
|
|
34669
34595
|
__decorateClass([
|
|
34670
|
-
|
|
34671
|
-
|
|
34672
|
-
|
|
34596
|
+
Expose559(),
|
|
34597
|
+
IsDefined166({ message: "El campo resource_id es obligatorio." }),
|
|
34598
|
+
IsString455({ message: "El campo resource_id debe ser una cadena de texto" })
|
|
34673
34599
|
], Peru9112FibramasENTITYDB.prototype, "resource_id", 2);
|
|
34674
34600
|
__decorateClass([
|
|
34675
|
-
|
|
34676
|
-
|
|
34677
|
-
|
|
34601
|
+
Expose559(),
|
|
34602
|
+
IsDefined166({ message: "El campo tecnico es obligatorio." }),
|
|
34603
|
+
IsString455()
|
|
34678
34604
|
], Peru9112FibramasENTITYDB.prototype, "tecnico", 2);
|
|
34679
34605
|
__decorateClass([
|
|
34680
|
-
|
|
34681
|
-
|
|
34682
|
-
|
|
34606
|
+
Expose559(),
|
|
34607
|
+
IsDefined166({ message: "El campo subtipo_de_actividad es obligatorio." }),
|
|
34608
|
+
IsString455()
|
|
34683
34609
|
], Peru9112FibramasENTITYDB.prototype, "subtipo_de_actividad", 2);
|
|
34684
34610
|
__decorateClass([
|
|
34685
|
-
|
|
34686
|
-
|
|
34687
|
-
|
|
34611
|
+
Expose559(),
|
|
34612
|
+
IsDefined166({ message: "El campo tipo_orden es obligatorio." }),
|
|
34613
|
+
IsString455()
|
|
34688
34614
|
], Peru9112FibramasENTITYDB.prototype, "tipo_orden", 2);
|
|
34689
34615
|
__decorateClass([
|
|
34690
|
-
|
|
34691
|
-
|
|
34692
|
-
|
|
34616
|
+
Expose559(),
|
|
34617
|
+
IsDefined166({ message: "El campo servicio es obligatorio." }),
|
|
34618
|
+
IsString455()
|
|
34693
34619
|
], Peru9112FibramasENTITYDB.prototype, "servicio", 2);
|
|
34694
34620
|
__decorateClass([
|
|
34695
|
-
|
|
34696
|
-
|
|
34697
|
-
|
|
34621
|
+
Expose559(),
|
|
34622
|
+
IsDefined166({ message: "El campo estado_del_servicio es obligatorio." }),
|
|
34623
|
+
IsEnum24(StateServiceFibramas, { message: "El campo ESTADO DEL SERVICIO no es v\xE1lido" })
|
|
34698
34624
|
], Peru9112FibramasENTITYDB.prototype, "estado_del_servicio", 2);
|
|
34699
34625
|
__decorateClass([
|
|
34700
|
-
|
|
34701
|
-
|
|
34702
|
-
|
|
34626
|
+
Expose559(),
|
|
34627
|
+
IsDefined166({ message: "El campo tarifa_de_servicio es obligatorio." }),
|
|
34628
|
+
IsString455()
|
|
34703
34629
|
], Peru9112FibramasENTITYDB.prototype, "tarifa_de_servicio", 2);
|
|
34704
34630
|
__decorateClass([
|
|
34705
|
-
|
|
34706
|
-
|
|
34707
|
-
|
|
34631
|
+
Expose559(),
|
|
34632
|
+
IsDefined166({ message: "El campo puntos_principal_instalacion es obligatorio." }),
|
|
34633
|
+
IsNumber370()
|
|
34708
34634
|
], Peru9112FibramasENTITYDB.prototype, "puntos_principal_instalacion", 2);
|
|
34709
34635
|
__decorateClass([
|
|
34710
|
-
|
|
34711
|
-
|
|
34712
|
-
|
|
34636
|
+
Expose559(),
|
|
34637
|
+
IsDefined166({ message: "El campo puntos_adicional_instalacion es obligatorio." }),
|
|
34638
|
+
IsNumber370()
|
|
34713
34639
|
], Peru9112FibramasENTITYDB.prototype, "puntos_adicional_instalacion", 2);
|
|
34714
34640
|
__decorateClass([
|
|
34715
|
-
|
|
34716
|
-
|
|
34717
|
-
|
|
34641
|
+
Expose559(),
|
|
34642
|
+
IsDefined166({ message: "El campo abonado es obligatorio." }),
|
|
34643
|
+
IsString455()
|
|
34718
34644
|
], Peru9112FibramasENTITYDB.prototype, "abonado", 2);
|
|
34719
34645
|
__decorateClass([
|
|
34720
|
-
|
|
34721
|
-
|
|
34722
|
-
|
|
34646
|
+
Expose559(),
|
|
34647
|
+
IsDefined166({ message: "El campo cliente es obligatorio." }),
|
|
34648
|
+
IsString455()
|
|
34723
34649
|
], Peru9112FibramasENTITYDB.prototype, "cliente", 2);
|
|
34724
34650
|
__decorateClass([
|
|
34725
|
-
|
|
34726
|
-
|
|
34727
|
-
|
|
34651
|
+
Expose559(),
|
|
34652
|
+
IsDefined166({ message: "El campo direccion es obligatorio." }),
|
|
34653
|
+
IsString455()
|
|
34728
34654
|
], Peru9112FibramasENTITYDB.prototype, "direccion", 2);
|
|
34729
34655
|
__decorateClass([
|
|
34730
|
-
|
|
34731
|
-
|
|
34732
|
-
|
|
34656
|
+
Expose559(),
|
|
34657
|
+
IsDefined166({ message: "El campo sector_operativo es obligatorio." }),
|
|
34658
|
+
IsString455()
|
|
34733
34659
|
], Peru9112FibramasENTITYDB.prototype, "sector_operativo", 2);
|
|
34734
34660
|
__decorateClass([
|
|
34735
|
-
|
|
34736
|
-
|
|
34737
|
-
|
|
34661
|
+
Expose559(),
|
|
34662
|
+
IsDefined166({ message: "El campo contacto es obligatorio." }),
|
|
34663
|
+
IsString455()
|
|
34738
34664
|
], Peru9112FibramasENTITYDB.prototype, "contacto", 2);
|
|
34739
34665
|
__decorateClass([
|
|
34740
|
-
|
|
34741
|
-
|
|
34742
|
-
|
|
34666
|
+
Expose559(),
|
|
34667
|
+
IsDefined166({ message: "El campo contacto_2 es obligatorio." }),
|
|
34668
|
+
IsString455()
|
|
34743
34669
|
], Peru9112FibramasENTITYDB.prototype, "contacto_2", 2);
|
|
34744
34670
|
__decorateClass([
|
|
34745
|
-
|
|
34746
|
-
|
|
34747
|
-
|
|
34671
|
+
Expose559(),
|
|
34672
|
+
IsDefined166({ message: "El campo observaciones es obligatorio." }),
|
|
34673
|
+
IsString455()
|
|
34748
34674
|
], Peru9112FibramasENTITYDB.prototype, "observaciones", 2);
|
|
34749
34675
|
__decorateClass([
|
|
34750
|
-
|
|
34751
|
-
|
|
34676
|
+
Expose559(),
|
|
34677
|
+
IsDefined166({ message: "El campo fecha_recepcion es obligatorio." }),
|
|
34752
34678
|
IsDate138({ message: "debe ser una fecha" })
|
|
34753
34679
|
], Peru9112FibramasENTITYDB.prototype, "fecha_recepcion", 2);
|
|
34754
34680
|
__decorateClass([
|
|
34755
|
-
|
|
34756
|
-
|
|
34757
|
-
|
|
34681
|
+
Expose559(),
|
|
34682
|
+
IsDefined166({ message: "El campo hora_recepcion es obligatorio." }),
|
|
34683
|
+
IsString455()
|
|
34758
34684
|
], Peru9112FibramasENTITYDB.prototype, "hora_recepcion", 2);
|
|
34759
34685
|
__decorateClass([
|
|
34760
|
-
|
|
34761
|
-
|
|
34686
|
+
Expose559(),
|
|
34687
|
+
IsDefined166({ message: "El campo fecha_atencion es obligatorio." }),
|
|
34762
34688
|
IsDate138({ message: "debe ser una fecha" })
|
|
34763
34689
|
], Peru9112FibramasENTITYDB.prototype, "fecha_atencion", 2);
|
|
34764
34690
|
__decorateClass([
|
|
34765
|
-
|
|
34766
|
-
|
|
34767
|
-
|
|
34691
|
+
Expose559(),
|
|
34692
|
+
IsDefined166({ message: "El campo hora_ini_atencion es obligatorio." }),
|
|
34693
|
+
IsString455()
|
|
34768
34694
|
], Peru9112FibramasENTITYDB.prototype, "hora_ini_atencion", 2);
|
|
34769
34695
|
__decorateClass([
|
|
34770
|
-
|
|
34771
|
-
|
|
34772
|
-
|
|
34696
|
+
Expose559(),
|
|
34697
|
+
IsDefined166({ message: "El campo hora_fin_atencion es obligatorio." }),
|
|
34698
|
+
IsString455()
|
|
34773
34699
|
], Peru9112FibramasENTITYDB.prototype, "hora_fin_atencion", 2);
|
|
34774
34700
|
__decorateClass([
|
|
34775
|
-
|
|
34776
|
-
|
|
34777
|
-
|
|
34701
|
+
Expose559(),
|
|
34702
|
+
IsDefined166({ message: "El campo estado es obligatorio." }),
|
|
34703
|
+
IsEnum24(StateFibramas, { message: "El campo ESTADO OS no es v\xE1lido" })
|
|
34778
34704
|
], Peru9112FibramasENTITYDB.prototype, "estado", 2);
|
|
34779
34705
|
__decorateClass([
|
|
34780
|
-
|
|
34781
|
-
|
|
34782
|
-
|
|
34783
|
-
|
|
34784
|
-
|
|
34706
|
+
Expose559(),
|
|
34707
|
+
IsDefined166({ message: "El campo Inventory es obligatorio." }),
|
|
34708
|
+
IsArray188(),
|
|
34709
|
+
ValidateNested323({ each: true }),
|
|
34710
|
+
Type365(() => MaterialesFibramasDBDTO)
|
|
34785
34711
|
], Peru9112FibramasENTITYDB.prototype, "inventory", 2);
|
|
34786
34712
|
__decorateClass([
|
|
34787
|
-
|
|
34788
|
-
|
|
34789
|
-
|
|
34713
|
+
Expose559(),
|
|
34714
|
+
IsDefined166({ message: "El campo PB es obligatorio." }),
|
|
34715
|
+
IsNumber370()
|
|
34790
34716
|
], Peru9112FibramasENTITYDB.prototype, "PB", 2);
|
|
34791
34717
|
__decorateClass([
|
|
34792
|
-
|
|
34793
|
-
|
|
34794
|
-
|
|
34718
|
+
Expose559(),
|
|
34719
|
+
IsDefined166({ message: "El campo MO es obligatorio." }),
|
|
34720
|
+
IsNumber370()
|
|
34795
34721
|
], Peru9112FibramasENTITYDB.prototype, "MO", 2);
|
|
34796
34722
|
__decorateClass([
|
|
34797
|
-
|
|
34798
|
-
|
|
34799
|
-
|
|
34723
|
+
Expose559(),
|
|
34724
|
+
IsDefined166({ message: "El campo Gasto_EECC es obligatorio." }),
|
|
34725
|
+
IsNumber370()
|
|
34800
34726
|
], Peru9112FibramasENTITYDB.prototype, "Gasto_EECC", 2);
|
|
34801
34727
|
__decorateClass([
|
|
34802
|
-
|
|
34803
|
-
|
|
34804
|
-
|
|
34805
|
-
|
|
34728
|
+
Expose559(),
|
|
34729
|
+
IsDefined166({ message: "El campo EECC es obligatorio." }),
|
|
34730
|
+
ValidateNested323(),
|
|
34731
|
+
Type365(() => EECCFibramasDBDTO)
|
|
34806
34732
|
], Peru9112FibramasENTITYDB.prototype, "EECC", 2);
|
|
34807
34733
|
|
|
34808
34734
|
// src/operativa/procesos/fibramas_order/shared/index.ts
|
|
@@ -34839,163 +34765,237 @@ var Peru9112FibramasENTITY = class {
|
|
|
34839
34765
|
EECC = new EECCFibramasDBDTO();
|
|
34840
34766
|
};
|
|
34841
34767
|
__decorateClass([
|
|
34842
|
-
|
|
34843
|
-
|
|
34844
|
-
|
|
34768
|
+
IsDefined167({ message: "El campo _id es obligatorio." }),
|
|
34769
|
+
IsUUID6("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34770
|
+
Expose560({ name: "_id" })
|
|
34845
34771
|
], Peru9112FibramasENTITY.prototype, "_id", 2);
|
|
34846
34772
|
__decorateClass([
|
|
34847
|
-
|
|
34848
|
-
|
|
34849
|
-
|
|
34773
|
+
Expose560({ name: "NRO OS" }),
|
|
34774
|
+
IsDefined167({ message: "El campo NRO OS es obligatorio." }),
|
|
34775
|
+
IsString456()
|
|
34850
34776
|
], Peru9112FibramasENTITY.prototype, "numero_de_peticion", 2);
|
|
34851
34777
|
__decorateClass([
|
|
34852
|
-
|
|
34853
|
-
|
|
34854
|
-
|
|
34778
|
+
Expose560({ name: "ID Recurso" }),
|
|
34779
|
+
IsDefined167({ message: "El campo ID Recurso es obligatorio." }),
|
|
34780
|
+
IsString456({ message: "El campo toa_resource_id debe ser una cadena de texto" })
|
|
34855
34781
|
], Peru9112FibramasENTITY.prototype, "resource_id", 2);
|
|
34856
34782
|
__decorateClass([
|
|
34857
|
-
|
|
34858
|
-
|
|
34859
|
-
|
|
34783
|
+
Expose560({ name: "NOMBRE TECNICO EJECUTOR" }),
|
|
34784
|
+
IsDefined167({ message: "El campo NOMBRE TECNICO EJECUTOR es obligatorio." }),
|
|
34785
|
+
IsString456()
|
|
34860
34786
|
], Peru9112FibramasENTITY.prototype, "tecnico", 2);
|
|
34861
34787
|
__decorateClass([
|
|
34862
|
-
|
|
34863
|
-
|
|
34864
|
-
|
|
34788
|
+
Expose560({ name: "TIPO OS" }),
|
|
34789
|
+
IsDefined167({ message: "El campo TIPO OS es obligatorio." }),
|
|
34790
|
+
IsString456()
|
|
34865
34791
|
], Peru9112FibramasENTITY.prototype, "subtipo_de_actividad", 2);
|
|
34866
34792
|
__decorateClass([
|
|
34867
|
-
|
|
34868
|
-
|
|
34869
|
-
|
|
34793
|
+
Expose560({ name: "TipoOS" }),
|
|
34794
|
+
IsDefined167({ message: "El campo TipoOS es obligatorio." }),
|
|
34795
|
+
IsString456()
|
|
34870
34796
|
], Peru9112FibramasENTITY.prototype, "tipo_orden", 2);
|
|
34871
34797
|
__decorateClass([
|
|
34872
|
-
|
|
34873
|
-
|
|
34874
|
-
|
|
34798
|
+
Expose560({ name: "SERVICIO" }),
|
|
34799
|
+
IsDefined167({ message: "El campo SERVICIO es obligatorio." }),
|
|
34800
|
+
IsString456()
|
|
34875
34801
|
], Peru9112FibramasENTITY.prototype, "servicio", 2);
|
|
34876
34802
|
__decorateClass([
|
|
34877
|
-
|
|
34878
|
-
|
|
34879
|
-
|
|
34803
|
+
Expose560({ name: "ESTADO DEL SERVICIO" }),
|
|
34804
|
+
IsDefined167({ message: "El campo ESTADO DEL SERVICIO es obligatorio." }),
|
|
34805
|
+
IsEnum25(StateServiceFibramas, { message: "El campo ESTADO DEL SERVICIO no es v\xE1lido" })
|
|
34880
34806
|
], Peru9112FibramasENTITY.prototype, "estado_del_servicio", 2);
|
|
34881
34807
|
__decorateClass([
|
|
34882
|
-
|
|
34883
|
-
|
|
34884
|
-
|
|
34885
|
-
|
|
34808
|
+
Expose560({ name: "Estado Interno" }),
|
|
34809
|
+
Transform79(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
34810
|
+
IsDefined167({ message: "El campo estado interno es obligatorio." }),
|
|
34811
|
+
IsEnum25(StateInternalOrder, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrder).join(", ")}.` })
|
|
34886
34812
|
], Peru9112FibramasENTITY.prototype, "estado_interno", 2);
|
|
34887
34813
|
__decorateClass([
|
|
34888
|
-
|
|
34889
|
-
|
|
34890
|
-
|
|
34814
|
+
Expose560({ name: "TARIFA DE SERVICIO" }),
|
|
34815
|
+
IsDefined167({ message: "El campo TARIFA DE SERVICIO es obligatorio." }),
|
|
34816
|
+
IsString456()
|
|
34891
34817
|
], Peru9112FibramasENTITY.prototype, "tarifa_de_servicio", 2);
|
|
34892
34818
|
__decorateClass([
|
|
34893
|
-
|
|
34894
|
-
|
|
34895
|
-
|
|
34819
|
+
Expose560({ name: "PUNTOS PRINC. INSTAL" }),
|
|
34820
|
+
IsDefined167({ message: "El campo PUNTOS PRINC. INSTAL es obligatorio." }),
|
|
34821
|
+
IsNumber371()
|
|
34896
34822
|
], Peru9112FibramasENTITY.prototype, "puntos_principal_instalacion", 2);
|
|
34897
34823
|
__decorateClass([
|
|
34898
|
-
|
|
34899
|
-
|
|
34900
|
-
|
|
34824
|
+
Expose560({ name: "PUNTOS ADD. INSTAL" }),
|
|
34825
|
+
IsDefined167({ message: "El campo PUNTOS ADD. INSTAL es obligatorio." }),
|
|
34826
|
+
IsNumber371()
|
|
34901
34827
|
], Peru9112FibramasENTITY.prototype, "puntos_adicional_instalacion", 2);
|
|
34902
34828
|
__decorateClass([
|
|
34903
|
-
|
|
34904
|
-
|
|
34905
|
-
|
|
34829
|
+
Expose560({ name: "ABONADO" }),
|
|
34830
|
+
IsDefined167({ message: "El campo ABONADO es obligatorio." }),
|
|
34831
|
+
IsString456()
|
|
34906
34832
|
], Peru9112FibramasENTITY.prototype, "abonado", 2);
|
|
34907
34833
|
__decorateClass([
|
|
34908
|
-
|
|
34909
|
-
|
|
34910
|
-
|
|
34834
|
+
Expose560({ name: "NOMBRES/RAZON SOCIAL" }),
|
|
34835
|
+
IsDefined167({ message: "El campo NOMBRES/RAZON SOCIAL es obligatorio." }),
|
|
34836
|
+
IsString456()
|
|
34911
34837
|
], Peru9112FibramasENTITY.prototype, "cliente", 2);
|
|
34912
34838
|
__decorateClass([
|
|
34913
|
-
|
|
34914
|
-
|
|
34915
|
-
|
|
34839
|
+
Expose560({ name: "RUTA" }),
|
|
34840
|
+
IsDefined167({ message: "El campo RUTA es obligatorio." }),
|
|
34841
|
+
IsString456()
|
|
34916
34842
|
], Peru9112FibramasENTITY.prototype, "direccion", 2);
|
|
34917
34843
|
__decorateClass([
|
|
34918
|
-
|
|
34919
|
-
|
|
34920
|
-
|
|
34844
|
+
Expose560({ name: "SECTOR" }),
|
|
34845
|
+
IsDefined167({ message: "El campo SECTOR es obligatorio." }),
|
|
34846
|
+
IsString456()
|
|
34921
34847
|
], Peru9112FibramasENTITY.prototype, "sector_operativo", 2);
|
|
34922
34848
|
__decorateClass([
|
|
34923
|
-
|
|
34924
|
-
|
|
34925
|
-
|
|
34849
|
+
Expose560({ name: "CELULAR" }),
|
|
34850
|
+
IsDefined167({ message: "El campo CELULAR es obligatorio." }),
|
|
34851
|
+
IsString456()
|
|
34926
34852
|
], Peru9112FibramasENTITY.prototype, "contacto", 2);
|
|
34927
34853
|
__decorateClass([
|
|
34928
|
-
|
|
34929
|
-
|
|
34930
|
-
|
|
34854
|
+
Expose560({ name: "CELULAR DOS" }),
|
|
34855
|
+
IsDefined167({ message: "El campo CELULAR DOS es obligatorio." }),
|
|
34856
|
+
IsString456()
|
|
34931
34857
|
], Peru9112FibramasENTITY.prototype, "contacto_2", 2);
|
|
34932
34858
|
__decorateClass([
|
|
34933
|
-
|
|
34934
|
-
|
|
34935
|
-
|
|
34859
|
+
Expose560({ name: "OBSERVACIONES" }),
|
|
34860
|
+
IsDefined167({ message: "El campo OBSERVACIONES es obligatorio." }),
|
|
34861
|
+
IsString456()
|
|
34936
34862
|
], Peru9112FibramasENTITY.prototype, "observaciones", 2);
|
|
34937
34863
|
__decorateClass([
|
|
34938
|
-
|
|
34939
|
-
|
|
34864
|
+
Expose560({ name: "F. RECEP." }),
|
|
34865
|
+
IsDefined167({ message: "El campo F. RECEP. es obligatorio." }),
|
|
34940
34866
|
IsDate139({ message: "debe ser una fecha" })
|
|
34941
34867
|
], Peru9112FibramasENTITY.prototype, "fecha_recepcion", 2);
|
|
34942
34868
|
__decorateClass([
|
|
34943
|
-
|
|
34944
|
-
|
|
34945
|
-
|
|
34869
|
+
Expose560({ name: "H. RECEP." }),
|
|
34870
|
+
IsDefined167({ message: "El campo H. RECEP. es obligatorio." }),
|
|
34871
|
+
IsString456()
|
|
34946
34872
|
], Peru9112FibramasENTITY.prototype, "hora_recepcion", 2);
|
|
34947
34873
|
__decorateClass([
|
|
34948
|
-
|
|
34949
|
-
|
|
34874
|
+
Expose560({ name: "F. ATENC." }),
|
|
34875
|
+
IsDefined167({ message: "El campo F. ATENC. es obligatorio." }),
|
|
34950
34876
|
IsDate139({ message: "debe ser una fecha" })
|
|
34951
34877
|
], Peru9112FibramasENTITY.prototype, "fecha_atencion", 2);
|
|
34952
34878
|
__decorateClass([
|
|
34953
|
-
|
|
34954
|
-
|
|
34955
|
-
|
|
34879
|
+
Expose560({ name: "H. INI" }),
|
|
34880
|
+
IsDefined167({ message: "El campo H. INI es obligatorio." }),
|
|
34881
|
+
IsString456()
|
|
34956
34882
|
], Peru9112FibramasENTITY.prototype, "hora_ini_atencion", 2);
|
|
34957
34883
|
__decorateClass([
|
|
34958
|
-
|
|
34959
|
-
|
|
34960
|
-
|
|
34884
|
+
Expose560({ name: "H. FIN" }),
|
|
34885
|
+
IsDefined167({ message: "El campo H. FIN es obligatorio." }),
|
|
34886
|
+
IsString456()
|
|
34961
34887
|
], Peru9112FibramasENTITY.prototype, "hora_fin_atencion", 2);
|
|
34962
34888
|
__decorateClass([
|
|
34963
|
-
|
|
34964
|
-
|
|
34965
|
-
|
|
34889
|
+
Expose560({ name: "ESTADO OS" }),
|
|
34890
|
+
IsDefined167({ message: "El campo ESTADO OS es obligatorio." }),
|
|
34891
|
+
IsEnum25(StateFibramas, { message: "El campo ESTADO OS no es v\xE1lido" })
|
|
34966
34892
|
], Peru9112FibramasENTITY.prototype, "estado", 2);
|
|
34967
34893
|
__decorateClass([
|
|
34968
|
-
|
|
34969
|
-
|
|
34970
|
-
|
|
34971
|
-
|
|
34972
|
-
|
|
34894
|
+
Expose560({ name: "Inventory" }),
|
|
34895
|
+
IsDefined167({ message: "El campo Inventory es obligatorio." }),
|
|
34896
|
+
IsArray189(),
|
|
34897
|
+
ValidateNested324({ each: true }),
|
|
34898
|
+
Type366(() => MaterialesFibramasDTO)
|
|
34973
34899
|
], Peru9112FibramasENTITY.prototype, "inventory", 2);
|
|
34974
34900
|
__decorateClass([
|
|
34975
|
-
|
|
34976
|
-
|
|
34977
|
-
|
|
34901
|
+
Expose560({ name: "PB" }),
|
|
34902
|
+
IsDefined167({ message: "El campo PB es obligatorio." }),
|
|
34903
|
+
IsNumber371()
|
|
34978
34904
|
], Peru9112FibramasENTITY.prototype, "PB", 2);
|
|
34979
34905
|
__decorateClass([
|
|
34980
|
-
|
|
34981
|
-
|
|
34982
|
-
|
|
34906
|
+
Expose560({ name: "MO" }),
|
|
34907
|
+
IsDefined167({ message: "El campo MO es obligatorio." }),
|
|
34908
|
+
IsNumber371()
|
|
34983
34909
|
], Peru9112FibramasENTITY.prototype, "MO", 2);
|
|
34984
34910
|
__decorateClass([
|
|
34985
|
-
|
|
34986
|
-
|
|
34987
|
-
|
|
34911
|
+
Expose560({ name: "Gasto_EECC" }),
|
|
34912
|
+
IsDefined167({ message: "El campo Gasto_EECC es obligatorio." }),
|
|
34913
|
+
IsNumber371()
|
|
34988
34914
|
], Peru9112FibramasENTITY.prototype, "Gasto_EECC", 2);
|
|
34989
34915
|
__decorateClass([
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
|
|
34993
|
-
|
|
34916
|
+
Expose560({ name: "EECC" }),
|
|
34917
|
+
IsDefined167({ message: "El campo EECC es obligatorio." }),
|
|
34918
|
+
ValidateNested324(),
|
|
34919
|
+
Type366(() => EECCFibramasDBDTO)
|
|
34994
34920
|
], Peru9112FibramasENTITY.prototype, "EECC", 2);
|
|
34995
34921
|
|
|
34922
|
+
// src/operativa/procesos/order stock/shared/index.ts
|
|
34923
|
+
import { Expose as Expose561, Type as Type367 } from "class-transformer";
|
|
34924
|
+
import {
|
|
34925
|
+
IsArray as IsArray190,
|
|
34926
|
+
IsDefined as IsDefined168,
|
|
34927
|
+
IsEnum as IsEnum26,
|
|
34928
|
+
IsNotEmpty as IsNotEmpty376,
|
|
34929
|
+
IsNumber as IsNumber372,
|
|
34930
|
+
IsString as IsString457,
|
|
34931
|
+
IsUUID as IsUUID7,
|
|
34932
|
+
MaxLength as MaxLength3,
|
|
34933
|
+
ValidateNested as ValidateNested325
|
|
34934
|
+
} from "class-validator";
|
|
34935
|
+
var OrderStockENTITY = class {
|
|
34936
|
+
_id;
|
|
34937
|
+
id_recurso;
|
|
34938
|
+
itemCode;
|
|
34939
|
+
serial;
|
|
34940
|
+
quantity;
|
|
34941
|
+
numero_de_peticion;
|
|
34942
|
+
stock_quantity_employee = [];
|
|
34943
|
+
state_consumption;
|
|
34944
|
+
state_replacement;
|
|
34945
|
+
};
|
|
34946
|
+
__decorateClass([
|
|
34947
|
+
IsDefined168({ message: "El campo _id es obligatorio." }),
|
|
34948
|
+
IsUUID7("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34949
|
+
Expose561()
|
|
34950
|
+
], OrderStockENTITY.prototype, "_id", 2);
|
|
34951
|
+
__decorateClass([
|
|
34952
|
+
Expose561({ name: "id_recurso" }),
|
|
34953
|
+
IsDefined168({ message: "El campo ID Recurso es obligatorio." }),
|
|
34954
|
+
IsString457()
|
|
34955
|
+
], OrderStockENTITY.prototype, "id_recurso", 2);
|
|
34956
|
+
__decorateClass([
|
|
34957
|
+
IsDefined168({ message: "El campo itemCode es obligatorio" }),
|
|
34958
|
+
IsString457({ message: "El campo itemCode debe ser una cadena de texto v\xE1lida" }),
|
|
34959
|
+
MaxLength3(50, { message: "El campo itemCode no puede superar los 50 caracteres" }),
|
|
34960
|
+
IsNotEmpty376({ message: "El campo itemCode no puede estar vac\xEDo" }),
|
|
34961
|
+
Expose561()
|
|
34962
|
+
], OrderStockENTITY.prototype, "itemCode", 2);
|
|
34963
|
+
__decorateClass([
|
|
34964
|
+
IsDefined168({ message: "El campo serial es obligatorio." }),
|
|
34965
|
+
IsString457({ message: "El campo serial debe ser una cadena de texto" }),
|
|
34966
|
+
Expose561()
|
|
34967
|
+
], OrderStockENTITY.prototype, "serial", 2);
|
|
34968
|
+
__decorateClass([
|
|
34969
|
+
Expose561(),
|
|
34970
|
+
IsDefined168({ message: "El campo quantity es obligatorio." }),
|
|
34971
|
+
IsNumber372()
|
|
34972
|
+
], OrderStockENTITY.prototype, "quantity", 2);
|
|
34973
|
+
__decorateClass([
|
|
34974
|
+
Expose561(),
|
|
34975
|
+
IsDefined168({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
34976
|
+
IsString457()
|
|
34977
|
+
], OrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
34978
|
+
__decorateClass([
|
|
34979
|
+
IsDefined168({ message: "El campo stock_quantity_employee es obligatorio" }),
|
|
34980
|
+
IsArray190({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
34981
|
+
ValidateNested325({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
34982
|
+
Type367(() => StockQuantityEmployeeDTO),
|
|
34983
|
+
Expose561()
|
|
34984
|
+
], OrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
34985
|
+
__decorateClass([
|
|
34986
|
+
IsDefined168({ message: "El campo estado consumo es obligatorio." }),
|
|
34987
|
+
Expose561(),
|
|
34988
|
+
IsEnum26(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
34989
|
+
], OrderStockENTITY.prototype, "state_consumption", 2);
|
|
34990
|
+
__decorateClass([
|
|
34991
|
+
IsDefined168({ message: "El campo estado reposicion es obligatorio." }),
|
|
34992
|
+
Expose561(),
|
|
34993
|
+
IsEnum26(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
34994
|
+
], OrderStockENTITY.prototype, "state_replacement", 2);
|
|
34995
|
+
|
|
34996
34996
|
// src/operativa/procesos/TOA orden liquidacion/shared/index.ts
|
|
34997
|
-
import { Expose as
|
|
34998
|
-
import { IsArray as IsArray191, IsDefined as
|
|
34997
|
+
import { Expose as Expose562, Transform as Transform80, Type as Type368 } from "class-transformer";
|
|
34998
|
+
import { IsArray as IsArray191, IsDefined as IsDefined169, IsEnum as IsEnum27, IsNumber as IsNumber373, IsObject as IsObject12, IsString as IsString458, IsUUID as IsUUID8, ValidateNested as ValidateNested326 } from "class-validator";
|
|
34999
34999
|
var TOAOrdenLiquidacionENTITY = class {
|
|
35000
35000
|
_id;
|
|
35001
35001
|
tecnico;
|
|
@@ -35020,156 +35020,156 @@ var TOAOrdenLiquidacionENTITY = class {
|
|
|
35020
35020
|
inventario;
|
|
35021
35021
|
};
|
|
35022
35022
|
__decorateClass([
|
|
35023
|
-
|
|
35023
|
+
IsDefined169({ message: "El campo _id es obligatorio." }),
|
|
35024
35024
|
IsUUID8("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
35025
|
-
|
|
35025
|
+
Expose562()
|
|
35026
35026
|
], TOAOrdenLiquidacionENTITY.prototype, "_id", 2);
|
|
35027
35027
|
__decorateClass([
|
|
35028
|
-
|
|
35029
|
-
|
|
35028
|
+
Expose562(),
|
|
35029
|
+
Transform80(({ value, obj }) => value ?? obj["T\xE9cnico"] ?? obj.tecnico),
|
|
35030
35030
|
Type368(() => String),
|
|
35031
|
-
|
|
35031
|
+
IsDefined169({ message: "El campo T\xE9cnico es obligatorio." }),
|
|
35032
35032
|
IsString458()
|
|
35033
35033
|
], TOAOrdenLiquidacionENTITY.prototype, "tecnico", 2);
|
|
35034
35034
|
__decorateClass([
|
|
35035
|
-
|
|
35036
|
-
|
|
35035
|
+
Expose562(),
|
|
35036
|
+
Transform80(({ value, obj }) => value ?? obj["ID Recurso"] ?? obj.id_recurso),
|
|
35037
35037
|
Type368(() => String),
|
|
35038
|
-
|
|
35038
|
+
IsDefined169({ message: "El campo ID Recurso es obligatorio." }),
|
|
35039
35039
|
IsString458()
|
|
35040
35040
|
], TOAOrdenLiquidacionENTITY.prototype, "id_recurso", 2);
|
|
35041
35041
|
__decorateClass([
|
|
35042
|
-
|
|
35043
|
-
|
|
35042
|
+
Expose562(),
|
|
35043
|
+
Transform80(({ value, obj }) => value ?? obj["N\xFAmero OT"] ?? obj.numero_ot),
|
|
35044
35044
|
Type368(() => Number),
|
|
35045
|
-
|
|
35046
|
-
|
|
35045
|
+
IsDefined169({ message: "El campo N\xFAmero OT es obligatorio." }),
|
|
35046
|
+
IsNumber373()
|
|
35047
35047
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_ot", 2);
|
|
35048
35048
|
__decorateClass([
|
|
35049
|
-
|
|
35050
|
-
|
|
35049
|
+
Expose562(),
|
|
35050
|
+
Transform80(({ value, obj }) => value ?? obj["Subtipo de Actividad"] ?? obj.subtipo_de_actividad),
|
|
35051
35051
|
Type368(() => String),
|
|
35052
|
-
|
|
35052
|
+
IsDefined169({ message: "El campo Subtipo de Actividad es obligatorio." }),
|
|
35053
35053
|
IsString458()
|
|
35054
35054
|
], TOAOrdenLiquidacionENTITY.prototype, "subtipo_de_actividad", 2);
|
|
35055
35055
|
__decorateClass([
|
|
35056
|
-
|
|
35057
|
-
|
|
35056
|
+
Expose562(),
|
|
35057
|
+
Transform80(({ value, obj }) => value ?? obj["N\xFAmero de Petici\xF3n"] ?? obj.numero_de_peticion),
|
|
35058
35058
|
Type368(() => String),
|
|
35059
|
-
|
|
35059
|
+
IsDefined169({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
35060
35060
|
IsString458()
|
|
35061
35061
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_de_peticion", 2);
|
|
35062
35062
|
__decorateClass([
|
|
35063
|
-
|
|
35064
|
-
|
|
35063
|
+
Expose562(),
|
|
35064
|
+
Transform80(({ value, obj }) => value ?? obj["Localidad"] ?? obj.localidad),
|
|
35065
35065
|
Type368(() => String),
|
|
35066
|
-
|
|
35066
|
+
IsDefined169({ message: "El campo Localidad es obligatorio." }),
|
|
35067
35067
|
IsString458()
|
|
35068
35068
|
], TOAOrdenLiquidacionENTITY.prototype, "localidad", 2);
|
|
35069
35069
|
__decorateClass([
|
|
35070
|
-
|
|
35071
|
-
|
|
35070
|
+
Expose562(),
|
|
35071
|
+
Transform80(({ value, obj }) => value ?? obj["Direcci\xF3n"] ?? obj.direccion),
|
|
35072
35072
|
Type368(() => String),
|
|
35073
|
-
|
|
35073
|
+
IsDefined169({ message: "El campo Direcci\xF3n es obligatorio." }),
|
|
35074
35074
|
IsString458()
|
|
35075
35075
|
], TOAOrdenLiquidacionENTITY.prototype, "direccion", 2);
|
|
35076
35076
|
__decorateClass([
|
|
35077
|
-
|
|
35078
|
-
|
|
35077
|
+
Expose562(),
|
|
35078
|
+
Transform80(({ value, obj }) => value ?? obj["Zona de Trabajo"] ?? obj.zona_de_trabajo),
|
|
35079
35079
|
Type368(() => String),
|
|
35080
|
-
|
|
35080
|
+
IsDefined169({ message: "El campo Zona de Trabajo es obligatorio." }),
|
|
35081
35081
|
IsString458()
|
|
35082
35082
|
], TOAOrdenLiquidacionENTITY.prototype, "zona_de_trabajo", 2);
|
|
35083
35083
|
__decorateClass([
|
|
35084
|
-
|
|
35085
|
-
|
|
35084
|
+
Expose562(),
|
|
35085
|
+
Transform80(({ value, obj }) => value ?? obj["Nombre Cliente"] ?? obj.nombre_cliente),
|
|
35086
35086
|
Type368(() => String),
|
|
35087
|
-
|
|
35087
|
+
IsDefined169({ message: "El campo Nombre Cliente es obligatorio." }),
|
|
35088
35088
|
IsString458()
|
|
35089
35089
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_cliente", 2);
|
|
35090
35090
|
__decorateClass([
|
|
35091
|
-
|
|
35092
|
-
|
|
35091
|
+
Expose562(),
|
|
35092
|
+
Transform80(({ value, obj }) => value ?? obj["Estado actividad"] ?? obj.estado_actividad),
|
|
35093
35093
|
Type368(() => String),
|
|
35094
|
-
|
|
35094
|
+
IsDefined169({ message: "El campo Estado actividad es obligatorio." }),
|
|
35095
35095
|
IsString458()
|
|
35096
35096
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_actividad", 2);
|
|
35097
35097
|
__decorateClass([
|
|
35098
|
-
|
|
35099
|
-
|
|
35100
|
-
|
|
35098
|
+
Expose562(),
|
|
35099
|
+
Transform80(({ value, obj }) => value ?? obj["Estado Interno"] ?? obj.estado_interno),
|
|
35100
|
+
IsDefined169({ message: "El campo estado interno es obligatorio." }),
|
|
35101
35101
|
IsEnum27(StateInternalOrderTOA, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrderTOA).join(", ")}.` })
|
|
35102
35102
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_interno", 2);
|
|
35103
35103
|
__decorateClass([
|
|
35104
|
-
|
|
35105
|
-
|
|
35104
|
+
Expose562(),
|
|
35105
|
+
Transform80(({ value, obj }) => value ?? obj["C\xF3digo de Cliente"] ?? obj.codigo_de_cliente),
|
|
35106
35106
|
Type368(() => Number),
|
|
35107
|
-
|
|
35108
|
-
|
|
35107
|
+
IsDefined169({ message: "El campo C\xF3digo de Cliente es obligatorio." }),
|
|
35108
|
+
IsNumber373()
|
|
35109
35109
|
], TOAOrdenLiquidacionENTITY.prototype, "codigo_de_cliente", 2);
|
|
35110
35110
|
__decorateClass([
|
|
35111
|
-
|
|
35112
|
-
|
|
35113
|
-
|
|
35111
|
+
Expose562(),
|
|
35112
|
+
Transform80(({ value, obj }) => value ?? obj["Actividad Gpon"] ?? obj.actividad_gpon),
|
|
35113
|
+
Transform80(({ obj }) => obj["Actividad Gpon"] ?? obj.actividad_gpon),
|
|
35114
35114
|
Type368(() => String),
|
|
35115
|
-
|
|
35115
|
+
IsDefined169({ message: "El campo Actividad Gpon es obligatorio." }),
|
|
35116
35116
|
IsString458()
|
|
35117
35117
|
], TOAOrdenLiquidacionENTITY.prototype, "actividad_gpon", 2);
|
|
35118
35118
|
__decorateClass([
|
|
35119
|
-
|
|
35120
|
-
|
|
35119
|
+
Expose562(),
|
|
35120
|
+
Transform80(({ value, obj }) => value ?? obj["Nombre Distrito"] ?? obj.nombre_distrito),
|
|
35121
35121
|
Type368(() => String),
|
|
35122
|
-
|
|
35122
|
+
IsDefined169({ message: "El campo Nombre Distrito es obligatorio." }),
|
|
35123
35123
|
IsString458()
|
|
35124
35124
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_distrito", 2);
|
|
35125
35125
|
__decorateClass([
|
|
35126
|
-
|
|
35127
|
-
|
|
35126
|
+
Expose562(),
|
|
35127
|
+
Transform80(({ value, obj }) => value ?? obj["N\xFAmero Tel\xE9fono"] ?? obj.numero_telefono),
|
|
35128
35128
|
Type368(() => String),
|
|
35129
|
-
|
|
35129
|
+
IsDefined169({ message: "El campo N\xFAmero Tel\xE9fono es obligatorio." }),
|
|
35130
35130
|
IsString458()
|
|
35131
35131
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_telefono", 2);
|
|
35132
35132
|
__decorateClass([
|
|
35133
|
-
|
|
35134
|
-
|
|
35135
|
-
|
|
35133
|
+
Expose562(),
|
|
35134
|
+
Transform80(({ value, obj }) => value ?? obj["Segmento"] ?? obj.segmento),
|
|
35135
|
+
IsDefined169({ message: "El campo Segmento es obligatorio." }),
|
|
35136
35136
|
IsObject12(),
|
|
35137
35137
|
ValidateNested326(),
|
|
35138
35138
|
Type368(() => ToaSegmentoDTO)
|
|
35139
35139
|
], TOAOrdenLiquidacionENTITY.prototype, "segmento", 2);
|
|
35140
35140
|
__decorateClass([
|
|
35141
|
-
|
|
35142
|
-
|
|
35141
|
+
Expose562(),
|
|
35142
|
+
Transform80(({ value, obj }) => value ?? obj["Nombre de Provincia"] ?? obj.nombre_de_provincia),
|
|
35143
35143
|
Type368(() => String),
|
|
35144
|
-
|
|
35144
|
+
IsDefined169({ message: "El campo Nombre de Provincia es obligatorio." }),
|
|
35145
35145
|
IsString458()
|
|
35146
35146
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_de_provincia", 2);
|
|
35147
35147
|
__decorateClass([
|
|
35148
|
-
|
|
35149
|
-
|
|
35148
|
+
Expose562(),
|
|
35149
|
+
Transform80(({ value, obj }) => value ?? obj["Departamento"] ?? obj.departamento),
|
|
35150
35150
|
Type368(() => String),
|
|
35151
|
-
|
|
35151
|
+
IsDefined169({ message: "El campo Departamento es obligatorio." }),
|
|
35152
35152
|
IsString458()
|
|
35153
35153
|
], TOAOrdenLiquidacionENTITY.prototype, "departamento", 2);
|
|
35154
35154
|
__decorateClass([
|
|
35155
|
-
|
|
35156
|
-
|
|
35155
|
+
Expose562(),
|
|
35156
|
+
Transform80(({ value, obj }) => value ?? obj["Reiterada TDI"] ?? obj.reiterada_tdi),
|
|
35157
35157
|
Type368(() => String),
|
|
35158
|
-
|
|
35158
|
+
IsDefined169({ message: "El campo Reiterada TDI es obligatorio." }),
|
|
35159
35159
|
IsString458()
|
|
35160
35160
|
], TOAOrdenLiquidacionENTITY.prototype, "reiterada_tdi", 2);
|
|
35161
35161
|
__decorateClass([
|
|
35162
|
-
|
|
35163
|
-
|
|
35164
|
-
|
|
35162
|
+
Expose562(),
|
|
35163
|
+
Transform80(({ value, obj }) => value ?? obj["Inventario"] ?? obj.inventario),
|
|
35164
|
+
IsDefined169({ message: "El campo inventario es obligatorio." }),
|
|
35165
35165
|
IsArray191(),
|
|
35166
35166
|
ValidateNested326({ each: true }),
|
|
35167
35167
|
Type368(() => MaterialestoaDTO)
|
|
35168
35168
|
], TOAOrdenLiquidacionENTITY.prototype, "inventario", 2);
|
|
35169
35169
|
|
|
35170
35170
|
// src/operativa/procesos/TOA orden liquidacion_db/shared/index.ts
|
|
35171
|
-
import { Expose as
|
|
35172
|
-
import { IsArray as IsArray192, IsDefined as
|
|
35171
|
+
import { Expose as Expose563, Type as Type369 } from "class-transformer";
|
|
35172
|
+
import { IsArray as IsArray192, IsDefined as IsDefined170, IsEnum as IsEnum28, IsNumber as IsNumber374, IsObject as IsObject13, IsString as IsString459, IsUUID as IsUUID9, ValidateNested as ValidateNested327 } from "class-validator";
|
|
35173
35173
|
var TOAOrdenLiquidacionENTITYDB = class {
|
|
35174
35174
|
_id = "";
|
|
35175
35175
|
tecnico = "";
|
|
@@ -35194,131 +35194,131 @@ var TOAOrdenLiquidacionENTITYDB = class {
|
|
|
35194
35194
|
inventario = [];
|
|
35195
35195
|
};
|
|
35196
35196
|
__decorateClass([
|
|
35197
|
-
|
|
35197
|
+
IsDefined170({ message: "El campo _id es obligatorio." }),
|
|
35198
35198
|
IsUUID9("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
35199
|
-
|
|
35199
|
+
Expose563({ name: "_id" })
|
|
35200
35200
|
], TOAOrdenLiquidacionENTITYDB.prototype, "_id", 2);
|
|
35201
35201
|
__decorateClass([
|
|
35202
|
-
|
|
35203
|
-
|
|
35202
|
+
Expose563(),
|
|
35203
|
+
IsDefined170({ message: "El campo T\xE9cnico es obligatorio." }),
|
|
35204
35204
|
IsString459()
|
|
35205
35205
|
], TOAOrdenLiquidacionENTITYDB.prototype, "tecnico", 2);
|
|
35206
35206
|
__decorateClass([
|
|
35207
|
-
|
|
35208
|
-
|
|
35207
|
+
Expose563(),
|
|
35208
|
+
IsDefined170({ message: "El campo ID Recurso es obligatorio." }),
|
|
35209
35209
|
IsString459()
|
|
35210
35210
|
], TOAOrdenLiquidacionENTITYDB.prototype, "id_recurso", 2);
|
|
35211
35211
|
__decorateClass([
|
|
35212
|
-
|
|
35213
|
-
|
|
35214
|
-
|
|
35212
|
+
Expose563(),
|
|
35213
|
+
IsDefined170({ message: "El campo N\xFAmero OT es obligatorio." }),
|
|
35214
|
+
IsNumber374()
|
|
35215
35215
|
], TOAOrdenLiquidacionENTITYDB.prototype, "numero_ot", 2);
|
|
35216
35216
|
__decorateClass([
|
|
35217
|
-
|
|
35218
|
-
|
|
35217
|
+
Expose563(),
|
|
35218
|
+
IsDefined170({ message: "El campo Subtipo de Actividad es obligatorio." }),
|
|
35219
35219
|
IsString459()
|
|
35220
35220
|
], TOAOrdenLiquidacionENTITYDB.prototype, "subtipo_de_actividad", 2);
|
|
35221
35221
|
__decorateClass([
|
|
35222
|
-
|
|
35223
|
-
|
|
35222
|
+
Expose563(),
|
|
35223
|
+
IsDefined170({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
35224
35224
|
IsString459()
|
|
35225
35225
|
], TOAOrdenLiquidacionENTITYDB.prototype, "numero_de_peticion", 2);
|
|
35226
35226
|
__decorateClass([
|
|
35227
|
-
|
|
35228
|
-
|
|
35227
|
+
Expose563(),
|
|
35228
|
+
IsDefined170({ message: "El campo Localidad es obligatorio." }),
|
|
35229
35229
|
IsString459()
|
|
35230
35230
|
], TOAOrdenLiquidacionENTITYDB.prototype, "localidad", 2);
|
|
35231
35231
|
__decorateClass([
|
|
35232
|
-
|
|
35233
|
-
|
|
35232
|
+
Expose563(),
|
|
35233
|
+
IsDefined170({ message: "El campo Direcci\xF3n es obligatorio." }),
|
|
35234
35234
|
IsString459()
|
|
35235
35235
|
], TOAOrdenLiquidacionENTITYDB.prototype, "direccion", 2);
|
|
35236
35236
|
__decorateClass([
|
|
35237
|
-
|
|
35238
|
-
|
|
35237
|
+
Expose563(),
|
|
35238
|
+
IsDefined170({ message: "El campo Zona de Trabajo es obligatorio." }),
|
|
35239
35239
|
IsString459()
|
|
35240
35240
|
], TOAOrdenLiquidacionENTITYDB.prototype, "zona_de_trabajo", 2);
|
|
35241
35241
|
__decorateClass([
|
|
35242
|
-
|
|
35243
|
-
|
|
35242
|
+
Expose563(),
|
|
35243
|
+
IsDefined170({ message: "El campo Nombre Cliente es obligatorio." }),
|
|
35244
35244
|
IsString459()
|
|
35245
35245
|
], TOAOrdenLiquidacionENTITYDB.prototype, "nombre_cliente", 2);
|
|
35246
35246
|
__decorateClass([
|
|
35247
|
-
|
|
35248
|
-
|
|
35247
|
+
Expose563(),
|
|
35248
|
+
IsDefined170({ message: "El campo Estado actividad es obligatorio." }),
|
|
35249
35249
|
IsString459()
|
|
35250
35250
|
], TOAOrdenLiquidacionENTITYDB.prototype, "estado_actividad", 2);
|
|
35251
35251
|
__decorateClass([
|
|
35252
|
-
|
|
35253
|
-
|
|
35252
|
+
Expose563(),
|
|
35253
|
+
IsDefined170({ message: "El campo estado interno es obligatorio." }),
|
|
35254
35254
|
IsEnum28(StateInternalOrderTOA, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrderTOA).join(", ")}.` })
|
|
35255
35255
|
], TOAOrdenLiquidacionENTITYDB.prototype, "estado_interno", 2);
|
|
35256
35256
|
__decorateClass([
|
|
35257
|
-
|
|
35258
|
-
|
|
35259
|
-
|
|
35257
|
+
Expose563(),
|
|
35258
|
+
IsDefined170({ message: "El campo C\xF3digo de Cliente es obligatorio." }),
|
|
35259
|
+
IsNumber374()
|
|
35260
35260
|
], TOAOrdenLiquidacionENTITYDB.prototype, "codigo_de_cliente", 2);
|
|
35261
35261
|
__decorateClass([
|
|
35262
|
-
|
|
35263
|
-
|
|
35262
|
+
Expose563(),
|
|
35263
|
+
IsDefined170({ message: "El campo Actividad Gpon es obligatorio." }),
|
|
35264
35264
|
IsString459()
|
|
35265
35265
|
], TOAOrdenLiquidacionENTITYDB.prototype, "actividad_gpon", 2);
|
|
35266
35266
|
__decorateClass([
|
|
35267
|
-
|
|
35268
|
-
|
|
35267
|
+
Expose563(),
|
|
35268
|
+
IsDefined170({ message: "El campo Nombre Distrito es obligatorio." }),
|
|
35269
35269
|
IsString459()
|
|
35270
35270
|
], TOAOrdenLiquidacionENTITYDB.prototype, "nombre_distrito", 2);
|
|
35271
35271
|
__decorateClass([
|
|
35272
|
-
|
|
35273
|
-
|
|
35272
|
+
Expose563(),
|
|
35273
|
+
IsDefined170({ message: "El campo N\xFAmero Tel\xE9fono es obligatorio." }),
|
|
35274
35274
|
IsString459()
|
|
35275
35275
|
], TOAOrdenLiquidacionENTITYDB.prototype, "numero_telefono", 2);
|
|
35276
35276
|
__decorateClass([
|
|
35277
|
-
|
|
35278
|
-
|
|
35277
|
+
Expose563(),
|
|
35278
|
+
IsDefined170({ message: "El campo Segmento es obligatorio." }),
|
|
35279
35279
|
IsObject13(),
|
|
35280
35280
|
ValidateNested327(),
|
|
35281
35281
|
Type369(() => ToaSegmentoDBDTO)
|
|
35282
35282
|
], TOAOrdenLiquidacionENTITYDB.prototype, "segmento", 2);
|
|
35283
35283
|
__decorateClass([
|
|
35284
|
-
|
|
35285
|
-
|
|
35284
|
+
Expose563(),
|
|
35285
|
+
IsDefined170({ message: "El campo Nombre de Provincia es obligatorio." }),
|
|
35286
35286
|
IsString459()
|
|
35287
35287
|
], TOAOrdenLiquidacionENTITYDB.prototype, "nombre_de_provincia", 2);
|
|
35288
35288
|
__decorateClass([
|
|
35289
|
-
|
|
35290
|
-
|
|
35289
|
+
Expose563(),
|
|
35290
|
+
IsDefined170({ message: "El campo Departamento es obligatorio." }),
|
|
35291
35291
|
IsString459()
|
|
35292
35292
|
], TOAOrdenLiquidacionENTITYDB.prototype, "departamento", 2);
|
|
35293
35293
|
__decorateClass([
|
|
35294
|
-
|
|
35295
|
-
|
|
35294
|
+
Expose563(),
|
|
35295
|
+
IsDefined170({ message: "El campo Reiterada TDI es obligatorio." }),
|
|
35296
35296
|
IsString459()
|
|
35297
35297
|
], TOAOrdenLiquidacionENTITYDB.prototype, "reiterada_tdi", 2);
|
|
35298
35298
|
__decorateClass([
|
|
35299
|
-
|
|
35300
|
-
|
|
35299
|
+
Expose563(),
|
|
35300
|
+
IsDefined170({ message: "El campo inventario es obligatorio." }),
|
|
35301
35301
|
IsArray192(),
|
|
35302
35302
|
ValidateNested327({ each: true }),
|
|
35303
35303
|
Type369(() => MaterialestoaDBDTO)
|
|
35304
35304
|
], TOAOrdenLiquidacionENTITYDB.prototype, "inventario", 2);
|
|
35305
35305
|
|
|
35306
35306
|
// src/v2/dtos/CodigoNombre.ts
|
|
35307
|
-
import { Expose as
|
|
35308
|
-
import { IsDefined as
|
|
35307
|
+
import { Expose as Expose564 } from "class-transformer";
|
|
35308
|
+
import { IsDefined as IsDefined171, IsString as IsString460, MinLength as MinLength47 } from "class-validator";
|
|
35309
35309
|
var CodigoNombreDto = class {
|
|
35310
35310
|
codigo;
|
|
35311
35311
|
nombre;
|
|
35312
35312
|
};
|
|
35313
35313
|
__decorateClass([
|
|
35314
|
-
|
|
35314
|
+
IsDefined171({ message: 'La propiedad "codigo" es obligatoria.' }),
|
|
35315
35315
|
IsString460({ message: 'La propiedad "codigo" debe ser una cadena de texto.' }),
|
|
35316
|
-
|
|
35316
|
+
Expose564()
|
|
35317
35317
|
], CodigoNombreDto.prototype, "codigo", 2);
|
|
35318
35318
|
__decorateClass([
|
|
35319
|
-
|
|
35319
|
+
IsDefined171({ message: 'La propiedad "nombre" es obligatoria.' }),
|
|
35320
35320
|
IsString460({ message: 'La propiedad "nombre" debe ser una cadena de texto.' }),
|
|
35321
|
-
|
|
35321
|
+
Expose564()
|
|
35322
35322
|
], CodigoNombreDto.prototype, "nombre", 2);
|
|
35323
35323
|
var CodigoNombreMinLengthDto = class extends CodigoNombreDto {
|
|
35324
35324
|
};
|
|
@@ -35330,25 +35330,25 @@ __decorateClass([
|
|
|
35330
35330
|
], CodigoNombreMinLengthDto.prototype, "nombre", 2);
|
|
35331
35331
|
|
|
35332
35332
|
// src/v2/entities/Delegacion.ts
|
|
35333
|
-
import { Expose as
|
|
35334
|
-
import { IsDefined as
|
|
35333
|
+
import { Expose as Expose566, Type as Type370 } from "class-transformer";
|
|
35334
|
+
import { IsDefined as IsDefined173, IsObject as IsObject14, IsString as IsString461, MinLength as MinLength48, ValidateNested as ValidateNested328 } from "class-validator";
|
|
35335
35335
|
|
|
35336
35336
|
// src/v2/entities/Base.ts
|
|
35337
|
-
import { Expose as
|
|
35338
|
-
import { IsBoolean as IsBoolean50, IsDefined as
|
|
35337
|
+
import { Expose as Expose565 } from "class-transformer";
|
|
35338
|
+
import { IsBoolean as IsBoolean50, IsDefined as IsDefined172, IsUUID as IsUUID10 } from "class-validator";
|
|
35339
35339
|
var BaseEntity = class {
|
|
35340
35340
|
_id;
|
|
35341
35341
|
activo;
|
|
35342
35342
|
};
|
|
35343
35343
|
__decorateClass([
|
|
35344
|
-
|
|
35344
|
+
IsDefined172({ message: 'La propiedad "_id" es obligatoria.' }),
|
|
35345
35345
|
IsUUID10("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
35346
|
-
|
|
35346
|
+
Expose565()
|
|
35347
35347
|
], BaseEntity.prototype, "_id", 2);
|
|
35348
35348
|
__decorateClass([
|
|
35349
|
-
|
|
35349
|
+
IsDefined172({ message: 'La propiedad "activo" es obligatoria.' }),
|
|
35350
35350
|
IsBoolean50({ message: 'La propiedad "activo" debe ser un valor booleano.' }),
|
|
35351
|
-
|
|
35351
|
+
Expose565()
|
|
35352
35352
|
], BaseEntity.prototype, "activo", 2);
|
|
35353
35353
|
|
|
35354
35354
|
// src/v2/entities/Delegacion.ts
|
|
@@ -35358,23 +35358,23 @@ var DelegacionEntity = class extends BaseEntity {
|
|
|
35358
35358
|
nombre;
|
|
35359
35359
|
};
|
|
35360
35360
|
__decorateClass([
|
|
35361
|
-
|
|
35361
|
+
IsDefined173({ message: 'La propiedad "pais" es obligatoria.' }),
|
|
35362
35362
|
Type370(() => CodigoNombreMinLengthDto),
|
|
35363
35363
|
IsObject14({ message: 'La propiedad "pais" debe ser un objeto v\xE1lido.' }),
|
|
35364
35364
|
ValidateNested328({ message: 'La propiedad "pais" no es v\xE1lida.' }),
|
|
35365
|
-
|
|
35365
|
+
Expose566()
|
|
35366
35366
|
], DelegacionEntity.prototype, "pais", 2);
|
|
35367
35367
|
__decorateClass([
|
|
35368
|
-
|
|
35368
|
+
IsDefined173({ message: 'La propiedad "codigo" es obligatoria.' }),
|
|
35369
35369
|
IsString461({ message: 'La propiedad "codigo" debe ser una cadena de texto.' }),
|
|
35370
35370
|
MinLength48(1, { message: 'La propiedad "codigo" debe tener al menos 1 car\xE1cter.' }),
|
|
35371
|
-
|
|
35371
|
+
Expose566()
|
|
35372
35372
|
], DelegacionEntity.prototype, "codigo", 2);
|
|
35373
35373
|
__decorateClass([
|
|
35374
|
-
|
|
35374
|
+
IsDefined173({ message: 'La propiedad "nombre" es obligatoria.' }),
|
|
35375
35375
|
IsString461({ message: 'La propiedad "nombre" debe ser una cadena de texto.' }),
|
|
35376
35376
|
MinLength48(1, { message: 'La propiedad "nombre" debe tener al menos 1 car\xE1cter.' }),
|
|
35377
|
-
|
|
35377
|
+
Expose566()
|
|
35378
35378
|
], DelegacionEntity.prototype, "nombre", 2);
|
|
35379
35379
|
export {
|
|
35380
35380
|
ADM_RM_ZonasActividadENTITY,
|
|
@@ -35928,7 +35928,6 @@ export {
|
|
|
35928
35928
|
VigenciaOTDTO,
|
|
35929
35929
|
VigenciaPCMODTO,
|
|
35930
35930
|
WBEDTO,
|
|
35931
|
-
WINOrderStockENTITY,
|
|
35932
35931
|
ZonaTrabajoCuadrillaDTO,
|
|
35933
35932
|
ZonaTrabajoDTO,
|
|
35934
35933
|
ZonaTrabajoENTITY,
|