@wenlarge/communication 1.3.8 → 1.4.0

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.
@@ -0,0 +1 @@
1
+ export declare const BILLING_PROTO_PATH: string[];
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BILLING_PROTO_PATH = void 0;
4
+ exports.BILLING_PROTO_PATH = ["proto/billing.proto"];
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v7.34.0
5
+ // protoc v6.33.6
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.AUTH_SERVICE_NAME = exports.AUTH_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v7.34.0
5
+ // protoc v6.33.6
6
6
  // source: billing.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.BILLING_SERVICE_NAME = exports.BILLING_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v7.34.0
5
+ // protoc v6.33.6
6
6
  // source: executor-core.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.CORE_EXECUTION_SERVICE_NAME = exports.EXECUTOR_CORE_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v7.34.0
5
+ // protoc v6.33.6
6
6
  // source: google/protobuf/empty.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v7.34.0
5
+ // protoc v6.33.6
6
6
  // source: google/protobuf/struct.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ListValue = exports.Value = exports.Struct = exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.NullValue = exports.protobufPackage = void 0;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v7.34.0
5
+ // protoc v6.33.6
6
6
  // source: notification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.NOTIFICATION_SERVICE_NAME = exports.NOTIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v7.34.0
5
+ // protoc v6.33.6
6
6
  // source: project.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ENVIRONMENT_SERVICE_NAME = exports.PROJECT_SERVICE_NAME = exports.PROJECT_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
- // protoc v7.34.0
5
+ // protoc v6.33.6
6
6
  // source: workflow.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.WORKFLOW_SERVICE_NAME = exports.WORKFLOW_PACKAGE_NAME = exports.WorkflowStatus = exports.protobufPackage = void 0;
@@ -9,6 +9,7 @@ export interface GrpcClientModuleOptions {
9
9
  executorHttpServiceUrl: string;
10
10
  executorWebhookServiceUrl: string;
11
11
  notificationServiceUrl: string;
12
+ billingServiceUrl: string;
12
13
  }
13
14
  export declare class GrpcClientModule {
14
15
  static forRoot(options: GrpcClientModuleOptions): DynamicModule;
@@ -52,6 +52,8 @@ const executor_core_1 = require("../generated/executor-core");
52
52
  const executor_core_config_1 = require("../config/executor-core-config");
53
53
  const notification_1 = require("../generated/notification");
54
54
  const notification_config_1 = require("../config/notification-config");
55
+ const billing_1 = require("../generated/billing");
56
+ const billing_config_1 = require("../config/billing-config");
55
57
  exports.EXECUTOR_HTTP_GRPC_CLIENT = "EXECUTOR_HTTP_GRPC_CLIENT";
56
58
  exports.EXECUTOR_WEBHOOK_GRPC_CLIENT = "EXECUTOR_WEBHOOK_GRPC_CLIENT";
57
59
  let GrpcClientModule = (() => {
@@ -179,6 +181,22 @@ let GrpcClientModule = (() => {
179
181
  },
180
182
  },
181
183
  },
184
+ {
185
+ name: billing_1.BILLING_SERVICE_NAME,
186
+ transport: microservices_1.Transport.GRPC,
187
+ options: {
188
+ package: billing_1.BILLING_PACKAGE_NAME,
189
+ protoPath: billing_config_1.BILLING_PROTO_PATH.map((p) => (0, path_1.join)(__dirname, "../../" + p)),
190
+ url: options.billingServiceUrl,
191
+ loader: {
192
+ keepCase: true,
193
+ longs: String,
194
+ enums: String,
195
+ defaults: true,
196
+ oneofs: true,
197
+ },
198
+ },
199
+ },
182
200
  ]),
183
201
  ],
184
202
  exports: [microservices_1.ClientsModule],
package/dist/index.d.ts CHANGED
@@ -15,3 +15,4 @@ export * as Notification from "./generated/notification";
15
15
  export * from "./kafka/kafka-topics";
16
16
  export * from "./kafka/commit-kafka-offset";
17
17
  export { Struct, Value, ListValue } from "./generated/google/protobuf/struct";
18
+ export * from "./config/billing-config";
package/dist/index.js CHANGED
@@ -58,3 +58,4 @@ var struct_1 = require("./generated/google/protobuf/struct");
58
58
  Object.defineProperty(exports, "Struct", { enumerable: true, get: function () { return struct_1.Struct; } });
59
59
  Object.defineProperty(exports, "Value", { enumerable: true, get: function () { return struct_1.Value; } });
60
60
  Object.defineProperty(exports, "ListValue", { enumerable: true, get: function () { return struct_1.ListValue; } });
61
+ __exportStar(require("./config/billing-config"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenlarge/communication",
3
- "version": "1.3.8",
3
+ "version": "1.4.0",
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",
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v7.34.0
4
+ // protoc v6.33.6
5
5
  // source: auth.proto
6
6
 
7
7
  /* eslint-disable */
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v7.34.0
4
+ // protoc v6.33.6
5
5
  // source: billing.proto
6
6
 
7
7
  /* eslint-disable */
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v7.34.0
4
+ // protoc v6.33.6
5
5
  // source: executor-core.proto
6
6
 
7
7
  /* eslint-disable */
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v7.34.0
4
+ // protoc v6.33.6
5
5
  // source: google/protobuf/empty.proto
6
6
 
7
7
  /* eslint-disable */
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v7.34.0
4
+ // protoc v6.33.6
5
5
  // source: google/protobuf/struct.proto
6
6
 
7
7
  /* eslint-disable */
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v7.34.0
4
+ // protoc v6.33.6
5
5
  // source: notification.proto
6
6
 
7
7
  /* eslint-disable */
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v7.34.0
4
+ // protoc v6.33.6
5
5
  // source: project.proto
6
6
 
7
7
  /* eslint-disable */
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v1.181.2
4
- // protoc v7.34.0
4
+ // protoc v6.33.6
5
5
  // source: workflow.proto
6
6
 
7
7
  /* eslint-disable */