import { WidgetType } from "../../../../shared/enums/widget-type.enum";

export interface IWidgetModel {
    dashboardWidgetId: number;
    name: string;
    countTypeName: string;
    type: string;
    icon: string;
    storedProcedureName: string;
    defaultValues: Array<any>;
    active: boolean;
    dashboardWidgetTypeId: WidgetType;
    dashboardWidgetCountTypeId: number;

    loadingMetaData: boolean;
    deactivating: boolean;
    activating: boolean;
    executingSp: boolean;

    totalItems: number;
    result: {headers: string[], data: any} | string | any;
    size: number;

    isExecuting: boolean;
    isCofiguring: boolean;
    isFiltering: boolean;

    dashboardConfigId: number;
    widgetColor: number;

    rolesStr: string;
    roles: Array<number>;
    roleNames: Array<string>;
    roleId?: any;
}