sigo-entities 1.2.111 → 1.2.113
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 -13
- package/dist/index.mjs +35 -34
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -31038,7 +31038,7 @@ __decorateClass([
|
|
|
31038
31038
|
|
|
31039
31039
|
// src/operativa/procesos/toa_claro/shared/index.ts
|
|
31040
31040
|
var ToaClaroENTITY = class {
|
|
31041
|
-
|
|
31041
|
+
_id;
|
|
31042
31042
|
Sistema = "TOA_CLARO" /* TOA_CLARO */;
|
|
31043
31043
|
T\u00E9cnico = "";
|
|
31044
31044
|
Orden_de_Trabajo = "";
|
|
@@ -31107,9 +31107,10 @@ var ToaClaroENTITY = class {
|
|
|
31107
31107
|
Inventory = [];
|
|
31108
31108
|
};
|
|
31109
31109
|
__decorateClass([
|
|
31110
|
-
(0, import_class_validator539.
|
|
31110
|
+
(0, import_class_validator539.IsDefined)({ message: "El campo _id es obligatorio." }),
|
|
31111
|
+
(0, import_class_validator539.IsUUID)("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
31111
31112
|
(0, import_class_transformer538.Expose)()
|
|
31112
|
-
], ToaClaroENTITY.prototype, "
|
|
31113
|
+
], ToaClaroENTITY.prototype, "_id", 2);
|
|
31113
31114
|
__decorateClass([
|
|
31114
31115
|
(0, import_class_transformer538.Transform)(({ value }) => "TOA_CLARO" /* TOA_CLARO */),
|
|
31115
31116
|
(0, import_class_validator539.IsEnum)(SistemaRecurso, { message: "debe ser un valor v\xE1lido de enum SistemaRecurso" }),
|
|
@@ -35750,10 +35751,10 @@ var TOAClaroOrderStockENTITY = class {
|
|
|
35750
35751
|
__decorateClass([
|
|
35751
35752
|
(0, import_class_validator569.IsDefined)({ message: "El campo _id es obligatorio." }),
|
|
35752
35753
|
(0, import_class_validator569.IsUUID)("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
35753
|
-
(0, import_class_transformer568.Expose)(
|
|
35754
|
+
(0, import_class_transformer568.Expose)()
|
|
35754
35755
|
], TOAClaroOrderStockENTITY.prototype, "_id", 2);
|
|
35755
35756
|
__decorateClass([
|
|
35756
|
-
(0, import_class_transformer568.Expose)(
|
|
35757
|
+
(0, import_class_transformer568.Expose)(),
|
|
35757
35758
|
(0, import_class_validator569.IsDefined)({ message: "El campo ID Recurso es obligatorio." }),
|
|
35758
35759
|
(0, import_class_validator569.IsString)()
|
|
35759
35760
|
], TOAClaroOrderStockENTITY.prototype, "id_recurso", 2);
|
|
@@ -35762,25 +35763,25 @@ __decorateClass([
|
|
|
35762
35763
|
(0, import_class_validator569.IsString)({ message: "El campo itemCode debe ser una cadena de texto v\xE1lida" }),
|
|
35763
35764
|
(0, import_class_validator569.MaxLength)(50, { message: "El campo itemCode no puede superar los 50 caracteres" }),
|
|
35764
35765
|
(0, import_class_validator569.IsNotEmpty)({ message: "El campo itemCode no puede estar vac\xEDo" }),
|
|
35765
|
-
(0, import_class_transformer568.Expose)(
|
|
35766
|
+
(0, import_class_transformer568.Expose)()
|
|
35766
35767
|
], TOAClaroOrderStockENTITY.prototype, "itemCode", 2);
|
|
35767
35768
|
__decorateClass([
|
|
35768
35769
|
(0, import_class_validator569.IsDefined)({ message: "El campo serial es obligatorio." }),
|
|
35769
35770
|
(0, import_class_validator569.IsString)({ message: "El campo serial debe ser una cadena de texto" }),
|
|
35770
|
-
(0, import_class_transformer568.Expose)(
|
|
35771
|
+
(0, import_class_transformer568.Expose)()
|
|
35771
35772
|
], TOAClaroOrderStockENTITY.prototype, "serial", 2);
|
|
35772
35773
|
__decorateClass([
|
|
35773
|
-
(0, import_class_transformer568.Expose)(
|
|
35774
|
+
(0, import_class_transformer568.Expose)(),
|
|
35774
35775
|
(0, import_class_validator569.IsDefined)({ message: "El campo quantity es obligatorio." }),
|
|
35775
35776
|
(0, import_class_validator569.IsNumber)()
|
|
35776
35777
|
], TOAClaroOrderStockENTITY.prototype, "quantity", 2);
|
|
35777
35778
|
__decorateClass([
|
|
35778
|
-
(0, import_class_transformer568.Expose)(
|
|
35779
|
+
(0, import_class_transformer568.Expose)(),
|
|
35779
35780
|
(0, import_class_validator569.IsDefined)({ message: "El campo invpool es obligatorio." }),
|
|
35780
35781
|
(0, import_class_validator569.IsString)()
|
|
35781
35782
|
], TOAClaroOrderStockENTITY.prototype, "invpool", 2);
|
|
35782
35783
|
__decorateClass([
|
|
35783
|
-
(0, import_class_transformer568.Expose)(
|
|
35784
|
+
(0, import_class_transformer568.Expose)(),
|
|
35784
35785
|
(0, import_class_validator569.IsDefined)({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
35785
35786
|
(0, import_class_validator569.IsString)()
|
|
35786
35787
|
], TOAClaroOrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
@@ -35789,16 +35790,16 @@ __decorateClass([
|
|
|
35789
35790
|
(0, import_class_validator569.IsArray)({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
35790
35791
|
(0, import_class_validator569.ValidateNested)({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
35791
35792
|
(0, import_class_transformer568.Type)(() => StockQuantityEmployeeDTO),
|
|
35792
|
-
(0, import_class_transformer568.Expose)(
|
|
35793
|
+
(0, import_class_transformer568.Expose)()
|
|
35793
35794
|
], TOAClaroOrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
35794
35795
|
__decorateClass([
|
|
35795
35796
|
(0, import_class_validator569.IsDefined)({ message: "El campo estado consumo es obligatorio." }),
|
|
35796
|
-
(0, import_class_transformer568.Expose)(
|
|
35797
|
+
(0, import_class_transformer568.Expose)(),
|
|
35797
35798
|
(0, import_class_validator569.IsEnum)(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
35798
35799
|
], TOAClaroOrderStockENTITY.prototype, "state_consumption", 2);
|
|
35799
35800
|
__decorateClass([
|
|
35800
35801
|
(0, import_class_validator569.IsDefined)({ message: "El campo estado reposicion es obligatorio." }),
|
|
35801
|
-
(0, import_class_transformer568.Expose)(
|
|
35802
|
+
(0, import_class_transformer568.Expose)(),
|
|
35802
35803
|
(0, import_class_validator569.IsEnum)(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
35803
35804
|
], TOAClaroOrderStockENTITY.prototype, "state_replacement", 2);
|
|
35804
35805
|
|
package/dist/index.mjs
CHANGED
|
@@ -30342,7 +30342,7 @@ var ISheetsJsonChileTdC = class {
|
|
|
30342
30342
|
|
|
30343
30343
|
// src/operativa/procesos/toa_claro/shared/index.ts
|
|
30344
30344
|
import { Expose as Expose536, Transform as Transform65, Type as Type350 } from "class-transformer";
|
|
30345
|
-
import { IsNotEmpty as IsNotEmpty374, IsNumber as IsNumber348, IsString as IsString432, Length as Length318, Min as Min274, IsDate as IsDate126, ValidateNested as ValidateNested311, IsEnum as IsEnum18, IsDefined as IsDefined141, IsArray as IsArray181 } from "class-validator";
|
|
30345
|
+
import { IsNotEmpty as IsNotEmpty374, IsNumber as IsNumber348, IsString as IsString432, Length as Length318, Min as Min274, IsDate as IsDate126, ValidateNested as ValidateNested311, IsEnum as IsEnum18, IsDefined as IsDefined141, IsArray as IsArray181, IsUUID as IsUUID2 } from "class-validator";
|
|
30346
30346
|
|
|
30347
30347
|
// src/operativa/procesos/toa_claro/shared/dto/direccion toa dto.ts
|
|
30348
30348
|
import { Expose as Expose530 } from "class-transformer";
|
|
@@ -30596,7 +30596,7 @@ __decorateClass([
|
|
|
30596
30596
|
|
|
30597
30597
|
// src/operativa/procesos/toa_claro/shared/index.ts
|
|
30598
30598
|
var ToaClaroENTITY = class {
|
|
30599
|
-
|
|
30599
|
+
_id;
|
|
30600
30600
|
Sistema = "TOA_CLARO" /* TOA_CLARO */;
|
|
30601
30601
|
T\u00E9cnico = "";
|
|
30602
30602
|
Orden_de_Trabajo = "";
|
|
@@ -30665,9 +30665,10 @@ var ToaClaroENTITY = class {
|
|
|
30665
30665
|
Inventory = [];
|
|
30666
30666
|
};
|
|
30667
30667
|
__decorateClass([
|
|
30668
|
-
|
|
30668
|
+
IsDefined141({ message: "El campo _id es obligatorio." }),
|
|
30669
|
+
IsUUID2("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
30669
30670
|
Expose536()
|
|
30670
|
-
], ToaClaroENTITY.prototype, "
|
|
30671
|
+
], ToaClaroENTITY.prototype, "_id", 2);
|
|
30671
30672
|
__decorateClass([
|
|
30672
30673
|
Transform65(({ value }) => "TOA_CLARO" /* TOA_CLARO */),
|
|
30673
30674
|
IsEnum18(SistemaRecurso, { message: "debe ser un valor v\xE1lido de enum SistemaRecurso" }),
|
|
@@ -31567,7 +31568,7 @@ import {
|
|
|
31567
31568
|
IsArray as IsArray185,
|
|
31568
31569
|
IsObject as IsObject7,
|
|
31569
31570
|
IsDate as IsDate129,
|
|
31570
|
-
IsUUID as
|
|
31571
|
+
IsUUID as IsUUID3
|
|
31571
31572
|
} from "class-validator";
|
|
31572
31573
|
import "reflect-metadata";
|
|
31573
31574
|
|
|
@@ -32406,7 +32407,7 @@ var Peru9112TOAENTITY = class {
|
|
|
32406
32407
|
};
|
|
32407
32408
|
__decorateClass([
|
|
32408
32409
|
IsDefined148({ message: "El campo _id es obligatorio." }),
|
|
32409
|
-
|
|
32410
|
+
IsUUID3("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
32410
32411
|
Expose543({ name: "_id" })
|
|
32411
32412
|
], Peru9112TOAENTITY.prototype, "_id", 2);
|
|
32412
32413
|
__decorateClass([
|
|
@@ -33637,7 +33638,7 @@ __decorateClass([
|
|
|
33637
33638
|
|
|
33638
33639
|
// src/operativa/procesos/TOA order stock/shared/index.ts
|
|
33639
33640
|
import { Expose as Expose553, Type as Type358 } from "class-transformer";
|
|
33640
|
-
import { IsArray as IsArray187, IsDefined as IsDefined158, IsEnum as IsEnum20, IsNotEmpty as IsNotEmpty377, IsNumber as IsNumber363, IsString as IsString449, IsUUID as
|
|
33641
|
+
import { IsArray as IsArray187, IsDefined as IsDefined158, IsEnum as IsEnum20, IsNotEmpty as IsNotEmpty377, IsNumber as IsNumber363, IsString as IsString449, IsUUID as IsUUID4, MaxLength as MaxLength2, ValidateNested as ValidateNested319 } from "class-validator";
|
|
33641
33642
|
var TOAOrderStockENTITY = class {
|
|
33642
33643
|
_id;
|
|
33643
33644
|
id_recurso;
|
|
@@ -33654,7 +33655,7 @@ var TOAOrderStockENTITY = class {
|
|
|
33654
33655
|
};
|
|
33655
33656
|
__decorateClass([
|
|
33656
33657
|
IsDefined158({ message: "El campo _id es obligatorio." }),
|
|
33657
|
-
|
|
33658
|
+
IsUUID4("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
33658
33659
|
Expose553({ name: "_id" })
|
|
33659
33660
|
], TOAOrderStockENTITY.prototype, "_id", 2);
|
|
33660
33661
|
__decorateClass([
|
|
@@ -33723,7 +33724,7 @@ import {
|
|
|
33723
33724
|
IsString as IsString450,
|
|
33724
33725
|
IsDefined as IsDefined159,
|
|
33725
33726
|
MinLength as MinLength46,
|
|
33726
|
-
IsUUID as
|
|
33727
|
+
IsUUID as IsUUID5,
|
|
33727
33728
|
IsDate as IsDate133
|
|
33728
33729
|
} from "class-validator";
|
|
33729
33730
|
var RequestNumberTTLENTITY = class {
|
|
@@ -33733,7 +33734,7 @@ var RequestNumberTTLENTITY = class {
|
|
|
33733
33734
|
};
|
|
33734
33735
|
__decorateClass([
|
|
33735
33736
|
IsDefined159({ message: "El campo _id es obligatorio." }),
|
|
33736
|
-
|
|
33737
|
+
IsUUID5("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
33737
33738
|
Expose554({ name: "_id" })
|
|
33738
33739
|
], RequestNumberTTLENTITY.prototype, "_id", 2);
|
|
33739
33740
|
__decorateClass([
|
|
@@ -33759,7 +33760,7 @@ import {
|
|
|
33759
33760
|
IsDate as IsDate137,
|
|
33760
33761
|
IsEnum as IsEnum23,
|
|
33761
33762
|
IsNumber as IsNumber367,
|
|
33762
|
-
IsUUID as
|
|
33763
|
+
IsUUID as IsUUID6
|
|
33763
33764
|
} from "class-validator";
|
|
33764
33765
|
import "reflect-metadata";
|
|
33765
33766
|
|
|
@@ -34326,7 +34327,7 @@ var Peru9112WinENTITY = class {
|
|
|
34326
34327
|
};
|
|
34327
34328
|
__decorateClass([
|
|
34328
34329
|
IsDefined163({ message: "El campo _id es obligatorio." }),
|
|
34329
|
-
|
|
34330
|
+
IsUUID6("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34330
34331
|
Expose558({ name: "_id" })
|
|
34331
34332
|
], Peru9112WinENTITY.prototype, "_id", 2);
|
|
34332
34333
|
__decorateClass([
|
|
@@ -34492,7 +34493,7 @@ import {
|
|
|
34492
34493
|
IsArray as IsArray193,
|
|
34493
34494
|
IsDate as IsDate140,
|
|
34494
34495
|
IsEnum as IsEnum26,
|
|
34495
|
-
IsUUID as
|
|
34496
|
+
IsUUID as IsUUID7
|
|
34496
34497
|
} from "class-validator";
|
|
34497
34498
|
import "reflect-metadata";
|
|
34498
34499
|
|
|
@@ -34860,7 +34861,7 @@ var Peru9112FibramasENTITY = class {
|
|
|
34860
34861
|
};
|
|
34861
34862
|
__decorateClass([
|
|
34862
34863
|
IsDefined167({ message: "El campo _id es obligatorio." }),
|
|
34863
|
-
|
|
34864
|
+
IsUUID7("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34864
34865
|
Expose562({ name: "_id" })
|
|
34865
34866
|
], Peru9112FibramasENTITY.prototype, "_id", 2);
|
|
34866
34867
|
__decorateClass([
|
|
@@ -35022,7 +35023,7 @@ import {
|
|
|
35022
35023
|
IsNotEmpty as IsNotEmpty378,
|
|
35023
35024
|
IsNumber as IsNumber372,
|
|
35024
35025
|
IsString as IsString459,
|
|
35025
|
-
IsUUID as
|
|
35026
|
+
IsUUID as IsUUID8,
|
|
35026
35027
|
MaxLength as MaxLength3,
|
|
35027
35028
|
ValidateNested as ValidateNested326
|
|
35028
35029
|
} from "class-validator";
|
|
@@ -35040,7 +35041,7 @@ var OrderStockENTITY = class {
|
|
|
35040
35041
|
};
|
|
35041
35042
|
__decorateClass([
|
|
35042
35043
|
IsDefined168({ message: "El campo _id es obligatorio." }),
|
|
35043
|
-
|
|
35044
|
+
IsUUID8("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
35044
35045
|
Expose563()
|
|
35045
35046
|
], OrderStockENTITY.prototype, "_id", 2);
|
|
35046
35047
|
__decorateClass([
|
|
@@ -35095,7 +35096,7 @@ __decorateClass([
|
|
|
35095
35096
|
|
|
35096
35097
|
// src/operativa/procesos/TOA orden liquidacion/shared/index.ts
|
|
35097
35098
|
import { Expose as Expose564, Type as Type369 } from "class-transformer";
|
|
35098
|
-
import { IsArray as IsArray195, IsDefined as IsDefined169, IsEnum as IsEnum28, IsNumber as IsNumber373, IsObject as IsObject12, IsString as IsString460, IsUUID as
|
|
35099
|
+
import { IsArray as IsArray195, IsDefined as IsDefined169, IsEnum as IsEnum28, IsNumber as IsNumber373, IsObject as IsObject12, IsString as IsString460, IsUUID as IsUUID9, ValidateNested as ValidateNested327 } from "class-validator";
|
|
35099
35100
|
var TOAOrdenLiquidacionENTITY = class {
|
|
35100
35101
|
_id;
|
|
35101
35102
|
tecnico;
|
|
@@ -35121,7 +35122,7 @@ var TOAOrdenLiquidacionENTITY = class {
|
|
|
35121
35122
|
};
|
|
35122
35123
|
__decorateClass([
|
|
35123
35124
|
IsDefined169({ message: "El campo _id es obligatorio." }),
|
|
35124
|
-
|
|
35125
|
+
IsUUID9("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
35125
35126
|
Expose564({ name: "_id" })
|
|
35126
35127
|
], TOAOrdenLiquidacionENTITY.prototype, "_id", 2);
|
|
35127
35128
|
__decorateClass([
|
|
@@ -35248,7 +35249,7 @@ __decorateClass([
|
|
|
35248
35249
|
|
|
35249
35250
|
// src/operativa/procesos/TOA orden liquidacion_db/shared/index.ts
|
|
35250
35251
|
import { Expose as Expose565, Type as Type370 } from "class-transformer";
|
|
35251
|
-
import { IsArray as IsArray196, IsDefined as IsDefined170, IsEnum as IsEnum29, IsNumber as IsNumber374, IsObject as IsObject13, IsString as IsString461, IsUUID as
|
|
35252
|
+
import { IsArray as IsArray196, IsDefined as IsDefined170, IsEnum as IsEnum29, IsNumber as IsNumber374, IsObject as IsObject13, IsString as IsString461, IsUUID as IsUUID10, ValidateNested as ValidateNested328 } from "class-validator";
|
|
35252
35253
|
var TOAOrdenLiquidacionENTITYDB = class {
|
|
35253
35254
|
_id = "";
|
|
35254
35255
|
tecnico = "";
|
|
@@ -35274,7 +35275,7 @@ var TOAOrdenLiquidacionENTITYDB = class {
|
|
|
35274
35275
|
};
|
|
35275
35276
|
__decorateClass([
|
|
35276
35277
|
IsDefined170({ message: "El campo _id es obligatorio." }),
|
|
35277
|
-
|
|
35278
|
+
IsUUID10("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
35278
35279
|
Expose565({ name: "_id" })
|
|
35279
35280
|
], TOAOrdenLiquidacionENTITYDB.prototype, "_id", 2);
|
|
35280
35281
|
__decorateClass([
|
|
@@ -35385,7 +35386,7 @@ __decorateClass([
|
|
|
35385
35386
|
|
|
35386
35387
|
// src/operativa/procesos/TOA Claro order stock/shared/index.ts
|
|
35387
35388
|
import { Expose as Expose566, Type as Type371 } from "class-transformer";
|
|
35388
|
-
import { IsArray as IsArray197, IsDefined as IsDefined171, IsEnum as IsEnum30, IsNotEmpty as IsNotEmpty379, IsNumber as IsNumber375, IsString as IsString462, IsUUID as
|
|
35389
|
+
import { IsArray as IsArray197, IsDefined as IsDefined171, IsEnum as IsEnum30, IsNotEmpty as IsNotEmpty379, IsNumber as IsNumber375, IsString as IsString462, IsUUID as IsUUID11, MaxLength as MaxLength4, ValidateNested as ValidateNested329 } from "class-validator";
|
|
35389
35390
|
var TOAClaroOrderStockENTITY = class {
|
|
35390
35391
|
_id;
|
|
35391
35392
|
id_recurso;
|
|
@@ -35400,11 +35401,11 @@ var TOAClaroOrderStockENTITY = class {
|
|
|
35400
35401
|
};
|
|
35401
35402
|
__decorateClass([
|
|
35402
35403
|
IsDefined171({ message: "El campo _id es obligatorio." }),
|
|
35403
|
-
|
|
35404
|
-
Expose566(
|
|
35404
|
+
IsUUID11("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
35405
|
+
Expose566()
|
|
35405
35406
|
], TOAClaroOrderStockENTITY.prototype, "_id", 2);
|
|
35406
35407
|
__decorateClass([
|
|
35407
|
-
Expose566(
|
|
35408
|
+
Expose566(),
|
|
35408
35409
|
IsDefined171({ message: "El campo ID Recurso es obligatorio." }),
|
|
35409
35410
|
IsString462()
|
|
35410
35411
|
], TOAClaroOrderStockENTITY.prototype, "id_recurso", 2);
|
|
@@ -35413,25 +35414,25 @@ __decorateClass([
|
|
|
35413
35414
|
IsString462({ message: "El campo itemCode debe ser una cadena de texto v\xE1lida" }),
|
|
35414
35415
|
MaxLength4(50, { message: "El campo itemCode no puede superar los 50 caracteres" }),
|
|
35415
35416
|
IsNotEmpty379({ message: "El campo itemCode no puede estar vac\xEDo" }),
|
|
35416
|
-
Expose566(
|
|
35417
|
+
Expose566()
|
|
35417
35418
|
], TOAClaroOrderStockENTITY.prototype, "itemCode", 2);
|
|
35418
35419
|
__decorateClass([
|
|
35419
35420
|
IsDefined171({ message: "El campo serial es obligatorio." }),
|
|
35420
35421
|
IsString462({ message: "El campo serial debe ser una cadena de texto" }),
|
|
35421
|
-
Expose566(
|
|
35422
|
+
Expose566()
|
|
35422
35423
|
], TOAClaroOrderStockENTITY.prototype, "serial", 2);
|
|
35423
35424
|
__decorateClass([
|
|
35424
|
-
Expose566(
|
|
35425
|
+
Expose566(),
|
|
35425
35426
|
IsDefined171({ message: "El campo quantity es obligatorio." }),
|
|
35426
35427
|
IsNumber375()
|
|
35427
35428
|
], TOAClaroOrderStockENTITY.prototype, "quantity", 2);
|
|
35428
35429
|
__decorateClass([
|
|
35429
|
-
Expose566(
|
|
35430
|
+
Expose566(),
|
|
35430
35431
|
IsDefined171({ message: "El campo invpool es obligatorio." }),
|
|
35431
35432
|
IsString462()
|
|
35432
35433
|
], TOAClaroOrderStockENTITY.prototype, "invpool", 2);
|
|
35433
35434
|
__decorateClass([
|
|
35434
|
-
Expose566(
|
|
35435
|
+
Expose566(),
|
|
35435
35436
|
IsDefined171({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
35436
35437
|
IsString462()
|
|
35437
35438
|
], TOAClaroOrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
@@ -35440,16 +35441,16 @@ __decorateClass([
|
|
|
35440
35441
|
IsArray197({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
35441
35442
|
ValidateNested329({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
35442
35443
|
Type371(() => StockQuantityEmployeeDTO),
|
|
35443
|
-
Expose566(
|
|
35444
|
+
Expose566()
|
|
35444
35445
|
], TOAClaroOrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
35445
35446
|
__decorateClass([
|
|
35446
35447
|
IsDefined171({ message: "El campo estado consumo es obligatorio." }),
|
|
35447
|
-
Expose566(
|
|
35448
|
+
Expose566(),
|
|
35448
35449
|
IsEnum30(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
35449
35450
|
], TOAClaroOrderStockENTITY.prototype, "state_consumption", 2);
|
|
35450
35451
|
__decorateClass([
|
|
35451
35452
|
IsDefined171({ message: "El campo estado reposicion es obligatorio." }),
|
|
35452
|
-
Expose566(
|
|
35453
|
+
Expose566(),
|
|
35453
35454
|
IsEnum30(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
35454
35455
|
], TOAClaroOrderStockENTITY.prototype, "state_replacement", 2);
|
|
35455
35456
|
|
|
@@ -35485,14 +35486,14 @@ import { IsDefined as IsDefined174, IsObject as IsObject14, IsString as IsString
|
|
|
35485
35486
|
|
|
35486
35487
|
// src/v2/entities/Base.ts
|
|
35487
35488
|
import { Expose as Expose568 } from "class-transformer";
|
|
35488
|
-
import { IsBoolean as IsBoolean50, IsDefined as IsDefined173, IsUUID as
|
|
35489
|
+
import { IsBoolean as IsBoolean50, IsDefined as IsDefined173, IsUUID as IsUUID12 } from "class-validator";
|
|
35489
35490
|
var BaseEntity = class {
|
|
35490
35491
|
_id;
|
|
35491
35492
|
activo;
|
|
35492
35493
|
};
|
|
35493
35494
|
__decorateClass([
|
|
35494
35495
|
IsDefined173({ message: 'La propiedad "_id" es obligatoria.' }),
|
|
35495
|
-
|
|
35496
|
+
IsUUID12("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
35496
35497
|
Expose568()
|
|
35497
35498
|
], BaseEntity.prototype, "_id", 2);
|
|
35498
35499
|
__decorateClass([
|