UNPKG

@los_generic/shared

Version:

Shared DTOs, interfaces, and utilities for LOS applications

72 lines (71 loc) 1.59 kB
export interface IFetchProfileQuery { page: number; page_size?: number; searchText?: string; sortColumn?: string; sortBy?: string; } export interface IFetchProfileResponse { statusCode: number; status: boolean; message: string; data: { id: number; profile_type: string; profile_name: string; is_active: boolean; created_at: string; updated_at: string; }[]; meta: { current_page: number; per_page: number; total: number; total_pages: number; }; } export interface IFetchProfileByIdQuery { id: number; } export interface IFetchProfileByIdResponse { statusCode: number; status: boolean; message: string; data: { id: number; profile_type: string; profile_name: string; is_active: boolean; created_at: string; updated_at: string; }; } export interface ICreateProfilePayload { profileType: string; profileName: string; isActive: boolean; } export interface IUpdateProfilePayload { profileType: string; profileName: string; isActive: boolean; } export interface IToggleProfileVisibilityPayload { isActive: boolean; } export interface IProfileDropdownResponse { statusCode: number; status: boolean; message: string; data: { id: number; profile_type: string; profile_name: string; is_active: boolean; }[]; } export interface IProfileOperationResponse { statusCode: number; status: boolean; message: string; }