@abyss-project/main 1.0.93 → 1.0.94
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/expressions/index.d.ts +5 -0
- package/dist/expressions/index.js +16 -0
- package/dist/expressions/mapper.d.ts +9 -0
- package/dist/expressions/mapper.js +90 -0
- package/dist/expressions/parser.d.ts +3 -0
- package/dist/expressions/parser.js +97 -0
- package/dist/expressions/resolver.d.ts +12 -0
- package/dist/expressions/resolver.js +88 -0
- package/dist/expressions/types.d.ts +36 -0
- package/dist/types/enum/abyss-application-event.enum.d.ts +5 -1
- package/dist/types/enum/abyss-application-event.enum.js +4 -0
- package/dist/types/enum/project-access-permission.enum.d.ts +5 -1
- package/dist/types/enum/project-access-permission.enum.js +4 -0
- package/dist/workflow/expression/expression-functions.utils.d.ts +6 -0
- package/dist/workflow/expression/expression-functions.utils.js +61 -0
- package/dist/workflow/expression/expression-mapper.d.ts +11 -0
- package/dist/workflow/expression/expression-mapper.js +32 -0
- package/dist/workflow/expression/expression-mapping.utils.d.ts +4 -0
- package/dist/workflow/expression/expression-mapping.utils.js +43 -0
- package/dist/workflow/expression/expression-resolver.utils.d.ts +3 -0
- package/dist/workflow/expression/expression-resolver.utils.js +54 -0
- package/dist/workflow/expression/expression-tokenizer.utils.d.ts +4 -0
- package/dist/workflow/expression/expression-tokenizer.utils.js +123 -0
- package/dist/workflow/expression/expression.types.d.ts +33 -0
- package/dist/workflow/expression/expression.types.js +17 -0
- package/dist/workflow/expression/index.d.ts +10 -0
- package/dist/workflow/expression/index.js +40 -0
- package/dist/workflow/expression/workflow-resolver.d.ts +9 -0
- package/dist/workflow/expression/workflow-resolver.js +102 -0
- package/dist/workflow/expressions/functions/array.d.ts +2 -0
- package/dist/workflow/expressions/functions/array.js +252 -0
- package/dist/workflow/expressions/functions/crypto.d.ts +2 -0
- package/dist/workflow/expressions/functions/crypto.js +101 -0
- package/dist/workflow/expressions/functions/datetime.d.ts +2 -0
- package/dist/workflow/expressions/functions/datetime.js +256 -0
- package/dist/workflow/expressions/functions/index.d.ts +7 -0
- package/dist/workflow/expressions/functions/index.js +46 -0
- package/dist/workflow/expressions/functions/math.d.ts +2 -0
- package/dist/workflow/expressions/functions/math.js +174 -0
- package/dist/workflow/expressions/functions/string.d.ts +2 -0
- package/dist/workflow/expressions/functions/string.js +301 -0
- package/dist/workflow/expressions/functions/utility.d.ts +2 -0
- package/dist/workflow/expressions/functions/utility.js +230 -0
- package/dist/workflow/expressions/helpers.d.ts +26 -0
- package/dist/workflow/expressions/helpers.js +132 -0
- package/dist/workflow/expressions/index.d.ts +15 -0
- package/dist/workflow/expressions/index.js +61 -0
- package/dist/workflow/expressions/parser.d.ts +8 -0
- package/dist/workflow/expressions/parser.js +436 -0
- package/dist/workflow/expressions/pipes/array-pipes.d.ts +2 -0
- package/dist/workflow/expressions/pipes/array-pipes.js +248 -0
- package/dist/workflow/expressions/pipes/index.d.ts +8 -0
- package/dist/workflow/expressions/pipes/index.js +40 -0
- package/dist/workflow/expressions/pipes/object-pipes.d.ts +2 -0
- package/dist/workflow/expressions/pipes/object-pipes.js +243 -0
- package/dist/workflow/expressions/pipes/string-pipes.d.ts +9 -0
- package/dist/workflow/expressions/pipes/string-pipes.js +178 -0
- package/dist/workflow/expressions/resolver.d.ts +8 -0
- package/dist/workflow/expressions/resolver.js +263 -0
- package/dist/workflow/expressions/types.d.ts +144 -0
- package/dist/workflow/expressions/types.js +33 -0
- package/dist/workflow/index.d.ts +1 -0
- package/dist/workflow/index.js +17 -0
- package/package.json +1 -1
- package/dist/api/domain-verification.admin.api.d.ts +0 -4
- package/dist/api/domain-verification.admin.api.js +0 -10
- package/dist/api/domain-verification.api.d.ts +0 -7
- package/dist/api/domain-verification.api.js +0 -28
- package/dist/api/workflow.api.d.ts +0 -26
- package/dist/api/workflow.api.js +0 -60
- package/dist/types/dto/domain-verification.dto.d.ts +0 -19
- package/dist/types/interface/api/bodies/domain-verification.body.d.ts +0 -7
- package/dist/types/interface/api/bodies/domain-verification.body.js +0 -2
- package/dist/types/interface/api/params/domain-verification.params.d.ts +0 -18
- package/dist/types/interface/api/params/domain-verification.params.js +0 -2
- package/dist/types/interface/api/requests/domain-verification.admin.request.d.ts +0 -5
- package/dist/types/interface/api/requests/domain-verification.admin.request.js +0 -2
- package/dist/types/interface/api/requests/domain-verification.request.d.ts +0 -29
- package/dist/types/interface/api/requests/domain-verification.request.js +0 -2
- package/dist/types/interface/api/requests/workflow.request.d.ts +0 -119
- package/dist/types/interface/api/requests/workflow.request.js +0 -2
- package/dist/types/interface/api/responses/domain-verification.admin.response.d.ts +0 -6
- package/dist/types/interface/api/responses/domain-verification.admin.response.js +0 -2
- package/dist/types/interface/api/responses/domain-verification.response.d.ts +0 -29
- package/dist/types/interface/api/responses/domain-verification.response.js +0 -2
- package/dist/types/interface/api/responses/project-domain-verification.response.d.ts +0 -55
- package/dist/types/interface/api/responses/project-domain-verification.response.js +0 -2
- package/dist/types/interface/api/responses/workflow.response.d.ts +0 -124
- package/dist/types/interface/api/responses/workflow.response.js +0 -2
- package/dist/types/interface/models/domain-verification.model.d.ts +0 -42
- package/dist/types/interface/models/domain-verification.model.js +0 -14
- package/dist/types/interface/models/project-domain-verification.model.d.ts +0 -27
- package/dist/types/interface/models/project-domain-verification.model.js +0 -15
- package/dist/types/interface/models/workflow-execution-step.model.d.ts +0 -59
- package/dist/types/interface/models/workflow-execution-step.model.js +0 -12
- package/dist/types/interface/models/workflow-execution.model.d.ts +0 -78
- package/dist/types/interface/models/workflow-execution.model.js +0 -13
- package/dist/types/interface/models/workflow-step.model.d.ts +0 -106
- package/dist/types/interface/models/workflow-step.model.js +0 -44
- package/dist/types/interface/models/workflow-template.model.d.ts +0 -41
- package/dist/types/interface/models/workflow-template.model.js +0 -2
- package/dist/types/interface/models/workflow.model.d.ts +0 -72
- package/dist/types/interface/models/workflow.model.js +0 -23
- /package/dist/{types/dto/domain-verification.dto.js → expressions/types.js} +0 -0
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerificationStatus = exports.VerificationMethod = void 0;
|
|
4
|
-
var VerificationMethod;
|
|
5
|
-
(function (VerificationMethod) {
|
|
6
|
-
VerificationMethod["DNS_TXT"] = "DNS_TXT";
|
|
7
|
-
VerificationMethod["HTTP_FILE"] = "HTTP_FILE";
|
|
8
|
-
})(VerificationMethod || (exports.VerificationMethod = VerificationMethod = {}));
|
|
9
|
-
var VerificationStatus;
|
|
10
|
-
(function (VerificationStatus) {
|
|
11
|
-
VerificationStatus["PENDING"] = "PENDING";
|
|
12
|
-
VerificationStatus["VERIFIED"] = "VERIFIED";
|
|
13
|
-
VerificationStatus["FAILED"] = "FAILED";
|
|
14
|
-
VerificationStatus["EXPIRED"] = "EXPIRED";
|
|
15
|
-
})(VerificationStatus || (exports.VerificationStatus = VerificationStatus = {}));
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { IWorkflowExecution } from './workflow-execution.model';
|
|
2
|
-
import { IWorkflowStep, WorkflowStepType } from './workflow-step.model';
|
|
3
|
-
export declare enum WorkflowExecutionStepStatus {
|
|
4
|
-
PENDING = "PENDING",
|
|
5
|
-
RUNNING = "RUNNING",
|
|
6
|
-
COMPLETED = "COMPLETED",
|
|
7
|
-
FAILED = "FAILED",
|
|
8
|
-
SKIPPED = "SKIPPED",
|
|
9
|
-
WAITING = "WAITING"
|
|
10
|
-
}
|
|
11
|
-
export interface IWorkflowStepExecutionInput {
|
|
12
|
-
triggerData: Record<string, unknown>;
|
|
13
|
-
previousStepResults: Record<string, unknown>;
|
|
14
|
-
variables: Record<string, unknown>;
|
|
15
|
-
}
|
|
16
|
-
export interface IWorkflowStepExecutionOutput {
|
|
17
|
-
result: unknown;
|
|
18
|
-
data?: Record<string, unknown>;
|
|
19
|
-
variables?: Record<string, unknown>;
|
|
20
|
-
conditionResult?: boolean;
|
|
21
|
-
filtered?: boolean;
|
|
22
|
-
nextStepId?: string | null;
|
|
23
|
-
}
|
|
24
|
-
export interface IWorkflowStepExecutionError {
|
|
25
|
-
code: string;
|
|
26
|
-
message: string;
|
|
27
|
-
details?: Record<string, unknown>;
|
|
28
|
-
retryable: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface IWorkflowExecutionStep {
|
|
31
|
-
id: string;
|
|
32
|
-
executionId: string;
|
|
33
|
-
stepId: string;
|
|
34
|
-
stepType: WorkflowStepType;
|
|
35
|
-
stepName: string;
|
|
36
|
-
executionOrder: number;
|
|
37
|
-
status: WorkflowExecutionStepStatus;
|
|
38
|
-
input: IWorkflowStepExecutionInput;
|
|
39
|
-
output: IWorkflowStepExecutionOutput | null;
|
|
40
|
-
error: IWorkflowStepExecutionError | null;
|
|
41
|
-
retryCount: number;
|
|
42
|
-
startedAt: Date | null;
|
|
43
|
-
completedAt: Date | null;
|
|
44
|
-
durationMs: number | null;
|
|
45
|
-
createdAt: Date;
|
|
46
|
-
updatedAt: Date;
|
|
47
|
-
execution?: IWorkflowExecution;
|
|
48
|
-
step?: IWorkflowStep;
|
|
49
|
-
}
|
|
50
|
-
export interface IWorkflowStepExecutionLog {
|
|
51
|
-
timestamp: Date;
|
|
52
|
-
level: 'debug' | 'info' | 'warn' | 'error';
|
|
53
|
-
message: string;
|
|
54
|
-
data?: Record<string, unknown>;
|
|
55
|
-
}
|
|
56
|
-
export interface IWorkflowExecutionStepDetails extends IWorkflowExecutionStep {
|
|
57
|
-
logs?: IWorkflowStepExecutionLog[];
|
|
58
|
-
stepConfig?: Record<string, unknown>;
|
|
59
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowExecutionStepStatus = void 0;
|
|
4
|
-
var WorkflowExecutionStepStatus;
|
|
5
|
-
(function (WorkflowExecutionStepStatus) {
|
|
6
|
-
WorkflowExecutionStepStatus["PENDING"] = "PENDING";
|
|
7
|
-
WorkflowExecutionStepStatus["RUNNING"] = "RUNNING";
|
|
8
|
-
WorkflowExecutionStepStatus["COMPLETED"] = "COMPLETED";
|
|
9
|
-
WorkflowExecutionStepStatus["FAILED"] = "FAILED";
|
|
10
|
-
WorkflowExecutionStepStatus["SKIPPED"] = "SKIPPED";
|
|
11
|
-
WorkflowExecutionStepStatus["WAITING"] = "WAITING";
|
|
12
|
-
})(WorkflowExecutionStepStatus || (exports.WorkflowExecutionStepStatus = WorkflowExecutionStepStatus = {}));
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { IUser } from './user.model';
|
|
2
|
-
import { IWorkflow, IWorkflowTriggerData, WorkflowTriggerType } from './workflow.model';
|
|
3
|
-
import { IWorkflowExecutionStep } from './workflow-execution-step.model';
|
|
4
|
-
export declare enum WorkflowExecutionStatus {
|
|
5
|
-
PENDING = "PENDING",
|
|
6
|
-
RUNNING = "RUNNING",
|
|
7
|
-
WAITING = "WAITING",
|
|
8
|
-
COMPLETED = "COMPLETED",
|
|
9
|
-
FAILED = "FAILED",
|
|
10
|
-
CANCELLED = "CANCELLED",
|
|
11
|
-
SKIPPED = "SKIPPED"
|
|
12
|
-
}
|
|
13
|
-
export interface IWorkflowExecutionMetadata {
|
|
14
|
-
sourceIp?: string;
|
|
15
|
-
userAgent?: string;
|
|
16
|
-
context?: Record<string, unknown>;
|
|
17
|
-
}
|
|
18
|
-
export interface IWorkflowExecutionError {
|
|
19
|
-
code: string;
|
|
20
|
-
message: string;
|
|
21
|
-
stepId?: string;
|
|
22
|
-
stack?: string;
|
|
23
|
-
occurredAt: Date;
|
|
24
|
-
}
|
|
25
|
-
export interface IWorkflowExecution {
|
|
26
|
-
id: string;
|
|
27
|
-
workflowId: string;
|
|
28
|
-
status: WorkflowExecutionStatus;
|
|
29
|
-
triggerType: WorkflowTriggerType;
|
|
30
|
-
triggerData: IWorkflowTriggerData;
|
|
31
|
-
userId: string | null;
|
|
32
|
-
currentStepId: string | null;
|
|
33
|
-
stepResults: Record<string, unknown>;
|
|
34
|
-
variables: Record<string, unknown>;
|
|
35
|
-
metadata: IWorkflowExecutionMetadata;
|
|
36
|
-
error: IWorkflowExecutionError | null;
|
|
37
|
-
retryCount: number;
|
|
38
|
-
nextRetryAt: Date | null;
|
|
39
|
-
startedAt: Date;
|
|
40
|
-
completedAt: Date | null;
|
|
41
|
-
durationMs: number | null;
|
|
42
|
-
createdAt: Date;
|
|
43
|
-
updatedAt: Date;
|
|
44
|
-
workflow?: IWorkflow;
|
|
45
|
-
user?: IUser | null;
|
|
46
|
-
workflowExecutionStep?: IWorkflowExecutionStep[];
|
|
47
|
-
}
|
|
48
|
-
export interface IWorkflowExecutionSummary {
|
|
49
|
-
id: string;
|
|
50
|
-
workflowId: string;
|
|
51
|
-
workflowName: string;
|
|
52
|
-
status: WorkflowExecutionStatus;
|
|
53
|
-
triggerType: WorkflowTriggerType;
|
|
54
|
-
userId: string | null;
|
|
55
|
-
userEmail?: string;
|
|
56
|
-
stepsExecuted: number;
|
|
57
|
-
stepsTotal: number;
|
|
58
|
-
startedAt: Date;
|
|
59
|
-
completedAt: Date | null;
|
|
60
|
-
durationMs: number | null;
|
|
61
|
-
errorMessage?: string;
|
|
62
|
-
}
|
|
63
|
-
export interface IWorkflowExecutionStats {
|
|
64
|
-
workflowId: string;
|
|
65
|
-
period: 'hour' | 'day' | 'week' | 'month';
|
|
66
|
-
totalExecutions: number;
|
|
67
|
-
successfulExecutions: number;
|
|
68
|
-
failedExecutions: number;
|
|
69
|
-
skippedExecutions: number;
|
|
70
|
-
averageDurationMs: number;
|
|
71
|
-
executionsByHour?: Record<string, number>;
|
|
72
|
-
executionsByDay?: Record<string, number>;
|
|
73
|
-
topErrors?: Array<{
|
|
74
|
-
code: string;
|
|
75
|
-
message: string;
|
|
76
|
-
count: number;
|
|
77
|
-
}>;
|
|
78
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowExecutionStatus = void 0;
|
|
4
|
-
var WorkflowExecutionStatus;
|
|
5
|
-
(function (WorkflowExecutionStatus) {
|
|
6
|
-
WorkflowExecutionStatus["PENDING"] = "PENDING";
|
|
7
|
-
WorkflowExecutionStatus["RUNNING"] = "RUNNING";
|
|
8
|
-
WorkflowExecutionStatus["WAITING"] = "WAITING";
|
|
9
|
-
WorkflowExecutionStatus["COMPLETED"] = "COMPLETED";
|
|
10
|
-
WorkflowExecutionStatus["FAILED"] = "FAILED";
|
|
11
|
-
WorkflowExecutionStatus["CANCELLED"] = "CANCELLED";
|
|
12
|
-
WorkflowExecutionStatus["SKIPPED"] = "SKIPPED";
|
|
13
|
-
})(WorkflowExecutionStatus || (exports.WorkflowExecutionStatus = WorkflowExecutionStatus = {}));
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { IWorkflow } from './workflow.model';
|
|
2
|
-
export declare enum WorkflowStepType {
|
|
3
|
-
ACTION = "ACTION",
|
|
4
|
-
CONDITION = "CONDITION",
|
|
5
|
-
FILTER = "FILTER",
|
|
6
|
-
DELAY = "DELAY"
|
|
7
|
-
}
|
|
8
|
-
export declare enum WorkflowActionType {
|
|
9
|
-
INVITE_TO_PROJECT = "INVITE_TO_PROJECT",
|
|
10
|
-
CALL_WEBHOOK = "CALL_WEBHOOK"
|
|
11
|
-
}
|
|
12
|
-
export declare enum WorkflowConditionOperator {
|
|
13
|
-
EQUALS = "EQUALS",
|
|
14
|
-
NOT_EQUALS = "NOT_EQUALS",
|
|
15
|
-
CONTAINS = "CONTAINS",
|
|
16
|
-
NOT_CONTAINS = "NOT_CONTAINS",
|
|
17
|
-
STARTS_WITH = "STARTS_WITH",
|
|
18
|
-
ENDS_WITH = "ENDS_WITH",
|
|
19
|
-
GREATER_THAN = "GREATER_THAN",
|
|
20
|
-
LESS_THAN = "LESS_THAN",
|
|
21
|
-
IS_EMPTY = "IS_EMPTY",
|
|
22
|
-
IS_NOT_EMPTY = "IS_NOT_EMPTY",
|
|
23
|
-
IN_LIST = "IN_LIST",
|
|
24
|
-
NOT_IN_LIST = "NOT_IN_LIST",
|
|
25
|
-
MATCHES_REGEX = "MATCHES_REGEX",
|
|
26
|
-
EMAIL_DOMAIN_VERIFIED = "EMAIL_DOMAIN_VERIFIED"
|
|
27
|
-
}
|
|
28
|
-
export declare enum WorkflowLogicalOperator {
|
|
29
|
-
AND = "AND",
|
|
30
|
-
OR = "OR"
|
|
31
|
-
}
|
|
32
|
-
export declare enum WorkflowDelayUnit {
|
|
33
|
-
SECONDS = "SECONDS",
|
|
34
|
-
MINUTES = "MINUTES",
|
|
35
|
-
HOURS = "HOURS",
|
|
36
|
-
DAYS = "DAYS"
|
|
37
|
-
}
|
|
38
|
-
export interface IInviteToProjectActionConfig {
|
|
39
|
-
actionType: WorkflowActionType.INVITE_TO_PROJECT;
|
|
40
|
-
projectId: string;
|
|
41
|
-
permission: string[];
|
|
42
|
-
message?: string;
|
|
43
|
-
autoConfirm?: boolean;
|
|
44
|
-
}
|
|
45
|
-
export interface ICallWebhookActionConfig {
|
|
46
|
-
actionType: WorkflowActionType.CALL_WEBHOOK;
|
|
47
|
-
url: string;
|
|
48
|
-
method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
49
|
-
headers?: Record<string, string>;
|
|
50
|
-
body?: Record<string, unknown>;
|
|
51
|
-
}
|
|
52
|
-
export type IWorkflowActionConfig = IInviteToProjectActionConfig | ICallWebhookActionConfig;
|
|
53
|
-
export interface IWorkflowConditionRule {
|
|
54
|
-
field: string;
|
|
55
|
-
operator: WorkflowConditionOperator;
|
|
56
|
-
value?: string | number | boolean | string[];
|
|
57
|
-
}
|
|
58
|
-
export interface IWorkflowConditionGroup {
|
|
59
|
-
logicalOperator: WorkflowLogicalOperator;
|
|
60
|
-
rules: IWorkflowConditionRule[];
|
|
61
|
-
}
|
|
62
|
-
export interface IWorkflowConditionConfig {
|
|
63
|
-
groups: IWorkflowConditionGroup[];
|
|
64
|
-
onTrueStepId?: string | null;
|
|
65
|
-
onFalseStepId?: string | null;
|
|
66
|
-
}
|
|
67
|
-
export interface IWorkflowFilterConfig {
|
|
68
|
-
conditions: IWorkflowConditionGroup[];
|
|
69
|
-
filterMessage?: string;
|
|
70
|
-
}
|
|
71
|
-
export interface IWorkflowDelayConfig {
|
|
72
|
-
duration: number;
|
|
73
|
-
unit: WorkflowDelayUnit;
|
|
74
|
-
}
|
|
75
|
-
export interface IWorkflowStepConfigAction {
|
|
76
|
-
type: WorkflowStepType.ACTION;
|
|
77
|
-
action: IWorkflowActionConfig;
|
|
78
|
-
}
|
|
79
|
-
export interface IWorkflowStepConfigCondition {
|
|
80
|
-
type: WorkflowStepType.CONDITION;
|
|
81
|
-
condition: IWorkflowConditionConfig;
|
|
82
|
-
}
|
|
83
|
-
export interface IWorkflowStepConfigFilter {
|
|
84
|
-
type: WorkflowStepType.FILTER;
|
|
85
|
-
filter: IWorkflowFilterConfig;
|
|
86
|
-
}
|
|
87
|
-
export interface IWorkflowStepConfigDelay {
|
|
88
|
-
type: WorkflowStepType.DELAY;
|
|
89
|
-
delay: IWorkflowDelayConfig;
|
|
90
|
-
}
|
|
91
|
-
export type IWorkflowStepConfig = IWorkflowStepConfigAction | IWorkflowStepConfigCondition | IWorkflowStepConfigFilter | IWorkflowStepConfigDelay;
|
|
92
|
-
export interface IWorkflowStep {
|
|
93
|
-
id: string;
|
|
94
|
-
workflowId: string;
|
|
95
|
-
name: string;
|
|
96
|
-
description: string | null;
|
|
97
|
-
order: number;
|
|
98
|
-
type: WorkflowStepType;
|
|
99
|
-
config: IWorkflowStepConfig;
|
|
100
|
-
nextStepId: string | null;
|
|
101
|
-
isEnabled: boolean;
|
|
102
|
-
createdAt: Date;
|
|
103
|
-
updatedAt: Date;
|
|
104
|
-
workflow?: IWorkflow;
|
|
105
|
-
nextStep?: IWorkflowStep | null;
|
|
106
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowDelayUnit = exports.WorkflowLogicalOperator = exports.WorkflowConditionOperator = exports.WorkflowActionType = exports.WorkflowStepType = void 0;
|
|
4
|
-
var WorkflowStepType;
|
|
5
|
-
(function (WorkflowStepType) {
|
|
6
|
-
WorkflowStepType["ACTION"] = "ACTION";
|
|
7
|
-
WorkflowStepType["CONDITION"] = "CONDITION";
|
|
8
|
-
WorkflowStepType["FILTER"] = "FILTER";
|
|
9
|
-
WorkflowStepType["DELAY"] = "DELAY";
|
|
10
|
-
})(WorkflowStepType || (exports.WorkflowStepType = WorkflowStepType = {}));
|
|
11
|
-
var WorkflowActionType;
|
|
12
|
-
(function (WorkflowActionType) {
|
|
13
|
-
WorkflowActionType["INVITE_TO_PROJECT"] = "INVITE_TO_PROJECT";
|
|
14
|
-
WorkflowActionType["CALL_WEBHOOK"] = "CALL_WEBHOOK";
|
|
15
|
-
})(WorkflowActionType || (exports.WorkflowActionType = WorkflowActionType = {}));
|
|
16
|
-
var WorkflowConditionOperator;
|
|
17
|
-
(function (WorkflowConditionOperator) {
|
|
18
|
-
WorkflowConditionOperator["EQUALS"] = "EQUALS";
|
|
19
|
-
WorkflowConditionOperator["NOT_EQUALS"] = "NOT_EQUALS";
|
|
20
|
-
WorkflowConditionOperator["CONTAINS"] = "CONTAINS";
|
|
21
|
-
WorkflowConditionOperator["NOT_CONTAINS"] = "NOT_CONTAINS";
|
|
22
|
-
WorkflowConditionOperator["STARTS_WITH"] = "STARTS_WITH";
|
|
23
|
-
WorkflowConditionOperator["ENDS_WITH"] = "ENDS_WITH";
|
|
24
|
-
WorkflowConditionOperator["GREATER_THAN"] = "GREATER_THAN";
|
|
25
|
-
WorkflowConditionOperator["LESS_THAN"] = "LESS_THAN";
|
|
26
|
-
WorkflowConditionOperator["IS_EMPTY"] = "IS_EMPTY";
|
|
27
|
-
WorkflowConditionOperator["IS_NOT_EMPTY"] = "IS_NOT_EMPTY";
|
|
28
|
-
WorkflowConditionOperator["IN_LIST"] = "IN_LIST";
|
|
29
|
-
WorkflowConditionOperator["NOT_IN_LIST"] = "NOT_IN_LIST";
|
|
30
|
-
WorkflowConditionOperator["MATCHES_REGEX"] = "MATCHES_REGEX";
|
|
31
|
-
WorkflowConditionOperator["EMAIL_DOMAIN_VERIFIED"] = "EMAIL_DOMAIN_VERIFIED";
|
|
32
|
-
})(WorkflowConditionOperator || (exports.WorkflowConditionOperator = WorkflowConditionOperator = {}));
|
|
33
|
-
var WorkflowLogicalOperator;
|
|
34
|
-
(function (WorkflowLogicalOperator) {
|
|
35
|
-
WorkflowLogicalOperator["AND"] = "AND";
|
|
36
|
-
WorkflowLogicalOperator["OR"] = "OR";
|
|
37
|
-
})(WorkflowLogicalOperator || (exports.WorkflowLogicalOperator = WorkflowLogicalOperator = {}));
|
|
38
|
-
var WorkflowDelayUnit;
|
|
39
|
-
(function (WorkflowDelayUnit) {
|
|
40
|
-
WorkflowDelayUnit["SECONDS"] = "SECONDS";
|
|
41
|
-
WorkflowDelayUnit["MINUTES"] = "MINUTES";
|
|
42
|
-
WorkflowDelayUnit["HOURS"] = "HOURS";
|
|
43
|
-
WorkflowDelayUnit["DAYS"] = "DAYS";
|
|
44
|
-
})(WorkflowDelayUnit || (exports.WorkflowDelayUnit = WorkflowDelayUnit = {}));
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { WorkflowTemplate, WorkflowTriggerType, IWorkflowTriggerConfig, IWorkflowSettings } from './workflow.model';
|
|
2
|
-
import { IWorkflowStepConfig } from './workflow-step.model';
|
|
3
|
-
export interface IWorkflowTemplateStep {
|
|
4
|
-
name: string;
|
|
5
|
-
description: string | null;
|
|
6
|
-
order: number;
|
|
7
|
-
config: IWorkflowStepConfig;
|
|
8
|
-
isConfigurable: boolean;
|
|
9
|
-
configurableFields?: string[];
|
|
10
|
-
}
|
|
11
|
-
export interface IWorkflowTemplateVariable {
|
|
12
|
-
key: string;
|
|
13
|
-
label: string;
|
|
14
|
-
description: string;
|
|
15
|
-
type: 'string' | 'number' | 'boolean' | 'select' | 'multiselect' | 'project' | 'email';
|
|
16
|
-
defaultValue?: unknown;
|
|
17
|
-
required: boolean;
|
|
18
|
-
options?: Array<{
|
|
19
|
-
value: string;
|
|
20
|
-
label: string;
|
|
21
|
-
}>;
|
|
22
|
-
validation?: {
|
|
23
|
-
min?: number;
|
|
24
|
-
max?: number;
|
|
25
|
-
pattern?: string;
|
|
26
|
-
message?: string;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export interface IWorkflowTemplateDefinition {
|
|
30
|
-
template: WorkflowTemplate;
|
|
31
|
-
name: string;
|
|
32
|
-
description: string;
|
|
33
|
-
icon: string;
|
|
34
|
-
category: string;
|
|
35
|
-
triggerType: WorkflowTriggerType;
|
|
36
|
-
defaultTriggerConfig: IWorkflowTriggerConfig;
|
|
37
|
-
defaultSettings: IWorkflowSettings;
|
|
38
|
-
steps: IWorkflowTemplateStep[];
|
|
39
|
-
variables: IWorkflowTemplateVariable[];
|
|
40
|
-
tags: string[];
|
|
41
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { IProject } from './project.model';
|
|
2
|
-
import { IUser } from './user.model';
|
|
3
|
-
import { IWorkflowStep } from './workflow-step.model';
|
|
4
|
-
import { IWorkflowExecution } from './workflow-execution.model';
|
|
5
|
-
export declare enum WorkflowMode {
|
|
6
|
-
SIMPLE = "SIMPLE",
|
|
7
|
-
ADVANCED = "ADVANCED"
|
|
8
|
-
}
|
|
9
|
-
export declare enum WorkflowStatus {
|
|
10
|
-
DRAFT = "DRAFT",
|
|
11
|
-
ACTIVE = "ACTIVE",
|
|
12
|
-
PAUSED = "PAUSED",
|
|
13
|
-
ARCHIVED = "ARCHIVED"
|
|
14
|
-
}
|
|
15
|
-
export declare enum WorkflowTriggerType {
|
|
16
|
-
USER_REGISTRATION = "USER_REGISTRATION"
|
|
17
|
-
}
|
|
18
|
-
export declare enum WorkflowTemplate {
|
|
19
|
-
AUTO_INVITE_BY_DOMAIN = "AUTO_INVITE_BY_DOMAIN"
|
|
20
|
-
}
|
|
21
|
-
export interface IWorkflowTriggerConfigBase {
|
|
22
|
-
type: WorkflowTriggerType;
|
|
23
|
-
}
|
|
24
|
-
export interface IUserRegistrationTriggerConfig extends IWorkflowTriggerConfigBase {
|
|
25
|
-
type: WorkflowTriggerType.USER_REGISTRATION;
|
|
26
|
-
filters?: {
|
|
27
|
-
emailDomains?: string[];
|
|
28
|
-
excludeEmailDomains?: string[];
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export type IWorkflowTriggerConfig = IUserRegistrationTriggerConfig;
|
|
32
|
-
export interface IUserRegistrationTriggerData {
|
|
33
|
-
userId: string;
|
|
34
|
-
email: string;
|
|
35
|
-
emailDomain: string;
|
|
36
|
-
name: string | null;
|
|
37
|
-
familyName: string | null;
|
|
38
|
-
registeredAt: Date;
|
|
39
|
-
}
|
|
40
|
-
export type IWorkflowTriggerData = IUserRegistrationTriggerData;
|
|
41
|
-
export interface IWorkflowSettings {
|
|
42
|
-
maxExecutionsPerHour?: number;
|
|
43
|
-
maxExecutionsPerDay?: number;
|
|
44
|
-
retryOnFailure?: boolean;
|
|
45
|
-
maxRetryAttempts?: number;
|
|
46
|
-
retryDelaySeconds?: number;
|
|
47
|
-
}
|
|
48
|
-
export interface IWorkflow {
|
|
49
|
-
id: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
name: string;
|
|
52
|
-
description: string | null;
|
|
53
|
-
mode: WorkflowMode;
|
|
54
|
-
template: WorkflowTemplate | null;
|
|
55
|
-
status: WorkflowStatus;
|
|
56
|
-
trigger: IWorkflowTriggerConfig;
|
|
57
|
-
settings: IWorkflowSettings;
|
|
58
|
-
userId: string;
|
|
59
|
-
createdAt: Date;
|
|
60
|
-
updatedAt: Date;
|
|
61
|
-
project?: IProject;
|
|
62
|
-
user?: IUser;
|
|
63
|
-
workflowStep?: IWorkflowStep[];
|
|
64
|
-
workflowExecution?: IWorkflowExecution[];
|
|
65
|
-
}
|
|
66
|
-
export interface IWorkflowContext {
|
|
67
|
-
workflowId: string;
|
|
68
|
-
executionId: string;
|
|
69
|
-
triggerData: IWorkflowTriggerData;
|
|
70
|
-
stepResults: Record<string, unknown>;
|
|
71
|
-
variables: Record<string, unknown>;
|
|
72
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowTemplate = exports.WorkflowTriggerType = exports.WorkflowStatus = exports.WorkflowMode = void 0;
|
|
4
|
-
var WorkflowMode;
|
|
5
|
-
(function (WorkflowMode) {
|
|
6
|
-
WorkflowMode["SIMPLE"] = "SIMPLE";
|
|
7
|
-
WorkflowMode["ADVANCED"] = "ADVANCED";
|
|
8
|
-
})(WorkflowMode || (exports.WorkflowMode = WorkflowMode = {}));
|
|
9
|
-
var WorkflowStatus;
|
|
10
|
-
(function (WorkflowStatus) {
|
|
11
|
-
WorkflowStatus["DRAFT"] = "DRAFT";
|
|
12
|
-
WorkflowStatus["ACTIVE"] = "ACTIVE";
|
|
13
|
-
WorkflowStatus["PAUSED"] = "PAUSED";
|
|
14
|
-
WorkflowStatus["ARCHIVED"] = "ARCHIVED";
|
|
15
|
-
})(WorkflowStatus || (exports.WorkflowStatus = WorkflowStatus = {}));
|
|
16
|
-
var WorkflowTriggerType;
|
|
17
|
-
(function (WorkflowTriggerType) {
|
|
18
|
-
WorkflowTriggerType["USER_REGISTRATION"] = "USER_REGISTRATION";
|
|
19
|
-
})(WorkflowTriggerType || (exports.WorkflowTriggerType = WorkflowTriggerType = {}));
|
|
20
|
-
var WorkflowTemplate;
|
|
21
|
-
(function (WorkflowTemplate) {
|
|
22
|
-
WorkflowTemplate["AUTO_INVITE_BY_DOMAIN"] = "AUTO_INVITE_BY_DOMAIN";
|
|
23
|
-
})(WorkflowTemplate || (exports.WorkflowTemplate = WorkflowTemplate = {}));
|
|
File without changes
|