@win2win/shared 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -6,4 +6,6 @@ version 1.0.1
6
6
  * Correr el comando
7
7
  `npm run deploy`
8
8
 
9
+ * [Enlace al repo](https://www.npmjs.com/package/@win2win/shared)
10
+
9
11
 
@@ -0,0 +1,23 @@
1
+ export declare enum TipoGarantia {
2
+ INMUEBLE = "Propiedad inmobiliaria",
3
+ VEHICULO = "Veh\u00EDculo",
4
+ AVAL_PERSONAL = "Aval personal",
5
+ OTROS = "Otros"
6
+ }
7
+ export declare enum TipoCaptacion {
8
+ CLIENTES = "1",
9
+ PROVEEDORES = "2",
10
+ USUARIOS = "3",
11
+ PRODUCTOS = "4",
12
+ PEDIDOS = "5"
13
+ }
14
+ export declare enum EstadoCaptacion {
15
+ EN_ESTUDIO = "1",
16
+ PRE_APROBADA = "2",
17
+ APROBADA = "3",// informacion y documentos validados
18
+ EN_NEGOCIACION = "4",// TIE generado
19
+ NEGOCIACION_FINALIZADA = "5",// TIE aprobado
20
+ CONFIRMADA = "6",// confirmada por el solicitante
21
+ FINALIZADA = "7",// finalizada por admin
22
+ CANCELADA = "0"
23
+ }
package/dist/enums.js ADDED
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EstadoCaptacion = exports.TipoCaptacion = 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 = {}));
11
+ // TODO: cambiar a textos en vez de numeros string??
12
+ var TipoCaptacion;
13
+ (function (TipoCaptacion) {
14
+ TipoCaptacion["CLIENTES"] = "1";
15
+ TipoCaptacion["PROVEEDORES"] = "2";
16
+ TipoCaptacion["USUARIOS"] = "3";
17
+ TipoCaptacion["PRODUCTOS"] = "4";
18
+ TipoCaptacion["PEDIDOS"] = "5";
19
+ })(TipoCaptacion || (exports.TipoCaptacion = TipoCaptacion = {}));
20
+ // TODO: cambiar a textos en vez de numeros string??
21
+ var EstadoCaptacion;
22
+ (function (EstadoCaptacion) {
23
+ EstadoCaptacion["EN_ESTUDIO"] = "1";
24
+ EstadoCaptacion["PRE_APROBADA"] = "2";
25
+ EstadoCaptacion["APROBADA"] = "3";
26
+ EstadoCaptacion["EN_NEGOCIACION"] = "4";
27
+ EstadoCaptacion["NEGOCIACION_FINALIZADA"] = "5";
28
+ EstadoCaptacion["CONFIRMADA"] = "6";
29
+ EstadoCaptacion["FINALIZADA"] = "7";
30
+ EstadoCaptacion["CANCELADA"] = "0";
31
+ })(EstadoCaptacion || (exports.EstadoCaptacion = EstadoCaptacion = {}));
@@ -1 +1,2 @@
1
+ export * from './liquidaciones';
1
2
  export * from './props';
@@ -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("./liquidaciones"), exports);
17
18
  __exportStar(require("./props"), exports);
@@ -0,0 +1 @@
1
+ export * from './rule';
@@ -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("./rule"), exports);
@@ -0,0 +1,23 @@
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"];
6
+ export type LiquidacionRuleSourceType = typeof SOURCES[number];
7
+ export interface LiquidacionRule {
8
+ id: string;
9
+ parentId?: string | null;
10
+ sourceType: LiquidacionRuleSourceType;
11
+ sourceCode: string | number;
12
+ field: string;
13
+ operator: LiquidacionRuleOperator | LiquidacionRuleLogicOperator;
14
+ value: any;
15
+ }
16
+ export declare const TABLES_FIELDS: {
17
+ PRODUCTOS: string[];
18
+ CAPTACION: string[];
19
+ };
20
+ export declare const TABLES: {
21
+ label: string;
22
+ value: string;
23
+ }[];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TABLES = exports.TABLES_FIELDS = exports.SOURCES = exports.RULE_LOGIC_OPERATORS = exports.RULE_OPERATORS = void 0;
4
+ exports.RULE_OPERATORS = ['==', '!=', '<', '>', 'IN'];
5
+ exports.RULE_LOGIC_OPERATORS = ['AND', 'OR'];
6
+ exports.SOURCES = [
7
+ 'IMPORTACION',
8
+ 'TABLA',
9
+ // 'CONTENEDOR'
10
+ ];
11
+ exports.TABLES_FIELDS = {
12
+ 'PRODUCTOS': ['TIPO', 'NOMBRE', 'DESCRIPCION', 'ESTADO', 'TAGS', 'ID_PRODUCTO', 'PROPS'], // 'GAMA'
13
+ 'CAPTACION': ['ESTADO', 'CAPTADO', 'ID_CAPTACION']
14
+ };
15
+ exports.TABLES = [
16
+ {
17
+ label: 'PRODUCTOS',
18
+ value: 'PRODUCTOS'
19
+ },
20
+ {
21
+ label: 'CAPTACIONES',
22
+ value: 'CAPTACION'
23
+ }
24
+ ];
@@ -17,6 +17,7 @@ export interface GamaProp {
17
17
  prefix?: string;
18
18
  options?: GamaPropOption[];
19
19
  mappers?: GamaPropMapper[];
20
+ customParams?: object;
20
21
  }
21
22
  export type GamaPropModel = GamaProp & {
22
23
  value: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",