import { AttrConditionTypes } from '@zgfe/business-lib'; import { DatePickerTypes } from '@zgfe/business-lib/es/datePicker/types'; import { ReactNode } from 'react'; /** * 属性选择器 默认值 */ export interface bizAttributeSelectorValueProp { propCategory?: string; category?: string; value?: number | string; id?: number; key?: number | string; label?: string; } export interface eventProps { /** * @description 事件id */ id?: number; /** * @description 事件分组id */ eventGroupId?: number; /** * @description 事件name */ name?: string; /** * @description 事件属性筛选 */ filters?: AttrConditionTypes.GroupValue; /** * @description 事件属性细分 */ dimension?: bizAttributeSelectorValueProp; key?: number; alias?: string; } export interface SearchValue { /** * @description 事件id */ id?: number; /** * @description 事件分组id */ eventGroupId?: number; /** * @description 事件name */ name?: string; /** * @description 平台 */ platform?: number; /** * @description 图表类型 * @default 'line' */ chartType?: EventChartTypes; /** * @description 用户群id */ userGroup?: (number | string[])[]; /** * @description 维度类型 */ analysisIndex?: string; /** * @description 维度名称 */ analysisAttr?: string; /** * @description 日期 * @default 最近一天 */ time?: DatePickerTypes.Value; /** * @description 属性细分 */ dimension?: bizAttributeSelectorValueProp; /** * @description 事件属性筛选 */ filters?: AttrConditionTypes.GroupValue; } export interface TopSearchValue { userGroup?: (number | string[])[]; filterCardConditions?: { dimension: { id: number; label: string; }; id: number; name: string; }[]; filterConditions?: { dimension: { id: number; label: string; }; id: number; name: string; }[]; } export interface UserDrillParamsProp { /** * @description 应用id */ appId: number; /** * @description 平台 */ platform: number; /** * @description 用户数量 */ count: number; /** * @description 模型类型 整体|事件|漏斗|留存|获取|粘性|崩溃|微信生态-整体|微信生态-小程序 */ source: string; /** * @description 查询接口 */ url: string; /** * @description 查询对象 */ params?: Record; /** * @description 信贷分析,数据格式与其他业务不一致,信贷分析单独提出来了,其他业务在data里面 */ module?: string; } export type EventChartTypes = 'line' | 'bar' | 'pie' | 'map'; /** * 图表选择类型 */ export interface ChartItemProp { label?: string; value: EventChartTypes; icon?: ReactNode; disabled?: boolean; } export interface ResponseDataProps { xAxis: string[]; series: SeriesProps[]; tongbi?: number[]; huanbi?: number[]; total?: number[]; yesterDay?: string[]; accUvTableName?: string; uvTableName?: string; filterMd5?: string; extraInfo?: any; delEventName?: string[]; } /** * series value */ export interface SeriesProps { names?: string[]; values: (number | string)[]; originalNames?: string[]; /** * 维度 */ index?: string; duration?: TableChildrenProps[]; diyTarget?: boolean; isInitShow?: boolean; stack?: string; allValues?: any; [x: string]: any; } export interface TableChildrenProps { name: string; values: number[]; } export declare const EventContext: import("react").Context;