@shock-cinema/contracts 1.0.9 → 1.0.10
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/gen/account.ts +10 -10
- package/package.json +1 -1
- package/proto/account.proto +6 -6
package/gen/account.ts
CHANGED
|
@@ -38,13 +38,13 @@ export interface InitEmailChangeResponse {
|
|
|
38
38
|
ok: boolean;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export interface
|
|
41
|
+
export interface ConfirmEmailChangeRequest {
|
|
42
42
|
email: string;
|
|
43
43
|
code: string;
|
|
44
44
|
userId: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export interface
|
|
47
|
+
export interface ConfirmEmailChangeResponse {
|
|
48
48
|
ok: boolean;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -57,13 +57,13 @@ export interface InitPhoneChangeResponse {
|
|
|
57
57
|
ok: boolean;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export interface
|
|
60
|
+
export interface ConfirmPhoneChangeRequest {
|
|
61
61
|
phone: string;
|
|
62
62
|
code: string;
|
|
63
63
|
userId: string;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export interface
|
|
66
|
+
export interface ConfirmPhoneChangeResponse {
|
|
67
67
|
ok: boolean;
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -74,11 +74,11 @@ export interface AccountServiceClient {
|
|
|
74
74
|
|
|
75
75
|
initEmailChange(request: InitEmailChangeRequest): Observable<InitEmailChangeResponse>;
|
|
76
76
|
|
|
77
|
-
confirmEmailChange(request:
|
|
77
|
+
confirmEmailChange(request: ConfirmEmailChangeRequest): Observable<ConfirmEmailChangeResponse>;
|
|
78
78
|
|
|
79
79
|
initPhoneChange(request: InitPhoneChangeRequest): Observable<InitPhoneChangeResponse>;
|
|
80
80
|
|
|
81
|
-
confirmPhoneChange(request:
|
|
81
|
+
confirmPhoneChange(request: ConfirmPhoneChangeRequest): Observable<ConfirmPhoneChangeResponse>;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export interface AccountServiceController {
|
|
@@ -91,16 +91,16 @@ export interface AccountServiceController {
|
|
|
91
91
|
): Promise<InitEmailChangeResponse> | Observable<InitEmailChangeResponse> | InitEmailChangeResponse;
|
|
92
92
|
|
|
93
93
|
confirmEmailChange(
|
|
94
|
-
request:
|
|
95
|
-
): Promise<
|
|
94
|
+
request: ConfirmEmailChangeRequest,
|
|
95
|
+
): Promise<ConfirmEmailChangeResponse> | Observable<ConfirmEmailChangeResponse> | ConfirmEmailChangeResponse;
|
|
96
96
|
|
|
97
97
|
initPhoneChange(
|
|
98
98
|
request: InitPhoneChangeRequest,
|
|
99
99
|
): Promise<InitPhoneChangeResponse> | Observable<InitPhoneChangeResponse> | InitPhoneChangeResponse;
|
|
100
100
|
|
|
101
101
|
confirmPhoneChange(
|
|
102
|
-
request:
|
|
103
|
-
): Promise<
|
|
102
|
+
request: ConfirmPhoneChangeRequest,
|
|
103
|
+
): Promise<ConfirmPhoneChangeResponse> | Observable<ConfirmPhoneChangeResponse> | ConfirmPhoneChangeResponse;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
export function AccountServiceControllerMethods() {
|
package/package.json
CHANGED
package/proto/account.proto
CHANGED
|
@@ -6,10 +6,10 @@ service AccountService {
|
|
|
6
6
|
rpc GetAccount (GetAccountRequest) returns (GetAccountResponse);
|
|
7
7
|
|
|
8
8
|
rpc InitEmailChange (InitEmailChangeRequest) returns (InitEmailChangeResponse);
|
|
9
|
-
rpc ConfirmEmailChange (
|
|
9
|
+
rpc ConfirmEmailChange (ConfirmEmailChangeRequest) returns (ConfirmEmailChangeResponse);
|
|
10
10
|
|
|
11
11
|
rpc InitPhoneChange (InitPhoneChangeRequest) returns (InitPhoneChangeResponse);
|
|
12
|
-
rpc ConfirmPhoneChange (
|
|
12
|
+
rpc ConfirmPhoneChange (ConfirmPhoneChangeRequest) returns (ConfirmPhoneChangeResponse);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
message GetAccountRequest {
|
|
@@ -34,13 +34,13 @@ message InitEmailChangeResponse {
|
|
|
34
34
|
bool ok = 1;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
message
|
|
37
|
+
message ConfirmEmailChangeRequest {
|
|
38
38
|
string email = 1;
|
|
39
39
|
string code = 2;
|
|
40
40
|
string user_id = 3;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
message
|
|
43
|
+
message ConfirmEmailChangeResponse {
|
|
44
44
|
bool ok = 1;
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -53,13 +53,13 @@ message InitPhoneChangeResponse {
|
|
|
53
53
|
bool ok = 1;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
message
|
|
56
|
+
message ConfirmPhoneChangeRequest {
|
|
57
57
|
string phone = 1;
|
|
58
58
|
string code = 2;
|
|
59
59
|
string user_id = 3;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
message
|
|
62
|
+
message ConfirmPhoneChangeResponse {
|
|
63
63
|
bool ok = 1;
|
|
64
64
|
}
|
|
65
65
|
|