@wenlarge/communication 1.1.3 → 1.1.4

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,6 +1,7 @@
1
1
  syntax = "proto3";
2
2
 
3
3
  import "google/protobuf/empty.proto";
4
+ import "google/protobuf/struct.proto";
4
5
 
5
6
  package workflow;
6
7
 
@@ -9,13 +10,17 @@ service WorkflowService {
9
10
  rpc FindMany (FindManyWorkflowRequest) returns (FindManyWorkflowResponse);
10
11
  rpc Delete (DeleteWorkflowRequest) returns (google.protobuf.Empty);
11
12
  rpc Update (UpdateWorkflowRequest) returns (WorkflowResponse);
12
- rpc TriggerWorkflow (TriggerExecutionRequest) returns (TriggerExecutionResponse);
13
+ rpc TriggerWorkflow (TriggerWorkflowRequest) returns (TriggerWorkflowResponse);
14
+ rpc TriggerNode (TriggerNodeRequest) returns (TriggerNodeResponse);
13
15
  rpc CreateWorkflowNode (CreateWorkflowNodeRequest) returns (WorkflowNodeResponse);
14
16
  rpc FindManyWorkflowNode (FindManyWorkflowNodeRequest) returns (FindManyWorkflowNodeResponse);
15
17
  rpc FindFirstWorkflowNode (FindFirstWorkflowNodeRequest) returns (FindFirstWorkflowNodeResponse);
16
18
  rpc UpdateWorkflowNode (UpdateWorkflowNodeRequest) returns (WorkflowNodeResponse);
17
19
  rpc DeleteWorkflowNode (DeleteWorkflowNodeRequest) returns (google.protobuf.Empty);
18
- rpc UpdateBatchWorkflow (UpdateBatchWorkflowRequest) returns (google.protobuf.Empty);
20
+ rpc SaveWorkflowBatch (SaveWorkflowBatchRequest) returns (google.protobuf.Empty);
21
+ rpc FindWorkflowNodeTypes (google.protobuf.Empty) returns (FindManyWorkflowNodeTypeResponse);
22
+ rpc FindConnections (FindConnectionsRequest) returns (FindConnectionsResponse);
23
+ rpc UpdateWorkflowStatus (UpdateWorkflowStatusRequest) returns (google.protobuf.Empty);
19
24
  }
20
25
 
