sigo-entities 0.0.13 → 0.0.14
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 +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +70 -0
- package/dist/index.mjs +69 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -348,4 +348,17 @@ declare class StockPersonalEquiposENTITY {
|
|
|
348
348
|
Equipos: EquiposDTO[];
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
|
|
351
|
+
type typeEstado = 'PENDIENTE' | 'ATENDIDO';
|
|
352
|
+
declare class AtencionOrdenesLiquidadasENTITY {
|
|
353
|
+
Orden: string;
|
|
354
|
+
CodigoSAP: string;
|
|
355
|
+
LoteSAP: string;
|
|
356
|
+
NumeroSerie: string;
|
|
357
|
+
Cantidad: number;
|
|
358
|
+
ID_Recurso: string;
|
|
359
|
+
NroDocumento: string;
|
|
360
|
+
Fecha: Date;
|
|
361
|
+
Estado: typeEstado;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export { AtencionOrdenesLiquidadasENTITY, ConsumoMaterialChile9512ENTITY, StockPersonalEquiposENTITY, TrabajoENTITY, validateAndFormatData };
|
package/dist/index.d.ts
CHANGED
|
@@ -348,4 +348,17 @@ declare class StockPersonalEquiposENTITY {
|
|
|
348
348
|
Equipos: EquiposDTO[];
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
|
|
351
|
+
type typeEstado = 'PENDIENTE' | 'ATENDIDO';
|
|
352
|
+
declare class AtencionOrdenesLiquidadasENTITY {
|
|
353
|
+
Orden: string;
|
|
354
|
+
CodigoSAP: string;
|
|
355
|
+
LoteSAP: string;
|
|
356
|
+
NumeroSerie: string;
|
|
357
|
+
Cantidad: number;
|
|
358
|
+
ID_Recurso: string;
|
|
359
|
+
NroDocumento: string;
|
|
360
|
+
Fecha: Date;
|
|
361
|
+
Estado: typeEstado;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export { AtencionOrdenesLiquidadasENTITY, ConsumoMaterialChile9512ENTITY, StockPersonalEquiposENTITY, TrabajoENTITY, validateAndFormatData };
|
package/dist/index.js
CHANGED
|
@@ -28,6 +28,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
28
28
|
// src/index.ts
|
|
29
29
|
var src_exports = {};
|
|
30
30
|
__export(src_exports, {
|
|
31
|
+
AtencionOrdenesLiquidadasENTITY: () => AtencionOrdenesLiquidadasENTITY,
|
|
31
32
|
ConsumoMaterialChile9512ENTITY: () => ConsumoMaterialChile9512ENTITY,
|
|
32
33
|
StockPersonalEquiposENTITY: () => StockPersonalEquiposENTITY,
|
|
33
34
|
TrabajoENTITY: () => TrabajoENTITY,
|
|
@@ -1842,8 +1843,77 @@ var StockPersonalEquiposENTITY = class {
|
|
|
1842
1843
|
CodigoLlave = "";
|
|
1843
1844
|
Equipos = [];
|
|
1844
1845
|
};
|
|
1846
|
+
|
|
1847
|
+
// src/logistica/atencion ordenes liquidadas/shared/index.ts
|
|
1848
|
+
var import_class_transformer32 = require("class-transformer");
|
|
1849
|
+
var import_class_validator32 = require("class-validator");
|
|
1850
|
+
var AtencionOrdenesLiquidadasENTITY = class {
|
|
1851
|
+
Orden = "";
|
|
1852
|
+
CodigoSAP = "";
|
|
1853
|
+
LoteSAP = "";
|
|
1854
|
+
NumeroSerie = "";
|
|
1855
|
+
Cantidad = 0;
|
|
1856
|
+
ID_Recurso = "";
|
|
1857
|
+
NroDocumento = "";
|
|
1858
|
+
Fecha = /* @__PURE__ */ new Date();
|
|
1859
|
+
Estado = "PENDIENTE";
|
|
1860
|
+
};
|
|
1861
|
+
__decorateClass([
|
|
1862
|
+
(0, import_class_transformer32.Expose)(),
|
|
1863
|
+
(0, import_class_validator32.IsString)({ message: "debe ser un texto" }),
|
|
1864
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "es requerido" }),
|
|
1865
|
+
(0, import_class_validator32.Length)(1, 30, { message: "debe tener entre 1 y 30 caracteres" })
|
|
1866
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "Orden", 2);
|
|
1867
|
+
__decorateClass([
|
|
1868
|
+
(0, import_class_transformer32.Expose)(),
|
|
1869
|
+
(0, import_class_validator32.IsString)({ message: "debe ser un texto" }),
|
|
1870
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "es requerido" }),
|
|
1871
|
+
(0, import_class_validator32.Length)(1, 30, { message: "debe tener entre 1 y 30 caracteres" })
|
|
1872
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "CodigoSAP", 2);
|
|
1873
|
+
__decorateClass([
|
|
1874
|
+
(0, import_class_transformer32.Expose)(),
|
|
1875
|
+
(0, import_class_validator32.IsString)({ message: "debe ser un texto" }),
|
|
1876
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "es requerido" }),
|
|
1877
|
+
(0, import_class_validator32.Length)(1, 30, { message: "debe tener entre 1 y 30 caracteres" })
|
|
1878
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "LoteSAP", 2);
|
|
1879
|
+
__decorateClass([
|
|
1880
|
+
(0, import_class_transformer32.Expose)(),
|
|
1881
|
+
(0, import_class_validator32.IsString)({ message: "debe ser un texto" }),
|
|
1882
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "es requerido" }),
|
|
1883
|
+
(0, import_class_validator32.Length)(1, 30, { message: "debe tener entre 1 y 30 caracteres" })
|
|
1884
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "NumeroSerie", 2);
|
|
1885
|
+
__decorateClass([
|
|
1886
|
+
(0, import_class_transformer32.Expose)(),
|
|
1887
|
+
(0, import_class_validator32.IsNumber)({}, { message: "debe ser un numero" }),
|
|
1888
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "es requerido" }),
|
|
1889
|
+
(0, import_class_validator32.Min)(0, { message: "el valor m\xEDnimo es 0" }),
|
|
1890
|
+
(0, import_class_validator32.Max)(1e3, { message: "el valor m\xE1ximo es 1000" })
|
|
1891
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "Cantidad", 2);
|
|
1892
|
+
__decorateClass([
|
|
1893
|
+
(0, import_class_transformer32.Expose)(),
|
|
1894
|
+
(0, import_class_validator32.IsString)({ message: "debe ser un texto" }),
|
|
1895
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "es requerido" }),
|
|
1896
|
+
(0, import_class_validator32.Length)(1, 40, { message: "debe tener entre 1 y 40 caracteres" })
|
|
1897
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "ID_Recurso", 2);
|
|
1898
|
+
__decorateClass([
|
|
1899
|
+
(0, import_class_transformer32.Expose)(),
|
|
1900
|
+
(0, import_class_validator32.IsString)({ message: "debe ser un texto" }),
|
|
1901
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "es requerido" }),
|
|
1902
|
+
(0, import_class_validator32.Length)(1, 60, { message: "debe tener entre 1 y 60 caracteres" })
|
|
1903
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "NroDocumento", 2);
|
|
1904
|
+
__decorateClass([
|
|
1905
|
+
(0, import_class_transformer32.Expose)(),
|
|
1906
|
+
(0, import_class_validator32.IsDate)({ message: "debe ser una fecha" }),
|
|
1907
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "es requerido" })
|
|
1908
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "Fecha", 2);
|
|
1909
|
+
__decorateClass([
|
|
1910
|
+
(0, import_class_transformer32.Expose)(),
|
|
1911
|
+
(0, import_class_validator32.IsEnum)(["PENDIENTE", "ATENDIDO"], { message: "debe ser PENDIENTE o ATENDIDO" }),
|
|
1912
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "es requerido" })
|
|
1913
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "Estado", 2);
|
|
1845
1914
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1846
1915
|
0 && (module.exports = {
|
|
1916
|
+
AtencionOrdenesLiquidadasENTITY,
|
|
1847
1917
|
ConsumoMaterialChile9512ENTITY,
|
|
1848
1918
|
StockPersonalEquiposENTITY,
|
|
1849
1919
|
TrabajoENTITY,
|
package/dist/index.mjs
CHANGED
|
@@ -1816,7 +1816,76 @@ var StockPersonalEquiposENTITY = class {
|
|
|
1816
1816
|
CodigoLlave = "";
|
|
1817
1817
|
Equipos = [];
|
|
1818
1818
|
};
|
|
1819
|
+
|
|
1820
|
+
// src/logistica/atencion ordenes liquidadas/shared/index.ts
|
|
1821
|
+
import { Expose as Expose31 } from "class-transformer";
|
|
1822
|
+
import { IsDate as IsDate13, IsEnum, IsNotEmpty as IsNotEmpty31, IsNumber as IsNumber18, IsString as IsString27, Length as Length27, Max as Max2, Min as Min2 } from "class-validator";
|
|
1823
|
+
var AtencionOrdenesLiquidadasENTITY = class {
|
|
1824
|
+
Orden = "";
|
|
1825
|
+
CodigoSAP = "";
|
|
1826
|
+
LoteSAP = "";
|
|
1827
|
+
NumeroSerie = "";
|
|
1828
|
+
Cantidad = 0;
|
|
1829
|
+
ID_Recurso = "";
|
|
1830
|
+
NroDocumento = "";
|
|
1831
|
+
Fecha = /* @__PURE__ */ new Date();
|
|
1832
|
+
Estado = "PENDIENTE";
|
|
1833
|
+
};
|
|
1834
|
+
__decorateClass([
|
|
1835
|
+
Expose31(),
|
|
1836
|
+
IsString27({ message: "debe ser un texto" }),
|
|
1837
|
+
IsNotEmpty31({ message: "es requerido" }),
|
|
1838
|
+
Length27(1, 30, { message: "debe tener entre 1 y 30 caracteres" })
|
|
1839
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "Orden", 2);
|
|
1840
|
+
__decorateClass([
|
|
1841
|
+
Expose31(),
|
|
1842
|
+
IsString27({ message: "debe ser un texto" }),
|
|
1843
|
+
IsNotEmpty31({ message: "es requerido" }),
|
|
1844
|
+
Length27(1, 30, { message: "debe tener entre 1 y 30 caracteres" })
|
|
1845
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "CodigoSAP", 2);
|
|
1846
|
+
__decorateClass([
|
|
1847
|
+
Expose31(),
|
|
1848
|
+
IsString27({ message: "debe ser un texto" }),
|
|
1849
|
+
IsNotEmpty31({ message: "es requerido" }),
|
|
1850
|
+
Length27(1, 30, { message: "debe tener entre 1 y 30 caracteres" })
|
|
1851
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "LoteSAP", 2);
|
|
1852
|
+
__decorateClass([
|
|
1853
|
+
Expose31(),
|
|
1854
|
+
IsString27({ message: "debe ser un texto" }),
|
|
1855
|
+
IsNotEmpty31({ message: "es requerido" }),
|
|
1856
|
+
Length27(1, 30, { message: "debe tener entre 1 y 30 caracteres" })
|
|
1857
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "NumeroSerie", 2);
|
|
1858
|
+
__decorateClass([
|
|
1859
|
+
Expose31(),
|
|
1860
|
+
IsNumber18({}, { message: "debe ser un numero" }),
|
|
1861
|
+
IsNotEmpty31({ message: "es requerido" }),
|
|
1862
|
+
Min2(0, { message: "el valor m\xEDnimo es 0" }),
|
|
1863
|
+
Max2(1e3, { message: "el valor m\xE1ximo es 1000" })
|
|
1864
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "Cantidad", 2);
|
|
1865
|
+
__decorateClass([
|
|
1866
|
+
Expose31(),
|
|
1867
|
+
IsString27({ message: "debe ser un texto" }),
|
|
1868
|
+
IsNotEmpty31({ message: "es requerido" }),
|
|
1869
|
+
Length27(1, 40, { message: "debe tener entre 1 y 40 caracteres" })
|
|
1870
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "ID_Recurso", 2);
|
|
1871
|
+
__decorateClass([
|
|
1872
|
+
Expose31(),
|
|
1873
|
+
IsString27({ message: "debe ser un texto" }),
|
|
1874
|
+
IsNotEmpty31({ message: "es requerido" }),
|
|
1875
|
+
Length27(1, 60, { message: "debe tener entre 1 y 60 caracteres" })
|
|
1876
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "NroDocumento", 2);
|
|
1877
|
+
__decorateClass([
|
|
1878
|
+
Expose31(),
|
|
1879
|
+
IsDate13({ message: "debe ser una fecha" }),
|
|
1880
|
+
IsNotEmpty31({ message: "es requerido" })
|
|
1881
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "Fecha", 2);
|
|
1882
|
+
__decorateClass([
|
|
1883
|
+
Expose31(),
|
|
1884
|
+
IsEnum(["PENDIENTE", "ATENDIDO"], { message: "debe ser PENDIENTE o ATENDIDO" }),
|
|
1885
|
+
IsNotEmpty31({ message: "es requerido" })
|
|
1886
|
+
], AtencionOrdenesLiquidadasENTITY.prototype, "Estado", 2);
|
|
1819
1887
|
export {
|
|
1888
|
+
AtencionOrdenesLiquidadasENTITY,
|
|
1820
1889
|
ConsumoMaterialChile9512ENTITY,
|
|
1821
1890
|
StockPersonalEquiposENTITY,
|
|
1822
1891
|
TrabajoENTITY,
|