UNPKG

@experts_hub/shared

Version:

Shared DTOs, interfaces, and utilities for experts hub applications

67 lines (66 loc) 1.52 kB
export interface IFetchCompanyRoleQuery { page_size?: number; page: number; searchText?: string; name: string; right: string; sortColumn?: string; sortBy?: string; } export interface IFetchCompanyRolesResponse { statusCode: number; status: boolean; message: string; data: any; } export interface IFetchCompanyRoleByIdQuery { permission?: string; } export interface IFetchCompanyRoleByIdResponse { statusCode: number; status: boolean; message: string; data: any; } export interface ICreateCompanyRolePayload { name: string; slug: string; description: string; isActive: boolean; permissionIds: number[]; } export interface ICreateCompanyRoleResponse { statusCode: number; status: boolean; message: string; } export interface IUpdateCompanyRolePayload { name: string; slug: string; description: string; isActive: boolean; permissionIds: number[]; } export interface IUpdateCompanyRoleResponse { statusCode: number; status: boolean; message: string; } export interface IToggleCompanyRoleVisibilityPayload { isActive: boolean; } export interface IToggleCompanyRoleVisibilityResponse { statusCode: number; status: boolean; message: string; } export interface IDeleteCompanyRoleResponse { statusCode: number; status: boolean; message: string; } export interface IAttachPermissionsToCompanyRoleResponse { statusCode: number; status: boolean; message: string; }