@quickbi/bi-types 3.2.4 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.d.ts +737 -935
- package/cjs/index.js +244 -410
- package/esm/index.d.ts +737 -935
- package/esm/index.mjs +244 -410
- package/package.json +1 -1
package/cjs/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Generated by dts-bundle v0.7.3
|
|
2
2
|
// Dependencies for this module:
|
|
3
|
-
//
|
|
3
|
+
// ../../../../../react
|
|
4
4
|
|
|
5
5
|
declare module '@quickbi/bi-types' {
|
|
6
6
|
export { CommonCompInputAreaTypeEnum, DataConfig, DataConfigAreaItemColumn, DataPanelDataSchema, DataSchemaAreaItem, OperationMenuItem, DropdownMenuItem, OperationTypes, Aggregators, FieldConfigTypes, ContrastTypes, AdvanceCalTypes, AdvanceCalcDateTypes, NumberFormats, AlignTypes, VerticalAlignTypes, AlignmentCategory, SortTypes, FieldChartTypes, ImageSizes, CUSTOM_FIELD_TYPES, FieldType, QueryAxisType, DropDownMenuType, SecondFieldType, ChartStatus, StackedSortType, ResultMode, RetainAreaId, ConfigCellType, ConfigColumnType, CheckBoxState, FieldGroupType, DataSchemaRule, TableType, TableDirection, ProportionType, AccumulateCalcType, FieldCollectionType, LnglatGroupChildFlags, FieldGroupSelectorType, VirtualFieldOperation, NumberValueType, ContrastType, } from '@quickbi/bi-types/data-panel';
|
|
7
|
-
export type { CommonCompInputAreaType, FieldConfigs, FieldInfo, ChildFieldInfo, DropDownMenuFieldConfig, AlignConfig, AggregationConfig, AdvancedCalculationConfig, ContrastConfig, NumberFormatConfig, FieldRuntime, CompFieldConfig, LabelConfig, TimeTypeFilter, CommonCompInputComplexFilter, CommonCompInputComplexFilterItem, AreaMapItem, AreaMap, VirtualFieldInfo, ResetFieldConfigType, ResetMenuType, SortConfig, Message, OnFreshComponentType, OnFreshComponentOptions, OnChangeCubeOptions, ConfigCellOption, FieldConfigRow, FieldMenuConfig, ChangeFieldMenuConfigs, ColumnFieldInfo, FieldCollectionInfo, ValidateResult, TableCalculateParam, CalcOrder, TopNParams, AuxiliaryFieldConfig, EmptyValueDisplayFieldConfig, CountParams, PercentileParams, RankParams, CompareParams, DateAccumulateParams, ProportionParams, DifferenceParams, MovingCalculationParams, MultiFieldCombinationConfig, MultiFieldCombinationFieldConfig, MultiFieldAdvanceCalConfig,
|
|
7
|
+
export type { CommonCompInputAreaType, FieldConfigs, FieldInfo, ChildFieldInfo, DropDownMenuFieldConfig, AlignConfig, AggregationConfig, AdvancedCalculationConfig, ContrastConfig, NumberFormatConfig, FieldRuntime, CompFieldConfig, LabelConfig, TimeTypeFilter, CommonCompInputComplexFilter, CommonCompInputComplexFilterItem, AreaMapItem, AreaMap, VirtualFieldInfo, ResetFieldConfigType, ResetMenuType, SortConfig, Message, OnFreshComponentType, OnFreshComponentOptions, OnChangeCubeOptions, ConfigCellOption, FieldConfigRow, FieldMenuConfig, ChangeFieldMenuConfigs, ColumnFieldInfo, FieldCollectionInfo, ValidateResult, TableCalculateParam, CalcOrder, TopNParams, AuxiliaryFieldConfig, EmptyValueDisplayFieldConfig, CountParams, PercentileParams, RankParams, CompareParams, DateAccumulateParams, ProportionParams, DifferenceParams, MovingCalculationParams, MultiFieldCombinationConfig, MultiFieldCombinationFieldConfig, MultiFieldAdvanceCalConfig, } from '@quickbi/bi-types/data-panel';
|
|
8
8
|
export { ComponentType, ChartType, ScreenComponentType, ScreenComponentCode } from '@quickbi/bi-types/component-type';
|
|
9
9
|
export { OlapResponseBase, CellMeta, RowColumnMeta, CrossTableColumnType, CrossTableColumnModel, CrossTableFieldSetting, CrossTableRowModel, CrossTableRowType, CrossTableTotalConfig, } from '@quickbi/bi-types/cross-table';
|
|
10
10
|
export type { CrossTableHeaderMeta } from '@quickbi/bi-types/cross-table';
|
|
@@ -26,8 +26,6 @@ declare module '@quickbi/bi-types' {
|
|
|
26
26
|
export * from '@quickbi/bi-types/open/components/style-schema';
|
|
27
27
|
export type { MenuMeta, MenuProps, MenuSchema, MenuSchemaBase, MenuSchemaItem } from '@quickbi/bi-types/open/menus/menu-schema';
|
|
28
28
|
export * from '@quickbi/bi-types/open/menus/menu-props';
|
|
29
|
-
export type { PageComponentProps } from '@quickbi/bi-types/open/custom-page/pages-props';
|
|
30
|
-
export type { PageMeta } from '@quickbi/bi-types/open/custom-page/pages-schema';
|
|
31
29
|
export type { EmbedBaseSrc, EmbedBaseFeature, EmbedBaseEventMessageDTO, EmbedBaseEventMessageContent, EmbedBaseEventListener, EmbedBaseEventListenerReturn, } from '@quickbi/bi-types/open/embed/core';
|
|
32
30
|
export { OpenPageTypeEnum } from '@quickbi/bi-types/open/common/page-types';
|
|
33
31
|
export { OpenEventTypeEnum } from '@quickbi/bi-types/open/common/event-types';
|
|
@@ -42,13 +40,13 @@ declare module '@quickbi/bi-types' {
|
|
|
42
40
|
declare module '@quickbi/bi-types/data-panel' {
|
|
43
41
|
import type { CommonCompInputAreaType, ConfigCellOption, FieldConfigRow } from '@quickbi/bi-types/data-panel/base';
|
|
44
42
|
import { CommonCompInputAreaTypeEnum, QueryAxisType, FieldType, CUSTOM_FIELD_TYPES, SecondFieldType, ChartStatus, StackedSortType, ResultMode, RetainAreaId, ConfigCellType, ConfigColumnType, CheckBoxState, FieldGroupType, FieldCollectionType, LnglatGroupChildFlags } from '@quickbi/bi-types/data-panel/base';
|
|
45
|
-
import type { CommonCompInputComplexFilter, TimeTypeFilter, CommonCompInputComplexFilterItem, TableCalculateParam, CalcOrder, TopNParams, CountParams, PercentileParams, RankParams, CompareParams, DateAccumulateParams, ProportionParams, DifferenceParams, MovingCalculationParams, MultiFieldCombinationConfig, MultiFieldCombinationFieldConfig, MultiFieldAdvanceCalConfig
|
|
43
|
+
import type { CommonCompInputComplexFilter, TimeTypeFilter, CommonCompInputComplexFilterItem, TableCalculateParam, CalcOrder, TopNParams, CountParams, PercentileParams, RankParams, CompareParams, DateAccumulateParams, ProportionParams, DifferenceParams, MovingCalculationParams, MultiFieldCombinationConfig, MultiFieldCombinationFieldConfig, MultiFieldAdvanceCalConfig } from '@quickbi/bi-types/data-panel/data-config';
|
|
46
44
|
import { DataConfig, DataConfigAreaItemColumn, TableType, TableDirection, ProportionType, AccumulateCalcType, NumberValueType, ContrastType } from '@quickbi/bi-types/data-panel/data-config';
|
|
47
45
|
import type { FieldConfigs, FieldInfo, ChildFieldInfo, DropDownMenuFieldConfig, AlignConfig, AggregationConfig, AdvancedCalculationConfig, ContrastConfig, NumberFormatConfig, FieldRuntime, CompFieldConfig, LabelConfig, AreaMapItem, AreaMap, VirtualFieldInfo, ResetFieldConfigType, ResetMenuType, SortConfig, Message, OnFreshComponentType, OnFreshComponentOptions, OnChangeCubeOptions, FieldMenuConfig, ChangeFieldMenuConfigs, ColumnFieldInfo, FieldCollectionInfo, ValidateResult, AuxiliaryFieldConfig, EmptyValueDisplayFieldConfig } from '@quickbi/bi-types/data-panel/data-schema-item';
|
|
48
46
|
import { DataSchemaAreaItem, OperationMenuItem, DropdownMenuItem, OperationTypes, Aggregators, FieldConfigTypes, ContrastTypes, AdvanceCalTypes, AdvanceCalcDateTypes, NumberFormats, AlignTypes, VerticalAlignTypes, AlignmentCategory, SortTypes, FieldChartTypes, ImageSizes, DropDownMenuType, DataSchemaRule, FieldGroupSelectorType, VirtualFieldOperation } from '@quickbi/bi-types/data-panel/data-schema-item';
|
|
49
47
|
import { DataPanelDataSchema, ResultDisplay } from '@quickbi/bi-types/data-panel/data-schema';
|
|
50
48
|
export { DataSchemaRule, CommonCompInputAreaTypeEnum, DataConfig, DataConfigAreaItemColumn, TableType, TableDirection, DataPanelDataSchema, DataSchemaAreaItem, OperationMenuItem, DropdownMenuItem, OperationTypes, Aggregators, FieldConfigTypes, ContrastTypes, AdvanceCalTypes, AdvanceCalcDateTypes, NumberFormats, AlignTypes, VerticalAlignTypes, AlignmentCategory, SortTypes, FieldGroupSelectorType, FieldChartTypes, ImageSizes, CUSTOM_FIELD_TYPES, FieldType, QueryAxisType, DropDownMenuType, SecondFieldType, ChartStatus, StackedSortType, ResultMode, RetainAreaId, ConfigCellType, ConfigColumnType, CheckBoxState, ResultDisplay, FieldGroupType, ProportionType, AccumulateCalcType, FieldCollectionType, LnglatGroupChildFlags, VirtualFieldOperation, NumberValueType, ContrastType, };
|
|
51
|
-
export type { CommonCompInputAreaType, FieldInfo, ChildFieldInfo, FieldConfigs, DropDownMenuFieldConfig, AlignConfig, AggregationConfig, AdvancedCalculationConfig, ContrastConfig, NumberFormatConfig, FieldRuntime, CompFieldConfig, LabelConfig, TimeTypeFilter, CommonCompInputComplexFilter, ResetFieldConfigType, CommonCompInputComplexFilterItem, AreaMapItem, AreaMap, VirtualFieldInfo, ResetMenuType, SortConfig, Message, OnFreshComponentType, OnFreshComponentOptions, OnChangeCubeOptions, ConfigCellOption, FieldConfigRow, FieldMenuConfig, ChangeFieldMenuConfigs, ColumnFieldInfo, FieldCollectionInfo, AuxiliaryFieldConfig, ValidateResult, TableCalculateParam, CalcOrder, TopNParams, EmptyValueDisplayFieldConfig, CountParams, PercentileParams, RankParams, CompareParams, DateAccumulateParams, ProportionParams, DifferenceParams, MovingCalculationParams, MultiFieldCombinationConfig, MultiFieldCombinationFieldConfig, MultiFieldAdvanceCalConfig,
|
|
49
|
+
export type { CommonCompInputAreaType, FieldInfo, ChildFieldInfo, FieldConfigs, DropDownMenuFieldConfig, AlignConfig, AggregationConfig, AdvancedCalculationConfig, ContrastConfig, NumberFormatConfig, FieldRuntime, CompFieldConfig, LabelConfig, TimeTypeFilter, CommonCompInputComplexFilter, ResetFieldConfigType, CommonCompInputComplexFilterItem, AreaMapItem, AreaMap, VirtualFieldInfo, ResetMenuType, SortConfig, Message, OnFreshComponentType, OnFreshComponentOptions, OnChangeCubeOptions, ConfigCellOption, FieldConfigRow, FieldMenuConfig, ChangeFieldMenuConfigs, ColumnFieldInfo, FieldCollectionInfo, AuxiliaryFieldConfig, ValidateResult, TableCalculateParam, CalcOrder, TopNParams, EmptyValueDisplayFieldConfig, CountParams, PercentileParams, RankParams, CompareParams, DateAccumulateParams, ProportionParams, DifferenceParams, MovingCalculationParams, MultiFieldCombinationConfig, MultiFieldCombinationFieldConfig, MultiFieldAdvanceCalConfig, };
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
declare module '@quickbi/bi-types/component-type' {
|
|
@@ -202,9 +200,9 @@ declare module '@quickbi/bi-types/component-type' {
|
|
|
202
200
|
WORDCLOUD = 12,
|
|
203
201
|
/** 旋风漏斗(已下线) */
|
|
204
202
|
TORNADO = 13,
|
|
205
|
-
/**
|
|
203
|
+
/** 老树图(已关闭入口,线上有图) */
|
|
206
204
|
TREE = 14,
|
|
207
|
-
/**
|
|
205
|
+
/** 老的来源去向图(已关闭入口,线上有图) */
|
|
208
206
|
PATH = 15,
|
|
209
207
|
/** 矩阵树图 */
|
|
210
208
|
TREEMAP = 16,
|
|
@@ -433,19 +431,7 @@ declare module '@quickbi/bi-types/component-type' {
|
|
|
433
431
|
/** 非结构化图表-词频(词云图,已下线) */
|
|
434
432
|
UNSTRUCTURED_FREQUENCY = 129,
|
|
435
433
|
/** 智能解读 */
|
|
436
|
-
SMART_INTERPRETATION = 130
|
|
437
|
-
/** 探索分析-智能推荐 */
|
|
438
|
-
EXPLORATION_SMART_CHART = 131,
|
|
439
|
-
/** 电子表格-AI翻译 */
|
|
440
|
-
QUICK_REPORT_AI_TRANSLATE = 132,
|
|
441
|
-
/** 电子表格-AI分类 */
|
|
442
|
-
QUICK_REPORT_AI_CLASSIFY = 133,
|
|
443
|
-
/** 电子表格-自定义AI函数 */
|
|
444
|
-
QUICK_REPORT_AI_CUSTOM = 134,
|
|
445
|
-
/** 电子表格-AI信息提取 */
|
|
446
|
-
QUICK_REPORT_AI_EXTRACT = 135,
|
|
447
|
-
/** 电子表格-AI总结 */
|
|
448
|
-
QUICK_REPORT_AI_SUMMARIZE = 136
|
|
434
|
+
SMART_INTERPRETATION = 130
|
|
449
435
|
}
|
|
450
436
|
export const ScreenComponentCode: Record<ScreenComponentType, number>;
|
|
451
437
|
export enum ChartType {
|
|
@@ -542,8 +528,6 @@ declare module '@quickbi/bi-types/component-type' {
|
|
|
542
528
|
CONCAT_CONTAINER = "concat-container",
|
|
543
529
|
INDICATOR_RELATION = "indicator-relation",
|
|
544
530
|
SMART_INTERPRETATION = "smart-interpretation",
|
|
545
|
-
/** 探索分析-智能推荐 */
|
|
546
|
-
EXPLORATION_SMART_CHART = "exploration-smart-chart",
|
|
547
531
|
/** ------------非结构化图表 ------------ */
|
|
548
532
|
UNSTRUCTURED_PARALLEL = "parallel",
|
|
549
533
|
UNSTRUCTURED_CONTRAST = "contrast",
|
|
@@ -562,11 +546,6 @@ declare module '@quickbi/bi-types/component-type' {
|
|
|
562
546
|
QUICK_REPORT_FORM_CHECKBOX = "quick-report-form-checkbox",
|
|
563
547
|
QUICK_REPORT_FORM_FUNCTION = "quick-report-form-function",
|
|
564
548
|
QUICK_REPORT = "quick-report",
|
|
565
|
-
QUICK_REPORT_AI_TRANSLATE = "quick-report-ai-translate",
|
|
566
|
-
QUICK_REPORT_AI_CLASSIFY = "quick-report-ai-classify",
|
|
567
|
-
QUICK_REPORT_AI_CUSTOM = "quick-report-ai-custom",
|
|
568
|
-
QUICK_REPORT_AI_EXTRACT = "quick-report-ai-extract",
|
|
569
|
-
QUICK_REPORT_AI_SUMMARIZE = "quick-report-ai-summarize",
|
|
570
549
|
/** --------------数据填报-------------- */
|
|
571
550
|
DATAFORM_TEXT = "dataform-text",
|
|
572
551
|
DATAFORM_TEXTAREA = "dataform-textarea",
|
|
@@ -1156,19 +1135,19 @@ declare module '@quickbi/bi-types/open/components/component-lifecycle' {
|
|
|
1156
1135
|
/**
|
|
1157
1136
|
* 开机阶段钩子
|
|
1158
1137
|
*/
|
|
1159
|
-
export type LifecycleBootstrap<T = object, P = any> = (props
|
|
1138
|
+
export type LifecycleBootstrap<T = object, P = any> = (props?: LifecycleProps<T>) => void | Promise<P>;
|
|
1160
1139
|
/**
|
|
1161
1140
|
* 渲染阶段钩子
|
|
1162
1141
|
*/
|
|
1163
|
-
export type LifecycleMount<T = object, P = any> = (props
|
|
1142
|
+
export type LifecycleMount<T = object, P = any> = (props?: LifecycleProps<T>) => void | Promise<P>;
|
|
1164
1143
|
/**
|
|
1165
1144
|
* 卸载阶段钩子
|
|
1166
1145
|
*/
|
|
1167
|
-
export type LifecycleUnmount<T = object, P = any> = (props
|
|
1146
|
+
export type LifecycleUnmount<T = object, P = any> = (props?: LifecycleProps<T>) => void | Promise<P>;
|
|
1168
1147
|
/**
|
|
1169
1148
|
* 更新阶段钩子
|
|
1170
1149
|
*/
|
|
1171
|
-
export type LifecycleUpdate<T = object, P = any> = (props
|
|
1150
|
+
export type LifecycleUpdate<T = object, P = any> = (props?: LifecycleProps<T>) => void | Promise<P>;
|
|
1172
1151
|
/**
|
|
1173
1152
|
* 开放组件生命周期
|
|
1174
1153
|
*/
|
|
@@ -1565,13 +1544,6 @@ declare module '@quickbi/bi-types/chart-config' {
|
|
|
1565
1544
|
/** 空 */
|
|
1566
1545
|
empty = ""
|
|
1567
1546
|
}
|
|
1568
|
-
/** 图例显示百分比位置 */
|
|
1569
|
-
export enum LegendDisplayPercentPositionValue {
|
|
1570
|
-
/** 默认值为'-' */
|
|
1571
|
-
Bottom = "bottom",
|
|
1572
|
-
/** 空 */
|
|
1573
|
-
Right = "right"
|
|
1574
|
-
}
|
|
1575
1547
|
/** 钻取 面包屑的文字样式 */
|
|
1576
1548
|
export interface DrillBreadcrumbTextStyle {
|
|
1577
1549
|
fontSize: number;
|
|
@@ -1810,8 +1782,7 @@ declare module '@quickbi/bi-types/standard-model' {
|
|
|
1810
1782
|
* | areas区域模型
|
|
1811
1783
|
* -------------------------------------------------------------------------------------------
|
|
1812
1784
|
*/
|
|
1813
|
-
import type { EmptyValueDisplayConfig } from '@quickbi/bi-types/cube/cube-model';
|
|
1814
|
-
import type { SecondDataType } from '@quickbi/bi-types/cube/cube-schema';
|
|
1785
|
+
import type { EmptyValueDisplayConfig, SecondDataType } from '@quickbi/bi-types/cube/cube-model';
|
|
1815
1786
|
import type { CountParams, FieldCollectionType, PercentileParams, TopNParams, CompareParams, DateAccumulateParams, ProportionParams } from '@quickbi/bi-types/data-panel';
|
|
1816
1787
|
import type { DifferenceParams, MovingCalculationParams, MultiFieldCombinationConfig, RankParams } from '@quickbi/bi-types/data-panel/data-config';
|
|
1817
1788
|
/** 字段信息 */
|
|
@@ -2314,14 +2285,12 @@ declare module '@quickbi/bi-types/cube' {
|
|
|
2314
2285
|
* @author 无愚
|
|
2315
2286
|
* @description 数据集类型定义
|
|
2316
2287
|
*/
|
|
2317
|
-
export * from '@quickbi/bi-types/cube/cube-blend';
|
|
2318
|
-
export * from '@quickbi/bi-types/cube/cube-field-expression';
|
|
2319
|
-
export * from '@quickbi/bi-types/cube/cube-links';
|
|
2320
2288
|
export * from '@quickbi/bi-types/cube/cube-model';
|
|
2321
|
-
export * from '@quickbi/bi-types/cube/cube-schema';
|
|
2322
2289
|
export * from '@quickbi/bi-types/cube/data-source';
|
|
2323
|
-
export * from '@quickbi/bi-types/cube/
|
|
2324
|
-
export * from '@quickbi/bi-types/cube/
|
|
2290
|
+
export * from '@quickbi/bi-types/cube/cube-links';
|
|
2291
|
+
export * from '@quickbi/bi-types/cube/table-schema';
|
|
2292
|
+
export * from '@quickbi/bi-types/cube/cube-field-expression';
|
|
2293
|
+
export type { BlendSchema, CubeBlend, CubeLink } from '@quickbi/bi-types/cube/cube-blend';
|
|
2325
2294
|
}
|
|
2326
2295
|
|
|
2327
2296
|
declare module '@quickbi/bi-types/open/menus/menu-schema' {
|
|
@@ -2372,7 +2341,6 @@ declare module '@quickbi/bi-types/open/menus/menu-props' {
|
|
|
2372
2341
|
import type { EnumAsUnion } from '@quickbi/bi-types/open/common/tools';
|
|
2373
2342
|
import type { OpenPageTypeEnum } from '@quickbi/bi-types/open/common/page-types';
|
|
2374
2343
|
import type { OpenDeviceTypeEnum } from '@quickbi/bi-types/open/common/misc';
|
|
2375
|
-
import type { RouteKey } from '@quickbi/bi-types/router/route-key';
|
|
2376
2344
|
/**
|
|
2377
2345
|
* 事件/菜单通用的页面信息
|
|
2378
2346
|
*/
|
|
@@ -2397,10 +2365,8 @@ declare module '@quickbi/bi-types/open/menus/menu-props' {
|
|
|
2397
2365
|
ownerUserName: string;
|
|
2398
2366
|
/** 页面标题 */
|
|
2399
2367
|
title: string;
|
|
2400
|
-
/**
|
|
2401
|
-
pageType
|
|
2402
|
-
/** 页面路由 key */
|
|
2403
|
-
routeKey?: RouteKey;
|
|
2368
|
+
/** 页面类型 */
|
|
2369
|
+
pageType: EnumAsUnion<typeof OpenPageTypeEnum>;
|
|
2404
2370
|
}
|
|
2405
2371
|
/**
|
|
2406
2372
|
* 事件/菜单通用的工具方法
|
|
@@ -2548,23 +2514,6 @@ declare module '@quickbi/bi-types/open/menus/menu-props' {
|
|
|
2548
2514
|
}
|
|
2549
2515
|
}
|
|
2550
2516
|
|
|
2551
|
-
declare module '@quickbi/bi-types/open/custom-page/pages-props' {
|
|
2552
|
-
import type { CommonPageConfig } from '@quickbi/bi-types/open/menus/menu-props';
|
|
2553
|
-
/**
|
|
2554
|
-
* 自定义页面 props 接口
|
|
2555
|
-
*/
|
|
2556
|
-
export interface PageComponentProps {
|
|
2557
|
-
/** 页面信息 */
|
|
2558
|
-
pageConfig: Pick<CommonPageConfig, 'userId' | 'userName' | 'routeKey'>;
|
|
2559
|
-
}
|
|
2560
|
-
}
|
|
2561
|
-
|
|
2562
|
-
declare module '@quickbi/bi-types/open/custom-page/pages-schema' {
|
|
2563
|
-
/** 自定义页面元信息 */
|
|
2564
|
-
export interface PageMeta {
|
|
2565
|
-
}
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
2517
|
declare module '@quickbi/bi-types/open/embed/core' {
|
|
2569
2518
|
/**
|
|
2570
2519
|
* @author 海狸
|
|
@@ -2635,7 +2584,7 @@ declare module '@quickbi/bi-types/open/embed/core' {
|
|
|
2635
2584
|
|
|
2636
2585
|
declare module '@quickbi/bi-types/open/common/page-types' {
|
|
2637
2586
|
/**
|
|
2638
|
-
* @deprecated 开放相关页面类型枚举, 注意要和
|
|
2587
|
+
* @deprecated 开放相关页面类型枚举, 注意要和 routerKkey 做区分, 这个 key 后续要废弃
|
|
2639
2588
|
* */
|
|
2640
2589
|
export enum OpenPageTypeEnum {
|
|
2641
2590
|
/** 仪表板 */
|
|
@@ -2834,12 +2783,10 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
2834
2783
|
orgAdminSmartQGlobalConfig = "orgAdminSmartQGlobalConfig",
|
|
2835
2784
|
/** 组织管理-智能小 Q - 通用配置 - 大模型配置 */
|
|
2836
2785
|
orgAdminSmartQGlobalConfigLlmConfig = "orgAdminSmartQGlobalConfigLlmConfig",
|
|
2837
|
-
/** 组织管理-智能小 Q - 通用配置 - AI功能管理 */
|
|
2838
|
-
orgAdminSmartQGlobalConfigAIConfig = "orgAdminSmartQGlobalConfigAIConfig",
|
|
2839
2786
|
/** 组织管理-智能小 Q - 通用配置 - 智能体管理 */
|
|
2840
2787
|
orgAdminSmartQGlobalConfigAgentManage = "orgAdminSmartQGlobalConfigAgentManage",
|
|
2841
|
-
/** 组织管理-智能小 Q - 通用配置 -
|
|
2842
|
-
|
|
2788
|
+
/** 组织管理-智能小 Q - 通用配置 - 主题定制 */
|
|
2789
|
+
orgAdminSmartQGlobalThemeSetting = "orgAdminSmartQGlobalThemeSetting",
|
|
2843
2790
|
/** 组织管理-小Q问数 */
|
|
2844
2791
|
orgAdminCopilot = "orgAdminCopilot",
|
|
2845
2792
|
/** 组织管理-小Q问数 - 探索版 */
|
|
@@ -2850,12 +2797,6 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
2850
2797
|
orgQueryAgentAnalysisThemeAuth = "orgQueryAgentAnalysisThemeAuth",
|
|
2851
2798
|
/** 组织管理-小Q问数-知识库管理 */
|
|
2852
2799
|
orgQueryAgentKnowledgeBaseManage = "orgQueryAgentKnowledgeBaseManage",
|
|
2853
|
-
/** 组织管理-小Q问数-全局配置 */
|
|
2854
|
-
orgQueryAgentGlobalConfig = "orgQueryAgentGlobalConfig",
|
|
2855
|
-
/** 组织管理-小Q问数-赞踩知识 */
|
|
2856
|
-
likeAndDislikeKnowledge = "likeAndDislikeKnowledge",
|
|
2857
|
-
/** 组织管理-小Q问数-资产平台接入配置 */
|
|
2858
|
-
orgQueryAgentAssetPlatformConfig = "orgQueryAgentAssetPlatformConfig",
|
|
2859
2800
|
/** 组织管理-小Q问数-问数资源管理 */
|
|
2860
2801
|
orgResourceManage = "orgResourceManage",
|
|
2861
2802
|
/** 组织管理-小Q问数-分析主题管理 */
|
|
@@ -2979,14 +2920,10 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
2979
2920
|
dataServiceCount = "dataServiceCount",
|
|
2980
2921
|
/** 发布渠道 */
|
|
2981
2922
|
embedChannel = "embedChannel",
|
|
2982
|
-
/** 自定义可视化 */
|
|
2983
|
-
customManage = "componentManage",
|
|
2984
2923
|
/** 自定义组件 */
|
|
2985
2924
|
customComponent = "customComponent",
|
|
2986
2925
|
/** 自定义菜单 */
|
|
2987
2926
|
customMenu = "customMenu",
|
|
2988
|
-
/** 自定义页面 */
|
|
2989
|
-
customPage = "customPage",
|
|
2990
2927
|
/** 自定义模板 */
|
|
2991
2928
|
customTemplate = "customTemplate",
|
|
2992
2929
|
/** 自定义驱动 */
|
|
@@ -3021,8 +2958,6 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
3021
2958
|
viewHome = "viewHome",
|
|
3022
2959
|
/** 卡片卡板 */
|
|
3023
2960
|
viewBoard = "viewBoard",
|
|
3024
|
-
/** 探索分析 */
|
|
3025
|
-
viewExploration = "viewExploration",
|
|
3026
2961
|
/** 我的收藏 */
|
|
3027
2962
|
viewFavorite = "viewFavorite",
|
|
3028
2963
|
/** 最近访问 */
|
|
@@ -3057,6 +2992,10 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
3057
2992
|
copilotPageQReport = "copilotPageQReport",
|
|
3058
2993
|
/** 首页下的小Q搭建 */
|
|
3059
2994
|
copilotPageQDashboard = "copilotPageQDashboard",
|
|
2995
|
+
/** 首页下的小Q搜索 */
|
|
2996
|
+
copilotPageSearch = "copilotPageSearch",
|
|
2997
|
+
/** 首页下的小Q更多 */
|
|
2998
|
+
copilotPageMore = "copilotPageMore",
|
|
3060
2999
|
/** 首页下的自定义智能体列表页 */
|
|
3061
3000
|
copilotPageAgentList = "copilotPageAgentList",
|
|
3062
3001
|
/** 首页下的自定义智能体 */
|
|
@@ -3200,12 +3139,6 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
3200
3139
|
downloadView = "downloadView",
|
|
3201
3140
|
/** 自助取数公开预览 */
|
|
3202
3141
|
downloadPublicView = "downloadPublicView",
|
|
3203
|
-
/** ---------------------------------------------------- 探索分析 -------------------------------------------------- */
|
|
3204
|
-
explorationRoot = "explorationRoot",
|
|
3205
|
-
/** 探索分析编辑 */
|
|
3206
|
-
explorationEdit = "explorationEdit",
|
|
3207
|
-
/** 探索分析预览 */
|
|
3208
|
-
explorationView = "explorationView",
|
|
3209
3142
|
/** --------------------------------------------------- 即席分析 -------------------------------------------------- */
|
|
3210
3143
|
analysisRoot = "analysisRoot",
|
|
3211
3144
|
/** 即席分析编辑 */
|
|
@@ -3579,13 +3512,9 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
3579
3512
|
readonly key: RouteKey.orgAdminSmartQGlobalConfigLlmConfig;
|
|
3580
3513
|
readonly path: "/org/admin/smartQ/globalConfig/llmConfig";
|
|
3581
3514
|
}, {
|
|
3582
|
-
/** 智能小 Q - 通用配置 -
|
|
3583
|
-
readonly key: RouteKey.
|
|
3584
|
-
readonly path: "/org/admin/smartQ/globalConfig/
|
|
3585
|
-
}, {
|
|
3586
|
-
/** 智能小 Q - 通用配置 - 大模型配置 */
|
|
3587
|
-
readonly key: RouteKey.orgAdminSmartQGlobalConfigKnowledgeManage;
|
|
3588
|
-
readonly path: "/org/admin/smartQ/globalConfig/knowledgeManage";
|
|
3515
|
+
/** 智能小 Q - 通用配置 - 主题定制 */
|
|
3516
|
+
readonly key: RouteKey.orgAdminSmartQGlobalThemeSetting;
|
|
3517
|
+
readonly path: "/org/admin/smartQ/globalConfig/themeSetting";
|
|
3589
3518
|
}];
|
|
3590
3519
|
}, {
|
|
3591
3520
|
readonly key: RouteKey.orgAdminCopilot;
|
|
@@ -3627,15 +3556,6 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
3627
3556
|
}, {
|
|
3628
3557
|
readonly key: RouteKey.orgQueryAgentKnowledgeBaseManage;
|
|
3629
3558
|
readonly path: "/org/admin/copilot/queryAgent/orgKnowledgeBaseManage";
|
|
3630
|
-
}, {
|
|
3631
|
-
readonly key: RouteKey.orgQueryAgentGlobalConfig;
|
|
3632
|
-
readonly path: "/org/admin/copilot/queryAgent/globalConfig";
|
|
3633
|
-
}, {
|
|
3634
|
-
readonly key: RouteKey.likeAndDislikeKnowledge;
|
|
3635
|
-
readonly path: "/org/admin/copilot/queryAgent/likeAndDislikeKnowledge";
|
|
3636
|
-
}, {
|
|
3637
|
-
readonly key: RouteKey.orgQueryAgentAssetPlatformConfig;
|
|
3638
|
-
readonly path: "/org/admin/copilot/queryAgent/assetPlatformConfig";
|
|
3639
3559
|
}];
|
|
3640
3560
|
}, {
|
|
3641
3561
|
readonly key: RouteKey.orgAdminQMessage;
|
|
@@ -3810,18 +3730,11 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
3810
3730
|
readonly key: RouteKey.embedChannel;
|
|
3811
3731
|
readonly path: "/openservice/embedChannel";
|
|
3812
3732
|
}, {
|
|
3813
|
-
readonly key: RouteKey.
|
|
3733
|
+
readonly key: RouteKey.customComponent;
|
|
3814
3734
|
readonly path: "/openservice/componentManage";
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
}, {
|
|
3819
|
-
readonly key: RouteKey.customMenu;
|
|
3820
|
-
readonly path: "/openservice/componentManage/customMenu";
|
|
3821
|
-
}, {
|
|
3822
|
-
readonly key: RouteKey.customPage;
|
|
3823
|
-
readonly path: "/openservice/componentManage/customPage";
|
|
3824
|
-
}];
|
|
3735
|
+
}, {
|
|
3736
|
+
readonly key: RouteKey.customMenu;
|
|
3737
|
+
readonly path: "/openservice/componentMenu";
|
|
3825
3738
|
}, {
|
|
3826
3739
|
readonly key: RouteKey.customTemplate;
|
|
3827
3740
|
readonly path: "/openservice/defineTemplate";
|
|
@@ -3876,9 +3789,6 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
3876
3789
|
}, {
|
|
3877
3790
|
readonly key: RouteKey.viewBoard;
|
|
3878
3791
|
readonly path: "/view/card";
|
|
3879
|
-
}, {
|
|
3880
|
-
readonly key: RouteKey.viewExploration;
|
|
3881
|
-
readonly path: "/view/exploration";
|
|
3882
3792
|
}, {
|
|
3883
3793
|
readonly key: RouteKey.viewFavorite;
|
|
3884
3794
|
readonly path: "/view/favorite";
|
|
@@ -4153,16 +4063,6 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
4153
4063
|
readonly key: RouteKey.downloadPublicView;
|
|
4154
4064
|
readonly path: "/token3rd/offline/view/pc.htm";
|
|
4155
4065
|
}];
|
|
4156
|
-
}, {
|
|
4157
|
-
readonly key: RouteKey.explorationRoot;
|
|
4158
|
-
readonly path: "/exploration";
|
|
4159
|
-
readonly children: [{
|
|
4160
|
-
readonly key: RouteKey.explorationEdit;
|
|
4161
|
-
readonly path: "/exploration/pc.htm";
|
|
4162
|
-
}, {
|
|
4163
|
-
readonly key: RouteKey.explorationView;
|
|
4164
|
-
readonly path: "/exploration/view/pc.htm";
|
|
4165
|
-
}];
|
|
4166
4066
|
}, {
|
|
4167
4067
|
readonly key: RouteKey.analysisRoot;
|
|
4168
4068
|
readonly path: "/analysis";
|
|
@@ -4504,9 +4404,7 @@ declare module '@quickbi/bi-types/permission-type' {
|
|
|
4504
4404
|
/** 资源包管理 */
|
|
4505
4405
|
resourceConfig = "resourceConfig",
|
|
4506
4406
|
/** 小Q报告 */
|
|
4507
|
-
qReport = "qreport"
|
|
4508
|
-
/** 探索分析 */
|
|
4509
|
-
exploration = "exploration"
|
|
4407
|
+
qReport = "qreport"
|
|
4510
4408
|
}
|
|
4511
4409
|
}
|
|
4512
4410
|
|
|
@@ -4582,8 +4480,7 @@ declare module '@quickbi/bi-types/data-panel/base' {
|
|
|
4582
4480
|
AGGREGATE_CALC_FIELD = "AGGREGATE_CALC_FIELD",
|
|
4583
4481
|
FIELD_GROUP = "FIELD_GROUP",
|
|
4584
4482
|
AGGREGATE_FIELD = "AGGREGATE_FIELD",
|
|
4585
|
-
STRING_FIELD = "STRING_FIELD"
|
|
4586
|
-
GROUP_CONTRAST = "GROUP_CONTRAST"
|
|
4483
|
+
STRING_FIELD = "STRING_FIELD"
|
|
4587
4484
|
}
|
|
4588
4485
|
export enum ResultMode {
|
|
4589
4486
|
SELECT_ALL = "selectAll",
|
|
@@ -5116,27 +5013,6 @@ declare module '@quickbi/bi-types/data-panel/data-config' {
|
|
|
5116
5013
|
isMultiField?: boolean;
|
|
5117
5014
|
/** 父字段的guid */
|
|
5118
5015
|
parentFieldGuid?: string;
|
|
5119
|
-
/** 是否虚拟字段,如散点图中的聚类字段、线柱图中的度量名字段 */
|
|
5120
|
-
isVirtual?: boolean;
|
|
5121
|
-
/** 分组对比组配置, 如果有 groupContrast, 说明是分组对比字段 */
|
|
5122
|
-
groupContrast?: GroupContrast[];
|
|
5123
|
-
}
|
|
5124
|
-
export interface GroupContrast<T = DataConfigAreaItemColumn> {
|
|
5125
|
-
/** 分组 id */
|
|
5126
|
-
groupId: string;
|
|
5127
|
-
/** 分组名称 */
|
|
5128
|
-
groupName: string;
|
|
5129
|
-
/** 分组字段 */
|
|
5130
|
-
columnList: Partial<T>[];
|
|
5131
|
-
/** 差值分组配置 */
|
|
5132
|
-
diffConfig?: {
|
|
5133
|
-
/** 差值类型:差值对比/差值百分比 */
|
|
5134
|
-
calcTypes: 'INCREASE_VALUE' | 'INCREASE_RATIO';
|
|
5135
|
-
/** 源分组id(基准分组) */
|
|
5136
|
-
baseGroupId: string;
|
|
5137
|
-
/** 比较分组id(对比分组) */
|
|
5138
|
-
targetGroupId: string;
|
|
5139
|
-
};
|
|
5140
5016
|
}
|
|
5141
5017
|
export enum ContrastType {
|
|
5142
5018
|
DAY_DAY_RING_RATIO = "day_day",
|
|
@@ -5193,10 +5069,9 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5193
5069
|
*/
|
|
5194
5070
|
import type * as React from 'react';
|
|
5195
5071
|
import type { BlendSchema } from '@quickbi/bi-types/cube/cube-blend';
|
|
5196
|
-
import type { CubeModel, EmptyValueDisplayConfig } from '@quickbi/bi-types/cube/cube-model';
|
|
5197
|
-
import type { Aggregator, DateGranularity, Field, FieldAttribute, FolderAndHierarchyNode, RegionGranularity } from '@quickbi/bi-types/cube/cube-schema';
|
|
5072
|
+
import type { Aggregator, CubeModel, DateGranularity, EmptyValueDisplayConfig, Field, FieldAttribute, FolderAndHierarchyNode, RegionGranularity } from '@quickbi/bi-types/cube/cube-model';
|
|
5198
5073
|
import type { FieldType, QueryAxisType, FieldGroupType, SecondFieldType, ChartStatus, StackedSortType, RetainAreaId, FieldCollectionType } from '@quickbi/bi-types/data-panel/base';
|
|
5199
|
-
import type { DataConfigAreaItemColumn
|
|
5074
|
+
import type { DataConfigAreaItemColumn } from '@quickbi/bi-types/data-panel/data-config';
|
|
5200
5075
|
export interface ValidateResult {
|
|
5201
5076
|
isValid: boolean;
|
|
5202
5077
|
msg?: Message;
|
|
@@ -5232,13 +5107,9 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5232
5107
|
/** 下钻配置的辅助字段(交叉表、明细表) */
|
|
5233
5108
|
auxiliaryField = "auxiliaryField",
|
|
5234
5109
|
/** 空值展示配置 */
|
|
5235
|
-
emptyValueDisplay = "emptyValueDisplay"
|
|
5236
|
-
/** 钻取开关(开启下钻/取消下钻) */
|
|
5237
|
-
drillSwitch = "drillSwitch",
|
|
5238
|
-
/** 钻取层级配置 */
|
|
5239
|
-
drillConfig = "drillConfig"
|
|
5110
|
+
emptyValueDisplay = "emptyValueDisplay"
|
|
5240
5111
|
}
|
|
5241
|
-
export type DropDownMenuFieldConfig = AggregationConfig | ContrastConfig | AdvancedCalculationConfig | NumberFormatConfig | LabelConfig | AlignConfig | VerticalAlignConfig | SortConfig | FieldGroupConfig | ChartTypeConfig | ImageSizeConfig | TimeFormatConfig | HidenConfig | AuxiliaryFieldConfig | EmptyValueDisplayFieldConfig
|
|
5112
|
+
export type DropDownMenuFieldConfig = AggregationConfig | ContrastConfig | AdvancedCalculationConfig | NumberFormatConfig | LabelConfig | AlignConfig | VerticalAlignConfig | SortConfig | FieldGroupConfig | ChartTypeConfig | ImageSizeConfig | TimeFormatConfig | HidenConfig | AuxiliaryFieldConfig | EmptyValueDisplayFieldConfig;
|
|
5242
5113
|
export type FieldConfigs = Array<DropDownMenuFieldConfig>;
|
|
5243
5114
|
export type ResetFieldConfigType = {
|
|
5244
5115
|
menuInfo: DropdownMenuItem;
|
|
@@ -5301,7 +5172,6 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5301
5172
|
avg = "avg",
|
|
5302
5173
|
count = "count",
|
|
5303
5174
|
countd = "countd",
|
|
5304
|
-
approx_distinct = "approx_distinct",
|
|
5305
5175
|
null = "null",
|
|
5306
5176
|
more = "more",
|
|
5307
5177
|
max = "max",
|
|
@@ -5419,7 +5289,6 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5419
5289
|
/** 字段别名 */
|
|
5420
5290
|
export interface LabelConfig extends FieldCommonConfig {
|
|
5421
5291
|
type: FieldConfigTypes.rename;
|
|
5422
|
-
title?: string;
|
|
5423
5292
|
useDescription?: boolean;
|
|
5424
5293
|
}
|
|
5425
5294
|
/** 对齐类别 */
|
|
@@ -5529,14 +5398,6 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5529
5398
|
type: FieldConfigTypes.emptyValueDisplay;
|
|
5530
5399
|
config?: EmptyValueDisplayConfig;
|
|
5531
5400
|
}
|
|
5532
|
-
/** 钻取开关(开启下钻/取消下钻) */
|
|
5533
|
-
export interface DrillSwitchConfig extends FieldCommonConfig {
|
|
5534
|
-
type: FieldConfigTypes.drillSwitch;
|
|
5535
|
-
}
|
|
5536
|
-
/** 钻取层级配置 */
|
|
5537
|
-
export interface DrillConfigConfig extends FieldCommonConfig {
|
|
5538
|
-
type: FieldConfigTypes.drillConfig;
|
|
5539
|
-
}
|
|
5540
5401
|
/**
|
|
5541
5402
|
* 每个下拉菜单的选项
|
|
5542
5403
|
*/
|
|
@@ -5608,8 +5469,6 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5608
5469
|
defaultValues?: string[];
|
|
5609
5470
|
};
|
|
5610
5471
|
};
|
|
5611
|
-
/** 分组对比字段新增时自动打开配置且只打开一次,设置为运行时状态 */
|
|
5612
|
-
groupContrastAutoOpen?: boolean;
|
|
5613
5472
|
}
|
|
5614
5473
|
/** 字段组内具体字段的字段信息,包含是否隐藏等+columnList信息 */
|
|
5615
5474
|
export interface ChildFieldInfo {
|
|
@@ -5669,13 +5528,10 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5669
5528
|
description?: React.ReactNode;
|
|
5670
5529
|
customRenderer?: React.ReactNode;
|
|
5671
5530
|
isVirtualField?: boolean;
|
|
5672
|
-
colorType?: Field['type'];
|
|
5673
5531
|
/** 虚拟字段icon */
|
|
5674
5532
|
operations?: VirtualFieldOperation[];
|
|
5675
5533
|
/** 触发事件 */
|
|
5676
5534
|
onClick?: Function;
|
|
5677
|
-
/** 分组对比组配置, 如果有 groupContrast, 说明是分组对比字段 */
|
|
5678
|
-
groupContrast?: GroupContrast<DataConfigAreaItemColumn>[];
|
|
5679
5535
|
}
|
|
5680
5536
|
/** [字段集]FieldCollectionInfo信息 */
|
|
5681
5537
|
export interface FieldCollectionInfo {
|
|
@@ -5750,7 +5606,7 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5750
5606
|
}
|
|
5751
5607
|
export class DataSchemaRule {
|
|
5752
5608
|
/** 默认展示值 */
|
|
5753
|
-
placeholder?: string
|
|
5609
|
+
placeholder?: string;
|
|
5754
5610
|
/** 字段配置个数限制 */
|
|
5755
5611
|
maxColNum?: number | ((areaMap: AreaMap, options: {
|
|
5756
5612
|
isConvertQueryInput?: boolean;
|
|
@@ -5917,8 +5773,6 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5917
5773
|
isExtendAssociateFields?: boolean;
|
|
5918
5774
|
/** 是否切换数据集 */
|
|
5919
5775
|
isSwitchCube?: boolean;
|
|
5920
|
-
/** 是否需要进行重新取数(探索分析场景由查询控件触发) */
|
|
5921
|
-
needRefetch?: boolean;
|
|
5922
5776
|
}
|
|
5923
5777
|
export type OnChangeCubeOptions = Omit<OnFreshComponentOptions, 'isClickButton' | 'refreshMobileChart' | 'ReloadCube' | 'noPollingCache'>;
|
|
5924
5778
|
export type OnFreshComponentType = (comp: any, changeAttributeList?: string[], isFresh?: boolean, options?: OnFreshComponentOptions) => any;
|
|
@@ -5971,10 +5825,6 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5971
5825
|
timeCompletion: string;
|
|
5972
5826
|
/** 空值展示配置 */
|
|
5973
5827
|
emptyValueDisplay: string;
|
|
5974
|
-
/** 钻取开关(开启下钻/取消下钻) */
|
|
5975
|
-
drillSwitch: string;
|
|
5976
|
-
/** 钻取层级配置 */
|
|
5977
|
-
drillConfig: string;
|
|
5978
5828
|
};
|
|
5979
5829
|
export {};
|
|
5980
5830
|
}
|
|
@@ -6085,132 +5935,328 @@ declare module '@quickbi/bi-types/data-panel/data-schema' {
|
|
|
6085
5935
|
|
|
6086
5936
|
declare module '@quickbi/bi-types/cube/cube-model' {
|
|
6087
5937
|
/**
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
import type {
|
|
6092
|
-
import {
|
|
6093
|
-
|
|
6094
|
-
|
|
5938
|
+
* @author 嘉念
|
|
5939
|
+
* @description 数据集接口模型
|
|
5940
|
+
*/
|
|
5941
|
+
import type { FieldExpressionModel } from '@quickbi/bi-types/cube/cube-field-expression';
|
|
5942
|
+
import type { DsCreateOriginEnum, DsType, DataLoadMode } from '@quickbi/bi-types/cube/data-source';
|
|
5943
|
+
export enum CustomAreaType {
|
|
5944
|
+
/** 自定义地理信息 */
|
|
5945
|
+
CUSTOM_AREA = "CUSTOM_AREA",
|
|
5946
|
+
/** 自定义瓦片底图 */
|
|
5947
|
+
CUSTOM_GIS = "CUSTOM_GIS",
|
|
5948
|
+
/** 自定义geojson */
|
|
5949
|
+
CUSTOM_GEOJSON = "CUSTOM_GEOJSON",
|
|
5950
|
+
/** 自定义层级 */
|
|
5951
|
+
CUSTOM_TREE = "CUSTOM_TREE",
|
|
5952
|
+
/** 自定义图片 */
|
|
5953
|
+
CUSTOM_PICTURE = "CUSTOM_PICTURE"
|
|
5954
|
+
}
|
|
5955
|
+
/** 自定义图片底图信息 */
|
|
5956
|
+
export enum PictureCoordinateType {
|
|
5957
|
+
/** 纵坐标 */
|
|
5958
|
+
HORIZONTAL = "CUSTOM_PICTURE_HORIZONTAL",
|
|
5959
|
+
/** 横坐标 */
|
|
5960
|
+
VERTICAL = "CUSTOM_PICTURE_VERTICAL"
|
|
5961
|
+
}
|
|
5962
|
+
/** 自定义地理信息 */
|
|
5963
|
+
export interface ExtraInfo {
|
|
5964
|
+
/** 自定义层级Id */
|
|
5965
|
+
customGeoLevel?: number;
|
|
5966
|
+
/** 自定义图片类型 */
|
|
5967
|
+
pictureCoordinateType?: PictureCoordinateType;
|
|
5968
|
+
}
|
|
5969
|
+
/**
|
|
5970
|
+
* 关联字段
|
|
5971
|
+
* 数据混合blend和数据集物理表关联physical均使用该字段
|
|
5972
|
+
*/
|
|
5973
|
+
export type JoinKey = {
|
|
5974
|
+
/** 源表字段(blend模式为数据集字段id,physical模式为物理字段名) */
|
|
5975
|
+
sourceKey: string;
|
|
5976
|
+
/**
|
|
5977
|
+
* @deprecated
|
|
5978
|
+
* 源表关联物理字段类型(QBI目前没在用,保留)
|
|
5979
|
+
*/
|
|
5980
|
+
sourceType?: string;
|
|
5981
|
+
/** 目标表字段(blend模式为数据集字段id,physical模式为物理字段名) */
|
|
5982
|
+
targetKey: string;
|
|
5983
|
+
/**
|
|
5984
|
+
* @deprecated
|
|
5985
|
+
* 标表关联物理字段类型(QBI目前没在用,保留)
|
|
5986
|
+
*/
|
|
5987
|
+
targetType?: string;
|
|
5988
|
+
/**
|
|
5989
|
+
* 条件
|
|
5990
|
+
*/
|
|
5991
|
+
condition: JoinCondition;
|
|
5992
|
+
/**
|
|
5993
|
+
* 目前仅physical模式使用
|
|
5994
|
+
*/
|
|
5995
|
+
targetCalculateMember?: boolean;
|
|
5996
|
+
/**
|
|
5997
|
+
* 目前仅physical模式使用
|
|
5998
|
+
*/
|
|
5999
|
+
sourceCalculateMember?: boolean;
|
|
6000
|
+
};
|
|
6001
|
+
/** 物理表类型 */
|
|
6002
|
+
export enum PhysicalTableType {
|
|
6003
|
+
/** 物理表 */
|
|
6004
|
+
Table = "table",
|
|
6005
|
+
/** 自定义SQL */
|
|
6006
|
+
Sql = "sql",
|
|
6007
|
+
/** 上传文件(探索空间 & 数据库)、API数据源、文档数据源 */
|
|
6008
|
+
File = "file"
|
|
6009
|
+
}
|
|
6010
|
+
/** 表模型 */
|
|
6011
|
+
export interface PhysicalTable {
|
|
6012
|
+
/** 唯一标识 */
|
|
6013
|
+
uniqueId: string;
|
|
6014
|
+
/** 表展示名称 */
|
|
6015
|
+
caption?: string;
|
|
6016
|
+
/** 表id */
|
|
6017
|
+
tableName: string;
|
|
6018
|
+
/** 物理表所属数据源ID */
|
|
6019
|
+
datasourceId: string;
|
|
6020
|
+
/** 是否为事实表(中心表标识) */
|
|
6021
|
+
factTable: boolean;
|
|
6022
|
+
/** 数据源类型 */
|
|
6023
|
+
dsType: DsType;
|
|
6024
|
+
/** 表类型(不落库,每次获取cubeSchema模型时后端实时查询返回) */
|
|
6025
|
+
tableType?: PhysicalTableType;
|
|
6026
|
+
}
|
|
6027
|
+
/** 表模型 */
|
|
6028
|
+
export interface VirtualTable {
|
|
6029
|
+
/** 唯一标识 */
|
|
6030
|
+
uniqueId: string;
|
|
6031
|
+
/** 表展示名称 */
|
|
6032
|
+
caption: string;
|
|
6033
|
+
/** 表名 */
|
|
6034
|
+
tableName: string;
|
|
6035
|
+
/** 物理表所属数据源ID */
|
|
6036
|
+
datasourceId: string;
|
|
6037
|
+
/** 是否为事实表(中心表标识) */
|
|
6038
|
+
factTable: boolean;
|
|
6039
|
+
dsType: DsType;
|
|
6040
|
+
sqlId: string;
|
|
6041
|
+
sql: string;
|
|
6042
|
+
/** 表类型(不落库,每次获取cubeSchema模型时后端实时查询返回) */
|
|
6043
|
+
tableType?: PhysicalTableType;
|
|
6044
|
+
}
|
|
6045
|
+
/** 合并字段来源表信息 */
|
|
6046
|
+
export interface UnionTableColumnModel {
|
|
6047
|
+
/** 来源表id */
|
|
6048
|
+
table: string;
|
|
6049
|
+
/** 来源字段物理字段名(表名称列不传) */
|
|
6050
|
+
column?: string;
|
|
6051
|
+
/** 来源表的名称(表名称列需要传) */
|
|
6052
|
+
value?: string;
|
|
6053
|
+
}
|
|
6054
|
+
/** 合并字段 */
|
|
6055
|
+
export interface UnionColumn {
|
|
6056
|
+
/** 合并后的字段名 */
|
|
6057
|
+
column: string;
|
|
6058
|
+
/** 备注 */
|
|
6059
|
+
caption: string;
|
|
6060
|
+
/** 合并字段的来源表字段信息 */
|
|
6061
|
+
tableColumns: UnionTableColumnModel[];
|
|
6062
|
+
/** 非源表字段,自动生成的表名称列 */
|
|
6063
|
+
isAuto?: boolean;
|
|
6064
|
+
}
|
|
6065
|
+
/** 合并表模型 */
|
|
6066
|
+
export interface UnionTable extends PhysicalTable {
|
|
6067
|
+
/** 物理表 */
|
|
6068
|
+
tables: PhysicalTable[];
|
|
6069
|
+
/** 自定义sql、view */
|
|
6070
|
+
virtualTables: VirtualTable[];
|
|
6071
|
+
/** 合并字段信息 */
|
|
6072
|
+
unionColumns: UnionColumn[];
|
|
6073
|
+
}
|
|
6074
|
+
export interface Link {
|
|
6075
|
+
/** 源表id(blend模式为数据集id,physical模式为物理表id) */
|
|
6076
|
+
source: string;
|
|
6077
|
+
/** 关联表id(blend模式为数据集id,physical模式为物理表id) */
|
|
6078
|
+
target: string;
|
|
6079
|
+
/** 关联类型 */
|
|
6080
|
+
joinType: TableJoinType;
|
|
6081
|
+
/**
|
|
6082
|
+
* @deprecated
|
|
6083
|
+
* 目前只有many-to-one
|
|
6084
|
+
*/
|
|
6085
|
+
relation?: TableRelation;
|
|
6086
|
+
joinKeys: JoinKey[];
|
|
6087
|
+
}
|
|
6088
|
+
/** 物理表关联模型 */
|
|
6089
|
+
export type PhysicalLink = Link;
|
|
6090
|
+
export class PhysicalSchema {
|
|
6091
|
+
/** 物理表 */
|
|
6092
|
+
tables: PhysicalTable[];
|
|
6093
|
+
/** 自定义sql、view */
|
|
6094
|
+
virtualTables: VirtualTable[];
|
|
6095
|
+
/** union合并表 */
|
|
6096
|
+
unionTables: UnionTable[];
|
|
6097
|
+
/** 表关联关系 */
|
|
6098
|
+
links: PhysicalLink[];
|
|
6099
|
+
/** odps表是否开启全表扫描 */
|
|
6100
|
+
sqlHintTypes?: string[];
|
|
6101
|
+
sqlHints?: HintModal[];
|
|
6102
|
+
}
|
|
6103
|
+
/** 数据集层级结构/文件夹/属性的嵌套关系 */
|
|
6104
|
+
export type FieldTree = AttributeNode | FolderAndHierarchyNode;
|
|
6105
|
+
export type AttributeMapValue = {
|
|
6106
|
+
attribute: FieldAttribute;
|
|
6107
|
+
type: 'Dimension' | 'Measure';
|
|
6108
|
+
};
|
|
6109
|
+
/** 数据集逻辑模型 */
|
|
6110
|
+
export class CubeSchema {
|
|
6111
|
+
/** 唯一标识,无业务逻辑,不要使用 */
|
|
6112
|
+
uniqueId: string;
|
|
6113
|
+
/** 数据集ID */
|
|
6114
|
+
cubeId: string;
|
|
6115
|
+
/** 数据源ID */
|
|
6116
|
+
datasourceId: string;
|
|
6117
|
+
/** 数据集名称 */
|
|
6118
|
+
caption: string;
|
|
6119
|
+
/** 字段列表 */
|
|
6120
|
+
fields: Field[];
|
|
6121
|
+
/** 普通字段、层系、文件夹树形结构 */
|
|
6122
|
+
fieldTree: FieldTree[];
|
|
6123
|
+
/** 过滤条件 */
|
|
6124
|
+
filter?: FilterAttr[];
|
|
6125
|
+
/** 全局参数 */
|
|
6126
|
+
params: ParamType[];
|
|
6127
|
+
/** 占位符 */
|
|
6128
|
+
sqlPlaceholders: ParamType[];
|
|
6129
|
+
}
|
|
6095
6130
|
/** 编辑权限属性 */
|
|
6096
6131
|
export enum EditPermitType {
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6132
|
+
/** 脏数据代表空间成员 */
|
|
6133
|
+
oldWorkSpaceMember = 1,
|
|
6134
|
+
/** 指定成员 */
|
|
6135
|
+
appointPerson = 12,
|
|
6136
|
+
/** 全部空间成员 */
|
|
6137
|
+
allWorkSpacePerson = 11
|
|
6103
6138
|
}
|
|
6104
6139
|
/** 使用权限属性 */
|
|
6105
6140
|
export enum UsePermitType {
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6141
|
+
/** 指定成员 */
|
|
6142
|
+
appointPerson = 2,
|
|
6143
|
+
/** 全部空间成员 */
|
|
6144
|
+
allWorkSpacePerson = 1
|
|
6110
6145
|
}
|
|
6111
6146
|
/** 数据集额外信息 */
|
|
6112
6147
|
export class SchemaExtraInfo {
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6148
|
+
/** 数据集所在工作空间的文件夹位置 */
|
|
6149
|
+
aimDirId: string;
|
|
6150
|
+
hasAuthorizedUse?: boolean;
|
|
6151
|
+
/** 权限列表 */
|
|
6152
|
+
permissionList?: string[];
|
|
6153
|
+
/** 行级权限,列级权限字段id */
|
|
6154
|
+
dataLevelAttributeIds: string[];
|
|
6155
|
+
/** 无列级权限的字段 */
|
|
6156
|
+
withoutColumnLevelPermissionFields: string[];
|
|
6157
|
+
/** 聚合方式 */
|
|
6158
|
+
aggFunctions?: string[];
|
|
6159
|
+
/** 是否开启数据脱敏 */
|
|
6160
|
+
isDataMaskOpen?: number;
|
|
6161
|
+
/** 是否开启列级权限 1=开启 0=未开启 */
|
|
6162
|
+
isOpenColumnLevelPermission?: number;
|
|
6163
|
+
/** 是否开启了行级权限 1=开启 0=未开启 */
|
|
6164
|
+
isOpenRowLevelPermission?: number;
|
|
6165
|
+
/** 当前数据集来自的类型 */
|
|
6166
|
+
dsCreateOrigin?: DsCreateOriginEnum;
|
|
6167
|
+
/** 跨源模式 */
|
|
6168
|
+
dataLoadMode?: DataLoadMode;
|
|
6169
|
+
/** 是否为etl 生成的数据集 */
|
|
6170
|
+
etlGenerateCube?: boolean;
|
|
6171
|
+
/** 数据集类型 */
|
|
6172
|
+
cubeType?: 'upload' | 'upload_static';
|
|
6173
|
+
/** 数据集owner */
|
|
6174
|
+
creatorId?: string;
|
|
6175
|
+
/** 数据集owner name */
|
|
6176
|
+
creatorName?: string;
|
|
6177
|
+
/** 编辑权限属性 0-私密 11-空间成员 12-指定成员 1-脏数据代表空间成员 */
|
|
6178
|
+
authLevel?: EditPermitType;
|
|
6179
|
+
/** 数据集描述 */
|
|
6180
|
+
comments?: string;
|
|
6181
|
+
/** 使用权限属性 1-空间成员 2-指定人 */
|
|
6182
|
+
authorizedUseType?: UsePermitType;
|
|
6183
|
+
/** */
|
|
6184
|
+
functionConfig: {
|
|
6185
|
+
enableCache: boolean;
|
|
6186
|
+
enableCalculateMember: boolean;
|
|
6187
|
+
enableCustomizedSql: boolean;
|
|
6188
|
+
enableJoin: boolean;
|
|
6189
|
+
};
|
|
6190
|
+
/** 数据集修改时间 */
|
|
6191
|
+
gmtModified?: string;
|
|
6157
6192
|
}
|
|
6158
|
-
/**
|
|
6159
|
-
export
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6193
|
+
/** 数据集模型 */
|
|
6194
|
+
export class CubeModel {
|
|
6195
|
+
/** 物理表 */
|
|
6196
|
+
physicalSchema: PhysicalSchema;
|
|
6197
|
+
/** 数据集逻辑模型 */
|
|
6198
|
+
cubeSchema: CubeSchema;
|
|
6199
|
+
/** 数据集结构版本 */
|
|
6200
|
+
metaModelVersion: string;
|
|
6201
|
+
/** 数据集订正版本(前端使用) */
|
|
6202
|
+
userDefineVersion: string;
|
|
6203
|
+
/** 数据集额外信息 */
|
|
6204
|
+
schemaExtraInfo: SchemaExtraInfo;
|
|
6164
6205
|
}
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6206
|
+
/** 数据集影子模型 */
|
|
6207
|
+
export type CubeShadow = CubeSchema;
|
|
6208
|
+
/** 表关联类型 */
|
|
6209
|
+
export enum TableJoinType {
|
|
6210
|
+
/** 左连接 */
|
|
6211
|
+
LEFT_OUTER_JOIN = "LEFT_OUTER_JOIN",
|
|
6212
|
+
/** 内连接 */
|
|
6213
|
+
INNER_JOIN = "INNER_JOIN",
|
|
6214
|
+
/** 右连接 */
|
|
6215
|
+
RIGHT_OUTER_JOIN = "RIGHT_OUTER_JOIN",
|
|
6216
|
+
/** 全连接 */
|
|
6217
|
+
FULL_OUTER_JOIN = "FULL_OUTER_JOIN",
|
|
6218
|
+
JOIN_ERROR = "JOIN_ERROR"
|
|
6172
6219
|
}
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
/** 空值展示配置 */
|
|
6176
|
-
emptyValueConfig: EmptyStringOrNullDisplayConfig;
|
|
6177
|
-
/** 空字符串展示配置 */
|
|
6178
|
-
emptyStringConfig: EmptyStringOrNullDisplayConfig;
|
|
6179
|
-
static getDefaultConfigForQuickReport(): EmptyValueDisplayConfig;
|
|
6180
|
-
static convertAttrEmptyValueDisplayConfig(attr: FieldAttribute, isAuto?: boolean): EmptyValueDisplayConfig;
|
|
6181
|
-
/** 根据fieldSettingMap中存储的配置转换成空值展示配置模型 */
|
|
6182
|
-
static getConfigByFieldSettingMap(fieldSetting: any, defaultValue?: any): EmptyValueDisplayConfig;
|
|
6220
|
+
export enum TableRelation {
|
|
6221
|
+
MANY_TO_ONE = "many-to-one"
|
|
6183
6222
|
}
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6223
|
+
export enum JoinCondition {
|
|
6224
|
+
/** 等于 */
|
|
6225
|
+
EQUAL_TO = "equal-to",
|
|
6226
|
+
/** 不等于 */
|
|
6227
|
+
UNEQUAL_TO = "unequal-to",
|
|
6228
|
+
/** 大于 */
|
|
6229
|
+
GREATER_THAN = "greater-than",
|
|
6230
|
+
/** 大于等于 */
|
|
6231
|
+
GREATER_THAN_OR_EQUAL_TO = "greater-than-or-equal-to",
|
|
6232
|
+
/** 小于 */
|
|
6233
|
+
LESS_THAN = "less-than",
|
|
6234
|
+
/** 小于等于 */
|
|
6235
|
+
LESS_THAN_OR_EQUAL_TO = "less-than-or-equal-to"
|
|
6192
6236
|
}
|
|
6193
|
-
/**
|
|
6194
|
-
export
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6237
|
+
/** 字段列表定义,包含维度、度量 */
|
|
6238
|
+
export interface Field {
|
|
6239
|
+
/** 唯一标识 */
|
|
6240
|
+
uniqueId: string;
|
|
6241
|
+
/** 字段名称 */
|
|
6242
|
+
caption: string;
|
|
6243
|
+
type: 'Dimension' | 'Measure';
|
|
6244
|
+
/** 标记数据面板上的字段、文件夹,和数据集原有的字段、文件夹区别开来 */
|
|
6245
|
+
fromPanel?: boolean;
|
|
6246
|
+
/** 老接口保留字段(计算字段expression中作为唯一标识使用),新数据跟uniqueId值相同 */
|
|
6247
|
+
name?: string;
|
|
6248
|
+
/** 引用表id */
|
|
6249
|
+
table: string;
|
|
6250
|
+
/** 物理字段 */
|
|
6251
|
+
column: string;
|
|
6252
|
+
/** 是否为衍生字段,分组字段和计算字段都为true */
|
|
6253
|
+
calculateMember: boolean;
|
|
6254
|
+
/** 字段描述,仅日期类型会使用 */
|
|
6255
|
+
comments?: string;
|
|
6256
|
+
/** 是否支持修改字段类型 */
|
|
6257
|
+
supportCastDataType?: boolean;
|
|
6258
|
+
attributes: FieldAttribute[];
|
|
6205
6259
|
}
|
|
6206
|
-
}
|
|
6207
|
-
|
|
6208
|
-
declare module '@quickbi/bi-types/cube/cube-schema' {
|
|
6209
|
-
/**
|
|
6210
|
-
* @author 嘉念
|
|
6211
|
-
* @description 数据集字段相关模型
|
|
6212
|
-
*/
|
|
6213
|
-
import type { FieldExpressionModel } from '@quickbi/bi-types/cube/cube-field-expression';
|
|
6214
6260
|
/** 当前数据类型,如果没有进行过类型切换,则和OriginDataType一致 影响sql生成 (原colType) */
|
|
6215
6261
|
export enum DataType {
|
|
6216
6262
|
number = "number",
|
|
@@ -6233,15 +6279,6 @@ declare module '@quickbi/bi-types/cube/cube-schema' {
|
|
|
6233
6279
|
}
|
|
6234
6280
|
/** 物理数据类型:第一次初始化时填写,后续不会修改 */
|
|
6235
6281
|
export type OriginDataType = DataType;
|
|
6236
|
-
/** 度量类型聚合方式 */
|
|
6237
|
-
export enum Aggregator {
|
|
6238
|
-
'sum' = "sum",
|
|
6239
|
-
'count' = "count",
|
|
6240
|
-
'distinct-count' = "distinct-count",
|
|
6241
|
-
'max' = "max",
|
|
6242
|
-
'min' = "min",
|
|
6243
|
-
'avg' = "avg"
|
|
6244
|
-
}
|
|
6245
6282
|
/** 年粒度日期类型 */
|
|
6246
6283
|
export enum CalendarTypeEnum {
|
|
6247
6284
|
/** 公历年 */
|
|
@@ -6294,44 +6331,78 @@ declare module '@quickbi/bi-types/cube/cube-schema' {
|
|
|
6294
6331
|
semicolon = ";",
|
|
6295
6332
|
space = " "
|
|
6296
6333
|
}
|
|
6297
|
-
/**
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6334
|
+
/**
|
|
6335
|
+
* 维度树结构类型
|
|
6336
|
+
* Normal: 正常层级结构
|
|
6337
|
+
* Date: 日期类型层级结构
|
|
6338
|
+
* Linked: 关联类型文件夹
|
|
6339
|
+
*/
|
|
6340
|
+
export type DimensionTreeFlags = 'DimensionNormal' | 'DimensionDate' | 'DimensionLinked' | null;
|
|
6341
|
+
/**
|
|
6342
|
+
* 度量树结构类型
|
|
6343
|
+
* Normal: 正常层级结构
|
|
6344
|
+
* Linked: 关联类型文件夹
|
|
6345
|
+
*/
|
|
6346
|
+
export type MeasureTreeFlags = 'MeasureNormal' | 'MeasureLinked' | null;
|
|
6347
|
+
/**
|
|
6348
|
+
* 树节点类型
|
|
6349
|
+
* folder: 文件夹
|
|
6350
|
+
* hierarchy: 层级结构
|
|
6351
|
+
* attribute: 普通节点
|
|
6352
|
+
* dimensionGroup: 维度组
|
|
6353
|
+
* measureGroup: 度量组
|
|
6354
|
+
* lnglatGroup: 经纬度组
|
|
6355
|
+
* */
|
|
6356
|
+
export type TreeNodeTypes = 'folder' | 'hierarchy' | 'attribute' | 'dimensionGroup' | 'measureGroup' | 'lnglatGroup';
|
|
6357
|
+
/** 占位符类型 */
|
|
6358
|
+
export enum ParamStyleType {
|
|
6359
|
+
/** 条件占位符 */
|
|
6360
|
+
condition = "condition",
|
|
6361
|
+
/** 值占位符 */
|
|
6362
|
+
placeholder = "placeholder",
|
|
6363
|
+
/** 表达式占位符 */
|
|
6364
|
+
param = "param",
|
|
6365
|
+
/** 加速占位符 */
|
|
6366
|
+
accelerate = "accelerate"
|
|
6309
6367
|
}
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
CUSTOM_GEOJSON = "CUSTOM_GEOJSON",
|
|
6317
|
-
/** 自定义层级 */
|
|
6318
|
-
CUSTOM_TREE = "CUSTOM_TREE",
|
|
6319
|
-
/** 自定义图片 */
|
|
6320
|
-
CUSTOM_PICTURE = "CUSTOM_PICTURE"
|
|
6368
|
+
/** 空值展示配置类型 */
|
|
6369
|
+
export enum EmptyValueType {
|
|
6370
|
+
/** 空值 */
|
|
6371
|
+
EmptyValue = "EmptyValue",
|
|
6372
|
+
/** 空字符串 */
|
|
6373
|
+
EmptyString = "EmptyString"
|
|
6321
6374
|
}
|
|
6322
|
-
/**
|
|
6323
|
-
export enum
|
|
6324
|
-
/**
|
|
6325
|
-
|
|
6326
|
-
/**
|
|
6327
|
-
|
|
6375
|
+
/** 空值展示配置枚举 */
|
|
6376
|
+
export enum EmptyValueDisplayType {
|
|
6377
|
+
/** 展示为'-' */
|
|
6378
|
+
Hyphen = "hyphen",
|
|
6379
|
+
/** 展示为{空}/{空字符串} */
|
|
6380
|
+
Braces = "braces",
|
|
6381
|
+
/** 展示为"null" */
|
|
6382
|
+
Null = "null",
|
|
6383
|
+
/** 不展示 */
|
|
6384
|
+
NotDisplay = "notDisplay",
|
|
6385
|
+
/** 自定义 */
|
|
6386
|
+
Custom = "custom"
|
|
6328
6387
|
}
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6388
|
+
export class EmptyStringOrNullDisplayConfig {
|
|
6389
|
+
/** 展示类型 */
|
|
6390
|
+
formatType: EmptyValueDisplayType;
|
|
6391
|
+
/** 自定义展示内容 */
|
|
6392
|
+
customFormat: string;
|
|
6393
|
+
/** 是否是自动(继承数据集) */
|
|
6394
|
+
isAuto?: boolean;
|
|
6395
|
+
}
|
|
6396
|
+
/** 空值展示配置 */
|
|
6397
|
+
export class EmptyValueDisplayConfig {
|
|
6398
|
+
/** 空值展示配置 */
|
|
6399
|
+
emptyValueConfig: EmptyStringOrNullDisplayConfig;
|
|
6400
|
+
/** 空字符串展示配置 */
|
|
6401
|
+
emptyStringConfig: EmptyStringOrNullDisplayConfig;
|
|
6402
|
+
static getDefaultConfigForQuickReport(): EmptyValueDisplayConfig;
|
|
6403
|
+
static convertAttrEmptyValueDisplayConfig(attr: FieldAttribute, isAuto?: boolean): EmptyValueDisplayConfig;
|
|
6404
|
+
/** 根据fieldSettingMap中存储的配置转换成空值展示配置模型 */
|
|
6405
|
+
static getConfigByFieldSettingMap(fieldSetting: any, defaultValue?: any): EmptyValueDisplayConfig;
|
|
6335
6406
|
}
|
|
6336
6407
|
/** 字段属性 */
|
|
6337
6408
|
export interface FieldAttribute {
|
|
@@ -6375,6 +6446,10 @@ declare module '@quickbi/bi-types/cube/cube-schema' {
|
|
|
6375
6446
|
name?: string;
|
|
6376
6447
|
/** 字段描述 */
|
|
6377
6448
|
comments?: string;
|
|
6449
|
+
/** 字段备注类型 文本/链接 */
|
|
6450
|
+
commentType?: 'text' | 'url';
|
|
6451
|
+
/** 链接模式下的链接文字(commentType=url 时有效) */
|
|
6452
|
+
commentLinkText?: string;
|
|
6378
6453
|
/** 字段自定义排序设置 */
|
|
6379
6454
|
sortModel?: {
|
|
6380
6455
|
sortType: 'ASC' | 'DESC' | 'CUSTOM';
|
|
@@ -6397,63 +6472,37 @@ declare module '@quickbi/bi-types/cube/cube-schema' {
|
|
|
6397
6472
|
customAreaType?: CustomAreaType;
|
|
6398
6473
|
/** 数据集属性额外信息 */
|
|
6399
6474
|
extraInfo?: ExtraInfo;
|
|
6400
|
-
/** 逻辑表id */
|
|
6401
|
-
node?: string;
|
|
6402
|
-
/** 物理字段 */
|
|
6403
|
-
column?: string;
|
|
6404
6475
|
}
|
|
6405
|
-
/**
|
|
6406
|
-
export
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
/**
|
|
6417
|
-
|
|
6418
|
-
/**
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
/**
|
|
6425
|
-
|
|
6426
|
-
/**
|
|
6427
|
-
|
|
6428
|
-
|
|
6476
|
+
/** 度量类型聚合方式 */
|
|
6477
|
+
export enum Aggregator {
|
|
6478
|
+
'sum' = "sum",
|
|
6479
|
+
'count' = "count",
|
|
6480
|
+
'distinct-count' = "distinct-count",
|
|
6481
|
+
'max' = "max",
|
|
6482
|
+
'min' = "min",
|
|
6483
|
+
'avg' = "avg"
|
|
6484
|
+
}
|
|
6485
|
+
export class FilterAttr {
|
|
6486
|
+
logicalOperator: 'and' | 'or';
|
|
6487
|
+
/** 过滤值 */
|
|
6488
|
+
filterElements: FilterElement[];
|
|
6489
|
+
/** 嵌套过滤条件 */
|
|
6490
|
+
filters: FilterAttr[];
|
|
6491
|
+
beforeJoin?: boolean;
|
|
6492
|
+
tableId?: string;
|
|
6493
|
+
}
|
|
6494
|
+
export interface FilterElement {
|
|
6495
|
+
/** 过滤条件引用的字段uid */
|
|
6496
|
+
resourceId: string;
|
|
6497
|
+
/** 过滤条件比较运算符:> < =, 和查询控件所用保持一致 */
|
|
6498
|
+
functionalOperator: string;
|
|
6499
|
+
values: {
|
|
6500
|
+
type?: 'absolute' | 'relative' | null;
|
|
6501
|
+
value: string;
|
|
6502
|
+
}[];
|
|
6503
|
+
/** 前端是否隐藏掉 */
|
|
6504
|
+
hidden?: boolean;
|
|
6429
6505
|
}
|
|
6430
|
-
export type AttributeMapValue = {
|
|
6431
|
-
attribute: FieldAttribute;
|
|
6432
|
-
type: 'Dimension' | 'Measure';
|
|
6433
|
-
};
|
|
6434
|
-
/**
|
|
6435
|
-
* 树节点类型
|
|
6436
|
-
* folder: 文件夹
|
|
6437
|
-
* hierarchy: 层级结构
|
|
6438
|
-
* attribute: 普通节点
|
|
6439
|
-
* dimensionGroup: 维度组
|
|
6440
|
-
* measureGroup: 度量组
|
|
6441
|
-
* lnglatGroup: 经纬度组
|
|
6442
|
-
* */
|
|
6443
|
-
export type TreeNodeTypes = 'folder' | 'hierarchy' | 'attribute' | 'dimensionGroup' | 'measureGroup' | 'lnglatGroup';
|
|
6444
|
-
/**
|
|
6445
|
-
* 维度树结构类型
|
|
6446
|
-
* Normal: 正常层级结构
|
|
6447
|
-
* Date: 日期类型层级结构
|
|
6448
|
-
* Linked: 关联类型文件夹
|
|
6449
|
-
*/
|
|
6450
|
-
export type DimensionTreeFlags = 'DimensionNormal' | 'DimensionDate' | 'DimensionLinked' | null;
|
|
6451
|
-
/**
|
|
6452
|
-
* 度量树结构类型
|
|
6453
|
-
* Normal: 正常层级结构
|
|
6454
|
-
* Linked: 关联类型文件夹
|
|
6455
|
-
*/
|
|
6456
|
-
export type MeasureTreeFlags = 'MeasureNormal' | 'MeasureLinked' | null;
|
|
6457
6506
|
/** 普通字段 */
|
|
6458
6507
|
export interface AttributeNode {
|
|
6459
6508
|
/** 字段ID */
|
|
@@ -6464,8 +6513,6 @@ declare module '@quickbi/bi-types/cube/cube-schema' {
|
|
|
6464
6513
|
fromPanel?: boolean;
|
|
6465
6514
|
/** 节点名称,attribute类型为null */
|
|
6466
6515
|
name?: null;
|
|
6467
|
-
/** 逻辑表id */
|
|
6468
|
-
node?: string;
|
|
6469
6516
|
caption?: string;
|
|
6470
6517
|
children?: (AttributeNode | FolderAndHierarchyNode)[];
|
|
6471
6518
|
flag: null;
|
|
@@ -6482,8 +6529,6 @@ declare module '@quickbi/bi-types/cube/cube-schema' {
|
|
|
6482
6529
|
fromPanel?: boolean;
|
|
6483
6530
|
/** 节点名称 */
|
|
6484
6531
|
name?: string;
|
|
6485
|
-
/** 逻辑表id */
|
|
6486
|
-
node?: string;
|
|
6487
6532
|
/** 节点名称,attribute类型为null */
|
|
6488
6533
|
caption?: string;
|
|
6489
6534
|
/** 所引用的关联表的id,仅flag为DimensionLinked和MeasureLinked时存在 */
|
|
@@ -6492,61 +6537,14 @@ declare module '@quickbi/bi-types/cube/cube-schema' {
|
|
|
6492
6537
|
/** 文件夹和层级结构类型 */
|
|
6493
6538
|
flag: DimensionTreeFlags | MeasureTreeFlags;
|
|
6494
6539
|
}
|
|
6495
|
-
/**
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
type?: 'absolute' | 'relative' | null;
|
|
6504
|
-
value: string;
|
|
6505
|
-
}[];
|
|
6506
|
-
/** 前端是否隐藏掉 */
|
|
6507
|
-
hidden?: boolean;
|
|
6508
|
-
}
|
|
6509
|
-
/** 过滤条件 */
|
|
6510
|
-
export class FilterAttr {
|
|
6511
|
-
logicalOperator: 'and' | 'or';
|
|
6512
|
-
/** 过滤值 */
|
|
6513
|
-
filterElements: FilterElement[];
|
|
6514
|
-
/** 嵌套过滤条件 */
|
|
6515
|
-
filters: FilterAttr[];
|
|
6516
|
-
beforeJoin?: boolean;
|
|
6517
|
-
tableId?: string;
|
|
6518
|
-
}
|
|
6519
|
-
/** 占位符类型 */
|
|
6520
|
-
export enum ParamStyleType {
|
|
6521
|
-
/** 条件占位符 */
|
|
6522
|
-
condition = "condition",
|
|
6523
|
-
/** 值占位符 */
|
|
6524
|
-
placeholder = "placeholder",
|
|
6525
|
-
/** 表达式占位符 */
|
|
6526
|
-
param = "param",
|
|
6527
|
-
/** 加速占位符 */
|
|
6528
|
-
accelerate = "accelerate"
|
|
6529
|
-
}
|
|
6530
|
-
/** 占位符参数 */
|
|
6531
|
-
export enum ParamDataType {
|
|
6532
|
-
/** 文本 */
|
|
6533
|
-
string = "string",
|
|
6534
|
-
/** 数值 */
|
|
6535
|
-
number = "number",
|
|
6536
|
-
/** 日期 */
|
|
6537
|
-
dateTime = "datetime",
|
|
6538
|
-
/** 日期-年月日 */
|
|
6539
|
-
dateRegion = "dateRegion",
|
|
6540
|
-
/** 日期-年季 */
|
|
6541
|
-
quarterRegion = "quarterRegion",
|
|
6542
|
-
/** 日期-年月 */
|
|
6543
|
-
monthRegion = "monthRegion",
|
|
6544
|
-
/** 日期-年周 */
|
|
6545
|
-
weekRegion = "weekRegion",
|
|
6546
|
-
/** 日期-年 */
|
|
6547
|
-
yearRegion = "yearRegion",
|
|
6548
|
-
/** 日期-年月日时分秒 */
|
|
6549
|
-
ymdHmsRegion = "ymdHmsRegion"
|
|
6540
|
+
/**
|
|
6541
|
+
* 日期占位符的类型(单个/范围)
|
|
6542
|
+
*/
|
|
6543
|
+
export enum OriginDateType {
|
|
6544
|
+
/** 单个日期 */
|
|
6545
|
+
SingleDate = "singleDate",
|
|
6546
|
+
/** 日期区间 */
|
|
6547
|
+
DateRange = "dateRange"
|
|
6550
6548
|
}
|
|
6551
6549
|
export interface ParamType {
|
|
6552
6550
|
/** sql参数id */
|
|
@@ -6563,346 +6561,47 @@ declare module '@quickbi/bi-types/cube/cube-schema' {
|
|
|
6563
6561
|
/** 是否是影子数据集的占位符 */
|
|
6564
6562
|
fromPanel?: boolean;
|
|
6565
6563
|
/** condition条件参数时,才会有该属性 */
|
|
6566
|
-
conditionPlaceHolderFields?: {
|
|
6567
|
-
uniqueId: string;
|
|
6568
|
-
name: string;
|
|
6569
|
-
column: string;
|
|
6570
|
-
table: string;
|
|
6571
|
-
}[];
|
|
6572
|
-
/** sql 占位符的原始类型 */
|
|
6573
|
-
originalType: 'dateRange';
|
|
6574
|
-
/** sql 参数,占位符默认值 */
|
|
6575
|
-
defaultValue?: (string | number)[];
|
|
6576
|
-
/** 默认值是否全局生效,true: 生效范围与过滤器一致。false: 默认值仅在数据集生效 */
|
|
6577
|
-
useInGlobal?: boolean;
|
|
6578
|
-
}
|
|
6579
|
-
/**
|
|
6580
|
-
export
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
/**
|
|
6598
|
-
|
|
6599
|
-
}
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
* @description 数据混合类型定义
|
|
6608
|
-
*/
|
|
6609
|
-
import type { CubeLinkModel, CubeLinkJoinKeyModel } from '@quickbi/bi-types/cube/cube-links';
|
|
6610
|
-
/** 数据集之间关联的模型定义 */
|
|
6611
|
-
export interface CubeLink extends Omit<CubeLinkModel, 'joinKeys'> {
|
|
6612
|
-
joinKeys: Omit<CubeLinkJoinKeyModel, 'condition'>[];
|
|
6613
|
-
}
|
|
6614
|
-
/** 数据集混合schema */
|
|
6615
|
-
export interface BlendSchema {
|
|
6616
|
-
/** 数据混合唯一id */
|
|
6617
|
-
uniqueId: string;
|
|
6618
|
-
/** 数据混合名称 */
|
|
6619
|
-
caption: string;
|
|
6620
|
-
/** 数据混合关联关系 */
|
|
6621
|
-
cubeLinks: CubeLink[];
|
|
6622
|
-
/** 标识是否存在字段id重复 */
|
|
6623
|
-
hasRepeatFid?: boolean;
|
|
6624
|
-
}
|
|
6625
|
-
/** 数据混合消费端模型定义 */
|
|
6626
|
-
export type CubeBlend = BlendSchema;
|
|
6627
|
-
}
|
|
6628
|
-
|
|
6629
|
-
declare module '@quickbi/bi-types/cube/cube-field-expression' {
|
|
6630
|
-
/**
|
|
6631
|
-
* @author 嘉念
|
|
6632
|
-
* @description 数据集字段表达式模型
|
|
6633
|
-
*/
|
|
6634
|
-
export enum FieldExpressionType {
|
|
6635
|
-
/** 分组字段 */
|
|
6636
|
-
dataGroup = "dataGroup",
|
|
6637
|
-
/** 计算字段 */
|
|
6638
|
-
udf = "udf",
|
|
6639
|
-
/** lod字段 */
|
|
6640
|
-
system = "system",
|
|
6641
|
-
/** 工具栏字段(时间差字段、缺失值替换字段、新增别名字段、拆分列字段、合并字段) */
|
|
6642
|
-
tool = "tool"
|
|
6643
|
-
}
|
|
6644
|
-
/** 工具栏字段类型 */
|
|
6645
|
-
export enum ToolFieldType {
|
|
6646
|
-
/** 时间差字段 */
|
|
6647
|
-
DateDifference = "dateDifference",
|
|
6648
|
-
/** 缺失值替换字段 */
|
|
6649
|
-
MissingValueReplacement = "missingValueReplacement",
|
|
6650
|
-
/** 维度别名字段 */
|
|
6651
|
-
ValueReplacement = "valueReplacement",
|
|
6652
|
-
/** 拆分列字段 */
|
|
6653
|
-
SplitField = "SplitField",
|
|
6654
|
-
/** 合并字段 */
|
|
6655
|
-
MergeField = "mergeField"
|
|
6656
|
-
}
|
|
6657
|
-
/** 时间差字段配置 */
|
|
6658
|
-
export interface DateDiffFieldConfig {
|
|
6659
|
-
/** 开始字段 */
|
|
6660
|
-
firstField: string;
|
|
6661
|
-
/** 结束字段 */
|
|
6662
|
-
endField: string;
|
|
6663
|
-
/** 时间单位 */
|
|
6664
|
-
timeUnit: string;
|
|
6665
|
-
}
|
|
6666
|
-
/** 维值替换字段配置 */
|
|
6667
|
-
export interface ReplaceDimValueFieldConfig {
|
|
6668
|
-
/** 引用字段Id */
|
|
6669
|
-
refUniqueId: string;
|
|
6670
|
-
/** 替换维值列表 */
|
|
6671
|
-
replaceElementList: {
|
|
6672
|
-
/** 原始值 */
|
|
6673
|
-
originalValue: string;
|
|
6674
|
-
/** 替换值 */
|
|
6675
|
-
value: string;
|
|
6676
|
-
}[];
|
|
6677
|
-
}
|
|
6678
|
-
/** 缺失值替换字段配置 */
|
|
6679
|
-
export interface MissingValueReplaceFieldConfig {
|
|
6680
|
-
/** 引用字段Id */
|
|
6681
|
-
refUniqueId: string;
|
|
6682
|
-
/** 替换空值 */
|
|
6683
|
-
replaceNullValue: boolean;
|
|
6684
|
-
/** 替换空白值 */
|
|
6685
|
-
replaceBlankValue: boolean;
|
|
6686
|
-
/** 替换值 */
|
|
6687
|
-
value: string;
|
|
6688
|
-
}
|
|
6689
|
-
/** 拆分列字段配置 */
|
|
6690
|
-
export interface SplitColumnFieldConfig {
|
|
6691
|
-
/** 引用字段Id */
|
|
6692
|
-
refUniqueId: string;
|
|
6693
|
-
/** 分隔符 */
|
|
6694
|
-
delimiter: string;
|
|
6695
|
-
/** 是否是第N列拆分字段 */
|
|
6696
|
-
firstN: boolean;
|
|
6697
|
-
/** 拆分字符数 */
|
|
6698
|
-
splitNumber: number;
|
|
6699
|
-
/** 拆分索引 */
|
|
6700
|
-
splitIndex: number;
|
|
6701
|
-
}
|
|
6702
|
-
/** 合并字段配置 */
|
|
6703
|
-
export interface MergeFieldsFieldConfig {
|
|
6704
|
-
/** 连接符 */
|
|
6705
|
-
delimiter: string;
|
|
6706
|
-
/** 合并字段id列表 */
|
|
6707
|
-
mergeElementList: string[];
|
|
6708
|
-
}
|
|
6709
|
-
export interface ToolFieldConfig {
|
|
6710
|
-
/** 唯一标识 */
|
|
6711
|
-
uniqueId: string;
|
|
6712
|
-
/** 字段名称 */
|
|
6713
|
-
caption: string;
|
|
6714
|
-
/** 工具栏类型 */
|
|
6715
|
-
toolType: ToolFieldType;
|
|
6716
|
-
/** 时间差字段配置 */
|
|
6717
|
-
dateDiffItem: DateDiffFieldConfig;
|
|
6718
|
-
/** 新增别名字段配置 */
|
|
6719
|
-
replaceItem: ReplaceDimValueFieldConfig;
|
|
6720
|
-
/** 缺失值替换字段配置 */
|
|
6721
|
-
missingReplaceItem: MissingValueReplaceFieldConfig;
|
|
6722
|
-
/** 拆分列字段配置 */
|
|
6723
|
-
splitItem: SplitColumnFieldConfig;
|
|
6724
|
-
/** 合并字段配置 */
|
|
6725
|
-
mergeItem: MergeFieldsFieldConfig;
|
|
6726
|
-
}
|
|
6727
|
-
/** 分组字段类型 */
|
|
6728
|
-
export enum GroupType {
|
|
6729
|
-
/** 日期类型-自定义区间分组 */
|
|
6730
|
-
NormalGroup = "NormalGroup",
|
|
6731
|
-
/** 枚举-列表分组类型 */
|
|
6732
|
-
ListGroup = "ListGroup",
|
|
6733
|
-
/** 数值-自定义分组类型 */
|
|
6734
|
-
CustomizedGroup = "CustomizedGroup"
|
|
6735
|
-
}
|
|
6736
|
-
/** 分组字段操作符 */
|
|
6737
|
-
export enum GroupOperator {
|
|
6738
|
-
/** 小于 */
|
|
6739
|
-
LessThan = "lessThan",
|
|
6740
|
-
/** 小于等于 */
|
|
6741
|
-
LessThanOrEqualTo = "lessThanOrEqualTo",
|
|
6742
|
-
/** 大于 */
|
|
6743
|
-
GreaterThan = "greaterThan",
|
|
6744
|
-
/** 大于等于 */
|
|
6745
|
-
GreaterThanOrEqualTo = "greaterThanOrEqualTo",
|
|
6746
|
-
/** 为空 */
|
|
6747
|
-
IsNull = "isNull",
|
|
6748
|
-
/** 介于 */
|
|
6749
|
-
Between = "between"
|
|
6750
|
-
}
|
|
6751
|
-
/** 数值-自定义分组类型 */
|
|
6752
|
-
export type CustomizedGroup = {
|
|
6753
|
-
/** 是否是默认分组字段 */
|
|
6754
|
-
groupName: string;
|
|
6755
|
-
defaultGroup: boolean;
|
|
6756
|
-
lower: string;
|
|
6757
|
-
upper: string;
|
|
6758
|
-
lowerOperator: GroupOperator.IsNull | GroupOperator.GreaterThan | GroupOperator.GreaterThanOrEqualTo;
|
|
6759
|
-
upperOperator: GroupOperator.LessThan | GroupOperator.LessThanOrEqualTo;
|
|
6760
|
-
groupNameType: any;
|
|
6761
|
-
};
|
|
6762
|
-
/** 枚举-列表分组类型 */
|
|
6763
|
-
export type ListGrouping = {
|
|
6764
|
-
groupName: string;
|
|
6765
|
-
groupElementList: string[];
|
|
6766
|
-
defaultGroup: boolean;
|
|
6767
|
-
};
|
|
6768
|
-
/** 日期类型-自定义区间分组 */
|
|
6769
|
-
export type NormalGroup = {
|
|
6770
|
-
groupName: string;
|
|
6771
|
-
defaultGroup: boolean;
|
|
6772
|
-
lower: string;
|
|
6773
|
-
upper: string;
|
|
6774
|
-
lowerOperator: GroupOperator.GreaterThanOrEqualTo;
|
|
6775
|
-
upperOperator: GroupOperator.LessThanOrEqualTo;
|
|
6776
|
-
};
|
|
6777
|
-
/** 分组字段 */
|
|
6778
|
-
export type Groups = CustomizedGroup[] | ListGrouping[] | NormalGroup[];
|
|
6779
|
-
export interface GroupFieldConfig {
|
|
6780
|
-
/** 唯一标识 */
|
|
6781
|
-
uniqueId: string;
|
|
6782
|
-
/** 分组名称 */
|
|
6783
|
-
caption: string;
|
|
6784
|
-
/** 分组类型 */
|
|
6785
|
-
groupType: GroupType;
|
|
6786
|
-
refUniqueId: string;
|
|
6787
|
-
/** qa中使用。qbi目前用不到 */
|
|
6788
|
-
refSql?: string;
|
|
6789
|
-
/** qa中使用。qbi目前用不到 */
|
|
6790
|
-
refFunction?: string;
|
|
6791
|
-
/** 数值类型分组字段 */
|
|
6792
|
-
customizedGroups?: CustomizedGroup[];
|
|
6793
|
-
/** 字符串类型分组字段 */
|
|
6794
|
-
listGroupings?: ListGrouping[];
|
|
6795
|
-
/** 日期类型分组字段 */
|
|
6796
|
-
normalGroups?: NormalGroup[];
|
|
6797
|
-
}
|
|
6798
|
-
/**
|
|
6799
|
-
* 原先计算字段、分组字段存储配置的模型,v6.0.2新增:时间差字段、缺失值替换字段、新增别名字段、拆分列字段、合并字段
|
|
6800
|
-
*/
|
|
6801
|
-
export interface FieldExpressionModel {
|
|
6802
|
-
type: FieldExpressionType;
|
|
6803
|
-
value?: string;
|
|
6804
|
-
/** 分组字段配置 */
|
|
6805
|
-
dataGroup: GroupFieldConfig;
|
|
6806
|
-
/** 工具栏字段配置 */
|
|
6807
|
-
tool?: ToolFieldConfig;
|
|
6808
|
-
}
|
|
6809
|
-
}
|
|
6810
|
-
|
|
6811
|
-
declare module '@quickbi/bi-types/cube/cube-links' {
|
|
6812
|
-
/**
|
|
6813
|
-
* @author 雅影
|
|
6814
|
-
* @description 数据集关联模型类型定义
|
|
6815
|
-
*/
|
|
6816
|
-
import type { TableJoinType } from '@quickbi/bi-types/cube/physical-schema';
|
|
6817
|
-
export enum JoinCondition {
|
|
6818
|
-
/** 等于 */
|
|
6819
|
-
EQUAL_TO = "equal-to",
|
|
6820
|
-
/** 不等于 */
|
|
6821
|
-
UNEQUAL_TO = "unequal-to",
|
|
6822
|
-
/** 大于 */
|
|
6823
|
-
GREATER_THAN = "greater-than",
|
|
6824
|
-
/** 大于等于 */
|
|
6825
|
-
GREATER_THAN_OR_EQUAL_TO = "greater-than-or-equal-to",
|
|
6826
|
-
/** 小于 */
|
|
6827
|
-
LESS_THAN = "less-than",
|
|
6828
|
-
/** 小于等于 */
|
|
6829
|
-
LESS_THAN_OR_EQUAL_TO = "less-than-or-equal-to"
|
|
6830
|
-
}
|
|
6831
|
-
/** 基数 */
|
|
6832
|
-
export enum TableRelation {
|
|
6833
|
-
/** 一对一 */
|
|
6834
|
-
ONE_TO_ONE = "one-to-one",
|
|
6835
|
-
/** 多对多 */
|
|
6836
|
-
MANY_TO_MANY = "many-to-many",
|
|
6837
|
-
/** 一对多 */
|
|
6838
|
-
ONE_TO_MANY = "one-to-many",
|
|
6839
|
-
/** 多对一 */
|
|
6840
|
-
MANY_TO_ONE = "many-to-one"
|
|
6841
|
-
}
|
|
6842
|
-
/** 引用完整性 */
|
|
6843
|
-
export enum ReferentialIntegrity {
|
|
6844
|
-
/** 全部对全部 */
|
|
6845
|
-
ALL_TO_ALL = "all-to-all",
|
|
6846
|
-
/** 全部对部分 */
|
|
6847
|
-
ALL_TO_SOME = "all-to-some",
|
|
6848
|
-
/** 部分对全部 */
|
|
6849
|
-
SOME_TO_ALL = "some-to-all",
|
|
6850
|
-
/** 部分对部分 */
|
|
6851
|
-
SOME_TO_SOME = "some-to-some"
|
|
6852
|
-
}
|
|
6853
|
-
/**
|
|
6854
|
-
* 关联字段
|
|
6855
|
-
* 数据混合blend和数据集物理表关联physical均使用该字段
|
|
6856
|
-
*/
|
|
6857
|
-
export type CubeLinkJoinKeyModel = {
|
|
6858
|
-
/** 源表字段(blend模式为数据集字段id,physical模式为物理字段名) */
|
|
6859
|
-
sourceKey: string;
|
|
6860
|
-
/**
|
|
6861
|
-
* @deprecated
|
|
6862
|
-
* 源表关联物理字段类型(QBI目前没在用,保留)
|
|
6863
|
-
*/
|
|
6864
|
-
sourceType?: string;
|
|
6865
|
-
/** 目标表字段(blend模式为数据集字段id,physical模式为物理字段名) */
|
|
6866
|
-
targetKey: string;
|
|
6867
|
-
/**
|
|
6868
|
-
* @deprecated
|
|
6869
|
-
* 标表关联物理字段类型(QBI目前没在用,保留)
|
|
6870
|
-
*/
|
|
6871
|
-
targetType?: string;
|
|
6872
|
-
/**
|
|
6873
|
-
* 条件
|
|
6874
|
-
*/
|
|
6875
|
-
condition: JoinCondition;
|
|
6876
|
-
/**
|
|
6877
|
-
* 目前仅physical模式使用
|
|
6878
|
-
*/
|
|
6879
|
-
targetCalculateMember?: boolean;
|
|
6880
|
-
/**
|
|
6881
|
-
* 目前仅physical模式使用
|
|
6882
|
-
*/
|
|
6883
|
-
sourceCalculateMember?: boolean;
|
|
6884
|
-
};
|
|
6885
|
-
export interface CubeLinkModel {
|
|
6886
|
-
/** 源表id(blend模式为数据集id,physical模式为物理表id) */
|
|
6887
|
-
source: string;
|
|
6888
|
-
/** 关联表id(blend模式为数据集id,physical模式为物理表id) */
|
|
6889
|
-
target: string;
|
|
6890
|
-
/** 关联类型 */
|
|
6891
|
-
joinType: TableJoinType;
|
|
6892
|
-
/** 关联字段 */
|
|
6893
|
-
joinKeys: CubeLinkJoinKeyModel[];
|
|
6894
|
-
/** 基数 物理表关联目前只有many-to-one */
|
|
6895
|
-
relation?: TableRelation;
|
|
6896
|
-
/** 引用完整性 */
|
|
6897
|
-
match?: ReferentialIntegrity;
|
|
6898
|
-
/**
|
|
6899
|
-
* 是否为自动生成的关联键(未经用户确认)
|
|
6900
|
-
* 前端临时字段,用于标记自动匹配的关联键
|
|
6901
|
-
* - true: 系统自动匹配生成,需要弹窗让用户确认
|
|
6902
|
-
* - false/undefined: 用户已确认,或手动创建的
|
|
6903
|
-
* 注意:此字段不应该发送到后端,仅在前端逻辑中使用
|
|
6904
|
-
*/
|
|
6905
|
-
isAutoGenerated?: boolean;
|
|
6564
|
+
conditionPlaceHolderFields?: {
|
|
6565
|
+
uniqueId: string;
|
|
6566
|
+
name: string;
|
|
6567
|
+
column: string;
|
|
6568
|
+
table: string;
|
|
6569
|
+
}[];
|
|
6570
|
+
/** sql 占位符的原始类型 */
|
|
6571
|
+
originalType: 'dateRange';
|
|
6572
|
+
/** sql 参数,占位符默认值 */
|
|
6573
|
+
defaultValue?: (string | number)[];
|
|
6574
|
+
/** 默认值是否全局生效,true: 生效范围与过滤器一致。false: 默认值仅在数据集生效 */
|
|
6575
|
+
useInGlobal?: boolean;
|
|
6576
|
+
}
|
|
6577
|
+
/** 占位符参数 */
|
|
6578
|
+
export enum ParamDataType {
|
|
6579
|
+
string = "string",
|
|
6580
|
+
number = "number",
|
|
6581
|
+
dateTime = "datetime",
|
|
6582
|
+
dateRegion = "dateRegion",
|
|
6583
|
+
quarterRegion = "quarterRegion",
|
|
6584
|
+
monthRegion = "monthRegion",
|
|
6585
|
+
weekRegion = "weekRegion",
|
|
6586
|
+
yearRegion = "yearRegion",
|
|
6587
|
+
ymdHmsRegion = "ymdHmsRegion"
|
|
6588
|
+
}
|
|
6589
|
+
/** 返回值cellset中的dimType */
|
|
6590
|
+
export enum CellsetDimTypes {
|
|
6591
|
+
StandardDimension = "StandardDimension",
|
|
6592
|
+
StrDateTypeDimension = "StrDateTypeDimension",
|
|
6593
|
+
StarDimension = "StarDimension",
|
|
6594
|
+
GeographicDimension = "GeographicDimension",
|
|
6595
|
+
/** 上面为维度字段,measureCol代表度量 */
|
|
6596
|
+
measureCol = "measureCol"
|
|
6597
|
+
}
|
|
6598
|
+
export class HintModal {
|
|
6599
|
+
dsType: DsType;
|
|
6600
|
+
head: `set`;
|
|
6601
|
+
key: string;
|
|
6602
|
+
connector: `=`;
|
|
6603
|
+
value: string;
|
|
6604
|
+
support: boolean;
|
|
6906
6605
|
}
|
|
6907
6606
|
}
|
|
6908
6607
|
|
|
@@ -7172,9 +6871,7 @@ declare module '@quickbi/bi-types/cube/data-source' {
|
|
|
7172
6871
|
/** 达梦 */
|
|
7173
6872
|
dm = "dm",
|
|
7174
6873
|
/** 日志服务SLS */
|
|
7175
|
-
sls = "sls"
|
|
7176
|
-
/** RDS MySQL DuckDB */
|
|
7177
|
-
mysql_duckdb = "mysql_duckdb"
|
|
6874
|
+
sls = "sls"
|
|
7178
6875
|
}
|
|
7179
6876
|
export enum AcrossDsType {
|
|
7180
6877
|
UN_SET,
|
|
@@ -7197,9 +6894,7 @@ declare module '@quickbi/bi-types/cube/data-source' {
|
|
|
7197
6894
|
/** 端口号为8242 此后所有注释 皆为表明 变量代表的端口号码 */
|
|
7198
6895
|
eight_two_four_two = "8242",
|
|
7199
6896
|
three_three_zero_six_zero = "33060",
|
|
7200
|
-
three_zero_zero_six_zero = "30060"
|
|
7201
|
-
three_three_zero_six = "33306",
|
|
7202
|
-
one_zero_zero_zero_zero = "10000"
|
|
6897
|
+
three_zero_zero_six_zero = "30060"
|
|
7203
6898
|
}
|
|
7204
6899
|
/** 数据源 - 根据类型 - 排序 */
|
|
7205
6900
|
export enum DataSourceSort {
|
|
@@ -7235,47 +6930,56 @@ declare module '@quickbi/bi-types/cube/data-source' {
|
|
|
7235
6930
|
google = "google",
|
|
7236
6931
|
customDs = "customDs"
|
|
7237
6932
|
}
|
|
6933
|
+
/** 数据库数据源类型 */
|
|
6934
|
+
export const dataBaseType: DataSourcesConfigId[];
|
|
7238
6935
|
/** 文档数据源 */
|
|
7239
6936
|
export const SHEET_TABLE: DsType[];
|
|
7240
6937
|
}
|
|
7241
6938
|
|
|
7242
|
-
declare module '@quickbi/bi-types/cube/
|
|
6939
|
+
declare module '@quickbi/bi-types/cube/cube-links' {
|
|
7243
6940
|
/**
|
|
7244
|
-
* @author
|
|
7245
|
-
* @description
|
|
6941
|
+
* @author 雅影
|
|
6942
|
+
* @description 数据集关联模型类型定义
|
|
7246
6943
|
*/
|
|
7247
|
-
import type {
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
export
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
6944
|
+
import type { TableJoinType, JoinCondition, TableRelation } from '@quickbi/bi-types/cube/cube-model';
|
|
6945
|
+
/** 数据集字段关联模型 */
|
|
6946
|
+
export interface CubeLinkJoinKeyModel {
|
|
6947
|
+
/** 关联条件 */
|
|
6948
|
+
condition: JoinCondition;
|
|
6949
|
+
/** 关联字段名称 */
|
|
6950
|
+
sourceKey: string;
|
|
6951
|
+
/** 目标字段名称 */
|
|
6952
|
+
targetKey: string;
|
|
6953
|
+
}
|
|
6954
|
+
/** 数据集关联模型 */
|
|
6955
|
+
export interface CubeLinkModel {
|
|
6956
|
+
/** 来源id */
|
|
6957
|
+
sourceId: string;
|
|
6958
|
+
/** 目标id */
|
|
6959
|
+
targetId: string;
|
|
6960
|
+
/** 来源类型 */
|
|
6961
|
+
sourceType: 'TABLE' | 'FILE';
|
|
6962
|
+
/** 目标类型 */
|
|
6963
|
+
targetType: 'TABLE' | 'FILE';
|
|
6964
|
+
/** 来源表名称 */
|
|
6965
|
+
sourceTableName: string;
|
|
6966
|
+
/** 目标表名称 */
|
|
6967
|
+
targetTableName: string;
|
|
6968
|
+
/** 关联类型 */
|
|
6969
|
+
joinType: TableJoinType;
|
|
6970
|
+
/** 关联key */
|
|
6971
|
+
joinKeys: CubeLinkJoinKeyModel[];
|
|
6972
|
+
/** 关联关系 */
|
|
6973
|
+
relation: TableRelation;
|
|
7268
6974
|
}
|
|
7269
6975
|
}
|
|
7270
6976
|
|
|
7271
|
-
declare module '@quickbi/bi-types/cube/
|
|
6977
|
+
declare module '@quickbi/bi-types/cube/table-schema' {
|
|
7272
6978
|
/**
|
|
7273
|
-
* @author
|
|
7274
|
-
* @description
|
|
6979
|
+
* @author 雅影
|
|
6980
|
+
* @description 物理表模型
|
|
7275
6981
|
*/
|
|
7276
|
-
import type {
|
|
7277
|
-
import type { DataType, DateGranularity, RegionGranularity, SecondDataType } from '@quickbi/bi-types/cube/cube-schema';
|
|
7278
|
-
import type { DsType } from '@quickbi/bi-types/cube/data-source';
|
|
6982
|
+
import type { DataType, DateGranularity, RegionGranularity, SecondDataType } from '@quickbi/bi-types/cube/cube-model';
|
|
7279
6983
|
/** 物理表字段模型 */
|
|
7280
6984
|
export interface TableField {
|
|
7281
6985
|
/** 物理字段备注 */
|
|
@@ -7299,7 +7003,7 @@ declare module '@quickbi/bi-types/cube/physical-schema' {
|
|
|
7299
7003
|
/** 支持修改字段类型 */
|
|
7300
7004
|
supportCastDataType?: boolean | null;
|
|
7301
7005
|
}
|
|
7302
|
-
/**
|
|
7006
|
+
/** 物理表模型 */
|
|
7303
7007
|
export interface TableSchema {
|
|
7304
7008
|
/** 数据源id */
|
|
7305
7009
|
datasourceId?: string;
|
|
@@ -7320,112 +7024,210 @@ declare module '@quickbi/bi-types/cube/physical-schema' {
|
|
|
7320
7024
|
/** 表类型 上传文件为file */
|
|
7321
7025
|
tableType?: string;
|
|
7322
7026
|
}
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7027
|
+
}
|
|
7028
|
+
|
|
7029
|
+
declare module '@quickbi/bi-types/cube/cube-field-expression' {
|
|
7030
|
+
/**
|
|
7031
|
+
* @author 嘉念
|
|
7032
|
+
* @description 数据集字段表达式模型
|
|
7033
|
+
*/
|
|
7034
|
+
export enum FieldExpressionType {
|
|
7035
|
+
/** 分组字段 */
|
|
7036
|
+
dataGroup = "dataGroup",
|
|
7037
|
+
/** 计算字段 */
|
|
7038
|
+
udf = "udf",
|
|
7039
|
+
/** lod字段 */
|
|
7040
|
+
system = "system",
|
|
7041
|
+
/** 工具栏字段(时间差字段、缺失值替换字段、新增别名字段、拆分列字段、合并字段) */
|
|
7042
|
+
tool = "tool"
|
|
7334
7043
|
}
|
|
7335
|
-
/**
|
|
7336
|
-
export enum
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7044
|
+
/** 工具栏字段类型 */
|
|
7045
|
+
export enum ToolFieldType {
|
|
7046
|
+
/** 时间差字段 */
|
|
7047
|
+
DateDifference = "dateDifference",
|
|
7048
|
+
/** 缺失值替换字段 */
|
|
7049
|
+
MissingValueReplacement = "missingValueReplacement",
|
|
7050
|
+
/** 维度别名字段 */
|
|
7051
|
+
ValueReplacement = "valueReplacement",
|
|
7052
|
+
/** 拆分列字段 */
|
|
7053
|
+
SplitField = "SplitField",
|
|
7054
|
+
/** 合并字段 */
|
|
7055
|
+
MergeField = "mergeField"
|
|
7343
7056
|
}
|
|
7344
|
-
/**
|
|
7345
|
-
export interface
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
/** 物理表所属数据源ID */
|
|
7353
|
-
datasourceId: string;
|
|
7354
|
-
/** 是否为事实表(中心表标识) */
|
|
7355
|
-
factTable: boolean;
|
|
7356
|
-
/** 数据源类型 */
|
|
7357
|
-
dsType: DsType;
|
|
7358
|
-
/** 表类型(不落库,每次获取cubeSchema模型时后端实时查询返回) */
|
|
7359
|
-
tableType?: PhysicalTableType;
|
|
7360
|
-
}
|
|
7361
|
-
/** 自定义SQL虚拟表模型 */
|
|
7362
|
-
export interface VirtualTable {
|
|
7363
|
-
/** 唯一标识 */
|
|
7364
|
-
uniqueId: string;
|
|
7365
|
-
/** 表展示名称 */
|
|
7366
|
-
caption: string;
|
|
7367
|
-
/** 表名 */
|
|
7368
|
-
tableName: string;
|
|
7369
|
-
/** 物理表所属数据源ID */
|
|
7370
|
-
datasourceId: string;
|
|
7371
|
-
/** 是否为事实表(中心表标识) */
|
|
7372
|
-
factTable: boolean;
|
|
7373
|
-
dsType: DsType;
|
|
7374
|
-
sqlId: string;
|
|
7375
|
-
sql: string;
|
|
7376
|
-
/** 表类型(不落库,每次获取cubeSchema模型时后端实时查询返回) */
|
|
7377
|
-
tableType?: PhysicalTableType;
|
|
7057
|
+
/** 时间差字段配置 */
|
|
7058
|
+
export interface DateDiffFieldConfig {
|
|
7059
|
+
/** 开始字段 */
|
|
7060
|
+
firstField: string;
|
|
7061
|
+
/** 结束字段 */
|
|
7062
|
+
endField: string;
|
|
7063
|
+
/** 时间单位 */
|
|
7064
|
+
timeUnit: string;
|
|
7378
7065
|
}
|
|
7379
|
-
/**
|
|
7380
|
-
export interface
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7066
|
+
/** 维值替换字段配置 */
|
|
7067
|
+
export interface ReplaceDimValueFieldConfig {
|
|
7068
|
+
/** 引用字段Id */
|
|
7069
|
+
refUniqueId: string;
|
|
7070
|
+
/** 替换维值列表 */
|
|
7071
|
+
replaceElementList: {
|
|
7072
|
+
/** 原始值 */
|
|
7073
|
+
originalValue: string;
|
|
7074
|
+
/** 替换值 */
|
|
7075
|
+
value: string;
|
|
7076
|
+
}[];
|
|
7387
7077
|
}
|
|
7388
|
-
/**
|
|
7389
|
-
export interface
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7078
|
+
/** 缺失值替换字段配置 */
|
|
7079
|
+
export interface MissingValueReplaceFieldConfig {
|
|
7080
|
+
/** 引用字段Id */
|
|
7081
|
+
refUniqueId: string;
|
|
7082
|
+
/** 替换空值 */
|
|
7083
|
+
replaceNullValue: boolean;
|
|
7084
|
+
/** 替换空白值 */
|
|
7085
|
+
replaceBlankValue: boolean;
|
|
7086
|
+
/** 替换值 */
|
|
7087
|
+
value: string;
|
|
7398
7088
|
}
|
|
7399
|
-
/**
|
|
7400
|
-
export interface
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7089
|
+
/** 拆分列字段配置 */
|
|
7090
|
+
export interface SplitColumnFieldConfig {
|
|
7091
|
+
/** 引用字段Id */
|
|
7092
|
+
refUniqueId: string;
|
|
7093
|
+
/** 分隔符 */
|
|
7094
|
+
delimiter: string;
|
|
7095
|
+
/** 是否是第N列拆分字段 */
|
|
7096
|
+
firstN: boolean;
|
|
7097
|
+
/** 拆分字符数 */
|
|
7098
|
+
splitNumber: number;
|
|
7099
|
+
/** 拆分索引 */
|
|
7100
|
+
splitIndex: number;
|
|
7407
7101
|
}
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
support: boolean;
|
|
7102
|
+
/** 合并字段配置 */
|
|
7103
|
+
export interface MergeFieldsFieldConfig {
|
|
7104
|
+
/** 连接符 */
|
|
7105
|
+
delimiter: string;
|
|
7106
|
+
/** 合并字段id列表 */
|
|
7107
|
+
mergeElementList: string[];
|
|
7415
7108
|
}
|
|
7416
|
-
export
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7109
|
+
export interface ToolFieldConfig {
|
|
7110
|
+
/** 唯一标识 */
|
|
7111
|
+
uniqueId: string;
|
|
7112
|
+
/** 字段名称 */
|
|
7113
|
+
caption: string;
|
|
7114
|
+
/** 工具栏类型 */
|
|
7115
|
+
toolType: ToolFieldType;
|
|
7116
|
+
/** 时间差字段配置 */
|
|
7117
|
+
dateDiffItem: DateDiffFieldConfig;
|
|
7118
|
+
/** 新增别名字段配置 */
|
|
7119
|
+
replaceItem: ReplaceDimValueFieldConfig;
|
|
7120
|
+
/** 缺失值替换字段配置 */
|
|
7121
|
+
missingReplaceItem: MissingValueReplaceFieldConfig;
|
|
7122
|
+
/** 拆分列字段配置 */
|
|
7123
|
+
splitItem: SplitColumnFieldConfig;
|
|
7124
|
+
/** 合并字段配置 */
|
|
7125
|
+
mergeItem: MergeFieldsFieldConfig;
|
|
7126
|
+
}
|
|
7127
|
+
/** 分组字段类型 */
|
|
7128
|
+
export enum GroupType {
|
|
7129
|
+
/** 日期类型-自定义区间分组 */
|
|
7130
|
+
NormalGroup = "NormalGroup",
|
|
7131
|
+
/** 枚举-列表分组类型 */
|
|
7132
|
+
ListGroup = "ListGroup",
|
|
7133
|
+
/** 数值-自定义分组类型 */
|
|
7134
|
+
CustomizedGroup = "CustomizedGroup"
|
|
7135
|
+
}
|
|
7136
|
+
/** 分组字段操作符 */
|
|
7137
|
+
export enum GroupOperator {
|
|
7138
|
+
/** 小于 */
|
|
7139
|
+
LessThan = "lessThan",
|
|
7140
|
+
/** 小于等于 */
|
|
7141
|
+
LessThanOrEqualTo = "lessThanOrEqualTo",
|
|
7142
|
+
/** 大于 */
|
|
7143
|
+
GreaterThan = "greaterThan",
|
|
7144
|
+
/** 大于等于 */
|
|
7145
|
+
GreaterThanOrEqualTo = "greaterThanOrEqualTo",
|
|
7146
|
+
/** 为空 */
|
|
7147
|
+
IsNull = "isNull"
|
|
7148
|
+
}
|
|
7149
|
+
/** 数值-自定义分组类型 */
|
|
7150
|
+
export type CustomizedGroup = {
|
|
7151
|
+
/** 是否是默认分组字段 */
|
|
7152
|
+
groupName: string;
|
|
7153
|
+
defaultGroup: boolean;
|
|
7154
|
+
lower: string;
|
|
7155
|
+
upper: string;
|
|
7156
|
+
lowerOperator: GroupOperator.IsNull | GroupOperator.GreaterThan | GroupOperator.GreaterThanOrEqualTo;
|
|
7157
|
+
upperOperator: GroupOperator.LessThan | GroupOperator.LessThanOrEqualTo;
|
|
7158
|
+
groupNameType: any;
|
|
7159
|
+
};
|
|
7160
|
+
/** 枚举-列表分组类型 */
|
|
7161
|
+
export type ListGrouping = {
|
|
7162
|
+
groupName: string;
|
|
7163
|
+
groupElementList: string[];
|
|
7164
|
+
defaultGroup: boolean;
|
|
7165
|
+
};
|
|
7166
|
+
/** 日期类型-自定义区间分组 */
|
|
7167
|
+
export type NormalGroup = {
|
|
7168
|
+
groupName: string;
|
|
7169
|
+
defaultGroup: boolean;
|
|
7170
|
+
lower: string;
|
|
7171
|
+
upper: string;
|
|
7172
|
+
lowerOperator: GroupOperator.GreaterThanOrEqualTo;
|
|
7173
|
+
upperOperator: GroupOperator.LessThanOrEqualTo;
|
|
7174
|
+
};
|
|
7175
|
+
/** 分组字段 */
|
|
7176
|
+
export type Groups = CustomizedGroup[] | ListGrouping[] | NormalGroup[];
|
|
7177
|
+
export interface GroupFieldConfig {
|
|
7178
|
+
/** 唯一标识 */
|
|
7179
|
+
uniqueId: string;
|
|
7180
|
+
/** 分组名称 */
|
|
7181
|
+
caption: string;
|
|
7182
|
+
/** 分组类型 */
|
|
7183
|
+
groupType: GroupType;
|
|
7184
|
+
refUniqueId: string;
|
|
7185
|
+
/** qa中使用。qbi目前用不到 */
|
|
7186
|
+
refSql?: string;
|
|
7187
|
+
/** qa中使用。qbi目前用不到 */
|
|
7188
|
+
refFunction?: string;
|
|
7189
|
+
/** 数值类型分组字段 */
|
|
7190
|
+
customizedGroups?: CustomizedGroup[];
|
|
7191
|
+
/** 字符串类型分组字段 */
|
|
7192
|
+
listGroupings?: ListGrouping[];
|
|
7193
|
+
/** 日期类型分组字段 */
|
|
7194
|
+
normalGroups?: NormalGroup[];
|
|
7195
|
+
}
|
|
7196
|
+
/**
|
|
7197
|
+
* 原先计算字段、分组字段存储配置的模型,v6.0.2新增:时间差字段、缺失值替换字段、新增别名字段、拆分列字段、合并字段
|
|
7198
|
+
*/
|
|
7199
|
+
export interface FieldExpressionModel {
|
|
7200
|
+
type: FieldExpressionType;
|
|
7201
|
+
value?: string;
|
|
7202
|
+
/** 分组字段配置 */
|
|
7203
|
+
dataGroup: GroupFieldConfig;
|
|
7204
|
+
/** 工具栏字段配置 */
|
|
7205
|
+
tool?: ToolFieldConfig;
|
|
7206
|
+
}
|
|
7207
|
+
}
|
|
7208
|
+
|
|
7209
|
+
declare module '@quickbi/bi-types/cube/cube-blend' {
|
|
7210
|
+
/**
|
|
7211
|
+
* @author 雅影
|
|
7212
|
+
* @description 数据混合类型定义
|
|
7213
|
+
*/
|
|
7214
|
+
import type { Link, JoinKey } from '@quickbi/bi-types/cube/cube-model';
|
|
7215
|
+
/** 数据集之间关联的模型定义 */
|
|
7216
|
+
export interface CubeLink extends Omit<Link, 'joinKeys'> {
|
|
7217
|
+
joinKeys: Omit<JoinKey, 'condition'>[];
|
|
7218
|
+
}
|
|
7219
|
+
/** 数据集混合schema */
|
|
7220
|
+
export interface BlendSchema {
|
|
7221
|
+
/** 数据混合唯一id */
|
|
7222
|
+
uniqueId: string;
|
|
7223
|
+
/** 数据混合名称 */
|
|
7224
|
+
caption: string;
|
|
7225
|
+
/** 数据混合关联关系 */
|
|
7226
|
+
cubeLinks: CubeLink[];
|
|
7227
|
+
/** 标识是否存在字段id重复 */
|
|
7228
|
+
hasRepeatFid?: boolean;
|
|
7429
7229
|
}
|
|
7230
|
+
/** 数据混合消费端模型定义 */
|
|
7231
|
+
export type CubeBlend = BlendSchema;
|
|
7430
7232
|
}
|
|
7431
7233
|
|