@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 CHANGED
@@ -52,7 +52,7 @@ export interface ConfirmEmailChangeResponse {
52
52
 
53
53
  /** Phone */
54
54
  export interface InitPhoneChangeRequest {
55
- email: string;
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
- email: string;
64
+ phone: string;
65
65
  code: string;
66
66
  userId: string;
67
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@org-flemycinema/contracts",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,59 +17,59 @@ service AccountService {
17
17
 
18
18
  // Account
19
19
  message GetAccountRequest {
20
- string id = 1;
20
+ string id = 1;
21
21
  }
22
22
 
23
23
  message GetAccountRespose {
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;
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
- string email = 1;
35
- string user_id = 2;
34
+ string email = 1;
35
+ string user_id = 2;
36
36
  }
37
37
 
38
38
  message InitEmailChangeResponse {
39
- bool ok = 1;
39
+ bool ok = 1;
40
40
  }
41
41
 
42
42
  message ConfirmEmailChangeRequest {
43
- string email = 1;
44
- string code = 2;
45
- string user_id = 3;
43
+ string email = 1;
44
+ string code = 2;
45
+ string user_id = 3;
46
46
  }
47
47
 
48
48
  message ConfirmEmailChangeResponse {
49
- bool ok = 1;
49
+ bool ok = 1;
50
50
  }
51
51
 
52
52
  // Phone
53
53
  message InitPhoneChangeRequest {
54
- string email = 1;
55
- string user_id = 2;
54
+ string phone = 1;
55
+ string user_id = 2;
56
56
  }
57
57
 
58
58
  message InitPhoneChangeResponse {
59
- bool ok = 1;
59
+ bool ok = 1;
60
60
  }
61
61
 
62
62
  message ConfirmPhoneChangeRequest {
63
- string email = 1;
64
- string code = 2;
65
- string user_id = 3;
63
+ string phone = 1;
64
+ string code = 2;
65
+ string user_id = 3;
66
66
  }
67
67
 
68
68
  message ConfirmPhoneChangeResponse {
69
- bool ok = 1;
69
+ bool ok = 1;
70
70
  }
71
71
 
72
72
  enum Role {
73
- USER = 0;
74
- ADMIN = 1;
73
+ USER = 0;
74
+ ADMIN = 1;
75
75
  }