@wenlarge/communication 1.4.2 → 1.4.4
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/billing.d.ts +8 -19
- package/dist/generated/billing.js +1 -0
- package/dist/generated/project.d.ts +2 -0
- package/dist/generated/project.js +1 -1
- package/dist/generated/workflow.d.ts +2 -0
- package/dist/generated/workflow.js +1 -0
- package/package.json +1 -1
- package/proto/billing.proto +7 -22
- package/proto/project.proto +1 -0
- package/proto/workflow.proto +1 -0
- package/src/generated/billing.ts +11 -22
- package/src/generated/project.ts +5 -1
- package/src/generated/workflow.ts +5 -0
|
@@ -2,17 +2,6 @@ import { Metadata } from "@grpc/grpc-js";
|
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { Empty } from "./google/protobuf/empty";
|
|
4
4
|
export declare const protobufPackage = "billing";
|
|
5
|
-
export interface AssignWelcomeGrantRequest {
|
|
6
|
-
companyId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface CheckQuotaRequest {
|
|
9
|
-
companyId: string;
|
|
10
|
-
workflowId: string;
|
|
11
|
-
nodeId: string;
|
|
12
|
-
}
|
|
13
|
-
export interface GetBillingStatusRequest {
|
|
14
|
-
companyId: string;
|
|
15
|
-
}
|
|
16
5
|
export interface GetBillingStatusResponse {
|
|
17
6
|
totalAllowance: number;
|
|
18
7
|
used: number;
|
|
@@ -40,7 +29,6 @@ export interface PlanInfo {
|
|
|
40
29
|
stripePriceId: string;
|
|
41
30
|
}
|
|
42
31
|
export interface CreateCheckoutSessionRequest {
|
|
43
|
-
companyId: string;
|
|
44
32
|
planSlug: string;
|
|
45
33
|
successUrl: string;
|
|
46
34
|
cancelUrl: string;
|
|
@@ -50,7 +38,6 @@ export interface CreateCheckoutSessionResponse {
|
|
|
50
38
|
}
|
|
51
39
|
export interface CancelGrantRequest {
|
|
52
40
|
grantId: string;
|
|
53
|
-
companyId: string;
|
|
54
41
|
}
|
|
55
42
|
export interface FindManyEntitlementGrantRequest {
|
|
56
43
|
skip: number;
|
|
@@ -71,22 +58,24 @@ export interface EntitlementGrantInfo {
|
|
|
71
58
|
}
|
|
72
59
|
export declare const BILLING_PACKAGE_NAME = "billing";
|
|
73
60
|
export interface BillingServiceClient {
|
|
74
|
-
assignWelcomeGrant(request:
|
|
75
|
-
checkQuota(request:
|
|
76
|
-
getBillingStatus(request:
|
|
61
|
+
assignWelcomeGrant(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
62
|
+
checkQuota(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
63
|
+
getBillingStatus(request: Empty, metadata?: Metadata): Observable<GetBillingStatusResponse>;
|
|
77
64
|
findManyPlan(request: Empty, metadata?: Metadata): Observable<FindManyPlanResponse>;
|
|
78
65
|
createCheckoutSession(request: CreateCheckoutSessionRequest, metadata?: Metadata): Observable<CreateCheckoutSessionResponse>;
|
|
79
66
|
cancelGrant(request: CancelGrantRequest, metadata?: Metadata): Observable<Empty>;
|
|
80
67
|
findManyEntitlementGrant(request: FindManyEntitlementGrantRequest, metadata?: Metadata): Observable<FindManyEntitlementGrantResponse>;
|
|
68
|
+
getNodeCount(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
81
69
|
}
|
|
82
70
|
export interface BillingServiceController {
|
|
83
|
-
assignWelcomeGrant(request:
|
|
84
|
-
checkQuota(request:
|
|
85
|
-
getBillingStatus(request:
|
|
71
|
+
assignWelcomeGrant(request: Empty, metadata?: Metadata): void;
|
|
72
|
+
checkQuota(request: Empty, metadata?: Metadata): void;
|
|
73
|
+
getBillingStatus(request: Empty, metadata?: Metadata): Promise<GetBillingStatusResponse> | Observable<GetBillingStatusResponse> | GetBillingStatusResponse;
|
|
86
74
|
findManyPlan(request: Empty, metadata?: Metadata): Promise<FindManyPlanResponse> | Observable<FindManyPlanResponse> | FindManyPlanResponse;
|
|
87
75
|
createCheckoutSession(request: CreateCheckoutSessionRequest, metadata?: Metadata): Promise<CreateCheckoutSessionResponse> | Observable<CreateCheckoutSessionResponse> | CreateCheckoutSessionResponse;
|
|
88
76
|
cancelGrant(request: CancelGrantRequest, metadata?: Metadata): void;
|
|
89
77
|
findManyEntitlementGrant(request: FindManyEntitlementGrantRequest, metadata?: Metadata): Promise<FindManyEntitlementGrantResponse> | Observable<FindManyEntitlementGrantResponse> | FindManyEntitlementGrantResponse;
|
|
78
|
+
getNodeCount(request: Empty, metadata?: Metadata): void;
|
|
90
79
|
}
|
|
91
80
|
export declare function BillingServiceControllerMethods(): (constructor: Function) => void;
|
|
92
81
|
export declare const BILLING_SERVICE_NAME = "BillingService";
|
|
@@ -20,6 +20,7 @@ function BillingServiceControllerMethods() {
|
|
|
20
20
|
"createCheckoutSession",
|
|
21
21
|
"cancelGrant",
|
|
22
22
|
"findManyEntitlementGrant",
|
|
23
|
+
"getNodeCount",
|
|
23
24
|
];
|
|
24
25
|
for (const method of grpcMethods) {
|
|
25
26
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
@@ -87,6 +87,7 @@ export interface ProjectServiceClient {
|
|
|
87
87
|
delete(request: DeleteProjectRequest, metadata?: Metadata): Observable<Empty>;
|
|
88
88
|
update(request: UpdateProjectRequest, metadata?: Metadata): Observable<ProjectResponse>;
|
|
89
89
|
findFirst(request: FindFirstRequest, metadata?: Metadata): Observable<FindFirstResponse>;
|
|
90
|
+
getProjectCount(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
90
91
|
}
|
|
91
92
|
export interface ProjectServiceController {
|
|
92
93
|
create(request: CreateProjectRequest, metadata?: Metadata): Promise<ProjectResponse> | Observable<ProjectResponse> | ProjectResponse;
|
|
@@ -94,6 +95,7 @@ export interface ProjectServiceController {
|
|
|
94
95
|
delete(request: DeleteProjectRequest, metadata?: Metadata): void;
|
|
95
96
|
update(request: UpdateProjectRequest, metadata?: Metadata): Promise<ProjectResponse> | Observable<ProjectResponse> | ProjectResponse;
|
|
96
97
|
findFirst(request: FindFirstRequest, metadata?: Metadata): Promise<FindFirstResponse> | Observable<FindFirstResponse> | FindFirstResponse;
|
|
98
|
+
getProjectCount(request: Empty, metadata?: Metadata): void;
|
|
97
99
|
}
|
|
98
100
|
export declare function ProjectServiceControllerMethods(): (constructor: Function) => void;
|
|
99
101
|
export declare const PROJECT_SERVICE_NAME = "ProjectService";
|
|
@@ -13,7 +13,7 @@ exports.protobufPackage = "project";
|
|
|
13
13
|
exports.PROJECT_PACKAGE_NAME = "project";
|
|
14
14
|
function ProjectServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = ["create", "findMany", "delete", "update", "findFirst"];
|
|
16
|
+
const grpcMethods = ["create", "findMany", "delete", "update", "findFirst", "getProjectCount"];
|
|
17
17
|
for (const method of grpcMethods) {
|
|
18
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
19
|
(0, microservices_1.GrpcMethod)("ProjectService", method)(constructor.prototype[method], method, descriptor);
|
|
@@ -183,6 +183,7 @@ export interface WorkflowServiceClient {
|
|
|
183
183
|
updateWorkflowStatus(request: UpdateWorkflowStatusRequest, metadata?: Metadata): Observable<Empty>;
|
|
184
184
|
getNodeExecutionLog(request: GetNodeExecutionLogRequest, metadata?: Metadata): Observable<GetExecutionLogResponse>;
|
|
185
185
|
getWorkflowExecutionLog(request: GetWorkflowExecutionLogRequest, metadata?: Metadata): Observable<GetExecutionLogResponse>;
|
|
186
|
+
getWorkflowCount(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
186
187
|
}
|
|
187
188
|
export interface WorkflowServiceController {
|
|
188
189
|
create(request: CreateWorkflowRequest, metadata?: Metadata): Promise<WorkflowResponse> | Observable<WorkflowResponse> | WorkflowResponse;
|
|
@@ -199,6 +200,7 @@ export interface WorkflowServiceController {
|
|
|
199
200
|
updateWorkflowStatus(request: UpdateWorkflowStatusRequest, metadata?: Metadata): void;
|
|
200
201
|
getNodeExecutionLog(request: GetNodeExecutionLogRequest, metadata?: Metadata): Promise<GetExecutionLogResponse> | Observable<GetExecutionLogResponse> | GetExecutionLogResponse;
|
|
201
202
|
getWorkflowExecutionLog(request: GetWorkflowExecutionLogRequest, metadata?: Metadata): Promise<GetExecutionLogResponse> | Observable<GetExecutionLogResponse> | GetExecutionLogResponse;
|
|
203
|
+
getWorkflowCount(request: Empty, metadata?: Metadata): void;
|
|
202
204
|
}
|
|
203
205
|
export declare function WorkflowServiceControllerMethods(): (constructor: Function) => void;
|
|
204
206
|
export declare const WORKFLOW_SERVICE_NAME = "WorkflowService";
|
|
@@ -36,6 +36,7 @@ function WorkflowServiceControllerMethods() {
|
|
|
36
36
|
"updateWorkflowStatus",
|
|
37
37
|
"getNodeExecutionLog",
|
|
38
38
|
"getWorkflowExecutionLog",
|
|
39
|
+
"getWorkflowCount",
|
|
39
40
|
];
|
|
40
41
|
for (const method of grpcMethods) {
|
|
41
42
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
package/proto/billing.proto
CHANGED
|
@@ -4,27 +4,14 @@ import "google/protobuf/empty.proto";
|
|
|
4
4
|
package billing;
|
|
5
5
|
|
|
6
6
|
service BillingService {
|
|
7
|
-
rpc AssignWelcomeGrant(
|
|
8
|
-
rpc CheckQuota(
|
|
9
|
-
rpc GetBillingStatus(
|
|
7
|
+
rpc AssignWelcomeGrant(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
8
|
+
rpc CheckQuota(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
9
|
+
rpc GetBillingStatus(google.protobuf.Empty) returns (GetBillingStatusResponse);
|
|
10
10
|
rpc FindManyPlan (google.protobuf.Empty) returns (FindManyPlanResponse);
|
|
11
11
|
rpc CreateCheckoutSession(CreateCheckoutSessionRequest) returns (CreateCheckoutSessionResponse);
|
|
12
12
|
rpc CancelGrant(CancelGrantRequest) returns (google.protobuf.Empty);
|
|
13
13
|
rpc FindManyEntitlementGrant(FindManyEntitlementGrantRequest) returns (FindManyEntitlementGrantResponse);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
message AssignWelcomeGrantRequest {
|
|
17
|
-
string companyId = 1;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
message CheckQuotaRequest {
|
|
21
|
-
string companyId = 1;
|
|
22
|
-
string workflowId = 2;
|
|
23
|
-
string nodeId = 3;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
message GetBillingStatusRequest {
|
|
27
|
-
string companyId = 1;
|
|
14
|
+
rpc GetNodeCount(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
28
15
|
}
|
|
29
16
|
|
|
30
17
|
message GetBillingStatusResponse {
|
|
@@ -58,10 +45,9 @@ message PlanInfo {
|
|
|
58
45
|
}
|
|
59
46
|
|
|
60
47
|
message CreateCheckoutSessionRequest {
|
|
61
|
-
string
|
|
62
|
-
string
|
|
63
|
-
string
|
|
64
|
-
string cancelUrl = 4;
|
|
48
|
+
string planSlug = 1;
|
|
49
|
+
string successUrl = 2;
|
|
50
|
+
string cancelUrl = 3;
|
|
65
51
|
}
|
|
66
52
|
|
|
67
53
|
message CreateCheckoutSessionResponse {
|
|
@@ -70,7 +56,6 @@ message CreateCheckoutSessionResponse {
|
|
|
70
56
|
|
|
71
57
|
message CancelGrantRequest {
|
|
72
58
|
string grantId = 1;
|
|
73
|
-
string companyId = 2;
|
|
74
59
|
}
|
|
75
60
|
|
|
76
61
|
message FindManyEntitlementGrantRequest {
|
package/proto/project.proto
CHANGED
|
@@ -10,6 +10,7 @@ service ProjectService {
|
|
|
10
10
|
rpc Delete (DeleteProjectRequest) returns (google.protobuf.Empty);
|
|
11
11
|
rpc Update (UpdateProjectRequest) returns (ProjectResponse);
|
|
12
12
|
rpc FindFirst (FindFirstRequest) returns (FindFirstResponse);
|
|
13
|
+
rpc GetProjectCount(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
service EnvironmentService {
|
package/proto/workflow.proto
CHANGED
|
@@ -20,6 +20,7 @@ service WorkflowService {
|
|
|
20
20
|
rpc UpdateWorkflowStatus (UpdateWorkflowStatusRequest) returns (google.protobuf.Empty);
|
|
21
21
|
rpc GetNodeExecutionLog(GetNodeExecutionLogRequest) returns (GetExecutionLogResponse);
|
|
22
22
|
rpc GetWorkflowExecutionLog(GetWorkflowExecutionLogRequest) returns (GetExecutionLogResponse);
|
|
23
|
+
rpc GetWorkflowCount(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
message CreateWorkflowRequest {
|
package/src/generated/billing.ts
CHANGED
|
@@ -12,20 +12,6 @@ import { Empty } from "./google/protobuf/empty";
|
|
|
12
12
|
|
|
13
13
|
export const protobufPackage = "billing";
|
|
14
14
|
|
|
15
|
-
export interface AssignWelcomeGrantRequest {
|
|
16
|
-
companyId: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface CheckQuotaRequest {
|
|
20
|
-
companyId: string;
|
|
21
|
-
workflowId: string;
|
|
22
|
-
nodeId: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface GetBillingStatusRequest {
|
|
26
|
-
companyId: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
15
|
export interface GetBillingStatusResponse {
|
|
30
16
|
totalAllowance: number;
|
|
31
17
|
used: number;
|
|
@@ -57,7 +43,6 @@ export interface PlanInfo {
|
|
|
57
43
|
}
|
|
58
44
|
|
|
59
45
|
export interface CreateCheckoutSessionRequest {
|
|
60
|
-
companyId: string;
|
|
61
46
|
planSlug: string;
|
|
62
47
|
successUrl: string;
|
|
63
48
|
cancelUrl: string;
|
|
@@ -69,7 +54,6 @@ export interface CreateCheckoutSessionResponse {
|
|
|
69
54
|
|
|
70
55
|
export interface CancelGrantRequest {
|
|
71
56
|
grantId: string;
|
|
72
|
-
companyId: string;
|
|
73
57
|
}
|
|
74
58
|
|
|
75
59
|
export interface FindManyEntitlementGrantRequest {
|
|
@@ -95,11 +79,11 @@ export interface EntitlementGrantInfo {
|
|
|
95
79
|
export const BILLING_PACKAGE_NAME = "billing";
|
|
96
80
|
|
|
97
81
|
export interface BillingServiceClient {
|
|
98
|
-
assignWelcomeGrant(request:
|
|
82
|
+
assignWelcomeGrant(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
99
83
|
|
|
100
|
-
checkQuota(request:
|
|
84
|
+
checkQuota(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
101
85
|
|
|
102
|
-
getBillingStatus(request:
|
|
86
|
+
getBillingStatus(request: Empty, metadata?: Metadata): Observable<GetBillingStatusResponse>;
|
|
103
87
|
|
|
104
88
|
findManyPlan(request: Empty, metadata?: Metadata): Observable<FindManyPlanResponse>;
|
|
105
89
|
|
|
@@ -114,15 +98,17 @@ export interface BillingServiceClient {
|
|
|
114
98
|
request: FindManyEntitlementGrantRequest,
|
|
115
99
|
metadata?: Metadata,
|
|
116
100
|
): Observable<FindManyEntitlementGrantResponse>;
|
|
101
|
+
|
|
102
|
+
getNodeCount(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
117
103
|
}
|
|
118
104
|
|
|
119
105
|
export interface BillingServiceController {
|
|
120
|
-
assignWelcomeGrant(request:
|
|
106
|
+
assignWelcomeGrant(request: Empty, metadata?: Metadata): void;
|
|
121
107
|
|
|
122
|
-
checkQuota(request:
|
|
108
|
+
checkQuota(request: Empty, metadata?: Metadata): void;
|
|
123
109
|
|
|
124
110
|
getBillingStatus(
|
|
125
|
-
request:
|
|
111
|
+
request: Empty,
|
|
126
112
|
metadata?: Metadata,
|
|
127
113
|
): Promise<GetBillingStatusResponse> | Observable<GetBillingStatusResponse> | GetBillingStatusResponse;
|
|
128
114
|
|
|
@@ -145,6 +131,8 @@ export interface BillingServiceController {
|
|
|
145
131
|
| Promise<FindManyEntitlementGrantResponse>
|
|
146
132
|
| Observable<FindManyEntitlementGrantResponse>
|
|
147
133
|
| FindManyEntitlementGrantResponse;
|
|
134
|
+
|
|
135
|
+
getNodeCount(request: Empty, metadata?: Metadata): void;
|
|
148
136
|
}
|
|
149
137
|
|
|
150
138
|
export function BillingServiceControllerMethods() {
|
|
@@ -157,6 +145,7 @@ export function BillingServiceControllerMethods() {
|
|
|
157
145
|
"createCheckoutSession",
|
|
158
146
|
"cancelGrant",
|
|
159
147
|
"findManyEntitlementGrant",
|
|
148
|
+
"getNodeCount",
|
|
160
149
|
];
|
|
161
150
|
for (const method of grpcMethods) {
|
|
162
151
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/src/generated/project.ts
CHANGED
|
@@ -120,6 +120,8 @@ export interface ProjectServiceClient {
|
|
|
120
120
|
update(request: UpdateProjectRequest, metadata?: Metadata): Observable<ProjectResponse>;
|
|
121
121
|
|
|
122
122
|
findFirst(request: FindFirstRequest, metadata?: Metadata): Observable<FindFirstResponse>;
|
|
123
|
+
|
|
124
|
+
getProjectCount(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
export interface ProjectServiceController {
|
|
@@ -144,11 +146,13 @@ export interface ProjectServiceController {
|
|
|
144
146
|
request: FindFirstRequest,
|
|
145
147
|
metadata?: Metadata,
|
|
146
148
|
): Promise<FindFirstResponse> | Observable<FindFirstResponse> | FindFirstResponse;
|
|
149
|
+
|
|
150
|
+
getProjectCount(request: Empty, metadata?: Metadata): void;
|
|
147
151
|
}
|
|
148
152
|
|
|
149
153
|
export function ProjectServiceControllerMethods() {
|
|
150
154
|
return function (constructor: Function) {
|
|
151
|
-
const grpcMethods: string[] = ["create", "findMany", "delete", "update", "findFirst"];
|
|
155
|
+
const grpcMethods: string[] = ["create", "findMany", "delete", "update", "findFirst", "getProjectCount"];
|
|
152
156
|
for (const method of grpcMethods) {
|
|
153
157
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
154
158
|
GrpcMethod("ProjectService", method)(constructor.prototype[method], method, descriptor);
|
|
@@ -217,6 +217,8 @@ export interface WorkflowServiceClient {
|
|
|
217
217
|
request: GetWorkflowExecutionLogRequest,
|
|
218
218
|
metadata?: Metadata,
|
|
219
219
|
): Observable<GetExecutionLogResponse>;
|
|
220
|
+
|
|
221
|
+
getWorkflowCount(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
220
222
|
}
|
|
221
223
|
|
|
222
224
|
export interface WorkflowServiceController {
|
|
@@ -277,6 +279,8 @@ export interface WorkflowServiceController {
|
|
|
277
279
|
request: GetWorkflowExecutionLogRequest,
|
|
278
280
|
metadata?: Metadata,
|
|
279
281
|
): Promise<GetExecutionLogResponse> | Observable<GetExecutionLogResponse> | GetExecutionLogResponse;
|
|
282
|
+
|
|
283
|
+
getWorkflowCount(request: Empty, metadata?: Metadata): void;
|
|
280
284
|
}
|
|
281
285
|
|
|
282
286
|
export function WorkflowServiceControllerMethods() {
|
|
@@ -296,6 +300,7 @@ export function WorkflowServiceControllerMethods() {
|
|
|
296
300
|
"updateWorkflowStatus",
|
|
297
301
|
"getNodeExecutionLog",
|
|
298
302
|
"getWorkflowExecutionLog",
|
|
303
|
+
"getWorkflowCount",
|
|
299
304
|
];
|
|
300
305
|
for (const method of grpcMethods) {
|
|
301
306
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|