@wenlarge/communication 1.2.3 → 1.2.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.
- package/dist/generated/executor-core.d.ts +3 -0
- package/dist/generated/workflow.d.ts +5 -0
- package/dist/helpers/resolve-config-value.d.ts +1 -0
- package/dist/helpers/resolve-config-value.js +79 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +51 -50
- package/proto/auth.proto +102 -102
- package/proto/executor-core.proto +21 -20
- package/proto/notification.proto +22 -22
- package/proto/project.proto +119 -119
- package/proto/workflow.proto +183 -180
- package/src/generated/common.ts +16 -16
- package/src/generated/executor-core.ts +1 -0
- package/src/generated/workflow.ts +3 -0
- package/dist/generated/google/protobuf/timestamp.d.ts +0 -108
- package/dist/generated/google/protobuf/timestamp.js +0 -11
|
@@ -41,6 +41,7 @@ export interface FindFirstWorkflowRequest {
|
|
|
41
41
|
}
|
|
42
42
|
export interface TriggerWorkflowRequest {
|
|
43
43
|
workflowId: string;
|
|
44
|
+
environmentId?: string | undefined;
|
|
44
45
|
}
|
|
45
46
|
export interface TriggerNodeRequest {
|
|
46
47
|
nodeId: string;
|
|
@@ -48,6 +49,10 @@ export interface TriggerNodeRequest {
|
|
|
48
49
|
inputSchema?: {
|
|
49
50
|
[key: string]: any;
|
|
50
51
|
} | undefined;
|
|
52
|
+
environmentId?: string | undefined;
|
|
53
|
+
env?: {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
} | undefined;
|
|
51
56
|
}
|
|
52
57
|
export interface WorkflowNodeRequest {
|
|
53
58
|
id: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveConfigValue(value: unknown, input?: Record<string, any> | null, env?: Record<string, any> | null): unknown;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveConfigValue = resolveConfigValue;
|
|
4
|
+
const expr_eval_1 = require("expr-eval");
|
|
5
|
+
const FORBIDDEN_KEYS = new Set(["__proto__", "prototype", "constructor"]);
|
|
6
|
+
function sanitize(value) {
|
|
7
|
+
if (value == null)
|
|
8
|
+
return value;
|
|
9
|
+
if (typeof value === "function")
|
|
10
|
+
return undefined;
|
|
11
|
+
if (Array.isArray(value))
|
|
12
|
+
return value.map(sanitize);
|
|
13
|
+
if (typeof value === "object") {
|
|
14
|
+
const clean = Object.create(null);
|
|
15
|
+
for (const key of Object.keys(value)) {
|
|
16
|
+
if (FORBIDDEN_KEYS.has(key))
|
|
17
|
+
continue;
|
|
18
|
+
clean[key] = sanitize(value[key]);
|
|
19
|
+
}
|
|
20
|
+
return clean;
|
|
21
|
+
}
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
function resolveConfigValue(value, input, env) {
|
|
25
|
+
var _a;
|
|
26
|
+
if (typeof value !== "string")
|
|
27
|
+
return value;
|
|
28
|
+
const parser = new expr_eval_1.Parser();
|
|
29
|
+
parser.consts = {};
|
|
30
|
+
parser.functions = {};
|
|
31
|
+
const evaluateExpr = (exprRaw) => {
|
|
32
|
+
var _a;
|
|
33
|
+
const expr = exprRaw.trim();
|
|
34
|
+
if (!expr)
|
|
35
|
+
return undefined;
|
|
36
|
+
if (/[a-zA-Z_$][\w$]*\s*\(/.test(expr))
|
|
37
|
+
return undefined;
|
|
38
|
+
try {
|
|
39
|
+
const context = {
|
|
40
|
+
input: sanitize(input !== null && input !== void 0 ? input : null),
|
|
41
|
+
env: sanitize((_a = env !== null && env !== void 0 ? env : input === null || input === void 0 ? void 0 : input.env) !== null && _a !== void 0 ? _a : null),
|
|
42
|
+
};
|
|
43
|
+
const result = parser.parse(expr).evaluate(context);
|
|
44
|
+
return typeof result === "function" ? undefined : result;
|
|
45
|
+
}
|
|
46
|
+
catch (_b) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const stringifyInline = (resolved, fallback) => {
|
|
51
|
+
if (resolved === undefined)
|
|
52
|
+
return fallback;
|
|
53
|
+
if (resolved == null)
|
|
54
|
+
return "";
|
|
55
|
+
if (typeof resolved === "string")
|
|
56
|
+
return resolved;
|
|
57
|
+
if (typeof resolved === "number" || typeof resolved === "boolean") {
|
|
58
|
+
return String(resolved);
|
|
59
|
+
}
|
|
60
|
+
try {
|
|
61
|
+
return JSON.stringify(resolved);
|
|
62
|
+
}
|
|
63
|
+
catch (_a) {
|
|
64
|
+
return String(resolved);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const exact = value.match(/^\{\{\s*(.*?)\s*\}\}$/);
|
|
68
|
+
if (exact) {
|
|
69
|
+
const resolved = evaluateExpr((_a = exact[1]) !== null && _a !== void 0 ? _a : "");
|
|
70
|
+
return resolved === undefined ? value : resolved;
|
|
71
|
+
}
|
|
72
|
+
if (value.includes("{{")) {
|
|
73
|
+
return value.replace(/\{\{\s*(.*?)\s*\}\}/g, (m, exprRaw) => {
|
|
74
|
+
const resolved = evaluateExpr(exprRaw);
|
|
75
|
+
return stringifyInline(resolved, m);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return value;
|
|
79
|
+
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ListValue = exports.Value = exports.Struct = exports.Notification = exports.ExecutorCore = exports.Metadata = exports.Project = exports.Workflow = exports.Auth = void 0;
|
|
40
40
|
__exportStar(require("./helpers/helper"), exports);
|
|
41
|
+
__exportStar(require("./helpers/resolve-config-value"), exports);
|
|
41
42
|
exports.Auth = __importStar(require("./generated/auth"));
|
|
42
43
|
__exportStar(require("./config/auth-config"), exports);
|
|
43
44
|
exports.Workflow = __importStar(require("./generated/workflow"));
|
package/package.json
CHANGED
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@wenlarge/communication",
|
|
3
|
-
"version": "1.2.
|
|
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
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@wenlarge/communication",
|
|
3
|
+
"version": "1.2.4",
|
|
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
|
+
"expr-eval": "^2.0.2",
|
|
39
|
+
"rxjs": "^7.8.1"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@bufbuild/buf": "^1.66.1",
|
|
43
|
+
"@nestjs/microservices": "^10.4.20",
|
|
44
|
+
"@types/node": "^24.9.1",
|
|
45
|
+
"ts-proto": "^1.152.2",
|
|
46
|
+
"typescript": "^5.3.3"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@grpc/grpc-js": "^1.14.1"
|
|
50
|
+
}
|
|
51
|
+
}
|
package/proto/auth.proto
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
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
|
-
rpc RefreshToken (RefreshTokenRequest) returns (LoginResponse);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
message LoginRequest {
|
|
19
|
-
string email = 1;
|
|
20
|
-
string password = 2;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
message LoginResponse {
|
|
24
|
-
string jwt = 1;
|
|
25
|
-
string expiresIn = 2;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
message RegisterRequest {
|
|
29
|
-
string name = 1;
|
|
30
|
-
string email = 2;
|
|
31
|
-
string password = 3;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
message GetMeRequest {
|
|
35
|
-
string jwt = 1;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
message Company {
|
|
39
|
-
string id = 1;
|
|
40
|
-
string name = 2;
|
|
41
|
-
string createdAt = 3;
|
|
42
|
-
string updatedAt = 4;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
message CompanyUser {
|
|
46
|
-
Company company = 1;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
message InviteToCompanyRequest {
|
|
50
|
-
string companyId = 1;
|
|
51
|
-
string email = 2;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
message InviteToCompanyResponse{
|
|
55
|
-
string id = 1;
|
|
56
|
-
string companyId = 2;
|
|
57
|
-
string email = 3;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
message UpdateInviteStatusRequest{
|
|
61
|
-
string inviteId = 1;
|
|
62
|
-
string userId =2;
|
|
63
|
-
string status = 3;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
message UpdateInviteStatusResponse{
|
|
67
|
-
string id = 1 ;
|
|
68
|
-
string status = 2;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
message GetMeResponse {
|
|
72
|
-
string id = 1;
|
|
73
|
-
string name = 2;
|
|
74
|
-
string email = 3;
|
|
75
|
-
string createdAt = 4;
|
|
76
|
-
string updatedAt = 5;
|
|
77
|
-
repeated CompanyUser companyUsersOnUser = 6;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message GetCompanyUsersRequest {
|
|
81
|
-
string companyId = 1;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
message CompanyUserDetail {
|
|
85
|
-
string userId = 1;
|
|
86
|
-
string userName = 2;
|
|
87
|
-
string userEmail = 3;
|
|
88
|
-
string joinedAt = 4;
|
|
89
|
-
bool isOwner = 5;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
message GetCompanyUsersResponse {
|
|
93
|
-
repeated CompanyUserDetail users = 1;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
message RemoveUserFromCompanyRequest {
|
|
97
|
-
string companyId = 1;
|
|
98
|
-
string userId = 2;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
message RefreshTokenRequest {
|
|
102
|
-
string userId = 1;
|
|
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
|
+
rpc RefreshToken (RefreshTokenRequest) returns (LoginResponse);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message LoginRequest {
|
|
19
|
+
string email = 1;
|
|
20
|
+
string password = 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message LoginResponse {
|
|
24
|
+
string jwt = 1;
|
|
25
|
+
string expiresIn = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message RegisterRequest {
|
|
29
|
+
string name = 1;
|
|
30
|
+
string email = 2;
|
|
31
|
+
string password = 3;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message GetMeRequest {
|
|
35
|
+
string jwt = 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message Company {
|
|
39
|
+
string id = 1;
|
|
40
|
+
string name = 2;
|
|
41
|
+
string createdAt = 3;
|
|
42
|
+
string updatedAt = 4;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message CompanyUser {
|
|
46
|
+
Company company = 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message InviteToCompanyRequest {
|
|
50
|
+
string companyId = 1;
|
|
51
|
+
string email = 2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message InviteToCompanyResponse{
|
|
55
|
+
string id = 1;
|
|
56
|
+
string companyId = 2;
|
|
57
|
+
string email = 3;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message UpdateInviteStatusRequest{
|
|
61
|
+
string inviteId = 1;
|
|
62
|
+
string userId =2;
|
|
63
|
+
string status = 3;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message UpdateInviteStatusResponse{
|
|
67
|
+
string id = 1 ;
|
|
68
|
+
string status = 2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message GetMeResponse {
|
|
72
|
+
string id = 1;
|
|
73
|
+
string name = 2;
|
|
74
|
+
string email = 3;
|
|
75
|
+
string createdAt = 4;
|
|
76
|
+
string updatedAt = 5;
|
|
77
|
+
repeated CompanyUser companyUsersOnUser = 6;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message GetCompanyUsersRequest {
|
|
81
|
+
string companyId = 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message CompanyUserDetail {
|
|
85
|
+
string userId = 1;
|
|
86
|
+
string userName = 2;
|
|
87
|
+
string userEmail = 3;
|
|
88
|
+
string joinedAt = 4;
|
|
89
|
+
bool isOwner = 5;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message GetCompanyUsersResponse {
|
|
93
|
+
repeated CompanyUserDetail users = 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message RemoveUserFromCompanyRequest {
|
|
97
|
+
string companyId = 1;
|
|
98
|
+
string userId = 2;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message RefreshTokenRequest {
|
|
102
|
+
string userId = 1;
|
|
103
103
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
+
google.protobuf.Struct env = 5;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message ExecuteNodeResponse {
|
|
15
|
+
google.protobuf.Struct output = 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
service CoreExecutionService {
|
|
19
|
+
rpc ExecuteNode (ExecuteNodeRequest) returns (ExecuteNodeResponse);
|
|
20
|
+
|
|
21
|
+
}
|
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
|
+
}
|
package/proto/project.proto
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
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
|
-
string type = 3;
|
|
66
|
-
repeated EnvironmentVariableInput variables = 4;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
message UpdateEnvironmentRequest {
|
|
70
|
-
string id = 1;
|
|
71
|
-
string name = 2;
|
|
72
|
-
string type = 3;
|
|
73
|
-
repeated EnvironmentVariableInput variables = 4;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message DeleteEnvironmentRequest {
|
|
77
|
-
string id = 1;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message FindManyEnvironmentsRequest {
|
|
81
|
-
string projectId = 1;
|
|
82
|
-
int32 skip = 2;
|
|
83
|
-
int32 take = 3;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
message FindManyEnvironmentsResponse {
|
|
87
|
-
repeated EnvironmentResponse data = 1;
|
|
88
|
-
int32 total = 2;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
message FindFirstEnvironmentRequest {
|
|
92
|
-
string id = 1;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
message FindFirstEnvironmentResponse {
|
|
96
|
-
EnvironmentResponse environment = 1;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
message EnvironmentResponse {
|
|
100
|
-
string id = 1;
|
|
101
|
-
string projectId = 2;
|
|
102
|
-
string name = 3;
|
|
103
|
-
string type = 4;
|
|
104
|
-
repeated EnvironmentVariableResponse variables = 5;
|
|
105
|
-
string createdAt = 6;
|
|
106
|
-
string updatedAt = 7;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
message EnvironmentVariableInput {
|
|
110
|
-
string key = 1;
|
|
111
|
-
string value = 2;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
message EnvironmentVariableResponse {
|
|
115
|
-
string id = 1;
|
|
116
|
-
string key = 2;
|
|
117
|
-
string value = 3;
|
|
118
|
-
string createdAt = 4;
|
|
119
|
-
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
|
+
string type = 3;
|
|
66
|
+
repeated EnvironmentVariableInput variables = 4;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message UpdateEnvironmentRequest {
|
|
70
|
+
string id = 1;
|
|
71
|
+
string name = 2;
|
|
72
|
+
string type = 3;
|
|
73
|
+
repeated EnvironmentVariableInput variables = 4;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message DeleteEnvironmentRequest {
|
|
77
|
+
string id = 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message FindManyEnvironmentsRequest {
|
|
81
|
+
string projectId = 1;
|
|
82
|
+
int32 skip = 2;
|
|
83
|
+
int32 take = 3;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message FindManyEnvironmentsResponse {
|
|
87
|
+
repeated EnvironmentResponse data = 1;
|
|
88
|
+
int32 total = 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message FindFirstEnvironmentRequest {
|
|
92
|
+
string id = 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message FindFirstEnvironmentResponse {
|
|
96
|
+
EnvironmentResponse environment = 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message EnvironmentResponse {
|
|
100
|
+
string id = 1;
|
|
101
|
+
string projectId = 2;
|
|
102
|
+
string name = 3;
|
|
103
|
+
string type = 4;
|
|
104
|
+
repeated EnvironmentVariableResponse variables = 5;
|
|
105
|
+
string createdAt = 6;
|
|
106
|
+
string updatedAt = 7;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message EnvironmentVariableInput {
|
|
110
|
+
string key = 1;
|
|
111
|
+
string value = 2;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message EnvironmentVariableResponse {
|
|
115
|
+
string id = 1;
|
|
116
|
+
string key = 2;
|
|
117
|
+
string value = 3;
|
|
118
|
+
string createdAt = 4;
|
|
119
|
+
string updatedAt = 5;
|
|
120
120
|
}
|
package/proto/workflow.proto
CHANGED
|
@@ -1,181 +1,184 @@
|
|
|
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
|
-
}
|
|
29
|
-
|
|
30
|
-
message WorkflowResponse {
|
|
31
|
-
string id = 1;
|
|
32
|
-
string name = 2;
|
|
33
|
-
string companyId = 3;
|
|
34
|
-
string projectId = 4;
|
|
35
|
-
string createdAt = 5;
|
|
36
|
-
string updatedAt = 6;
|
|
37
|
-
WorkflowStatus status = 7;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
message DeleteWorkflowRequest{
|
|
41
|
-
string id = 1;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message UpdateWorkflowRequest{
|
|
45
|
-
string id = 1;
|
|
46
|
-
string name = 2;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
message FindManyWorkflowRequest{
|
|
50
|
-
string projectId = 1;
|
|
51
|
-
int32 skip = 2;
|
|
52
|
-
int32 take = 3;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
message FindManyWorkflowResponse{
|
|
56
|
-
repeated WorkflowResponse data = 1;
|
|
57
|
-
int32 total = 2;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
message FindFirstWorkflowRequest {
|
|
61
|
-
string workflowId = 1;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
message TriggerWorkflowRequest{
|
|
65
|
-
string workflowId = 1;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
string
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
string
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
string
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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
|
+
}
|
|
29
|
+
|
|
30
|
+
message WorkflowResponse {
|
|
31
|
+
string id = 1;
|
|
32
|
+
string name = 2;
|
|
33
|
+
string companyId = 3;
|
|
34
|
+
string projectId = 4;
|
|
35
|
+
string createdAt = 5;
|
|
36
|
+
string updatedAt = 6;
|
|
37
|
+
WorkflowStatus status = 7;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message DeleteWorkflowRequest{
|
|
41
|
+
string id = 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message UpdateWorkflowRequest{
|
|
45
|
+
string id = 1;
|
|
46
|
+
string name = 2;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message FindManyWorkflowRequest{
|
|
50
|
+
string projectId = 1;
|
|
51
|
+
int32 skip = 2;
|
|
52
|
+
int32 take = 3;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message FindManyWorkflowResponse{
|
|
56
|
+
repeated WorkflowResponse data = 1;
|
|
57
|
+
int32 total = 2;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message FindFirstWorkflowRequest {
|
|
61
|
+
string workflowId = 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message TriggerWorkflowRequest{
|
|
65
|
+
string workflowId = 1;
|
|
66
|
+
optional string environmentId = 2;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message TriggerNodeRequest{
|
|
70
|
+
string nodeId = 1;
|
|
71
|
+
string workflowId = 2;
|
|
72
|
+
google.protobuf.Struct inputSchema = 3;
|
|
73
|
+
optional string environmentId = 4;
|
|
74
|
+
google.protobuf.Struct env = 5;
|
|
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
|
+
}
|
|
86
|
+
|
|
87
|
+
message FindManyWorkflowNodeRequest{
|
|
88
|
+
string workflowId = 1;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message FindManyWorkflowNodeResponse{
|
|
92
|
+
repeated WorkflowNodeResponse data = 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message WorkflowNodeResponse{
|
|
96
|
+
string id = 1;
|
|
97
|
+
string nodeTypeId = 2;
|
|
98
|
+
int32 positionX = 3;
|
|
99
|
+
int32 positionY = 4;
|
|
100
|
+
google.protobuf.Struct inputSchema = 5;
|
|
101
|
+
google.protobuf.Struct outputSchema = 6;
|
|
102
|
+
google.protobuf.Struct config = 7;
|
|
103
|
+
string createdAt = 8;
|
|
104
|
+
string updatedAt = 9;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message WorkflowNodeConnection {
|
|
108
|
+
string id = 1;
|
|
109
|
+
string workflowId = 2;
|
|
110
|
+
string fromNodeId = 3;
|
|
111
|
+
string toNodeId = 4;
|
|
112
|
+
google.protobuf.Struct pointer = 5;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message SaveWorkflowBatchRequest {
|
|
116
|
+
string workflowId = 1;
|
|
117
|
+
string workflowName = 2;
|
|
118
|
+
repeated WorkflowNodeRequest nodes = 3;
|
|
119
|
+
repeated UpdateBatchConnection connections = 4;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
message UpdateBatchConnection {
|
|
123
|
+
string fromNodeId = 1;
|
|
124
|
+
string toNodeId = 2;
|
|
125
|
+
google.protobuf.Struct pointer = 3;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
message WorkflowNodeTypeResponse {
|
|
129
|
+
string id = 1;
|
|
130
|
+
string label = 2;
|
|
131
|
+
string description = 3;
|
|
132
|
+
string service = 4;
|
|
133
|
+
google.protobuf.Struct form = 5;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message FindManyWorkflowNodeTypeResponse {
|
|
137
|
+
repeated WorkflowNodeTypeResponse data = 1;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message FindConnectionsRequest {
|
|
141
|
+
string workflowId = 1;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
message FindConnectionsResponse {
|
|
145
|
+
repeated WorkflowNodeConnection data = 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
enum WorkflowStatus {
|
|
149
|
+
DRAFT = 0;
|
|
150
|
+
PUBLISHED = 1;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
message UpdateWorkflowStatusRequest {
|
|
154
|
+
string workflowId = 1;
|
|
155
|
+
WorkflowStatus status = 2;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
message GetNodeExecutionLogRequest {
|
|
159
|
+
repeated string nodeIds = 1;
|
|
160
|
+
string workflowId =2;
|
|
161
|
+
int32 skip = 3;
|
|
162
|
+
int32 take = 4;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
message GetExecutionLogResponse {
|
|
166
|
+
repeated ExecutionLogEntry data = 1;
|
|
167
|
+
int32 total = 2;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
message GetWorkflowExecutionLogRequest{
|
|
171
|
+
string workflowId = 1;
|
|
172
|
+
int32 skip = 2;
|
|
173
|
+
int32 take = 3;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
message ExecutionLogEntry {
|
|
177
|
+
string nodeId = 1;
|
|
178
|
+
string status = 2;
|
|
179
|
+
google.protobuf.Struct inputSchema = 3;
|
|
180
|
+
google.protobuf.Struct outputSchema = 4;
|
|
181
|
+
google.protobuf.Struct config = 5;
|
|
182
|
+
string startedAt = 6;
|
|
183
|
+
string finishedAt = 7;
|
|
181
184
|
}
|
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";
|
|
@@ -61,12 +61,15 @@ export interface FindFirstWorkflowRequest {
|
|
|
61
61
|
|
|
62
62
|
export interface TriggerWorkflowRequest {
|
|
63
63
|
workflowId: string;
|
|
64
|
+
environmentId?: string | undefined;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
export interface TriggerNodeRequest {
|
|
67
68
|
nodeId: string;
|
|
68
69
|
workflowId: string;
|
|
69
70
|
inputSchema?: { [key: string]: any } | undefined;
|
|
71
|
+
environmentId?: string | undefined;
|
|
72
|
+
env?: { [key: string]: any } | undefined;
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
export interface WorkflowNodeRequest {
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
export declare const protobufPackage = "google.protobuf";
|
|
2
|
-
/**
|
|
3
|
-
* A Timestamp represents a point in time independent of any time zone or local
|
|
4
|
-
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
5
|
-
* nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
|
6
|
-
* January 1, 1970, in the proleptic Gregorian calendar which extends the
|
|
7
|
-
* Gregorian calendar backwards to year one.
|
|
8
|
-
*
|
|
9
|
-
* All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
|
10
|
-
* second table is needed for interpretation, using a [24-hour linear
|
|
11
|
-
* smear](https://developers.google.com/time/smear).
|
|
12
|
-
*
|
|
13
|
-
* The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
|
14
|
-
* restricting to that range, we ensure that we can convert to and from [RFC
|
|
15
|
-
* 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
|
16
|
-
*
|
|
17
|
-
* # Examples
|
|
18
|
-
*
|
|
19
|
-
* Example 1: Compute Timestamp from POSIX `time()`.
|
|
20
|
-
*
|
|
21
|
-
* Timestamp timestamp;
|
|
22
|
-
* timestamp.set_seconds(time(NULL));
|
|
23
|
-
* timestamp.set_nanos(0);
|
|
24
|
-
*
|
|
25
|
-
* Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
|
26
|
-
*
|
|
27
|
-
* struct timeval tv;
|
|
28
|
-
* gettimeofday(&tv, NULL);
|
|
29
|
-
*
|
|
30
|
-
* Timestamp timestamp;
|
|
31
|
-
* timestamp.set_seconds(tv.tv_sec);
|
|
32
|
-
* timestamp.set_nanos(tv.tv_usec * 1000);
|
|
33
|
-
*
|
|
34
|
-
* Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
|
35
|
-
*
|
|
36
|
-
* FILETIME ft;
|
|
37
|
-
* GetSystemTimeAsFileTime(&ft);
|
|
38
|
-
* UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
|
39
|
-
*
|
|
40
|
-
* // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
|
41
|
-
* // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
|
42
|
-
* Timestamp timestamp;
|
|
43
|
-
* timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
|
44
|
-
* timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
|
45
|
-
*
|
|
46
|
-
* Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
|
47
|
-
*
|
|
48
|
-
* long millis = System.currentTimeMillis();
|
|
49
|
-
*
|
|
50
|
-
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
51
|
-
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
52
|
-
*
|
|
53
|
-
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
54
|
-
*
|
|
55
|
-
* Instant now = Instant.now();
|
|
56
|
-
*
|
|
57
|
-
* Timestamp timestamp =
|
|
58
|
-
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
59
|
-
* .setNanos(now.getNano()).build();
|
|
60
|
-
*
|
|
61
|
-
* Example 6: Compute Timestamp from current time in Python.
|
|
62
|
-
*
|
|
63
|
-
* timestamp = Timestamp()
|
|
64
|
-
* timestamp.GetCurrentTime()
|
|
65
|
-
*
|
|
66
|
-
* # JSON Mapping
|
|
67
|
-
*
|
|
68
|
-
* In JSON format, the Timestamp type is encoded as a string in the
|
|
69
|
-
* [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
|
70
|
-
* format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
|
71
|
-
* where {year} is always expressed using four digits while {month}, {day},
|
|
72
|
-
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
73
|
-
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
74
|
-
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
75
|
-
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
|
76
|
-
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
|
77
|
-
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
78
|
-
*
|
|
79
|
-
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
80
|
-
* 01:30 UTC on January 15, 2017.
|
|
81
|
-
*
|
|
82
|
-
* In JavaScript, one can convert a Date object to this format using the
|
|
83
|
-
* standard
|
|
84
|
-
* [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
|
85
|
-
* method. In Python, a standard `datetime.datetime` object can be converted
|
|
86
|
-
* to this format using
|
|
87
|
-
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
88
|
-
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
89
|
-
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
90
|
-
* http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
|
91
|
-
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
92
|
-
*/
|
|
93
|
-
export interface Timestamp {
|
|
94
|
-
/**
|
|
95
|
-
* Represents seconds of UTC time since Unix epoch
|
|
96
|
-
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
97
|
-
* 9999-12-31T23:59:59Z inclusive.
|
|
98
|
-
*/
|
|
99
|
-
seconds: string;
|
|
100
|
-
/**
|
|
101
|
-
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
102
|
-
* second values with fractions must still have non-negative nanos values
|
|
103
|
-
* that count forward in time. Must be from 0 to 999,999,999
|
|
104
|
-
* inclusive.
|
|
105
|
-
*/
|
|
106
|
-
nanos: number;
|
|
107
|
-
}
|
|
108
|
-
export declare const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.2
|
|
5
|
-
// protoc v3.21.5
|
|
6
|
-
// source: google/protobuf/timestamp.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
-
/* eslint-disable */
|
|
10
|
-
exports.protobufPackage = "google.protobuf";
|
|
11
|
-
exports.GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|