@win2win/shared 1.0.154 → 1.0.156

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.
@@ -5,4 +5,5 @@ export * from "./landings";
5
5
  export * from "./layout_documentos";
6
6
  export * from "./liquidaciones";
7
7
  export * from "./props";
8
+ export * from "./raw_entities";
8
9
  export * from "./shared";
@@ -21,4 +21,5 @@ __exportStar(require("./landings"), exports);
21
21
  __exportStar(require("./layout_documentos"), exports);
22
22
  __exportStar(require("./liquidaciones"), exports);
23
23
  __exportStar(require("./props"), exports);
24
+ __exportStar(require("./raw_entities"), exports);
24
25
  __exportStar(require("./shared"), exports);
@@ -0,0 +1,20 @@
1
+ export interface ArchivoRaw {
2
+ FILETYPE: string;
3
+ ID_ARCHIVO: number;
4
+ LOCATION: string;
5
+ FILENAME: string;
6
+ ID_DOCUMENTACION_SOLICITADA: number;
7
+ DESCRIPCION: string;
8
+ OBSERVACION: null;
9
+ TAGS: string;
10
+ APROBADA: string;
11
+ ESTADO: number;
12
+ SUBIDO_POR: null;
13
+ APROBADO_POR: number;
14
+ FECHA_SUBIDA: Date;
15
+ FECHA_APROBADO: Date;
16
+ ID_CONTACTO: null;
17
+ ID_PRODUCTO: number;
18
+ PUBLICO: boolean;
19
+ PRINCIPAL: boolean;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { GamaProp } from "../props";
2
+ import { JsonObject } from "../shared";
3
+ export interface GamaRaw {
4
+ ID_GAMA: number;
5
+ ID_GAMA_PADRE: number;
6
+ ID_EMPRESA: number;
7
+ CODIGO: number;
8
+ NOMBRE: string;
9
+ ESTADO: string;
10
+ MOSTRAR: string;
11
+ PROPS: GamaProp[];
12
+ REQUIERE: JsonObject;
13
+ PRESENTACION: JsonObject;
14
+ FECHA_CREADO: Date;
15
+ FECHA_UPD: Date;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './archivo';
2
+ export * from './gama';
3
+ export * from './producto';
@@ -0,0 +1,19 @@
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("./archivo"), exports);
18
+ __exportStar(require("./gama"), exports);
19
+ __exportStar(require("./producto"), exports);
@@ -0,0 +1,36 @@
1
+ import { JsonObject } from "../shared";
2
+ import { ArchivoRaw } from "./archivo";
3
+ import { GamaRaw } from "./gama";
4
+ export interface ProductoRaw {
5
+ ID_PRODUCTO: number;
6
+ ID_EMPRESA: number;
7
+ COD_ART_MVX: string;
8
+ PACK: boolean;
9
+ NOMBRE: string;
10
+ DESCRIPCION: string;
11
+ ID_CAPTACION: number;
12
+ ID_PROVEEDOR: number;
13
+ PAQUETE?: boolean;
14
+ PRECIO?: number;
15
+ PRECIOS?: any[];
16
+ ID_PRODUCTOS_PAQUETE?: string;
17
+ TIPO: string;
18
+ ESTADO: string;
19
+ ID_GAMA: number;
20
+ ID_TIE_DEF: string;
21
+ PROPS: JsonObject;
22
+ PRODUCT_PROPS?: any;
23
+ PUBLICO: boolean;
24
+ FECHA_UPD: Date;
25
+ FECHA_CREADO: Date;
26
+ GRUPO: string;
27
+ UNDBASICA: string;
28
+ FACTORAGR: string;
29
+ CONTROLLOTE: string;
30
+ TIPO_CLIENTE: string;
31
+ UBICACION: JsonObject;
32
+ GAMA: GamaRaw;
33
+ R_IMG: Partial<ArchivoRaw>[];
34
+ TIE: any;
35
+ TAGS: string;
36
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,3 +2,7 @@ export type SerializedFunction = string;
2
2
  export type Prettify<T> = {
3
3
  [K in keyof T]: T[K];
4
4
  } & {};
5
+ export type JsonObject = Record<string, any>;
6
+ export type StringKeys<T> = Extract<keyof T, string>;
7
+ export type UppercasedKeys<T extends JsonObject> = Record<Uppercase<StringKeys<T>>, T[StringKeys<T>]>;
8
+ export type LowercasedKeys<T extends JsonObject> = Record<Lowercase<StringKeys<T>>, T[StringKeys<T>]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.154",
3
+ "version": "1.0.156",
4
4
  "description": "Tipos, interfaces, funciones, constantes, clases y enums compartidos por todos los proyectos de Win2Win",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",