chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -49,6 +49,24 @@ export interface ChangePasswordResponse {
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface ChangeDataRequest {
|
||||
userId: string;
|
||||
sessionId: string;
|
||||
email?: string | undefined;
|
||||
phone?: string | undefined;
|
||||
fullName?: string | undefined;
|
||||
avatarUrl?: string | undefined;
|
||||
customStatusText?: string | undefined;
|
||||
customStatusEmoji?: string | undefined;
|
||||
timezone?: string | undefined;
|
||||
language?: string | undefined;
|
||||
}
|
||||
|
||||
export interface ChangeDataResponse {
|
||||
success: boolean;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface SetPinRequest {
|
||||
userId: string;
|
||||
sessionId: string;
|
||||
@@ -100,6 +118,8 @@ export interface AccountServiceClient {
|
||||
|
||||
changePassword(request: ChangePasswordRequest, metadata?: Metadata): Observable<ChangePasswordResponse>;
|
||||
|
||||
changeData(request: ChangeDataRequest, metadata?: Metadata): Observable<ChangeDataResponse>;
|
||||
|
||||
setPin(request: SetPinRequest, metadata?: Metadata): Observable<SetPinResponse>;
|
||||
|
||||
unlockPin(request: UnlockPinRequest, metadata?: Metadata): Observable<UnlockPinResponse>;
|
||||
@@ -120,6 +140,11 @@ export interface AccountServiceController {
|
||||
metadata?: Metadata,
|
||||
): Promise<ChangePasswordResponse> | Observable<ChangePasswordResponse> | ChangePasswordResponse;
|
||||
|
||||
changeData(
|
||||
request: ChangeDataRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<ChangeDataResponse> | Observable<ChangeDataResponse> | ChangeDataResponse;
|
||||
|
||||
setPin(
|
||||
request: SetPinRequest,
|
||||
metadata?: Metadata,
|
||||
@@ -143,7 +168,15 @@ export interface AccountServiceController {
|
||||
|
||||
export function AccountServiceControllerMethods() {
|
||||
return function (constructor: Function) {
|
||||
const grpcMethods: string[] = ["getAccount", "changePassword", "setPin", "unlockPin", "getPinStatus", "removePin"];
|
||||
const grpcMethods: string[] = [
|
||||
"getAccount",
|
||||
"changePassword",
|
||||
"changeData",
|
||||
"setPin",
|
||||
"unlockPin",
|
||||
"getPinStatus",
|
||||
"removePin",
|
||||
];
|
||||
for (const method of grpcMethods) {
|
||||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
||||
GrpcMethod("AccountService", method)(constructor.prototype[method], method, descriptor);
|
||||
|
||||
Reference in New Issue
Block a user