ingeniuscliq-core 0.3.1 → 0.3.3

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2130,8 +2130,22 @@ class Rv {
2130
2130
  getComponents: () => n().components,
2131
2131
  getStyles: () => n().styles,
2132
2132
  getSettings: () => n().settings,
2133
- fetchTemplate: async () => (await this.customizationService.fetchTemplate()).data.data,
2134
- fetchSettings: async () => (await this.customizationService.fetchSettings()).data.data.configuration,
2133
+ fetchTemplate: async () => {
2134
+ try {
2135
+ const r = await this.customizationService.fetchTemplate();
2136
+ return t({ template: r.data.data.template, styles: r.data.data.styles }), r.data.data;
2137
+ } catch (r) {
2138
+ throw t({ error: r }), r;
2139
+ }
2140
+ },
2141
+ fetchSettings: async () => {
2142
+ try {
2143
+ const r = await this.customizationService.fetchSettings();
2144
+ return t({ settings: r.data.data.configuration }), r.data.data.configuration;
2145
+ } catch (r) {
2146
+ throw t({ error: r }), r;
2147
+ }
2148
+ },
2135
2149
  setTemplate: (r) => t({ template: r }),
2136
2150
  setComponents: (r) => t({ components: r }),
2137
2151
  setStyles: (r) => t({ styles: r }),
@@ -2519,7 +2533,7 @@ class jv extends Xn {
2519
2533
  super("shipment");
2520
2534
  }
2521
2535
  getShippingMethods() {
2522
- return this.api.get(this.apiPrefix + "/shipment/shipping-methods");
2536
+ return this.api.get(this.apiPrefix + "/shipment/shipping-methods/active");
2523
2537
  }
2524
2538
  }
2525
2539
  class Z5 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",