ingeniuscliq-core 0.3.0 → 0.3.2
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
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 }),
|
|
@@ -7,5 +7,7 @@ import { CoreDesignTemplate, CoreDesignTemplateSettings } from '../../../types/u
|
|
|
7
7
|
export declare class CoreCustomizationBaseService extends BaseService {
|
|
8
8
|
constructor();
|
|
9
9
|
fetchTemplate(): Promise<import('axios').AxiosResponse<BaseApiResponse<CoreDesignTemplate>, any>>;
|
|
10
|
-
fetchSettings(): Promise<import('axios').AxiosResponse<BaseApiResponse<
|
|
10
|
+
fetchSettings(): Promise<import('axios').AxiosResponse<BaseApiResponse<{
|
|
11
|
+
configuration: CoreDesignTemplateSettings;
|
|
12
|
+
}>, any>>;
|
|
11
13
|
}
|