@win2win/shared 1.0.151 → 1.0.153

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.
@@ -138,6 +138,10 @@ export declare const TEMPLATES: Readonly<{
138
138
  readonly label: "Catálogo productos destacados";
139
139
  readonly params: readonly ["title", "text", "background", "custom"];
140
140
  };
141
+ readonly widget: {
142
+ readonly label: "Widget custom";
143
+ readonly params: readonly ["code", "custom"];
144
+ };
141
145
  }>;
142
146
  export type Template = keyof typeof TEMPLATES;
143
147
  export type TemplateConfig = Prettify<(typeof TEMPLATES)[Template]>;
@@ -227,6 +231,7 @@ export interface SectionParams {
227
231
  styles?: string | Record<string, string>;
228
232
  params?: Record<string, any>;
229
233
  custom?: Record<string, any>;
234
+ code?: string;
230
235
  }
231
236
  export type SectionParam = keyof Partial<SectionParams>;
232
237
  export type SectionParamValue = SectionParams[SectionParam];
@@ -182,6 +182,10 @@ exports.TEMPLATES = Object.freeze({
182
182
  label: "Catálogo productos destacados",
183
183
  params: ["title", "text", "background", "custom"],
184
184
  },
185
+ widget: {
186
+ label: "Widget custom",
187
+ params: ["code", "custom"],
188
+ },
185
189
  });
186
190
  exports.PRODUCT_TEMPLATES_LABELS = [
187
191
  "product-carousel",
@@ -198,7 +202,8 @@ exports.ECOMMERCE_TEMPLATES_LABELS = [
198
202
  "ecommerce-filters",
199
203
  "ecommerce-checkout",
200
204
  "ecommerce-categories",
201
- "ecommerce-highlights"
205
+ "ecommerce-highlights",
206
+ "widget",
202
207
  ];
203
208
  Object.freeze(exports.ECOMMERCE_TEMPLATES_LABELS);
204
209
  exports.CHECKOUT_TEMPLATES_LABELS = ["shopcart-products"];
@@ -1,4 +1,4 @@
1
- type ComparisonValue = string | number | boolean | Date | string[] | number[];
1
+ type ComparisonValue = string | number | boolean | Date | null | undefined | string[] | number[];
2
2
  export interface StrictQueryParams {
3
3
  startRow: number;
4
4
  fetchCount: number;
@@ -37,6 +37,6 @@ export interface StrictQueryParams {
37
37
  };
38
38
  }
39
39
  export type QueryParams = Partial<StrictQueryParams>;
40
- export type PaginationQueryParams = Pick<QueryParams, 'startRow' | 'fetchCount' | 'sortBy' | 'descending'>;
40
+ export type PaginationQueryParams = Pick<QueryParams, "startRow" | "fetchCount" | "sortBy" | "descending">;
41
41
  export type FilterQueryParams = Omit<QueryParams, keyof PaginationQueryParams>;
42
42
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.151",
3
+ "version": "1.0.153",
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",