@taskora-uni/contracts 2.1.0 → 3.0.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.
- package/generated/auth.ts +7 -10
- package/package.json +1 -1
- package/proto/auth.proto +3 -3
package/generated/auth.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface StartRegistrationResponse {
|
|
|
39
39
|
id: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export interface
|
|
42
|
+
export interface CompleteRegistrationRequest {
|
|
43
43
|
id: string;
|
|
44
44
|
code: string;
|
|
45
45
|
token: string;
|
|
@@ -47,7 +47,7 @@ export interface ConfirmRegistrationOtpRequest {
|
|
|
47
47
|
lastName: string;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export interface
|
|
50
|
+
export interface CompleteRegistrationResponse {
|
|
51
51
|
accessToken: string;
|
|
52
52
|
refreshToken: string;
|
|
53
53
|
}
|
|
@@ -61,7 +61,7 @@ export interface AuthServiceClient {
|
|
|
61
61
|
|
|
62
62
|
startRegistration(request: StartRegistrationRequest): Observable<StartRegistrationResponse>;
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
completeRegistration(request: CompleteRegistrationRequest): Observable<CompleteRegistrationResponse>;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export interface AuthServiceController {
|
|
@@ -75,17 +75,14 @@ export interface AuthServiceController {
|
|
|
75
75
|
request: StartRegistrationRequest,
|
|
76
76
|
): Promise<StartRegistrationResponse> | Observable<StartRegistrationResponse> | StartRegistrationResponse;
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
request:
|
|
80
|
-
):
|
|
81
|
-
| Promise<ConfirmRegistrationOtpResponse>
|
|
82
|
-
| Observable<ConfirmRegistrationOtpResponse>
|
|
83
|
-
| ConfirmRegistrationOtpResponse;
|
|
78
|
+
completeRegistration(
|
|
79
|
+
request: CompleteRegistrationRequest,
|
|
80
|
+
): Promise<CompleteRegistrationResponse> | Observable<CompleteRegistrationResponse> | CompleteRegistrationResponse;
|
|
84
81
|
}
|
|
85
82
|
|
|
86
83
|
export function AuthServiceControllerMethods() {
|
|
87
84
|
return function (constructor: Function) {
|
|
88
|
-
const grpcMethods: string[] = ["login", "refreshTokens", "startRegistration", "
|
|
85
|
+
const grpcMethods: string[] = ["login", "refreshTokens", "startRegistration", "completeRegistration"];
|
|
89
86
|
for (const method of grpcMethods) {
|
|
90
87
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
91
88
|
GrpcMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
|
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -6,7 +6,7 @@ service AuthService {
|
|
|
6
6
|
rpc Login(LoginRequest) returns (LoginResponse);
|
|
7
7
|
rpc RefreshTokens(RefreshTokensRequest) returns (RefreshTokensResponse);
|
|
8
8
|
rpc StartRegistration(StartRegistrationRequest) returns (StartRegistrationResponse);
|
|
9
|
-
rpc
|
|
9
|
+
rpc CompleteRegistration(CompleteRegistrationRequest) returns (CompleteRegistrationResponse);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
message LoginRequest {
|
|
@@ -38,7 +38,7 @@ message StartRegistrationResponse {
|
|
|
38
38
|
string id = 1;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
message
|
|
41
|
+
message CompleteRegistrationRequest {
|
|
42
42
|
string id = 1;
|
|
43
43
|
string code = 2;
|
|
44
44
|
string token = 3;
|
|
@@ -46,7 +46,7 @@ message ConfirmRegistrationOtpRequest {
|
|
|
46
46
|
string last_name = 5;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
message
|
|
49
|
+
message CompleteRegistrationResponse {
|
|
50
50
|
string access_token = 1;
|
|
51
51
|
string refresh_token = 2;
|
|
52
52
|
}
|