@win2win/shared 1.0.7 → 1.0.9
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/interfaces/liquidaciones/comision.d.ts +4 -0
- package/dist/interfaces/liquidaciones/comision.js +8 -0
- package/dist/interfaces/liquidaciones/index.d.ts +1 -0
- package/dist/interfaces/liquidaciones/index.js +1 -0
- package/dist/interfaces/liquidaciones/rule.d.ts +5 -5
- package/dist/interfaces/liquidaciones/rule.js +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TipoComision = void 0;
|
|
4
|
+
var TipoComision;
|
|
5
|
+
(function (TipoComision) {
|
|
6
|
+
TipoComision["PORCENTAJE"] = "porcentaje";
|
|
7
|
+
TipoComision["MONTO_FIJO"] = "monto_fijo";
|
|
8
|
+
})(TipoComision || (exports.TipoComision = TipoComision = {}));
|
|
@@ -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("./comision"), exports);
|
|
17
18
|
__exportStar(require("./rule"), exports);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const RULE_OPERATORS: readonly ["==", "!=", "<", ">", "IN"];
|
|
2
|
-
export declare const
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export declare const SOURCES: readonly ["IMPORTACION", "TABLA"];
|
|
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
6
|
export type LiquidacionRuleSourceType = typeof SOURCES[number];
|
|
7
7
|
export interface LiquidacionRule {
|
|
8
8
|
id: string;
|
|
9
9
|
sourceType: LiquidacionRuleSourceType;
|
|
10
10
|
sourceCode: LiquidacionRuleTable | IdImportacion;
|
|
11
11
|
field: string;
|
|
12
|
-
operator:
|
|
12
|
+
operator: RuleOperator | LogicOperator;
|
|
13
13
|
value: any;
|
|
14
14
|
parentId?: string | null;
|
|
15
15
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TABLES = exports.TABLES_FIELDS = exports.SOURCES = exports.
|
|
3
|
+
exports.TABLES = exports.TABLES_FIELDS = exports.SOURCES = exports.LOGIC_OPERATORS = exports.RULE_OPERATORS = void 0;
|
|
4
4
|
exports.RULE_OPERATORS = ['==', '!=', '<', '>', 'IN'];
|
|
5
|
-
exports.
|
|
5
|
+
exports.LOGIC_OPERATORS = ['AND', 'OR'];
|
|
6
6
|
exports.SOURCES = [
|
|
7
7
|
'IMPORTACION',
|
|
8
8
|
'TABLA',
|
|
9
|
-
|
|
9
|
+
'CONTENEDOR'
|
|
10
10
|
];
|
|
11
11
|
exports.TABLES_FIELDS = {
|
|
12
|
-
'PRODUCTOS': ['TIPO', 'NOMBRE', 'DESCRIPCION', 'ID_GAMA', 'ESTADO', 'TAGS', 'ID_PRODUCTO', 'PROPS', 'COD_ART_MVX'],
|
|
12
|
+
'PRODUCTOS': ['TIPO', 'NOMBRE', 'DESCRIPCION', 'ID_GAMA', 'ESTADO', 'TAGS', 'ID_PRODUCTO', 'PROPS', 'COD_ART_MVX'],
|
|
13
13
|
'CAPTACION': ['ESTADO', 'TIPO', 'CAPTADO', 'ID_CAPTACION', 'FECHA_CAPTADO']
|
|
14
14
|
};
|
|
15
15
|
exports.TABLES = [
|