@wenlarge/communication 1.1.12 → 1.1.14
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 +0 -1
- package/dist/generated/workflow.d.ts +6 -5
- package/dist/grpc-client/grpc-client.module.d.ts +2 -0
- package/dist/grpc-client/grpc-client.module.js +19 -2
- package/package.json +1 -1
- package/proto/executor-core.proto +0 -1
- package/proto/workflow.proto +2 -6
- package/src/generated/executor-core.ts +0 -1
- package/src/generated/workflow.ts +2 -6
|
@@ -121,10 +121,9 @@ export interface WorkflowNodeConnection {
|
|
|
121
121
|
workflowId: string;
|
|
122
122
|
fromNodeId: string;
|
|
123
123
|
toNodeId: string;
|
|
124
|
-
pointer?:
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
branch: string;
|
|
124
|
+
pointer?: {
|
|
125
|
+
[key: string]: any;
|
|
126
|
+
} | undefined;
|
|
128
127
|
}
|
|
129
128
|
export interface SaveWorkflowBatchRequest {
|
|
130
129
|
workflowId: string;
|
|
@@ -134,7 +133,9 @@ export interface SaveWorkflowBatchRequest {
|
|
|
134
133
|
export interface UpdateBatchConnection {
|
|
135
134
|
fromNodeId: string;
|
|
136
135
|
toNodeId: string;
|
|
137
|
-
pointer?:
|
|
136
|
+
pointer?: {
|
|
137
|
+
[key: string]: any;
|
|
138
|
+
} | undefined;
|
|
138
139
|
}
|
|
139
140
|
export interface WorkflowNodeTypeResponse {
|
|
140
141
|
id: string;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { DynamicModule } from "@nestjs/common";
|
|
2
2
|
export declare const EXECUTOR_HTTP_GRPC_CLIENT = "EXECUTOR_HTTP_GRPC_CLIENT";
|
|
3
|
+
export declare const EXECUTOR_WEBHOOK_GRPC_CLIENT = "EXECUTOR_WEBHOOK_GRPC_CLIENT";
|
|
3
4
|
export interface GrpcClientModuleOptions {
|
|
4
5
|
authServiceUrl: string;
|
|
5
6
|
projectServiceUrl: string;
|
|
6
7
|
workflowServiceUrl: string;
|
|
7
8
|
executorCoreServiceUrl: string;
|
|
8
9
|
executorHttpServiceUrl: string;
|
|
10
|
+
executorWebhookServiceUrl: string;
|
|
9
11
|
}
|
|
10
12
|
export declare class GrpcClientModule {
|
|
11
13
|
static forRoot(options: GrpcClientModuleOptions): DynamicModule;
|
|
@@ -38,7 +38,7 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
|
38
38
|
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.GrpcClientModule = exports.EXECUTOR_HTTP_GRPC_CLIENT = void 0;
|
|
41
|
+
exports.GrpcClientModule = exports.EXECUTOR_WEBHOOK_GRPC_CLIENT = exports.EXECUTOR_HTTP_GRPC_CLIENT = void 0;
|
|
42
42
|
const common_1 = require("@nestjs/common");
|
|
43
43
|
const microservices_1 = require("@nestjs/microservices");
|
|
44
44
|
const path_1 = require("path");
|
|
@@ -51,6 +51,7 @@ const workflow_config_1 = require("../config/workflow-config");
|
|
|
51
51
|
const executor_core_1 = require("../generated/executor-core");
|
|
52
52
|
const executor_core_config_1 = require("../config/executor-core-config");
|
|
53
53
|
exports.EXECUTOR_HTTP_GRPC_CLIENT = "EXECUTOR_HTTP_GRPC_CLIENT";
|
|
54
|
+
exports.EXECUTOR_WEBHOOK_GRPC_CLIENT = "EXECUTOR_WEBHOOK_GRPC_CLIENT";
|
|
54
55
|
let GrpcClientModule = (() => {
|
|
55
56
|
let _classDecorators = [(0, common_1.Module)({})];
|
|
56
57
|
let _classDescriptor;
|
|
@@ -58,7 +59,7 @@ let GrpcClientModule = (() => {
|
|
|
58
59
|
let _classThis;
|
|
59
60
|
var GrpcClientModule = _classThis = class {
|
|
60
61
|
static forRoot(options) {
|
|
61
|
-
var _a;
|
|
62
|
+
var _a, _b;
|
|
62
63
|
return {
|
|
63
64
|
module: GrpcClientModule,
|
|
64
65
|
global: true,
|
|
@@ -144,6 +145,22 @@ let GrpcClientModule = (() => {
|
|
|
144
145
|
},
|
|
145
146
|
},
|
|
146
147
|
},
|
|
148
|
+
{
|
|
149
|
+
name: exports.EXECUTOR_WEBHOOK_GRPC_CLIENT,
|
|
150
|
+
transport: microservices_1.Transport.GRPC,
|
|
151
|
+
options: {
|
|
152
|
+
package: executor_core_1.EXECUTOR_CORE_PACKAGE_NAME,
|
|
153
|
+
protoPath: executor_core_config_1.EXECUTOR_CORE_PROTO_PATH.map((p) => (0, path_1.join)(__dirname, "../../" + p)),
|
|
154
|
+
url: (_b = options.executorWebhookServiceUrl) !== null && _b !== void 0 ? _b : options.executorCoreServiceUrl,
|
|
155
|
+
loader: {
|
|
156
|
+
keepCase: true,
|
|
157
|
+
longs: String,
|
|
158
|
+
enums: String,
|
|
159
|
+
defaults: true,
|
|
160
|
+
oneofs: true,
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
147
164
|
]),
|
|
148
165
|
],
|
|
149
166
|
exports: [microservices_1.ClientsModule],
|
package/package.json
CHANGED
package/proto/workflow.proto
CHANGED
|
@@ -139,11 +139,7 @@ message WorkflowNodeConnection {
|
|
|
139
139
|
string workflowId = 2;
|
|
140
140
|
string fromNodeId = 3;
|
|
141
141
|
string toNodeId = 4;
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
message ConnectionPointer {
|
|
146
|
-
string branch = 1;
|
|
142
|
+
google.protobuf.Struct pointer = 5;
|
|
147
143
|
}
|
|
148
144
|
|
|
149
145
|
message SaveWorkflowBatchRequest {
|
|
@@ -155,7 +151,7 @@ message SaveWorkflowBatchRequest {
|
|
|
155
151
|
message UpdateBatchConnection {
|
|
156
152
|
string fromNodeId = 1;
|
|
157
153
|
string toNodeId = 2;
|
|
158
|
-
|
|
154
|
+
google.protobuf.Struct pointer = 3;
|
|
159
155
|
}
|
|
160
156
|
|
|
161
157
|
message WorkflowNodeTypeResponse {
|
|
@@ -133,11 +133,7 @@ export interface WorkflowNodeConnection {
|
|
|
133
133
|
workflowId: string;
|
|
134
134
|
fromNodeId: string;
|
|
135
135
|
toNodeId: string;
|
|
136
|
-
pointer?:
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export interface ConnectionPointer {
|
|
140
|
-
branch: string;
|
|
136
|
+
pointer?: { [key: string]: any } | undefined;
|
|
141
137
|
}
|
|
142
138
|
|
|
143
139
|
export interface SaveWorkflowBatchRequest {
|
|
@@ -149,7 +145,7 @@ export interface SaveWorkflowBatchRequest {
|
|
|
149
145
|
export interface UpdateBatchConnection {
|
|
150
146
|
fromNodeId: string;
|
|
151
147
|
toNodeId: string;
|
|
152
|
-
pointer?:
|
|
148
|
+
pointer?: { [key: string]: any } | undefined;
|
|
153
149
|
}
|
|
154
150
|
|
|
155
151
|
export interface WorkflowNodeTypeResponse {
|