@wenlarge/communication 1.3.2 → 1.3.4

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.
@@ -14,7 +14,7 @@ export interface RegisterRequest {
14
14
  name: string;
15
15
  email: string;
16
16
  password: string;
17
- phoneNumber?: string | undefined;
17
+ gsm: string;
18
18
  }
19
19
  export interface GetMeRequest {
20
20
  jwt: string;
@@ -37,6 +37,13 @@ export interface InviteToCompanyResponse {
37
37
  companyId: string;
38
38
  email: string;
39
39
  }
40
+ export interface UpdateUserRequest {
41
+ userId: string;
42
+ name: string;
43
+ email: string;
44
+ gsm: string;
45
+ password: string;
46
+ }
40
47
  export interface UpdateInviteStatusRequest {
41
48
  inviteId: string;
42
49
  userId: string;
@@ -53,6 +60,7 @@ export interface GetMeResponse {
53
60
  createdAt: string;
54
61
  updatedAt: string;
55
62
  companyUsersOnUser: CompanyUser[];
63
+ gsm: string;
56
64
  }
57
65
  export interface GetCompanyUsersRequest {
58
66
  companyId: string;
@@ -63,6 +71,7 @@ export interface CompanyUserDetail {
63
71
  userEmail: string;
64
72
  joinedAt: string;
65
73
  isOwner: boolean;
74
+ gsm: string;
66
75
  }
67
76
  export interface GetCompanyUsersResponse {
68
77
  users: CompanyUserDetail[];
@@ -87,6 +96,7 @@ export interface AuthServiceClient {
87
96
  register(request: RegisterRequest, metadata?: Metadata): Observable<Empty>;
88
97
  getMe(request: GetMeRequest, metadata?: Metadata): Observable<GetMeResponse>;
89
98
  inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): Observable<InviteToCompanyResponse>;
99
+ updateUser(request: UpdateUserRequest, metadata?: Metadata): Observable<Empty>;
90
100
  updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): Observable<UpdateInviteStatusResponse>;
91
101
  getCompanyUsers(request: GetCompanyUsersRequest, metadata?: Metadata): Observable<GetCompanyUsersResponse>;
92
102
  removeUserFromCompany(request: RemoveUserFromCompanyRequest, metadata?: Metadata): Observable<Empty>;
@@ -99,6 +109,7 @@ export interface AuthServiceController {
99
109
  register(request: RegisterRequest, metadata?: Metadata): void;
100
110
  getMe(request: GetMeRequest, metadata?: Metadata): Promise<GetMeResponse> | Observable<GetMeResponse> | GetMeResponse;
101
111
  inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): Promise<InviteToCompanyResponse> | Observable<InviteToCompanyResponse> | InviteToCompanyResponse;
112
+ updateUser(request: UpdateUserRequest, metadata?: Metadata): void;
102
113
  updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): Promise<UpdateInviteStatusResponse> | Observable<UpdateInviteStatusResponse> | UpdateInviteStatusResponse;
103
114
  getCompanyUsers(request: GetCompanyUsersRequest, metadata?: Metadata): Promise<GetCompanyUsersResponse> | Observable<GetCompanyUsersResponse> | GetCompanyUsersResponse;
104
115
  removeUserFromCompany(request: RemoveUserFromCompanyRequest, metadata?: Metadata): void;
@@ -17,6 +17,7 @@ function AuthServiceControllerMethods() {
17
17
  "register",
18
18
  "getMe",
19
19
  "inviteToCompany",
20
+ "updateUser",
20
21
  "updateInviteStatus",
21
22
  "getCompanyUsers",
22
23
  "removeUserFromCompany",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenlarge/communication",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Shared gRPC proto interfaces and generated clients for Wenlarge microservices.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/proto/auth.proto CHANGED
@@ -9,6 +9,7 @@ service AuthService {
9
9
  rpc Register (RegisterRequest) returns (google.protobuf.Empty);
10
10
  rpc GetMe (GetMeRequest) returns (GetMeResponse);
11
11
  rpc InviteToCompany (InviteToCompanyRequest) returns (InviteToCompanyResponse);
12
+ rpc UpdateUser (UpdateUserRequest) returns (google.protobuf.Empty);
12
13
  rpc UpdateInviteStatus (UpdateInviteStatusRequest) returns (UpdateInviteStatusResponse);
13
14
  rpc GetCompanyUsers (GetCompanyUsersRequest) returns (GetCompanyUsersResponse);
14
15
  rpc RemoveUserFromCompany (RemoveUserFromCompanyRequest) returns (google.protobuf.Empty);
@@ -31,7 +32,7 @@ message RegisterRequest {
31
32
  string name = 1;
32
33
  string email = 2;
33
34
  string password = 3;
34
- optional string phoneNumber = 4;
35
+ string gsm = 4;
35
36
  }
36
37
 
37
38
  message GetMeRequest {
@@ -60,6 +61,14 @@ message InviteToCompanyResponse{
60
61
  string email = 3;
61
62
  }
62
63
 
64
+ message UpdateUserRequest {
65
+ string userId = 1;
66
+ string name = 2;
67
+ string email = 3;
68
+ string gsm = 4;
69
+ string password = 5;
70
+ }
71
+
63
72
  message UpdateInviteStatusRequest{
64
73
  string inviteId = 1;
65
74
  string userId =2;
@@ -78,6 +87,7 @@ message GetMeResponse {
78
87
  string createdAt = 4;
79
88
  string updatedAt = 5;
80
89
  repeated CompanyUser companyUsersOnUser = 6;
90
+ string gsm = 7;
81
91
  }
82
92
 
83
93
  message GetCompanyUsersRequest {
@@ -90,6 +100,7 @@ message CompanyUserDetail {
90
100
  string userEmail = 3;
91
101
  string joinedAt = 4;
92
102
  bool isOwner = 5;
103
+ string gsm = 6;
93
104
  }
94
105
 
95
106
  message GetCompanyUsersResponse {
@@ -26,7 +26,7 @@ export interface RegisterRequest {
26
26
  name: string;
27
27
  email: string;
28
28
  password: string;
29
- phoneNumber?: string | undefined;
29
+ gsm: string;
30
30
  }
31
31
 
32
32
  export interface GetMeRequest {
@@ -55,6 +55,14 @@ export interface InviteToCompanyResponse {
55
55
  email: string;
56
56
  }
57
57
 
58
+ export interface UpdateUserRequest {
59
+ userId: string;
60
+ name: string;
61
+ email: string;
62
+ gsm: string;
63
+ password: string;
64
+ }
65
+
58
66
  export interface UpdateInviteStatusRequest {
59
67
  inviteId: string;
60
68
  userId: string;
@@ -73,6 +81,7 @@ export interface GetMeResponse {
73
81
  createdAt: string;
74
82
  updatedAt: string;
75
83
  companyUsersOnUser: CompanyUser[];
84
+ gsm: string;
76
85
  }
77
86
 
78
87
  export interface GetCompanyUsersRequest {
@@ -85,6 +94,7 @@ export interface CompanyUserDetail {
85
94
  userEmail: string;
86
95
  joinedAt: string;
87
96
  isOwner: boolean;
97
+ gsm: string;
88
98
  }
89
99
 
90
100
  export interface GetCompanyUsersResponse {
@@ -120,6 +130,8 @@ export interface AuthServiceClient {
120
130
 
121
131
  inviteToCompany(request: InviteToCompanyRequest, metadata?: Metadata): Observable<InviteToCompanyResponse>;
122
132
 
133
+ updateUser(request: UpdateUserRequest, metadata?: Metadata): Observable<Empty>;
134
+
123
135
  updateInviteStatus(request: UpdateInviteStatusRequest, metadata?: Metadata): Observable<UpdateInviteStatusResponse>;
124
136
 
125
137
  getCompanyUsers(request: GetCompanyUsersRequest, metadata?: Metadata): Observable<GetCompanyUsersResponse>;
@@ -145,6 +157,8 @@ export interface AuthServiceController {
145
157
  metadata?: Metadata,
146
158
  ): Promise<InviteToCompanyResponse> | Observable<InviteToCompanyResponse> | InviteToCompanyResponse;
147
159
 
160
+ updateUser(request: UpdateUserRequest, metadata?: Metadata): void;
161
+
148
162
  updateInviteStatus(
149
163
  request: UpdateInviteStatusRequest,
150
164
  metadata?: Metadata,
@@ -174,6 +188,7 @@ export function AuthServiceControllerMethods() {
174
188
  "register",
175
189
  "getMe",
176
190
  "inviteToCompany",
191
+ "updateUser",
177
192
  "updateInviteStatus",
178
193
  "getCompanyUsers",
179
194
  "removeUserFromCompany",