@wenlarge/communication 1.5.5 → 1.5.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.
|
@@ -2,6 +2,7 @@ import { DynamicModule } from "@nestjs/common";
|
|
|
2
2
|
export declare const EXECUTOR_HTTP_GRPC_CLIENT = "EXECUTOR_HTTP_GRPC_CLIENT";
|
|
3
3
|
export declare const EXECUTOR_WEBHOOK_GRPC_CLIENT = "EXECUTOR_WEBHOOK_GRPC_CLIENT";
|
|
4
4
|
export declare const EXECUTOR_GEMINI_GRPC_CLIENT = "EXECUTOR_GEMINI_GRPC_CLIENT";
|
|
5
|
+
export declare const EXECUTOR_CHATGPT_GRPC_CLIENT = "EXECUTOR_CHATGPT_GRPC_CLIENT";
|
|
5
6
|
export interface GrpcClientModuleOptions {
|
|
6
7
|
authServiceUrl: string;
|
|
7
8
|
projectServiceUrl: string;
|
|
@@ -9,6 +10,7 @@ export interface GrpcClientModuleOptions {
|
|
|
9
10
|
executorCoreServiceUrl: string;
|
|
10
11
|
executorHttpServiceUrl: string;
|
|
11
12
|
executorWebhookServiceUrl: string;
|
|
13
|
+
executorChatgptServiceUrl: string;
|
|
12
14
|
notificationServiceUrl: string;
|
|
13
15
|
billingServiceUrl: string;
|
|
14
16
|
executorGeminiServiceUrl: string;
|
|
@@ -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_GEMINI_GRPC_CLIENT = exports.EXECUTOR_WEBHOOK_GRPC_CLIENT = exports.EXECUTOR_HTTP_GRPC_CLIENT = void 0;
|
|
41
|
+
exports.GrpcClientModule = exports.EXECUTOR_CHATGPT_GRPC_CLIENT = exports.EXECUTOR_GEMINI_GRPC_CLIENT = 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");
|
|
@@ -57,6 +57,7 @@ const billing_config_1 = require("../config/billing-config");
|
|
|
57
57
|
exports.EXECUTOR_HTTP_GRPC_CLIENT = "EXECUTOR_HTTP_GRPC_CLIENT";
|
|
58
58
|
exports.EXECUTOR_WEBHOOK_GRPC_CLIENT = "EXECUTOR_WEBHOOK_GRPC_CLIENT";
|
|
59
59
|
exports.EXECUTOR_GEMINI_GRPC_CLIENT = "EXECUTOR_GEMINI_GRPC_CLIENT";
|
|
60
|
+
exports.EXECUTOR_CHATGPT_GRPC_CLIENT = "EXECUTOR_CHATGPT_GRPC_CLIENT";
|
|
60
61
|
let GrpcClientModule = (() => {
|
|
61
62
|
let _classDecorators = [(0, common_1.Module)({})];
|
|
62
63
|
let _classDescriptor;
|
|
@@ -182,6 +183,22 @@ let GrpcClientModule = (() => {
|
|
|
182
183
|
},
|
|
183
184
|
},
|
|
184
185
|
},
|
|
186
|
+
{
|
|
187
|
+
name: exports.EXECUTOR_CHATGPT_GRPC_CLIENT,
|
|
188
|
+
transport: microservices_1.Transport.GRPC,
|
|
189
|
+
options: {
|
|
190
|
+
package: executor_core_1.EXECUTOR_CORE_PACKAGE_NAME,
|
|
191
|
+
protoPath: executor_core_config_1.EXECUTOR_CORE_PROTO_PATH.map((p) => (0, path_1.join)(__dirname, "../../" + p)),
|
|
192
|
+
url: options.executorChatgptServiceUrl,
|
|
193
|
+
loader: {
|
|
194
|
+
keepCase: true,
|
|
195
|
+
longs: String,
|
|
196
|
+
enums: String,
|
|
197
|
+
defaults: true,
|
|
198
|
+
oneofs: true,
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
185
202
|
{
|
|
186
203
|
name: notification_1.NOTIFICATION_SERVICE_NAME,
|
|
187
204
|
transport: microservices_1.Transport.GRPC,
|