autoql-fe-utils 1.2.0 → 1.3.0
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.d.ts +7 -1
- package/dist/index.global.js +15 -0
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9706,6 +9706,21 @@ var fetchDataAlerts = ({ domain, apiKey, token }) => {
|
|
|
9706
9706
|
return Promise.reject((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data);
|
|
9707
9707
|
});
|
|
9708
9708
|
};
|
|
9709
|
+
var getDataAlertsByLabel = ({ domain, apiKey, token, lableId }) => {
|
|
9710
|
+
if (!token || !apiKey || !domain) {
|
|
9711
|
+
return Promise.reject(new Error("UNAUTHORIZED"));
|
|
9712
|
+
}
|
|
9713
|
+
const url = `${domain}/autoql/api/v1/data-alerts?key=${apiKey}&label=${lableId}`;
|
|
9714
|
+
const config = {
|
|
9715
|
+
headers: {
|
|
9716
|
+
Authorization: `Bearer ${token}`
|
|
9717
|
+
}
|
|
9718
|
+
};
|
|
9719
|
+
return axios3.get(url, config).then((response) => Promise.resolve(response)).catch((error) => {
|
|
9720
|
+
var _a;
|
|
9721
|
+
return Promise.reject((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data);
|
|
9722
|
+
});
|
|
9723
|
+
};
|
|
9709
9724
|
var fetchRule = ({ domain, apiKey, token, dataAlertId }) => {
|
|
9710
9725
|
if (!token || !apiKey || !domain) {
|
|
9711
9726
|
return Promise.reject(new Error("UNAUTHORIZED" /* UNAUTHORIZED */));
|
|
@@ -11054,6 +11069,7 @@ export {
|
|
|
11054
11069
|
getCombinedFilters,
|
|
11055
11070
|
getCurrencySymbol,
|
|
11056
11071
|
getCurrentTimezone,
|
|
11072
|
+
getDataAlertsByLabel,
|
|
11057
11073
|
getDataConfig,
|
|
11058
11074
|
getDataFormatting,
|
|
11059
11075
|
getDateColumnIndex,
|