@wenlarge/communication 1.3.5 → 1.3.7

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.
@@ -32,11 +32,6 @@ export interface InviteToCompanyRequest {
32
32
  companyId: string;
33
33
  email: string;
34
34
  }
35
- export interface InviteToCompanyResponse {
36
- id: string;
37
- companyId: string;
38
- email: string;
39
- }
40
35
  export interface UpdateUserRequest {
41
36
  name: string;
42
37
  email: string;
@@ -48,10 +43,6 @@ export interface UpdateInviteStatusRequest {
48
43
  userId: string;
49
44
  status: string;
50
45
  }
51
- export interface UpdateInviteStatusResponse {
52
- id: string;
53
- status: string;
54
- }
55
46
  export interface GetMeResponse {
56
47
  id: string;
57
48
  name: string;
@@ -94,9 +85,9 @@ export interface AuthServiceClient {
94
85
  login(request: LoginRequest, metadata?: Metadata): Observable<LoginResponse>;
95
86
  register(request: RegisterRequest, metadata?: Metadata): Observable<Empty>;
96
87
  getMe(request: GetMeRequest, metadata?: Metadata): Observable<GetMeResponse>;
97
- inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): Observable<InviteToCompanyResponse>;
88
+ inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): Observable<Empty>;
98
89
  updateUser(request: UpdateUserRequest, metadata?: Metadata): Observable<Empty>;
99
- updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): Observable<UpdateInviteStatusResponse>;
90
+ updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): Observable<Empty>;
100
91
  getCompanyUsers(request: GetCompanyUsersRequest, metadata?: Metadata): Observable<GetCompanyUsersResponse>;
101
92
  removeUserFromCompany(request: RemoveUserFromCompanyRequest, metadata?: Metadata): Observable<Empty>;
102
93
  refreshToken(request: RefreshTokenRequest, metadata?: Metadata): Observable<LoginResponse>;
@@ -107,9 +98,9 @@ export interface AuthServiceController {
107
98
  login(request: LoginRequest, metadata?: Metadata): Promise<LoginResponse> | Observable<LoginResponse> | LoginResponse;
108
99
  register(request: RegisterRequest, metadata?: Metadata): void;
109
100
  getMe(request: GetMeRequest, metadata?: Metadata): Promise<GetMeResponse> | Observable<GetMeResponse> | GetMeResponse;
110
- inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): Promise<InviteToCompanyResponse> | Observable<InviteToCompanyResponse> | InviteToCompanyResponse;
101
+ inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): void;
111
102
  updateUser(request: UpdateUserRequest, metadata?: Metadata): void;
112
- updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): Promise<UpdateInviteStatusResponse> | Observable<UpdateInviteStatusResponse> | UpdateInviteStatusResponse;
103
+ updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): void;
113
104
  getCompanyUsers(request: GetCompanyUsersRequest, metadata?: Metadata): Promise<GetCompanyUsersResponse> | Observable<GetCompanyUsersResponse> | GetCompanyUsersResponse;
114
105
  removeUserFromCompany(request: RemoveUserFromCompanyRequest, metadata?: Metadata): void;
115
106
  refreshToken(request: RefreshTokenRequest, metadata?: Metadata): Promise<LoginResponse> | Observable<LoginResponse> | LoginResponse;
