@wenlarge/communication 1.1.13 → 1.1.16
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/config/notification-config.d.ts +1 -0
- package/dist/config/notification-config.js +4 -0
- package/dist/generated/auth.js +1 -1
- package/dist/generated/executor-core.js +1 -1
- package/dist/generated/google/protobuf/empty.js +1 -1
- package/dist/generated/google/protobuf/struct.d.ts +1 -1
- package/dist/generated/google/protobuf/struct.js +2 -2
- package/dist/generated/google/protobuf/timestamp.d.ts +108 -0
- package/dist/generated/google/protobuf/timestamp.js +11 -0
- package/dist/generated/notification.d.ts +25 -0
- package/dist/generated/notification.js +27 -0
- package/dist/generated/project.js +1 -1
- package/dist/generated/workflow.js +1 -1
- package/dist/grpc-client/grpc-client.module.d.ts +3 -0
- package/dist/grpc-client/grpc-client.module.js +37 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/kafka/kafka-topics.d.ts +2 -0
- package/dist/kafka/kafka-topics.js +2 -0
- package/package.json +49 -49
- package/proto/auth.proto +97 -97
- package/proto/executor-core.proto +20 -20
- package/proto/notification.proto +22 -0
- package/proto/project.proto +152 -152
- package/proto/workflow.proto +207 -207
- package/src/generated/auth.ts +1 -1
- package/src/generated/common.ts +16 -16
- package/src/generated/executor-core.ts +1 -1
- package/src/generated/google/protobuf/empty.ts +1 -1
- package/src/generated/google/protobuf/struct.ts +2 -2
- package/src/generated/notification.ts +56 -0
- package/src/generated/project.ts +1 -1
- package/src/generated/workflow.ts +1 -1
package/proto/workflow.proto
CHANGED
|
@@ -1,208 +1,208 @@
|
|
|
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 CreateWorkflowNode (CreateWorkflowNodeRequest) returns (WorkflowNodeResponse);
|
|
17
|
-
rpc FindManyWorkflowNode (FindManyWorkflowNodeRequest) returns (FindManyWorkflowNodeResponse);
|
|
18
|
-
rpc FindFirstWorkflowNode (FindFirstWorkflowNodeRequest) returns (FindFirstWorkflowNodeResponse);
|
|
19
|
-
rpc UpdateWorkflowNode (UpdateWorkflowNodeRequest) returns (WorkflowNodeResponse);
|
|
20
|
-
rpc DeleteWorkflowNode (DeleteWorkflowNodeRequest) returns (google.protobuf.Empty);
|
|
21
|
-
rpc SaveWorkflowBatch (SaveWorkflowBatchRequest) returns (google.protobuf.Empty);
|
|
22
|
-
rpc FindWorkflowNodeTypes (google.protobuf.Empty) returns (FindManyWorkflowNodeTypeResponse);
|
|
23
|
-
rpc FindConnections (FindConnectionsRequest) returns (FindConnectionsResponse);
|
|
24
|
-
rpc UpdateWorkflowStatus (UpdateWorkflowStatusRequest) returns (google.protobuf.Empty);
|
|
25
|
-
rpc GetNodeExecutionLog(GetNodeExecutionLogRequest) returns (GetExecutionLogResponse);
|
|
26
|
-
rpc GetWorkflowExecutionLog(GetWorkflowExecutionLogRequest) returns (GetExecutionLogResponse);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
message CreateWorkflowRequest {
|
|
30
|
-
string name = 1;
|
|
31
|
-
string projectId = 2;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
message WorkflowResponse {
|
|
35
|
-
string id = 1;
|
|
36
|
-
string name = 2;
|
|
37
|
-
string companyId = 3;
|
|
38
|
-
string projectId = 4;
|
|
39
|
-
string createdAt = 5;
|
|
40
|
-
string updatedAt = 6;
|
|
41
|
-
WorkflowStatus status = 7;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message DeleteWorkflowRequest{
|
|
45
|
-
string id = 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
message UpdateWorkflowRequest{
|
|
49
|
-
string id = 1;
|
|
50
|
-
string name = 2;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
message FindManyWorkflowRequest{
|
|
54
|
-
string projectId = 1;
|
|
55
|
-
int32 skip = 2;
|
|
56
|
-
int32 take = 3;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
message FindManyWorkflowResponse{
|
|
60
|
-
repeated WorkflowResponse data = 1;
|
|
61
|
-
int32 total = 2;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
message FindFirstWorkflowRequest {
|
|
65
|
-
string workflowId = 1;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
message TriggerWorkflowRequest{
|
|
69
|
-
string workflowId = 1;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
message TriggerNodeRequest{
|
|
73
|
-
string nodeId = 1;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
message CreateWorkflowNodeRequest{
|
|
78
|
-
string id = 1;
|
|
79
|
-
string workflowId = 2;
|
|
80
|
-
string name = 3;
|
|
81
|
-
int32 positionX = 4;
|
|
82
|
-
int32 positionY = 5;
|
|
83
|
-
google.protobuf.Struct inputSchema = 6;
|
|
84
|
-
google.protobuf.Struct outputSchema = 7;
|
|
85
|
-
google.protobuf.Struct config = 8;
|
|
86
|
-
string nodeTypeId = 9;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
message UpdateWorkflowNodeRequest{
|
|
90
|
-
string id = 1;
|
|
91
|
-
string name = 2;
|
|
92
|
-
string nodeTypeId = 3;
|
|
93
|
-
int32 positionX = 4;
|
|
94
|
-
int32 positionY=5;
|
|
95
|
-
google.protobuf.Struct inputSchema = 6;
|
|
96
|
-
google.protobuf.Struct outputSchema = 7;
|
|
97
|
-
google.protobuf.Struct config = 8;
|
|
98
|
-
string workflowId = 9;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
message DeleteWorkflowNodeRequest{
|
|
102
|
-
string id = 1;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
message FindManyWorkflowNodeRequest{
|
|
106
|
-
string workflowId = 1;
|
|
107
|
-
int32 skip = 2;
|
|
108
|
-
int32 take = 3;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
message FindManyWorkflowNodeResponse{
|
|
112
|
-
repeated WorkflowNodeResponse data = 1;
|
|
113
|
-
int32 total = 2;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
message FindFirstWorkflowNodeRequest{
|
|
117
|
-
string id = 1;
|
|
118
|
-
}
|
|
119
|
-
message FindFirstWorkflowNodeResponse{
|
|
120
|
-
WorkflowNodeResponse node = 1;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
message WorkflowNodeResponse{
|
|
124
|
-
string id = 1;
|
|
125
|
-
string name = 2;
|
|
126
|
-
string nodeTypeId = 3;
|
|
127
|
-
int32 positionX = 4;
|
|
128
|
-
int32 positionY = 5;
|
|
129
|
-
google.protobuf.Struct inputSchema = 6;
|
|
130
|
-
google.protobuf.Struct outputSchema = 7;
|
|
131
|
-
google.protobuf.Struct config = 8;
|
|
132
|
-
string createdAt = 9;
|
|
133
|
-
string updatedAt = 10;
|
|
134
|
-
string workflowId = 11;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
message WorkflowNodeConnection {
|
|
138
|
-
string id = 1;
|
|
139
|
-
string workflowId = 2;
|
|
140
|
-
string fromNodeId = 3;
|
|
141
|
-
string toNodeId = 4;
|
|
142
|
-
google.protobuf.Struct pointer = 5;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
message SaveWorkflowBatchRequest {
|
|
146
|
-
string workflowId = 1;
|
|
147
|
-
repeated UpdateWorkflowNodeRequest nodes = 2;
|
|
148
|
-
repeated UpdateBatchConnection connections = 3;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
message UpdateBatchConnection {
|
|
152
|
-
string fromNodeId = 1;
|
|
153
|
-
string toNodeId = 2;
|
|
154
|
-
google.protobuf.Struct pointer = 3;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
message WorkflowNodeTypeResponse {
|
|
158
|
-
string id = 1;
|
|
159
|
-
string label = 2;
|
|
160
|
-
string description = 3;
|
|
161
|
-
string service = 4;
|
|
162
|
-
google.protobuf.Struct form = 5;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
message FindManyWorkflowNodeTypeResponse {
|
|
166
|
-
repeated WorkflowNodeTypeResponse data = 1;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
message FindConnectionsRequest {
|
|
170
|
-
string workflowId = 1;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
message FindConnectionsResponse {
|
|
174
|
-
repeated WorkflowNodeConnection data = 1;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
enum WorkflowStatus {
|
|
178
|
-
DRAFT = 0;
|
|
179
|
-
PUBLISHED = 1;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
message UpdateWorkflowStatusRequest {
|
|
183
|
-
string workflowId = 1;
|
|
184
|
-
WorkflowStatus status = 2;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
message GetNodeExecutionLogRequest {
|
|
188
|
-
string nodeId = 1;
|
|
189
|
-
string workflowId =2;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
message GetExecutionLogResponse {
|
|
193
|
-
repeated ExecutionLogEntry logs = 1;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
message GetWorkflowExecutionLogRequest{
|
|
197
|
-
string workflowId = 1;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
message ExecutionLogEntry {
|
|
201
|
-
string nodeId = 1;
|
|
202
|
-
string status = 2;
|
|
203
|
-
google.protobuf.Struct inputSchema = 3;
|
|
204
|
-
google.protobuf.Struct outputSchema = 4;
|
|
205
|
-
google.protobuf.Struct config = 5;
|
|
206
|
-
string startedAt = 6;
|
|
207
|
-
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 CreateWorkflowNode (CreateWorkflowNodeRequest) returns (WorkflowNodeResponse);
|
|
17
|
+
rpc FindManyWorkflowNode (FindManyWorkflowNodeRequest) returns (FindManyWorkflowNodeResponse);
|
|
18
|
+
rpc FindFirstWorkflowNode (FindFirstWorkflowNodeRequest) returns (FindFirstWorkflowNodeResponse);
|
|
19
|
+
rpc UpdateWorkflowNode (UpdateWorkflowNodeRequest) returns (WorkflowNodeResponse);
|
|
20
|
+
rpc DeleteWorkflowNode (DeleteWorkflowNodeRequest) returns (google.protobuf.Empty);
|
|
21
|
+
rpc SaveWorkflowBatch (SaveWorkflowBatchRequest) returns (google.protobuf.Empty);
|
|
22
|
+
rpc FindWorkflowNodeTypes (google.protobuf.Empty) returns (FindManyWorkflowNodeTypeResponse);
|
|
23
|
+
rpc FindConnections (FindConnectionsRequest) returns (FindConnectionsResponse);
|
|
24
|
+
rpc UpdateWorkflowStatus (UpdateWorkflowStatusRequest) returns (google.protobuf.Empty);
|
|
25
|
+
rpc GetNodeExecutionLog(GetNodeExecutionLogRequest) returns (GetExecutionLogResponse);
|
|
26
|
+
rpc GetWorkflowExecutionLog(GetWorkflowExecutionLogRequest) returns (GetExecutionLogResponse);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message CreateWorkflowRequest {
|
|
30
|
+
string name = 1;
|
|
31
|
+
string projectId = 2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message WorkflowResponse {
|
|
35
|
+
string id = 1;
|
|
36
|
+
string name = 2;
|
|
37
|
+
string companyId = 3;
|
|
38
|
+
string projectId = 4;
|
|
39
|
+
string createdAt = 5;
|
|
40
|
+
string updatedAt = 6;
|
|
41
|
+
WorkflowStatus status = 7;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message DeleteWorkflowRequest{
|
|
45
|
+
string id = 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message UpdateWorkflowRequest{
|
|
49
|
+
string id = 1;
|
|
50
|
+
string name = 2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message FindManyWorkflowRequest{
|
|
54
|
+
string projectId = 1;
|
|
55
|
+
int32 skip = 2;
|
|
56
|
+
int32 take = 3;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message FindManyWorkflowResponse{
|
|
60
|
+
repeated WorkflowResponse data = 1;
|
|
61
|
+
int32 total = 2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message FindFirstWorkflowRequest {
|
|
65
|
+
string workflowId = 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message TriggerWorkflowRequest{
|
|
69
|
+
string workflowId = 1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message TriggerNodeRequest{
|
|
73
|
+
string nodeId = 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
message CreateWorkflowNodeRequest{
|
|
78
|
+
string id = 1;
|
|
79
|
+
string workflowId = 2;
|
|
80
|
+
string name = 3;
|
|
81
|
+
int32 positionX = 4;
|
|
82
|
+
int32 positionY = 5;
|
|
83
|
+
google.protobuf.Struct inputSchema = 6;
|
|
84
|
+
google.protobuf.Struct outputSchema = 7;
|
|
85
|
+
google.protobuf.Struct config = 8;
|
|
86
|
+
string nodeTypeId = 9;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message UpdateWorkflowNodeRequest{
|
|
90
|
+
string id = 1;
|
|
91
|
+
string name = 2;
|
|
92
|
+
string nodeTypeId = 3;
|
|
93
|
+
int32 positionX = 4;
|
|
94
|
+
int32 positionY=5;
|
|
95
|
+
google.protobuf.Struct inputSchema = 6;
|
|
96
|
+
google.protobuf.Struct outputSchema = 7;
|
|
97
|
+
google.protobuf.Struct config = 8;
|
|
98
|
+
string workflowId = 9;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message DeleteWorkflowNodeRequest{
|
|
102
|
+
string id = 1;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message FindManyWorkflowNodeRequest{
|
|
106
|
+
string workflowId = 1;
|
|
107
|
+
int32 skip = 2;
|
|
108
|
+
int32 take = 3;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message FindManyWorkflowNodeResponse{
|
|
112
|
+
repeated WorkflowNodeResponse data = 1;
|
|
113
|
+
int32 total = 2;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
message FindFirstWorkflowNodeRequest{
|
|
117
|
+
string id = 1;
|
|
118
|
+
}
|
|
119
|
+
message FindFirstWorkflowNodeResponse{
|
|
120
|
+
WorkflowNodeResponse node = 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
message WorkflowNodeResponse{
|
|
124
|
+
string id = 1;
|
|
125
|
+
string name = 2;
|
|
126
|
+
string nodeTypeId = 3;
|
|
127
|
+
int32 positionX = 4;
|
|
128
|
+
int32 positionY = 5;
|
|
129
|
+
google.protobuf.Struct inputSchema = 6;
|
|
130
|
+
google.protobuf.Struct outputSchema = 7;
|
|
131
|
+
google.protobuf.Struct config = 8;
|
|
132
|
+
string createdAt = 9;
|
|
133
|
+
string updatedAt = 10;
|
|
134
|
+
string workflowId = 11;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
message WorkflowNodeConnection {
|
|
138
|
+
string id = 1;
|
|
139
|
+
string workflowId = 2;
|
|
140
|
+
string fromNodeId = 3;
|
|
141
|
+
string toNodeId = 4;
|
|
142
|
+
google.protobuf.Struct pointer = 5;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
message SaveWorkflowBatchRequest {
|
|
146
|
+
string workflowId = 1;
|
|
147
|
+
repeated UpdateWorkflowNodeRequest nodes = 2;
|
|
148
|
+
repeated UpdateBatchConnection connections = 3;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message UpdateBatchConnection {
|
|
152
|
+
string fromNodeId = 1;
|
|
153
|
+
string toNodeId = 2;
|
|
154
|
+
google.protobuf.Struct pointer = 3;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
message WorkflowNodeTypeResponse {
|
|
158
|
+
string id = 1;
|
|
159
|
+
string label = 2;
|
|
160
|
+
string description = 3;
|
|
161
|
+
string service = 4;
|
|
162
|
+
google.protobuf.Struct form = 5;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
message FindManyWorkflowNodeTypeResponse {
|
|
166
|
+
repeated WorkflowNodeTypeResponse data = 1;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
message FindConnectionsRequest {
|
|
170
|
+
string workflowId = 1;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
message FindConnectionsResponse {
|
|
174
|
+
repeated WorkflowNodeConnection data = 1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
enum WorkflowStatus {
|
|
178
|
+
DRAFT = 0;
|
|
179
|
+
PUBLISHED = 1;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
message UpdateWorkflowStatusRequest {
|
|
183
|
+
string workflowId = 1;
|
|
184
|
+
WorkflowStatus status = 2;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
message GetNodeExecutionLogRequest {
|
|
188
|
+
string nodeId = 1;
|
|
189
|
+
string workflowId =2;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
message GetExecutionLogResponse {
|
|
193
|
+
repeated ExecutionLogEntry logs = 1;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
message GetWorkflowExecutionLogRequest{
|
|
197
|
+
string workflowId = 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
message ExecutionLogEntry {
|
|
201
|
+
string nodeId = 1;
|
|
202
|
+
string status = 2;
|
|
203
|
+
google.protobuf.Struct inputSchema = 3;
|
|
204
|
+
google.protobuf.Struct outputSchema = 4;
|
|
205
|
+
google.protobuf.Struct config = 5;
|
|
206
|
+
string startedAt = 6;
|
|
207
|
+
string finishedAt = 7;
|
|
208
208
|
}
|
package/src/generated/auth.ts
CHANGED
package/src/generated/common.ts
CHANGED
|
@@ -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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
3
|
// protoc-gen-ts_proto v1.181.2
|
|
4
|
-
// protoc
|
|
4
|
+
// protoc v3.21.5
|
|
5
5
|
// source: google/protobuf/struct.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -13,7 +13,7 @@ export const protobufPackage = "google.protobuf";
|
|
|
13
13
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
14
14
|
* `Value` type union.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
17
17
|
*/
|
|
18
18
|
export enum NullValue {
|
|
19
19
|
/** NULL_VALUE - Null value. */
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc v3.21.5
|
|
5
|
+
// source: notification.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import { Metadata } from "@grpc/grpc-js";
|
|
9
|
+
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
10
|
+
import { Observable } from "rxjs";
|
|
11
|
+
import { Empty } from "./google/protobuf/empty";
|
|
12
|
+
|
|
13
|
+
export const protobufPackage = "notification";
|
|
14
|
+
|
|
15
|
+
export interface AddMailRequest {
|
|
16
|
+
to: string;
|
|
17
|
+
subject: string;
|
|
18
|
+
text: string;
|
|
19
|
+
html: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface AddSmsRequest {
|
|
23
|
+
to: string;
|
|
24
|
+
body: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const NOTIFICATION_PACKAGE_NAME = "notification";
|
|
28
|
+
|
|
29
|
+
export interface NotificationServiceClient {
|
|
30
|
+
addMail(request: AddMailRequest, metadata?: Metadata): Observable<Empty>;
|
|
31
|
+
|
|
32
|
+
addSms(request: AddSmsRequest, metadata?: Metadata): Observable<Empty>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface NotificationServiceController {
|
|
36
|
+
addMail(request: AddMailRequest, metadata?: Metadata): void;
|
|
37
|
+
|
|
38
|
+
addSms(request: AddSmsRequest, metadata?: Metadata): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function NotificationServiceControllerMethods() {
|
|
42
|
+
return function (constructor: Function) {
|
|
43
|
+
const grpcMethods: string[] = ["addMail", "addSms"];
|
|
44
|
+
for (const method of grpcMethods) {
|
|
45
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
46
|
+
GrpcMethod("NotificationService", method)(constructor.prototype[method], method, descriptor);
|
|
47
|
+
}
|
|
48
|
+
const grpcStreamMethods: string[] = [];
|
|
49
|
+
for (const method of grpcStreamMethods) {
|
|
50
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
51
|
+
GrpcStreamMethod("NotificationService", method)(constructor.prototype[method], method, descriptor);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const NOTIFICATION_SERVICE_NAME = "NotificationService";
|
package/src/generated/project.ts
CHANGED