@win2win/shared 1.0.153 → 1.0.155

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.
@@ -193,6 +193,7 @@ exports.PRODUCT_TEMPLATES_LABELS = [
193
193
  "product-simple-info",
194
194
  "product-location",
195
195
  "product-description",
196
+ "widget",
196
197
  ];
197
198
  Object.freeze(exports.PRODUCT_TEMPLATES_LABELS);
198
199
  exports.ECOMMERCE_TEMPLATES_LABELS = [
@@ -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.153",
3
+ "version": "1.0.155",
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",