@win2win/shared 1.0.137 → 1.0.139

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.
@@ -198,6 +198,7 @@ exports.ECOMMERCE_TEMPLATES_LABELS = [
198
198
  "ecommerce-filters",
199
199
  "ecommerce-checkout",
200
200
  "ecommerce-categories",
201
+ "ecommerce-highlights"
201
202
  ];
202
203
  Object.freeze(exports.ECOMMERCE_TEMPLATES_LABELS);
203
204
  exports.CHECKOUT_TEMPLATES_LABELS = ["shopcart-products"];
@@ -1,3 +1,4 @@
1
- export * from './id';
2
- export * from './shared-types';
3
- export * from './timestamp';
1
+ export * from "./id";
2
+ export * from "./query-params";
3
+ export * from "./shared-types";
4
+ export * from "./timestamp";
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./id"), exports);
18
+ __exportStar(require("./query-params"), exports);
18
19
  __exportStar(require("./shared-types"), exports);
19
20
  __exportStar(require("./timestamp"), exports);
@@ -0,0 +1,40 @@
1
+ type ComparisonValue = string | number | boolean | Date | string[] | number[];
2
+ export interface StrictQueryParams {
3
+ startRow: number;
4
+ fetchCount: number;
5
+ sortBy: string;
6
+ descending: boolean;
7
+ terms: string;
8
+ bycol: {
9
+ [key: string]: ComparisonValue;
10
+ };
11
+ byEqualCol: {
12
+ [key: string]: ComparisonValue;
13
+ };
14
+ byNotEqualCol: {
15
+ [key: string]: ComparisonValue;
16
+ };
17
+ byGreaterCol: {
18
+ [key: string]: ComparisonValue;
19
+ };
20
+ byLessCol: {
21
+ [key: string]: ComparisonValue;
22
+ };
23
+ byBetweenCol: {
24
+ [key: string]: {
25
+ from: string | number;
26
+ to: string | number;
27
+ };
28
+ };
29
+ custom: {
30
+ [key: string]: ComparisonValue;
31
+ };
32
+ counters: {
33
+ value: (string | number)[];
34
+ type?: string;
35
+ dynamic?: boolean;
36
+ };
37
+ keysToCompareTerms: string[];
38
+ }
39
+ export type QueryParams = Partial<StrictQueryParams>;
40
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.137",
3
+ "version": "1.0.139",
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",