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.
- package/dist/index.js +17 -3
- 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 () =>
|
|
2134
|
-
|
|
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 {
|