@abyss-project/console 1.0.59 → 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.
@@ -5,3 +5,4 @@ export * from './monitor.api';
5
5
  export * from './secret.api';
6
6
  export * from './secret-access.api';
7
7
  export * from './workflow.api';
8
+ export * from './report.admin.api';
package/dist/api/index.js CHANGED
@@ -21,3 +21,4 @@ __exportStar(require("./monitor.api"), exports);
21
21
  __exportStar(require("./secret.api"), exports);
22
22
  __exportStar(require("./secret-access.api"), exports);
23
23
  __exportStar(require("./workflow.api"), exports);
24
+ __exportStar(require("./report.admin.api"), exports);
package/dist/index.d.ts CHANGED
@@ -28,7 +28,6 @@ type CoreConfig = {
28
28
  adminToken?: string;
29
29
  baseURL?: string;
30
30
  };
31
- export { getReportAdmin } from './api/report.admin.api';
32
31
  type AbyssConsoleCoreSDK = {
33
32
  report: {
34
33
  admin: {
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.AbyssConsoleCore = exports.getReportAdmin = exports.WEBHOOK_SIGNATURE_ALGORITHM = exports.HEADER_WEBHOOK_SIGNATURE_NAME = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_APPLICATION_HEADER = void 0;
32
+ exports.AbyssConsoleCore = exports.WEBHOOK_SIGNATURE_ALGORITHM = exports.HEADER_WEBHOOK_SIGNATURE_NAME = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_APPLICATION_HEADER = void 0;
33
33
  const axios_1 = __importDefault(require("axios"));
34
34
  const axios_retry_1 = __importStar(require("axios-retry"));
35
35
  const domainVerificationApi = __importStar(require("./api/domain-verification.api"));
@@ -61,8 +61,6 @@ const RETRY_CODES = [
61
61
  502,
62
62
  503,
63
63
  ];
64
- var report_admin_api_1 = require("./api/report.admin.api");
65
- Object.defineProperty(exports, "getReportAdmin", { enumerable: true, get: function () { return report_admin_api_1.getReportAdmin; } });
66
64
  class AbyssConsoleCore {
67
65
  static get sdk() {
68
66
  if (!AbyssConsoleCore._sdk) {
@@ -1,7 +1,8 @@
1
- export type ReportTimePeriod = 'minute' | 'hour' | 'day' | 'month';
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;
6
- timePeriod?: ReportTimePeriod;
7
+ timePeriod?: TimePeriod;
7
8
  }
@@ -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 {
@@ -1,4 +1,4 @@
1
- import { ReportTimePeriod } from '../requests/report.admin.request';
1
+ import { TimePeriod } from '../requests/report.admin.request';
2
2
  export interface WorkflowExecutionsByPeriod {
3
3
  period: string;
4
4
  total: number;
@@ -79,7 +79,7 @@ export interface WorkflowReportMetrics {
79
79
  export interface GetReportAdminResponse {
80
80
  data: {
81
81
  metrics: WorkflowReportMetrics & {
82
- timePeriod: ReportTimePeriod;
82
+ timePeriod: TimePeriod;
83
83
  };
84
84
  };
85
85
  }
@@ -82,6 +82,8 @@ export interface IWorkflowExecutionTimeSeriesBucket {
82
82
  completed: number;
83
83
  failed: number;
84
84
  cancelled: number;
85
+ running: number;
86
+ pending: number;
85
87
  avgDurationMs: number | null;
86
88
  }
87
89
  export interface IGetTimeSeriesWorkflowExecutionData {
@@ -120,3 +122,32 @@ export interface IGetWorkflowTriggerStatsData {
120
122
  }>;
121
123
  }
122
124
  export type IGetWorkflowTriggerStatsResponse = IResponse<IGetWorkflowTriggerStatsData>;
125
+ export declare enum WorkflowExecutionSSEEvent {
126
+ EXECUTION_STARTED = "EXECUTION_STARTED",
127
+ EXECUTION_RUNNING = "EXECUTION_RUNNING",
128
+ EXECUTION_COMPLETED = "EXECUTION_COMPLETED",
129
+ EXECUTION_FAILED = "EXECUTION_FAILED",
130
+ EXECUTION_CANCELLED = "EXECUTION_CANCELLED",
131
+ STEP_RUNNING = "STEP_RUNNING",
132
+ STEP_COMPLETED = "STEP_COMPLETED",
133
+ STEP_FAILED = "STEP_FAILED",
134
+ STEP_SKIPPED = "STEP_SKIPPED"
135
+ }
136
+ export interface IWorkflowExecutionSSEPayloadInput {
137
+ workflowId: string;
138
+ executionId: string;
139
+ status: string;
140
+ stepId?: string;
141
+ stepExecutionId?: string;
142
+ error?: string;
143
+ durationMs?: number;
144
+ retryNumber?: number;
145
+ parentExecutionId?: string;
146
+ }
147
+ export interface IWorkflowExecutionSSEPayload extends IWorkflowExecutionSSEPayloadInput {
148
+ timestamp: string;
149
+ }
150
+ export interface IWorkflowExecutionSSEMessage {
151
+ type: WorkflowExecutionSSEEvent;
152
+ payload: IWorkflowExecutionSSEPayload;
153
+ }
@@ -1,2 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowExecutionSSEEvent = void 0;
4
+ var WorkflowExecutionSSEEvent;
5
+ (function (WorkflowExecutionSSEEvent) {
6
+ WorkflowExecutionSSEEvent["EXECUTION_STARTED"] = "EXECUTION_STARTED";
7
+ WorkflowExecutionSSEEvent["EXECUTION_RUNNING"] = "EXECUTION_RUNNING";
8
+ WorkflowExecutionSSEEvent["EXECUTION_COMPLETED"] = "EXECUTION_COMPLETED";
9
+ WorkflowExecutionSSEEvent["EXECUTION_FAILED"] = "EXECUTION_FAILED";
10
+ WorkflowExecutionSSEEvent["EXECUTION_CANCELLED"] = "EXECUTION_CANCELLED";
11
+ WorkflowExecutionSSEEvent["STEP_RUNNING"] = "STEP_RUNNING";
12
+ WorkflowExecutionSSEEvent["STEP_COMPLETED"] = "STEP_COMPLETED";
13
+ WorkflowExecutionSSEEvent["STEP_FAILED"] = "STEP_FAILED";
14
+ WorkflowExecutionSSEEvent["STEP_SKIPPED"] = "STEP_SKIPPED";
15
+ })(WorkflowExecutionSSEEvent || (exports.WorkflowExecutionSSEEvent = WorkflowExecutionSSEEvent = {}));
@@ -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.59",
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",