chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -142,6 +142,22 @@ export interface GetBlockedUsersResponse {
|
||||
blockedUsers: BlockedUserItem[];
|
||||
}
|
||||
|
||||
export interface SystemGetProfileBatchRequest {
|
||||
userIds: string[];
|
||||
}
|
||||
|
||||
export interface ProfileBasicItem {
|
||||
id: string;
|
||||
email?: string | undefined;
|
||||
phone?: string | undefined;
|
||||
fullName?: string | undefined;
|
||||
isPublic: boolean;
|
||||
}
|
||||
|
||||
export interface SystemGetProfileBatchResponse {
|
||||
profiles: ProfileBasicItem[];
|
||||
}
|
||||
|
||||
export const USERS_V1_PACKAGE_NAME = "users.v1";
|
||||
|
||||
export interface UsersServiceClient {
|
||||
@@ -166,6 +182,11 @@ export interface UsersServiceClient {
|
||||
addContact(request: AddContactRequest, metadata?: Metadata): Observable<AddContactResponse>;
|
||||
|
||||
getContacts(request: GetContactsRequest, metadata?: Metadata): Observable<GetContactsResponse>;
|
||||
|
||||
systemGetProfileBatch(
|
||||
request: SystemGetProfileBatchRequest,
|
||||
metadata?: Metadata,
|
||||
): Observable<SystemGetProfileBatchResponse>;
|
||||
}
|
||||
|
||||
export interface UsersServiceController {
|
||||
@@ -217,6 +238,11 @@ export interface UsersServiceController {
|
||||
request: GetContactsRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<GetContactsResponse> | Observable<GetContactsResponse> | GetContactsResponse;
|
||||
|
||||
systemGetProfileBatch(
|
||||
request: SystemGetProfileBatchRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<SystemGetProfileBatchResponse> | Observable<SystemGetProfileBatchResponse> | SystemGetProfileBatchResponse;
|
||||
}
|
||||
|
||||
export function UsersServiceControllerMethods() {
|
||||
@@ -231,6 +257,7 @@ export function UsersServiceControllerMethods() {
|
||||
"getBlockedUsers",
|
||||
"addContact",
|
||||
"getContacts",
|
||||
"systemGetProfileBatch",
|
||||
];
|
||||
for (const method of grpcMethods) {
|
||||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
||||
|
||||
Reference in New Issue
Block a user