@wenlarge/communication 1.3.5 → 1.3.6

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.
@@ -10,6 +10,9 @@ export interface ExecuteNodeRequest {
10
10
  inputSchema?: {
11
11
  [key: string]: any;
12
12
  } | undefined;
13
+ env?: {
14
+ [key: string]: any;
15
+ } | undefined;
13
16
  }
14
17
  export interface ExecuteNodeResponse {
15
18
  output?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenlarge/communication",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "Shared gRPC proto interfaces and generated clients for Wenlarge microservices.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/proto/auth.proto CHANGED
@@ -1,125 +1,125 @@
1
- syntax = "proto3";
2
-
3
- import "google/protobuf/empty.proto";
4
-
5
- package auth;
6
-
7
- service AuthService {
8
- rpc Login (LoginRequest) returns (LoginResponse);
9
- rpc Register (RegisterRequest) returns (google.protobuf.Empty);
10
- rpc GetMe (GetMeRequest) returns (GetMeResponse);
11
- rpc InviteToCompany (InviteToCompanyRequest) returns (InviteToCompanyResponse);
12
- rpc UpdateUser (UpdateUserRequest) returns (google.protobuf.Empty);
13
- rpc UpdateInviteStatus (UpdateInviteStatusRequest) returns (UpdateInviteStatusResponse);
14
- rpc GetCompanyUsers (GetCompanyUsersRequest) returns (GetCompanyUsersResponse);
15
- rpc RemoveUserFromCompany (RemoveUserFromCompanyRequest) returns (google.protobuf.Empty);
16
- rpc RefreshToken (RefreshTokenRequest) returns (LoginResponse);
17
- rpc ForgotPassword (ForgotPasswordRequest) returns (google.protobuf.Empty);
18
- rpc ResetPassword (ResetPasswordRequest) returns (google.protobuf.Empty);
19
- }
20
-
21
- message LoginRequest {
22
- string email = 1;
23
- string password = 2;
24
- }
25
-
26
- message LoginResponse {
27
- string jwt = 1;
28
- string expiresIn = 2;
29
- }
30
-
31
- message RegisterRequest {
32
- string name = 1;
33
- string email = 2;
34
- string password = 3;
35
- string gsm = 4;
36
- }
37
-
38
- message GetMeRequest {
39
- string jwt = 1;
40
- }
41
-
42
- message Company {
43
- string id = 1;
44
- string name = 2;
45
- string createdAt = 3;
46
- string updatedAt = 4;
47
- }
48
-
49
- message CompanyUser {
50
- Company company = 1;
51
- }
52
-
53
- message InviteToCompanyRequest {
54
- string companyId = 1;
55
- string email = 2;
56
- }
57
-
58
- message InviteToCompanyResponse{
59
- string id = 1;
60
- string companyId = 2;
61
- string email = 3;
62
- }
63
-
64
- message UpdateUserRequest {
65
- string name = 1;
66
- string email = 2;
67
- string gsm = 3;
68
- string password = 4;
69
- }
70
-
71
- message UpdateInviteStatusRequest{
72
- string inviteId = 1;
73
- string userId =2;
74
- string status = 3;
75
- }
76
-
77
- message UpdateInviteStatusResponse{
78
- string id = 1 ;
79
- string status = 2;
80
- }
81
-
82
- message GetMeResponse {
83
- string id = 1;
84
- string name = 2;
85
- string email = 3;
86
- string createdAt = 4;
87
- string updatedAt = 5;
88
- repeated CompanyUser companyUsersOnUser = 6;
89
- string gsm = 7;
90
- }
91
-
92
- message GetCompanyUsersRequest {
93
- string companyId = 1;
94
- }
95
-
96
- message CompanyUserDetail {
97
- string userId = 1;
98
- string userName = 2;
99
- string userEmail = 3;
100
- string joinedAt = 4;
101
- bool isOwner = 5;
102
- string gsm = 6;
103
- }
104
-
105
- message GetCompanyUsersResponse {
106
- repeated CompanyUserDetail users = 1;
107
- }
108
-
109
- message RemoveUserFromCompanyRequest {
110
- string companyId = 1;
111
- string userId = 2;
112
- }
113
-
114
- message RefreshTokenRequest {
115
- string userId = 1;
116
- }
117
-
118
- message ForgotPasswordRequest {
119
- string email = 1;
120
- }
121
-
122
- message ResetPasswordRequest {
123
- string token = 1;
124
- string newPassword = 2;
1
+ syntax = "proto3";
2
+
3
+ import "google/protobuf/empty.proto";
4
+
5
+ package auth;
6
+
7
+ service AuthService {
8
+ rpc Login (LoginRequest) returns (LoginResponse);
9
+ rpc Register (RegisterRequest) returns (google.protobuf.Empty);
10
+ rpc GetMe (GetMeRequest) returns (GetMeResponse);
11
+ rpc InviteToCompany (InviteToCompanyRequest) returns (InviteToCompanyResponse);
12
+ rpc UpdateUser (UpdateUserRequest) returns (google.protobuf.Empty);
13
+ rpc UpdateInviteStatus (UpdateInviteStatusRequest) returns (UpdateInviteStatusResponse);
14
+ rpc GetCompanyUsers (GetCompanyUsersRequest) returns (GetCompanyUsersResponse);
15
+ rpc RemoveUserFromCompany (RemoveUserFromCompanyRequest) returns (google.protobuf.Empty);
16
+ rpc RefreshToken (RefreshTokenRequest) returns (LoginResponse);
17
+ rpc ForgotPassword (ForgotPasswordRequest) returns (google.protobuf.Empty);
18
+ rpc ResetPassword (ResetPasswordRequest) returns (google.protobuf.Empty);
19
+ }
20
+
21
+ message LoginRequest {
22
+ string email = 1;
23
+ string password = 2;
24
+ }
25
+
26
+ message LoginResponse {
27
+ string jwt = 1;
28
+ string expiresIn = 2;
29
+ }
30
+
31
+ message RegisterRequest {
32
+ string name = 1;
33
+ string email = 2;
34
+ string password = 3;
35
+ string gsm = 4;
36
+ }
37
+
38
+ message GetMeRequest {
39
+ string jwt = 1;
40
+ }
41
+
42
+ message Company {
43
+ string id = 1;
44
+ string name = 2;
45
+ string createdAt = 3;
46
+ string updatedAt = 4;
47
+ }
48
+
49
+ message CompanyUser {
50
+ Company company = 1;
51
+ }
52
+
53
+ message InviteToCompanyRequest {
54
+ string companyId = 1;
55
+ string email = 2;
56
+ }
57
+
58
+ message InviteToCompanyResponse{
59
+ string id = 1;
60
+ string companyId = 2;
61
+ string email = 3;
62
+ }
63
+
64
+ message UpdateUserRequest {
65
+ string name = 1;
66
+ string email = 2;
67
+ string gsm = 3;
68
+ string password = 4;
69
+ }
70
+
71
+ message UpdateInviteStatusRequest{
72
+ string inviteId = 1;
73
+ string userId =2;
74
+ string status = 3;
75
+ }
76
+
77
+ message UpdateInviteStatusResponse{
78
+ string id = 1 ;
79
+ string status = 2;
80
+ }
81
+
82
+ message GetMeResponse {
83
+ string id = 1;
84
+ string name = 2;
85
+ string email = 3;
86
+ string createdAt = 4;
87
+ string updatedAt = 5;
88
+ repeated CompanyUser companyUsersOnUser = 6;
89
+ string gsm = 7;
90
+ }
91
+
92
+ message GetCompanyUsersRequest {
93
+ string companyId = 1;
94
+ }
95
+
96
+ message CompanyUserDetail {
97
+ string userId = 1;
98
+ string userName = 2;
99
+ string userEmail = 3;
100
+ string joinedAt = 4;
101
+ bool isOwner = 5;
102
+ string gsm = 6;
103
+ }
104
+
105
+ message GetCompanyUsersResponse {
106
+ repeated CompanyUserDetail users = 1;
107
+ }
108
+
109
+ message RemoveUserFromCompanyRequest {
110
+ string companyId = 1;
111
+ string userId = 2;
112
+ }
113
+
114
+ message RefreshTokenRequest {
115
+ string userId = 1;
116
+ }
117
+
118
+ message ForgotPasswordRequest {
119
+ string email = 1;
120
+ }
121
+
122
+ message ResetPasswordRequest {
123
+ string token = 1;
124
+ string newPassword = 2;
125
125
  }
@@ -1,20 +1,21 @@
1
- syntax = "proto3";
2
-
3
- package executor_core;
4
- import "google/protobuf/struct.proto";
5
-
6
- message ExecuteNodeRequest {
7
- string nodeTypeId = 1;
8
- string nodeId = 2;
9
- google.protobuf.Struct config = 3;
10
- google.protobuf.Struct inputSchema = 4;
11
- }
12
-
13
- message ExecuteNodeResponse {
14
- google.protobuf.Struct output = 1;
15
- }
16
-
17
- service CoreExecutionService {
18
- rpc ExecuteNode (ExecuteNodeRequest) returns (ExecuteNodeResponse);
19
-
20
- }
1
+ syntax = "proto3";
2
+
3
+ package executor_core;
4
+ import "google/protobuf/struct.proto";
5
+
6
+ message ExecuteNodeRequest {
7
+ string nodeTypeId = 1;
8
+ string nodeId = 2;
9
+ google.protobuf.Struct config = 3;
10
+ google.protobuf.Struct inputSchema = 4;
11
+ google.protobuf.Struct env = 5;
12
+ }
13
+
14
+ message ExecuteNodeResponse {
15
+ google.protobuf.Struct output = 1;
16
+ }
17
+
18
+ service CoreExecutionService {
19
+ rpc ExecuteNode (ExecuteNodeRequest) returns (ExecuteNodeResponse);
20
+
21
+ }
@@ -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
+ }
@@ -1,117 +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
- 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;
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;
117
117
  }
