@abyss-project/console 1.0.28 → 1.0.29
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/workflow.api.d.ts +2 -1
- package/dist/api/workflow.api.js +6 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/types/interface/api/requests/workflow.request.d.ts +10 -0
- package/dist/types/interface/api/responses/workflow.response.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICreateWorkflowParams, ICreateWorkflowBody, IPaginateWorkflowParams, IPaginateWorkflowQuery, IGetWorkflowParams, IUpdateWorkflowParams, IUpdateWorkflowBody, IUpdateWorkflowStatusParams, IUpdateWorkflowStatusBody, IDeleteWorkflowParams, ICreateWorkflowStepParams, ICreateWorkflowStepBody, IListWorkflowStepsParams, IUpdateWorkflowStepParams, IUpdateWorkflowStepBody, IDeleteWorkflowStepParams, IListWorkflowStepConnectionsParams, IPaginateWorkflowExecutionParams, IPaginateWorkflowExecutionQuery, IGetWorkflowExecutionParams, IGetWorkflowExecutionStatsParams, IGetWorkflowExecutionStatsQuery, ICancelWorkflowExecutionParams, ICreateWorkflowTriggerParams, ICreateWorkflowTriggerBody, IListWorkflowTriggersParams, IGetWorkflowTriggerParams, IUpdateWorkflowTriggerParams, IUpdateWorkflowTriggerBody, IDeleteWorkflowTriggerParams, ICreateWorkflowResponse, IPaginateWorkflowResponse, IGetWorkflowResponse, IUpdateWorkflowResponse, IDeleteWorkflowResponse, ICreateWorkflowStepResponse, IListWorkflowStepResponse, IUpdateWorkflowStepResponse, IDeleteWorkflowStepResponse, IListWorkflowStepConnectionResponse, IPaginateWorkflowExecutionResponse, IGetWorkflowExecutionResponse, IGetStatsWorkflowExecutionResponse, ICancelWorkflowExecutionResponse, ICreateWorkflowTriggerResponse, IListWorkflowTriggersResponse, IGetWorkflowTriggerResponse, IUpdateWorkflowTriggerResponse, IDeleteWorkflowTriggerResponse } from '../types';
|
|
1
|
+
import { ICreateWorkflowParams, ICreateWorkflowBody, IPaginateWorkflowParams, IPaginateWorkflowQuery, IGetWorkflowParams, IUpdateWorkflowParams, IUpdateWorkflowBody, IUpdateWorkflowStatusParams, IUpdateWorkflowStatusBody, IDeleteWorkflowParams, ICreateWorkflowStepParams, ICreateWorkflowStepBody, IListWorkflowStepsParams, IUpdateWorkflowStepParams, IUpdateWorkflowStepBody, IDeleteWorkflowStepParams, IListWorkflowStepConnectionsParams, IUpdateWorkflowStepConnectionParams, IUpdateWorkflowStepConnectionBody, IPaginateWorkflowExecutionParams, IPaginateWorkflowExecutionQuery, IGetWorkflowExecutionParams, IGetWorkflowExecutionStatsParams, IGetWorkflowExecutionStatsQuery, ICancelWorkflowExecutionParams, ICreateWorkflowTriggerParams, ICreateWorkflowTriggerBody, IListWorkflowTriggersParams, IGetWorkflowTriggerParams, IUpdateWorkflowTriggerParams, IUpdateWorkflowTriggerBody, IDeleteWorkflowTriggerParams, ICreateWorkflowResponse, IPaginateWorkflowResponse, IGetWorkflowResponse, IUpdateWorkflowResponse, IDeleteWorkflowResponse, ICreateWorkflowStepResponse, IListWorkflowStepResponse, IUpdateWorkflowStepResponse, IDeleteWorkflowStepResponse, IListWorkflowStepConnectionResponse, IUpdateWorkflowStepConnectionResponse, IPaginateWorkflowExecutionResponse, IGetWorkflowExecutionResponse, IGetStatsWorkflowExecutionResponse, ICancelWorkflowExecutionResponse, ICreateWorkflowTriggerResponse, IListWorkflowTriggersResponse, IGetWorkflowTriggerResponse, IUpdateWorkflowTriggerResponse, IDeleteWorkflowTriggerResponse } from '../types';
|
|
2
2
|
export declare const createWorkflow: (params: ICreateWorkflowParams, body: ICreateWorkflowBody) => Promise<ICreateWorkflowResponse>;
|
|
3
3
|
export declare const paginateWorkflow: (params: IPaginateWorkflowParams, query: IPaginateWorkflowQuery) => Promise<IPaginateWorkflowResponse>;
|
|
4
4
|
export declare const getWorkflow: (params: IGetWorkflowParams) => Promise<IGetWorkflowResponse>;
|
|
@@ -10,6 +10,7 @@ export declare const listWorkflowStep: (params: IListWorkflowStepsParams) => Pro
|
|
|
10
10
|
export declare const updateWorkflowStep: (params: IUpdateWorkflowStepParams, body: IUpdateWorkflowStepBody) => Promise<IUpdateWorkflowStepResponse>;
|
|
11
11
|
export declare const deleteWorkflowStep: (params: IDeleteWorkflowStepParams) => Promise<IDeleteWorkflowStepResponse>;
|
|
12
12
|
export declare const listWorkflowStepConnections: (params: IListWorkflowStepConnectionsParams) => Promise<IListWorkflowStepConnectionResponse>;
|
|
13
|
+
export declare const updateWorkflowStepConnection: (params: IUpdateWorkflowStepConnectionParams, body: IUpdateWorkflowStepConnectionBody) => Promise<IUpdateWorkflowStepConnectionResponse>;
|
|
13
14
|
export declare const paginateWorkflowExecution: (params: IPaginateWorkflowExecutionParams, query: IPaginateWorkflowExecutionQuery) => Promise<IPaginateWorkflowExecutionResponse>;
|
|
14
15
|
export declare const getWorkflowExecution: (params: IGetWorkflowExecutionParams) => Promise<IGetWorkflowExecutionResponse>;
|
|
15
16
|
export declare const getWorkflowStats: (params: IGetWorkflowExecutionStatsParams, query?: IGetWorkflowExecutionStatsQuery) => Promise<IGetStatsWorkflowExecutionResponse>;
|
package/dist/api/workflow.api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteWorkflowTrigger = exports.updateWorkflowTrigger = exports.getWorkflowTrigger = exports.listWorkflowTrigger = exports.createWorkflowTrigger = exports.cancelWorkflowExecution = exports.getWorkflowStats = exports.getWorkflowExecution = exports.paginateWorkflowExecution = exports.listWorkflowStepConnections = exports.deleteWorkflowStep = exports.updateWorkflowStep = exports.listWorkflowStep = exports.createWorkflowStep = exports.deleteWorkflow = exports.updateWorkflowStatus = exports.updateWorkflow = exports.getWorkflow = exports.paginateWorkflow = exports.createWorkflow = void 0;
|
|
3
|
+
exports.deleteWorkflowTrigger = exports.updateWorkflowTrigger = exports.getWorkflowTrigger = exports.listWorkflowTrigger = exports.createWorkflowTrigger = exports.cancelWorkflowExecution = exports.getWorkflowStats = exports.getWorkflowExecution = exports.paginateWorkflowExecution = exports.updateWorkflowStepConnection = exports.listWorkflowStepConnections = exports.deleteWorkflowStep = exports.updateWorkflowStep = exports.listWorkflowStep = exports.createWorkflowStep = exports.deleteWorkflow = exports.updateWorkflowStatus = exports.updateWorkflow = exports.getWorkflow = exports.paginateWorkflow = exports.createWorkflow = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const createWorkflow = async (params, body) => {
|
|
6
6
|
const response = await __1.AbyssConsoleCore.axios.post(`/workflow/${params.projectId}`, body);
|
|
@@ -57,6 +57,11 @@ const listWorkflowStepConnections = async (params) => {
|
|
|
57
57
|
return response.data;
|
|
58
58
|
};
|
|
59
59
|
exports.listWorkflowStepConnections = listWorkflowStepConnections;
|
|
60
|
+
const updateWorkflowStepConnection = async (params, body) => {
|
|
61
|
+
const response = await __1.AbyssConsoleCore.axios.put(`/workflow/${params.projectId}/${params.workflowId}/connection/${params.connectionId}`, body);
|
|
62
|
+
return response.data;
|
|
63
|
+
};
|
|
64
|
+
exports.updateWorkflowStepConnection = updateWorkflowStepConnection;
|
|
60
65
|
const paginateWorkflowExecution = async (params, query) => {
|
|
61
66
|
const response = await __1.AbyssConsoleCore.axios.get(`/workflow/${params.projectId}/${params.workflowId}/execution`, { params: query });
|
|
62
67
|
return response.data;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -101,6 +101,16 @@ export interface IListWorkflowStepConnectionsParams {
|
|
|
101
101
|
projectId: string;
|
|
102
102
|
workflowId: string;
|
|
103
103
|
}
|
|
104
|
+
export interface IUpdateWorkflowStepConnectionParams {
|
|
105
|
+
projectId: string;
|
|
106
|
+
workflowId: string;
|
|
107
|
+
connectionId: string;
|
|
108
|
+
}
|
|
109
|
+
export interface IUpdateWorkflowStepConnectionBody {
|
|
110
|
+
label?: string | null;
|
|
111
|
+
expression?: string | null;
|
|
112
|
+
order?: number;
|
|
113
|
+
}
|
|
104
114
|
export interface IPaginateWorkflowExecutionParams {
|
|
105
115
|
projectId: string;
|
|
106
116
|
workflowId: string;
|
|
@@ -45,6 +45,10 @@ export interface IListWorkflowStepConnectionData {
|
|
|
45
45
|
connections: IWorkflowStepConnection[];
|
|
46
46
|
}
|
|
47
47
|
export type IListWorkflowStepConnectionResponse = IResponse<IListWorkflowStepConnectionData>;
|
|
48
|
+
export interface IUpdateWorkflowStepConnectionData {
|
|
49
|
+
connection: IWorkflowStepConnection;
|
|
50
|
+
}
|
|
51
|
+
export type IUpdateWorkflowStepConnectionResponse = IResponse<IUpdateWorkflowStepConnectionData>;
|
|
48
52
|
export type IPaginateWorkflowExecutionResponse = IResponse<BasePaginate<IWorkflowExecution>>;
|
|
49
53
|
export interface IGetWorkflowExecutionData {
|
|
50
54
|
workflowExecution: IWorkflowExecution;
|