chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -207,6 +207,15 @@ export interface UnblockIpResponse {
|
||||
message: string;
|
||||
}
|
||||
|
||||
/** Можно оставить пустым, так как нам не нужны входные данные */
|
||||
export interface SyncUsersToSearchRequest {
|
||||
}
|
||||
|
||||
export interface SyncUsersToSearchResponse {
|
||||
success: boolean;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
|
||||
|
||||
export interface AccountServiceClient {
|
||||
@@ -241,6 +250,8 @@ export interface AccountServiceClient {
|
||||
blockIp(request: BlockIpRequest, metadata?: Metadata): Observable<BlockIpResponse>;
|
||||
|
||||
unblockIp(request: UnblockIpRequest, metadata?: Metadata): Observable<UnblockIpResponse>;
|
||||
|
||||
syncUsersToSearch(request: SyncUsersToSearchRequest, metadata?: Metadata): Observable<SyncUsersToSearchResponse>;
|
||||
}
|
||||
|
||||
export interface AccountServiceController {
|
||||
@@ -323,6 +334,11 @@ export interface AccountServiceController {
|
||||
request: UnblockIpRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<UnblockIpResponse> | Observable<UnblockIpResponse> | UnblockIpResponse;
|
||||
|
||||
syncUsersToSearch(
|
||||
request: SyncUsersToSearchRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<SyncUsersToSearchResponse> | Observable<SyncUsersToSearchResponse> | SyncUsersToSearchResponse;
|
||||
}
|
||||
|
||||
export function AccountServiceControllerMethods() {
|
||||
@@ -344,6 +360,7 @@ export function AccountServiceControllerMethods() {
|
||||
"unblockUser",
|
||||
"blockIp",
|
||||
"unblockIp",
|
||||
"syncUsersToSearch",
|
||||
];
|
||||
for (const method of grpcMethods) {
|
||||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
||||
|
||||
Reference in New Issue
Block a user