@dkcinema/contracts 1.0.12 → 1.0.14
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/output/auth.ts +5 -17
- package/package.json +1 -1
- package/protos/auth.proto +8 -18
package/output/auth.ts
CHANGED
|
@@ -10,26 +10,14 @@ import { Observable } from "rxjs";
|
|
|
10
10
|
|
|
11
11
|
export const protobufPackage = "auth.v1";
|
|
12
12
|
|
|
13
|
-
export interface UserRequest {
|
|
14
|
-
userId: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface UserResponse {
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
email: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface User {
|
|
24
|
-
}
|
|
25
|
-
|
|
26
13
|
export interface GetUserRequest {
|
|
27
|
-
/** или int64, или UUID */
|
|
28
14
|
userId: string;
|
|
29
15
|
}
|
|
30
16
|
|
|
31
17
|
export interface GetUserResponse {
|
|
32
|
-
|
|
18
|
+
id: string;
|
|
19
|
+
email?: string | undefined;
|
|
20
|
+
phone?: string | undefined;
|
|
33
21
|
}
|
|
34
22
|
|
|
35
23
|
export interface VerifyEmailOtpRequest {
|
|
@@ -81,7 +69,7 @@ export interface AuthServiceClient {
|
|
|
81
69
|
|
|
82
70
|
loginByEmail(request: LoginByEmailRequest): Observable<LoginByEmailResponse>;
|
|
83
71
|
|
|
84
|
-
getUser(request:
|
|
72
|
+
getUser(request: GetUserRequest): Observable<GetUserResponse>;
|
|
85
73
|
}
|
|
86
74
|
|
|
87
75
|
export interface AuthServiceController {
|
|
@@ -101,7 +89,7 @@ export interface AuthServiceController {
|
|
|
101
89
|
request: LoginByEmailRequest,
|
|
102
90
|
): Promise<LoginByEmailResponse> | Observable<LoginByEmailResponse> | LoginByEmailResponse;
|
|
103
91
|
|
|
104
|
-
getUser(request:
|
|
92
|
+
getUser(request: GetUserRequest): Promise<GetUserResponse> | Observable<GetUserResponse> | GetUserResponse;
|
|
105
93
|
}
|
|
106
94
|
|
|
107
95
|
export function AuthServiceControllerMethods() {
|
package/package.json
CHANGED
package/protos/auth.proto
CHANGED
|
@@ -10,31 +10,21 @@ service AuthService {
|
|
|
10
10
|
rpc VerifyPhoneOtp(VerifyPhoneOtpRequest) returns (VerifyOtpResponse);
|
|
11
11
|
|
|
12
12
|
rpc LoginByEmail (LoginByEmailRequest) returns (LoginByEmailResponse);
|
|
13
|
-
rpc GetUser (
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
message UserRequest {
|
|
17
|
-
string user_id = 1;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
message UserResponse {
|
|
21
|
-
string id = 1;
|
|
22
|
-
string name = 2;
|
|
23
|
-
string email = 3;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
message User {
|
|
27
|
-
|
|
13
|
+
rpc GetUser (GetUserRequest) returns (GetUserResponse);
|
|
28
14
|
}
|
|
29
15
|
|
|
30
16
|
message GetUserRequest {
|
|
31
|
-
string user_id = 1;
|
|
17
|
+
string user_id = 1;
|
|
32
18
|
}
|
|
33
19
|
|
|
34
20
|
message GetUserResponse {
|
|
35
|
-
|
|
21
|
+
string id = 1;
|
|
22
|
+
|
|
23
|
+
oneof contact {
|
|
24
|
+
string email = 2;
|
|
25
|
+
string phone = 3;
|
|
26
|
+
}
|
|
36
27
|
}
|
|
37
|
-
|
|
38
28
|
message VerifyEmailOtpRequest {
|
|
39
29
|
string code = 1;
|
|
40
30
|
string email = 2;
|