@win2win/shared 1.0.63 → 1.0.64

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,59 @@
1
+ export interface CanalProps {
2
+ items: CanalItem[][];
3
+ filters: CanalFilters;
4
+ sorting: CanalSorting[];
5
+ grid: CanalGridParams;
6
+ ads: CanalAd[];
7
+ timers: CanalTimers;
8
+ rates: CanalRates;
9
+ defaultSlot?: string;
10
+ }
11
+ export interface CanalItem {
12
+ path: string[];
13
+ format: string;
14
+ label: string;
15
+ image: string;
16
+ }
17
+ export interface CanalRates {
18
+ enabled: boolean;
19
+ items: CanalRateItem[];
20
+ }
21
+ export interface CanalRateItem {
22
+ type: 'product' | 'ad';
23
+ tag: string;
24
+ percentage: number;
25
+ }
26
+ export interface CanalFilters {
27
+ tags?: string[];
28
+ gamas?: number[];
29
+ proveedores?: string[];
30
+ }
31
+ export interface CanalSorting {
32
+ by: string | null;
33
+ order: 'ASC' | 'DESC';
34
+ }
35
+ export interface CanalGridParams {
36
+ rows: number;
37
+ columns: number;
38
+ gap: number;
39
+ }
40
+ export interface CanalTimers {
41
+ grid: {
42
+ duration: number;
43
+ };
44
+ product: {
45
+ duration: number;
46
+ };
47
+ ads: {
48
+ frequency: number;
49
+ duration: number;
50
+ };
51
+ }
52
+ export interface CanalAd {
53
+ file?: any;
54
+ image: string;
55
+ link: string;
56
+ qr: boolean;
57
+ order: number;
58
+ hidden: boolean;
59
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from './canal-props';
@@ -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("./canal-props"), exports);
@@ -1,3 +1,4 @@
1
+ export * from './escaparates';
1
2
  export * from './importaciones';
2
3
  export * from './layout_documentos';
3
4
  export * from './liquidaciones';
@@ -14,6 +14,7 @@ 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("./escaparates"), exports);
17
18
  __exportStar(require("./importaciones"), exports);
18
19
  __exportStar(require("./layout_documentos"), exports);
19
20
  __exportStar(require("./liquidaciones"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
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",