@abyss-project/console 1.0.46 → 1.0.48
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/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/types/dto/workflow.dto.d.ts +29 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import * as variableAccessApi from './api/variable-access.api';
|
|
|
15
15
|
import * as variablePublicApi from './api/variable-public.api';
|
|
16
16
|
export * from './types';
|
|
17
17
|
export * from './utils';
|
|
18
|
-
export *
|
|
18
|
+
export * from './workflow-expressions';
|
|
19
19
|
export declare const API_KEY_APPLICATION_HEADER = "abyss-console-api-key-application";
|
|
20
20
|
export declare const ADMIN_TOKEN_HEADER = "abyss-admin-token";
|
|
21
21
|
export declare const HEADER_WEBHOOK_SIGNATURE_NAME = "abyss-console-webhook-signature";
|
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.WEBHOOK_SIGNATURE_ALGORITHM = exports.HEADER_WEBHOOK_SIGNATURE_NAME = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_APPLICATION_HEADER =
|
|
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"));
|
|
@@ -48,7 +48,7 @@ const variableAccessApi = __importStar(require("./api/variable-access.api"));
|
|
|
48
48
|
const variablePublicApi = __importStar(require("./api/variable-public.api"));
|
|
49
49
|
__exportStar(require("./types"), exports);
|
|
50
50
|
__exportStar(require("./utils"), exports);
|
|
51
|
-
|
|
51
|
+
__exportStar(require("./workflow-expressions"), exports);
|
|
52
52
|
const MONITOR_DEFAULT_BASE_URL = 'https://console-api.abyss-project.fr/api/';
|
|
53
53
|
exports.API_KEY_APPLICATION_HEADER = 'abyss-console-api-key-application';
|
|
54
54
|
exports.ADMIN_TOKEN_HEADER = 'abyss-admin-token';
|
|
@@ -13,6 +13,35 @@ export interface IWebhookWorkflowTriggerData {
|
|
|
13
13
|
ipAddress?: string;
|
|
14
14
|
}
|
|
15
15
|
export type WorkflowTriggerData = IUserRegistrationWorkflowTriggerData | IWebhookWorkflowTriggerData | Record<string, any>;
|
|
16
|
+
export interface IFilterStepOutputData {
|
|
17
|
+
passed: boolean;
|
|
18
|
+
reason?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ISleepStepOutputData {
|
|
21
|
+
sleptFor: number;
|
|
22
|
+
}
|
|
23
|
+
export interface ISwitchStepOutputData {
|
|
24
|
+
matchedCondition?: Record<string, unknown>;
|
|
25
|
+
evaluatedValue?: unknown;
|
|
26
|
+
usedDefault: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface ICallWebhookStepOutputData {
|
|
29
|
+
webhookId?: string;
|
|
30
|
+
statusCode?: number;
|
|
31
|
+
response?: unknown;
|
|
32
|
+
error?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface IInviteToProjectStepOutputData {
|
|
35
|
+
userId?: string;
|
|
36
|
+
email?: string;
|
|
37
|
+
permissions?: string[];
|
|
38
|
+
invited: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface ICodeStepOutputData {
|
|
41
|
+
result?: unknown;
|
|
42
|
+
error?: string;
|
|
43
|
+
}
|
|
44
|
+
export type StepOutputData = IFilterStepOutputData | ISleepStepOutputData | ISwitchStepOutputData | ICallWebhookStepOutputData | IInviteToProjectStepOutputData | ICodeStepOutputData | Record<string, unknown>;
|
|
16
45
|
export interface IFilterStepConfig {
|
|
17
46
|
expression: string;
|
|
18
47
|
}
|