import type { GlobalContextProps as BizGlobalContextProps } from '@zgfe/business-lib/es/context/index'; import type { TableProps } from 'antd'; export type GlobalContextProps = BizGlobalContextProps; export type Unpacked = Required extends { [key in U]: infer R; } ? R : never; export type Rename = { [key in Exclude | U]: key extends keyof T ? T[key] : T[K]; }; export type AppInfo = Unpacked; export type EventGroupList = Required['eventGroupList']; export type EventT = EventGroupList[number]['eventList'][number]; export interface PageParams { pageNo: number; pageSize: number; } /** * 应用角色,应用关系表中的字段 */ export declare enum AppRoleType { normal = 0, admin = 2, custom = 3 } export declare enum LabelStatus { normal = 0, new = 1, del = 2 } /** * 标签的dataStatus * 1: 调度任务已成功执行完成,可编辑可删除 * 2: 标签大数据调度任务正在执行过程中,不可编辑不可删除 * 其他: 大数据调度任务失败,不可编辑,可删除 */ export declare enum LabelDataStatus { normal = 1, dispatching = 2, abnormal = 3 } export interface UserLabelI { id: number; labelName: string; labelGroup: string; appId: number; createTime: string; updateTime: string; platform: number; dataStatus: LabelDataStatus; } export type LabelDetailI = { [k in Exclude]: UserLabelI[k]; } & { labelGroup: string; labelType: LabelType; labelTypeName?: string; handTime?: string; json: string; }; export declare enum LabelType { autoUpdate = 0, manualUpdate = 1, exportUpdate = 2, firstAndLastUpdate = 3, tagOpenApi = 4, recencyFrequencyMonetaryUpdate = 5, eventPreference = 6, init = 7, sqlCreateTable = 8, aum = 9, fundingSource = 10 } export declare enum LabelCreateType { autoUpdate = 0, manualUpdate = 1, exportUpdate = 2, firstAndLastUpdate = 3, tagOpenApi = 4, recencyFrequencyMonetaryUpdate = 5, eventPreference = 6, init = 7, sqlCreateTable = 8, aum = 9, fundingSource = 10 } export interface UserI { zgId: number; cdpId: string; fixedProperties: { propertyValue: string; propertyName: string; }[]; cusProperties: any[]; zsDevices: []; zgSee: boolean; } export interface UserOldI { zg_id: string; cdpId: string; fixed_properties: { property_value: string; property_name: string; }[]; cus_properties: any[]; zs_devices: []; zg_see: boolean; } export type UserListI = UserI[]; export interface EchartEvent { readonly dataIndexInside: number; readonly dataType: any; readonly isFromClick: boolean; readonly seriesIndex: number; readonly type: string; } /** * antd表格的onChange回调参数 */ export type TableChangeParameters = Parameters>['onChange']>;