@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 triggerWorkflow: (params: IManualTriggerWorkflowAdminParams, body: IManualTriggerWorkflowAdminBody) => Promise<IManualTriggerWorkflowAdminResponse>;
9
- export declare const triggerUserRegistration: (body: ITriggerUserRegistrationWorkflowAdminBody) => Promise<ITriggerUserRegistrationWorkflowAdminResponse>;
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.triggerUserRegistration = exports.triggerWorkflow = exports.cancelWorkflowExecution = exports.paginateWorkflowExecution = exports.deleteWorkflow = exports.updateWorkflowStatus = exports.getWorkflow = exports.paginateWorkflow = void 0;
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 triggerWorkflow = async (params, body) => {
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.triggerWorkflow = triggerWorkflow;
40
- const triggerUserRegistration = async (body) => {
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.triggerUserRegistration = triggerUserRegistration;
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
- trigger: typeof workflowAdminApi.triggerWorkflow;
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
- trigger: workflowAdminApi.triggerWorkflow,
112
+ manualTrigger: workflowAdminApi.manualTriggerWorkflow,
113
+ userRegistrationTrigger: workflowAdminApi.userRegistrationTriggerWorkflow,
113
114
  },
114
115
  };
115
116
  const projectSDK = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/console",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Core package to interact with AbyssConsole",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",