@org-flemycinema/contracts 1.0.6 → 1.0.7
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 +2 -2
- package/package.json +1 -1
- package/proto/account.proto +23 -23
package/gen/account.ts
CHANGED
|
@@ -52,7 +52,7 @@ export interface ConfirmEmailChangeResponse {
|
|
|
52
52
|
|
|
53
53
|
/** Phone */
|
|
54
54
|
export interface InitPhoneChangeRequest {
|
|
55
|
-
|
|
55
|
+
phone: string;
|
|
56
56
|
userId: string;
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -61,7 +61,7 @@ export interface InitPhoneChangeResponse {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export interface ConfirmPhoneChangeRequest {
|
|
64
|
-
|
|
64
|
+
phone: string;
|
|
65
65
|
code: string;
|
|
66
66
|
userId: string;
|
|
67
67
|
}
|
package/package.json
CHANGED
package/proto/account.proto
CHANGED
|
@@ -17,59 +17,59 @@ service AccountService {
|
|
|
17
17
|
|
|
18
18
|
// Account
|
|
19
19
|
message GetAccountRequest {
|
|
20
|
-
|
|
20
|
+
string id = 1;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
message GetAccountRespose {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
string id = 1;
|
|
25
|
+
string phone = 2;
|
|
26
|
+
string email = 3;
|
|
27
|
+
bool is_phone_verified = 4;
|
|
28
|
+
bool is_email_verified = 5;
|
|
29
|
+
Role role = 6;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
// Email
|
|
33
33
|
message InitEmailChangeRequest {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
string email = 1;
|
|
35
|
+
string user_id = 2;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
message InitEmailChangeResponse {
|
|
39
|
-
|
|
39
|
+
bool ok = 1;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
message ConfirmEmailChangeRequest {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
string email = 1;
|
|
44
|
+
string code = 2;
|
|
45
|
+
string user_id = 3;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
message ConfirmEmailChangeResponse {
|
|
49
|
-
|
|
49
|
+
bool ok = 1;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// Phone
|
|
53
53
|
message InitPhoneChangeRequest {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
string phone = 1;
|
|
55
|
+
string user_id = 2;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
message InitPhoneChangeResponse {
|
|
59
|
-
|
|
59
|
+
bool ok = 1;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
message ConfirmPhoneChangeRequest {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
string phone = 1;
|
|
64
|
+
string code = 2;
|
|
65
|
+
string user_id = 3;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
message ConfirmPhoneChangeResponse {
|
|
69
|
-
|
|
69
|
+
bool ok = 1;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
enum Role {
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
USER = 0;
|
|
74
|
+
ADMIN = 1;
|
|
75
75
|
}
|