@abyss-project/console 1.0.5 → 1.0.6
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.
|
@@ -5,5 +5,5 @@ export declare const updateWorkflowStatus: (params: IGetWorkflowAdminParams, bod
|
|
|
5
5
|
export declare const deleteWorkflow: (params: IGetWorkflowAdminParams) => Promise<IDeleteWorkflowAdminResponse>;
|
|
6
6
|
export declare const paginateWorkflowExecution: (query: IPaginateWorkflowExecutionsAdminQuery) => Promise<IPaginateWorkflowExecutionAdminResponse>;
|
|
7
7
|
export declare const cancelWorkflowExecution: (params: ICancelWorkflowExecutionAdminParams) => Promise<ICancelWorkflowExecutionAdminResponse>;
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
8
|
+
export declare const manualTriggerWorkflow: (params: IManualTriggerWorkflowAdminParams, body: IManualTriggerWorkflowAdminBody) => Promise<IManualTriggerWorkflowAdminResponse>;
|
|
9
|
+
export declare const userRegistrationTriggerWorkflow: (body: ITriggerUserRegistrationWorkflowAdminBody) => Promise<ITriggerUserRegistrationWorkflowAdminResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.userRegistrationTriggerWorkflow = exports.manualTriggerWorkflow = exports.cancelWorkflowExecution = exports.paginateWorkflowExecution = exports.deleteWorkflow = exports.updateWorkflowStatus = exports.getWorkflow = exports.paginateWorkflow = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const paginateWorkflow = async (query) => {
|
|
6
6
|
const response = await __1.AbyssConsoleCore.axios.get(`/workflow/admin/paginate`, { params: query });
|
|
@@ -32,13 +32,13 @@ const cancelWorkflowExecution = async (params) => {
|
|
|
32
32
|
return response.data;
|
|
33
33
|
};
|
|
34
34
|
exports.cancelWorkflowExecution = cancelWorkflowExecution;
|
|
35
|
-
const
|
|
35
|
+
const manualTriggerWorkflow = async (params, body) => {
|
|
36
36
|
const response = await __1.AbyssConsoleCore.axios.post(`/workflow/admin/${params.workflowId}/trigger`, body);
|
|
37
37
|
return response.data;
|
|
38
38
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
39
|
+
exports.manualTriggerWorkflow = manualTriggerWorkflow;
|
|
40
|
+
const userRegistrationTriggerWorkflow = async (body) => {
|
|
41
41
|
const response = await __1.AbyssConsoleCore.axios.post(`/workflow/admin/trigger/user-registration`, body);
|
|
42
42
|
return response.data;
|
|
43
43
|
};
|
|
44
|
-
exports.
|
|
44
|
+
exports.userRegistrationTriggerWorkflow = userRegistrationTriggerWorkflow;
|
package/dist/index.d.ts
CHANGED
|
@@ -85,7 +85,8 @@ type AbyssConsoleCoreSDK = {
|
|
|
85
85
|
paginate: typeof workflowAdminApi.paginateWorkflowExecution;
|
|
86
86
|
cancel: typeof workflowAdminApi.cancelWorkflowExecution;
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
manualTrigger: typeof workflowAdminApi.manualTriggerWorkflow;
|
|
89
|
+
userRegistrationTrigger: typeof workflowAdminApi.userRegistrationTriggerWorkflow;
|
|
89
90
|
};
|
|
90
91
|
};
|
|
91
92
|
};
|
package/dist/index.js
CHANGED
|
@@ -109,7 +109,8 @@ class AbyssConsoleCore {
|
|
|
109
109
|
paginate: workflowAdminApi.paginateWorkflowExecution,
|
|
110
110
|
cancel: workflowAdminApi.cancelWorkflowExecution,
|
|
111
111
|
},
|
|
112
|
-
|
|
112
|
+
manualTrigger: workflowAdminApi.manualTriggerWorkflow,
|
|
113
|
+
userRegistrationTrigger: workflowAdminApi.userRegistrationTriggerWorkflow,
|
|
113
114
|
},
|
|
114
115
|
};
|
|
115
116
|
const projectSDK = {
|