@wenlarge/communication 1.2.4 → 1.2.6
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.d.ts +1 -0
- package/dist/generated/project.d.ts +0 -3
- package/dist/generated/workflow.d.ts +6 -5
- package/dist/kafka/kafka-topics.d.ts +6 -2
- package/dist/kafka/kafka-topics.js +6 -2
- package/package.json +51 -51
- package/proto/auth.proto +1 -0
- package/proto/project.proto +0 -3
- package/proto/workflow.proto +6 -3
- package/src/generated/auth.ts +1 -0
- package/src/generated/project.ts +0 -3
- package/src/generated/workflow.ts +6 -3
package/dist/generated/auth.d.ts
CHANGED
|
@@ -36,13 +36,11 @@ export interface FindFirstResponse {
|
|
|
36
36
|
export interface CreateEnvironmentRequest {
|
|
37
37
|
projectId: string;
|
|
38
38
|
name: string;
|
|
39
|
-
type: string;
|
|
40
39
|
variables: EnvironmentVariableInput[];
|
|
41
40
|
}
|
|
42
41
|
export interface UpdateEnvironmentRequest {
|
|
43
42
|
id: string;
|
|
44
43
|
name: string;
|
|
45
|
-
type: string;
|
|
46
44
|
variables: EnvironmentVariableInput[];
|
|
47
45
|
}
|
|
48
46
|
export interface DeleteEnvironmentRequest {
|
|
@@ -67,7 +65,6 @@ export interface EnvironmentResponse {
|
|
|
67
65
|
id: string;
|
|
68
66
|
projectId: string;
|
|
69
67
|
name: string;
|
|
70
|
-
type: string;
|
|
71
68
|
variables: EnvironmentVariableResponse[];
|
|
72
69
|
createdAt: string;
|
|
73
70
|
updatedAt: string;
|
|
@@ -10,6 +10,7 @@ export declare enum WorkflowStatus {
|
|
|
10
10
|
export interface CreateWorkflowRequest {
|
|
11
11
|
name: string;
|
|
12
12
|
projectId: string;
|
|
13
|
+
defaultEnvironmentId?: string | undefined;
|
|
13
14
|
}
|
|
14
15
|
export interface WorkflowResponse {
|
|
15
16
|
id: string;
|
|
@@ -19,6 +20,7 @@ export interface WorkflowResponse {
|
|
|
19
20
|
createdAt: string;
|
|
20
21
|
updatedAt: string;
|
|
21
22
|
status: WorkflowStatus;
|
|
23
|
+
defaultEnvironmentId?: string | undefined;
|
|
22
24
|
}
|
|
23
25
|
export interface DeleteWorkflowRequest {
|
|
24
26
|
id: string;
|
|
@@ -26,6 +28,7 @@ export interface DeleteWorkflowRequest {
|
|
|
26
28
|
export interface UpdateWorkflowRequest {
|
|
27
29
|
id: string;
|
|
28
30
|
name: string;
|
|
31
|
+
defaultEnvironmentId?: string | undefined;
|
|
29
32
|
}
|
|
30
33
|
export interface FindManyWorkflowRequest {
|
|
31
34
|
projectId: string;
|
|
@@ -41,7 +44,6 @@ export interface FindFirstWorkflowRequest {
|
|
|
41
44
|
}
|
|
42
45
|
export interface TriggerWorkflowRequest {
|
|
43
46
|
workflowId: string;
|
|
44
|
-
environmentId?: string | undefined;
|
|
45
47
|
}
|
|
46
48
|
export interface TriggerNodeRequest {
|
|
47
49
|
nodeId: string;
|
|
@@ -49,10 +51,6 @@ export interface TriggerNodeRequest {
|
|
|
49
51
|
inputSchema?: {
|
|
50
52
|
[key: string]: any;
|
|
51
53
|
} | undefined;
|
|
52
|
-
environmentId?: string | undefined;
|
|
53
|
-
env?: {
|
|
54
|
-
[key: string]: any;
|
|
55
|
-
} | undefined;
|
|
56
54
|
}
|
|
57
55
|
export interface WorkflowNodeRequest {
|
|
58
56
|
id: string;
|
|
@@ -68,6 +66,7 @@ export interface WorkflowNodeRequest {
|
|
|
68
66
|
[key: string]: any;
|
|
69
67
|
} | undefined;
|
|
70
68
|
nodeTypeId: string;
|
|
69
|
+
environmentId?: string | undefined;
|
|
71
70
|
}
|
|
72
71
|
export interface FindManyWorkflowNodeRequest {
|
|
73
72
|
workflowId: string;
|
|
@@ -91,6 +90,7 @@ export interface WorkflowNodeResponse {
|
|
|
91
90
|
} | undefined;
|
|
92
91
|
createdAt: string;
|
|
93
92
|
updatedAt: string;
|
|
93
|
+
environmentId?: string | undefined;
|
|
94
94
|
}
|
|
95
95
|
export interface WorkflowNodeConnection {
|
|
96
96
|
id: string;
|
|
@@ -106,6 +106,7 @@ export interface SaveWorkflowBatchRequest {
|
|
|
106
106
|
workflowName: string;
|
|
107
107
|
nodes: WorkflowNodeRequest[];
|
|
108
108
|
connections: UpdateBatchConnection[];
|
|
109
|
+
defaultEnvironmentId?: string | undefined;
|
|
109
110
|
}
|
|
110
111
|
export interface UpdateBatchConnection {
|
|
111
112
|
fromNodeId: string;
|
|
@@ -2,6 +2,10 @@ export declare const KafkaTopics: {
|
|
|
2
2
|
readonly EXECUTION_COMPLETED: "execution.completed";
|
|
3
3
|
readonly EXECUTION_FAILED: "execution.failed";
|
|
4
4
|
readonly EXECUTION_WAITING: "execution.waiting";
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
5
|
+
readonly EMAIL_WAITING: "email.waiting";
|
|
6
|
+
readonly EMAIL_COMPLETED: "email.completed";
|
|
7
|
+
readonly EMAIL_FAILED: "email.failed";
|
|
8
|
+
readonly SMS_WAITING: "sms.waiting";
|
|
9
|
+
readonly SMS_COMPLETED: "sms.completed";
|
|
10
|
+
readonly SMS_FAILED: "sms.failed";
|
|
7
11
|
};
|
|
@@ -5,6 +5,10 @@ exports.KafkaTopics = {
|
|
|
5
5
|
EXECUTION_COMPLETED: "execution.completed",
|
|
6
6
|
EXECUTION_FAILED: "execution.failed",
|
|
7
7
|
EXECUTION_WAITING: "execution.waiting",
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
EMAIL_WAITING: "email.waiting",
|
|
9
|
+
EMAIL_COMPLETED: "email.completed",
|
|
10
|
+
EMAIL_FAILED: "email.failed",
|
|
11
|
+
SMS_WAITING: "sms.waiting",
|
|
12
|
+
SMS_COMPLETED: "sms.completed",
|
|
13
|
+
SMS_FAILED: "sms.failed",
|
|
10
14
|
};
|
package/package.json
CHANGED
|
@@ -1,51 +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
|
-
"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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@wenlarge/communication",
|
|
3
|
+
"version": "1.2.6",
|
|
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
package/proto/project.proto
CHANGED
|
@@ -62,14 +62,12 @@ message FindFirstResponse{
|
|
|
62
62
|
message CreateEnvironmentRequest {
|
|
63
63
|
string projectId = 1;
|
|
64
64
|
string name = 2;
|
|
65
|
-
string type = 3;
|
|
66
65
|
repeated EnvironmentVariableInput variables = 4;
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
message UpdateEnvironmentRequest {
|
|
70
69
|
string id = 1;
|
|
71
70
|
string name = 2;
|
|
72
|
-
string type = 3;
|
|
73
71
|
repeated EnvironmentVariableInput variables = 4;
|
|
74
72
|
}
|
|
75
73
|
|
|
@@ -100,7 +98,6 @@ message EnvironmentResponse {
|
|
|
100
98
|
string id = 1;
|
|
101
99
|
string projectId = 2;
|
|
102
100
|
string name = 3;
|
|
103
|
-
string type = 4;
|
|
104
101
|
repeated EnvironmentVariableResponse variables = 5;
|
|
105
102
|
string createdAt = 6;
|
|
106
103
|
string updatedAt = 7;
|
package/proto/workflow.proto
CHANGED
|
@@ -25,6 +25,7 @@ service WorkflowService {
|
|
|
25
25
|
message CreateWorkflowRequest {
|
|
26
26
|
string name = 1;
|
|
27
27
|
string projectId = 2;
|
|
28
|
+
optional string default_environment_id = 3;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
message WorkflowResponse {
|
|
@@ -35,6 +36,7 @@ message WorkflowResponse {
|
|
|
35
36
|
string createdAt = 5;
|
|
36
37
|
string updatedAt = 6;
|
|
37
38
|
WorkflowStatus status = 7;
|
|
39
|
+
optional string default_environment_id = 8;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
message DeleteWorkflowRequest{
|
|
@@ -44,6 +46,7 @@ message DeleteWorkflowRequest{
|
|
|
44
46
|
message UpdateWorkflowRequest{
|
|
45
47
|
string id = 1;
|
|
46
48
|
string name = 2;
|
|
49
|
+
optional string default_environment_id = 3;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
message FindManyWorkflowRequest{
|
|
@@ -63,15 +66,12 @@ message FindFirstWorkflowRequest {
|
|
|
63
66
|
|
|
64
67
|
message TriggerWorkflowRequest{
|
|
65
68
|
string workflowId = 1;
|
|
66
|
-
optional string environmentId = 2;
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
message TriggerNodeRequest{
|
|
70
72
|
string nodeId = 1;
|
|
71
73
|
string workflowId = 2;
|
|
72
74
|
google.protobuf.Struct inputSchema = 3;
|
|
73
|
-
optional string environmentId = 4;
|
|
74
|
-
google.protobuf.Struct env = 5;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
message WorkflowNodeRequest{
|
|
@@ -82,6 +82,7 @@ message WorkflowNodeRequest{
|
|
|
82
82
|
google.protobuf.Struct outputSchema = 5;
|
|
83
83
|
google.protobuf.Struct config = 6;
|
|
84
84
|
string nodeTypeId = 7;
|
|
85
|
+
optional string environment_id = 8;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
message FindManyWorkflowNodeRequest{
|
|
@@ -102,6 +103,7 @@ message WorkflowNodeResponse{
|
|
|
102
103
|
google.protobuf.Struct config = 7;
|
|
103
104
|
string createdAt = 8;
|
|
104
105
|
string updatedAt = 9;
|
|
106
|
+
optional string environment_id = 10;
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
message WorkflowNodeConnection {
|
|
@@ -117,6 +119,7 @@ message SaveWorkflowBatchRequest {
|
|
|
117
119
|
string workflowName = 2;
|
|
118
120
|
repeated WorkflowNodeRequest nodes = 3;
|
|
119
121
|
repeated UpdateBatchConnection connections = 4;
|
|
122
|
+
optional string default_environment_id = 5;
|
|
120
123
|
}
|
|
121
124
|
|
|
122
125
|
message UpdateBatchConnection {
|
package/src/generated/auth.ts
CHANGED
package/src/generated/project.ts
CHANGED
|
@@ -54,14 +54,12 @@ export interface FindFirstResponse {
|
|
|
54
54
|
export interface CreateEnvironmentRequest {
|
|
55
55
|
projectId: string;
|
|
56
56
|
name: string;
|
|
57
|
-
type: string;
|
|
58
57
|
variables: EnvironmentVariableInput[];
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
export interface UpdateEnvironmentRequest {
|
|
62
61
|
id: string;
|
|
63
62
|
name: string;
|
|
64
|
-
type: string;
|
|
65
63
|
variables: EnvironmentVariableInput[];
|
|
66
64
|
}
|
|
67
65
|
|
|
@@ -92,7 +90,6 @@ export interface EnvironmentResponse {
|
|
|
92
90
|
id: string;
|
|
93
91
|
projectId: string;
|
|
94
92
|
name: string;
|
|
95
|
-
type: string;
|
|
96
93
|
variables: EnvironmentVariableResponse[];
|
|
97
94
|
createdAt: string;
|
|
98
95
|
updatedAt: string;
|
|
@@ -23,6 +23,7 @@ export enum WorkflowStatus {
|
|
|
23
23
|
export interface CreateWorkflowRequest {
|
|
24
24
|
name: string;
|
|
25
25
|
projectId: string;
|
|
26
|
+
defaultEnvironmentId?: string | undefined;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
export interface WorkflowResponse {
|
|
@@ -33,6 +34,7 @@ export interface WorkflowResponse {
|
|
|
33
34
|
createdAt: string;
|
|
34
35
|
updatedAt: string;
|
|
35
36
|
status: WorkflowStatus;
|
|
37
|
+
defaultEnvironmentId?: string | undefined;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
export interface DeleteWorkflowRequest {
|
|
@@ -42,6 +44,7 @@ export interface DeleteWorkflowRequest {
|
|
|
42
44
|
export interface UpdateWorkflowRequest {
|
|
43
45
|
id: string;
|
|
44
46
|
name: string;
|
|
47
|
+
defaultEnvironmentId?: string | undefined;
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
export interface FindManyWorkflowRequest {
|
|
@@ -61,15 +64,12 @@ export interface FindFirstWorkflowRequest {
|
|
|
61
64
|
|
|
62
65
|
export interface TriggerWorkflowRequest {
|
|
63
66
|
workflowId: string;
|
|
64
|
-
environmentId?: string | undefined;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
export interface TriggerNodeRequest {
|
|
68
70
|
nodeId: string;
|
|
69
71
|
workflowId: string;
|
|
70
72
|
inputSchema?: { [key: string]: any } | undefined;
|
|
71
|
-
environmentId?: string | undefined;
|
|
72
|
-
env?: { [key: string]: any } | undefined;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
export interface WorkflowNodeRequest {
|
|
@@ -80,6 +80,7 @@ export interface WorkflowNodeRequest {
|
|
|
80
80
|
outputSchema?: { [key: string]: any } | undefined;
|
|
81
81
|
config?: { [key: string]: any } | undefined;
|
|
82
82
|
nodeTypeId: string;
|
|
83
|
+
environmentId?: string | undefined;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
export interface FindManyWorkflowNodeRequest {
|
|
@@ -100,6 +101,7 @@ export interface WorkflowNodeResponse {
|
|
|
100
101
|
config?: { [key: string]: any } | undefined;
|
|
101
102
|
createdAt: string;
|
|
102
103
|
updatedAt: string;
|
|
104
|
+
environmentId?: string | undefined;
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
export interface WorkflowNodeConnection {
|
|
@@ -115,6 +117,7 @@ export interface SaveWorkflowBatchRequest {
|
|
|
115
117
|
workflowName: string;
|
|
116
118
|
nodes: WorkflowNodeRequest[];
|
|
117
119
|
connections: UpdateBatchConnection[];
|
|
120
|
+
defaultEnvironmentId?: string | undefined;
|
|
118
121
|
}
|
|
119
122
|
|
|
120
123
|
export interface UpdateBatchConnection {
|