sigo-entities 1.2.224 → 1.2.225
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 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +12 -26
- package/dist/index.mjs +18 -32
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -7553,11 +7553,9 @@ declare class TuvesOrderStockENTITY {
|
|
|
7553
7553
|
quantity: number;
|
|
7554
7554
|
invpool: string;
|
|
7555
7555
|
numero_de_peticion: string;
|
|
7556
|
-
stock_quantity_employee: StockQuantityEmployeeDTO[];
|
|
7557
7556
|
state_consumption: StateInventory;
|
|
7558
7557
|
state_replacement: StateInventory;
|
|
7559
|
-
|
|
7560
|
-
lot: string;
|
|
7558
|
+
ID_StockPersonal: number;
|
|
7561
7559
|
}
|
|
7562
7560
|
|
|
7563
7561
|
declare class CodigoNombreDto {
|
package/dist/index.d.ts
CHANGED
|
@@ -7553,11 +7553,9 @@ declare class TuvesOrderStockENTITY {
|
|
|
7553
7553
|
quantity: number;
|
|
7554
7554
|
invpool: string;
|
|
7555
7555
|
numero_de_peticion: string;
|
|
7556
|
-
stock_quantity_employee: StockQuantityEmployeeDTO[];
|
|
7557
7556
|
state_consumption: StateInventory;
|
|
7558
7557
|
state_replacement: StateInventory;
|
|
7559
|
-
|
|
7560
|
-
lot: string;
|
|
7558
|
+
ID_StockPersonal: number;
|
|
7561
7559
|
}
|
|
7562
7560
|
|
|
7563
7561
|
declare class CodigoNombreDto {
|
package/dist/index.js
CHANGED
|
@@ -40555,16 +40555,14 @@ var TuvesOrderStockENTITY = class {
|
|
|
40555
40555
|
quantity;
|
|
40556
40556
|
invpool = "";
|
|
40557
40557
|
numero_de_peticion;
|
|
40558
|
-
stock_quantity_employee = [];
|
|
40559
40558
|
state_consumption;
|
|
40560
40559
|
state_replacement;
|
|
40561
|
-
|
|
40562
|
-
lot;
|
|
40560
|
+
ID_StockPersonal = 0;
|
|
40563
40561
|
};
|
|
40564
40562
|
__decorateClass([
|
|
40565
40563
|
(0, import_class_validator611.IsDefined)({ message: "El campo _id es obligatorio." }),
|
|
40566
40564
|
(0, import_class_validator611.IsUUID)("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
40567
|
-
(0, import_class_transformer612.Expose)(
|
|
40565
|
+
(0, import_class_transformer612.Expose)()
|
|
40568
40566
|
], TuvesOrderStockENTITY.prototype, "_id", 2);
|
|
40569
40567
|
__decorateClass([
|
|
40570
40568
|
(0, import_class_transformer612.Expose)({ name: "id_recurso" }),
|
|
@@ -40576,55 +40574,43 @@ __decorateClass([
|
|
|
40576
40574
|
(0, import_class_validator611.IsString)({ message: "El campo itemCode debe ser una cadena de texto v\xE1lida" }),
|
|
40577
40575
|
(0, import_class_validator611.MaxLength)(50, { message: "El campo itemCode no puede superar los 50 caracteres" }),
|
|
40578
40576
|
(0, import_class_validator611.IsNotEmpty)({ message: "El campo itemCode no puede estar vac\xEDo" }),
|
|
40579
|
-
(0, import_class_transformer612.Expose)(
|
|
40577
|
+
(0, import_class_transformer612.Expose)()
|
|
40580
40578
|
], TuvesOrderStockENTITY.prototype, "itemCode", 2);
|
|
40581
40579
|
__decorateClass([
|
|
40582
40580
|
(0, import_class_validator611.IsDefined)({ message: "El campo serial es obligatorio." }),
|
|
40583
40581
|
(0, import_class_validator611.IsString)({ message: "El campo serial debe ser una cadena de texto" }),
|
|
40584
|
-
(0, import_class_transformer612.Expose)(
|
|
40582
|
+
(0, import_class_transformer612.Expose)()
|
|
40585
40583
|
], TuvesOrderStockENTITY.prototype, "serial", 2);
|
|
40586
40584
|
__decorateClass([
|
|
40587
|
-
(0, import_class_transformer612.Expose)(
|
|
40585
|
+
(0, import_class_transformer612.Expose)(),
|
|
40588
40586
|
(0, import_class_validator611.IsDefined)({ message: "El campo quantity es obligatorio." }),
|
|
40589
40587
|
(0, import_class_validator611.IsNumber)()
|
|
40590
40588
|
], TuvesOrderStockENTITY.prototype, "quantity", 2);
|
|
40591
40589
|
__decorateClass([
|
|
40592
|
-
(0, import_class_transformer612.Expose)(
|
|
40590
|
+
(0, import_class_transformer612.Expose)(),
|
|
40593
40591
|
(0, import_class_validator611.IsDefined)({ message: "El campo invpool es obligatorio." }),
|
|
40594
40592
|
(0, import_class_validator611.IsString)()
|
|
40595
40593
|
], TuvesOrderStockENTITY.prototype, "invpool", 2);
|
|
40596
40594
|
__decorateClass([
|
|
40597
|
-
(0, import_class_transformer612.Expose)(
|
|
40595
|
+
(0, import_class_transformer612.Expose)(),
|
|
40598
40596
|
(0, import_class_validator611.IsDefined)({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
40599
40597
|
(0, import_class_validator611.IsString)()
|
|
40600
40598
|
], TuvesOrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
40601
|
-
__decorateClass([
|
|
40602
|
-
(0, import_class_validator611.IsDefined)({ message: "El campo stock_quantity_employee es obligatorio" }),
|
|
40603
|
-
(0, import_class_validator611.IsArray)({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
40604
|
-
(0, import_class_validator611.ValidateNested)({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
40605
|
-
(0, import_class_transformer612.Type)(() => StockQuantityEmployeeDTO),
|
|
40606
|
-
(0, import_class_transformer612.Expose)({ name: "stock_quantity_employee" })
|
|
40607
|
-
], TuvesOrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
40608
40599
|
__decorateClass([
|
|
40609
40600
|
(0, import_class_validator611.IsDefined)({ message: "El campo estado consumo es obligatorio." }),
|
|
40610
|
-
(0, import_class_transformer612.Expose)(
|
|
40601
|
+
(0, import_class_transformer612.Expose)(),
|
|
40611
40602
|
(0, import_class_validator611.IsEnum)(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
40612
40603
|
], TuvesOrderStockENTITY.prototype, "state_consumption", 2);
|
|
40613
40604
|
__decorateClass([
|
|
40614
40605
|
(0, import_class_validator611.IsDefined)({ message: "El campo estado reposicion es obligatorio." }),
|
|
40615
|
-
(0, import_class_transformer612.Expose)(
|
|
40606
|
+
(0, import_class_transformer612.Expose)(),
|
|
40616
40607
|
(0, import_class_validator611.IsEnum)(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
40617
40608
|
], TuvesOrderStockENTITY.prototype, "state_replacement", 2);
|
|
40618
40609
|
__decorateClass([
|
|
40619
|
-
(0, import_class_transformer612.Expose)(
|
|
40620
|
-
(0, import_class_validator611.IsDefined)({ message: "El campo
|
|
40610
|
+
(0, import_class_transformer612.Expose)(),
|
|
40611
|
+
(0, import_class_validator611.IsDefined)({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
40621
40612
|
(0, import_class_validator611.IsNumber)()
|
|
40622
|
-
], TuvesOrderStockENTITY.prototype, "
|
|
40623
|
-
__decorateClass([
|
|
40624
|
-
(0, import_class_validator611.IsString)({ message: "El campo lot debe ser una cadena de texto v\xE1lida" }),
|
|
40625
|
-
(0, import_class_validator611.MaxLength)(100, { message: "El campo lot no puede superar los 100 caracteres" }),
|
|
40626
|
-
(0, import_class_transformer612.Expose)({ name: "lote" })
|
|
40627
|
-
], TuvesOrderStockENTITY.prototype, "lot", 2);
|
|
40613
|
+
], TuvesOrderStockENTITY.prototype, "ID_StockPersonal", 2);
|
|
40628
40614
|
|
|
40629
40615
|
// src/v2/dtos/CodigoNombre.ts
|
|
40630
40616
|
var import_class_transformer613 = require("class-transformer");
|
package/dist/index.mjs
CHANGED
|
@@ -40180,8 +40180,8 @@ __decorateClass([
|
|
|
40180
40180
|
], TUVESOrdReclamosFinDTO.prototype, "FECHA", 2);
|
|
40181
40181
|
|
|
40182
40182
|
// src/operativa/procesos/tuves_order_stock/shared/index.ts
|
|
40183
|
-
import { Expose as Expose607
|
|
40184
|
-
import {
|
|
40183
|
+
import { Expose as Expose607 } from "class-transformer";
|
|
40184
|
+
import { IsDefined as IsDefined203, IsEnum as IsEnum32, IsNotEmpty as IsNotEmpty389, IsNumber as IsNumber407, IsString as IsString498, IsUUID as IsUUID15, MaxLength as MaxLength5 } from "class-validator";
|
|
40185
40185
|
var TuvesOrderStockENTITY = class {
|
|
40186
40186
|
_id;
|
|
40187
40187
|
id_recurso;
|
|
@@ -40190,16 +40190,14 @@ var TuvesOrderStockENTITY = class {
|
|
|
40190
40190
|
quantity;
|
|
40191
40191
|
invpool = "";
|
|
40192
40192
|
numero_de_peticion;
|
|
40193
|
-
stock_quantity_employee = [];
|
|
40194
40193
|
state_consumption;
|
|
40195
40194
|
state_replacement;
|
|
40196
|
-
|
|
40197
|
-
lot;
|
|
40195
|
+
ID_StockPersonal = 0;
|
|
40198
40196
|
};
|
|
40199
40197
|
__decorateClass([
|
|
40200
40198
|
IsDefined203({ message: "El campo _id es obligatorio." }),
|
|
40201
40199
|
IsUUID15("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
40202
|
-
Expose607(
|
|
40200
|
+
Expose607()
|
|
40203
40201
|
], TuvesOrderStockENTITY.prototype, "_id", 2);
|
|
40204
40202
|
__decorateClass([
|
|
40205
40203
|
Expose607({ name: "id_recurso" }),
|
|
@@ -40211,55 +40209,43 @@ __decorateClass([
|
|
|
40211
40209
|
IsString498({ message: "El campo itemCode debe ser una cadena de texto v\xE1lida" }),
|
|
40212
40210
|
MaxLength5(50, { message: "El campo itemCode no puede superar los 50 caracteres" }),
|
|
40213
40211
|
IsNotEmpty389({ message: "El campo itemCode no puede estar vac\xEDo" }),
|
|
40214
|
-
Expose607(
|
|
40212
|
+
Expose607()
|
|
40215
40213
|
], TuvesOrderStockENTITY.prototype, "itemCode", 2);
|
|
40216
40214
|
__decorateClass([
|
|
40217
40215
|
IsDefined203({ message: "El campo serial es obligatorio." }),
|
|
40218
40216
|
IsString498({ message: "El campo serial debe ser una cadena de texto" }),
|
|
40219
|
-
Expose607(
|
|
40217
|
+
Expose607()
|
|
40220
40218
|
], TuvesOrderStockENTITY.prototype, "serial", 2);
|
|
40221
40219
|
__decorateClass([
|
|
40222
|
-
Expose607(
|
|
40220
|
+
Expose607(),
|
|
40223
40221
|
IsDefined203({ message: "El campo quantity es obligatorio." }),
|
|
40224
40222
|
IsNumber407()
|
|
40225
40223
|
], TuvesOrderStockENTITY.prototype, "quantity", 2);
|
|
40226
40224
|
__decorateClass([
|
|
40227
|
-
Expose607(
|
|
40225
|
+
Expose607(),
|
|
40228
40226
|
IsDefined203({ message: "El campo invpool es obligatorio." }),
|
|
40229
40227
|
IsString498()
|
|
40230
40228
|
], TuvesOrderStockENTITY.prototype, "invpool", 2);
|
|
40231
40229
|
__decorateClass([
|
|
40232
|
-
Expose607(
|
|
40230
|
+
Expose607(),
|
|
40233
40231
|
IsDefined203({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
40234
40232
|
IsString498()
|
|
40235
40233
|
], TuvesOrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
40236
|
-
__decorateClass([
|
|
40237
|
-
IsDefined203({ message: "El campo stock_quantity_employee es obligatorio" }),
|
|
40238
|
-
IsArray209({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
40239
|
-
ValidateNested344({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
40240
|
-
Type388(() => StockQuantityEmployeeDTO),
|
|
40241
|
-
Expose607({ name: "stock_quantity_employee" })
|
|
40242
|
-
], TuvesOrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
40243
40234
|
__decorateClass([
|
|
40244
40235
|
IsDefined203({ message: "El campo estado consumo es obligatorio." }),
|
|
40245
|
-
Expose607(
|
|
40236
|
+
Expose607(),
|
|
40246
40237
|
IsEnum32(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
40247
40238
|
], TuvesOrderStockENTITY.prototype, "state_consumption", 2);
|
|
40248
40239
|
__decorateClass([
|
|
40249
40240
|
IsDefined203({ message: "El campo estado reposicion es obligatorio." }),
|
|
40250
|
-
Expose607(
|
|
40241
|
+
Expose607(),
|
|
40251
40242
|
IsEnum32(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
40252
40243
|
], TuvesOrderStockENTITY.prototype, "state_replacement", 2);
|
|
40253
40244
|
__decorateClass([
|
|
40254
|
-
Expose607(
|
|
40255
|
-
IsDefined203({ message: "El campo
|
|
40245
|
+
Expose607(),
|
|
40246
|
+
IsDefined203({ message: "El campo ID_StockPersonal es obligatorio." }),
|
|
40256
40247
|
IsNumber407()
|
|
40257
|
-
], TuvesOrderStockENTITY.prototype, "
|
|
40258
|
-
__decorateClass([
|
|
40259
|
-
IsString498({ message: "El campo lot debe ser una cadena de texto v\xE1lida" }),
|
|
40260
|
-
MaxLength5(100, { message: "El campo lot no puede superar los 100 caracteres" }),
|
|
40261
|
-
Expose607({ name: "lote" })
|
|
40262
|
-
], TuvesOrderStockENTITY.prototype, "lot", 2);
|
|
40248
|
+
], TuvesOrderStockENTITY.prototype, "ID_StockPersonal", 2);
|
|
40263
40249
|
|
|
40264
40250
|
// src/v2/dtos/CodigoNombre.ts
|
|
40265
40251
|
import { Expose as Expose608 } from "class-transformer";
|
|
@@ -40288,8 +40274,8 @@ __decorateClass([
|
|
|
40288
40274
|
], CodigoNombreMinLengthDto.prototype, "nombre", 2);
|
|
40289
40275
|
|
|
40290
40276
|
// src/v2/entities/Delegacion.ts
|
|
40291
|
-
import { Expose as Expose610, Type as
|
|
40292
|
-
import { IsDefined as IsDefined206, IsObject as IsObject13, IsString as IsString500, MinLength as MinLength50, ValidateNested as
|
|
40277
|
+
import { Expose as Expose610, Type as Type388 } from "class-transformer";
|
|
40278
|
+
import { IsDefined as IsDefined206, IsObject as IsObject13, IsString as IsString500, MinLength as MinLength50, ValidateNested as ValidateNested344 } from "class-validator";
|
|
40293
40279
|
|
|
40294
40280
|
// src/v2/entities/Base.ts
|
|
40295
40281
|
import { Expose as Expose609 } from "class-transformer";
|
|
@@ -40317,9 +40303,9 @@ var DelegacionEntity = class extends BaseEntity {
|
|
|
40317
40303
|
};
|
|
40318
40304
|
__decorateClass([
|
|
40319
40305
|
IsDefined206({ message: 'La propiedad "pais" es obligatoria.' }),
|
|
40320
|
-
|
|
40306
|
+
Type388(() => CodigoNombreMinLengthDto),
|
|
40321
40307
|
IsObject13({ message: 'La propiedad "pais" debe ser un objeto v\xE1lido.' }),
|
|
40322
|
-
|
|
40308
|
+
ValidateNested344({ message: 'La propiedad "pais" no es v\xE1lida.' }),
|
|
40323
40309
|
Expose610()
|
|
40324
40310
|
], DelegacionEntity.prototype, "pais", 2);
|
|
40325
40311
|
__decorateClass([
|