@abyss-project/console 1.0.68 → 1.0.70

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.
@@ -45,8 +45,6 @@ export interface IFormSubmissionWorkflowTriggerData {
45
45
  projectId: string;
46
46
  formData: Record<string, any>;
47
47
  submittedAt: string;
48
- ipAddress?: string;
49
- userAgent?: string;
50
48
  }
51
49
  export interface IShortLinkClickWorkflowTriggerData {
52
50
  shortLinkId: string;
@@ -173,7 +171,12 @@ export interface IInviteToProjectActionConfig {
173
171
  actionType: WorkflowActionType.INVITE_TO_PROJECT;
174
172
  permissions: string[];
175
173
  }
176
- export type IActionStepConfig = ICallWebhookActionConfig | IInviteToProjectActionConfig;
174
+ export interface ITriggerWorkflowActionConfig {
175
+ actionType: WorkflowActionType.TRIGGER_WORKFLOW;
176
+ workflowTriggerId: string;
177
+ body?: Record<string, any> | string;
178
+ }
179
+ export type IActionStepConfig = ICallWebhookActionConfig | IInviteToProjectActionConfig | ITriggerWorkflowActionConfig;
177
180
  export type StepConfig = IFilterStepConfig | ISleepStepConfig | ISwitchStepConfig | ICodeStepConfig | IActionStepConfig;
178
181
  export interface IWorkflowSettings {
179
182
  maxExecutionsPerHour?: number;
@@ -34,7 +34,8 @@ export declare enum WorkflowStepType {
34
34
  }
35
35
  export declare enum WorkflowActionType {
36
36
  CALL_WEBHOOK = "CALL_WEBHOOK",
37
- INVITE_TO_PROJECT = "INVITE_TO_PROJECT"
37
+ INVITE_TO_PROJECT = "INVITE_TO_PROJECT",
38
+ TRIGGER_WORKFLOW = "TRIGGER_WORKFLOW"
38
39
  }
39
40
  export declare enum WorkflowStepStatus {
40
41
  PENDING = "PENDING",
@@ -43,6 +43,7 @@ var WorkflowActionType;
43
43
  (function (WorkflowActionType) {
44
44
  WorkflowActionType["CALL_WEBHOOK"] = "CALL_WEBHOOK";
45
45
  WorkflowActionType["INVITE_TO_PROJECT"] = "INVITE_TO_PROJECT";
46
+ WorkflowActionType["TRIGGER_WORKFLOW"] = "TRIGGER_WORKFLOW";
46
47
  })(WorkflowActionType || (exports.WorkflowActionType = WorkflowActionType = {}));
47
48
  var WorkflowStepStatus;
48
49
  (function (WorkflowStepStatus) {
@@ -199,3 +199,7 @@ export interface IGetWorkflowTriggerStatsParams {
199
199
  workflowId: string;
200
200
  workflowTriggerId: string;
201
201
  }
202
+ export interface IGetWorkflowTriggerWithWorkflowParams {
203
+ projectId: string;
204
+ workflowTriggerId: string;
205
+ }
@@ -122,6 +122,11 @@ export interface IGetWorkflowTriggerStatsData {
122
122
  }>;
123
123
  }
124
124
  export type IGetWorkflowTriggerStatsResponse = IResponse<IGetWorkflowTriggerStatsData>;
125
+ export interface IGetWorkflowTriggerWithWorkflowData {
126
+ workflowTrigger: IWorkflowTrigger;
127
+ workflow: IWorkflow;
128
+ }
129
+ export type IGetWorkflowTriggerWithWorkflowResponse = IResponse<IGetWorkflowTriggerWithWorkflowData>;
125
130
  export declare enum WorkflowExecutionSSEEvent {
126
131
  EXECUTION_STARTED = "EXECUTION_STARTED",
127
132
  EXECUTION_RUNNING = "EXECUTION_RUNNING",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/console",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
4
4
  "description": "Core package to interact with AbyssConsole",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",