@blue-impact-engine/blue-impact-engine-client
Version:
Blue Impact Engine API Client
16 lines • 738 B
TypeScript
import { QueryParams, RequestOptions, PaginatedResponse, ApiResponse } from "../../core";
import { UserEntity, UserRole } from ".";
/**
* User Service
* Handles all user-related API operations and business logic
*/
export interface UserService {
getAll(params?: QueryParams & {
role?: UserRole;
search?: string;
}, options?: RequestOptions): Promise<PaginatedResponse<UserEntity>>;
getById(id: string, options?: RequestOptions): Promise<ApiResponse<UserEntity>>;
getCurrent(options?: RequestOptions): Promise<ApiResponse<UserEntity>>;
getByRole(role: UserRole, params?: QueryParams, options?: RequestOptions): Promise<PaginatedResponse<UserEntity>>;
}
//# sourceMappingURL=userService.types.d.ts.map