@win2win/shared 1.0.4 → 1.0.6

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.
@@ -0,0 +1 @@
1
+ export * from './layout';
@@ -0,0 +1,17 @@
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("./layout"), exports);
@@ -0,0 +1,11 @@
1
+ export declare const LAYOUT_COLUMNA_TYPES: readonly ["texto", "numero", "fecha"];
2
+ export type LayoutColumnaType = typeof LAYOUT_COLUMNA_TYPES[number];
3
+ export interface ImportacionLayoutColumn {
4
+ primary: boolean;
5
+ required: boolean;
6
+ header: string;
7
+ key: string;
8
+ type: LayoutColumnaType;
9
+ description?: string;
10
+ }
11
+ export type EstructuraImportacionLayout = ImportacionLayoutColumn[];
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LAYOUT_COLUMNA_TYPES = void 0;
4
+ exports.LAYOUT_COLUMNA_TYPES = ['texto', 'numero', 'fecha']; // considerar valor NULL ?
@@ -1,2 +1,3 @@
1
+ export * from './importaciones';
1
2
  export * from './liquidaciones';
2
3
  export * from './props';
@@ -14,5 +14,6 @@ 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("./importaciones"), exports);
17
18
  __exportStar(require("./liquidaciones"), exports);
18
19
  __exportStar(require("./props"), exports);
@@ -6,18 +6,23 @@ export declare const SOURCES: readonly ["IMPORTACION", "TABLA"];
6
6
  export type LiquidacionRuleSourceType = typeof SOURCES[number];
7
7
  export interface LiquidacionRule {
8
8
  id: string;
9
- parentId?: string | null;
10
9
  sourceType: LiquidacionRuleSourceType;
11
- sourceCode: string | number;
10
+ sourceCode: LiquidacionRuleTable | IdImportacion;
12
11
  field: string;
13
12
  operator: LiquidacionRuleOperator | LiquidacionRuleLogicOperator;
14
13
  value: any;
14
+ parentId?: string | null;
15
15
  }
16
16
  export declare const TABLES_FIELDS: {
17
- PRODUCTOS: string[];
18
- CAPTACION: string[];
17
+ readonly PRODUCTOS: readonly ["TIPO", "NOMBRE", "DESCRIPCION", "ESTADO", "TAGS", "ID_PRODUCTO", "PROPS"];
18
+ readonly CAPTACION: readonly ["ESTADO", "CAPTADO", "ID_CAPTACION"];
19
19
  };
20
- export declare const TABLES: {
21
- label: string;
22
- value: string;
23
- }[];
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",