@wenlarge/communication 1.1.16 → 1.1.18

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.
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v3.21.5
5
+ // protoc v7.34.0
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.AUTH_SERVICE_NAME = exports.AUTH_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v3.21.5
5
+ // protoc v7.34.0
6
6
  // source: executor-core.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.CORE_EXECUTION_SERVICE_NAME = exports.EXECUTOR_CORE_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v3.21.5
5
+ // protoc v7.34.0
6
6
  // source: google/protobuf/empty.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -3,7 +3,7 @@ export declare const protobufPackage = "google.protobuf";
3
3
  * `NullValue` is a singleton enumeration to represent the null value for the
4
4
  * `Value` type union.
5
5
  *
6
- * The JSON representation for `NullValue` is JSON `null`.
6
+ * The JSON representation for `NullValue` is JSON `null`.
7
7
  */
8
8
  export declare enum NullValue {
9
9
  /** NULL_VALUE - Null value. */
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v3.21.5
5
+ // protoc v7.34.0
6
6
  // source: google/protobuf/struct.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ListValue = exports.Value = exports.Struct = exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.NullValue = exports.protobufPackage = void 0;
@@ -13,7 +13,7 @@ exports.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
- * The JSON representation for `NullValue` is JSON `null`.
16
+ * The JSON representation for `NullValue` is JSON `null`.
17
17
  */
18
18
  var NullValue;
19
19
  (function (NullValue) {
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v3.21.5
5
+ // protoc v7.34.0
6
6
  // source: notification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.NOTIFICATION_SERVICE_NAME = exports.NOTIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v3.21.5
5
+ // protoc v7.34.0
6
6
  // source: project.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ENVIRONMENT_VARIABLE_SERVICE_NAME = exports.ENVIRONMENT_SERVICE_NAME = exports.PROJECT_SERVICE_NAME = exports.PROJECT_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -44,28 +44,10 @@ export interface TriggerWorkflowRequest {
44
44
  }
45
45
  export interface TriggerNodeRequest {
46
46
  nodeId: string;
47
- }
48
- export interface CreateWorkflowNodeRequest {
49
- id: string;
50
47
  workflowId: string;
51
- name: string;
52
- positionX: number;
53
- positionY: number;
54
- inputSchema?: {
55
- [key: string]: any;
56
- } | undefined;
57
- outputSchema?: {
58
- [key: string]: any;
59
- } | undefined;
60
- config?: {
61
- [key: string]: any;
62
- } | undefined;
63
- nodeTypeId: string;
64
48
  }
65
- export interface UpdateWorkflowNodeRequest {
49
+ export interface WorkflowNodeRequest {
66
50
  id: string;
67
- name: string;
68
- nodeTypeId: string;
69
51
  positionX: number;
70
52
  positionY: number;
71
53
  inputSchema?: {
@@ -77,29 +59,16 @@ export interface UpdateWorkflowNodeRequest {
77
59
  config?: {
78
60
  [key: string]: any;
79
61
  } | undefined;
80
- workflowId: string;
81
- }
82
- export interface DeleteWorkflowNodeRequest {
83
- id: string;
62
+ nodeTypeId: string;
84
63
  }
85
64
  export interface FindManyWorkflowNodeRequest {
86
65
  workflowId: string;
87
- skip: number;
88
- take: number;
89
66
  }
90
67
  export interface FindManyWorkflowNodeResponse {
91
68
  data: WorkflowNodeResponse[];
92
- total: number;
93
- }
94
- export interface FindFirstWorkflowNodeRequest {
95
- id: string;
96
- }
97
- export interface FindFirstWorkflowNodeResponse {
98
- node?: WorkflowNodeResponse | undefined;
99
69
  }
100
70
  export interface WorkflowNodeResponse {
101
71
  id: string;
102
- name: string;
103
72
  nodeTypeId: string;
104
73
  positionX: number;
105
74
  positionY: number;
@@ -114,7 +83,6 @@ export interface WorkflowNodeResponse {
114
83
  } | undefined;
115
84
  createdAt: string;
116
85
  updatedAt: string;
117
- workflowId: string;
118
86
  }
119
87
  export interface WorkflowNodeConnection {
120
88
  id: string;
@@ -127,7 +95,8 @@ export interface WorkflowNodeConnection {
127
95
  }
128
96
  export interface SaveWorkflowBatchRequest {
129
97
  workflowId: string;
130
- nodes: UpdateWorkflowNodeRequest[];
98
+ workflowName: string;
99
+ nodes: WorkflowNodeRequest[];
131
100
  connections: UpdateBatchConnection[];
132
101
  }
133
102
  export interface UpdateBatchConnection {
@@ -160,7 +129,7 @@ export interface UpdateWorkflowStatusRequest {
160
129
  status: WorkflowStatus;
161
130
  }
162
131
  export interface GetNodeExecutionLogRequest {
163
- nodeId: string;
132
+ nodeIds: string[];
164
133
  workflowId: string;
165
134
  }
166
135
  export interface GetExecutionLogResponse {
@@ -193,11 +162,7 @@ export interface WorkflowServiceClient {
193
162
  findFirst(request: FindFirstWorkflowRequest, metadata?: Metadata): Observable<WorkflowResponse>;
194
163
  triggerWorkflow(request: TriggerWorkflowRequest, metadata?: Metadata): Observable<Empty>;
195
164
  triggerNode(request: TriggerNodeRequest, metadata?: Metadata): Observable<Empty>;
196
- createWorkflowNode(request: CreateWorkflowNodeRequest, metadata?: Metadata): Observable<WorkflowNodeResponse>;
197
165
  findManyWorkflowNode(request: FindManyWorkflowNodeRequest, metadata?: Metadata): Observable<FindManyWorkflowNodeResponse>;
198
- findFirstWorkflowNode(request: FindFirstWorkflowNodeRequest, metadata?: Metadata): Observable<FindFirstWorkflowNodeResponse>;
199
- updateWorkflowNode(request: UpdateWorkflowNodeRequest, metadata?: Metadata): Observable<WorkflowNodeResponse>;
200
- deleteWorkflowNode(request: DeleteWorkflowNodeRequest, metadata?: Metadata): Observable<Empty>;
201
166
  saveWorkflowBatch(request: SaveWorkflowBatchRequest, metadata?: Metadata): Observable<Empty>;
202
167
  findWorkflowNodeTypes(request: Empty, metadata?: Metadata): Observable<FindManyWorkflowNodeTypeResponse>;
203
168
  findConnections(request: FindConnectionsRequest, metadata?: Metadata): Observable<FindConnectionsResponse>;
@@ -213,11 +178,7 @@ export interface WorkflowServiceController {
213
178
  findFirst(request: FindFirstWorkflowRequest, metadata?: Metadata): Promise<WorkflowResponse> | Observable<WorkflowResponse> | WorkflowResponse;
214
179
  triggerWorkflow(request: TriggerWorkflowRequest, metadata?: Metadata): void;
215
180
  triggerNode(request: TriggerNodeRequest, metadata?: Metadata): void;
216
- createWorkflowNode(request: CreateWorkflowNodeRequest, metadata?: Metadata): Promise<WorkflowNodeResponse> | Observable<WorkflowNodeResponse> | WorkflowNodeResponse;
217
181
  findManyWorkflowNode(request: FindManyWorkflowNodeRequest, metadata?: Metadata): Promise<FindManyWorkflowNodeResponse> | Observable<FindManyWorkflowNodeResponse> | FindManyWorkflowNodeResponse;
218
- findFirstWorkflowNode(request: FindFirstWorkflowNodeRequest, metadata?: Metadata): Promise<FindFirstWorkflowNodeResponse> | Observable<FindFirstWorkflowNodeResponse> | FindFirstWorkflowNodeResponse;
219
- updateWorkflowNode(request: UpdateWorkflowNodeRequest, metadata?: Metadata): Promise<WorkflowNodeResponse> | Observable<WorkflowNodeResponse> | WorkflowNodeResponse;
220
- deleteWorkflowNode(request: DeleteWorkflowNodeRequest, metadata?: Metadata): void;
221
182
  saveWorkflowBatch(request: SaveWorkflowBatchRequest, metadata?: Metadata): void;
222
183
  findWorkflowNodeTypes(request: Empty, metadata?: Metadata): Promise<FindManyWorkflowNodeTypeResponse> | Observable<FindManyWorkflowNodeTypeResponse> | FindManyWorkflowNodeTypeResponse;
223
184
  findConnections(request: FindConnectionsRequest, metadata?: Metadata): Promise<FindConnectionsResponse> | Observable<FindConnectionsResponse> | FindConnectionsResponse;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v3.21.5
5
+ // protoc v7.34.0
6
6
  // source: workflow.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.WORKFLOW_SERVICE_NAME = exports.WORKFLOW_PACKAGE_NAME = exports.WorkflowStatus = exports.protobufPackage = void 0;
@@ -29,11 +29,7 @@ function WorkflowServiceControllerMethods() {
29
29
  "findFirst",
30
30
  "triggerWorkflow",
31
31
  "triggerNode",
32
- "createWorkflowNode",
33
32
  "findManyWorkflowNode",
34
- "findFirstWorkflowNode",
35
- "updateWorkflowNode",
36
- "deleteWorkflowNode",
37
33
  "saveWorkflowBatch",
38
34
  "findWorkflowNodeTypes",
39
35
  "findConnections",
@@ -1,2 +1,3 @@
1
- export declare function unwrapStruct(fields: Record<string, any>): Record<string, any>;
2
- export declare function wrapStruct(obj: any): any;
1
+ import { Struct } from "../generated/google/protobuf/struct";
2
+ export declare function normalizeStructLike(value: any): any;
3
+ export declare function wrapStruct(obj: Record<string, any> | null | undefined): Struct | undefined;
@@ -1,30 +1,47 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unwrapStruct = unwrapStruct;
3
+ exports.normalizeStructLike = normalizeStructLike;
4
4
  exports.wrapStruct = wrapStruct;
5
5
  const struct_1 = require("../generated/google/protobuf/struct");
6
- function unwrapStruct(fields) {
7
- var _a, _b;
8
- const result = {};
9
- for (const key in fields) {
10
- const value = fields[key];
11
- if ("stringValue" in value)
12
- result[key] = value.stringValue;
13
- else if ("numberValue" in value)
14
- result[key] = value.numberValue;
15
- else if ("boolValue" in value)
16
- result[key] = value.boolValue;
17
- else if ("structValue" in value)
18
- result[key] = unwrapStruct((_a = value.structValue.fields) !== null && _a !== void 0 ? _a : {});
19
- else if ("listValue" in value)
20
- result[key] = (_b = value.listValue.values) === null || _b === void 0 ? void 0 : _b.map((v) => unwrapStruct({ tmp: v }).tmp);
21
- else
22
- result[key] = null;
6
+ function normalizeStructLike(value) {
7
+ var _a, _b, _c;
8
+ if (value == null)
9
+ return value;
10
+ if (Array.isArray(value)) {
11
+ return value.map(normalizeStructLike);
23
12
  }
24
- return result;
13
+ if (typeof value !== "object") {
14
+ return value;
15
+ }
16
+ if ("stringValue" in value)
17
+ return value.stringValue;
18
+ if ("numberValue" in value)
19
+ return value.numberValue;
20
+ if ("boolValue" in value)
21
+ return value.boolValue;
22
+ if ("nullValue" in value)
23
+ return null;
24
+ if ("structValue" in value) {
25
+ return normalizeStructLike(value.structValue);
26
+ }
27
+ if ("listValue" in value) {
28
+ return ((_b = (_a = value.listValue) === null || _a === void 0 ? void 0 : _a.values) !== null && _b !== void 0 ? _b : []).map(normalizeStructLike);
29
+ }
30
+ if ("fields" in value) {
31
+ const out = {};
32
+ for (const [k, v] of Object.entries((_c = value.fields) !== null && _c !== void 0 ? _c : {})) {
33
+ out[k] = normalizeStructLike(v);
34
+ }
35
+ return out;
36
+ }
37
+ const out = {};
38
+ for (const [k, v] of Object.entries(value)) {
39
+ out[k] = normalizeStructLike(v);
40
+ }
41
+ return out;
25
42
  }
26
43
  function wrapStruct(obj) {
27
- if (!obj)
44
+ if (obj == null)
28
45
  return undefined;
29
46
  return struct_1.Struct.wrap(obj);
30
47
  }
package/package.json CHANGED
@@ -1,49 +1,50 @@
1
- {
2
- "name": "@wenlarge/communication",
3
- "version": "1.1.16",
4
- "description": "Shared gRPC proto interfaces and generated clients for Wenlarge microservices.",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "dist",
9
- "proto",
10
- "src/generated"
11
- ],
12
- "scripts": {
13
- "proto:build": "protoc --plugin=protoc-gen-ts_proto=./node_modules/.bin/protoc-gen-ts_proto --proto_path=proto --ts_proto_out=src/generated proto/*.proto --ts_proto_opt=nestJs=true,esModuleInterop=true,forceLong=string,useOptionals=messages,useDate=true,addGrpcMetadata=true,stringEnums=true",
14
- "build": "npm run proto:build && tsc",
15
- "prepare": "npm run build"
16
- },
17
- "keywords": [
18
- "nestjs",
19
- "grpc",
20
- "proto",
21
- "typescript",
22
- "microservices",
23
- "communication",
24
- "shared"
25
- ],
26
- "author": "Kerem Çakır <admin@wenlarge.com>",
27
- "license": "MIT",
28
- "repository": {
29
- "type": "git",
30
- "url": "https://github.com/wenlarge/communication.git"
31
- },
32
- "publishConfig": {
33
- "access": "public"
34
- },
35
- "dependencies": {
36
- "@grpc/grpc-js": "^1.14.1",
37
- "@grpc/proto-loader": "^0.7.15",
38
- "rxjs": "^7.8.1"
39
- },
40
- "devDependencies": {
41
- "@nestjs/microservices": "^10.4.20",
42
- "@types/node": "^24.9.1",
43
- "ts-proto": "^1.152.2",
44
- "typescript": "^5.3.3"
45
- },
46
- "peerDependencies": {
47
- "@grpc/grpc-js": "^1.14.1"
48
- }
49
- }
1
+ {
2
+ "name": "@wenlarge/communication",
3
+ "version": "1.1.18",
4
+ "description": "Shared gRPC proto interfaces and generated clients for Wenlarge microservices.",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "proto",
10
+ "src/generated"
11
+ ],
12
+ "scripts": {
13
+ "proto:build": "npx protoc --plugin=node_modules/.bin/protoc-gen-ts_proto.cmd --proto_path=proto --ts_proto_out=src/generated proto/*.proto --ts_proto_opt=nestJs=true,esModuleInterop=true,forceLong=string,useOptionals=messages,useDate=true,addGrpcMetadata=true,stringEnums=true",
14
+ "build": "npm run proto:build && tsc",
15
+ "prepare": "npm run build"
16
+ },
17
+ "keywords": [
18
+ "nestjs",
19
+ "grpc",
20
+ "proto",
21
+ "typescript",
22
+ "microservices",
23
+ "communication",
24
+ "shared"
25
+ ],
26
+ "author": "Kerem Çakır <admin@wenlarge.com>",
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/wenlarge/communication.git"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "dependencies": {
36
+ "@grpc/grpc-js": "^1.14.1",
37
+ "@grpc/proto-loader": "^0.7.15",
38
+ "rxjs": "^7.8.1"
39
+ },
40
+ "devDependencies": {
41
+ "@bufbuild/buf": "^1.66.1",
42
+ "@nestjs/microservices": "^10.4.20",
43
+ "@types/node": "^24.9.1",
44
+ "ts-proto": "^1.152.2",
45
+ "typescript": "^5.3.3"
46
+ },
47
+ "peerDependencies": {
48
+ "@grpc/grpc-js": "^1.14.1"
49
+ }
50
+ }
package/proto/auth.proto CHANGED
@@ -1,98 +1,98 @@
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 UpdateInviteStatus (UpdateInviteStatusRequest) returns (UpdateInviteStatusResponse);
13
- rpc GetCompanyUsers (GetCompanyUsersRequest) returns (GetCompanyUsersResponse);
14
- rpc RemoveUserFromCompany (RemoveUserFromCompanyRequest) returns (google.protobuf.Empty);
15
- }
16
-
17
- message LoginRequest {
18
- string email = 1;
19
- string password = 2;
20
- }
21
-
22
- message LoginResponse {
23
- string jwt = 1;
24
- string expiresIn = 2;
25
- }
26
-
27
- message RegisterRequest {
28
- string name = 1;
29
- string email = 2;
30
- string password = 3;
31
- }
32
-
33
- message GetMeRequest {
34
- string jwt = 1;
35
- }
36
-
37
- message Company {
38
- string id = 1;
39
- string name = 2;
40
- string createdAt = 3;
41
- string updatedAt = 4;
42
- }
43
-
44
- message CompanyUser {
45
- Company company = 1;
46
- }
47
-
48
- message InviteToCompanyRequest {
49
- string companyId = 1;
50
- string email = 2;
51
- }
52
-
53
- message InviteToCompanyResponse{
54
- string id = 1;
55
- string companyId = 2;
56
- string email = 3;
57
- }
58
-
59
- message UpdateInviteStatusRequest{
60
- string inviteId = 1;
61
- string userId =2;
62
- string status = 3;
63
- }
64
-
65
- message UpdateInviteStatusResponse{
66
- string id = 1 ;
67
- string status = 2;
68
- }
69
-
70
- message GetMeResponse {
71
- string id = 1;
72
- string name = 2;
73
- string email = 3;
74
- string createdAt = 4;
75
- string updatedAt = 5;
76
- repeated CompanyUser companyUsersOnUser = 6;
77
- }
78
-
79
- message GetCompanyUsersRequest {
80
- string companyId = 1;
81
- }
82
-
83
- message CompanyUserDetail {
84
- string userId = 1;
85
- string userName = 2;
86
- string userEmail = 3;
87
- string joinedAt = 4;
88
- bool isOwner = 5;
89
- }
90
-
91
- message GetCompanyUsersResponse {
92
- repeated CompanyUserDetail users = 1;
93
- }
94
-
95
- message RemoveUserFromCompanyRequest {
96
- string companyId = 1;
97
- string userId = 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 UpdateInviteStatus (UpdateInviteStatusRequest) returns (UpdateInviteStatusResponse);
13
+ rpc GetCompanyUsers (GetCompanyUsersRequest) returns (GetCompanyUsersResponse);
14
+ rpc RemoveUserFromCompany (RemoveUserFromCompanyRequest) returns (google.protobuf.Empty);
15
+ }
16
+
17
+ message LoginRequest {
18
+ string email = 1;
19
+ string password = 2;
20
+ }
21
+
22
+ message LoginResponse {
23
+ string jwt = 1;
24
+ string expiresIn = 2;
25
+ }
26
+
27
+ message RegisterRequest {
28
+ string name = 1;
29
+ string email = 2;
30
+ string password = 3;
31
+ }
32
+
33
+ message GetMeRequest {
34
+ string jwt = 1;
35
+ }
36
+
37
+ message Company {
38
+ string id = 1;
39
+ string name = 2;
40
+ string createdAt = 3;
41
+ string updatedAt = 4;
42
+ }
43
+
44
+ message CompanyUser {
45
+ Company company = 1;
46
+ }
47
+
48
+ message InviteToCompanyRequest {
49
+ string companyId = 1;
50
+ string email = 2;
51
+ }
52
+
53
+ message InviteToCompanyResponse{
54
+ string id = 1;
55
+ string companyId = 2;
56
+ string email = 3;
57
+ }
58
+
59
+ message UpdateInviteStatusRequest{
60
+ string inviteId = 1;
61
+ string userId =2;
62
+ string status = 3;
63
+ }
64
+
65
+ message UpdateInviteStatusResponse{
66
+ string id = 1 ;
67
+ string status = 2;
68
+ }
69
+
70
+ message GetMeResponse {
71
+ string id = 1;
72
+ string name = 2;
73
+ string email = 3;
74
+ string createdAt = 4;
75
+ string updatedAt = 5;
76
+ repeated CompanyUser companyUsersOnUser = 6;
77
+ }
78
+
79
+ message GetCompanyUsersRequest {
80
+ string companyId = 1;
81
+ }
82
+
83
+ message CompanyUserDetail {
84
+ string userId = 1;
85
+ string userName = 2;
86
+ string userEmail = 3;
87
+ string joinedAt = 4;
88
+ bool isOwner = 5;
89
+ }
90
+
91
+ message GetCompanyUsersResponse {
92
+ repeated CompanyUserDetail users = 1;
93
+ }
94
+
95
+ message RemoveUserFromCompanyRequest {
96
+ string companyId = 1;
97
+ string userId = 2;
98
98
  }
@@ -1,20 +1,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
- }
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
+ }
12
+
13
+ message ExecuteNodeResponse {
14
+ google.protobuf.Struct output = 1;
15
+ }
16
+
17
+ service CoreExecutionService {
18
+ rpc ExecuteNode (ExecuteNodeRequest) returns (ExecuteNodeResponse);
19
+
20
+ }
@@ -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
+ }