@wenlarge/communication 1.2.3 → 1.2.5
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/generated/executor-core.d.ts +3 -0
- package/dist/generated/project.d.ts +0 -3
- package/dist/generated/workflow.d.ts +6 -0
- package/dist/grpc-interceptors/grpc-struct.interceptor.d.ts +31 -0
- package/dist/grpc-interceptors/grpc-struct.interceptor.js +97 -0
- package/dist/helpers/resolve-config-value.d.ts +1 -0
- package/dist/helpers/resolve-config-value.js +79 -0
- package/dist/helpers/struct-deep.d.ts +19 -0
- package/dist/helpers/struct-deep.js +88 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -1
- package/proto/auth.proto +102 -102
- package/proto/executor-core.proto +21 -20
- package/proto/notification.proto +22 -22
- package/proto/project.proto +116 -119
- package/proto/workflow.proto +186 -180
- package/src/generated/common.ts +16 -16
- package/src/generated/executor-core.ts +1 -0
- package/src/generated/project.ts +0 -3
- package/src/generated/workflow.ts +6 -0
- package/dist/generated/google/protobuf/timestamp.d.ts +0 -108
- package/dist/generated/google/protobuf/timestamp.js +0 -11
package/proto/notification.proto
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "google/protobuf/empty.proto";
|
|
4
|
-
|
|
5
|
-
package notification;
|
|
6
|
-
|
|
7
|
-
service NotificationService {
|
|
8
|
-
rpc AddMail (AddMailRequest) returns (google.protobuf.Empty);
|
|
9
|
-
rpc AddSms (AddSmsRequest) returns (google.protobuf.Empty);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
message AddMailRequest {
|
|
13
|
-
string to = 1;
|
|
14
|
-
string subject = 2;
|
|
15
|
-
string text = 3;
|
|
16
|
-
string html = 4;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
message AddSmsRequest {
|
|
20
|
-
string to = 1;
|
|
21
|
-
string body = 2;
|
|
22
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/empty.proto";
|
|
4
|
+
|
|
5
|
+
package notification;
|
|
6
|
+
|
|
7
|
+
service NotificationService {
|
|
8
|
+
rpc AddMail (AddMailRequest) returns (google.protobuf.Empty);
|
|
9
|
+
rpc AddSms (AddSmsRequest) returns (google.protobuf.Empty);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message AddMailRequest {
|
|
13
|
+
string to = 1;
|
|
14
|
+
string subject = 2;
|
|
15
|
+
string text = 3;
|
|
16
|
+
string html = 4;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message AddSmsRequest {
|
|
20
|
+
string to = 1;
|
|
21
|
+
string body = 2;
|
|
22
|
+
}
|
package/proto/project.proto
CHANGED
|
@@ -1,120 +1,117 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "google/protobuf/empty.proto";
|
|
4
|
-
|
|
5
|
-
package project;
|
|
6
|
-
|
|
7
|
-
service ProjectService {
|
|
8
|
-
rpc Create (CreateProjectRequest) returns (ProjectResponse);
|
|
9
|
-
rpc FindMany (FindManyRequest) returns (FindManyResponse);
|
|
10
|
-
rpc Delete (DeleteProjectRequest) returns (google.protobuf.Empty);
|
|
11
|
-
rpc Update (UpdateProjectRequest) returns (ProjectResponse);
|
|
12
|
-
rpc FindFirst (FindFirstRequest) returns (FindFirstResponse);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
service EnvironmentService {
|
|
16
|
-
rpc Create (CreateEnvironmentRequest) returns (EnvironmentResponse);
|
|
17
|
-
rpc Update (UpdateEnvironmentRequest) returns (EnvironmentResponse);
|
|
18
|
-
rpc Delete (DeleteEnvironmentRequest) returns (google.protobuf.Empty);
|
|
19
|
-
rpc FindMany (FindManyEnvironmentsRequest) returns (FindManyEnvironmentsResponse);
|
|
20
|
-
rpc FindFirst (FindFirstEnvironmentRequest) returns (FindFirstEnvironmentResponse);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
message CreateProjectRequest {
|
|
24
|
-
string name = 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
message ProjectResponse {
|
|
28
|
-
string id = 1;
|
|
29
|
-
string name = 2;
|
|
30
|
-
string companyId = 3;
|
|
31
|
-
string createdAt = 4;
|
|
32
|
-
string updatedAt = 5;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
message DeleteProjectRequest{
|
|
36
|
-
string id = 1;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
message UpdateProjectRequest{
|
|
40
|
-
string id = 1;
|
|
41
|
-
string name = 2;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message FindManyRequest{
|
|
45
|
-
int32 skip = 1;
|
|
46
|
-
int32 take = 2;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
message FindManyResponse{
|
|
50
|
-
repeated ProjectResponse data = 1;
|
|
51
|
-
int32 total = 2;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
message FindFirstRequest{
|
|
55
|
-
string id = 1;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
message FindFirstResponse{
|
|
59
|
-
ProjectResponse project = 1;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
message CreateEnvironmentRequest {
|
|
63
|
-
string projectId = 1;
|
|
64
|
-
string name = 2;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
string
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
string
|
|
101
|
-
|
|
102
|
-
string
|
|
103
|
-
string
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
string
|
|
116
|
-
string
|
|
117
|
-
string value = 3;
|
|
118
|
-
string createdAt = 4;
|
|
119
|
-
string updatedAt = 5;
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/empty.proto";
|
|
4
|
+
|
|
5
|
+
package project;
|
|
6
|
+
|
|
7
|
+
service ProjectService {
|
|
8
|
+
rpc Create (CreateProjectRequest) returns (ProjectResponse);
|
|
9
|
+
rpc FindMany (FindManyRequest) returns (FindManyResponse);
|
|
10
|
+
rpc Delete (DeleteProjectRequest) returns (google.protobuf.Empty);
|
|
11
|
+
rpc Update (UpdateProjectRequest) returns (ProjectResponse);
|
|
12
|
+
rpc FindFirst (FindFirstRequest) returns (FindFirstResponse);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
service EnvironmentService {
|
|
16
|
+
rpc Create (CreateEnvironmentRequest) returns (EnvironmentResponse);
|
|
17
|
+
rpc Update (UpdateEnvironmentRequest) returns (EnvironmentResponse);
|
|
18
|
+
rpc Delete (DeleteEnvironmentRequest) returns (google.protobuf.Empty);
|
|
19
|
+
rpc FindMany (FindManyEnvironmentsRequest) returns (FindManyEnvironmentsResponse);
|
|
20
|
+
rpc FindFirst (FindFirstEnvironmentRequest) returns (FindFirstEnvironmentResponse);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message CreateProjectRequest {
|
|
24
|
+
string name = 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message ProjectResponse {
|
|
28
|
+
string id = 1;
|
|
29
|
+
string name = 2;
|
|
30
|
+
string companyId = 3;
|
|
31
|
+
string createdAt = 4;
|
|
32
|
+
string updatedAt = 5;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message DeleteProjectRequest{
|
|
36
|
+
string id = 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message UpdateProjectRequest{
|
|
40
|
+
string id = 1;
|
|
41
|
+
string name = 2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message FindManyRequest{
|
|
45
|
+
int32 skip = 1;
|
|
46
|
+
int32 take = 2;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message FindManyResponse{
|
|
50
|
+
repeated ProjectResponse data = 1;
|
|
51
|
+
int32 total = 2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message FindFirstRequest{
|
|
55
|
+
string id = 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message FindFirstResponse{
|
|
59
|
+
ProjectResponse project = 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message CreateEnvironmentRequest {
|
|
63
|
+
string projectId = 1;
|
|
64
|
+
string name = 2;
|
|
65
|
+
repeated EnvironmentVariableInput variables = 4;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message UpdateEnvironmentRequest {
|
|
69
|
+
string id = 1;
|
|
70
|
+
string name = 2;
|
|
71
|
+
repeated EnvironmentVariableInput variables = 4;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message DeleteEnvironmentRequest {
|
|
75
|
+
string id = 1;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message FindManyEnvironmentsRequest {
|
|
79
|
+
string projectId = 1;
|
|
80
|
+
int32 skip = 2;
|
|
81
|
+
int32 take = 3;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message FindManyEnvironmentsResponse {
|
|
85
|
+
repeated EnvironmentResponse data = 1;
|
|
86
|
+
int32 total = 2;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message FindFirstEnvironmentRequest {
|
|
90
|
+
string id = 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message FindFirstEnvironmentResponse {
|
|
94
|
+
EnvironmentResponse environment = 1;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message EnvironmentResponse {
|
|
98
|
+
string id = 1;
|
|
99
|
+
string projectId = 2;
|
|
100
|
+
string name = 3;
|
|
101
|
+
repeated EnvironmentVariableResponse variables = 5;
|
|
102
|
+
string createdAt = 6;
|
|
103
|
+
string updatedAt = 7;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
message EnvironmentVariableInput {
|
|
107
|
+
string key = 1;
|
|
108
|
+
string value = 2;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message EnvironmentVariableResponse {
|
|
112
|
+
string id = 1;
|
|
113
|
+
string key = 2;
|
|
114
|
+
string value = 3;
|
|
115
|
+
string createdAt = 4;
|
|
116
|
+
string updatedAt = 5;
|
|
120
117
|
}
|
package/proto/workflow.proto
CHANGED
|
@@ -1,181 +1,187 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "google/protobuf/empty.proto";
|
|
4
|
-
import "google/protobuf/struct.proto";
|
|
5
|
-
|
|
6
|
-
package workflow;
|
|
7
|
-
|
|
8
|
-
service WorkflowService {
|
|
9
|
-
rpc Create (CreateWorkflowRequest) returns (WorkflowResponse);
|
|
10
|
-
rpc FindMany (FindManyWorkflowRequest) returns (FindManyWorkflowResponse);
|
|
11
|
-
rpc Delete (DeleteWorkflowRequest) returns (google.protobuf.Empty);
|
|
12
|
-
rpc Update (UpdateWorkflowRequest) returns (WorkflowResponse);
|
|
13
|
-
rpc FindFirst (FindFirstWorkflowRequest) returns (WorkflowResponse);
|
|
14
|
-
rpc TriggerWorkflow (TriggerWorkflowRequest) returns (google.protobuf.Empty);
|
|
15
|
-
rpc TriggerNode (TriggerNodeRequest) returns (google.protobuf.Empty);
|
|
16
|
-
rpc FindManyWorkflowNode (FindManyWorkflowNodeRequest) returns (FindManyWorkflowNodeResponse);
|
|
17
|
-
rpc SaveWorkflowBatch (SaveWorkflowBatchRequest) returns (google.protobuf.Empty);
|
|
18
|
-
rpc FindWorkflowNodeTypes (google.protobuf.Empty) returns (FindManyWorkflowNodeTypeResponse);
|
|
19
|
-
rpc FindConnections (FindConnectionsRequest) returns (FindConnectionsResponse);
|
|
20
|
-
rpc UpdateWorkflowStatus (UpdateWorkflowStatusRequest) returns (google.protobuf.Empty);
|
|
21
|
-
rpc GetNodeExecutionLog(GetNodeExecutionLogRequest) returns (GetExecutionLogResponse);
|
|
22
|
-
rpc GetWorkflowExecutionLog(GetWorkflowExecutionLogRequest) returns (GetExecutionLogResponse);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
message CreateWorkflowRequest {
|
|
26
|
-
string name = 1;
|
|
27
|
-
string projectId = 2;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
string
|
|
33
|
-
string
|
|
34
|
-
string
|
|
35
|
-
string
|
|
36
|
-
string
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
string
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
message
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
message
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
string
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
message
|
|
126
|
-
string
|
|
127
|
-
string
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
string workflowId =
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
int32
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
int32
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
message
|
|
174
|
-
string
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
string
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/empty.proto";
|
|
4
|
+
import "google/protobuf/struct.proto";
|
|
5
|
+
|
|
6
|
+
package workflow;
|
|
7
|
+
|
|
8
|
+
service WorkflowService {
|
|
9
|
+
rpc Create (CreateWorkflowRequest) returns (WorkflowResponse);
|
|
10
|
+
rpc FindMany (FindManyWorkflowRequest) returns (FindManyWorkflowResponse);
|
|
11
|
+
rpc Delete (DeleteWorkflowRequest) returns (google.protobuf.Empty);
|
|
12
|
+
rpc Update (UpdateWorkflowRequest) returns (WorkflowResponse);
|
|
13
|
+
rpc FindFirst (FindFirstWorkflowRequest) returns (WorkflowResponse);
|
|
14
|
+
rpc TriggerWorkflow (TriggerWorkflowRequest) returns (google.protobuf.Empty);
|
|
15
|
+
rpc TriggerNode (TriggerNodeRequest) returns (google.protobuf.Empty);
|
|
16
|
+
rpc FindManyWorkflowNode (FindManyWorkflowNodeRequest) returns (FindManyWorkflowNodeResponse);
|
|
17
|
+
rpc SaveWorkflowBatch (SaveWorkflowBatchRequest) returns (google.protobuf.Empty);
|
|
18
|
+
rpc FindWorkflowNodeTypes (google.protobuf.Empty) returns (FindManyWorkflowNodeTypeResponse);
|
|
19
|
+
rpc FindConnections (FindConnectionsRequest) returns (FindConnectionsResponse);
|
|
20
|
+
rpc UpdateWorkflowStatus (UpdateWorkflowStatusRequest) returns (google.protobuf.Empty);
|
|
21
|
+
rpc GetNodeExecutionLog(GetNodeExecutionLogRequest) returns (GetExecutionLogResponse);
|
|
22
|
+
rpc GetWorkflowExecutionLog(GetWorkflowExecutionLogRequest) returns (GetExecutionLogResponse);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message CreateWorkflowRequest {
|
|
26
|
+
string name = 1;
|
|
27
|
+
string projectId = 2;
|
|
28
|
+
optional string default_environment_id = 3;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message WorkflowResponse {
|
|
32
|
+
string id = 1;
|
|
33
|
+
string name = 2;
|
|
34
|
+
string companyId = 3;
|
|
35
|
+
string projectId = 4;
|
|
36
|
+
string createdAt = 5;
|
|
37
|
+
string updatedAt = 6;
|
|
38
|
+
WorkflowStatus status = 7;
|
|
39
|
+
optional string default_environment_id = 8;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message DeleteWorkflowRequest{
|
|
43
|
+
string id = 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message UpdateWorkflowRequest{
|
|
47
|
+
string id = 1;
|
|
48
|
+
string name = 2;
|
|
49
|
+
optional string default_environment_id = 3;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message FindManyWorkflowRequest{
|
|
53
|
+
string projectId = 1;
|
|
54
|
+
int32 skip = 2;
|
|
55
|
+
int32 take = 3;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message FindManyWorkflowResponse{
|
|
59
|
+
repeated WorkflowResponse data = 1;
|
|
60
|
+
int32 total = 2;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message FindFirstWorkflowRequest {
|
|
64
|
+
string workflowId = 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message TriggerWorkflowRequest{
|
|
68
|
+
string workflowId = 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message TriggerNodeRequest{
|
|
72
|
+
string nodeId = 1;
|
|
73
|
+
string workflowId = 2;
|
|
74
|
+
google.protobuf.Struct inputSchema = 3;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message WorkflowNodeRequest{
|
|
78
|
+
string id = 1;
|
|
79
|
+
int32 positionX = 2;
|
|
80
|
+
int32 positionY = 3;
|
|
81
|
+
google.protobuf.Struct inputSchema = 4;
|
|
82
|
+
google.protobuf.Struct outputSchema = 5;
|
|
83
|
+
google.protobuf.Struct config = 6;
|
|
84
|
+
string nodeTypeId = 7;
|
|
85
|
+
optional string environment_id = 8;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message FindManyWorkflowNodeRequest{
|
|
89
|
+
string workflowId = 1;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message FindManyWorkflowNodeResponse{
|
|
93
|
+
repeated WorkflowNodeResponse data = 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message WorkflowNodeResponse{
|
|
97
|
+
string id = 1;
|
|
98
|
+
string nodeTypeId = 2;
|
|
99
|
+
int32 positionX = 3;
|
|
100
|
+
int32 positionY = 4;
|
|
101
|
+
google.protobuf.Struct inputSchema = 5;
|
|
102
|
+
google.protobuf.Struct outputSchema = 6;
|
|
103
|
+
google.protobuf.Struct config = 7;
|
|
104
|
+
string createdAt = 8;
|
|
105
|
+
string updatedAt = 9;
|
|
106
|
+
optional string environment_id = 10;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message WorkflowNodeConnection {
|
|
110
|
+
string id = 1;
|
|
111
|
+
string workflowId = 2;
|
|
112
|
+
string fromNodeId = 3;
|
|
113
|
+
string toNodeId = 4;
|
|
114
|
+
google.protobuf.Struct pointer = 5;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message SaveWorkflowBatchRequest {
|
|
118
|
+
string workflowId = 1;
|
|
119
|
+
string workflowName = 2;
|
|
120
|
+
repeated WorkflowNodeRequest nodes = 3;
|
|
121
|
+
repeated UpdateBatchConnection connections = 4;
|
|
122
|
+
optional string default_environment_id = 5;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
message UpdateBatchConnection {
|
|
126
|
+
string fromNodeId = 1;
|
|
127
|
+
string toNodeId = 2;
|
|
128
|
+
google.protobuf.Struct pointer = 3;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
message WorkflowNodeTypeResponse {
|
|
132
|
+
string id = 1;
|
|
133
|
+
string label = 2;
|
|
134
|
+
string description = 3;
|
|
135
|
+
string service = 4;
|
|
136
|
+
google.protobuf.Struct form = 5;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
message FindManyWorkflowNodeTypeResponse {
|
|
140
|
+
repeated WorkflowNodeTypeResponse data = 1;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message FindConnectionsRequest {
|
|
144
|
+
string workflowId = 1;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message FindConnectionsResponse {
|
|
148
|
+
repeated WorkflowNodeConnection data = 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
enum WorkflowStatus {
|
|
152
|
+
DRAFT = 0;
|
|
153
|
+
PUBLISHED = 1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
message UpdateWorkflowStatusRequest {
|
|
157
|
+
string workflowId = 1;
|
|
158
|
+
WorkflowStatus status = 2;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message GetNodeExecutionLogRequest {
|
|
162
|
+
repeated string nodeIds = 1;
|
|
163
|
+
string workflowId =2;
|
|
164
|
+
int32 skip = 3;
|
|
165
|
+
int32 take = 4;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
message GetExecutionLogResponse {
|
|
169
|
+
repeated ExecutionLogEntry data = 1;
|
|
170
|
+
int32 total = 2;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
message GetWorkflowExecutionLogRequest{
|
|
174
|
+
string workflowId = 1;
|
|
175
|
+
int32 skip = 2;
|
|
176
|
+
int32 take = 3;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message ExecutionLogEntry {
|
|
180
|
+
string nodeId = 1;
|
|
181
|
+
string status = 2;
|
|
182
|
+
google.protobuf.Struct inputSchema = 3;
|
|
183
|
+
google.protobuf.Struct outputSchema = 4;
|
|
184
|
+
google.protobuf.Struct config = 5;
|
|
185
|
+
string startedAt = 6;
|
|
186
|
+
string finishedAt = 7;
|
|
181
187
|
}
|