@abyss-project/monitor 1.0.12 → 1.0.14
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/api/application-webhook-history.admin.api.d.ts +3 -0
- package/dist/api/application-webhook-history.admin.api.js +12 -0
- package/dist/api/application-webhook-history.api.d.ts +3 -0
- package/dist/api/application-webhook-history.api.js +12 -0
- package/dist/api/application-webhook.admin.api.d.ts +7 -0
- package/dist/api/application-webhook.admin.api.js +28 -0
- package/dist/api/application-webhook.api.d.ts +7 -0
- package/dist/api/application-webhook.api.js +28 -0
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.js +4 -0
- package/dist/types/interface/models/application-webhook.model.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IGetApplicationWebhookHistoryAdminParams, IGetApplicationWebhookHistoryAdminResponse, IPaginateApplicationWebhookHistoryAdminQuery, IPaginateApplicationWebhookHistoryAdminResponse } from '../types';
|
|
2
|
+
export declare const getApplicationWebhookHistoryAdmin: (params: IGetApplicationWebhookHistoryAdminParams) => Promise<IGetApplicationWebhookHistoryAdminResponse>;
|
|
3
|
+
export declare const paginateApplicationWebhookHistoryAdmin: (query: IPaginateApplicationWebhookHistoryAdminQuery) => Promise<IPaginateApplicationWebhookHistoryAdminResponse>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateApplicationWebhookHistoryAdmin = exports.getApplicationWebhookHistoryAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getApplicationWebhookHistoryAdmin = async (params) => {
|
|
6
|
+
return (await __1.AbyssMonitorCore.axios.get(`/application-webhook-history/admin/webhook-history/${params.applicationWebhookHistoryId}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getApplicationWebhookHistoryAdmin = getApplicationWebhookHistoryAdmin;
|
|
9
|
+
const paginateApplicationWebhookHistoryAdmin = async (query) => {
|
|
10
|
+
return (await __1.AbyssMonitorCore.axios.get(`/application-webhook-history/admin/webhook-history/paginate`, { params: query })).data;
|
|
11
|
+
};
|
|
12
|
+
exports.paginateApplicationWebhookHistoryAdmin = paginateApplicationWebhookHistoryAdmin;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IGetApplicationWebhookHistoryParams, IGetApplicationWebhookHistoryResponse, IPaginateApplicationWebhookHistoryParams, IPaginateApplicationWebhookHistoryQuery, IPaginateApplicationWebhookHistoryResponse } from '../types';
|
|
2
|
+
export declare const getApplicationWebhookHistory: (params: IGetApplicationWebhookHistoryParams) => Promise<IGetApplicationWebhookHistoryResponse>;
|
|
3
|
+
export declare const paginateApplicationWebhookHistory: (params: IPaginateApplicationWebhookHistoryParams, query: IPaginateApplicationWebhookHistoryQuery) => Promise<IPaginateApplicationWebhookHistoryResponse>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateApplicationWebhookHistory = exports.getApplicationWebhookHistory = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getApplicationWebhookHistory = async (params) => {
|
|
6
|
+
return (await __1.AbyssMonitorCore.axios.get(`application-webhook-history/${params.applicationId}/webhook-history/${params.applicationWebhookHistoryId}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getApplicationWebhookHistory = getApplicationWebhookHistory;
|
|
9
|
+
const paginateApplicationWebhookHistory = async (params, query) => {
|
|
10
|
+
return (await __1.AbyssMonitorCore.axios.get(`application-webhook-history/${params.applicationId}/webhook-history/paginate`, { params: query })).data;
|
|
11
|
+
};
|
|
12
|
+
exports.paginateApplicationWebhookHistory = paginateApplicationWebhookHistory;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ICreateApplicationWebhookAdminBody, ICreateApplicationWebhookAdminParams, ICreateApplicationWebhookAdminResponse, IDeleteApplicationWebhookAdminParams, IGetApplicationWebhookAdminParams, IGetApplicationWebhookAdminResponse, IPaginateApplicationWebhookAdminQuery, IPaginateApplicationWebhookAdminResponse, IResetSecretApplicationWebhookAdminParams, IResetSecretApplicationWebhookAdminResponse, IUpdateApplicationWebhookAdminBody, IUpdateApplicationWebhookAdminParams, IUpdateApplicationWebhookAdminResponse } from '..';
|
|
2
|
+
export declare const getApplicationWebhookAdmin: (params: IGetApplicationWebhookAdminParams) => Promise<IGetApplicationWebhookAdminResponse>;
|
|
3
|
+
export declare const deleteApplicationWebhookAdmin: (params: IDeleteApplicationWebhookAdminParams) => Promise<IGetApplicationWebhookAdminResponse>;
|
|
4
|
+
export declare const updateApplicationWebhookAdmin: (params: IUpdateApplicationWebhookAdminParams, body: IUpdateApplicationWebhookAdminBody) => Promise<IUpdateApplicationWebhookAdminResponse>;
|
|
5
|
+
export declare const resetResetSecretApplicationWebhookAdmin: (params: IResetSecretApplicationWebhookAdminParams) => Promise<IResetSecretApplicationWebhookAdminResponse>;
|
|
6
|
+
export declare const createApplicationWebhookAdmin: (params: ICreateApplicationWebhookAdminParams, body: ICreateApplicationWebhookAdminBody) => Promise<ICreateApplicationWebhookAdminResponse>;
|
|
7
|
+
export declare const paginateApplicationWebhookAdmin: (query: IPaginateApplicationWebhookAdminQuery) => Promise<IPaginateApplicationWebhookAdminResponse>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateApplicationWebhookAdmin = exports.createApplicationWebhookAdmin = exports.resetResetSecretApplicationWebhookAdmin = exports.updateApplicationWebhookAdmin = exports.deleteApplicationWebhookAdmin = exports.getApplicationWebhookAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getApplicationWebhookAdmin = async (params) => {
|
|
6
|
+
return (await __1.AbyssMonitorCore.axios.get(`application/admin/webhook/${params.applicationWebhookId}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getApplicationWebhookAdmin = getApplicationWebhookAdmin;
|
|
9
|
+
const deleteApplicationWebhookAdmin = async (params) => {
|
|
10
|
+
return (await __1.AbyssMonitorCore.axios.delete(`application/admin/webhook/${params.applicationWebhookId}`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.deleteApplicationWebhookAdmin = deleteApplicationWebhookAdmin;
|
|
13
|
+
const updateApplicationWebhookAdmin = async (params, body) => {
|
|
14
|
+
return (await __1.AbyssMonitorCore.axios.put(`application/admin/webhook/${params.applicationWebhookId}`, body)).data;
|
|
15
|
+
};
|
|
16
|
+
exports.updateApplicationWebhookAdmin = updateApplicationWebhookAdmin;
|
|
17
|
+
const resetResetSecretApplicationWebhookAdmin = async (params) => {
|
|
18
|
+
return (await __1.AbyssMonitorCore.axios.post(`application/admin/webhook/${params.applicationWebhookId}/reset-secret`)).data;
|
|
19
|
+
};
|
|
20
|
+
exports.resetResetSecretApplicationWebhookAdmin = resetResetSecretApplicationWebhookAdmin;
|
|
21
|
+
const createApplicationWebhookAdmin = async (params, body) => {
|
|
22
|
+
return (await __1.AbyssMonitorCore.axios.post(`application/admin/webhook/${params.applicationId}`, body)).data;
|
|
23
|
+
};
|
|
24
|
+
exports.createApplicationWebhookAdmin = createApplicationWebhookAdmin;
|
|
25
|
+
const paginateApplicationWebhookAdmin = async (query) => {
|
|
26
|
+
return (await __1.AbyssMonitorCore.axios.get(`application/admin/webhook/paginate`, { params: query })).data;
|
|
27
|
+
};
|
|
28
|
+
exports.paginateApplicationWebhookAdmin = paginateApplicationWebhookAdmin;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ICreateApplicationWebhookBody, ICreateApplicationWebhookParams, ICreateApplicationWebhookResponse, IDeleteApplicationWebhookParams, IGetApplicationWebhookParams, IGetApplicationWebhookResponse, IPaginateApplicationWebhookParams, IPaginateApplicationWebhookQuery, IPaginateApplicationWebhookResponse, IResetSecretApplicationWebhookParams, IResetSecretApplicationWebhookResponse, IUpdateApplicationWebhookBody, IUpdateApplicationWebhookParams, IUpdateApplicationWebhookResponse } from '..';
|
|
2
|
+
export declare const getApplicationWebhook: (params: IGetApplicationWebhookParams) => Promise<IGetApplicationWebhookResponse>;
|
|
3
|
+
export declare const deleteApplicationWebhook: (params: IDeleteApplicationWebhookParams) => Promise<IGetApplicationWebhookResponse>;
|
|
4
|
+
export declare const updateApplicationWebhook: (params: IUpdateApplicationWebhookParams, body: IUpdateApplicationWebhookBody) => Promise<IUpdateApplicationWebhookResponse>;
|
|
5
|
+
export declare const resetResetSecretApplicationWebhook: (params: IResetSecretApplicationWebhookParams) => Promise<IResetSecretApplicationWebhookResponse>;
|
|
6
|
+
export declare const createApplicationWebhook: (params: ICreateApplicationWebhookParams, body: ICreateApplicationWebhookBody) => Promise<ICreateApplicationWebhookResponse>;
|
|
7
|
+
export declare const paginateApplicationWebhook: (params: IPaginateApplicationWebhookParams, query: IPaginateApplicationWebhookQuery) => Promise<IPaginateApplicationWebhookResponse>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateApplicationWebhook = exports.createApplicationWebhook = exports.resetResetSecretApplicationWebhook = exports.updateApplicationWebhook = exports.deleteApplicationWebhook = exports.getApplicationWebhook = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getApplicationWebhook = async (params) => {
|
|
6
|
+
return (await __1.AbyssMonitorCore.axios.get(`application-webhook/${params.applicationId}/webhook/${params.applicationWebhookId}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getApplicationWebhook = getApplicationWebhook;
|
|
9
|
+
const deleteApplicationWebhook = async (params) => {
|
|
10
|
+
return (await __1.AbyssMonitorCore.axios.delete(`application-webhook/${params.applicationId}/webhook/${params.applicationWebhookId}`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.deleteApplicationWebhook = deleteApplicationWebhook;
|
|
13
|
+
const updateApplicationWebhook = async (params, body) => {
|
|
14
|
+
return (await __1.AbyssMonitorCore.axios.put(`application-webhook/${params.applicationId}/webhook/${params.applicationWebhookId}`, body)).data;
|
|
15
|
+
};
|
|
16
|
+
exports.updateApplicationWebhook = updateApplicationWebhook;
|
|
17
|
+
const resetResetSecretApplicationWebhook = async (params) => {
|
|
18
|
+
return (await __1.AbyssMonitorCore.axios.post(`application-webhook/${params.applicationId}/webhook/${params.applicationWebhookId}/reset-secret`)).data;
|
|
19
|
+
};
|
|
20
|
+
exports.resetResetSecretApplicationWebhook = resetResetSecretApplicationWebhook;
|
|
21
|
+
const createApplicationWebhook = async (params, body) => {
|
|
22
|
+
return (await __1.AbyssMonitorCore.axios.post(`application-webhook/${params.applicationId}/webhook`, body)).data;
|
|
23
|
+
};
|
|
24
|
+
exports.createApplicationWebhook = createApplicationWebhook;
|
|
25
|
+
const paginateApplicationWebhook = async (params, query) => {
|
|
26
|
+
return (await __1.AbyssMonitorCore.axios.get(`application-webhook/${params.applicationId}/webhook/paginate`, { params: query })).data;
|
|
27
|
+
};
|
|
28
|
+
exports.paginateApplicationWebhook = paginateApplicationWebhook;
|
package/dist/api/index.d.ts
CHANGED
|
@@ -12,3 +12,7 @@ export * from './application-store.api';
|
|
|
12
12
|
export * from './monitor.api';
|
|
13
13
|
export * from './application-event.admin.api';
|
|
14
14
|
export * from './application-event.api';
|
|
15
|
+
export * from './application-webhook.admin.api';
|
|
16
|
+
export * from './application-webhook.api';
|
|
17
|
+
export * from './application-webhook-history.api';
|
|
18
|
+
export * from './application-webhook-history.admin.api';
|
package/dist/api/index.js
CHANGED
|
@@ -28,3 +28,7 @@ __exportStar(require("./application-store.api"), exports);
|
|
|
28
28
|
__exportStar(require("./monitor.api"), exports);
|
|
29
29
|
__exportStar(require("./application-event.admin.api"), exports);
|
|
30
30
|
__exportStar(require("./application-event.api"), exports);
|
|
31
|
+
__exportStar(require("./application-webhook.admin.api"), exports);
|
|
32
|
+
__exportStar(require("./application-webhook.api"), exports);
|
|
33
|
+
__exportStar(require("./application-webhook-history.api"), exports);
|
|
34
|
+
__exportStar(require("./application-webhook-history.admin.api"), exports);
|
|
@@ -19,7 +19,8 @@ export interface IApplicationWebhook {
|
|
|
19
19
|
export type ApplicationWebhookFilters = {
|
|
20
20
|
[ApplicationWebhookScope.EVENT]?: {
|
|
21
21
|
include?: string[] | null;
|
|
22
|
-
exclude?: string[] | null;
|
|
23
22
|
equals?: string[] | null;
|
|
23
|
+
startsWith?: string[] | null;
|
|
24
|
+
endsWith?: string[] | null;
|
|
24
25
|
} | null;
|
|
25
26
|
};
|