@wenlarge/communication 1.3.7 → 1.3.9

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;
@@ -4,16 +4,12 @@ import { Empty } from "./google/protobuf/empty";
4
4
  export declare const protobufPackage = "billing";
5
5
  export interface AssignWelcomeGrantRequest {
6
6
  companyId: string;
7
- email: string;
8
7
  }
9
8
  export interface CheckQuotaRequest {
10
9
  companyId: string;
11
10
  workflowId: string;
12
11
  nodeId: string;
13
12
  }
14
- export interface CheckQuotaResponse {
15
- companyId: string;
16
- }
17
13
  export interface GetBillingStatusRequest {
18
14
  companyId: string;
19
15
  }
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenlarge/communication",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
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",
@@ -3,7 +3,6 @@ syntax = "proto3";
3
3
  import "google/protobuf/empty.proto";
4
4
  package billing;
5
5
 
6
-
7
6
  service BillingService {
8
7
  rpc AssignWelcomeGrant(AssignWelcomeGrantRequest) returns (google.protobuf.Empty);
9
8
  rpc CheckQuota(CheckQuotaRequest) returns (google.protobuf.Empty);
@@ -15,7 +14,6 @@ service BillingService {
15
14
 
16
15
  message AssignWelcomeGrantRequest {
17
16
  string companyId = 1;
18
- string email = 2;
19
17
  }
20
18
 
21
19
  message CheckQuotaRequest {
@@ -24,10 +22,6 @@ message CheckQuotaRequest {
24
22
  string nodeId = 3;
25
23
  }
26
24
 
27
- message CheckQuotaResponse {
28
- string companyId = 1;
29
- }
30
-
31
25
  message GetBillingStatusRequest {
32
26
  string companyId = 1;
33
27
  }
@@ -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 */
@@ -14,7 +14,6 @@ export const protobufPackage = "billing";
14
14
 
15
15
  export interface AssignWelcomeGrantRequest {
16
16
  companyId: string;
17
- email: string;
18
17
  }
19
18
 
20
19
  export interface CheckQuotaRequest {
@@ -23,10 +22,6 @@ export interface CheckQuotaRequest {
23
22
  nodeId: string;
24
23
  }
25
24
 
26
- export interface CheckQuotaResponse {
27
- companyId: string;
28
- }
29
-
30
25
  export interface GetBillingStatusRequest {
31
26
  companyId: string;
32
27
  }
@@ -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 */