21
26
  message CreateWorkflowRequest {
@@ -52,11 +57,19 @@ message FindManyWorkflowResponse{
52
57
  int32 total = 2;
53
58
  }
54
59
 
55
- message TriggerExecutionRequest{
60
+ message TriggerWorkflowRequest{
61
+ string workflowId = 1;
62
+ }
63
+
64
+ message TriggerWorkflowResponse{
65
+ bool ok = 1;
66
+ }
67
+
68
+ message TriggerNodeRequest{
56
69
  string nodeId = 1;
57
70
  }
58
71
 
59
- message TriggerExecutionResponse{
72
+ message TriggerNodeResponse{
60
73
  bool ok = 1;
61
74
  }
62
75
 
@@ -65,9 +78,9 @@ message CreateWorkflowNodeRequest{
65
78
  string name = 2;
66
79
  int32 positionX = 3;
67
80
  int32 positionY = 4;
68
- string inputSchema = 5;
69
- string outputSchema = 6;
70
- string config = 7;
81
+ google.protobuf.Struct inputSchema = 5;
82
+ google.protobuf.Struct outputSchema = 6;
83
+ google.protobuf.Struct config = 7;
71
84
  string nodeTypeId = 8;
72
85
  }
73
86
 
@@ -77,9 +90,9 @@ message UpdateWorkflowNodeRequest{
77
90
  string nodeTypeId = 3;
78
91
  int32 positionX = 4;
79
92
  int32 positionY=5;
80
- string inputSchema = 6;
81
- string outputSchema = 7;
82
- string config = 8;
93
+ google.protobuf.Struct inputSchema = 6;
94
+ google.protobuf.Struct outputSchema = 7;
95
+ google.protobuf.Struct config = 8;
83
96
  string workflowId = 9;
84
97
  }
85
98
 
@@ -111,9 +124,9 @@ message WorkflowNodeResponse{
111
124
  string nodeTypeId = 3;
112
125
  int32 positionX = 4;
113
126
  int32 positionY = 5;
114
- string inputSchema = 6;
115
- string outputSchema = 7;
116
- string config = 8;
127
+ google.protobuf.Struct inputSchema = 6;
128
+ google.protobuf.Struct outputSchema = 7;
129
+ google.protobuf.Struct config = 8;
117
130
  string createdAt = 9;
118
131
  string updatedAt = 10;
119
132
  string workflowId = 11;
@@ -126,7 +139,7 @@ message WorkflowNodeConnection {
126
139
  string toNodeId = 4;
127
140
  }
128
141
 
129
- message UpdateBatchWorkflowRequest {
142
+ message SaveWorkflowBatchRequest {
130
143
  string workflowId = 1;
131
144
  repeated UpdateWorkflowNodeRequest nodes = 2;
132
145
  repeated UpdateBatchConnection connections = 3;
@@ -135,4 +148,35 @@ message UpdateBatchWorkflowRequest {
135
148
  message UpdateBatchConnection {
136
149
  string fromNodeId = 1;
137
150
  string toNodeId = 2;
151
+ }
152
+
153
+ message WorkflowNodeTypeResponse {
154
+ string id = 1;
155
+ string label = 2;
156
+ string description = 3;
157
+ string service = 4;
158
+ string icon = 5;
159
+ string form = 6;
160
+ }
161
+
162
+ message FindManyWorkflowNodeTypeResponse {
163
+ repeated WorkflowNodeTypeResponse data = 1;
164
+ }
165
+
166
+ message FindConnectionsRequest {
167
+ string workflowId = 1;
168
+ }
169
+
170
+ message FindConnectionsResponse {
171
+ repeated WorkflowNodeConnection data = 1;
172
+ }
173
+
174
+ enum WorkflowStatus {
175
+ DRAFT = 0;
176
+ PUBLISHED = 1;
177
+ }
178
+
179
+ message UpdateWorkflowStatusRequest {
180
+ string workflowId = 1;
181
+ WorkflowStatus status = 2;
138
182
  }
@@ -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 v6.33.2
4
+ // protoc v5.29.6
5
5
  // source: auth.proto
6
6
 
7
7
  /* eslint-disable */
@@ -74,6 +74,27 @@ export interface GetMeResponse {
74
74
  companyUsersOnUser: CompanyUser[];
75
75
  }
76
76
 
77
+ export interface GetCompanyUsersRequest {
78
+ companyId: string;
79
+ }
80
+
81
+ export interface CompanyUserDetail {
82
+ userId: string;
83
+ userName: string;
84
+ userEmail: string;
85
+ joinedAt: string;
86
+ isOwner: boolean;
87
+ }
88
+
89
+ export interface GetCompanyUsersResponse {
90
+ users: CompanyUserDetail[];
91
+ }
92
+
93
+ export interface RemoveUserFromCompanyRequest {
94
+ companyId: string;
95
+ userId: string;
96
+ }
97
+
77
98
  export const AUTH_PACKAGE_NAME = "auth";
78
99
 
79
100
  export interface AuthServiceClient {
@@ -86,6 +107,10 @@ export interface AuthServiceClient {
86
107
  inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): Observable<InviteToCompanyResponse>;
87
108
 
88
109
  updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): Observable<UpdateInviteStatusResponse>;
110
+
111
+ getCompanyUsers(request: GetCompanyUsersRequest, metadata?: Metadata): Observable<GetCompanyUsersResponse>;
112
+
113
+ removeUserFromCompany(request: RemoveUserFromCompanyRequest, metadata?: Metadata): Observable<Empty>;
89
114
  }
90
115
 
91
116
  export interface AuthServiceController {
@@ -104,11 +129,26 @@ export interface AuthServiceController {
104
129
  request: UpdateInviteStatusRequest,
105
130
  metadata?: Metadata,
106
131
  ): Promise<UpdateInviteStatusResponse> | Observable<UpdateInviteStatusResponse> | UpdateInviteStatusResponse;
132
+
133
+ getCompanyUsers(
134
+ request: GetCompanyUsersRequest,
135
+ metadata?: Metadata,
136
+ ): Promise<GetCompanyUsersResponse> | Observable<GetCompanyUsersResponse> | GetCompanyUsersResponse;
137
+
138
+ removeUserFromCompany(request: RemoveUserFromCompanyRequest, metadata?: Metadata): void;
107
139
  }
108
140
 
109
141
  export function AuthServiceControllerMethods() {
110
142
  return function (constructor: Function) {
111
- const grpcMethods: string[] = ["login", "register", "getMe", "inviteToCompany", "updateInviteStatus"];
143
+ const grpcMethods: string[] = [
144
+ "login",
145
+ "register",
146
+ "getMe",
147
+ "inviteToCompany",
148
+ "updateInviteStatus",
149
+ "getCompanyUsers",
150
+ "removeUserFromCompany",
151
+ ];
112
152
  for (const method of grpcMethods) {
113
153
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
114
154
  GrpcMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
@@ -1,21 +1,23 @@
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 v6.33.2
4
+ // protoc v5.29.6
5
5
  // source: executor-core.proto
6
6
 
7
7
  /* eslint-disable */
8
8
  import { Metadata } from "@grpc/grpc-js";
9
9
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
10
+ import { wrappers } from "protobufjs";
10
11
  import { Observable } from "rxjs";
12
+ import { Struct } from "./google/protobuf/struct";
11
13
 
12
14
  export const protobufPackage = "executor_core";
13
15
 
14
16
  export interface ExecuteNodeRequest {
15
17
  nodeTypeId: string;
16
18
  nodeId: string;
17
- config: string;
18
- inputSchema: string;
19
+ config?: { [key: string]: any } | undefined;
20
+ inputSchema?: { [key: string]: any } | undefined;
19
21
  }
20
22
 
21
23
  export interface ExecuteNodeResponse {
@@ -24,6 +26,8 @@ export interface ExecuteNodeResponse {
24
26
 
25
27
  export const EXECUTOR_CORE_PACKAGE_NAME = "executor_core";
26
28
 
29
+ wrappers[".google.protobuf.Struct"] = { fromObject: Struct.wrap, toObject: Struct.unwrap } as any;
30
+
27
31
  export interface CoreExecutionServiceClient {
28
32
  executeNode(request: ExecuteNodeRequest, metadata?: Metadata): Observable<ExecuteNodeResponse>;
29
33
  }
@@ -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 v6.33.2
4
+ // protoc v5.29.6
5
5
  // source: google/protobuf/empty.proto
6
6
 
7
7
  /* eslint-disable */
@@ -0,0 +1,179 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v1.181.2
4
+ // protoc v5.29.6
5
+ // source: google/protobuf/struct.proto
6
+
7
+ /* eslint-disable */
8
+ import { wrappers } from "protobufjs";
9
+
10
+ export const protobufPackage = "google.protobuf";
11
+
12
+ /**
13
+ * `NullValue` is a singleton enumeration to represent the null value for the
14
+ * `Value` type union.
15
+ *
16
+ * The JSON representation for `NullValue` is JSON `null`.
17
+ */
18
+ export enum NullValue {
19
+ /** NULL_VALUE - Null value. */
20
+ NULL_VALUE = "NULL_VALUE",
21
+ UNRECOGNIZED = "UNRECOGNIZED",
22
+ }
23
+
24
+ /**
25
+ * `Struct` represents a structured data value, consisting of fields
26
+ * which map to dynamically typed values. In some languages, `Struct`
27
+ * might be supported by a native representation. For example, in
28
+ * scripting languages like JS a struct is represented as an
29
+ * object. The details of that representation are described together
30
+ * with the proto support for the language.
31
+ *
32
+ * The JSON representation for `Struct` is JSON object.
33
+ */
34
+ export interface Struct {
35
+ /** Unordered map of dynamically typed values. */
36
+ fields: { [key: string]: any | undefined };
37
+ }
38
+
39
+ export interface Struct_FieldsEntry {
40
+ key: string;
41
+ value?: any | undefined;
42
+ }
43
+
44
+ /**
45
+ * `Value` represents a dynamically typed value which can be either
46
+ * null, a number, a string, a boolean, a recursive struct value, or a
47
+ * list of values. A producer of value is expected to set one of these
48
+ * variants. Absence of any variant indicates an error.
49
+ *
50
+ * The JSON representation for `Value` is JSON value.
51
+ */
52
+ export interface Value {
53
+ /** Represents a null value. */
54
+ nullValue?:
55
+ | NullValue
56
+ | undefined;
57
+ /** Represents a double value. */
58
+ numberValue?:
59
+ | number
60
+ | undefined;
61
+ /** Represents a string value. */
62
+ stringValue?:
63
+ | string
64
+ | undefined;
65
+ /** Represents a boolean value. */
66
+ boolValue?:
67
+ | boolean
68
+ | undefined;
69
+ /** Represents a structured value. */
70
+ structValue?:
71
+ | { [key: string]: any }
72
+ | undefined;
73
+ /** Represents a repeated `Value`. */
74
+ listValue?: Array<any> | undefined;
75
+ }
76
+
77
+ /**
78
+ * `ListValue` is a wrapper around a repeated field of values.
79
+ *
80
+ * The JSON representation for `ListValue` is JSON array.
81
+ */
82
+ export interface ListValue {
83
+ /** Repeated field of dynamically typed values. */
84
+ values: any[];
85
+ }
86
+
87
+ export const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
88
+
89
+ function createBaseStruct(): Struct {
90
+ return { fields: {} };
91
+ }
92
+
93
+ export const Struct = {
94
+ wrap(object: { [key: string]: any } | undefined): Struct {
95
+ const struct = createBaseStruct();
96
+
97
+ if (object !== undefined) {
98
+ for (const key of Object.keys(object)) {
99
+ struct.fields[key] = Value.wrap(object[key]);
100
+ }
101
+ }
102
+ return struct;
103
+ },
104
+
105
+ unwrap(message: Struct): { [key: string]: any } {
106
+ const object: { [key: string]: any } = {};
107
+ if (message.fields) {
108
+ for (const key of Object.keys(message.fields)) {
109
+ object[key] = Value.unwrap(message.fields[key]);
110
+ }
111
+ }
112
+ return object;
113
+ },
114
+ };
115
+
116
+ function createBaseValue(): Value {
117
+ return {};
118
+ }
119
+
120
+ export const Value = {
121
+ wrap(value: any): Value {
122
+ const result = {} as any;
123
+ if (value === null) {
124
+ result.nullValue = NullValue.NULL_VALUE;
125
+ } else if (typeof value === "boolean") {
126
+ result.boolValue = value;
127
+ } else if (typeof value === "number") {
128
+ result.numberValue = value;
129
+ } else if (typeof value === "string") {
130
+ result.stringValue = value;
131
+ } else if (globalThis.Array.isArray(value)) {
132
+ result.listValue = ListValue.wrap(value);
133
+ } else if (typeof value === "object") {
134
+ result.structValue = Struct.wrap(value);
135
+ } else if (typeof value !== "undefined") {
136
+ throw new globalThis.Error("Unsupported any value type: " + typeof value);
137
+ }
138
+ return result;
139
+ },
140
+
141
+ unwrap(message: any): string | number | boolean | Object | null | Array<any> | undefined {
142
+ if (message?.hasOwnProperty("stringValue") && message.stringValue !== undefined) {
143
+ return message.stringValue;
144
+ } else if (message?.hasOwnProperty("numberValue") && message?.numberValue !== undefined) {
145
+ return message.numberValue;
146
+ } else if (message?.hasOwnProperty("boolValue") && message?.boolValue !== undefined) {
147
+ return message.boolValue;
148
+ } else if (message?.hasOwnProperty("structValue") && message?.structValue !== undefined) {
149
+ return Struct.unwrap(message.structValue as any);
150
+ } else if (message?.hasOwnProperty("listValue") && message?.listValue !== undefined) {
151
+ return ListValue.unwrap(message.listValue);
152
+ } else if (message?.hasOwnProperty("nullValue") && message?.nullValue !== undefined) {
153
+ return null;
154
+ }
155
+ return undefined;
156
+ },
157
+ };
158
+
159
+ function createBaseListValue(): ListValue {
160
+ return { values: [] };
161
+ }
162
+
163
+ export const ListValue = {
164
+ wrap(array: Array<any> | undefined): ListValue {
165
+ const result = createBaseListValue();
166
+ result.values = (array ?? []).map(Value.wrap);
167
+ return result;
168
+ },
169
+
170
+ unwrap(message: ListValue): Array<any> {
171
+ if (message?.hasOwnProperty("values") && globalThis.Array.isArray(message.values)) {
172
+ return message.values.map(Value.unwrap);
173
+ } else {
174
+ return message as any;
175
+ }
176
+ },
177
+ };
178
+
179
+ wrappers[".google.protobuf.Struct"] = { fromObject: Struct.wrap, toObject: Struct.unwrap } as any;
@@ -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 v6.33.2
4
+ // protoc v5.29.6
5
5
  // source: project.proto
6
6
 
7
7
  /* eslint-disable */
@@ -1,17 +1,25 @@
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 v6.33.2
4
+ // protoc v5.29.6
5
5
  // source: workflow.proto
6
6
 
7
7
  /* eslint-disable */
8
8
  import { Metadata } from "@grpc/grpc-js";
9
9
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
10
+ import { wrappers } from "protobufjs";
10
11
  import { Observable } from "rxjs";
11
12
  import { Empty } from "./google/protobuf/empty";
13
+ import { Struct } from "./google/protobuf/struct";
12
14
 
13
15
  export const protobufPackage = "workflow";
14
16
 
17
+ export enum WorkflowStatus {
18
+ DRAFT = "DRAFT",
19
+ PUBLISHED = "PUBLISHED",
20
+ UNRECOGNIZED = "UNRECOGNIZED",
21
+ }
22
+
15
23
  export interface CreateWorkflowRequest {
16
24
  name: string;
17
25
  projectId: string;
@@ -46,11 +54,19 @@ export interface FindManyWorkflowResponse {
46
54
  total: number;
47
55
  }
48
56
 
49
- export interface TriggerExecutionRequest {
57
+ export interface TriggerWorkflowRequest {
58
+ workflowId: string;
59
+ }
60
+
61
+ export interface TriggerWorkflowResponse {
62
+ ok: boolean;
63
+ }
64
+
65
+ export interface TriggerNodeRequest {
50
66
  nodeId: string;
51
67
  }
52
68
 
53
- export interface TriggerExecutionResponse {
69
+ export interface TriggerNodeResponse {
54
70
  ok: boolean;
55
71
  }
56
72
 
@@ -59,9 +75,9 @@ export interface CreateWorkflowNodeRequest {
59
75
  name: string;
60
76
  positionX: number;
61
77
  positionY: number;
62
- inputSchema: string;
63
- outputSchema: string;
64
- config: string;
78
+ inputSchema?: { [key: string]: any } | undefined;
79
+ outputSchema?: { [key: string]: any } | undefined;
80
+ config?: { [key: string]: any } | undefined;
65
81
  nodeTypeId: string;
66
82
  }
67
83
 
@@ -71,9 +87,9 @@ export interface UpdateWorkflowNodeRequest {
71
87
  nodeTypeId: string;
72
88
  positionX: number;
73
89
  positionY: number;
74
- inputSchema: string;
75
- outputSchema: string;
76
- config: string;
90
+ inputSchema?: { [key: string]: any } | undefined;
91
+ outputSchema?: { [key: string]: any } | undefined;
92
+ config?: { [key: string]: any } | undefined;
77
93
  workflowId: string;
78
94
  }
79
95
 
@@ -106,9 +122,9 @@ export interface WorkflowNodeResponse {
106
122
  nodeTypeId: string;
107
123
  positionX: number;
108
124
  positionY: number;
109
- inputSchema: string;
110
- outputSchema: string;
111
- config: string;
125
+ inputSchema?: { [key: string]: any } | undefined;
126
+ outputSchema?: { [key: string]: any } | undefined;
127
+ config?: { [key: string]: any } | undefined;
112
128
  createdAt: string;
113
129
  updatedAt: string;
114
130
  workflowId: string;
@@ -121,7 +137,7 @@ export interface WorkflowNodeConnection {
121
137
  toNodeId: string;
122
138
  }
123
139
 
124
- export interface UpdateBatchWorkflowRequest {
140
+ export interface SaveWorkflowBatchRequest {
125
141
  workflowId: string;
126
142
  nodes: UpdateWorkflowNodeRequest[];
127
143
  connections: UpdateBatchConnection[];
@@ -132,8 +148,36 @@ export interface UpdateBatchConnection {
132
148
  toNodeId: string;
133
149
  }
134
150
 
151
+ export interface WorkflowNodeTypeResponse {
152
+ id: string;
153
+ label: string;
154
+ description: string;
155
+ service: string;
156
+ icon: string;
157
+ form: string;
158
+ }
159
+
160
+ export interface FindManyWorkflowNodeTypeResponse {
161
+ data: WorkflowNodeTypeResponse[];
162
+ }
163
+
164
+ export interface FindConnectionsRequest {
165
+ workflowId: string;
166
+ }
167
+
168
+ export interface FindConnectionsResponse {
169
+ data: WorkflowNodeConnection[];
170
+ }
171
+
172
+ export interface UpdateWorkflowStatusRequest {
173
+ workflowId: string;
174
+ status: WorkflowStatus;
175
+ }
176
+
135
177
  export const WORKFLOW_PACKAGE_NAME = "workflow";
136
178
 
179
+ wrappers[".google.protobuf.Struct"] = { fromObject: Struct.wrap, toObject: Struct.unwrap } as any;
180
+
137
181
  export interface WorkflowServiceClient {
138
182
  create(request: CreateWorkflowRequest, metadata?: Metadata): Observable<WorkflowResponse>;
139
183
 
@@ -143,7 +187,9 @@ export interface WorkflowServiceClient {
143
187
 
144
188
  update(request: UpdateWorkflowRequest, metadata?: Metadata): Observable<WorkflowResponse>;
145
189
 
146
- triggerWorkflow(request: TriggerExecutionRequest, metadata?: Metadata): Observable<TriggerExecutionResponse>;
190
+ triggerWorkflow(request: TriggerWorkflowRequest, metadata?: Metadata): Observable<TriggerWorkflowResponse>;
191
+
192
+ triggerNode(request: TriggerNodeRequest, metadata?: Metadata): Observable<TriggerNodeResponse>;
147
193
 
148
194
  createWorkflowNode(request: CreateWorkflowNodeRequest, metadata?: Metadata): Observable<WorkflowNodeResponse>;
149
195
 
@@ -161,7 +207,13 @@ export interface WorkflowServiceClient {
161
207
 
162
208
  deleteWorkflowNode(request: DeleteWorkflowNodeRequest, metadata?: Metadata): Observable<Empty>;
163
209
 
164
- updateBatchWorkflow(request: UpdateBatchWorkflowRequest, metadata?: Metadata): Observable<Empty>;
210
+ saveWorkflowBatch(request: SaveWorkflowBatchRequest, metadata?: Metadata): Observable<Empty>;
211
+
212
+ findWorkflowNodeTypes(request: Empty, metadata?: Metadata): Observable<FindManyWorkflowNodeTypeResponse>;
213
+
214
+ findConnections(request: FindConnectionsRequest, metadata?: Metadata): Observable<FindConnectionsResponse>;
215
+
216
+ updateWorkflowStatus(request: UpdateWorkflowStatusRequest, metadata?: Metadata): Observable<Empty>;
165
217
  }
166
218
 
167
219
  export interface WorkflowServiceController {
@@ -183,9 +235,14 @@ export interface WorkflowServiceController {
183
235
  ): Promise<WorkflowResponse> | Observable<WorkflowResponse> | WorkflowResponse;
184
236
 
185
237
  triggerWorkflow(
186
- request: TriggerExecutionRequest,
238
+ request: TriggerWorkflowRequest,
239
+ metadata?: Metadata,
240
+ ): Promise<TriggerWorkflowResponse> | Observable<TriggerWorkflowResponse> | TriggerWorkflowResponse;
241
+
242
+ triggerNode(
243
+ request: TriggerNodeRequest,
187
244
  metadata?: Metadata,
188
- ): Promise<TriggerExecutionResponse> | Observable<TriggerExecutionResponse> | TriggerExecutionResponse;
245
+ ): Promise<TriggerNodeResponse> | Observable<TriggerNodeResponse> | TriggerNodeResponse;
189
246
 
190
247
  createWorkflowNode(
191
248
  request: CreateWorkflowNodeRequest,
@@ -209,7 +266,22 @@ export interface WorkflowServiceController {
209
266
 
210
267
  deleteWorkflowNode(request: DeleteWorkflowNodeRequest, metadata?: Metadata): void;
211
268
 
212
- updateBatchWorkflow(request: UpdateBatchWorkflowRequest, metadata?: Metadata): void;
269
+ saveWorkflowBatch(request: SaveWorkflowBatchRequest, metadata?: Metadata): void;
270
+
271
+ findWorkflowNodeTypes(
272
+ request: Empty,
273
+ metadata?: Metadata,
274
+ ):
275
+ | Promise<FindManyWorkflowNodeTypeResponse>
276
+ | Observable<FindManyWorkflowNodeTypeResponse>
277
+ | FindManyWorkflowNodeTypeResponse;
278
+
279
+ findConnections(
280
+ request: FindConnectionsRequest,
281
+ metadata?: Metadata,
282
+ ): Promise<FindConnectionsResponse> | Observable<FindConnectionsResponse> | FindConnectionsResponse;
283
+
284
+ updateWorkflowStatus(request: UpdateWorkflowStatusRequest, metadata?: Metadata): void;
213
285
  }
214
286
 
215
287
  export function WorkflowServiceControllerMethods() {
@@ -220,12 +292,16 @@ export function WorkflowServiceControllerMethods() {
220
292
  "delete",
221
293
  "update",
222
294
  "triggerWorkflow",
295
+ "triggerNode",
223
296
  "createWorkflowNode",
224
297
  "findManyWorkflowNode",
225
298
  "findFirstWorkflowNode",
226
299
  "updateWorkflowNode",
227
300
  "deleteWorkflowNode",
228
- "updateBatchWorkflow",
301
+ "saveWorkflowBatch",
302
+ "findWorkflowNodeTypes",
303
+ "findConnections",
304
+ "updateWorkflowStatus",
229
305
  ];
230
306
  for (const method of grpcMethods) {
231
307
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
@@ -1,23 +0,0 @@
1
- export type TriggerExecutionPayload = {
2
- nodeId: string;
3
- };
4
- export type ExecutionWaitingPayload = {
5
- nodeId: string;
6
- nodeTypeId: string;
7
- workflowId: string;
8
- config: string;
9
- inputSchema: string;
10
- triggeredAt: number;
11
- };
12
- export type ExecutionCompletedPayload = {
13
- workflowId: string;
14
- nodeId: string;
15
- result: string;
16
- finishedAt: number;
17
- };
18
- export type ExecutionFailedPayload = {
19
- workflowId: string;
20
- nodeId: string;
21
- error: string;
22
- failedAt: number;
23
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });