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