@wenlarge/communication 1.5.0 → 1.5.2
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/auth.d.ts
CHANGED
|
@@ -101,6 +101,9 @@ export interface Invite {
|
|
|
101
101
|
status: string;
|
|
102
102
|
createdAt: string;
|
|
103
103
|
}
|
|
104
|
+
export interface ReSendInviteRequest {
|
|
105
|
+
inviteId: string;
|
|
106
|
+
}
|
|
104
107
|
export declare const AUTH_PACKAGE_NAME = "auth";
|
|
105
108
|
export interface AuthServiceClient {
|
|
106
109
|
login(request: LoginRequest, metadata?: Metadata): Observable<LoginResponse>;
|
|
@@ -118,6 +121,7 @@ export interface AuthServiceClient {
|
|
|
118
121
|
updateCompany(request: UpdateCompanyRequest, metadata?: Metadata): Observable<Empty>;
|
|
119
122
|
leaveCompany(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
120
123
|
getInvites(request: GetInviteRequest, metadata?: Metadata): Observable<GetInviteResponse>;
|
|
124
|
+
reSendInvite(request: ReSendInviteRequest, metadata?: Metadata): Observable<Empty>;
|
|
121
125
|
}
|
|
122
126
|
export interface AuthServiceController {
|
|
123
127
|
login(request: LoginRequest, metadata?: Metadata): Promise<LoginResponse> | Observable<LoginResponse> | LoginResponse;
|
|
@@ -135,6 +139,7 @@ export interface AuthServiceController {
|
|
|
135
139
|
updateCompany(request: UpdateCompanyRequest, metadata?: Metadata): void;
|
|
136
140
|
leaveCompany(request: Empty, metadata?: Metadata): void;
|
|
137
141
|
getInvites(request: GetInviteRequest, metadata?: Metadata): Promise<GetInviteResponse> | Observable<GetInviteResponse> | GetInviteResponse;
|
|
142
|
+
reSendInvite(request: ReSendInviteRequest, metadata?: Metadata): void;
|
|
138
143
|
}
|
|
139
144
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
140
145
|
export declare const AUTH_SERVICE_NAME = "AuthService";
|
package/dist/generated/auth.js
CHANGED
|
@@ -32,12 +32,14 @@ export interface CreateCheckoutSessionRequest {
|
|
|
32
32
|
planSlug: string;
|
|
33
33
|
successUrl: string;
|
|
34
34
|
cancelUrl: string;
|
|
35
|
+
idempotencyKey: string;
|
|
35
36
|
}
|
|
36
37
|
export interface CreateCheckoutSessionResponse {
|
|
37
38
|
checkoutUrl: string;
|
|
38
39
|
}
|
|
39
40
|
export interface CancelGrantRequest {
|
|
40
41
|
grantId: string;
|
|
42
|
+
idempotencyKey: string;
|
|
41
43
|
}
|
|
42
44
|
export interface FindManyEntitlementGrantRequest {
|
|
43
45
|
skip: number;
|
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -20,6 +20,7 @@ service AuthService {
|
|
|
20
20
|
rpc UpdateCompany (UpdateCompanyRequest) returns (google.protobuf.Empty);
|
|
21
21
|
rpc LeaveCompany (google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
22
22
|
rpc GetInvites (GetInviteRequest) returns (GetInviteResponse);
|
|
23
|
+
rpc ReSendInvite (ReSendInviteRequest) returns (google.protobuf.Empty);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
message LoginRequest {
|
|
@@ -141,4 +142,8 @@ message Invite {
|
|
|
141
142
|
string email = 3;
|
|
142
143
|
string status = 4;
|
|
143
144
|
string createdAt = 5;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message ReSendInviteRequest {
|
|
148
|
+
string inviteId = 1;
|
|
144
149
|
}
|
package/proto/billing.proto
CHANGED
|
@@ -48,6 +48,7 @@ message CreateCheckoutSessionRequest {
|
|
|
48
48
|
string planSlug = 1;
|
|
49
49
|
string successUrl = 2;
|
|
50
50
|
string cancelUrl = 3;
|
|
51
|
+
string idempotencyKey = 4;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
message CreateCheckoutSessionResponse {
|
|
@@ -56,6 +57,7 @@ message CreateCheckoutSessionResponse {
|
|
|
56
57
|
|
|
57
58
|
message CancelGrantRequest {
|
|
58
59
|
string grantId = 1;
|
|
60
|
+
string idempotencyKey = 2;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
message FindManyEntitlementGrantRequest {
|
package/src/generated/auth.ts
CHANGED
|
@@ -133,6 +133,10 @@ export interface Invite {
|
|
|
133
133
|
createdAt: string;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
export interface ReSendInviteRequest {
|
|
137
|
+
inviteId: string;
|
|
138
|
+
}
|
|
139
|
+
|
|
136
140
|
export const AUTH_PACKAGE_NAME = "auth";
|
|
137
141
|
|
|
138
142
|
export interface AuthServiceClient {
|
|
@@ -165,6 +169,8 @@ export interface AuthServiceClient {
|
|
|
165
169
|
leaveCompany(request: Empty, metadata?: Metadata): Observable<Empty>;
|
|
166
170
|
|
|
167
171
|
getInvites(request: GetInviteRequest, metadata?: Metadata): Observable<GetInviteResponse>;
|
|
172
|
+
|
|
173
|
+
reSendInvite(request: ReSendInviteRequest, metadata?: Metadata): Observable<Empty>;
|
|
168
174
|
}
|
|
169
175
|
|
|
170
176
|
export interface AuthServiceController {
|
|
@@ -206,6 +212,8 @@ export interface AuthServiceController {
|
|
|
206
212
|
request: GetInviteRequest,
|
|
207
213
|
metadata?: Metadata,
|
|
208
214
|
): Promise<GetInviteResponse> | Observable<GetInviteResponse> | GetInviteResponse;
|
|
215
|
+
|
|
216
|
+
reSendInvite(request: ReSendInviteRequest, metadata?: Metadata): void;
|
|
209
217
|
}
|
|
210
218
|
|
|
211
219
|
export function AuthServiceControllerMethods() {
|
|
@@ -226,6 +234,7 @@ export function AuthServiceControllerMethods() {
|
|
|
226
234
|
"updateCompany",
|
|
227
235
|
"leaveCompany",
|
|
228
236
|
"getInvites",
|
|
237
|
+
"reSendInvite",
|
|
229
238
|
];
|
|
230
239
|
for (const method of grpcMethods) {
|
|
231
240
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/src/generated/billing.ts
CHANGED
|
@@ -46,6 +46,7 @@ export interface CreateCheckoutSessionRequest {
|
|
|
46
46
|
planSlug: string;
|
|
47
47
|
successUrl: string;
|
|
48
48
|
cancelUrl: string;
|
|
49
|
+
idempotencyKey: string;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
export interface CreateCheckoutSessionResponse {
|
|
@@ -54,6 +55,7 @@ export interface CreateCheckoutSessionResponse {
|
|
|
54
55
|
|
|
55
56
|
export interface CancelGrantRequest {
|
|
56
57
|
grantId: string;
|
|
58
|
+
idempotencyKey: string;
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
export interface FindManyEntitlementGrantRequest {
|