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