import { CompanyPayload } from '../../entity/company/companyPayload'; import { TaskPayload } from '../../entity/task/taskPayload'; import { UserPayload } from '../../entity/user/userPayload'; import { UserGroupPayload } from '../../entity/userGroups/userGroupsPayload'; import { ZeniAPIResponse } from '../../responsePayload'; export interface TasksAggBucket { doc_count: number; key: string; tasks: TaskPayload[]; } export interface CompanyTaskManagerViewPayload { aggregations: { group_by_company_name: { buckets: TasksAggBucket[]; }; }; count: number; from: number; limit: number; total: number; } export type CompanyTaskManagerViewResponse = ZeniAPIResponse; interface CockpitContextDataPayload { companies: CompanyPayload[]; user_groups: UserGroupPayload[]; users: UserPayload[]; } export type CockpitContextResponse = ZeniAPIResponse; export {};