@@ -0,0 +1,77 @@
1
+ import { Metadata } from "@grpc/grpc-js";
2
+ import { Observable } from "rxjs";
3
+ import { Empty } from "./google/protobuf/empty";
4
+ export declare const protobufPackage = "billing";
5
+ export interface AssignWelcomeGrantRequest {
6
+ companyId: string;
7
+ email: string;
8
+ }
9
+ export interface CheckQuotaRequest {
10
+ companyId: string;
11
+ workflowId: string;
12
+ nodeId: string;
13
+ }
14
+ export interface CheckQuotaResponse {
15
+ companyId: string;
16
+ }
17
+ export interface GetBillingStatusRequest {
18
+ companyId: string;
19
+ }
20
+ export interface GetBillingStatusResponse {
21
+ totalAllowance: number;
22
+ used: number;
23
+ remaining: number;
24
+ data: GrantInfo[];
25
+ }
26
+ export interface GrantInfo {
27
+ grantId: string;
28
+ grantType: string;
29
+ status: string;
30
+ nodeAllowance: number;
31
+ used: number;
32
+ validFrom: string;
33
+ validUntil: string;
34
+ }
35
+ export interface FindManyPlanResponse {
36
+ data: PlanInfo[];
37
+ }
38
+ export interface PlanInfo {
39
+ slug: string;
40
+ name: string;
41
+ includedNodeUnits: number;
42
+ billingInterval: string;
43
+ priceCents: number;
44
+ stripePriceId: string;
45
+ }
46
+ export interface CreateCheckoutSessionRequest {
47
+ companyId: string;
48
+ planSlug: string;
49
+ successUrl: string;
50
+ cancelUrl: string;
51
+ }
52
+ export interface CreateCheckoutSessionResponse {
53
+ checkoutUrl: string;
54
+ }
55
+ export interface CancelGrantRequest {
56
+ grantId: string;
57
+ companyId: string;
58
+ }
59
+ export declare const BILLING_PACKAGE_NAME = "billing";
60
+ export interface BillingServiceClient {
61
+ assignWelcomeGrant(request: AssignWelcomeGrantRequest, metadata?: Metadata): Observable<Empty>;
62
+ checkQuota(request: CheckQuotaRequest, metadata?: Metadata): Observable<Empty>;
63
+ getBillingStatus(request: GetBillingStatusRequest, metadata?: Metadata): Observable<GetBillingStatusResponse>;
64
+ findManyPlan(request: Empty, metadata?: Metadata): Observable<FindManyPlanResponse>;
65
+ createCheckoutSession(request: CreateCheckoutSessionRequest, metadata?: Metadata): Observable<CreateCheckoutSessionResponse>;
66
+ cancelGrant(request: CancelGrantRequest, metadata?: Metadata): Observable<Empty>;
67
+ }
68
+ export interface BillingServiceController {
69
+ assignWelcomeGrant(request: AssignWelcomeGrantRequest, metadata?: Metadata): void;
70
+ checkQuota(request: CheckQuotaRequest, metadata?: Metadata): void;
71
+ getBillingStatus(request: GetBillingStatusRequest, metadata?: Metadata): Promise<GetBillingStatusResponse> | Observable<GetBillingStatusResponse> | GetBillingStatusResponse;
72
+ findManyPlan(request: Empty, metadata?: Metadata): Promise<FindManyPlanResponse> | Observable<FindManyPlanResponse> | FindManyPlanResponse;
73
+ createCheckoutSession(request: CreateCheckoutSessionRequest, metadata?: Metadata): Promise<CreateCheckoutSessionResponse> | Observable<CreateCheckoutSessionResponse> | CreateCheckoutSessionResponse;
74
+ cancelGrant(request: CancelGrantRequest, metadata?: Metadata): void;
75
+ }
76
+ export declare function BillingServiceControllerMethods(): (constructor: Function) => void;
77
+ export declare const BILLING_SERVICE_NAME = "BillingService";
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.2
5
+ // protoc v7.34.0
6
+ // source: billing.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.BILLING_SERVICE_NAME = exports.BILLING_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.BillingServiceControllerMethods = BillingServiceControllerMethods;
10
+ const microservices_1 = require("@nestjs/microservices");
11
+ exports.protobufPackage = "billing";
12
+ exports.BILLING_PACKAGE_NAME = "billing";
13
+ function BillingServiceControllerMethods() {
14
+ return function (constructor) {
15
+ const grpcMethods = [
16
+ "assignWelcomeGrant",
17
+ "checkQuota",
18
+ "getBillingStatus",
19
+ "findManyPlan",
20
+ "createCheckoutSession",
21
+ "cancelGrant",
22
+ ];
23
+ for (const method of grpcMethods) {
24
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
25
+ (0, microservices_1.GrpcMethod)("BillingService", method)(constructor.prototype[method], method, descriptor);
26
+ }
27
+ const grpcStreamMethods = [];
28
+ for (const method of grpcStreamMethods) {
29
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
30
+ (0, microservices_1.GrpcStreamMethod)("BillingService", method)(constructor.prototype[method], method, descriptor);
31
+ }
32
+ };
33
+ }
34
+ exports.BILLING_SERVICE_NAME = "BillingService";
@@ -10,6 +10,9 @@ export interface ExecuteNodeRequest {
10
10
  inputSchema?: {
11
11
  [key: string]: any;
12
12
  } | undefined;
13
+ env?: {
14
+ [key: string]: any;
15
+ } | undefined;
13
16
  }
