@win2win/shared 1.0.7 → 1.0.8

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.
@@ -1,15 +1,15 @@
1
1
  export declare const RULE_OPERATORS: readonly ["==", "!=", "<", ">", "IN"];
2
- export declare const RULE_LOGIC_OPERATORS: readonly ["AND", "OR"];
3
- export type LiquidacionRuleOperator = typeof RULE_OPERATORS[number];
4
- export type LiquidacionRuleLogicOperator = typeof RULE_LOGIC_OPERATORS[number];
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: LiquidacionRuleOperator | LiquidacionRuleLogicOperator;
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.RULE_LOGIC_OPERATORS = exports.RULE_OPERATORS = void 0;
3
+ exports.TABLES = exports.TABLES_FIELDS = exports.SOURCES = exports.LOGIC_OPERATORS = exports.RULE_OPERATORS = void 0;
4
4
  exports.RULE_OPERATORS = ['==', '!=', '<', '>', 'IN'];
5
- exports.RULE_LOGIC_OPERATORS = ['AND', 'OR'];
5
+ exports.LOGIC_OPERATORS = ['AND', 'OR'];
6
6
  exports.SOURCES = [
7
7
  'IMPORTACION',
8
8
  'TABLA',
9
- // 'CONTENEDOR'
9
+ 'CONTENEDOR'
10
10
  ];
11
11
  exports.TABLES_FIELDS = {
12
- 'PRODUCTOS': ['TIPO', 'NOMBRE', 'DESCRIPCION', 'ID_GAMA', 'ESTADO', 'TAGS', 'ID_PRODUCTO', 'PROPS', 'COD_ART_MVX'], // 'GAMA'
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 = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",