@@ -1,187 +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
- string defaultEnvironmentId = 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
- string defaultEnvironmentId = 8;
40
- }
41
-
42
- message DeleteWorkflowRequest{
43
- string id = 1;
44
- }
45
-
46
- message UpdateWorkflowRequest{
47
- string id = 1;
48
- string name = 2;
49
- string defaultEnvironmentId = 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
- string environmentId = 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
- string environmentId = 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
- string defaultEnvironmentId = 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;
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
+ string defaultEnvironmentId = 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
+ string defaultEnvironmentId = 8;
40
+ }
41
+
42
+ message DeleteWorkflowRequest{
43
+ string id = 1;
44
+ }
45
+
46
+ message UpdateWorkflowRequest{
47
+ string id = 1;
48
+ string name = 2;
49
+ string defaultEnvironmentId = 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
+ string environmentId = 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
+ string environmentId = 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
+ string defaultEnvironmentId = 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;
187
187
  }
@@ -1,16 +1,16 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v1.181.2
4
- // protoc v6.33.1
5
- // source: common.proto
6
-
7
- /* eslint-disable */
8
-
9
- export const protobufPackage = "common";
10
-
11
- export interface PaginateRequest {
12
- skip: number;
13
- take: number;
14
- }
15
-
16
- export const COMMON_PACKAGE_NAME = "common";
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v1.181.2
4
+ // protoc v6.33.1
5
+ // source: common.proto
6
+
7
+ /* eslint-disable */
8
+
9
+ export const protobufPackage = "common";
10
+
11
+ export interface PaginateRequest {
12
+ skip: number;
13
+ take: number;
14
+ }
15
+
16
+ export const COMMON_PACKAGE_NAME = "common";
@@ -18,6 +18,7 @@ export interface ExecuteNodeRequest {
18
18
  nodeId: string;
19
19
  config?: { [key: string]: any } | undefined;
20
20
  inputSchema?: { [key: string]: any } | undefined;
21
+ env?: { [key: string]: any } | undefined;
21
22
  }
22
23
 
23
24
  export interface ExecuteNodeResponse {