14
17
  export interface ExecuteNodeResponse {
15
18
  output?: {
package/package.json CHANGED
@@ -1,51 +1,51 @@
1
- {
2
- "name": "@wenlarge/communication",
3
- "version": "1.3.5",
4
- "description": "Shared gRPC proto interfaces and generated clients for Wenlarge microservices.",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "dist",
9
- "proto",
10
- "src/generated"
11
- ],
12
- "scripts": {
13
- "proto:build": "npx protoc --plugin=node_modules/.bin/protoc-gen-ts_proto.cmd --proto_path=proto --ts_proto_out=src/generated proto/*.proto --ts_proto_opt=nestJs=true,esModuleInterop=true,forceLong=string,useOptionals=messages,useDate=true,addGrpcMetadata=true,stringEnums=true",
14
- "build": "npm run proto:build && tsc",
15
- "prepare": "npm run build"
16
- },
17
- "keywords": [
18
- "nestjs",
19
- "grpc",
20
- "proto",
21
- "typescript",
22
- "microservices",
23
- "communication",
24
- "shared"
25
- ],
26
- "author": "Kerem Çakır <admin@wenlarge.com>",
27
- "license": "MIT",
28
- "repository": {
29
- "type": "git",
30
- "url": "https://github.com/wenlarge/communication.git"
31
- },
32
- "publishConfig": {
33
- "access": "public"
34
- },
35
- "dependencies": {
36
- "@grpc/grpc-js": "^1.14.1",
37
- "@grpc/proto-loader": "^0.7.15",
38
- "expr-eval": "^2.0.2",
39
- "rxjs": "^7.8.1"
40
- },
41
- "devDependencies": {
42
- "@bufbuild/buf": "^1.66.1",
43
- "@nestjs/microservices": "^10.4.20",
44
- "@types/node": "^24.9.1",
45
- "ts-proto": "^1.152.2",
46
- "typescript": "^5.3.3"
47
- },
48
- "peerDependencies": {
49
- "@grpc/grpc-js": "^1.14.1"
50
- }
51
- }
1
+ {
2
+ "name": "@wenlarge/communication",
3
+ "version": "1.3.7",
4
+ "description": "Shared gRPC proto interfaces and generated clients for Wenlarge microservices.",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "proto",
10
+ "src/generated"
11
+ ],
12
+ "scripts": {
13
+ "proto:build": "npx protoc --plugin=node_modules/.bin/protoc-gen-ts_proto.cmd --proto_path=proto --ts_proto_out=src/generated proto/*.proto --ts_proto_opt=nestJs=true,esModuleInterop=true,forceLong=string,useOptionals=messages,useDate=true,addGrpcMetadata=true,stringEnums=true",
14
+ "build": "npm run proto:build && tsc",
15
+ "prepare": "npm run build"
16
+ },
17
+ "keywords": [
18
+ "nestjs",
19
+ "grpc",
20
+ "proto",
21
+ "typescript",
22
+ "microservices",
23
+ "communication",
24
+ "shared"
25
+ ],
26
+ "author": "Kerem Çakır <admin@wenlarge.com>",
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/wenlarge/communication.git"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "dependencies": {
36
+ "@grpc/grpc-js": "^1.14.1",
37
+ "@grpc/proto-loader": "^0.7.15",
38
+ "expr-eval": "^2.0.2",
39
+ "rxjs": "^7.8.1"
40
+ },
41
+ "devDependencies": {
42
+ "@bufbuild/buf": "^1.66.1",
43
+ "@nestjs/microservices": "^10.4.20",
44
+ "@types/node": "^24.9.1",
45
+ "ts-proto": "^1.152.2",
46
+ "typescript": "^5.3.3"
47
+ },
48
+ "peerDependencies": {
49
+ "@grpc/grpc-js": "^1.14.1"
50
+ }
51
+ }
package/proto/auth.proto CHANGED
@@ -8,9 +8,9 @@ service AuthService {
8
8
  rpc Login (LoginRequest) returns (LoginResponse);
9
9
  rpc Register (RegisterRequest) returns (google.protobuf.Empty);
10
10
  rpc GetMe (GetMeRequest) returns (GetMeResponse);
11
- rpc InviteToCompany (InviteToCompanyRequest) returns (InviteToCompanyResponse);
11
+ rpc InviteToCompany (InviteToCompanyRequest) returns (google.protobuf.Empty);
12
12
  rpc UpdateUser (UpdateUserRequest) returns (google.protobuf.Empty);
13
- rpc UpdateInviteStatus (UpdateInviteStatusRequest) returns (UpdateInviteStatusResponse);
13
+ rpc UpdateInviteStatus (UpdateInviteStatusRequest) returns (google.protobuf.Empty);
14
14
  rpc GetCompanyUsers (GetCompanyUsersRequest) returns (GetCompanyUsersResponse);
15
15
  rpc RemoveUserFromCompany (RemoveUserFromCompanyRequest) returns (google.protobuf.Empty);
16
16
  rpc RefreshToken (RefreshTokenRequest) returns (LoginResponse);
@@ -55,12 +55,6 @@ message InviteToCompanyRequest {
55
55
  string email = 2;
56
56
  }
57
57
 
58
- message InviteToCompanyResponse{
59
- string id = 1;
60
- string companyId = 2;
61
- string email = 3;
62
- }
63
-
64
58
  message UpdateUserRequest {
65
59
  string name = 1;
66
60
  string email = 2;
@@ -74,11 +68,6 @@ message UpdateInviteStatusRequest{
74
68
  string status = 3;
75
69
  }
76
70
 
77
- message UpdateInviteStatusResponse{
78
- string id = 1 ;
79
- string status = 2;
80
- }
81
-
82
71
  message GetMeResponse {
83
72
  string id = 1;
84
73
  string name = 2;
@@ -0,0 +1,79 @@
1
+ syntax = "proto3";
2
+
3
+ import "google/protobuf/empty.proto";
4
+ package billing;
5
+
6
+
7
+ service BillingService {
8
+ rpc AssignWelcomeGrant(AssignWelcomeGrantRequest) returns (google.protobuf.Empty);
9
+ rpc CheckQuota(CheckQuotaRequest) returns (google.protobuf.Empty);
10
+ rpc GetBillingStatus(GetBillingStatusRequest) returns (GetBillingStatusResponse);
11
+ rpc FindManyPlan (google.protobuf.Empty) returns (FindManyPlanResponse);
12
+ rpc CreateCheckoutSession(CreateCheckoutSessionRequest) returns (CreateCheckoutSessionResponse);
13
+ rpc CancelGrant(CancelGrantRequest) returns (google.protobuf.Empty);
14
+ }
15
+
16
+ message AssignWelcomeGrantRequest {
17
+ string companyId = 1;
18
+ string email = 2;
19
+ }
20
+
21
+ message CheckQuotaRequest {
22
+ string companyId = 1;
23
+ string workflowId = 2;
24
+ string nodeId = 3;
25
+ }
26
+
27
+ message CheckQuotaResponse {
28
+ string companyId = 1;
29
+ }
30
+
31
+ message GetBillingStatusRequest {
32
+ string companyId = 1;
33
+ }
34
+
35
+ message GetBillingStatusResponse {
36
+ int32 totalAllowance = 1;
37
+ int32 used = 2;
38
+ int32 remaining = 3;
39
+ repeated GrantInfo data = 4;
40
+ }
41
+
42
+ message GrantInfo {
43
+ string grantId = 1;
44
+ string grantType = 2;
45
+ string status = 3;
46
+ int32 nodeAllowance = 4;
47
+ int32 used = 5;
48
+ string validFrom = 6;
49
+ string validUntil = 7;
50
+ }
51
+
52
+ message FindManyPlanResponse {
53
+ repeated PlanInfo data = 1;
54
+ }
55
+
56
+ message PlanInfo {
57
+ string slug = 1;
58
+ string name = 2;
59
+ int32 includedNodeUnits = 3;
60
+ string billingInterval = 4;
61
+ int32 priceCents = 5;
62
+ string stripePriceId = 6;
63
+ }
64
+
65
+ message CreateCheckoutSessionRequest {
66
+ string companyId = 1;
67
+ string planSlug = 2;
68
+ string successUrl = 3;
69
+ string cancelUrl = 4;
70
+ }
71
+
72
+ message CreateCheckoutSessionResponse {
73
+ string checkoutUrl = 1;
74
+ }
75
+
76
+ message CancelGrantRequest {
77
+ string grantId = 1;
78
+ string companyId = 2;
79
+ }
@@ -8,6 +8,7 @@ message ExecuteNodeRequest {
8
8
  string nodeId = 2;
9
9
  google.protobuf.Struct config = 3;
10
10
  google.protobuf.Struct inputSchema = 4;
11
+ google.protobuf.Struct env = 5;
11
12
  }
12
13
 
13
14
  message ExecuteNodeResponse {
@@ -49,12 +49,6 @@ export interface InviteToCompanyRequest {
49
49
  email: string;
50
50
  }
51
51
 
52
- export interface InviteToCompanyResponse {
53
- id: string;
54
- companyId: string;
55
- email: string;
56
- }
57
-
58
52
  export interface UpdateUserRequest {
59
53
  name: string;
60
54
  email: string;
@@ -68,11 +62,6 @@ export interface UpdateInviteStatusRequest {
68
62
  status: string;
69
63
  }
70
64
 
71
- export interface UpdateInviteStatusResponse {
72
- id: string;
73
- status: string;
74
- }
75
-
76
65
  export interface GetMeResponse {
77
66
  id: string;
78
67
  name: string;
@@ -127,11 +116,11 @@ export interface AuthServiceClient {
127
116
 
128
117
  getMe(request: GetMeRequest, metadata?: Metadata): Observable<GetMeResponse>;
129
118
 
130
- inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): Observable<InviteToCompanyResponse>;
119
+ inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): Observable<Empty>;
131
120
 
132
121
  updateUser(request: UpdateUserRequest, metadata?: Metadata): Observable<Empty>;
133
122
 
134
- updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): Observable<UpdateInviteStatusResponse>;
123
+ updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): Observable<Empty>;
135
124
 
136
125
  getCompanyUsers(request: GetCompanyUsersRequest, metadata?: Metadata): Observable<GetCompanyUsersResponse>;
137
126
 
@@ -151,17 +140,11 @@ export interface AuthServiceController {
151
140
 
152
141
  getMe(request: GetMeRequest, metadata?: Metadata): Promise<GetMeResponse> | Observable<GetMeResponse> | GetMeResponse;
153
142
 
154
- inviteToCompany(
155
- request: InviteToCompanyRequest,
156
- metadata?: Metadata,
157
- ): Promise<InviteToCompanyResponse> | Observable<InviteToCompanyResponse> | InviteToCompanyResponse;
143
+ inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): void;
158
144
 
159
145
  updateUser(request: UpdateUserRequest, metadata?: Metadata): void;
160
146
 
161
- updateInviteStatus(
162
- request: UpdateInviteStatusRequest,
163
- metadata?: Metadata,
164
- ): Promise<UpdateInviteStatusResponse> | Observable<UpdateInviteStatusResponse> | UpdateInviteStatusResponse;
147
+ updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): void;
165
148
 
166
149
  getCompanyUsers(
167
150
  request: GetCompanyUsersRequest,
@@ -0,0 +1,144 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v1.181.2
4
+ // protoc v7.34.0
5
+ // source: billing.proto
6
+
7
+ /* eslint-disable */
8
+ import { Metadata } from "@grpc/grpc-js";
9
+ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
10
+ import { Observable } from "rxjs";
11
+ import { Empty } from "./google/protobuf/empty";
12
+
13
+ export const protobufPackage = "billing";
14
+
15
+ export interface AssignWelcomeGrantRequest {
16
+ companyId: string;
17
+ email: string;
18
+ }
19
+
20
+ export interface CheckQuotaRequest {
21
+ companyId: string;
22
+ workflowId: string;
23
+ nodeId: string;
24
+ }
25
+
26
+ export interface CheckQuotaResponse {
27
+ companyId: string;
28
+ }
29
+
30
+ export interface GetBillingStatusRequest {
31
+ companyId: string;
32
+ }
33
+
34
+ export interface GetBillingStatusResponse {
35
+ totalAllowance: number;
36
+ used: number;
37
+ remaining: number;
38
+ data: GrantInfo[];
39
+ }
40
+
41
+ export interface GrantInfo {
42
+ grantId: string;
43
+ grantType: string;
44
+ status: string;
45
+ nodeAllowance: number;
46
+ used: number;
47
+ validFrom: string;
48
+ validUntil: string;
49
+ }
50
+
51
+ export interface FindManyPlanResponse {
52
+ data: PlanInfo[];
53
+ }
54
+
55
+ export interface PlanInfo {
56
+ slug: string;
57
+ name: string;
58
+ includedNodeUnits: number;
59
+ billingInterval: string;
60
+ priceCents: number;
61
+ stripePriceId: string;
62
+ }
63
+
64
+ export interface CreateCheckoutSessionRequest {
65
+ companyId: string;
66
+ planSlug: string;
67
+ successUrl: string;
68
+ cancelUrl: string;
69
+ }
70
+
71
+ export interface CreateCheckoutSessionResponse {
72
+ checkoutUrl: string;
73
+ }
74
+
75
+ export interface CancelGrantRequest {
76
+ grantId: string;
77
+ companyId: string;
78
+ }
79
+
80
+ export const BILLING_PACKAGE_NAME = "billing";
81
+
82
+ export interface BillingServiceClient {
83
+ assignWelcomeGrant(request: AssignWelcomeGrantRequest, metadata?: Metadata): Observable<Empty>;
84
+
85
+ checkQuota(request: CheckQuotaRequest, metadata?: Metadata): Observable<Empty>;
86
+
87
+ getBillingStatus(request: GetBillingStatusRequest, metadata?: Metadata): Observable<GetBillingStatusResponse>;
88
+
89
+ findManyPlan(request: Empty, metadata?: Metadata): Observable<FindManyPlanResponse>;
90
+
91
+ createCheckoutSession(
92
+ request: CreateCheckoutSessionRequest,
93
+ metadata?: Metadata,
94
+ ): Observable<CreateCheckoutSessionResponse>;
95
+
96
+ cancelGrant(request: CancelGrantRequest, metadata?: Metadata): Observable<Empty>;
97
+ }
98
+
99
+ export interface BillingServiceController {
100
+ assignWelcomeGrant(request: AssignWelcomeGrantRequest, metadata?: Metadata): void;
101
+
102
+ checkQuota(request: CheckQuotaRequest, metadata?: Metadata): void;
103
+
104
+ getBillingStatus(
105
+ request: GetBillingStatusRequest,
106
+ metadata?: Metadata,
107
+ ): Promise<GetBillingStatusResponse> | Observable<GetBillingStatusResponse> | GetBillingStatusResponse;
108
+
109
+ findManyPlan(
110
+ request: Empty,
111
+ metadata?: Metadata,
112
+ ): Promise<FindManyPlanResponse> | Observable<FindManyPlanResponse> | FindManyPlanResponse;
113
+
114
+ createCheckoutSession(
115
+ request: CreateCheckoutSessionRequest,
116
+ metadata?: Metadata,
117
+ ): Promise<CreateCheckoutSessionResponse> | Observable<CreateCheckoutSessionResponse> | CreateCheckoutSessionResponse;
118
+
119
+ cancelGrant(request: CancelGrantRequest, metadata?: Metadata): void;
120
+ }
121
+
122
+ export function BillingServiceControllerMethods() {
123
+ return function (constructor: Function) {
124
+ const grpcMethods: string[] = [
125
+ "assignWelcomeGrant",
126
+ "checkQuota",
127
+ "getBillingStatus",
128
+ "findManyPlan",
129
+ "createCheckoutSession",
130
+ "cancelGrant",
131
+ ];
132
+ for (const method of grpcMethods) {
133
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
134
+ GrpcMethod("BillingService", method)(constructor.prototype[method], method, descriptor);
135
+ }
136
+ const grpcStreamMethods: string[] = [];
137
+ for (const method of grpcStreamMethods) {
138
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
139
+ GrpcStreamMethod("BillingService", method)(constructor.prototype[method], method, descriptor);
140
+ }
141
+ };
142
+ }
143
+
144
+ export const BILLING_SERVICE_NAME = "BillingService";
@@ -18,6 +18,7 @@ export interface ExecuteNodeRequest {
18
18
  nodeId: string;
19
19
  config?: { [key: string]: any } | undefined;
20
20
  inputSchema?: { [key: string]: any } | undefined;
21
+ env?: { [key: string]: any } | undefined;
21
22
  }
22
23
 
23
24
  export interface ExecuteNodeResponse {