@abyss-project/console 1.0.59 → 1.0.60
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/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/types/interface/api/requests/report.admin.request.d.ts +2 -2
- package/dist/types/interface/api/responses/report.admin.response.d.ts +2 -2
- package/dist/types/interface/api/responses/workflow.response.d.ts +24 -0
- package/dist/types/interface/api/responses/workflow.response.js +13 -0
- package/package.json +1 -1
package/dist/api/index.d.ts
CHANGED
package/dist/api/index.js
CHANGED
package/dist/index.d.ts
CHANGED
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.
|
|
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,7 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type TimePeriod = 'minute' | 'hour' | 'day' | 'month';
|
|
2
2
|
export interface GetReportAdminBody {
|
|
3
3
|
applicationId: string[];
|
|
4
4
|
startDate: Date;
|
|
5
5
|
endDate: Date;
|
|
6
|
-
timePeriod?:
|
|
6
|
+
timePeriod?: TimePeriod;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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,25 @@ 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 IWorkflowExecutionSSEPayload {
|
|
137
|
+
workflowId: string;
|
|
138
|
+
executionId: string;
|
|
139
|
+
status: string;
|
|
140
|
+
stepId?: string;
|
|
141
|
+
stepExecutionId?: string;
|
|
142
|
+
stepStatus?: string;
|
|
143
|
+
error?: string;
|
|
144
|
+
durationMs?: number;
|
|
145
|
+
timestamp: string;
|
|
146
|
+
}
|
|
@@ -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 = {}));
|