@abyss-project/console 1.0.37 → 1.0.39
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.
|
@@ -14,6 +14,9 @@ function buildResolverContext(workflowContext) {
|
|
|
14
14
|
context.trigger = workflowContext.triggerData;
|
|
15
15
|
context.triggerData = workflowContext.triggerData;
|
|
16
16
|
}
|
|
17
|
+
if (workflowContext.triggers) {
|
|
18
|
+
context.triggers = workflowContext.triggers;
|
|
19
|
+
}
|
|
17
20
|
if (workflowContext.stepExecutions) {
|
|
18
21
|
const steps = {};
|
|
19
22
|
for (const [stepId, execution] of Object.entries(workflowContext.stepExecutions)) {
|
|
@@ -26,6 +29,18 @@ function buildResolverContext(workflowContext) {
|
|
|
26
29
|
if (workflowContext.variables) {
|
|
27
30
|
context.variables = workflowContext.variables;
|
|
28
31
|
}
|
|
32
|
+
if (workflowContext.ipAddresses) {
|
|
33
|
+
context.ipAddress = workflowContext.ipAddresses;
|
|
34
|
+
}
|
|
35
|
+
if (workflowContext.domains) {
|
|
36
|
+
context.domain = workflowContext.domains;
|
|
37
|
+
}
|
|
38
|
+
if (workflowContext.applications) {
|
|
39
|
+
context.app = workflowContext.applications;
|
|
40
|
+
}
|
|
41
|
+
if (workflowContext.secrets) {
|
|
42
|
+
context.secret = workflowContext.secrets;
|
|
43
|
+
}
|
|
29
44
|
context.project = {
|
|
30
45
|
id: workflowContext.projectId,
|
|
31
46
|
...(workflowContext.projectName ? { name: workflowContext.projectName } : {}),
|
|
@@ -9,7 +9,6 @@ export declare enum DataSourceType {
|
|
|
9
9
|
APPLICATIONS = "app",
|
|
10
10
|
SECRETS = "secret",
|
|
11
11
|
PROJECT = "project",
|
|
12
|
-
ENV = "env",
|
|
13
12
|
ABYSS_CONFIG = "abyss",
|
|
14
13
|
FUNCTIONS = "fn",
|
|
15
14
|
OPERATORS = "op"
|
|
@@ -97,9 +96,14 @@ export interface WorkflowContext {
|
|
|
97
96
|
projectName?: string;
|
|
98
97
|
workflowId?: string;
|
|
99
98
|
triggerData?: Record<string, unknown>;
|
|
99
|
+
triggers?: Record<string, Record<string, unknown>>;
|
|
100
100
|
stepExecutions?: Record<string, StepExecution>;
|
|
101
101
|
variables?: Record<string, unknown>;
|
|
102
102
|
steps?: WorkflowStep[];
|
|
103
|
+
ipAddresses?: Record<string, Record<string, unknown>>;
|
|
104
|
+
domains?: Record<string, Record<string, unknown>>;
|
|
105
|
+
applications?: Record<string, Record<string, unknown>>;
|
|
106
|
+
secrets?: Record<string, string>;
|
|
103
107
|
}
|
|
104
108
|
export interface StepExecution {
|
|
105
109
|
stepId: string;
|
|
@@ -11,7 +11,6 @@ var DataSourceType;
|
|
|
11
11
|
DataSourceType["APPLICATIONS"] = "app";
|
|
12
12
|
DataSourceType["SECRETS"] = "secret";
|
|
13
13
|
DataSourceType["PROJECT"] = "project";
|
|
14
|
-
DataSourceType["ENV"] = "env";
|
|
15
14
|
DataSourceType["ABYSS_CONFIG"] = "abyss";
|
|
16
15
|
DataSourceType["FUNCTIONS"] = "fn";
|
|
17
16
|
DataSourceType["OPERATORS"] = "op";
|