@wenlarge/communication 1.1.16 → 1.1.17
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/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/notification.js +1 -1
- package/dist/generated/project.js +1 -1
- package/dist/generated/workflow.js +1 -1
- package/dist/helpers/structToJson.d.ts +3 -2
- package/dist/helpers/structToJson.js +37 -20
- package/package.json +50 -49
- package/proto/auth.proto +97 -97
- package/proto/executor-core.proto +20 -20
- package/proto/notification.proto +22 -22
- 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 +1 -1
- package/src/generated/project.ts +1 -1
- package/src/generated/workflow.ts +1 -1
- package/dist/generated/google/protobuf/timestamp.d.ts +0 -108
- package/dist/generated/google/protobuf/timestamp.js +0 -11
package/dist/generated/auth.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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;
|
|
@@ -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
|
|
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;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function
|
|
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.
|
|
3
|
+
exports.normalizeStructLike = normalizeStructLike;
|
|
4
4
|
exports.wrapStruct = wrapStruct;
|
|
5
5
|
const struct_1 = require("../generated/google/protobuf/struct");
|
|
6
|
-
function
|
|
7
|
-
var _a, _b;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
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 (
|
|
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.
|
|
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=
|
|
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
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@wenlarge/communication",
|
|
3
|
+
"version": "1.1.17",
|
|
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
|
+
}
|
package/proto/notification.proto
CHANGED
|
@@ -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
|
+
}
|