autoql-fe-utils 1.0.117 → 1.0.118
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 +3 -1
- package/dist/index.global.js +4 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2215,13 +2215,15 @@ declare const fetchNotificationCount: ({ domain, apiKey, token, unacknowledged }
|
|
|
2215
2215
|
token: any;
|
|
2216
2216
|
unacknowledged?: number;
|
|
2217
2217
|
}) => Promise<axios.AxiosResponse<any, any>>;
|
|
2218
|
-
declare const fetchNotificationFeed: ({ domain, apiKey, token, offset, limit, enableFetchAllNotificationFeedAcrossProjects, }: {
|
|
2218
|
+
declare const fetchNotificationFeed: ({ domain, apiKey, token, offset, limit, enableFetchAllNotificationFeedAcrossProjects, selectedProjectId, notificationTitle, }: {
|
|
2219
2219
|
domain: any;
|
|
2220
2220
|
apiKey: any;
|
|
2221
2221
|
token: any;
|
|
2222
2222
|
offset: any;
|
|
2223
2223
|
limit: any;
|
|
2224
2224
|
enableFetchAllNotificationFeedAcrossProjects: any;
|
|
2225
|
+
selectedProjectId?: string;
|
|
2226
|
+
notificationTitle?: string;
|
|
2225
2227
|
}) => Promise<any>;
|
|
2226
2228
|
declare const fetchNotificationChannels: ({ domain, apiKey, token, channelType }: {
|
|
2227
2229
|
domain: any;
|
package/dist/index.global.js
CHANGED
|
@@ -29102,7 +29102,9 @@
|
|
|
29102
29102
|
token,
|
|
29103
29103
|
offset,
|
|
29104
29104
|
limit,
|
|
29105
|
-
enableFetchAllNotificationFeedAcrossProjects
|
|
29105
|
+
enableFetchAllNotificationFeedAcrossProjects,
|
|
29106
|
+
selectedProjectId = "all",
|
|
29107
|
+
notificationTitle = ""
|
|
29106
29108
|
}) => {
|
|
29107
29109
|
if (!token || !apiKey || !domain) {
|
|
29108
29110
|
return Promise.reject(new Error("UNAUTHORIZED"));
|
|
@@ -29112,7 +29114,7 @@
|
|
|
29112
29114
|
Authorization: `Bearer ${token}`
|
|
29113
29115
|
}
|
|
29114
29116
|
});
|
|
29115
|
-
const withoutProjectsRestriction =
|
|
29117
|
+
const withoutProjectsRestriction = `&project=${selectedProjectId}&title=${notificationTitle}`;
|
|
29116
29118
|
let url2 = `${domain}/autoql/api/v1/data-alerts/notifications?key=${apiKey}&offset=${offset}&limit=${limit}`;
|
|
29117
29119
|
if (enableFetchAllNotificationFeedAcrossProjects) {
|
|
29118
29120
|
url2 = url2 + withoutProjectsRestriction;
|