@abyss-project/console 1.0.60 → 1.0.61

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.
@@ -1,5 +1,6 @@
1
1
  export type TimePeriod = 'minute' | 'hour' | 'day' | 'month';
2
2
  export interface GetReportAdminBody {
3
+ projectId?: string;
3
4
  applicationId: string[];
4
5
  startDate: Date;
5
6
  endDate: Date;
@@ -126,6 +126,7 @@ export interface IPaginateWorkflowExecutionQuery extends QueryPaginate {
126
126
  status?: WorkflowExecutionStatus;
127
127
  startDate?: string;
128
128
  endDate?: string;
129
+ triggerId?: string;
129
130
  orderBy?: 'startedAt' | 'completedAt' | 'status';
130
131
  orderDirection?: 'ASC' | 'DESC';
131
132
  }
@@ -152,7 +153,7 @@ export interface IGetTimeSeriesWorkflowExecutionParams {
152
153
  workflowId: string;
153
154
  }
154
155
  export interface IGetTimeSeriesWorkflowExecutionQuery {
155
- period: 'hour' | 'day' | 'week';
156
+ period: 'minute' | 'hour' | 'day' | 'week' | 'month';
156
157
  days: number;
157
158
  }
158
159
  export interface ICreateWorkflowTriggerParams {
@@ -133,14 +133,21 @@ export declare enum WorkflowExecutionSSEEvent {
133
133
  STEP_FAILED = "STEP_FAILED",
134
134
  STEP_SKIPPED = "STEP_SKIPPED"
135
135
  }
136
- export interface IWorkflowExecutionSSEPayload {
136
+ export interface IWorkflowExecutionSSEPayloadInput {
137
137
  workflowId: string;
138
138
  executionId: string;
139
139
  status: string;
140
140
  stepId?: string;
141
141
  stepExecutionId?: string;
142
- stepStatus?: string;
143
142
  error?: string;
144
143
  durationMs?: number;
144
+ retryNumber?: number;
145
+ parentExecutionId?: string;
146
+ }
147
+ export interface IWorkflowExecutionSSEPayload extends IWorkflowExecutionSSEPayloadInput {
145
148
  timestamp: string;
146
149
  }
150
+ export interface IWorkflowExecutionSSEMessage {
151
+ type: WorkflowExecutionSSEEvent;
152
+ payload: IWorkflowExecutionSSEPayload;
153
+ }
@@ -14,6 +14,8 @@ export interface IWorkflowExecution {
14
14
  error: string | null;
15
15
  context: Record<string, any>;
16
16
  metadata: Record<string, any> | null;
17
+ retryNumber: number;
18
+ parentExecutionId: string | null;
17
19
  createdAt?: Date;
18
20
  updatedAt?: Date;
19
21
  workflow?: IWorkflow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/console",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "Core package to interact with AbyssConsole",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",