@candesk/contracts 6.21.0 → 6.22.0

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.
@@ -129,6 +129,14 @@ export interface SetStaffActiveRequest {
129
129
  export interface SetStaffActiveResponse {
130
130
  account: StaffAccount | undefined;
131
131
  }
132
+ export interface ChangeStaffEmailRequest {
133
+ id: string;
134
+ email: string;
135
+ adminId: string;
136
+ }
137
+ export interface ChangeStaffEmailResponse {
138
+ account: StaffAccount | undefined;
139
+ }
132
140
  export interface StaffAccount {
133
141
  id: string;
134
142
  email: string;
@@ -153,4 +161,5 @@ export interface AccountService {
153
161
  deleteStaffAccount(request: DeleteStaffAccountRequest): Promise<DeleteStaffAccountResponse>;
154
162
  changeStaffRole(request: ChangeStaffRoleRequest): Promise<ChangeStaffRoleResponse>;
155
163
  setStaffActive(request: SetStaffActiveRequest): Promise<SetStaffActiveResponse>;
164
+ changeStaffEmail(request: ChangeStaffEmailRequest): Promise<ChangeStaffEmailResponse>;
156
165
  }
@@ -130,6 +130,14 @@ export interface SetStaffActiveRequest {
130
130
  export interface SetStaffActiveResponse {
131
131
  account: StaffAccount | undefined;
132
132
  }
133
+ export interface ChangeStaffEmailRequest {
134
+ id: string;
135
+ email: string;
136
+ adminId: string;
137
+ }
138
+ export interface ChangeStaffEmailResponse {
139
+ account: StaffAccount | undefined;
140
+ }
133
141
  export interface StaffAccount {
134
142
  id: string;
135
143
  email: string;
@@ -155,6 +163,7 @@ export interface AccountServiceClient {
155
163
  deleteStaffAccount(request: DeleteStaffAccountRequest): Observable<DeleteStaffAccountResponse>;
156
164
  changeStaffRole(request: ChangeStaffRoleRequest): Observable<ChangeStaffRoleResponse>;
157
165
  setStaffActive(request: SetStaffActiveRequest): Observable<SetStaffActiveResponse>;
166
+ changeStaffEmail(request: ChangeStaffEmailRequest): Observable<ChangeStaffEmailResponse>;
158
167
  }
159
168
  export interface AccountServiceController {
160
169
  getAccount(request: GetAccountRequest): Promise<GetAccountResponse> | Observable<GetAccountResponse> | GetAccountResponse;
@@ -173,6 +182,7 @@ export interface AccountServiceController {
173
182
  deleteStaffAccount(request: DeleteStaffAccountRequest): Promise<DeleteStaffAccountResponse> | Observable<DeleteStaffAccountResponse> | DeleteStaffAccountResponse;
174
183
  changeStaffRole(request: ChangeStaffRoleRequest): Promise<ChangeStaffRoleResponse> | Observable<ChangeStaffRoleResponse> | ChangeStaffRoleResponse;
175
184
  setStaffActive(request: SetStaffActiveRequest): Promise<SetStaffActiveResponse> | Observable<SetStaffActiveResponse> | SetStaffActiveResponse;
185
+ changeStaffEmail(request: ChangeStaffEmailRequest): Promise<ChangeStaffEmailResponse> | Observable<ChangeStaffEmailResponse> | ChangeStaffEmailResponse;
176
186
  }
177
187
  export declare function AccountServiceControllerMethods(): (constructor: Function) => void;
178
188
  export declare const ACCOUNT_SERVICE_NAME = "AccountService";
@@ -40,6 +40,7 @@ function AccountServiceControllerMethods() {
40
40
  "deleteStaffAccount",
41
41
  "changeStaffRole",
42
42
  "setStaffActive",
43
+ "changeStaffEmail",
43
44
  ];
44
45
  for (const method of grpcMethods) {
45
46
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.21.0",
3
+ "version": "6.22.0",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -24,6 +24,7 @@ service AccountService {
24
24
  rpc DeleteStaffAccount(DeleteStaffAccountRequest) returns (DeleteStaffAccountResponse);
25
25
  rpc ChangeStaffRole(ChangeStaffRoleRequest) returns (ChangeStaffRoleResponse);
26
26
  rpc SetStaffActive(SetStaffActiveRequest) returns (SetStaffActiveResponse);
27
+ rpc ChangeStaffEmail(ChangeStaffEmailRequest) returns (ChangeStaffEmailResponse);
27
28
  }
28
29
 
29
30
  message GetAccountRequest {
@@ -172,6 +173,16 @@ message SetStaffActiveResponse {
172
173
  StaffAccount account = 1;
173
174
  }
174
175
 
176
+ message ChangeStaffEmailRequest {
177
+ string id = 1;
178
+ string email = 2;
179
+ string admin_id = 3;
180
+ }
181
+
182
+ message ChangeStaffEmailResponse {
183
+ StaffAccount account = 1;
184
+ }
185
+
175
186
  message StaffAccount {
176
187
  string id = 1;
177
188
  string email = 2;