sigo-entities 1.2.113 → 1.2.114
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 +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.js +6 -26
- package/dist/index.mjs +131 -151
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6442,9 +6442,7 @@ declare class UbicacionwinDTO {
|
|
|
6442
6442
|
ubicacion: string;
|
|
6443
6443
|
}
|
|
6444
6444
|
declare class MaterialeswinDTO {
|
|
6445
|
-
key: string;
|
|
6446
6445
|
codigo: string;
|
|
6447
|
-
descripcion: string;
|
|
6448
6446
|
cantidad: number;
|
|
6449
6447
|
invsn: string;
|
|
6450
6448
|
invpool: string;
|
|
@@ -6566,9 +6564,7 @@ declare class Peru9112WinENTITY {
|
|
|
6566
6564
|
}
|
|
6567
6565
|
|
|
6568
6566
|
declare class MaterialesFibramasDTO {
|
|
6569
|
-
key: string;
|
|
6570
6567
|
codigo: string;
|
|
6571
|
-
descripcion: string;
|
|
6572
6568
|
cantidad: number;
|
|
6573
6569
|
invsn: string;
|
|
6574
6570
|
invpool: string;
|
|
@@ -6674,6 +6670,7 @@ declare class OrderStockENTITY {
|
|
|
6674
6670
|
stock_quantity_employee: StockQuantityEmployeeDTO[];
|
|
6675
6671
|
state_consumption: StateInventory;
|
|
6676
6672
|
state_replacement: StateInventory;
|
|
6673
|
+
ID_StockPersonal: number;
|
|
6677
6674
|
}
|
|
6678
6675
|
|
|
6679
6676
|
declare class TOAOrdenLiquidacionENTITY {
|
package/dist/index.d.ts
CHANGED
|
@@ -6442,9 +6442,7 @@ declare class UbicacionwinDTO {
|
|
|
6442
6442
|
ubicacion: string;
|
|
6443
6443
|
}
|
|
6444
6444
|
declare class MaterialeswinDTO {
|
|
6445
|
-
key: string;
|
|
6446
6445
|
codigo: string;
|
|
6447
|
-
descripcion: string;
|
|
6448
6446
|
cantidad: number;
|
|
6449
6447
|
invsn: string;
|
|
6450
6448
|
invpool: string;
|
|
@@ -6566,9 +6564,7 @@ declare class Peru9112WinENTITY {
|
|
|
6566
6564
|
}
|
|
6567
6565
|
|
|
6568
6566
|
declare class MaterialesFibramasDTO {
|
|
6569
|
-
key: string;
|
|
6570
6567
|
codigo: string;
|
|
6571
|
-
descripcion: string;
|
|
6572
6568
|
cantidad: number;
|
|
6573
6569
|
invsn: string;
|
|
6574
6570
|
invpool: string;
|
|
@@ -6674,6 +6670,7 @@ declare class OrderStockENTITY {
|
|
|
6674
6670
|
stock_quantity_employee: StockQuantityEmployeeDTO[];
|
|
6675
6671
|
state_consumption: StateInventory;
|
|
6676
6672
|
state_replacement: StateInventory;
|
|
6673
|
+
ID_StockPersonal: number;
|
|
6677
6674
|
}
|
|
6678
6675
|
|
|
6679
6676
|
declare class TOAOrdenLiquidacionENTITY {
|
package/dist/index.js
CHANGED
|
@@ -34245,30 +34245,17 @@ __decorateClass([
|
|
|
34245
34245
|
(0, import_class_validator558.IsString)()
|
|
34246
34246
|
], UbicacionwinDTO.prototype, "ubicacion", 2);
|
|
34247
34247
|
var MaterialeswinDTO = class {
|
|
34248
|
-
key = "";
|
|
34249
34248
|
codigo = "";
|
|
34250
|
-
descripcion = "";
|
|
34251
34249
|
cantidad = 0;
|
|
34252
34250
|
invsn = "";
|
|
34253
34251
|
invpool = "";
|
|
34254
34252
|
ID_StockPersonal = 0;
|
|
34255
34253
|
};
|
|
34256
|
-
__decorateClass([
|
|
34257
|
-
(0, import_class_transformer557.Expose)(),
|
|
34258
|
-
(0, import_class_validator558.IsDefined)({ message: "El campo key es obligatorio." }),
|
|
34259
|
-
(0, import_class_transformer557.Transform)(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
34260
|
-
(0, import_class_validator558.IsString)()
|
|
34261
|
-
], MaterialeswinDTO.prototype, "key", 2);
|
|
34262
34254
|
__decorateClass([
|
|
34263
34255
|
(0, import_class_transformer557.Expose)(),
|
|
34264
34256
|
(0, import_class_validator558.IsDefined)({ message: "El campo codigo es obligatorio." }),
|
|
34265
34257
|
(0, import_class_validator558.IsString)()
|
|
34266
34258
|
], MaterialeswinDTO.prototype, "codigo", 2);
|
|
34267
|
-
__decorateClass([
|
|
34268
|
-
(0, import_class_transformer557.Expose)(),
|
|
34269
|
-
(0, import_class_validator558.IsDefined)({ message: "El campo descripcion es obligatorio." }),
|
|
34270
|
-
(0, import_class_validator558.IsString)()
|
|
34271
|
-
], MaterialeswinDTO.prototype, "descripcion", 2);
|
|
34272
34259
|
__decorateClass([
|
|
34273
34260
|
(0, import_class_transformer557.Expose)(),
|
|
34274
34261
|
(0, import_class_validator558.IsDefined)({ message: "El campo cantidad es obligatorio." }),
|
|
@@ -34877,30 +34864,17 @@ var import_class_transformer561 = require("class-transformer");
|
|
|
34877
34864
|
var import_class_validator562 = require("class-validator");
|
|
34878
34865
|
var import_reflect_metadata12 = require("reflect-metadata");
|
|
34879
34866
|
var MaterialesFibramasDTO = class {
|
|
34880
|
-
key = "";
|
|
34881
34867
|
codigo = "";
|
|
34882
|
-
descripcion = "";
|
|
34883
34868
|
cantidad = 0;
|
|
34884
34869
|
invsn = "";
|
|
34885
34870
|
invpool = "";
|
|
34886
34871
|
ID_StockPersonal = 0;
|
|
34887
34872
|
};
|
|
34888
|
-
__decorateClass([
|
|
34889
|
-
(0, import_class_transformer561.Expose)(),
|
|
34890
|
-
(0, import_class_validator562.IsDefined)({ message: "El campo key es obligatorio." }),
|
|
34891
|
-
(0, import_class_transformer561.Transform)(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
34892
|
-
(0, import_class_validator562.IsString)()
|
|
34893
|
-
], MaterialesFibramasDTO.prototype, "key", 2);
|
|
34894
34873
|
__decorateClass([
|
|
34895
34874
|
(0, import_class_transformer561.Expose)(),
|
|
34896
34875
|
(0, import_class_validator562.IsDefined)({ message: "El campo codigo es obligatorio." }),
|
|
34897
34876
|
(0, import_class_validator562.IsString)()
|
|
34898
34877
|
], MaterialesFibramasDTO.prototype, "codigo", 2);
|
|
34899
|
-
__decorateClass([
|
|
34900
|
-
(0, import_class_transformer561.Expose)(),
|
|
34901
|
-
(0, import_class_validator562.IsDefined)({ message: "El campo descripcion es obligatorio." }),
|
|
34902
|
-
(0, import_class_validator562.IsString)()
|
|
34903
|
-
], MaterialesFibramasDTO.prototype, "descripcion", 2);
|
|
34904
34878
|
__decorateClass([
|
|
34905
34879
|
(0, import_class_transformer561.Expose)(),
|
|
34906
34880
|
(0, import_class_validator562.IsDefined)({ message: "El campo cantidad es obligatorio." }),
|
|
@@ -35387,6 +35361,7 @@ var OrderStockENTITY = class {
|
|
|
35387
35361
|
stock_quantity_employee = [];
|
|
35388
35362
|
state_consumption;
|
|
35389
35363
|
state_replacement;
|
|
35364
|
+
ID_StockPersonal = 0;
|
|
35390
35365
|
};
|
|
35391
35366
|
__decorateClass([
|
|
35392
35367
|
(0, import_class_validator566.IsDefined)({ message: "El campo _id es obligatorio." }),
|
|
@@ -35442,6 +35417,11 @@ __decorateClass([
|
|
|
35442
35417
|
(0, import_class_transformer565.Expose)(),
|
|
35443
35418
|
(0, import_class_validator566.IsEnum)(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
35444
35419
|
], OrderStockENTITY.prototype, "state_replacement", 2);
|
|
35420
|
+
__decorateClass([
|
|
35421
|
+
(0, import_class_transformer565.Expose)(),
|
|
35422
|
+
(0, import_class_validator566.IsDefined)({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
35423
|
+
(0, import_class_validator566.IsNumber)()
|
|
35424
|
+
], OrderStockENTITY.prototype, "ID_StockPersonal", 2);
|
|
35445
35425
|
|
|
35446
35426
|
// src/operativa/procesos/TOA orden liquidacion/shared/index.ts
|
|
35447
35427
|
var import_class_transformer566 = require("class-transformer");
|
package/dist/index.mjs
CHANGED
|
@@ -33751,21 +33751,21 @@ __decorateClass([
|
|
|
33751
33751
|
], RequestNumberTTLENTITY.prototype, "createdAt", 2);
|
|
33752
33752
|
|
|
33753
33753
|
// src/operativa/procesos/win_order/shared/index.ts
|
|
33754
|
-
import { Expose as Expose558, Transform as
|
|
33754
|
+
import { Expose as Expose558, Transform as Transform73, Type as Type362 } from "class-transformer";
|
|
33755
33755
|
import {
|
|
33756
33756
|
IsDefined as IsDefined163,
|
|
33757
33757
|
IsString as IsString454,
|
|
33758
|
-
ValidateNested as
|
|
33759
|
-
IsArray as
|
|
33758
|
+
ValidateNested as ValidateNested321,
|
|
33759
|
+
IsArray as IsArray189,
|
|
33760
33760
|
IsDate as IsDate137,
|
|
33761
|
-
IsEnum as
|
|
33761
|
+
IsEnum as IsEnum22,
|
|
33762
33762
|
IsNumber as IsNumber367,
|
|
33763
33763
|
IsUUID as IsUUID6
|
|
33764
33764
|
} from "class-validator";
|
|
33765
33765
|
import "reflect-metadata";
|
|
33766
33766
|
|
|
33767
33767
|
// src/operativa/procesos/win_order/shared/dto/index.ts
|
|
33768
|
-
import { Expose as Expose555
|
|
33768
|
+
import { Expose as Expose555 } from "class-transformer";
|
|
33769
33769
|
import {
|
|
33770
33770
|
IsDefined as IsDefined160,
|
|
33771
33771
|
IsString as IsString451,
|
|
@@ -33848,30 +33848,17 @@ __decorateClass([
|
|
|
33848
33848
|
IsString451()
|
|
33849
33849
|
], UbicacionwinDTO.prototype, "ubicacion", 2);
|
|
33850
33850
|
var MaterialeswinDTO = class {
|
|
33851
|
-
key = "";
|
|
33852
33851
|
codigo = "";
|
|
33853
|
-
descripcion = "";
|
|
33854
33852
|
cantidad = 0;
|
|
33855
33853
|
invsn = "";
|
|
33856
33854
|
invpool = "";
|
|
33857
33855
|
ID_StockPersonal = 0;
|
|
33858
33856
|
};
|
|
33859
|
-
__decorateClass([
|
|
33860
|
-
Expose555(),
|
|
33861
|
-
IsDefined160({ message: "El campo key es obligatorio." }),
|
|
33862
|
-
Transform72(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
33863
|
-
IsString451()
|
|
33864
|
-
], MaterialeswinDTO.prototype, "key", 2);
|
|
33865
33857
|
__decorateClass([
|
|
33866
33858
|
Expose555(),
|
|
33867
33859
|
IsDefined160({ message: "El campo codigo es obligatorio." }),
|
|
33868
33860
|
IsString451()
|
|
33869
33861
|
], MaterialeswinDTO.prototype, "codigo", 2);
|
|
33870
|
-
__decorateClass([
|
|
33871
|
-
Expose555(),
|
|
33872
|
-
IsDefined160({ message: "El campo descripcion es obligatorio." }),
|
|
33873
|
-
IsString451()
|
|
33874
|
-
], MaterialeswinDTO.prototype, "descripcion", 2);
|
|
33875
33862
|
__decorateClass([
|
|
33876
33863
|
Expose555(),
|
|
33877
33864
|
IsDefined160({ message: "El campo cantidad es obligatorio." }),
|
|
@@ -33930,20 +33917,20 @@ var StateWin = /* @__PURE__ */ ((StateWin2) => {
|
|
|
33930
33917
|
})(StateWin || {});
|
|
33931
33918
|
|
|
33932
33919
|
// src/operativa/procesos/win_order_db/shared/index.ts
|
|
33933
|
-
import { Expose as Expose557, Type as
|
|
33920
|
+
import { Expose as Expose557, Type as Type361 } from "class-transformer";
|
|
33934
33921
|
import {
|
|
33935
33922
|
IsDefined as IsDefined162,
|
|
33936
33923
|
IsString as IsString453,
|
|
33937
|
-
ValidateNested as
|
|
33938
|
-
IsArray as
|
|
33924
|
+
ValidateNested as ValidateNested320,
|
|
33925
|
+
IsArray as IsArray188,
|
|
33939
33926
|
IsDate as IsDate136,
|
|
33940
|
-
IsEnum as
|
|
33927
|
+
IsEnum as IsEnum21,
|
|
33941
33928
|
IsNumber as IsNumber366
|
|
33942
33929
|
} from "class-validator";
|
|
33943
33930
|
import "reflect-metadata";
|
|
33944
33931
|
|
|
33945
33932
|
// src/operativa/procesos/win_order_db/shared/dto/index.ts
|
|
33946
|
-
import { Expose as Expose556, Transform as
|
|
33933
|
+
import { Expose as Expose556, Transform as Transform72 } from "class-transformer";
|
|
33947
33934
|
import {
|
|
33948
33935
|
IsDefined as IsDefined161,
|
|
33949
33936
|
IsString as IsString452,
|
|
@@ -34037,7 +34024,7 @@ var MaterialeswinDBDTO = class {
|
|
|
34037
34024
|
__decorateClass([
|
|
34038
34025
|
Expose556(),
|
|
34039
34026
|
IsDefined161({ message: "El campo key es obligatorio." }),
|
|
34040
|
-
|
|
34027
|
+
Transform72(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
34041
34028
|
IsString452()
|
|
34042
34029
|
], MaterialeswinDBDTO.prototype, "key", 2);
|
|
34043
34030
|
__decorateClass([
|
|
@@ -34193,8 +34180,8 @@ __decorateClass([
|
|
|
34193
34180
|
__decorateClass([
|
|
34194
34181
|
Expose557(),
|
|
34195
34182
|
IsDefined162({ message: "El campo direccion_cliente es obligatorio." }),
|
|
34196
|
-
|
|
34197
|
-
|
|
34183
|
+
ValidateNested320(),
|
|
34184
|
+
Type361(() => UbicacionwinDBDTO)
|
|
34198
34185
|
], Peru9112WinENTITYDB.prototype, "direccion_cliente", 2);
|
|
34199
34186
|
__decorateClass([
|
|
34200
34187
|
Expose557(),
|
|
@@ -34214,7 +34201,7 @@ __decorateClass([
|
|
|
34214
34201
|
__decorateClass([
|
|
34215
34202
|
Expose557(),
|
|
34216
34203
|
IsDefined162({ message: "El campo estado es obligatorio." }),
|
|
34217
|
-
|
|
34204
|
+
IsEnum21(StateWin, { message: "El campo Estado no es v\xE1lido" })
|
|
34218
34205
|
], Peru9112WinENTITYDB.prototype, "estado", 2);
|
|
34219
34206
|
__decorateClass([
|
|
34220
34207
|
Expose557(),
|
|
@@ -34259,16 +34246,16 @@ __decorateClass([
|
|
|
34259
34246
|
__decorateClass([
|
|
34260
34247
|
Expose557(),
|
|
34261
34248
|
IsDefined162({ message: "El campo historial_estados es obligatorio." }),
|
|
34262
|
-
|
|
34263
|
-
|
|
34264
|
-
|
|
34249
|
+
IsArray188(),
|
|
34250
|
+
ValidateNested320({ each: true }),
|
|
34251
|
+
Type361(() => HistorialEstadoswinDBDTO)
|
|
34265
34252
|
], Peru9112WinENTITYDB.prototype, "historial_estados", 2);
|
|
34266
34253
|
__decorateClass([
|
|
34267
34254
|
Expose557(),
|
|
34268
34255
|
IsDefined162({ message: "El campo inventory es obligatorio." }),
|
|
34269
|
-
|
|
34270
|
-
|
|
34271
|
-
|
|
34256
|
+
IsArray188(),
|
|
34257
|
+
ValidateNested320({ each: true }),
|
|
34258
|
+
Type361(() => MaterialeswinDBDTO)
|
|
34272
34259
|
], Peru9112WinENTITYDB.prototype, "inventory", 2);
|
|
34273
34260
|
__decorateClass([
|
|
34274
34261
|
Expose557(),
|
|
@@ -34288,8 +34275,8 @@ __decorateClass([
|
|
|
34288
34275
|
__decorateClass([
|
|
34289
34276
|
Expose557(),
|
|
34290
34277
|
IsDefined162({ message: "El campo EECC es obligatorio." }),
|
|
34291
|
-
|
|
34292
|
-
|
|
34278
|
+
ValidateNested320(),
|
|
34279
|
+
Type361(() => EECCDBWINDTO)
|
|
34293
34280
|
], Peru9112WinENTITYDB.prototype, "EECC", 2);
|
|
34294
34281
|
|
|
34295
34282
|
// src/operativa/procesos/win_order/shared/index.ts
|
|
@@ -34378,8 +34365,8 @@ __decorateClass([
|
|
|
34378
34365
|
__decorateClass([
|
|
34379
34366
|
Expose558({ name: "Direcci\xF3n Cliente" }),
|
|
34380
34367
|
IsDefined163({ message: "El campo direccion_cliente es obligatorio." }),
|
|
34381
|
-
|
|
34382
|
-
|
|
34368
|
+
ValidateNested321(),
|
|
34369
|
+
Type362(() => UbicacionwinDTO)
|
|
34383
34370
|
], Peru9112WinENTITY.prototype, "direccion_cliente", 2);
|
|
34384
34371
|
__decorateClass([
|
|
34385
34372
|
Expose558({ name: "Motivo Regesti\xF3n" }),
|
|
@@ -34399,13 +34386,13 @@ __decorateClass([
|
|
|
34399
34386
|
__decorateClass([
|
|
34400
34387
|
Expose558({ name: "Estado" }),
|
|
34401
34388
|
IsDefined163({ message: "El campo Estado actividad es obligatorio." }),
|
|
34402
|
-
|
|
34389
|
+
IsEnum22(StateWin, { message: "El campo Estado no es v\xE1lido" })
|
|
34403
34390
|
], Peru9112WinENTITY.prototype, "estado", 2);
|
|
34404
34391
|
__decorateClass([
|
|
34405
34392
|
Expose558({ name: "Estado Interno" }),
|
|
34406
|
-
|
|
34393
|
+
Transform73(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
34407
34394
|
IsDefined163({ message: "El campo estado interno es obligatorio." }),
|
|
34408
|
-
|
|
34395
|
+
IsEnum22(StateInternalOrder, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrder).join(", ")}.` })
|
|
34409
34396
|
], Peru9112WinENTITY.prototype, "estado_interno", 2);
|
|
34410
34397
|
__decorateClass([
|
|
34411
34398
|
Expose558({ name: "Fecha Estado" }),
|
|
@@ -34450,16 +34437,16 @@ __decorateClass([
|
|
|
34450
34437
|
__decorateClass([
|
|
34451
34438
|
Expose558({ name: "Historial de Estados" }),
|
|
34452
34439
|
IsDefined163({ message: "El campo Historial de Estados es obligatorio." }),
|
|
34453
|
-
|
|
34454
|
-
|
|
34455
|
-
|
|
34440
|
+
IsArray189(),
|
|
34441
|
+
ValidateNested321({ each: true }),
|
|
34442
|
+
Type362(() => HistorialEstadoswinDTO)
|
|
34456
34443
|
], Peru9112WinENTITY.prototype, "historial_estados", 2);
|
|
34457
34444
|
__decorateClass([
|
|
34458
34445
|
Expose558({ name: "Inventory" }),
|
|
34459
34446
|
IsDefined163({ message: "El campo Inventory es obligatorio." }),
|
|
34460
|
-
|
|
34461
|
-
|
|
34462
|
-
|
|
34447
|
+
IsArray189(),
|
|
34448
|
+
ValidateNested321({ each: true }),
|
|
34449
|
+
Type362(() => MaterialeswinDTO)
|
|
34463
34450
|
], Peru9112WinENTITY.prototype, "inventory", 2);
|
|
34464
34451
|
__decorateClass([
|
|
34465
34452
|
Expose558({ name: "PB" }),
|
|
@@ -34479,26 +34466,26 @@ __decorateClass([
|
|
|
34479
34466
|
__decorateClass([
|
|
34480
34467
|
Expose558({ name: "EECC" }),
|
|
34481
34468
|
IsDefined163({ message: "El campo EECC es obligatorio." }),
|
|
34482
|
-
|
|
34483
|
-
|
|
34469
|
+
ValidateNested321(),
|
|
34470
|
+
Type362(() => EECCDBWINDTO)
|
|
34484
34471
|
], Peru9112WinENTITY.prototype, "EECC", 2);
|
|
34485
34472
|
|
|
34486
34473
|
// src/operativa/procesos/fibramas_order/shared/index.ts
|
|
34487
|
-
import { Expose as Expose562, Transform as
|
|
34474
|
+
import { Expose as Expose562, Transform as Transform75, Type as Type365 } from "class-transformer";
|
|
34488
34475
|
import {
|
|
34489
34476
|
IsDefined as IsDefined167,
|
|
34490
34477
|
IsString as IsString458,
|
|
34491
34478
|
IsNumber as IsNumber371,
|
|
34492
|
-
ValidateNested as
|
|
34493
|
-
IsArray as
|
|
34494
|
-
IsDate as
|
|
34495
|
-
IsEnum as
|
|
34479
|
+
ValidateNested as ValidateNested323,
|
|
34480
|
+
IsArray as IsArray191,
|
|
34481
|
+
IsDate as IsDate139,
|
|
34482
|
+
IsEnum as IsEnum24,
|
|
34496
34483
|
IsUUID as IsUUID7
|
|
34497
34484
|
} from "class-validator";
|
|
34498
34485
|
import "reflect-metadata";
|
|
34499
34486
|
|
|
34500
34487
|
// src/operativa/procesos/fibramas_order/shared/dto/index.ts
|
|
34501
|
-
import { Expose as Expose559
|
|
34488
|
+
import { Expose as Expose559 } from "class-transformer";
|
|
34502
34489
|
import {
|
|
34503
34490
|
IsDefined as IsDefined164,
|
|
34504
34491
|
IsString as IsString455,
|
|
@@ -34506,30 +34493,17 @@ import {
|
|
|
34506
34493
|
} from "class-validator";
|
|
34507
34494
|
import "reflect-metadata";
|
|
34508
34495
|
var MaterialesFibramasDTO = class {
|
|
34509
|
-
key = "";
|
|
34510
34496
|
codigo = "";
|
|
34511
|
-
descripcion = "";
|
|
34512
34497
|
cantidad = 0;
|
|
34513
34498
|
invsn = "";
|
|
34514
34499
|
invpool = "";
|
|
34515
34500
|
ID_StockPersonal = 0;
|
|
34516
34501
|
};
|
|
34517
|
-
__decorateClass([
|
|
34518
|
-
Expose559(),
|
|
34519
|
-
IsDefined164({ message: "El campo key es obligatorio." }),
|
|
34520
|
-
Transform75(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
34521
|
-
IsString455()
|
|
34522
|
-
], MaterialesFibramasDTO.prototype, "key", 2);
|
|
34523
34502
|
__decorateClass([
|
|
34524
34503
|
Expose559(),
|
|
34525
34504
|
IsDefined164({ message: "El campo codigo es obligatorio." }),
|
|
34526
34505
|
IsString455()
|
|
34527
34506
|
], MaterialesFibramasDTO.prototype, "codigo", 2);
|
|
34528
|
-
__decorateClass([
|
|
34529
|
-
Expose559(),
|
|
34530
|
-
IsDefined164({ message: "El campo descripcion es obligatorio." }),
|
|
34531
|
-
IsString455()
|
|
34532
|
-
], MaterialesFibramasDTO.prototype, "descripcion", 2);
|
|
34533
34507
|
__decorateClass([
|
|
34534
34508
|
Expose559(),
|
|
34535
34509
|
IsDefined164({ message: "El campo cantidad es obligatorio." }),
|
|
@@ -34562,20 +34536,20 @@ var StateServiceFibramas = /* @__PURE__ */ ((StateServiceFibramas2) => {
|
|
|
34562
34536
|
})(StateServiceFibramas || {});
|
|
34563
34537
|
|
|
34564
34538
|
// src/operativa/procesos/fibramas_order_db/shared/index.ts
|
|
34565
|
-
import { Expose as Expose561, Type as
|
|
34539
|
+
import { Expose as Expose561, Type as Type364 } from "class-transformer";
|
|
34566
34540
|
import {
|
|
34567
34541
|
IsDefined as IsDefined166,
|
|
34568
34542
|
IsString as IsString457,
|
|
34569
34543
|
IsNumber as IsNumber370,
|
|
34570
|
-
ValidateNested as
|
|
34571
|
-
IsArray as
|
|
34572
|
-
IsDate as
|
|
34573
|
-
IsEnum as
|
|
34544
|
+
ValidateNested as ValidateNested322,
|
|
34545
|
+
IsArray as IsArray190,
|
|
34546
|
+
IsDate as IsDate138,
|
|
34547
|
+
IsEnum as IsEnum23
|
|
34574
34548
|
} from "class-validator";
|
|
34575
34549
|
import "reflect-metadata";
|
|
34576
34550
|
|
|
34577
34551
|
// src/operativa/procesos/fibramas_order_db/shared/dto/index.ts
|
|
34578
|
-
import { Expose as Expose560, Transform as
|
|
34552
|
+
import { Expose as Expose560, Transform as Transform74 } from "class-transformer";
|
|
34579
34553
|
import {
|
|
34580
34554
|
IsDefined as IsDefined165,
|
|
34581
34555
|
IsString as IsString456,
|
|
@@ -34595,7 +34569,7 @@ var MaterialesFibramasDBDTO = class {
|
|
|
34595
34569
|
__decorateClass([
|
|
34596
34570
|
Expose560(),
|
|
34597
34571
|
IsDefined165({ message: "El campo key es obligatorio." }),
|
|
34598
|
-
|
|
34572
|
+
Transform74(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
34599
34573
|
IsString456()
|
|
34600
34574
|
], MaterialesFibramasDBDTO.prototype, "key", 2);
|
|
34601
34575
|
__decorateClass([
|
|
@@ -34715,7 +34689,7 @@ __decorateClass([
|
|
|
34715
34689
|
__decorateClass([
|
|
34716
34690
|
Expose561(),
|
|
34717
34691
|
IsDefined166({ message: "El campo estado_del_servicio es obligatorio." }),
|
|
34718
|
-
|
|
34692
|
+
IsEnum23(StateServiceFibramas, { message: "El campo ESTADO DEL SERVICIO no es v\xE1lido" })
|
|
34719
34693
|
], Peru9112FibramasENTITYDB.prototype, "estado_del_servicio", 2);
|
|
34720
34694
|
__decorateClass([
|
|
34721
34695
|
Expose561(),
|
|
@@ -34770,7 +34744,7 @@ __decorateClass([
|
|
|
34770
34744
|
__decorateClass([
|
|
34771
34745
|
Expose561(),
|
|
34772
34746
|
IsDefined166({ message: "El campo fecha_recepcion es obligatorio." }),
|
|
34773
|
-
|
|
34747
|
+
IsDate138({ message: "debe ser una fecha" })
|
|
34774
34748
|
], Peru9112FibramasENTITYDB.prototype, "fecha_recepcion", 2);
|
|
34775
34749
|
__decorateClass([
|
|
34776
34750
|
Expose561(),
|
|
@@ -34780,7 +34754,7 @@ __decorateClass([
|
|
|
34780
34754
|
__decorateClass([
|
|
34781
34755
|
Expose561(),
|
|
34782
34756
|
IsDefined166({ message: "El campo fecha_atencion es obligatorio." }),
|
|
34783
|
-
|
|
34757
|
+
IsDate138({ message: "debe ser una fecha" })
|
|
34784
34758
|
], Peru9112FibramasENTITYDB.prototype, "fecha_atencion", 2);
|
|
34785
34759
|
__decorateClass([
|
|
34786
34760
|
Expose561(),
|
|
@@ -34795,14 +34769,14 @@ __decorateClass([
|
|
|
34795
34769
|
__decorateClass([
|
|
34796
34770
|
Expose561(),
|
|
34797
34771
|
IsDefined166({ message: "El campo estado es obligatorio." }),
|
|
34798
|
-
|
|
34772
|
+
IsEnum23(StateFibramas, { message: "El campo ESTADO OS no es v\xE1lido" })
|
|
34799
34773
|
], Peru9112FibramasENTITYDB.prototype, "estado", 2);
|
|
34800
34774
|
__decorateClass([
|
|
34801
34775
|
Expose561(),
|
|
34802
34776
|
IsDefined166({ message: "El campo Inventory es obligatorio." }),
|
|
34803
|
-
|
|
34804
|
-
|
|
34805
|
-
|
|
34777
|
+
IsArray190(),
|
|
34778
|
+
ValidateNested322({ each: true }),
|
|
34779
|
+
Type364(() => MaterialesFibramasDBDTO)
|
|
34806
34780
|
], Peru9112FibramasENTITYDB.prototype, "inventory", 2);
|
|
34807
34781
|
__decorateClass([
|
|
34808
34782
|
Expose561(),
|
|
@@ -34822,8 +34796,8 @@ __decorateClass([
|
|
|
34822
34796
|
__decorateClass([
|
|
34823
34797
|
Expose561(),
|
|
34824
34798
|
IsDefined166({ message: "El campo EECC es obligatorio." }),
|
|
34825
|
-
|
|
34826
|
-
|
|
34799
|
+
ValidateNested322(),
|
|
34800
|
+
Type364(() => EECCFibramasDBDTO)
|
|
34827
34801
|
], Peru9112FibramasENTITYDB.prototype, "EECC", 2);
|
|
34828
34802
|
|
|
34829
34803
|
// src/operativa/procesos/fibramas_order/shared/index.ts
|
|
@@ -34897,13 +34871,13 @@ __decorateClass([
|
|
|
34897
34871
|
__decorateClass([
|
|
34898
34872
|
Expose562({ name: "ESTADO DEL SERVICIO" }),
|
|
34899
34873
|
IsDefined167({ message: "El campo ESTADO DEL SERVICIO es obligatorio." }),
|
|
34900
|
-
|
|
34874
|
+
IsEnum24(StateServiceFibramas, { message: "El campo ESTADO DEL SERVICIO no es v\xE1lido" })
|
|
34901
34875
|
], Peru9112FibramasENTITY.prototype, "estado_del_servicio", 2);
|
|
34902
34876
|
__decorateClass([
|
|
34903
34877
|
Expose562({ name: "Estado Interno" }),
|
|
34904
|
-
|
|
34878
|
+
Transform75(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
34905
34879
|
IsDefined167({ message: "El campo estado interno es obligatorio." }),
|
|
34906
|
-
|
|
34880
|
+
IsEnum24(StateInternalOrder, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrder).join(", ")}.` })
|
|
34907
34881
|
], Peru9112FibramasENTITY.prototype, "estado_interno", 2);
|
|
34908
34882
|
__decorateClass([
|
|
34909
34883
|
Expose562({ name: "TARIFA DE SERVICIO" }),
|
|
@@ -34958,7 +34932,7 @@ __decorateClass([
|
|
|
34958
34932
|
__decorateClass([
|
|
34959
34933
|
Expose562({ name: "F. RECEP." }),
|
|
34960
34934
|
IsDefined167({ message: "El campo F. RECEP. es obligatorio." }),
|
|
34961
|
-
|
|
34935
|
+
IsDate139({ message: "debe ser una fecha" })
|
|
34962
34936
|
], Peru9112FibramasENTITY.prototype, "fecha_recepcion", 2);
|
|
34963
34937
|
__decorateClass([
|
|
34964
34938
|
Expose562({ name: "H. RECEP." }),
|
|
@@ -34968,7 +34942,7 @@ __decorateClass([
|
|
|
34968
34942
|
__decorateClass([
|
|
34969
34943
|
Expose562({ name: "F. ATENC." }),
|
|
34970
34944
|
IsDefined167({ message: "El campo F. ATENC. es obligatorio." }),
|
|
34971
|
-
|
|
34945
|
+
IsDate139({ message: "debe ser una fecha" })
|
|
34972
34946
|
], Peru9112FibramasENTITY.prototype, "fecha_atencion", 2);
|
|
34973
34947
|
__decorateClass([
|
|
34974
34948
|
Expose562({ name: "H. INI" }),
|
|
@@ -34983,14 +34957,14 @@ __decorateClass([
|
|
|
34983
34957
|
__decorateClass([
|
|
34984
34958
|
Expose562({ name: "ESTADO OS" }),
|
|
34985
34959
|
IsDefined167({ message: "El campo ESTADO OS es obligatorio." }),
|
|
34986
|
-
|
|
34960
|
+
IsEnum24(StateFibramas, { message: "El campo ESTADO OS no es v\xE1lido" })
|
|
34987
34961
|
], Peru9112FibramasENTITY.prototype, "estado", 2);
|
|
34988
34962
|
__decorateClass([
|
|
34989
34963
|
Expose562({ name: "Inventory" }),
|
|
34990
34964
|
IsDefined167({ message: "El campo Inventory es obligatorio." }),
|
|
34991
|
-
|
|
34992
|
-
|
|
34993
|
-
|
|
34965
|
+
IsArray191(),
|
|
34966
|
+
ValidateNested323({ each: true }),
|
|
34967
|
+
Type365(() => MaterialesFibramasDTO)
|
|
34994
34968
|
], Peru9112FibramasENTITY.prototype, "inventory", 2);
|
|
34995
34969
|
__decorateClass([
|
|
34996
34970
|
Expose562({ name: "PB" }),
|
|
@@ -35010,22 +34984,22 @@ __decorateClass([
|
|
|
35010
34984
|
__decorateClass([
|
|
35011
34985
|
Expose562({ name: "EECC" }),
|
|
35012
34986
|
IsDefined167({ message: "El campo EECC es obligatorio." }),
|
|
35013
|
-
|
|
35014
|
-
|
|
34987
|
+
ValidateNested323(),
|
|
34988
|
+
Type365(() => EECCFibramasDBDTO)
|
|
35015
34989
|
], Peru9112FibramasENTITY.prototype, "EECC", 2);
|
|
35016
34990
|
|
|
35017
34991
|
// src/operativa/procesos/order stock/shared/index.ts
|
|
35018
|
-
import { Expose as Expose563, Type as
|
|
34992
|
+
import { Expose as Expose563, Type as Type366 } from "class-transformer";
|
|
35019
34993
|
import {
|
|
35020
|
-
IsArray as
|
|
34994
|
+
IsArray as IsArray192,
|
|
35021
34995
|
IsDefined as IsDefined168,
|
|
35022
|
-
IsEnum as
|
|
34996
|
+
IsEnum as IsEnum25,
|
|
35023
34997
|
IsNotEmpty as IsNotEmpty378,
|
|
35024
34998
|
IsNumber as IsNumber372,
|
|
35025
34999
|
IsString as IsString459,
|
|
35026
35000
|
IsUUID as IsUUID8,
|
|
35027
35001
|
MaxLength as MaxLength3,
|
|
35028
|
-
ValidateNested as
|
|
35002
|
+
ValidateNested as ValidateNested324
|
|
35029
35003
|
} from "class-validator";
|
|
35030
35004
|
var OrderStockENTITY = class {
|
|
35031
35005
|
_id;
|
|
@@ -35038,6 +35012,7 @@ var OrderStockENTITY = class {
|
|
|
35038
35012
|
stock_quantity_employee = [];
|
|
35039
35013
|
state_consumption;
|
|
35040
35014
|
state_replacement;
|
|
35015
|
+
ID_StockPersonal = 0;
|
|
35041
35016
|
};
|
|
35042
35017
|
__decorateClass([
|
|
35043
35018
|
IsDefined168({ message: "El campo _id es obligatorio." }),
|
|
@@ -35078,25 +35053,30 @@ __decorateClass([
|
|
|
35078
35053
|
], OrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
35079
35054
|
__decorateClass([
|
|
35080
35055
|
IsDefined168({ message: "El campo stock_quantity_employee es obligatorio" }),
|
|
35081
|
-
|
|
35082
|
-
|
|
35083
|
-
|
|
35056
|
+
IsArray192({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
35057
|
+
ValidateNested324({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
35058
|
+
Type366(() => StockQuantityEmployeeDTO),
|
|
35084
35059
|
Expose563()
|
|
35085
35060
|
], OrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
35086
35061
|
__decorateClass([
|
|
35087
35062
|
IsDefined168({ message: "El campo estado consumo es obligatorio." }),
|
|
35088
35063
|
Expose563(),
|
|
35089
|
-
|
|
35064
|
+
IsEnum25(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
35090
35065
|
], OrderStockENTITY.prototype, "state_consumption", 2);
|
|
35091
35066
|
__decorateClass([
|
|
35092
35067
|
IsDefined168({ message: "El campo estado reposicion es obligatorio." }),
|
|
35093
35068
|
Expose563(),
|
|
35094
|
-
|
|
35069
|
+
IsEnum25(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
35095
35070
|
], OrderStockENTITY.prototype, "state_replacement", 2);
|
|
35071
|
+
__decorateClass([
|
|
35072
|
+
Expose563(),
|
|
35073
|
+
IsDefined168({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
35074
|
+
IsNumber372()
|
|
35075
|
+
], OrderStockENTITY.prototype, "ID_StockPersonal", 2);
|
|
35096
35076
|
|
|
35097
35077
|
// src/operativa/procesos/TOA orden liquidacion/shared/index.ts
|
|
35098
|
-
import { Expose as Expose564, Type as
|
|
35099
|
-
import { IsArray as
|
|
35078
|
+
import { Expose as Expose564, Type as Type367 } from "class-transformer";
|
|
35079
|
+
import { IsArray as IsArray193, IsDefined as IsDefined169, IsEnum as IsEnum26, IsNumber as IsNumber373, IsObject as IsObject10, IsString as IsString460, IsUUID as IsUUID9, ValidateNested as ValidateNested325 } from "class-validator";
|
|
35100
35080
|
var TOAOrdenLiquidacionENTITY = class {
|
|
35101
35081
|
_id;
|
|
35102
35082
|
tecnico;
|
|
@@ -35127,129 +35107,129 @@ __decorateClass([
|
|
|
35127
35107
|
], TOAOrdenLiquidacionENTITY.prototype, "_id", 2);
|
|
35128
35108
|
__decorateClass([
|
|
35129
35109
|
Expose564({ name: "T\xE9cnico" }),
|
|
35130
|
-
|
|
35110
|
+
Type367(() => String),
|
|
35131
35111
|
IsDefined169({ message: "El campo T\xE9cnico es obligatorio." }),
|
|
35132
35112
|
IsString460()
|
|
35133
35113
|
], TOAOrdenLiquidacionENTITY.prototype, "tecnico", 2);
|
|
35134
35114
|
__decorateClass([
|
|
35135
35115
|
Expose564({ name: "ID Recurso" }),
|
|
35136
|
-
|
|
35116
|
+
Type367(() => String),
|
|
35137
35117
|
IsDefined169({ message: "El campo ID Recurso es obligatorio." }),
|
|
35138
35118
|
IsString460()
|
|
35139
35119
|
], TOAOrdenLiquidacionENTITY.prototype, "id_recurso", 2);
|
|
35140
35120
|
__decorateClass([
|
|
35141
35121
|
Expose564({ name: "N\xFAmero OT" }),
|
|
35142
|
-
|
|
35122
|
+
Type367(() => Number),
|
|
35143
35123
|
IsDefined169({ message: "El campo N\xFAmero OT es obligatorio." }),
|
|
35144
35124
|
IsNumber373()
|
|
35145
35125
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_ot", 2);
|
|
35146
35126
|
__decorateClass([
|
|
35147
35127
|
Expose564({ name: "Subtipo de Actividad" }),
|
|
35148
|
-
|
|
35128
|
+
Type367(() => String),
|
|
35149
35129
|
IsDefined169({ message: "El campo Subtipo de Actividad es obligatorio." }),
|
|
35150
35130
|
IsString460()
|
|
35151
35131
|
], TOAOrdenLiquidacionENTITY.prototype, "subtipo_de_actividad", 2);
|
|
35152
35132
|
__decorateClass([
|
|
35153
35133
|
Expose564({ name: "N\xFAmero de Petici\xF3n" }),
|
|
35154
|
-
|
|
35134
|
+
Type367(() => String),
|
|
35155
35135
|
IsDefined169({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
35156
35136
|
IsString460()
|
|
35157
35137
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_de_peticion", 2);
|
|
35158
35138
|
__decorateClass([
|
|
35159
35139
|
Expose564({ name: "Localidad" }),
|
|
35160
|
-
|
|
35140
|
+
Type367(() => String),
|
|
35161
35141
|
IsDefined169({ message: "El campo Localidad es obligatorio." }),
|
|
35162
35142
|
IsString460()
|
|
35163
35143
|
], TOAOrdenLiquidacionENTITY.prototype, "localidad", 2);
|
|
35164
35144
|
__decorateClass([
|
|
35165
35145
|
Expose564({ name: "Direcci\xF3n" }),
|
|
35166
|
-
|
|
35146
|
+
Type367(() => String),
|
|
35167
35147
|
IsDefined169({ message: "El campo Direcci\xF3n es obligatorio." }),
|
|
35168
35148
|
IsString460()
|
|
35169
35149
|
], TOAOrdenLiquidacionENTITY.prototype, "direccion", 2);
|
|
35170
35150
|
__decorateClass([
|
|
35171
35151
|
Expose564({ name: "Zona de Trabajo" }),
|
|
35172
|
-
|
|
35152
|
+
Type367(() => String),
|
|
35173
35153
|
IsDefined169({ message: "El campo Zona de Trabajo es obligatorio." }),
|
|
35174
35154
|
IsString460()
|
|
35175
35155
|
], TOAOrdenLiquidacionENTITY.prototype, "zona_de_trabajo", 2);
|
|
35176
35156
|
__decorateClass([
|
|
35177
35157
|
Expose564({ name: "Nombre Cliente" }),
|
|
35178
|
-
|
|
35158
|
+
Type367(() => String),
|
|
35179
35159
|
IsDefined169({ message: "El campo Nombre Cliente es obligatorio." }),
|
|
35180
35160
|
IsString460()
|
|
35181
35161
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_cliente", 2);
|
|
35182
35162
|
__decorateClass([
|
|
35183
35163
|
Expose564({ name: "Estado actividad" }),
|
|
35184
|
-
|
|
35164
|
+
Type367(() => String),
|
|
35185
35165
|
IsDefined169({ message: "El campo Estado actividad es obligatorio." }),
|
|
35186
35166
|
IsString460()
|
|
35187
35167
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_actividad", 2);
|
|
35188
35168
|
__decorateClass([
|
|
35189
35169
|
Expose564({ name: "Estado Interno" }),
|
|
35190
35170
|
IsDefined169({ message: "El campo estado interno es obligatorio." }),
|
|
35191
|
-
|
|
35171
|
+
IsEnum26(StateInternalOrderTOA, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrderTOA).join(", ")}.` })
|
|
35192
35172
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_interno", 2);
|
|
35193
35173
|
__decorateClass([
|
|
35194
35174
|
Expose564({ name: "C\xF3digo de Cliente" }),
|
|
35195
|
-
|
|
35175
|
+
Type367(() => Number),
|
|
35196
35176
|
IsDefined169({ message: "El campo C\xF3digo de Cliente es obligatorio." }),
|
|
35197
35177
|
IsNumber373()
|
|
35198
35178
|
], TOAOrdenLiquidacionENTITY.prototype, "codigo_de_cliente", 2);
|
|
35199
35179
|
__decorateClass([
|
|
35200
35180
|
Expose564({ name: "Actividad Gpon" }),
|
|
35201
|
-
|
|
35181
|
+
Type367(() => String),
|
|
35202
35182
|
IsDefined169({ message: "El campo Actividad Gpon es obligatorio." }),
|
|
35203
35183
|
IsString460()
|
|
35204
35184
|
], TOAOrdenLiquidacionENTITY.prototype, "actividad_gpon", 2);
|
|
35205
35185
|
__decorateClass([
|
|
35206
35186
|
Expose564({ name: "Nombre Distrito" }),
|
|
35207
|
-
|
|
35187
|
+
Type367(() => String),
|
|
35208
35188
|
IsDefined169({ message: "El campo Nombre Distrito es obligatorio." }),
|
|
35209
35189
|
IsString460()
|
|
35210
35190
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_distrito", 2);
|
|
35211
35191
|
__decorateClass([
|
|
35212
35192
|
Expose564({ name: "N\xFAmero Tel\xE9fono" }),
|
|
35213
|
-
|
|
35193
|
+
Type367(() => String),
|
|
35214
35194
|
IsDefined169({ message: "El campo N\xFAmero Tel\xE9fono es obligatorio." }),
|
|
35215
35195
|
IsString460()
|
|
35216
35196
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_telefono", 2);
|
|
35217
35197
|
__decorateClass([
|
|
35218
35198
|
Expose564({ name: "Segmento" }),
|
|
35219
35199
|
IsDefined169({ message: "El campo Segmento es obligatorio." }),
|
|
35220
|
-
|
|
35221
|
-
|
|
35222
|
-
|
|
35200
|
+
IsObject10(),
|
|
35201
|
+
ValidateNested325(),
|
|
35202
|
+
Type367(() => ToaSegmentoDTO)
|
|
35223
35203
|
], TOAOrdenLiquidacionENTITY.prototype, "segmento", 2);
|
|
35224
35204
|
__decorateClass([
|
|
35225
35205
|
Expose564({ name: "Nombre de Provincia" }),
|
|
35226
|
-
|
|
35206
|
+
Type367(() => String),
|
|
35227
35207
|
IsDefined169({ message: "El campo Nombre de Provincia es obligatorio." }),
|
|
35228
35208
|
IsString460()
|
|
35229
35209
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_de_provincia", 2);
|
|
35230
35210
|
__decorateClass([
|
|
35231
35211
|
Expose564({ name: "Departamento" }),
|
|
35232
|
-
|
|
35212
|
+
Type367(() => String),
|
|
35233
35213
|
IsDefined169({ message: "El campo Departamento es obligatorio." }),
|
|
35234
35214
|
IsString460()
|
|
35235
35215
|
], TOAOrdenLiquidacionENTITY.prototype, "departamento", 2);
|
|
35236
35216
|
__decorateClass([
|
|
35237
35217
|
Expose564({ name: "Reiterada TDI" }),
|
|
35238
|
-
|
|
35218
|
+
Type367(() => String),
|
|
35239
35219
|
IsDefined169({ message: "El campo Reiterada TDI es obligatorio." }),
|
|
35240
35220
|
IsString460()
|
|
35241
35221
|
], TOAOrdenLiquidacionENTITY.prototype, "reiterada_tdi", 2);
|
|
35242
35222
|
__decorateClass([
|
|
35243
35223
|
Expose564({ name: "Inventario" }),
|
|
35244
35224
|
IsDefined169({ message: "El campo inventario es obligatorio." }),
|
|
35245
|
-
|
|
35246
|
-
|
|
35247
|
-
|
|
35225
|
+
IsArray193(),
|
|
35226
|
+
ValidateNested325({ each: true }),
|
|
35227
|
+
Type367(() => MaterialestoaDTO)
|
|
35248
35228
|
], TOAOrdenLiquidacionENTITY.prototype, "inventario", 2);
|
|
35249
35229
|
|
|
35250
35230
|
// src/operativa/procesos/TOA orden liquidacion_db/shared/index.ts
|
|
35251
|
-
import { Expose as Expose565, Type as
|
|
35252
|
-
import { IsArray as
|
|
35231
|
+
import { Expose as Expose565, Type as Type368 } from "class-transformer";
|
|
35232
|
+
import { IsArray as IsArray194, IsDefined as IsDefined170, IsEnum as IsEnum27, IsNumber as IsNumber374, IsObject as IsObject11, IsString as IsString461, IsUUID as IsUUID10, ValidateNested as ValidateNested326 } from "class-validator";
|
|
35253
35233
|
var TOAOrdenLiquidacionENTITYDB = class {
|
|
35254
35234
|
_id = "";
|
|
35255
35235
|
tecnico = "";
|
|
@@ -35331,7 +35311,7 @@ __decorateClass([
|
|
|
35331
35311
|
__decorateClass([
|
|
35332
35312
|
Expose565(),
|
|
35333
35313
|
IsDefined170({ message: "El campo estado interno es obligatorio." }),
|
|
35334
|
-
|
|
35314
|
+
IsEnum27(StateInternalOrderTOA, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrderTOA).join(", ")}.` })
|
|
35335
35315
|
], TOAOrdenLiquidacionENTITYDB.prototype, "estado_interno", 2);
|
|
35336
35316
|
__decorateClass([
|
|
35337
35317
|
Expose565(),
|
|
@@ -35351,15 +35331,15 @@ __decorateClass([
|
|
|
35351
35331
|
__decorateClass([
|
|
35352
35332
|
Expose565(),
|
|
35353
35333
|
IsDefined170({ message: "El campo N\xFAmero Tel\xE9fono es obligatorio." }),
|
|
35354
|
-
|
|
35334
|
+
Type368(() => String),
|
|
35355
35335
|
IsString461()
|
|
35356
35336
|
], TOAOrdenLiquidacionENTITYDB.prototype, "numero_telefono", 2);
|
|
35357
35337
|
__decorateClass([
|
|
35358
35338
|
Expose565(),
|
|
35359
35339
|
IsDefined170({ message: "El campo Segmento es obligatorio." }),
|
|
35360
|
-
|
|
35361
|
-
|
|
35362
|
-
|
|
35340
|
+
IsObject11(),
|
|
35341
|
+
ValidateNested326(),
|
|
35342
|
+
Type368(() => ToaSegmentoDBDTO)
|
|
35363
35343
|
], TOAOrdenLiquidacionENTITYDB.prototype, "segmento", 2);
|
|
35364
35344
|
__decorateClass([
|
|
35365
35345
|
Expose565(),
|
|
@@ -35379,14 +35359,14 @@ __decorateClass([
|
|
|
35379
35359
|
__decorateClass([
|
|
35380
35360
|
Expose565(),
|
|
35381
35361
|
IsDefined170({ message: "El campo inventario es obligatorio." }),
|
|
35382
|
-
|
|
35383
|
-
|
|
35384
|
-
|
|
35362
|
+
IsArray194(),
|
|
35363
|
+
ValidateNested326({ each: true }),
|
|
35364
|
+
Type368(() => MaterialestoaDBDTO)
|
|
35385
35365
|
], TOAOrdenLiquidacionENTITYDB.prototype, "inventario", 2);
|
|
35386
35366
|
|
|
35387
35367
|
// src/operativa/procesos/TOA Claro order stock/shared/index.ts
|
|
35388
|
-
import { Expose as Expose566, Type as
|
|
35389
|
-
import { IsArray as
|
|
35368
|
+
import { Expose as Expose566, Type as Type369 } from "class-transformer";
|
|
35369
|
+
import { IsArray as IsArray195, IsDefined as IsDefined171, IsEnum as IsEnum28, IsNotEmpty as IsNotEmpty379, IsNumber as IsNumber375, IsString as IsString462, IsUUID as IsUUID11, MaxLength as MaxLength4, ValidateNested as ValidateNested327 } from "class-validator";
|
|
35390
35370
|
var TOAClaroOrderStockENTITY = class {
|
|
35391
35371
|
_id;
|
|
35392
35372
|
id_recurso;
|
|
@@ -35438,20 +35418,20 @@ __decorateClass([
|
|
|
35438
35418
|
], TOAClaroOrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
35439
35419
|
__decorateClass([
|
|
35440
35420
|
IsDefined171({ message: "El campo stock_quantity_employee es obligatorio" }),
|
|
35441
|
-
|
|
35442
|
-
|
|
35443
|
-
|
|
35421
|
+
IsArray195({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
35422
|
+
ValidateNested327({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
35423
|
+
Type369(() => StockQuantityEmployeeDTO),
|
|
35444
35424
|
Expose566()
|
|
35445
35425
|
], TOAClaroOrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
35446
35426
|
__decorateClass([
|
|
35447
35427
|
IsDefined171({ message: "El campo estado consumo es obligatorio." }),
|
|
35448
35428
|
Expose566(),
|
|
35449
|
-
|
|
35429
|
+
IsEnum28(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
35450
35430
|
], TOAClaroOrderStockENTITY.prototype, "state_consumption", 2);
|
|
35451
35431
|
__decorateClass([
|
|
35452
35432
|
IsDefined171({ message: "El campo estado reposicion es obligatorio." }),
|
|
35453
35433
|
Expose566(),
|
|
35454
|
-
|
|
35434
|
+
IsEnum28(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
35455
35435
|
], TOAClaroOrderStockENTITY.prototype, "state_replacement", 2);
|
|
35456
35436
|
|
|
35457
35437
|
// src/v2/dtos/CodigoNombre.ts
|
|
@@ -35481,8 +35461,8 @@ __decorateClass([
|
|
|
35481
35461
|
], CodigoNombreMinLengthDto.prototype, "nombre", 2);
|
|
35482
35462
|
|
|
35483
35463
|
// src/v2/entities/Delegacion.ts
|
|
35484
|
-
import { Expose as Expose569, Type as
|
|
35485
|
-
import { IsDefined as IsDefined174, IsObject as
|
|
35464
|
+
import { Expose as Expose569, Type as Type370 } from "class-transformer";
|
|
35465
|
+
import { IsDefined as IsDefined174, IsObject as IsObject12, IsString as IsString464, MinLength as MinLength48, ValidateNested as ValidateNested328 } from "class-validator";
|
|
35486
35466
|
|
|
35487
35467
|
// src/v2/entities/Base.ts
|
|
35488
35468
|
import { Expose as Expose568 } from "class-transformer";
|
|
@@ -35510,9 +35490,9 @@ var DelegacionEntity = class extends BaseEntity {
|
|
|
35510
35490
|
};
|
|
35511
35491
|
__decorateClass([
|
|
35512
35492
|
IsDefined174({ message: 'La propiedad "pais" es obligatoria.' }),
|
|
35513
|
-
|
|
35514
|
-
|
|
35515
|
-
|
|
35493
|
+
Type370(() => CodigoNombreMinLengthDto),
|
|
35494
|
+
IsObject12({ message: 'La propiedad "pais" debe ser un objeto v\xE1lido.' }),
|
|
35495
|
+
ValidateNested328({ message: 'La propiedad "pais" no es v\xE1lida.' }),
|
|
35516
35496
|
Expose569()
|
|
35517
35497
|
], DelegacionEntity.prototype, "pais", 2);
|
|
35518
35498
|
__decorateClass([
|