@win2win/shared 1.0.13 → 1.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/{enums.d.ts → enums/captacion.d.ts} +0 -6
- package/dist/{enums.js → enums/captacion.js} +1 -10
- package/dist/enums/garantia.d.ts +6 -0
- package/dist/enums/garantia.js +10 -0
- package/dist/enums/index.d.ts +4 -0
- package/dist/enums/index.js +20 -0
- package/dist/enums/liquidacion.d.ts +7 -0
- package/dist/enums/liquidacion.js +11 -0
- package/dist/enums/producto.d.ts +12 -0
- package/dist/enums/producto.js +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/dist/interfaces/liquidaciones/rule.d.ts +0 -28
- package/dist/interfaces/liquidaciones/rule.js +0 -24
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EstadoCaptacion = exports.TipoCaptacion =
|
|
4
|
-
var TipoGarantia;
|
|
5
|
-
(function (TipoGarantia) {
|
|
6
|
-
TipoGarantia["INMUEBLE"] = "Propiedad inmobiliaria";
|
|
7
|
-
TipoGarantia["VEHICULO"] = "Veh\u00EDculo";
|
|
8
|
-
TipoGarantia["AVAL_PERSONAL"] = "Aval personal";
|
|
9
|
-
TipoGarantia["OTROS"] = "Otros";
|
|
10
|
-
})(TipoGarantia || (exports.TipoGarantia = TipoGarantia = {}));
|
|
11
|
-
// TODO: cambiar a textos en vez de numeros string??
|
|
3
|
+
exports.EstadoCaptacion = exports.TipoCaptacion = void 0;
|
|
12
4
|
var TipoCaptacion;
|
|
13
5
|
(function (TipoCaptacion) {
|
|
14
6
|
TipoCaptacion["CLIENTES"] = "1";
|
|
@@ -17,7 +9,6 @@ var TipoCaptacion;
|
|
|
17
9
|
TipoCaptacion["PRODUCTOS"] = "4";
|
|
18
10
|
TipoCaptacion["PEDIDOS"] = "5";
|
|
19
11
|
})(TipoCaptacion || (exports.TipoCaptacion = TipoCaptacion = {}));
|
|
20
|
-
// TODO: cambiar a textos en vez de numeros string??
|
|
21
12
|
var EstadoCaptacion;
|
|
22
13
|
(function (EstadoCaptacion) {
|
|
23
14
|
EstadoCaptacion["EN_ESTUDIO"] = "1";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TipoGarantia = void 0;
|
|
4
|
+
var TipoGarantia;
|
|
5
|
+
(function (TipoGarantia) {
|
|
6
|
+
TipoGarantia["INMUEBLE"] = "Propiedad inmobiliaria";
|
|
7
|
+
TipoGarantia["VEHICULO"] = "Veh\u00EDculo";
|
|
8
|
+
TipoGarantia["AVAL_PERSONAL"] = "Aval personal";
|
|
9
|
+
TipoGarantia["OTROS"] = "Otros";
|
|
10
|
+
})(TipoGarantia || (exports.TipoGarantia = TipoGarantia = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./captacion"), exports);
|
|
18
|
+
__exportStar(require("./garantia"), exports);
|
|
19
|
+
__exportStar(require("./liquidacion"), exports);
|
|
20
|
+
__exportStar(require("./producto"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EstadoLiquidacion = void 0;
|
|
4
|
+
var EstadoLiquidacion;
|
|
5
|
+
(function (EstadoLiquidacion) {
|
|
6
|
+
EstadoLiquidacion[EstadoLiquidacion["EN_PREVISION"] = 1] = "EN_PREVISION";
|
|
7
|
+
EstadoLiquidacion[EstadoLiquidacion["CONFIRMACION_PENDIENTE"] = 2] = "CONFIRMACION_PENDIENTE";
|
|
8
|
+
EstadoLiquidacion[EstadoLiquidacion["CONFIRMADA"] = 3] = "CONFIRMADA";
|
|
9
|
+
EstadoLiquidacion[EstadoLiquidacion["PAGADA"] = 4] = "PAGADA";
|
|
10
|
+
EstadoLiquidacion[EstadoLiquidacion["CON_RECLAMOS"] = 5] = "CON_RECLAMOS";
|
|
11
|
+
})(EstadoLiquidacion || (exports.EstadoLiquidacion = EstadoLiquidacion = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TipoProducto = exports.EstadoProducto = void 0;
|
|
4
|
+
var EstadoProducto;
|
|
5
|
+
(function (EstadoProducto) {
|
|
6
|
+
EstadoProducto["DESHABILITADO"] = "0";
|
|
7
|
+
EstadoProducto["INACTIVO"] = "1";
|
|
8
|
+
EstadoProducto["ACTIVADO"] = "2";
|
|
9
|
+
EstadoProducto["PUBLICO"] = "3";
|
|
10
|
+
})(EstadoProducto || (exports.EstadoProducto = EstadoProducto = {}));
|
|
11
|
+
var TipoProducto;
|
|
12
|
+
(function (TipoProducto) {
|
|
13
|
+
TipoProducto["ARTICULO"] = "1";
|
|
14
|
+
TipoProducto["SERVICIO_CONTRATO"] = "2";
|
|
15
|
+
TipoProducto["MEMBRESIA"] = "3";
|
|
16
|
+
TipoProducto["OFERTA_EMPLEO"] = "4";
|
|
17
|
+
})(TipoProducto || (exports.TipoProducto = TipoProducto = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
17
18
|
__exportStar(require("./interfaces"), exports);
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare const RULE_OPERATORS: readonly ["==", "!=", "<", ">", "IN"];
|
|
2
|
-
export declare const LOGIC_OPERATORS: readonly ["AND", "OR"];
|
|
3
|
-
export type RuleOperator = typeof RULE_OPERATORS[number];
|
|
4
|
-
export type LogicOperator = typeof LOGIC_OPERATORS[number];
|
|
5
|
-
export declare const SOURCES: readonly ["IMPORTACION", "TABLA", "CONTENEDOR"];
|
|
6
|
-
export type LiquidacionRuleSourceType = typeof SOURCES[number];
|
|
7
|
-
export interface LiquidacionRule {
|
|
8
|
-
id: string;
|
|
9
|
-
sourceType: LiquidacionRuleSourceType;
|
|
10
|
-
sourceCode: LiquidacionRuleTable | IdImportacion;
|
|
11
|
-
field: string;
|
|
12
|
-
operator: RuleOperator | LogicOperator;
|
|
13
|
-
value: any;
|
|
14
|
-
parentId?: string | null;
|
|
15
|
-
}
|
|
16
|
-
export declare const TABLES_FIELDS: {
|
|
17
|
-
readonly PRODUCTOS: readonly ["TIPO", "NOMBRE", "DESCRIPCION", "ID_GAMA", "ESTADO", "TAGS", "ID_PRODUCTO", "PROPS", "COD_ART_MVX"];
|
|
18
|
-
readonly CAPTACION: readonly ["ESTADO", "TIPO", "CAPTADO", "ID_CAPTACION", "FECHA_CAPTADO"];
|
|
19
|
-
};
|
|
20
|
-
export declare const TABLES: readonly [{
|
|
21
|
-
readonly label: "PRODUCTOS";
|
|
22
|
-
readonly value: "PRODUCTOS";
|
|
23
|
-
}, {
|
|
24
|
-
readonly label: "CAPTACIONES";
|
|
25
|
-
readonly value: "CAPTACION";
|
|
26
|
-
}];
|
|
27
|
-
export type LiquidacionRuleTable = typeof TABLES[number]['value'];
|
|
28
|
-
export type IdImportacion = number;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TABLES = exports.TABLES_FIELDS = exports.SOURCES = exports.LOGIC_OPERATORS = exports.RULE_OPERATORS = void 0;
|
|
4
|
-
exports.RULE_OPERATORS = ['==', '!=', '<', '>', 'IN'];
|
|
5
|
-
exports.LOGIC_OPERATORS = ['AND', 'OR'];
|
|
6
|
-
exports.SOURCES = [
|
|
7
|
-
'IMPORTACION',
|
|
8
|
-
'TABLA',
|
|
9
|
-
'CONTENEDOR'
|
|
10
|
-
];
|
|
11
|
-
exports.TABLES_FIELDS = {
|
|
12
|
-
'PRODUCTOS': ['TIPO', 'NOMBRE', 'DESCRIPCION', 'ID_GAMA', 'ESTADO', 'TAGS', 'ID_PRODUCTO', 'PROPS', 'COD_ART_MVX'],
|
|
13
|
-
'CAPTACION': ['ESTADO', 'TIPO', 'CAPTADO', 'ID_CAPTACION', 'FECHA_CAPTADO']
|
|
14
|
-
};
|
|
15
|
-
exports.TABLES = [
|
|
16
|
-
{
|
|
17
|
-
label: 'PRODUCTOS',
|
|
18
|
-
value: 'PRODUCTOS'
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
label: 'CAPTACIONES',
|
|
22
|
-
value: 'CAPTACION'
|
|
23
|
-
}
|
|
24
|
-
];
|