chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -162,6 +162,50 @@ export interface RemovePinResponse {
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface BlockUserRequest {
|
||||
/** Кого блокируем */
|
||||
userId: string;
|
||||
/** Кто блокирует */
|
||||
adminId: string;
|
||||
reason?: string | undefined;
|
||||
}
|
||||
|
||||
export interface BlockUserResponse {
|
||||
success: boolean;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface UnblockUserRequest {
|
||||
userId: string;
|
||||
adminId: string;
|
||||
}
|
||||
|
||||
export interface UnblockUserResponse {
|
||||
success: boolean;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface BlockIpRequest {
|
||||
ipAddress: string;
|
||||
adminId: string;
|
||||
reason?: string | undefined;
|
||||
}
|
||||
|
||||
export interface BlockIpResponse {
|
||||
success: boolean;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface UnblockIpRequest {
|
||||
ipAddress: string;
|
||||
adminId: string;
|
||||
}
|
||||
|
||||
export interface UnblockIpResponse {
|
||||
success: boolean;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
|
||||
|
||||
export interface AccountServiceClient {
|
||||
@@ -188,6 +232,14 @@ export interface AccountServiceClient {
|
||||
getPinStatus(request: GetPinStatusRequest, metadata?: Metadata): Observable<GetPinStatusResponse>;
|
||||
|
||||
removePin(request: RemovePinRequest, metadata?: Metadata): Observable<RemovePinResponse>;
|
||||
|
||||
blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<BlockUserResponse>;
|
||||
|
||||
unblockUser(request: UnblockUserRequest, metadata?: Metadata): Observable<UnblockUserResponse>;
|
||||
|
||||
blockIp(request: BlockIpRequest, metadata?: Metadata): Observable<BlockIpResponse>;
|
||||
|
||||
unblockIp(request: UnblockIpRequest, metadata?: Metadata): Observable<UnblockIpResponse>;
|
||||
}
|
||||
|
||||
export interface AccountServiceController {
|
||||
@@ -250,6 +302,26 @@ export interface AccountServiceController {
|
||||
request: RemovePinRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<RemovePinResponse> | Observable<RemovePinResponse> | RemovePinResponse;
|
||||
|
||||
blockUser(
|
||||
request: BlockUserRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<BlockUserResponse> | Observable<BlockUserResponse> | BlockUserResponse;
|
||||
|
||||
unblockUser(
|
||||
request: UnblockUserRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<UnblockUserResponse> | Observable<UnblockUserResponse> | UnblockUserResponse;
|
||||
|
||||
blockIp(
|
||||
request: BlockIpRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<BlockIpResponse> | Observable<BlockIpResponse> | BlockIpResponse;
|
||||
|
||||
unblockIp(
|
||||
request: UnblockIpRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<UnblockIpResponse> | Observable<UnblockIpResponse> | UnblockIpResponse;
|
||||
}
|
||||
|
||||
export function AccountServiceControllerMethods() {
|
||||
@@ -267,6 +339,10 @@ export function AccountServiceControllerMethods() {
|
||||
"unlockPin",
|
||||
"getPinStatus",
|
||||
"removePin",
|
||||
"blockUser",
|
||||
"unblockUser",
|
||||
"blockIp",
|
||||
"unblockIp",
|
||||
];
|
||||
for (const method of grpcMethods) {
|
||||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
||||
|
||||
Reference in New Issue
Block a user