sigo-entities 1.2.96 → 1.2.98
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 +21 -23
- package/dist/index.d.ts +21 -23
- package/dist/index.js +979 -983
- package/dist/index.mjs +758 -761
- 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,257 +34231,183 @@ 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 Transform79, 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, Transform as Transform77 } 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 {
|
|
@@ -34502,40 +34420,40 @@ var MaterialesFibramasDTO = class {
|
|
|
34502
34420
|
ID_StockPersonal = 0;
|
|
34503
34421
|
};
|
|
34504
34422
|
__decorateClass([
|
|
34505
|
-
|
|
34506
|
-
|
|
34423
|
+
Expose557(),
|
|
34424
|
+
IsDefined164({ message: "El campo key es obligatorio." }),
|
|
34507
34425
|
Transform77(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
34508
|
-
|
|
34426
|
+
IsString453()
|
|
34509
34427
|
], MaterialesFibramasDTO.prototype, "key", 2);
|
|
34510
34428
|
__decorateClass([
|
|
34511
|
-
|
|
34512
|
-
|
|
34513
|
-
|
|
34429
|
+
Expose557(),
|
|
34430
|
+
IsDefined164({ message: "El campo codigo es obligatorio." }),
|
|
34431
|
+
IsString453()
|
|
34514
34432
|
], MaterialesFibramasDTO.prototype, "codigo", 2);
|
|
34515
34433
|
__decorateClass([
|
|
34516
|
-
|
|
34517
|
-
|
|
34518
|
-
|
|
34434
|
+
Expose557(),
|
|
34435
|
+
IsDefined164({ message: "El campo descripcion es obligatorio." }),
|
|
34436
|
+
IsString453()
|
|
34519
34437
|
], MaterialesFibramasDTO.prototype, "descripcion", 2);
|
|
34520
34438
|
__decorateClass([
|
|
34521
|
-
|
|
34522
|
-
|
|
34523
|
-
|
|
34439
|
+
Expose557(),
|
|
34440
|
+
IsDefined164({ message: "El campo cantidad es obligatorio." }),
|
|
34441
|
+
IsNumber368()
|
|
34524
34442
|
], MaterialesFibramasDTO.prototype, "cantidad", 2);
|
|
34525
34443
|
__decorateClass([
|
|
34526
|
-
|
|
34527
|
-
|
|
34528
|
-
|
|
34444
|
+
Expose557(),
|
|
34445
|
+
IsDefined164({ message: "El campo invsn es obligatorio." }),
|
|
34446
|
+
IsString453()
|
|
34529
34447
|
], MaterialesFibramasDTO.prototype, "invsn", 2);
|
|
34530
34448
|
__decorateClass([
|
|
34531
|
-
|
|
34532
|
-
|
|
34533
|
-
|
|
34449
|
+
Expose557(),
|
|
34450
|
+
IsDefined164({ message: "El campo invpool es obligatorio." }),
|
|
34451
|
+
IsString453()
|
|
34534
34452
|
], MaterialesFibramasDTO.prototype, "invpool", 2);
|
|
34535
34453
|
__decorateClass([
|
|
34536
|
-
|
|
34537
|
-
|
|
34538
|
-
|
|
34454
|
+
Expose557(),
|
|
34455
|
+
IsDefined164({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
34456
|
+
IsNumber368()
|
|
34539
34457
|
], MaterialesFibramasDTO.prototype, "ID_StockPersonal", 2);
|
|
34540
34458
|
var StateFibramas = /* @__PURE__ */ ((StateFibramas2) => {
|
|
34541
34459
|
StateFibramas2["REGISTRADA"] = "REGISTRADA";
|
|
@@ -34549,24 +34467,24 @@ var StateServiceFibramas = /* @__PURE__ */ ((StateServiceFibramas2) => {
|
|
|
34549
34467
|
})(StateServiceFibramas || {});
|
|
34550
34468
|
|
|
34551
34469
|
// src/operativa/procesos/fibramas_order_db/shared/index.ts
|
|
34552
|
-
import { Expose as
|
|
34470
|
+
import { Expose as Expose559, Type as Type365 } from "class-transformer";
|
|
34553
34471
|
import {
|
|
34554
|
-
IsDefined as
|
|
34555
|
-
IsString as
|
|
34556
|
-
IsNumber as
|
|
34557
|
-
ValidateNested as
|
|
34558
|
-
IsArray as
|
|
34472
|
+
IsDefined as IsDefined166,
|
|
34473
|
+
IsString as IsString455,
|
|
34474
|
+
IsNumber as IsNumber370,
|
|
34475
|
+
ValidateNested as ValidateNested323,
|
|
34476
|
+
IsArray as IsArray188,
|
|
34559
34477
|
IsDate as IsDate138,
|
|
34560
|
-
IsEnum as
|
|
34478
|
+
IsEnum as IsEnum24
|
|
34561
34479
|
} from "class-validator";
|
|
34562
34480
|
import "reflect-metadata";
|
|
34563
34481
|
|
|
34564
34482
|
// src/operativa/procesos/fibramas_order_db/shared/dto/index.ts
|
|
34565
|
-
import { Expose as
|
|
34483
|
+
import { Expose as Expose558, Transform as Transform78 } from "class-transformer";
|
|
34566
34484
|
import {
|
|
34567
|
-
IsDefined as
|
|
34568
|
-
IsString as
|
|
34569
|
-
IsNumber as
|
|
34485
|
+
IsDefined as IsDefined165,
|
|
34486
|
+
IsString as IsString454,
|
|
34487
|
+
IsNumber as IsNumber369
|
|
34570
34488
|
} from "class-validator";
|
|
34571
34489
|
import "reflect-metadata";
|
|
34572
34490
|
var MaterialesFibramasDBDTO = class {
|
|
@@ -34580,57 +34498,57 @@ var MaterialesFibramasDBDTO = class {
|
|
|
34580
34498
|
ID_StockPersonal = 0;
|
|
34581
34499
|
};
|
|
34582
34500
|
__decorateClass([
|
|
34583
|
-
|
|
34584
|
-
|
|
34501
|
+
Expose558(),
|
|
34502
|
+
IsDefined165({ message: "El campo key es obligatorio." }),
|
|
34585
34503
|
Transform78(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
34586
|
-
|
|
34504
|
+
IsString454()
|
|
34587
34505
|
], MaterialesFibramasDBDTO.prototype, "key", 2);
|
|
34588
34506
|
__decorateClass([
|
|
34589
|
-
|
|
34590
|
-
|
|
34591
|
-
|
|
34507
|
+
Expose558(),
|
|
34508
|
+
IsDefined165({ message: "El campo code es obligatorio." }),
|
|
34509
|
+
IsString454()
|
|
34592
34510
|
], MaterialesFibramasDBDTO.prototype, "codigo", 2);
|
|
34593
34511
|
__decorateClass([
|
|
34594
|
-
|
|
34595
|
-
|
|
34596
|
-
|
|
34512
|
+
Expose558(),
|
|
34513
|
+
IsDefined165({ message: "El campo description es obligatorio." }),
|
|
34514
|
+
IsString454()
|
|
34597
34515
|
], MaterialesFibramasDBDTO.prototype, "descripcion", 2);
|
|
34598
34516
|
__decorateClass([
|
|
34599
|
-
|
|
34600
|
-
|
|
34601
|
-
|
|
34517
|
+
Expose558(),
|
|
34518
|
+
IsDefined165({ message: "El campo quantity es obligatorio." }),
|
|
34519
|
+
IsNumber369()
|
|
34602
34520
|
], MaterialesFibramasDBDTO.prototype, "cantidad", 2);
|
|
34603
34521
|
__decorateClass([
|
|
34604
|
-
|
|
34605
|
-
|
|
34606
|
-
|
|
34522
|
+
Expose558(),
|
|
34523
|
+
IsDefined165({ message: "El campo invsn es obligatorio." }),
|
|
34524
|
+
IsString454()
|
|
34607
34525
|
], MaterialesFibramasDBDTO.prototype, "invsn", 2);
|
|
34608
34526
|
__decorateClass([
|
|
34609
|
-
|
|
34610
|
-
|
|
34611
|
-
|
|
34527
|
+
Expose558(),
|
|
34528
|
+
IsDefined165({ message: "El campo invtype es obligatorio." }),
|
|
34529
|
+
IsString454()
|
|
34612
34530
|
], MaterialesFibramasDBDTO.prototype, "invtype", 2);
|
|
34613
34531
|
__decorateClass([
|
|
34614
|
-
|
|
34615
|
-
|
|
34616
|
-
|
|
34532
|
+
Expose558(),
|
|
34533
|
+
IsDefined165({ message: "El campo invpool es obligatorio." }),
|
|
34534
|
+
IsString454()
|
|
34617
34535
|
], MaterialesFibramasDBDTO.prototype, "invpool", 2);
|
|
34618
34536
|
__decorateClass([
|
|
34619
|
-
|
|
34620
|
-
|
|
34621
|
-
|
|
34537
|
+
Expose558(),
|
|
34538
|
+
IsDefined165({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
34539
|
+
IsNumber369()
|
|
34622
34540
|
], MaterialesFibramasDBDTO.prototype, "ID_StockPersonal", 2);
|
|
34623
34541
|
var EECCFibramasDBDTO = class {
|
|
34624
34542
|
RUC = "";
|
|
34625
34543
|
RazonSocial = "";
|
|
34626
34544
|
};
|
|
34627
34545
|
__decorateClass([
|
|
34628
|
-
|
|
34629
|
-
|
|
34546
|
+
Expose558(),
|
|
34547
|
+
IsString454()
|
|
34630
34548
|
], EECCFibramasDBDTO.prototype, "RUC", 2);
|
|
34631
34549
|
__decorateClass([
|
|
34632
|
-
|
|
34633
|
-
|
|
34550
|
+
Expose558(),
|
|
34551
|
+
IsString454()
|
|
34634
34552
|
], EECCFibramasDBDTO.prototype, "RazonSocial", 2);
|
|
34635
34553
|
|
|
34636
34554
|
// src/operativa/procesos/fibramas_order_db/shared/index.ts
|
|
@@ -34666,151 +34584,151 @@ var Peru9112FibramasENTITYDB = class {
|
|
|
34666
34584
|
EECC = new EECCFibramasDBDTO();
|
|
34667
34585
|
};
|
|
34668
34586
|
__decorateClass([
|
|
34669
|
-
|
|
34670
|
-
|
|
34587
|
+
IsDefined166({ message: "El campo _id es obligatorio." }),
|
|
34588
|
+
Expose559()
|
|
34671
34589
|
], Peru9112FibramasENTITYDB.prototype, "_id", 2);
|
|
34672
34590
|
__decorateClass([
|
|
34673
|
-
|
|
34674
|
-
|
|
34675
|
-
|
|
34591
|
+
Expose559(),
|
|
34592
|
+
IsDefined166({ message: "El campo numero_de_peticion es obligatorio." }),
|
|
34593
|
+
IsString455()
|
|
34676
34594
|
], Peru9112FibramasENTITYDB.prototype, "numero_de_peticion", 2);
|
|
34677
34595
|
__decorateClass([
|
|
34678
|
-
|
|
34679
|
-
|
|
34680
|
-
|
|
34596
|
+
Expose559(),
|
|
34597
|
+
IsDefined166({ message: "El campo resource_id es obligatorio." }),
|
|
34598
|
+
IsString455({ message: "El campo resource_id debe ser una cadena de texto" })
|
|
34681
34599
|
], Peru9112FibramasENTITYDB.prototype, "resource_id", 2);
|
|
34682
34600
|
__decorateClass([
|
|
34683
|
-
|
|
34684
|
-
|
|
34685
|
-
|
|
34601
|
+
Expose559(),
|
|
34602
|
+
IsDefined166({ message: "El campo tecnico es obligatorio." }),
|
|
34603
|
+
IsString455()
|
|
34686
34604
|
], Peru9112FibramasENTITYDB.prototype, "tecnico", 2);
|
|
34687
34605
|
__decorateClass([
|
|
34688
|
-
|
|
34689
|
-
|
|
34690
|
-
|
|
34606
|
+
Expose559(),
|
|
34607
|
+
IsDefined166({ message: "El campo subtipo_de_actividad es obligatorio." }),
|
|
34608
|
+
IsString455()
|
|
34691
34609
|
], Peru9112FibramasENTITYDB.prototype, "subtipo_de_actividad", 2);
|
|
34692
34610
|
__decorateClass([
|
|
34693
|
-
|
|
34694
|
-
|
|
34695
|
-
|
|
34611
|
+
Expose559(),
|
|
34612
|
+
IsDefined166({ message: "El campo tipo_orden es obligatorio." }),
|
|
34613
|
+
IsString455()
|
|
34696
34614
|
], Peru9112FibramasENTITYDB.prototype, "tipo_orden", 2);
|
|
34697
34615
|
__decorateClass([
|
|
34698
|
-
|
|
34699
|
-
|
|
34700
|
-
|
|
34616
|
+
Expose559(),
|
|
34617
|
+
IsDefined166({ message: "El campo servicio es obligatorio." }),
|
|
34618
|
+
IsString455()
|
|
34701
34619
|
], Peru9112FibramasENTITYDB.prototype, "servicio", 2);
|
|
34702
34620
|
__decorateClass([
|
|
34703
|
-
|
|
34704
|
-
|
|
34705
|
-
|
|
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" })
|
|
34706
34624
|
], Peru9112FibramasENTITYDB.prototype, "estado_del_servicio", 2);
|
|
34707
34625
|
__decorateClass([
|
|
34708
|
-
|
|
34709
|
-
|
|
34710
|
-
|
|
34626
|
+
Expose559(),
|
|
34627
|
+
IsDefined166({ message: "El campo tarifa_de_servicio es obligatorio." }),
|
|
34628
|
+
IsString455()
|
|
34711
34629
|
], Peru9112FibramasENTITYDB.prototype, "tarifa_de_servicio", 2);
|
|
34712
34630
|
__decorateClass([
|
|
34713
|
-
|
|
34714
|
-
|
|
34715
|
-
|
|
34631
|
+
Expose559(),
|
|
34632
|
+
IsDefined166({ message: "El campo puntos_principal_instalacion es obligatorio." }),
|
|
34633
|
+
IsNumber370()
|
|
34716
34634
|
], Peru9112FibramasENTITYDB.prototype, "puntos_principal_instalacion", 2);
|
|
34717
34635
|
__decorateClass([
|
|
34718
|
-
|
|
34719
|
-
|
|
34720
|
-
|
|
34636
|
+
Expose559(),
|
|
34637
|
+
IsDefined166({ message: "El campo puntos_adicional_instalacion es obligatorio." }),
|
|
34638
|
+
IsNumber370()
|
|
34721
34639
|
], Peru9112FibramasENTITYDB.prototype, "puntos_adicional_instalacion", 2);
|
|
34722
34640
|
__decorateClass([
|
|
34723
|
-
|
|
34724
|
-
|
|
34725
|
-
|
|
34641
|
+
Expose559(),
|
|
34642
|
+
IsDefined166({ message: "El campo abonado es obligatorio." }),
|
|
34643
|
+
IsString455()
|
|
34726
34644
|
], Peru9112FibramasENTITYDB.prototype, "abonado", 2);
|
|
34727
34645
|
__decorateClass([
|
|
34728
|
-
|
|
34729
|
-
|
|
34730
|
-
|
|
34646
|
+
Expose559(),
|
|
34647
|
+
IsDefined166({ message: "El campo cliente es obligatorio." }),
|
|
34648
|
+
IsString455()
|
|
34731
34649
|
], Peru9112FibramasENTITYDB.prototype, "cliente", 2);
|
|
34732
34650
|
__decorateClass([
|
|
34733
|
-
|
|
34734
|
-
|
|
34735
|
-
|
|
34651
|
+
Expose559(),
|
|
34652
|
+
IsDefined166({ message: "El campo direccion es obligatorio." }),
|
|
34653
|
+
IsString455()
|
|
34736
34654
|
], Peru9112FibramasENTITYDB.prototype, "direccion", 2);
|
|
34737
34655
|
__decorateClass([
|
|
34738
|
-
|
|
34739
|
-
|
|
34740
|
-
|
|
34656
|
+
Expose559(),
|
|
34657
|
+
IsDefined166({ message: "El campo sector_operativo es obligatorio." }),
|
|
34658
|
+
IsString455()
|
|
34741
34659
|
], Peru9112FibramasENTITYDB.prototype, "sector_operativo", 2);
|
|
34742
34660
|
__decorateClass([
|
|
34743
|
-
|
|
34744
|
-
|
|
34745
|
-
|
|
34661
|
+
Expose559(),
|
|
34662
|
+
IsDefined166({ message: "El campo contacto es obligatorio." }),
|
|
34663
|
+
IsString455()
|
|
34746
34664
|
], Peru9112FibramasENTITYDB.prototype, "contacto", 2);
|
|
34747
34665
|
__decorateClass([
|
|
34748
|
-
|
|
34749
|
-
|
|
34750
|
-
|
|
34666
|
+
Expose559(),
|
|
34667
|
+
IsDefined166({ message: "El campo contacto_2 es obligatorio." }),
|
|
34668
|
+
IsString455()
|
|
34751
34669
|
], Peru9112FibramasENTITYDB.prototype, "contacto_2", 2);
|
|
34752
34670
|
__decorateClass([
|
|
34753
|
-
|
|
34754
|
-
|
|
34755
|
-
|
|
34671
|
+
Expose559(),
|
|
34672
|
+
IsDefined166({ message: "El campo observaciones es obligatorio." }),
|
|
34673
|
+
IsString455()
|
|
34756
34674
|
], Peru9112FibramasENTITYDB.prototype, "observaciones", 2);
|
|
34757
34675
|
__decorateClass([
|
|
34758
|
-
|
|
34759
|
-
|
|
34676
|
+
Expose559(),
|
|
34677
|
+
IsDefined166({ message: "El campo fecha_recepcion es obligatorio." }),
|
|
34760
34678
|
IsDate138({ message: "debe ser una fecha" })
|
|
34761
34679
|
], Peru9112FibramasENTITYDB.prototype, "fecha_recepcion", 2);
|
|
34762
34680
|
__decorateClass([
|
|
34763
|
-
|
|
34764
|
-
|
|
34765
|
-
|
|
34681
|
+
Expose559(),
|
|
34682
|
+
IsDefined166({ message: "El campo hora_recepcion es obligatorio." }),
|
|
34683
|
+
IsString455()
|
|
34766
34684
|
], Peru9112FibramasENTITYDB.prototype, "hora_recepcion", 2);
|
|
34767
34685
|
__decorateClass([
|
|
34768
|
-
|
|
34769
|
-
|
|
34686
|
+
Expose559(),
|
|
34687
|
+
IsDefined166({ message: "El campo fecha_atencion es obligatorio." }),
|
|
34770
34688
|
IsDate138({ message: "debe ser una fecha" })
|
|
34771
34689
|
], Peru9112FibramasENTITYDB.prototype, "fecha_atencion", 2);
|
|
34772
34690
|
__decorateClass([
|
|
34773
|
-
|
|
34774
|
-
|
|
34775
|
-
|
|
34691
|
+
Expose559(),
|
|
34692
|
+
IsDefined166({ message: "El campo hora_ini_atencion es obligatorio." }),
|
|
34693
|
+
IsString455()
|
|
34776
34694
|
], Peru9112FibramasENTITYDB.prototype, "hora_ini_atencion", 2);
|
|
34777
34695
|
__decorateClass([
|
|
34778
|
-
|
|
34779
|
-
|
|
34780
|
-
|
|
34696
|
+
Expose559(),
|
|
34697
|
+
IsDefined166({ message: "El campo hora_fin_atencion es obligatorio." }),
|
|
34698
|
+
IsString455()
|
|
34781
34699
|
], Peru9112FibramasENTITYDB.prototype, "hora_fin_atencion", 2);
|
|
34782
34700
|
__decorateClass([
|
|
34783
|
-
|
|
34784
|
-
|
|
34785
|
-
|
|
34701
|
+
Expose559(),
|
|
34702
|
+
IsDefined166({ message: "El campo estado es obligatorio." }),
|
|
34703
|
+
IsEnum24(StateFibramas, { message: "El campo ESTADO OS no es v\xE1lido" })
|
|
34786
34704
|
], Peru9112FibramasENTITYDB.prototype, "estado", 2);
|
|
34787
34705
|
__decorateClass([
|
|
34788
|
-
|
|
34789
|
-
|
|
34790
|
-
|
|
34791
|
-
|
|
34792
|
-
|
|
34706
|
+
Expose559(),
|
|
34707
|
+
IsDefined166({ message: "El campo Inventory es obligatorio." }),
|
|
34708
|
+
IsArray188(),
|
|
34709
|
+
ValidateNested323({ each: true }),
|
|
34710
|
+
Type365(() => MaterialesFibramasDBDTO)
|
|
34793
34711
|
], Peru9112FibramasENTITYDB.prototype, "inventory", 2);
|
|
34794
34712
|
__decorateClass([
|
|
34795
|
-
|
|
34796
|
-
|
|
34797
|
-
|
|
34713
|
+
Expose559(),
|
|
34714
|
+
IsDefined166({ message: "El campo PB es obligatorio." }),
|
|
34715
|
+
IsNumber370()
|
|
34798
34716
|
], Peru9112FibramasENTITYDB.prototype, "PB", 2);
|
|
34799
34717
|
__decorateClass([
|
|
34800
|
-
|
|
34801
|
-
|
|
34802
|
-
|
|
34718
|
+
Expose559(),
|
|
34719
|
+
IsDefined166({ message: "El campo MO es obligatorio." }),
|
|
34720
|
+
IsNumber370()
|
|
34803
34721
|
], Peru9112FibramasENTITYDB.prototype, "MO", 2);
|
|
34804
34722
|
__decorateClass([
|
|
34805
|
-
|
|
34806
|
-
|
|
34807
|
-
|
|
34723
|
+
Expose559(),
|
|
34724
|
+
IsDefined166({ message: "El campo Gasto_EECC es obligatorio." }),
|
|
34725
|
+
IsNumber370()
|
|
34808
34726
|
], Peru9112FibramasENTITYDB.prototype, "Gasto_EECC", 2);
|
|
34809
34727
|
__decorateClass([
|
|
34810
|
-
|
|
34811
|
-
|
|
34812
|
-
|
|
34813
|
-
|
|
34728
|
+
Expose559(),
|
|
34729
|
+
IsDefined166({ message: "El campo EECC es obligatorio." }),
|
|
34730
|
+
ValidateNested323(),
|
|
34731
|
+
Type365(() => EECCFibramasDBDTO)
|
|
34814
34732
|
], Peru9112FibramasENTITYDB.prototype, "EECC", 2);
|
|
34815
34733
|
|
|
34816
34734
|
// src/operativa/procesos/fibramas_order/shared/index.ts
|
|
@@ -34847,163 +34765,243 @@ var Peru9112FibramasENTITY = class {
|
|
|
34847
34765
|
EECC = new EECCFibramasDBDTO();
|
|
34848
34766
|
};
|
|
34849
34767
|
__decorateClass([
|
|
34850
|
-
|
|
34851
|
-
|
|
34852
|
-
|
|
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" })
|
|
34853
34771
|
], Peru9112FibramasENTITY.prototype, "_id", 2);
|
|
34854
34772
|
__decorateClass([
|
|
34855
|
-
|
|
34856
|
-
|
|
34857
|
-
|
|
34773
|
+
Expose560({ name: "NRO OS" }),
|
|
34774
|
+
IsDefined167({ message: "El campo NRO OS es obligatorio." }),
|
|
34775
|
+
IsString456()
|
|
34858
34776
|
], Peru9112FibramasENTITY.prototype, "numero_de_peticion", 2);
|
|
34859
34777
|
__decorateClass([
|
|
34860
|
-
|
|
34861
|
-
|
|
34862
|
-
|
|
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" })
|
|
34863
34781
|
], Peru9112FibramasENTITY.prototype, "resource_id", 2);
|
|
34864
34782
|
__decorateClass([
|
|
34865
|
-
|
|
34866
|
-
|
|
34867
|
-
|
|
34783
|
+
Expose560({ name: "NOMBRE TECNICO EJECUTOR" }),
|
|
34784
|
+
IsDefined167({ message: "El campo NOMBRE TECNICO EJECUTOR es obligatorio." }),
|
|
34785
|
+
IsString456()
|
|
34868
34786
|
], Peru9112FibramasENTITY.prototype, "tecnico", 2);
|
|
34869
34787
|
__decorateClass([
|
|
34870
|
-
|
|
34871
|
-
|
|
34872
|
-
|
|
34788
|
+
Expose560({ name: "TIPO OS" }),
|
|
34789
|
+
IsDefined167({ message: "El campo TIPO OS es obligatorio." }),
|
|
34790
|
+
IsString456()
|
|
34873
34791
|
], Peru9112FibramasENTITY.prototype, "subtipo_de_actividad", 2);
|
|
34874
34792
|
__decorateClass([
|
|
34875
|
-
|
|
34876
|
-
|
|
34877
|
-
|
|
34793
|
+
Expose560({ name: "TipoOS" }),
|
|
34794
|
+
IsDefined167({ message: "El campo TipoOS es obligatorio." }),
|
|
34795
|
+
IsString456()
|
|
34878
34796
|
], Peru9112FibramasENTITY.prototype, "tipo_orden", 2);
|
|
34879
34797
|
__decorateClass([
|
|
34880
|
-
|
|
34881
|
-
|
|
34882
|
-
|
|
34798
|
+
Expose560({ name: "SERVICIO" }),
|
|
34799
|
+
IsDefined167({ message: "El campo SERVICIO es obligatorio." }),
|
|
34800
|
+
IsString456()
|
|
34883
34801
|
], Peru9112FibramasENTITY.prototype, "servicio", 2);
|
|
34884
34802
|
__decorateClass([
|
|
34885
|
-
|
|
34886
|
-
|
|
34887
|
-
|
|
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" })
|
|
34888
34806
|
], Peru9112FibramasENTITY.prototype, "estado_del_servicio", 2);
|
|
34889
34807
|
__decorateClass([
|
|
34890
|
-
|
|
34808
|
+
Expose560({ name: "Estado Interno" }),
|
|
34891
34809
|
Transform79(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
34892
|
-
|
|
34893
|
-
|
|
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(", ")}.` })
|
|
34894
34812
|
], Peru9112FibramasENTITY.prototype, "estado_interno", 2);
|
|
34895
34813
|
__decorateClass([
|
|
34896
|
-
|
|
34897
|
-
|
|
34898
|
-
|
|
34814
|
+
Expose560({ name: "TARIFA DE SERVICIO" }),
|
|
34815
|
+
IsDefined167({ message: "El campo TARIFA DE SERVICIO es obligatorio." }),
|
|
34816
|
+
IsString456()
|
|
34899
34817
|
], Peru9112FibramasENTITY.prototype, "tarifa_de_servicio", 2);
|
|
34900
34818
|
__decorateClass([
|
|
34901
|
-
|
|
34902
|
-
|
|
34903
|
-
|
|
34819
|
+
Expose560({ name: "PUNTOS PRINC. INSTAL" }),
|
|
34820
|
+
IsDefined167({ message: "El campo PUNTOS PRINC. INSTAL es obligatorio." }),
|
|
34821
|
+
IsNumber371()
|
|
34904
34822
|
], Peru9112FibramasENTITY.prototype, "puntos_principal_instalacion", 2);
|
|
34905
34823
|
__decorateClass([
|
|
34906
|
-
|
|
34907
|
-
|
|
34908
|
-
|
|
34824
|
+
Expose560({ name: "PUNTOS ADD. INSTAL" }),
|
|
34825
|
+
IsDefined167({ message: "El campo PUNTOS ADD. INSTAL es obligatorio." }),
|
|
34826
|
+
IsNumber371()
|
|
34909
34827
|
], Peru9112FibramasENTITY.prototype, "puntos_adicional_instalacion", 2);
|
|
34910
34828
|
__decorateClass([
|
|
34911
|
-
|
|
34912
|
-
|
|
34913
|
-
|
|
34829
|
+
Expose560({ name: "ABONADO" }),
|
|
34830
|
+
IsDefined167({ message: "El campo ABONADO es obligatorio." }),
|
|
34831
|
+
IsString456()
|
|
34914
34832
|
], Peru9112FibramasENTITY.prototype, "abonado", 2);
|
|
34915
34833
|
__decorateClass([
|
|
34916
|
-
|
|
34917
|
-
|
|
34918
|
-
|
|
34834
|
+
Expose560({ name: "NOMBRES/RAZON SOCIAL" }),
|
|
34835
|
+
IsDefined167({ message: "El campo NOMBRES/RAZON SOCIAL es obligatorio." }),
|
|
34836
|
+
IsString456()
|
|
34919
34837
|
], Peru9112FibramasENTITY.prototype, "cliente", 2);
|
|
34920
34838
|
__decorateClass([
|
|
34921
|
-
|
|
34922
|
-
|
|
34923
|
-
|
|
34839
|
+
Expose560({ name: "RUTA" }),
|
|
34840
|
+
IsDefined167({ message: "El campo RUTA es obligatorio." }),
|
|
34841
|
+
IsString456()
|
|
34924
34842
|
], Peru9112FibramasENTITY.prototype, "direccion", 2);
|
|
34925
34843
|
__decorateClass([
|
|
34926
|
-
|
|
34927
|
-
|
|
34928
|
-
|
|
34844
|
+
Expose560({ name: "SECTOR" }),
|
|
34845
|
+
IsDefined167({ message: "El campo SECTOR es obligatorio." }),
|
|
34846
|
+
IsString456()
|
|
34929
34847
|
], Peru9112FibramasENTITY.prototype, "sector_operativo", 2);
|
|
34930
34848
|
__decorateClass([
|
|
34931
|
-
|
|
34932
|
-
|
|
34933
|
-
|
|
34849
|
+
Expose560({ name: "CELULAR" }),
|
|
34850
|
+
IsDefined167({ message: "El campo CELULAR es obligatorio." }),
|
|
34851
|
+
IsString456()
|
|
34934
34852
|
], Peru9112FibramasENTITY.prototype, "contacto", 2);
|
|
34935
34853
|
__decorateClass([
|
|
34936
|
-
|
|
34937
|
-
|
|
34938
|
-
|
|
34854
|
+
Expose560({ name: "CELULAR DOS" }),
|
|
34855
|
+
IsDefined167({ message: "El campo CELULAR DOS es obligatorio." }),
|
|
34856
|
+
IsString456()
|
|
34939
34857
|
], Peru9112FibramasENTITY.prototype, "contacto_2", 2);
|
|
34940
34858
|
__decorateClass([
|
|
34941
|
-
|
|
34942
|
-
|
|
34943
|
-
|
|
34859
|
+
Expose560({ name: "OBSERVACIONES" }),
|
|
34860
|
+
IsDefined167({ message: "El campo OBSERVACIONES es obligatorio." }),
|
|
34861
|
+
IsString456()
|
|
34944
34862
|
], Peru9112FibramasENTITY.prototype, "observaciones", 2);
|
|
34945
34863
|
__decorateClass([
|
|
34946
|
-
|
|
34947
|
-
|
|
34864
|
+
Expose560({ name: "F. RECEP." }),
|
|
34865
|
+
IsDefined167({ message: "El campo F. RECEP. es obligatorio." }),
|
|
34948
34866
|
IsDate139({ message: "debe ser una fecha" })
|
|
34949
34867
|
], Peru9112FibramasENTITY.prototype, "fecha_recepcion", 2);
|
|
34950
34868
|
__decorateClass([
|
|
34951
|
-
|
|
34952
|
-
|
|
34953
|
-
|
|
34869
|
+
Expose560({ name: "H. RECEP." }),
|
|
34870
|
+
IsDefined167({ message: "El campo H. RECEP. es obligatorio." }),
|
|
34871
|
+
IsString456()
|
|
34954
34872
|
], Peru9112FibramasENTITY.prototype, "hora_recepcion", 2);
|
|
34955
34873
|
__decorateClass([
|
|
34956
|
-
|
|
34957
|
-
|
|
34874
|
+
Expose560({ name: "F. ATENC." }),
|
|
34875
|
+
IsDefined167({ message: "El campo F. ATENC. es obligatorio." }),
|
|
34958
34876
|
IsDate139({ message: "debe ser una fecha" })
|
|
34959
34877
|
], Peru9112FibramasENTITY.prototype, "fecha_atencion", 2);
|
|
34960
34878
|
__decorateClass([
|
|
34961
|
-
|
|
34962
|
-
|
|
34963
|
-
|
|
34879
|
+
Expose560({ name: "H. INI" }),
|
|
34880
|
+
IsDefined167({ message: "El campo H. INI es obligatorio." }),
|
|
34881
|
+
IsString456()
|
|
34964
34882
|
], Peru9112FibramasENTITY.prototype, "hora_ini_atencion", 2);
|
|
34965
34883
|
__decorateClass([
|
|
34966
|
-
|
|
34967
|
-
|
|
34968
|
-
|
|
34884
|
+
Expose560({ name: "H. FIN" }),
|
|
34885
|
+
IsDefined167({ message: "El campo H. FIN es obligatorio." }),
|
|
34886
|
+
IsString456()
|
|
34969
34887
|
], Peru9112FibramasENTITY.prototype, "hora_fin_atencion", 2);
|
|
34970
34888
|
__decorateClass([
|
|
34971
|
-
|
|
34972
|
-
|
|
34973
|
-
|
|
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" })
|
|
34974
34892
|
], Peru9112FibramasENTITY.prototype, "estado", 2);
|
|
34975
34893
|
__decorateClass([
|
|
34976
|
-
|
|
34977
|
-
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34894
|
+
Expose560({ name: "Inventory" }),
|
|
34895
|
+
IsDefined167({ message: "El campo Inventory es obligatorio." }),
|
|
34896
|
+
IsArray189(),
|
|
34897
|
+
ValidateNested324({ each: true }),
|
|
34898
|
+
Type366(() => MaterialesFibramasDTO)
|
|
34981
34899
|
], Peru9112FibramasENTITY.prototype, "inventory", 2);
|
|
34982
34900
|
__decorateClass([
|
|
34983
|
-
|
|
34984
|
-
|
|
34985
|
-
|
|
34901
|
+
Expose560({ name: "PB" }),
|
|
34902
|
+
IsDefined167({ message: "El campo PB es obligatorio." }),
|
|
34903
|
+
IsNumber371()
|
|
34986
34904
|
], Peru9112FibramasENTITY.prototype, "PB", 2);
|
|
34987
34905
|
__decorateClass([
|
|
34988
|
-
|
|
34989
|
-
|
|
34990
|
-
|
|
34906
|
+
Expose560({ name: "MO" }),
|
|
34907
|
+
IsDefined167({ message: "El campo MO es obligatorio." }),
|
|
34908
|
+
IsNumber371()
|
|
34991
34909
|
], Peru9112FibramasENTITY.prototype, "MO", 2);
|
|
34992
34910
|
__decorateClass([
|
|
34993
|
-
|
|
34994
|
-
|
|
34995
|
-
|
|
34911
|
+
Expose560({ name: "Gasto_EECC" }),
|
|
34912
|
+
IsDefined167({ message: "El campo Gasto_EECC es obligatorio." }),
|
|
34913
|
+
IsNumber371()
|
|
34996
34914
|
], Peru9112FibramasENTITY.prototype, "Gasto_EECC", 2);
|
|
34997
34915
|
__decorateClass([
|
|
34998
|
-
|
|
34999
|
-
|
|
35000
|
-
|
|
35001
|
-
|
|
34916
|
+
Expose560({ name: "EECC" }),
|
|
34917
|
+
IsDefined167({ message: "El campo EECC es obligatorio." }),
|
|
34918
|
+
ValidateNested324(),
|
|
34919
|
+
Type366(() => EECCFibramasDBDTO)
|
|
35002
34920
|
], Peru9112FibramasENTITY.prototype, "EECC", 2);
|
|
35003
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
|
+
invpool = "";
|
|
34942
|
+
numero_de_peticion;
|
|
34943
|
+
stock_quantity_employee = [];
|
|
34944
|
+
state_consumption;
|
|
34945
|
+
state_replacement;
|
|
34946
|
+
};
|
|
34947
|
+
__decorateClass([
|
|
34948
|
+
IsDefined168({ message: "El campo _id es obligatorio." }),
|
|
34949
|
+
IsUUID7("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34950
|
+
Expose561()
|
|
34951
|
+
], OrderStockENTITY.prototype, "_id", 2);
|
|
34952
|
+
__decorateClass([
|
|
34953
|
+
Expose561({ name: "id_recurso" }),
|
|
34954
|
+
IsDefined168({ message: "El campo ID Recurso es obligatorio." }),
|
|
34955
|
+
IsString457()
|
|
34956
|
+
], OrderStockENTITY.prototype, "id_recurso", 2);
|
|
34957
|
+
__decorateClass([
|
|
34958
|
+
IsDefined168({ message: "El campo itemCode es obligatorio" }),
|
|
34959
|
+
IsString457({ message: "El campo itemCode debe ser una cadena de texto v\xE1lida" }),
|
|
34960
|
+
MaxLength3(50, { message: "El campo itemCode no puede superar los 50 caracteres" }),
|
|
34961
|
+
IsNotEmpty376({ message: "El campo itemCode no puede estar vac\xEDo" }),
|
|
34962
|
+
Expose561()
|
|
34963
|
+
], OrderStockENTITY.prototype, "itemCode", 2);
|
|
34964
|
+
__decorateClass([
|
|
34965
|
+
IsDefined168({ message: "El campo serial es obligatorio." }),
|
|
34966
|
+
IsString457({ message: "El campo serial debe ser una cadena de texto" }),
|
|
34967
|
+
Expose561()
|
|
34968
|
+
], OrderStockENTITY.prototype, "serial", 2);
|
|
34969
|
+
__decorateClass([
|
|
34970
|
+
Expose561(),
|
|
34971
|
+
IsDefined168({ message: "El campo quantity es obligatorio." }),
|
|
34972
|
+
IsNumber372()
|
|
34973
|
+
], OrderStockENTITY.prototype, "quantity", 2);
|
|
34974
|
+
__decorateClass([
|
|
34975
|
+
Expose561(),
|
|
34976
|
+
IsDefined168({ message: "El campo invpool es obligatorio." }),
|
|
34977
|
+
IsString457()
|
|
34978
|
+
], OrderStockENTITY.prototype, "invpool", 2);
|
|
34979
|
+
__decorateClass([
|
|
34980
|
+
Expose561(),
|
|
34981
|
+
IsDefined168({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
34982
|
+
IsString457()
|
|
34983
|
+
], OrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
34984
|
+
__decorateClass([
|
|
34985
|
+
IsDefined168({ message: "El campo stock_quantity_employee es obligatorio" }),
|
|
34986
|
+
IsArray190({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
34987
|
+
ValidateNested325({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
34988
|
+
Type367(() => StockQuantityEmployeeDTO),
|
|
34989
|
+
Expose561()
|
|
34990
|
+
], OrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
34991
|
+
__decorateClass([
|
|
34992
|
+
IsDefined168({ message: "El campo estado consumo es obligatorio." }),
|
|
34993
|
+
Expose561(),
|
|
34994
|
+
IsEnum26(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
34995
|
+
], OrderStockENTITY.prototype, "state_consumption", 2);
|
|
34996
|
+
__decorateClass([
|
|
34997
|
+
IsDefined168({ message: "El campo estado reposicion es obligatorio." }),
|
|
34998
|
+
Expose561(),
|
|
34999
|
+
IsEnum26(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
35000
|
+
], OrderStockENTITY.prototype, "state_replacement", 2);
|
|
35001
|
+
|
|
35004
35002
|
// src/operativa/procesos/TOA orden liquidacion/shared/index.ts
|
|
35005
|
-
import { Expose as
|
|
35006
|
-
import { IsArray as IsArray191, IsDefined as
|
|
35003
|
+
import { Expose as Expose562, Transform as Transform80, Type as Type368 } from "class-transformer";
|
|
35004
|
+
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";
|
|
35007
35005
|
var TOAOrdenLiquidacionENTITY = class {
|
|
35008
35006
|
_id;
|
|
35009
35007
|
tecnico;
|
|
@@ -35028,156 +35026,156 @@ var TOAOrdenLiquidacionENTITY = class {
|
|
|
35028
35026
|
inventario;
|
|
35029
35027
|
};
|
|
35030
35028
|
__decorateClass([
|
|
35031
|
-
|
|
35029
|
+
IsDefined169({ message: "El campo _id es obligatorio." }),
|
|
35032
35030
|
IsUUID8("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
35033
|
-
|
|
35031
|
+
Expose562()
|
|
35034
35032
|
], TOAOrdenLiquidacionENTITY.prototype, "_id", 2);
|
|
35035
35033
|
__decorateClass([
|
|
35036
|
-
|
|
35034
|
+
Expose562(),
|
|
35037
35035
|
Transform80(({ value, obj }) => value ?? obj["T\xE9cnico"] ?? obj.tecnico),
|
|
35038
35036
|
Type368(() => String),
|
|
35039
|
-
|
|
35037
|
+
IsDefined169({ message: "El campo T\xE9cnico es obligatorio." }),
|
|
35040
35038
|
IsString458()
|
|
35041
35039
|
], TOAOrdenLiquidacionENTITY.prototype, "tecnico", 2);
|
|
35042
35040
|
__decorateClass([
|
|
35043
|
-
|
|
35041
|
+
Expose562(),
|
|
35044
35042
|
Transform80(({ value, obj }) => value ?? obj["ID Recurso"] ?? obj.id_recurso),
|
|
35045
35043
|
Type368(() => String),
|
|
35046
|
-
|
|
35044
|
+
IsDefined169({ message: "El campo ID Recurso es obligatorio." }),
|
|
35047
35045
|
IsString458()
|
|
35048
35046
|
], TOAOrdenLiquidacionENTITY.prototype, "id_recurso", 2);
|
|
35049
35047
|
__decorateClass([
|
|
35050
|
-
|
|
35048
|
+
Expose562(),
|
|
35051
35049
|
Transform80(({ value, obj }) => value ?? obj["N\xFAmero OT"] ?? obj.numero_ot),
|
|
35052
35050
|
Type368(() => Number),
|
|
35053
|
-
|
|
35054
|
-
|
|
35051
|
+
IsDefined169({ message: "El campo N\xFAmero OT es obligatorio." }),
|
|
35052
|
+
IsNumber373()
|
|
35055
35053
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_ot", 2);
|
|
35056
35054
|
__decorateClass([
|
|
35057
|
-
|
|
35055
|
+
Expose562(),
|
|
35058
35056
|
Transform80(({ value, obj }) => value ?? obj["Subtipo de Actividad"] ?? obj.subtipo_de_actividad),
|
|
35059
35057
|
Type368(() => String),
|
|
35060
|
-
|
|
35058
|
+
IsDefined169({ message: "El campo Subtipo de Actividad es obligatorio." }),
|
|
35061
35059
|
IsString458()
|
|
35062
35060
|
], TOAOrdenLiquidacionENTITY.prototype, "subtipo_de_actividad", 2);
|
|
35063
35061
|
__decorateClass([
|
|
35064
|
-
|
|
35062
|
+
Expose562(),
|
|
35065
35063
|
Transform80(({ value, obj }) => value ?? obj["N\xFAmero de Petici\xF3n"] ?? obj.numero_de_peticion),
|
|
35066
35064
|
Type368(() => String),
|
|
35067
|
-
|
|
35065
|
+
IsDefined169({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
35068
35066
|
IsString458()
|
|
35069
35067
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_de_peticion", 2);
|
|
35070
35068
|
__decorateClass([
|
|
35071
|
-
|
|
35069
|
+
Expose562(),
|
|
35072
35070
|
Transform80(({ value, obj }) => value ?? obj["Localidad"] ?? obj.localidad),
|
|
35073
35071
|
Type368(() => String),
|
|
35074
|
-
|
|
35072
|
+
IsDefined169({ message: "El campo Localidad es obligatorio." }),
|
|
35075
35073
|
IsString458()
|
|
35076
35074
|
], TOAOrdenLiquidacionENTITY.prototype, "localidad", 2);
|
|
35077
35075
|
__decorateClass([
|
|
35078
|
-
|
|
35076
|
+
Expose562(),
|
|
35079
35077
|
Transform80(({ value, obj }) => value ?? obj["Direcci\xF3n"] ?? obj.direccion),
|
|
35080
35078
|
Type368(() => String),
|
|
35081
|
-
|
|
35079
|
+
IsDefined169({ message: "El campo Direcci\xF3n es obligatorio." }),
|
|
35082
35080
|
IsString458()
|
|
35083
35081
|
], TOAOrdenLiquidacionENTITY.prototype, "direccion", 2);
|
|
35084
35082
|
__decorateClass([
|
|
35085
|
-
|
|
35083
|
+
Expose562(),
|
|
35086
35084
|
Transform80(({ value, obj }) => value ?? obj["Zona de Trabajo"] ?? obj.zona_de_trabajo),
|
|
35087
35085
|
Type368(() => String),
|
|
35088
|
-
|
|
35086
|
+
IsDefined169({ message: "El campo Zona de Trabajo es obligatorio." }),
|
|
35089
35087
|
IsString458()
|
|
35090
35088
|
], TOAOrdenLiquidacionENTITY.prototype, "zona_de_trabajo", 2);
|
|
35091
35089
|
__decorateClass([
|
|
35092
|
-
|
|
35090
|
+
Expose562(),
|
|
35093
35091
|
Transform80(({ value, obj }) => value ?? obj["Nombre Cliente"] ?? obj.nombre_cliente),
|
|
35094
35092
|
Type368(() => String),
|
|
35095
|
-
|
|
35093
|
+
IsDefined169({ message: "El campo Nombre Cliente es obligatorio." }),
|
|
35096
35094
|
IsString458()
|
|
35097
35095
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_cliente", 2);
|
|
35098
35096
|
__decorateClass([
|
|
35099
|
-
|
|
35097
|
+
Expose562(),
|
|
35100
35098
|
Transform80(({ value, obj }) => value ?? obj["Estado actividad"] ?? obj.estado_actividad),
|
|
35101
35099
|
Type368(() => String),
|
|
35102
|
-
|
|
35100
|
+
IsDefined169({ message: "El campo Estado actividad es obligatorio." }),
|
|
35103
35101
|
IsString458()
|
|
35104
35102
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_actividad", 2);
|
|
35105
35103
|
__decorateClass([
|
|
35106
|
-
|
|
35104
|
+
Expose562(),
|
|
35107
35105
|
Transform80(({ value, obj }) => value ?? obj["Estado Interno"] ?? obj.estado_interno),
|
|
35108
|
-
|
|
35106
|
+
IsDefined169({ message: "El campo estado interno es obligatorio." }),
|
|
35109
35107
|
IsEnum27(StateInternalOrderTOA, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrderTOA).join(", ")}.` })
|
|
35110
35108
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_interno", 2);
|
|
35111
35109
|
__decorateClass([
|
|
35112
|
-
|
|
35110
|
+
Expose562(),
|
|
35113
35111
|
Transform80(({ value, obj }) => value ?? obj["C\xF3digo de Cliente"] ?? obj.codigo_de_cliente),
|
|
35114
35112
|
Type368(() => Number),
|
|
35115
|
-
|
|
35116
|
-
|
|
35113
|
+
IsDefined169({ message: "El campo C\xF3digo de Cliente es obligatorio." }),
|
|
35114
|
+
IsNumber373()
|
|
35117
35115
|
], TOAOrdenLiquidacionENTITY.prototype, "codigo_de_cliente", 2);
|
|
35118
35116
|
__decorateClass([
|
|
35119
|
-
|
|
35117
|
+
Expose562(),
|
|
35120
35118
|
Transform80(({ value, obj }) => value ?? obj["Actividad Gpon"] ?? obj.actividad_gpon),
|
|
35121
35119
|
Transform80(({ obj }) => obj["Actividad Gpon"] ?? obj.actividad_gpon),
|
|
35122
35120
|
Type368(() => String),
|
|
35123
|
-
|
|
35121
|
+
IsDefined169({ message: "El campo Actividad Gpon es obligatorio." }),
|
|
35124
35122
|
IsString458()
|
|
35125
35123
|
], TOAOrdenLiquidacionENTITY.prototype, "actividad_gpon", 2);
|
|
35126
35124
|
__decorateClass([
|
|
35127
|
-
|
|
35125
|
+
Expose562(),
|
|
35128
35126
|
Transform80(({ value, obj }) => value ?? obj["Nombre Distrito"] ?? obj.nombre_distrito),
|
|
35129
35127
|
Type368(() => String),
|
|
35130
|
-
|
|
35128
|
+
IsDefined169({ message: "El campo Nombre Distrito es obligatorio." }),
|
|
35131
35129
|
IsString458()
|
|
35132
35130
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_distrito", 2);
|
|
35133
35131
|
__decorateClass([
|
|
35134
|
-
|
|
35132
|
+
Expose562(),
|
|
35135
35133
|
Transform80(({ value, obj }) => value ?? obj["N\xFAmero Tel\xE9fono"] ?? obj.numero_telefono),
|
|
35136
35134
|
Type368(() => String),
|
|
35137
|
-
|
|
35135
|
+
IsDefined169({ message: "El campo N\xFAmero Tel\xE9fono es obligatorio." }),
|
|
35138
35136
|
IsString458()
|
|
35139
35137
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_telefono", 2);
|
|
35140
35138
|
__decorateClass([
|
|
35141
|
-
|
|
35139
|
+
Expose562(),
|
|
35142
35140
|
Transform80(({ value, obj }) => value ?? obj["Segmento"] ?? obj.segmento),
|
|
35143
|
-
|
|
35141
|
+
IsDefined169({ message: "El campo Segmento es obligatorio." }),
|
|
35144
35142
|
IsObject12(),
|
|
35145
35143
|
ValidateNested326(),
|
|
35146
35144
|
Type368(() => ToaSegmentoDTO)
|
|
35147
35145
|
], TOAOrdenLiquidacionENTITY.prototype, "segmento", 2);
|
|
35148
35146
|
__decorateClass([
|
|
35149
|
-
|
|
35147
|
+
Expose562(),
|
|
35150
35148
|
Transform80(({ value, obj }) => value ?? obj["Nombre de Provincia"] ?? obj.nombre_de_provincia),
|
|
35151
35149
|
Type368(() => String),
|
|
35152
|
-
|
|
35150
|
+
IsDefined169({ message: "El campo Nombre de Provincia es obligatorio." }),
|
|
35153
35151
|
IsString458()
|
|
35154
35152
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_de_provincia", 2);
|
|
35155
35153
|
__decorateClass([
|
|
35156
|
-
|
|
35154
|
+
Expose562(),
|
|
35157
35155
|
Transform80(({ value, obj }) => value ?? obj["Departamento"] ?? obj.departamento),
|
|
35158
35156
|
Type368(() => String),
|
|
35159
|
-
|
|
35157
|
+
IsDefined169({ message: "El campo Departamento es obligatorio." }),
|
|
35160
35158
|
IsString458()
|
|
35161
35159
|
], TOAOrdenLiquidacionENTITY.prototype, "departamento", 2);
|
|
35162
35160
|
__decorateClass([
|
|
35163
|
-
|
|
35161
|
+
Expose562(),
|
|
35164
35162
|
Transform80(({ value, obj }) => value ?? obj["Reiterada TDI"] ?? obj.reiterada_tdi),
|
|
35165
35163
|
Type368(() => String),
|
|
35166
|
-
|
|
35164
|
+
IsDefined169({ message: "El campo Reiterada TDI es obligatorio." }),
|
|
35167
35165
|
IsString458()
|
|
35168
35166
|
], TOAOrdenLiquidacionENTITY.prototype, "reiterada_tdi", 2);
|
|
35169
35167
|
__decorateClass([
|
|
35170
|
-
|
|
35168
|
+
Expose562(),
|
|
35171
35169
|
Transform80(({ value, obj }) => value ?? obj["Inventario"] ?? obj.inventario),
|
|
35172
|
-
|
|
35170
|
+
IsDefined169({ message: "El campo inventario es obligatorio." }),
|
|
35173
35171
|
IsArray191(),
|
|
35174
35172
|
ValidateNested326({ each: true }),
|
|
35175
35173
|
Type368(() => MaterialestoaDTO)
|
|
35176
35174
|
], TOAOrdenLiquidacionENTITY.prototype, "inventario", 2);
|
|
35177
35175
|
|
|
35178
35176
|
// src/operativa/procesos/TOA orden liquidacion_db/shared/index.ts
|
|
35179
|
-
import { Expose as
|
|
35180
|
-
import { IsArray as IsArray192, IsDefined as
|
|
35177
|
+
import { Expose as Expose563, Type as Type369 } from "class-transformer";
|
|
35178
|
+
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";
|
|
35181
35179
|
var TOAOrdenLiquidacionENTITYDB = class {
|
|
35182
35180
|
_id = "";
|
|
35183
35181
|
tecnico = "";
|
|
@@ -35202,131 +35200,131 @@ var TOAOrdenLiquidacionENTITYDB = class {
|
|
|
35202
35200
|
inventario = [];
|
|
35203
35201
|
};
|
|
35204
35202
|
__decorateClass([
|
|
35205
|
-
|
|
35203
|
+
IsDefined170({ message: "El campo _id es obligatorio." }),
|
|
35206
35204
|
IsUUID9("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
35207
|
-
|
|
35205
|
+
Expose563({ name: "_id" })
|
|
35208
35206
|
], TOAOrdenLiquidacionENTITYDB.prototype, "_id", 2);
|
|
35209
35207
|
__decorateClass([
|
|
35210
|
-
|
|
35211
|
-
|
|
35208
|
+
Expose563(),
|
|
35209
|
+
IsDefined170({ message: "El campo T\xE9cnico es obligatorio." }),
|
|
35212
35210
|
IsString459()
|
|
35213
35211
|
], TOAOrdenLiquidacionENTITYDB.prototype, "tecnico", 2);
|
|
35214
35212
|
__decorateClass([
|
|
35215
|
-
|
|
35216
|
-
|
|
35213
|
+
Expose563(),
|
|
35214
|
+
IsDefined170({ message: "El campo ID Recurso es obligatorio." }),
|
|
35217
35215
|
IsString459()
|
|
35218
35216
|
], TOAOrdenLiquidacionENTITYDB.prototype, "id_recurso", 2);
|
|
35219
35217
|
__decorateClass([
|
|
35220
|
-
|
|
35221
|
-
|
|
35222
|
-
|
|
35218
|
+
Expose563(),
|
|
35219
|
+
IsDefined170({ message: "El campo N\xFAmero OT es obligatorio." }),
|
|
35220
|
+
IsNumber374()
|
|
35223
35221
|
], TOAOrdenLiquidacionENTITYDB.prototype, "numero_ot", 2);
|
|
35224
35222
|
__decorateClass([
|
|
35225
|
-
|
|
35226
|
-
|
|
35223
|
+
Expose563(),
|
|
35224
|
+
IsDefined170({ message: "El campo Subtipo de Actividad es obligatorio." }),
|
|
35227
35225
|
IsString459()
|
|
35228
35226
|
], TOAOrdenLiquidacionENTITYDB.prototype, "subtipo_de_actividad", 2);
|
|
35229
35227
|
__decorateClass([
|
|
35230
|
-
|
|
35231
|
-
|
|
35228
|
+
Expose563(),
|
|
35229
|
+
IsDefined170({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
35232
35230
|
IsString459()
|
|
35233
35231
|
], TOAOrdenLiquidacionENTITYDB.prototype, "numero_de_peticion", 2);
|
|
35234
35232
|
__decorateClass([
|
|
35235
|
-
|
|
35236
|
-
|
|
35233
|
+
Expose563(),
|
|
35234
|
+
IsDefined170({ message: "El campo Localidad es obligatorio." }),
|
|
35237
35235
|
IsString459()
|
|
35238
35236
|
], TOAOrdenLiquidacionENTITYDB.prototype, "localidad", 2);
|
|
35239
35237
|
__decorateClass([
|
|
35240
|
-
|
|
35241
|
-
|
|
35238
|
+
Expose563(),
|
|
35239
|
+
IsDefined170({ message: "El campo Direcci\xF3n es obligatorio." }),
|
|
35242
35240
|
IsString459()
|
|
35243
35241
|
], TOAOrdenLiquidacionENTITYDB.prototype, "direccion", 2);
|
|
35244
35242
|
__decorateClass([
|
|
35245
|
-
|
|
35246
|
-
|
|
35243
|
+
Expose563(),
|
|
35244
|
+
IsDefined170({ message: "El campo Zona de Trabajo es obligatorio." }),
|
|
35247
35245
|
IsString459()
|
|
35248
35246
|
], TOAOrdenLiquidacionENTITYDB.prototype, "zona_de_trabajo", 2);
|
|
35249
35247
|
__decorateClass([
|
|
35250
|
-
|
|
35251
|
-
|
|
35248
|
+
Expose563(),
|
|
35249
|
+
IsDefined170({ message: "El campo Nombre Cliente es obligatorio." }),
|
|
35252
35250
|
IsString459()
|
|
35253
35251
|
], TOAOrdenLiquidacionENTITYDB.prototype, "nombre_cliente", 2);
|
|
35254
35252
|
__decorateClass([
|
|
35255
|
-
|
|
35256
|
-
|
|
35253
|
+
Expose563(),
|
|
35254
|
+
IsDefined170({ message: "El campo Estado actividad es obligatorio." }),
|
|
35257
35255
|
IsString459()
|
|
35258
35256
|
], TOAOrdenLiquidacionENTITYDB.prototype, "estado_actividad", 2);
|
|
35259
35257
|
__decorateClass([
|
|
35260
|
-
|
|
35261
|
-
|
|
35258
|
+
Expose563(),
|
|
35259
|
+
IsDefined170({ message: "El campo estado interno es obligatorio." }),
|
|
35262
35260
|
IsEnum28(StateInternalOrderTOA, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrderTOA).join(", ")}.` })
|
|
35263
35261
|
], TOAOrdenLiquidacionENTITYDB.prototype, "estado_interno", 2);
|
|
35264
35262
|
__decorateClass([
|
|
35265
|
-
|
|
35266
|
-
|
|
35267
|
-
|
|
35263
|
+
Expose563(),
|
|
35264
|
+
IsDefined170({ message: "El campo C\xF3digo de Cliente es obligatorio." }),
|
|
35265
|
+
IsNumber374()
|
|
35268
35266
|
], TOAOrdenLiquidacionENTITYDB.prototype, "codigo_de_cliente", 2);
|
|
35269
35267
|
__decorateClass([
|
|
35270
|
-
|
|
35271
|
-
|
|
35268
|
+
Expose563(),
|
|
35269
|
+
IsDefined170({ message: "El campo Actividad Gpon es obligatorio." }),
|
|
35272
35270
|
IsString459()
|
|
35273
35271
|
], TOAOrdenLiquidacionENTITYDB.prototype, "actividad_gpon", 2);
|
|
35274
35272
|
__decorateClass([
|
|
35275
|
-
|
|
35276
|
-
|
|
35273
|
+
Expose563(),
|
|
35274
|
+
IsDefined170({ message: "El campo Nombre Distrito es obligatorio." }),
|
|
35277
35275
|
IsString459()
|
|
35278
35276
|
], TOAOrdenLiquidacionENTITYDB.prototype, "nombre_distrito", 2);
|
|
35279
35277
|
__decorateClass([
|
|
35280
|
-
|
|
35281
|
-
|
|
35278
|
+
Expose563(),
|
|
35279
|
+
IsDefined170({ message: "El campo N\xFAmero Tel\xE9fono es obligatorio." }),
|
|
35282
35280
|
IsString459()
|
|
35283
35281
|
], TOAOrdenLiquidacionENTITYDB.prototype, "numero_telefono", 2);
|
|
35284
35282
|
__decorateClass([
|
|
35285
|
-
|
|
35286
|
-
|
|
35283
|
+
Expose563(),
|
|
35284
|
+
IsDefined170({ message: "El campo Segmento es obligatorio." }),
|
|
35287
35285
|
IsObject13(),
|
|
35288
35286
|
ValidateNested327(),
|
|
35289
35287
|
Type369(() => ToaSegmentoDBDTO)
|
|
35290
35288
|
], TOAOrdenLiquidacionENTITYDB.prototype, "segmento", 2);
|
|
35291
35289
|
__decorateClass([
|
|
35292
|
-
|
|
35293
|
-
|
|
35290
|
+
Expose563(),
|
|
35291
|
+
IsDefined170({ message: "El campo Nombre de Provincia es obligatorio." }),
|
|
35294
35292
|
IsString459()
|
|
35295
35293
|
], TOAOrdenLiquidacionENTITYDB.prototype, "nombre_de_provincia", 2);
|
|
35296
35294
|
__decorateClass([
|
|
35297
|
-
|
|
35298
|
-
|
|
35295
|
+
Expose563(),
|
|
35296
|
+
IsDefined170({ message: "El campo Departamento es obligatorio." }),
|
|
35299
35297
|
IsString459()
|
|
35300
35298
|
], TOAOrdenLiquidacionENTITYDB.prototype, "departamento", 2);
|
|
35301
35299
|
__decorateClass([
|
|
35302
|
-
|
|
35303
|
-
|
|
35300
|
+
Expose563(),
|
|
35301
|
+
IsDefined170({ message: "El campo Reiterada TDI es obligatorio." }),
|
|
35304
35302
|
IsString459()
|
|
35305
35303
|
], TOAOrdenLiquidacionENTITYDB.prototype, "reiterada_tdi", 2);
|
|
35306
35304
|
__decorateClass([
|
|
35307
|
-
|
|
35308
|
-
|
|
35305
|
+
Expose563(),
|
|
35306
|
+
IsDefined170({ message: "El campo inventario es obligatorio." }),
|
|
35309
35307
|
IsArray192(),
|
|
35310
35308
|
ValidateNested327({ each: true }),
|
|
35311
35309
|
Type369(() => MaterialestoaDBDTO)
|
|
35312
35310
|
], TOAOrdenLiquidacionENTITYDB.prototype, "inventario", 2);
|
|
35313
35311
|
|
|
35314
35312
|
// src/v2/dtos/CodigoNombre.ts
|
|
35315
|
-
import { Expose as
|
|
35316
|
-
import { IsDefined as
|
|
35313
|
+
import { Expose as Expose564 } from "class-transformer";
|
|
35314
|
+
import { IsDefined as IsDefined171, IsString as IsString460, MinLength as MinLength47 } from "class-validator";
|
|
35317
35315
|
var CodigoNombreDto = class {
|
|
35318
35316
|
codigo;
|
|
35319
35317
|
nombre;
|
|
35320
35318
|
};
|
|
35321
35319
|
__decorateClass([
|
|
35322
|
-
|
|
35320
|
+
IsDefined171({ message: 'La propiedad "codigo" es obligatoria.' }),
|
|
35323
35321
|
IsString460({ message: 'La propiedad "codigo" debe ser una cadena de texto.' }),
|
|
35324
|
-
|
|
35322
|
+
Expose564()
|
|
35325
35323
|
], CodigoNombreDto.prototype, "codigo", 2);
|
|
35326
35324
|
__decorateClass([
|
|
35327
|
-
|
|
35325
|
+
IsDefined171({ message: 'La propiedad "nombre" es obligatoria.' }),
|
|
35328
35326
|
IsString460({ message: 'La propiedad "nombre" debe ser una cadena de texto.' }),
|
|
35329
|
-
|
|
35327
|
+
Expose564()
|
|
35330
35328
|
], CodigoNombreDto.prototype, "nombre", 2);
|
|
35331
35329
|
var CodigoNombreMinLengthDto = class extends CodigoNombreDto {
|
|
35332
35330
|
};
|
|
@@ -35338,25 +35336,25 @@ __decorateClass([
|
|
|
35338
35336
|
], CodigoNombreMinLengthDto.prototype, "nombre", 2);
|
|
35339
35337
|
|
|
35340
35338
|
// src/v2/entities/Delegacion.ts
|
|
35341
|
-
import { Expose as
|
|
35342
|
-
import { IsDefined as
|
|
35339
|
+
import { Expose as Expose566, Type as Type370 } from "class-transformer";
|
|
35340
|
+
import { IsDefined as IsDefined173, IsObject as IsObject14, IsString as IsString461, MinLength as MinLength48, ValidateNested as ValidateNested328 } from "class-validator";
|
|
35343
35341
|
|
|
35344
35342
|
// src/v2/entities/Base.ts
|
|
35345
|
-
import { Expose as
|
|
35346
|
-
import { IsBoolean as IsBoolean50, IsDefined as
|
|
35343
|
+
import { Expose as Expose565 } from "class-transformer";
|
|
35344
|
+
import { IsBoolean as IsBoolean50, IsDefined as IsDefined172, IsUUID as IsUUID10 } from "class-validator";
|
|
35347
35345
|
var BaseEntity = class {
|
|
35348
35346
|
_id;
|
|
35349
35347
|
activo;
|
|
35350
35348
|
};
|
|
35351
35349
|
__decorateClass([
|
|
35352
|
-
|
|
35350
|
+
IsDefined172({ message: 'La propiedad "_id" es obligatoria.' }),
|
|
35353
35351
|
IsUUID10("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
35354
|
-
|
|
35352
|
+
Expose565()
|
|
35355
35353
|
], BaseEntity.prototype, "_id", 2);
|
|
35356
35354
|
__decorateClass([
|
|
35357
|
-
|
|
35355
|
+
IsDefined172({ message: 'La propiedad "activo" es obligatoria.' }),
|
|
35358
35356
|
IsBoolean50({ message: 'La propiedad "activo" debe ser un valor booleano.' }),
|
|
35359
|
-
|
|
35357
|
+
Expose565()
|
|
35360
35358
|
], BaseEntity.prototype, "activo", 2);
|
|
35361
35359
|
|
|
35362
35360
|
// src/v2/entities/Delegacion.ts
|
|
@@ -35366,23 +35364,23 @@ var DelegacionEntity = class extends BaseEntity {
|
|
|
35366
35364
|
nombre;
|
|
35367
35365
|
};
|
|
35368
35366
|
__decorateClass([
|
|
35369
|
-
|
|
35367
|
+
IsDefined173({ message: 'La propiedad "pais" es obligatoria.' }),
|
|
35370
35368
|
Type370(() => CodigoNombreMinLengthDto),
|
|
35371
35369
|
IsObject14({ message: 'La propiedad "pais" debe ser un objeto v\xE1lido.' }),
|
|
35372
35370
|
ValidateNested328({ message: 'La propiedad "pais" no es v\xE1lida.' }),
|
|
35373
|
-
|
|
35371
|
+
Expose566()
|
|
35374
35372
|
], DelegacionEntity.prototype, "pais", 2);
|
|
35375
35373
|
__decorateClass([
|
|
35376
|
-
|
|
35374
|
+
IsDefined173({ message: 'La propiedad "codigo" es obligatoria.' }),
|
|
35377
35375
|
IsString461({ message: 'La propiedad "codigo" debe ser una cadena de texto.' }),
|
|
35378
35376
|
MinLength48(1, { message: 'La propiedad "codigo" debe tener al menos 1 car\xE1cter.' }),
|
|
35379
|
-
|
|
35377
|
+
Expose566()
|
|
35380
35378
|
], DelegacionEntity.prototype, "codigo", 2);
|
|
35381
35379
|
__decorateClass([
|
|
35382
|
-
|
|
35380
|
+
IsDefined173({ message: 'La propiedad "nombre" es obligatoria.' }),
|
|
35383
35381
|
IsString461({ message: 'La propiedad "nombre" debe ser una cadena de texto.' }),
|
|
35384
35382
|
MinLength48(1, { message: 'La propiedad "nombre" debe tener al menos 1 car\xE1cter.' }),
|
|
35385
|
-
|
|
35383
|
+
Expose566()
|
|
35386
35384
|
], DelegacionEntity.prototype, "nombre", 2);
|
|
35387
35385
|
export {
|
|
35388
35386
|
ADM_RM_ZonasActividadENTITY,
|
|
@@ -35936,7 +35934,6 @@ export {
|
|
|
35936
35934
|
VigenciaOTDTO,
|
|
35937
35935
|
VigenciaPCMODTO,
|
|
35938
35936
|
WBEDTO,
|
|
35939
|
-
WINOrderStockENTITY,
|
|
35940
35937
|
ZonaTrabajoCuadrillaDTO,
|
|
35941
35938
|
ZonaTrabajoDTO,
|
|
35942
35939
|
ZonaTrabajoENTITY,
|