@wenlarge/communication 1.1.19 → 1.2.1

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.
@@ -36,12 +36,14 @@ export interface FindFirstResponse {
36
36
  export interface CreateEnvironmentRequest {
37
37
  projectId: string;
38
38
  name: string;
39
- isDefault: boolean;
39
+ type: string;
40
+ variables: EnvironmentVariableInput[];
40
41
  }
41
42
  export interface UpdateEnvironmentRequest {
42
43
  id: string;
43
44
  name: string;
44
- isDefault: boolean;
45
+ type: string;
46
+ variables: EnvironmentVariableInput[];
45
47
  }
46
48
  export interface DeleteEnvironmentRequest {
47
49
  id: string;
@@ -63,45 +65,21 @@ export interface FindFirstEnvironmentResponse {
63
65
  }
64
66
  export interface EnvironmentResponse {
65
67
  id: string;
66
- companyId: string;
67
68
  projectId: string;
68
69
  name: string;
69
- isDefault: boolean;
70
+ type: string;
71
+ variables: EnvironmentVariableResponse[];
70
72
  createdAt: string;
71
73
  updatedAt: string;
72
74
  }
73
- export interface CreateEnvironmentVariableRequest {
74
- environmentId: string;
75
+ export interface EnvironmentVariableInput {
75
76
  key: string;
76
77
  value: string;
77
- nodeScope: string;
78
- }
79
- export interface UpdateEnvironmentVariableRequest {
80
- id: string;
81
- key: string;
82
- value: string;
83
- nodeScope: string;
84
- }
85
- export interface DeleteEnvironmentVariableRequest {
86
- id: string;
87
- }
88
- export interface FindManyEnvironmentVariablesRequest {
89
- environmentId: string;
90
- skip: number;
91
- take: number;
92
- }
93
- export interface FindManyEnvironmentVariablesResponse {
94
- data: EnvironmentVariableResponse[];
95
- total: number;
96
78
  }
97
79
  export interface EnvironmentVariableResponse {
98
80
  id: string;
99
- companyId: string;
100
- projectId: string;
101
- environmentId: string;
102
81
  key: string;
103
82
  value: string;
104
- nodeScope: string;
105
83
  createdAt: string;
106
84
  updatedAt: string;
107
85
  }
@@ -138,17 +116,3 @@ export interface EnvironmentServiceController {
138
116
  }
139
117
  export declare function EnvironmentServiceControllerMethods(): (constructor: Function) => void;
140
118
  export declare const ENVIRONMENT_SERVICE_NAME = "EnvironmentService";
141
- export interface EnvironmentVariableServiceClient {
142
- create(request: CreateEnvironmentVariableRequest, metadata?: Metadata): Observable<EnvironmentVariableResponse>;
143
- update(request: UpdateEnvironmentVariableRequest, metadata?: Metadata): Observable<EnvironmentVariableResponse>;
144
- delete(request: DeleteEnvironmentVariableRequest, metadata?: Metadata): Observable<Empty>;
145
- findMany(request: FindManyEnvironmentVariablesRequest, metadata?: Metadata): Observable<FindManyEnvironmentVariablesResponse>;
146
- }
147
- export interface EnvironmentVariableServiceController {
148
- create(request: CreateEnvironmentVariableRequest, metadata?: Metadata): Promise<EnvironmentVariableResponse> | Observable<EnvironmentVariableResponse> | EnvironmentVariableResponse;
149
- update(request: UpdateEnvironmentVariableRequest, metadata?: Metadata): Promise<EnvironmentVariableResponse> | Observable<EnvironmentVariableResponse> | EnvironmentVariableResponse;
150
- delete(request: DeleteEnvironmentVariableRequest, metadata?: Metadata): void;
151
- findMany(request: FindManyEnvironmentVariablesRequest, metadata?: Metadata): Promise<FindManyEnvironmentVariablesResponse> | Observable<FindManyEnvironmentVariablesResponse> | FindManyEnvironmentVariablesResponse;
152
- }
153
- export declare function EnvironmentVariableServiceControllerMethods(): (constructor: Function) => void;
154
- export declare const ENVIRONMENT_VARIABLE_SERVICE_NAME = "EnvironmentVariableService";
@@ -5,10 +5,9 @@
5
5
  // protoc v7.34.0
6
6
  // source: project.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.ENVIRONMENT_VARIABLE_SERVICE_NAME = exports.ENVIRONMENT_SERVICE_NAME = exports.PROJECT_SERVICE_NAME = exports.PROJECT_PACKAGE_NAME = exports.protobufPackage = void 0;
8
+ exports.ENVIRONMENT_SERVICE_NAME = exports.PROJECT_SERVICE_NAME = exports.PROJECT_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.ProjectServiceControllerMethods = ProjectServiceControllerMethods;
10
10
  exports.EnvironmentServiceControllerMethods = EnvironmentServiceControllerMethods;
11
- exports.EnvironmentVariableServiceControllerMethods = EnvironmentVariableServiceControllerMethods;
12
11
  const microservices_1 = require("@nestjs/microservices");
13
12
  exports.protobufPackage = "project";
14
13
  exports.PROJECT_PACKAGE_NAME = "project";
@@ -42,18 +41,3 @@ function EnvironmentServiceControllerMethods() {
42
41
  };
43
42
  }
44
43
  exports.ENVIRONMENT_SERVICE_NAME = "EnvironmentService";
45
- function EnvironmentVariableServiceControllerMethods() {
46
- return function (constructor) {
47
- const grpcMethods = ["create", "update", "delete", "findMany"];
48
- for (const method of grpcMethods) {
49
- const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
50
- (0, microservices_1.GrpcMethod)("EnvironmentVariableService", method)(constructor.prototype[method], method, descriptor);
51
- }
52
- const grpcStreamMethods = [];
53
- for (const method of grpcStreamMethods) {
54
- const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
55
- (0, microservices_1.GrpcStreamMethod)("EnvironmentVariableService", method)(constructor.prototype[method], method, descriptor);
56
- }
57
- };
58
- }
59
- exports.ENVIRONMENT_VARIABLE_SERVICE_NAME = "EnvironmentVariableService";
@@ -135,7 +135,7 @@ export interface GetNodeExecutionLogRequest {
135
135
  take: number;
136
136
  }
137
137
  export interface GetExecutionLogResponse {
138
- logs: ExecutionLogEntry[];
138
+ data: ExecutionLogEntry[];
139
139
  total: number;
140
140
  }
141
141
  export interface GetWorkflowExecutionLogRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenlarge/communication",
3
- "version": "1.1.19",
3
+ "version": "1.2.1",
4
4
  "description": "Shared gRPC proto interfaces and generated clients for Wenlarge microservices.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,13 +20,6 @@ service EnvironmentService {
20
20
  rpc FindFirst (FindFirstEnvironmentRequest) returns (FindFirstEnvironmentResponse);
21
21
  }
22
22
 
23
- service EnvironmentVariableService {
24
- rpc Create (CreateEnvironmentVariableRequest) returns (EnvironmentVariableResponse);
25
- rpc Update (UpdateEnvironmentVariableRequest) returns (EnvironmentVariableResponse);
26
- rpc Delete (DeleteEnvironmentVariableRequest) returns (google.protobuf.Empty);
27
- rpc FindMany (FindManyEnvironmentVariablesRequest) returns (FindManyEnvironmentVariablesResponse);
28
- }
29
-
30
23
  message CreateProjectRequest {
31
24
  string name = 1;
32
25
  }
@@ -69,13 +62,15 @@ message FindFirstResponse{
69
62
  message CreateEnvironmentRequest {
70
63
  string projectId = 1;
71
64
  string name = 2;
72
- bool isDefault = 3;
65
+ string type = 3;
66
+ repeated EnvironmentVariableInput variables = 4;
73
67
  }
74
68
 
75
69
  message UpdateEnvironmentRequest {
76
70
  string id = 1;
77
71
  string name = 2;
78
- bool isDefault = 3;
72
+ string type = 3;
73
+ repeated EnvironmentVariableInput variables = 4;
79
74
  }
80
75
 
81
76
  message DeleteEnvironmentRequest {
@@ -103,51 +98,23 @@ message FindFirstEnvironmentResponse {
103
98
 
104
99
  message EnvironmentResponse {
105
100
  string id = 1;
106
- string companyId = 2;
107
- string projectId = 3;
108
- string name = 4;
109
- bool isDefault = 5;
101
+ string projectId = 2;
102
+ string name = 3;
103
+ string type = 4;
104
+ repeated EnvironmentVariableResponse variables = 5;
110
105
  string createdAt = 6;
111
106
  string updatedAt = 7;
112
107
  }
113
108
 
114
- message CreateEnvironmentVariableRequest {
115
- string environmentId = 1;
116
- string key = 2;
117
- string value = 3;
118
- string nodeScope = 4;
109
+ message EnvironmentVariableInput {
110
+ string key = 1;
111
+ string value = 2;
119
112
  }
120
113
 
121
- message UpdateEnvironmentVariableRequest {
114
+ message EnvironmentVariableResponse {
122
115
  string id = 1;
123
116
  string key = 2;
124
117
  string value = 3;
125
- string nodeScope = 4;
126
- }
127
-
128
- message DeleteEnvironmentVariableRequest {
129
- string id = 1;
130
- }
131
-
132
- message FindManyEnvironmentVariablesRequest {
133
- string environmentId = 1;
134
- int32 skip = 2;
135
- int32 take = 3;
136
- }
137
-
138
- message FindManyEnvironmentVariablesResponse {
139
- repeated EnvironmentVariableResponse data = 1;
140
- int32 total = 2;
141
- }
142
-
143
- message EnvironmentVariableResponse {
144
- string id = 1;
145
- string companyId = 2;
146
- string projectId = 3;
147
- string environmentId = 4;
148
- string key = 5;
149
- string value = 6;
150
- string nodeScope = 7;
151
- string createdAt = 8;
152
- string updatedAt = 9;
118
+ string createdAt = 4;
119
+ string updatedAt = 5;
153
120
  }
@@ -159,7 +159,7 @@ message GetNodeExecutionLogRequest {
159
159
  }
160
160
 
161
161
  message GetExecutionLogResponse {
162
- repeated ExecutionLogEntry logs = 1;
162
+ repeated ExecutionLogEntry data = 1;
163
163
  int32 total = 2;
164
164
  }
165
165
 
@@ -54,13 +54,15 @@ export interface FindFirstResponse {
54
54
  export interface CreateEnvironmentRequest {
55
55
  projectId: string;
56
56
  name: string;
57
- isDefault: boolean;
57
+ type: string;
58
+ variables: EnvironmentVariableInput[];
58
59
  }
59
60
 
60
61
  export interface UpdateEnvironmentRequest {
61
62
  id: string;
62
63
  name: string;
63
- isDefault: boolean;
64
+ type: string;
65
+ variables: EnvironmentVariableInput[];
64
66
  }
65
67
 
66
68
  export interface DeleteEnvironmentRequest {
@@ -88,51 +90,23 @@ export interface FindFirstEnvironmentResponse {
88
90
 
89
91
  export interface EnvironmentResponse {
90
92
  id: string;
91
- companyId: string;
92
93
  projectId: string;
93
94
  name: string;
94
- isDefault: boolean;
95
+ type: string;
96
+ variables: EnvironmentVariableResponse[];
95
97
  createdAt: string;
96
98
  updatedAt: string;
97
99
  }
98
100
 
99
- export interface CreateEnvironmentVariableRequest {
100
- environmentId: string;
101
- key: string;
102
- value: string;
103
- nodeScope: string;
104
- }
105
-
106
- export interface UpdateEnvironmentVariableRequest {
107
- id: string;
101
+ export interface EnvironmentVariableInput {
108
102
  key: string;
109
103
  value: string;
110
- nodeScope: string;
111
- }
112
-
113
- export interface DeleteEnvironmentVariableRequest {
114
- id: string;
115
- }
116
-
117
- export interface FindManyEnvironmentVariablesRequest {
118
- environmentId: string;
119
- skip: number;
120
- take: number;
121
- }
122
-
123
- export interface FindManyEnvironmentVariablesResponse {
124
- data: EnvironmentVariableResponse[];
125
- total: number;
126
104
  }
127
105
 
128
106
  export interface EnvironmentVariableResponse {
129
107
  id: string;
130
- companyId: string;
131
- projectId: string;
132
- environmentId: string;
133
108
  key: string;
134
109
  value: string;
135
- nodeScope: string;
136
110
  createdAt: string;
137
111
  updatedAt: string;
138
112
  }
@@ -244,55 +218,3 @@ export function EnvironmentServiceControllerMethods() {
244
218
  }
245
219
 
246
220
  export const ENVIRONMENT_SERVICE_NAME = "EnvironmentService";
247
-
248
- export interface EnvironmentVariableServiceClient {
249
- create(request: CreateEnvironmentVariableRequest, metadata?: Metadata): Observable<EnvironmentVariableResponse>;
250
-
251
- update(request: UpdateEnvironmentVariableRequest, metadata?: Metadata): Observable<EnvironmentVariableResponse>;
252
-
253
- delete(request: DeleteEnvironmentVariableRequest, metadata?: Metadata): Observable<Empty>;
254
-
255
- findMany(
256
- request: FindManyEnvironmentVariablesRequest,
257
- metadata?: Metadata,
258
- ): Observable<FindManyEnvironmentVariablesResponse>;
259
- }
260
-
261
- export interface EnvironmentVariableServiceController {
262
- create(
263
- request: CreateEnvironmentVariableRequest,
264
- metadata?: Metadata,
265
- ): Promise<EnvironmentVariableResponse> | Observable<EnvironmentVariableResponse> | EnvironmentVariableResponse;
266
-
267
- update(
268
- request: UpdateEnvironmentVariableRequest,
269
- metadata?: Metadata,
270
- ): Promise<EnvironmentVariableResponse> | Observable<EnvironmentVariableResponse> | EnvironmentVariableResponse;
271
-
272
- delete(request: DeleteEnvironmentVariableRequest, metadata?: Metadata): void;
273
-
274
- findMany(
275
- request: FindManyEnvironmentVariablesRequest,
276
- metadata?: Metadata,
277
- ):
278
- | Promise<FindManyEnvironmentVariablesResponse>
279
- | Observable<FindManyEnvironmentVariablesResponse>
280
- | FindManyEnvironmentVariablesResponse;
281
- }
282
-
283
- export function EnvironmentVariableServiceControllerMethods() {
284
- return function (constructor: Function) {
285
- const grpcMethods: string[] = ["create", "update", "delete", "findMany"];
286
- for (const method of grpcMethods) {
287
- const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
288
- GrpcMethod("EnvironmentVariableService", method)(constructor.prototype[method], method, descriptor);
289
- }
290
- const grpcStreamMethods: string[] = [];
291
- for (const method of grpcStreamMethods) {
292
- const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
293
- GrpcStreamMethod("EnvironmentVariableService", method)(constructor.prototype[method], method, descriptor);
294
- }
295
- };
296
- }
297
-
298
- export const ENVIRONMENT_VARIABLE_SERVICE_NAME = "EnvironmentVariableService";
@@ -152,7 +152,7 @@ export interface GetNodeExecutionLogRequest {
152
152
  }
153
153
 
154
154
  export interface GetExecutionLogResponse {
155
- logs: ExecutionLogEntry[];
155
+ data: ExecutionLogEntry[];
156
156
  total: number;
157
157
  }
158
158