sigo-entities 1.2.90 → 1.2.92
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 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -9
- package/dist/index.mjs +25 -10
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -709,7 +709,6 @@ declare enum StateInventory {
|
|
|
709
709
|
|
|
710
710
|
declare enum StateInternalOrder {
|
|
711
711
|
PENDIENTE = "Pendiente",
|
|
712
|
-
REVISION = "Revisi\u00F3n",
|
|
713
712
|
FINALIZADA = "Finalizada"
|
|
714
713
|
}
|
|
715
714
|
|
|
@@ -6425,6 +6424,7 @@ declare class MaterialeswinDTO {
|
|
|
6425
6424
|
cantidad: number;
|
|
6426
6425
|
invsn: string;
|
|
6427
6426
|
invpool: string;
|
|
6427
|
+
ID_StockPersonal: number;
|
|
6428
6428
|
}
|
|
6429
6429
|
declare class HistorialEstadoswinDTO {
|
|
6430
6430
|
estado: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -709,7 +709,6 @@ declare enum StateInventory {
|
|
|
709
709
|
|
|
710
710
|
declare enum StateInternalOrder {
|
|
711
711
|
PENDIENTE = "Pendiente",
|
|
712
|
-
REVISION = "Revisi\u00F3n",
|
|
713
712
|
FINALIZADA = "Finalizada"
|
|
714
713
|
}
|
|
715
714
|
|
|
@@ -6425,6 +6424,7 @@ declare class MaterialeswinDTO {
|
|
|
6425
6424
|
cantidad: number;
|
|
6426
6425
|
invsn: string;
|
|
6427
6426
|
invpool: string;
|
|
6427
|
+
ID_StockPersonal: number;
|
|
6428
6428
|
}
|
|
6429
6429
|
declare class HistorialEstadoswinDTO {
|
|
6430
6430
|
estado: string;
|
package/dist/index.js
CHANGED
|
@@ -3968,7 +3968,6 @@ var StateInventory = /* @__PURE__ */ ((StateInventory2) => {
|
|
|
3968
3968
|
// src/shared/enums/StateInternalOrder.ts
|
|
3969
3969
|
var StateInternalOrder = /* @__PURE__ */ ((StateInternalOrder2) => {
|
|
3970
3970
|
StateInternalOrder2["PENDIENTE"] = "Pendiente";
|
|
3971
|
-
StateInternalOrder2["REVISION"] = "Revisi\xF3n";
|
|
3972
3971
|
StateInternalOrder2["FINALIZADA"] = "Finalizada";
|
|
3973
3972
|
return StateInternalOrder2;
|
|
3974
3973
|
})(StateInternalOrder || {});
|
|
@@ -34159,6 +34158,7 @@ var MaterialeswinDTO = class {
|
|
|
34159
34158
|
cantidad = 0;
|
|
34160
34159
|
invsn = "";
|
|
34161
34160
|
invpool = "";
|
|
34161
|
+
ID_StockPersonal = 0;
|
|
34162
34162
|
};
|
|
34163
34163
|
__decorateClass([
|
|
34164
34164
|
(0, import_class_transformer556.Expose)({ name: "code" }),
|
|
@@ -34185,6 +34185,11 @@ __decorateClass([
|
|
|
34185
34185
|
(0, import_class_validator557.IsDefined)({ message: "El campo invpool es obligatorio." }),
|
|
34186
34186
|
(0, import_class_validator557.IsString)()
|
|
34187
34187
|
], MaterialeswinDTO.prototype, "invpool", 2);
|
|
34188
|
+
__decorateClass([
|
|
34189
|
+
(0, import_class_transformer556.Expose)({ name: "ID_StockPersonal" }),
|
|
34190
|
+
(0, import_class_validator557.IsDefined)({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
34191
|
+
(0, import_class_validator557.IsNumber)()
|
|
34192
|
+
], MaterialeswinDTO.prototype, "ID_StockPersonal", 2);
|
|
34188
34193
|
var HistorialEstadoswinDTO = class {
|
|
34189
34194
|
estado = "";
|
|
34190
34195
|
usuario = "";
|
|
@@ -34767,7 +34772,7 @@ var WINOrderStockENTITY = class {
|
|
|
34767
34772
|
__decorateClass([
|
|
34768
34773
|
(0, import_class_validator561.IsDefined)({ message: "El campo _id es obligatorio." }),
|
|
34769
34774
|
(0, import_class_validator561.IsUUID)("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34770
|
-
(0, import_class_transformer560.Expose)(
|
|
34775
|
+
(0, import_class_transformer560.Expose)()
|
|
34771
34776
|
], WINOrderStockENTITY.prototype, "_id", 2);
|
|
34772
34777
|
__decorateClass([
|
|
34773
34778
|
(0, import_class_transformer560.Expose)({ name: "id_recurso" }),
|
|
@@ -34779,20 +34784,20 @@ __decorateClass([
|
|
|
34779
34784
|
(0, import_class_validator561.IsString)({ message: "El campo itemCode debe ser una cadena de texto v\xE1lida" }),
|
|
34780
34785
|
(0, import_class_validator561.MaxLength)(50, { message: "El campo itemCode no puede superar los 50 caracteres" }),
|
|
34781
34786
|
(0, import_class_validator561.IsNotEmpty)({ message: "El campo itemCode no puede estar vac\xEDo" }),
|
|
34782
|
-
(0, import_class_transformer560.Expose)(
|
|
34787
|
+
(0, import_class_transformer560.Expose)()
|
|
34783
34788
|
], WINOrderStockENTITY.prototype, "itemCode", 2);
|
|
34784
34789
|
__decorateClass([
|
|
34785
34790
|
(0, import_class_validator561.IsDefined)({ message: "El campo serial es obligatorio." }),
|
|
34786
34791
|
(0, import_class_validator561.IsString)({ message: "El campo serial debe ser una cadena de texto" }),
|
|
34787
|
-
(0, import_class_transformer560.Expose)(
|
|
34792
|
+
(0, import_class_transformer560.Expose)()
|
|
34788
34793
|
], WINOrderStockENTITY.prototype, "serial", 2);
|
|
34789
34794
|
__decorateClass([
|
|
34790
|
-
(0, import_class_transformer560.Expose)(
|
|
34795
|
+
(0, import_class_transformer560.Expose)(),
|
|
34791
34796
|
(0, import_class_validator561.IsDefined)({ message: "El campo quantity es obligatorio." }),
|
|
34792
34797
|
(0, import_class_validator561.IsNumber)()
|
|
34793
34798
|
], WINOrderStockENTITY.prototype, "quantity", 2);
|
|
34794
34799
|
__decorateClass([
|
|
34795
|
-
(0, import_class_transformer560.Expose)(
|
|
34800
|
+
(0, import_class_transformer560.Expose)(),
|
|
34796
34801
|
(0, import_class_validator561.IsDefined)({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
34797
34802
|
(0, import_class_validator561.IsString)()
|
|
34798
34803
|
], WINOrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
@@ -34801,16 +34806,16 @@ __decorateClass([
|
|
|
34801
34806
|
(0, import_class_validator561.IsArray)({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
34802
34807
|
(0, import_class_validator561.ValidateNested)({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
34803
34808
|
(0, import_class_transformer560.Type)(() => StockQuantityEmployeeDTO),
|
|
34804
|
-
(0, import_class_transformer560.Expose)(
|
|
34809
|
+
(0, import_class_transformer560.Expose)()
|
|
34805
34810
|
], WINOrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
34806
34811
|
__decorateClass([
|
|
34807
34812
|
(0, import_class_validator561.IsDefined)({ message: "El campo estado consumo es obligatorio." }),
|
|
34808
|
-
(0, import_class_transformer560.Expose)(
|
|
34813
|
+
(0, import_class_transformer560.Expose)(),
|
|
34809
34814
|
(0, import_class_validator561.IsEnum)(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
34810
34815
|
], WINOrderStockENTITY.prototype, "state_consumption", 2);
|
|
34811
34816
|
__decorateClass([
|
|
34812
34817
|
(0, import_class_validator561.IsDefined)({ message: "El campo estado reposicion es obligatorio." }),
|
|
34813
|
-
(0, import_class_transformer560.Expose)(
|
|
34818
|
+
(0, import_class_transformer560.Expose)(),
|
|
34814
34819
|
(0, import_class_validator561.IsEnum)(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
34815
34820
|
], WINOrderStockENTITY.prototype, "state_replacement", 2);
|
|
34816
34821
|
|
package/dist/index.mjs
CHANGED
|
@@ -3383,7 +3383,6 @@ var StateInventory = /* @__PURE__ */ ((StateInventory2) => {
|
|
|
3383
3383
|
// src/shared/enums/StateInternalOrder.ts
|
|
3384
3384
|
var StateInternalOrder = /* @__PURE__ */ ((StateInternalOrder2) => {
|
|
3385
3385
|
StateInternalOrder2["PENDIENTE"] = "Pendiente";
|
|
3386
|
-
StateInternalOrder2["REVISION"] = "Revisi\xF3n";
|
|
3387
3386
|
StateInternalOrder2["FINALIZADA"] = "Finalizada";
|
|
3388
3387
|
return StateInternalOrder2;
|
|
3389
3388
|
})(StateInternalOrder || {});
|
|
@@ -33767,6 +33766,7 @@ var MaterialeswinDTO = class {
|
|
|
33767
33766
|
cantidad = 0;
|
|
33768
33767
|
invsn = "";
|
|
33769
33768
|
invpool = "";
|
|
33769
|
+
ID_StockPersonal = 0;
|
|
33770
33770
|
};
|
|
33771
33771
|
__decorateClass([
|
|
33772
33772
|
Expose554({ name: "code" }),
|
|
@@ -33793,6 +33793,11 @@ __decorateClass([
|
|
|
33793
33793
|
IsDefined161({ message: "El campo invpool es obligatorio." }),
|
|
33794
33794
|
IsString449()
|
|
33795
33795
|
], MaterialeswinDTO.prototype, "invpool", 2);
|
|
33796
|
+
__decorateClass([
|
|
33797
|
+
Expose554({ name: "ID_StockPersonal" }),
|
|
33798
|
+
IsDefined161({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
33799
|
+
IsNumber365()
|
|
33800
|
+
], MaterialeswinDTO.prototype, "ID_StockPersonal", 2);
|
|
33796
33801
|
var HistorialEstadoswinDTO = class {
|
|
33797
33802
|
estado = "";
|
|
33798
33803
|
usuario = "";
|
|
@@ -34373,7 +34378,17 @@ __decorateClass([
|
|
|
34373
34378
|
|
|
34374
34379
|
// src/operativa/procesos/WIN order stock/shared/index.ts
|
|
34375
34380
|
import { Expose as Expose558, Type as Type363 } from "class-transformer";
|
|
34376
|
-
import {
|
|
34381
|
+
import {
|
|
34382
|
+
IsArray as IsArray187,
|
|
34383
|
+
IsDefined as IsDefined165,
|
|
34384
|
+
IsEnum as IsEnum23,
|
|
34385
|
+
IsNotEmpty as IsNotEmpty376,
|
|
34386
|
+
IsNumber as IsNumber369,
|
|
34387
|
+
IsString as IsString453,
|
|
34388
|
+
IsUUID as IsUUID6,
|
|
34389
|
+
MaxLength as MaxLength3,
|
|
34390
|
+
ValidateNested as ValidateNested322
|
|
34391
|
+
} from "class-validator";
|
|
34377
34392
|
var WINOrderStockENTITY = class {
|
|
34378
34393
|
_id;
|
|
34379
34394
|
id_recurso;
|
|
@@ -34388,7 +34403,7 @@ var WINOrderStockENTITY = class {
|
|
|
34388
34403
|
__decorateClass([
|
|
34389
34404
|
IsDefined165({ message: "El campo _id es obligatorio." }),
|
|
34390
34405
|
IsUUID6("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34391
|
-
Expose558(
|
|
34406
|
+
Expose558()
|
|
34392
34407
|
], WINOrderStockENTITY.prototype, "_id", 2);
|
|
34393
34408
|
__decorateClass([
|
|
34394
34409
|
Expose558({ name: "id_recurso" }),
|
|
@@ -34400,20 +34415,20 @@ __decorateClass([
|
|
|
34400
34415
|
IsString453({ message: "El campo itemCode debe ser una cadena de texto v\xE1lida" }),
|
|
34401
34416
|
MaxLength3(50, { message: "El campo itemCode no puede superar los 50 caracteres" }),
|
|
34402
34417
|
IsNotEmpty376({ message: "El campo itemCode no puede estar vac\xEDo" }),
|
|
34403
|
-
Expose558(
|
|
34418
|
+
Expose558()
|
|
34404
34419
|
], WINOrderStockENTITY.prototype, "itemCode", 2);
|
|
34405
34420
|
__decorateClass([
|
|
34406
34421
|
IsDefined165({ message: "El campo serial es obligatorio." }),
|
|
34407
34422
|
IsString453({ message: "El campo serial debe ser una cadena de texto" }),
|
|
34408
|
-
Expose558(
|
|
34423
|
+
Expose558()
|
|
34409
34424
|
], WINOrderStockENTITY.prototype, "serial", 2);
|
|
34410
34425
|
__decorateClass([
|
|
34411
|
-
Expose558(
|
|
34426
|
+
Expose558(),
|
|
34412
34427
|
IsDefined165({ message: "El campo quantity es obligatorio." }),
|
|
34413
34428
|
IsNumber369()
|
|
34414
34429
|
], WINOrderStockENTITY.prototype, "quantity", 2);
|
|
34415
34430
|
__decorateClass([
|
|
34416
|
-
Expose558(
|
|
34431
|
+
Expose558(),
|
|
34417
34432
|
IsDefined165({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
34418
34433
|
IsString453()
|
|
34419
34434
|
], WINOrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
@@ -34422,16 +34437,16 @@ __decorateClass([
|
|
|
34422
34437
|
IsArray187({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
34423
34438
|
ValidateNested322({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
34424
34439
|
Type363(() => StockQuantityEmployeeDTO),
|
|
34425
|
-
Expose558(
|
|
34440
|
+
Expose558()
|
|
34426
34441
|
], WINOrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
34427
34442
|
__decorateClass([
|
|
34428
34443
|
IsDefined165({ message: "El campo estado consumo es obligatorio." }),
|
|
34429
|
-
Expose558(
|
|
34444
|
+
Expose558(),
|
|
34430
34445
|
IsEnum23(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
34431
34446
|
], WINOrderStockENTITY.prototype, "state_consumption", 2);
|
|
34432
34447
|
__decorateClass([
|
|
34433
34448
|
IsDefined165({ message: "El campo estado reposicion es obligatorio." }),
|
|
34434
|
-
Expose558(
|
|
34449
|
+
Expose558(),
|
|
34435
34450
|
IsEnum23(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
34436
34451
|
], WINOrderStockENTITY.prototype, "state_replacement", 2);
|
|
34437
34452
|
|