@wenlarge/communication 1.3.6 → 1.3.7

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.
@@ -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
  }
@@ -49,12 +49,6 @@ export interface InviteToCompanyRequest {
49
49
  email: string;
50
50
  }
51
51
 
52
- export interface InviteToCompanyResponse {
53
- id: string;
54
- companyId: string;
55
- email: string;
56
- }
57
-
58
52
  export interface UpdateUserRequest {
59
53
  name: string;
60
54
  email: string;
@@ -68,11 +62,6 @@ export interface UpdateInviteStatusRequest {
68
62
  status: string;
69
63
  }
70
64
 
71
- export interface UpdateInviteStatusResponse {
72
- id: string;
73
- status: string;
74
- }
75
-
76
65
  export interface GetMeResponse {
77
66
  id: string;
78
67
  name: string;
@@ -127,11 +116,11 @@ export interface AuthServiceClient {
127
116
 
128
117
  getMe(request: GetMeRequest, metadata?: Metadata): Observable<GetMeResponse>;
129
118
 
130
- inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): Observable<InviteToCompanyResponse>;
119
+ inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): Observable<Empty>;
131
120
 
132
121
  updateUser(request: UpdateUserRequest, metadata?: Metadata): Observable<Empty>;
133
122
 
134
- updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): Observable<UpdateInviteStatusResponse>;
123
+ updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): Observable<Empty>;
135
124
 
136
125
  getCompanyUsers(request: GetCompanyUsersRequest, metadata?: Metadata): Observable<GetCompanyUsersResponse>;
137
126
 
@@ -151,17 +140,11 @@ export interface AuthServiceController {
151
140
 
152
141
  getMe(request: GetMeRequest, metadata?: Metadata): Promise<GetMeResponse> | Observable<GetMeResponse> | GetMeResponse;
153
142
 
154
- inviteToCompany(
155
- request: InviteToCompanyRequest,
156
- metadata?: Metadata,
157
- ): Promise<InviteToCompanyResponse> | Observable<InviteToCompanyResponse> | InviteToCompanyResponse;
143
+ inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): void;
158
144
 
159
145
  updateUser(request: UpdateUserRequest, metadata?: Metadata): void;
160
146
 
161
- updateInviteStatus(
162
- request: UpdateInviteStatusRequest,
163
- metadata?: Metadata,
164
- ): Promise<UpdateInviteStatusResponse> | Observable<UpdateInviteStatusResponse> | UpdateInviteStatusResponse;
147
+ updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): void;
165
148
 
166
149
  getCompanyUsers(
167
150
  request: GetCompanyUsersRequest,