UNPKG

@los_generic/shared

Version:

Shared DTOs, interfaces, and utilities for LOS applications

69 lines (68 loc) 1.53 kB
export interface IFetchRoleQuery { page_size?: number; page: number; searchText?: string; role: string; right: string; sortColumn?: string; sortBy?: string; } export interface IFetchRoleResponse { statusCode: number; status: boolean; message: string; data: any; } export interface IFetchRoleByIdQuery { permission?: string; } export interface IFetchRoleByIdResponse { statusCode: number; status: boolean; message: string; data: any; } export interface ICreateRolePayload { roleName: string; roleDescription: string; hasApprovalAuthority: boolean; roleLevel: string; approvalLimit: number; isActive: boolean; } export interface ICreateRoleResponse { statusCode: number; status: boolean; message: string; } export interface IUpdateRolePayload { roleName: string; roleDescription: string; hasApprovalAuthority: boolean; roleLevel: string; approvalLimit: number; isActive: boolean; } export interface IUpdateRoleResponse { statusCode: number; status: boolean; message: string; } export interface IToggleRoleVisibilityPayload { isActive: boolean; } export interface IToggleRoleVisibilityResponse { statusCode: number; status: boolean; message: string; } export interface IDeleteRoleResponse { statusCode: number; status: boolean; message: string; } export interface IAttachPermissionsToRoleResponse { statusCode: number; status: boolean; message: string; }