@quickbi/bi-types 3.2.6 → 3.2.8

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 CHANGED
@@ -1,10 +1,10 @@
1
1
  // Generated by dts-bundle v0.7.3
2
2
  // Dependencies for this module:
3
- // ../../../../../react
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, } 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, GroupContrast, } 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,6 +26,8 @@ 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';
29
31
  export type { EmbedBaseSrc, EmbedBaseFeature, EmbedBaseEventMessageDTO, EmbedBaseEventMessageContent, EmbedBaseEventListener, EmbedBaseEventListenerReturn, } from '@quickbi/bi-types/open/embed/core';
30
32
  export { OpenPageTypeEnum } from '@quickbi/bi-types/open/common/page-types';
31
33
  export { OpenEventTypeEnum } from '@quickbi/bi-types/open/common/event-types';
@@ -40,13 +42,13 @@ declare module '@quickbi/bi-types' {
40
42
  declare module '@quickbi/bi-types/data-panel' {
41
43
  import type { CommonCompInputAreaType, ConfigCellOption, FieldConfigRow } from '@quickbi/bi-types/data-panel/base';
42
44
  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';
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';
45
+ import type { CommonCompInputComplexFilter, TimeTypeFilter, CommonCompInputComplexFilterItem, TableCalculateParam, CalcOrder, TopNParams, CountParams, PercentileParams, RankParams, CompareParams, DateAccumulateParams, ProportionParams, DifferenceParams, MovingCalculationParams, MultiFieldCombinationConfig, MultiFieldCombinationFieldConfig, MultiFieldAdvanceCalConfig, GroupContrast } from '@quickbi/bi-types/data-panel/data-config';
44
46
  import { DataConfig, DataConfigAreaItemColumn, TableType, TableDirection, ProportionType, AccumulateCalcType, NumberValueType, ContrastType } from '@quickbi/bi-types/data-panel/data-config';
45
47
  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';
46
48
  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';
47
49
  import { DataPanelDataSchema, ResultDisplay } from '@quickbi/bi-types/data-panel/data-schema';
48
50
  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, };
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, };
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, GroupContrast, };
50
52
  }
51
53
 
52
54
  declare module '@quickbi/bi-types/component-type' {
@@ -200,9 +202,9 @@ declare module '@quickbi/bi-types/component-type' {
200
202
  WORDCLOUD = 12,
201
203
  /** 旋风漏斗(已下线) */
202
204
  TORNADO = 13,
203
- /** 老树图(已关闭入口,线上有图) */
205
+ /** 老树图(已下线) */
204
206
  TREE = 14,
205
- /** 老的来源去向图(已关闭入口,线上有图) */
207
+ /** 老的来源去向图(已下线) */
206
208
  PATH = 15,
207
209
  /** 矩阵树图 */
208
210
  TREEMAP = 16,
@@ -431,7 +433,25 @@ declare module '@quickbi/bi-types/component-type' {
431
433
  /** 非结构化图表-词频(词云图,已下线) */
432
434
  UNSTRUCTURED_FREQUENCY = 129,
433
435
  /** 智能解读 */
434
- SMART_INTERPRETATION = 130
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,
449
+ /** 洞察分析-指标节点 */
450
+ ANALYTICAL_METRIC_NODE = 137,
451
+ /** 洞察分析-文本节点 */
452
+ ANALYTICAL_TEXT_NODE = 138,
453
+ /** 洞察分析 */
454
+ INSIGHT_ANALYTICAL = 139
435
455
  }
436
456
  export const ScreenComponentCode: Record<ScreenComponentType, number>;
437
457
  export enum ChartType {
@@ -528,6 +548,8 @@ declare module '@quickbi/bi-types/component-type' {
528
548
  CONCAT_CONTAINER = "concat-container",
529
549
  INDICATOR_RELATION = "indicator-relation",
530
550
  SMART_INTERPRETATION = "smart-interpretation",
551
+ /** 探索分析-智能推荐 */
552
+ EXPLORATION_SMART_CHART = "exploration-smart-chart",
531
553
  /** ------------非结构化图表 ------------ */
532
554
  UNSTRUCTURED_PARALLEL = "parallel",
533
555
  UNSTRUCTURED_CONTRAST = "contrast",
@@ -546,6 +568,11 @@ declare module '@quickbi/bi-types/component-type' {
546
568
  QUICK_REPORT_FORM_CHECKBOX = "quick-report-form-checkbox",
547
569
  QUICK_REPORT_FORM_FUNCTION = "quick-report-form-function",
548
570
  QUICK_REPORT = "quick-report",
571
+ QUICK_REPORT_AI_TRANSLATE = "quick-report-ai-translate",
572
+ QUICK_REPORT_AI_CLASSIFY = "quick-report-ai-classify",
573
+ QUICK_REPORT_AI_CUSTOM = "quick-report-ai-custom",
574
+ QUICK_REPORT_AI_EXTRACT = "quick-report-ai-extract",
575
+ QUICK_REPORT_AI_SUMMARIZE = "quick-report-ai-summarize",
549
576
  /** --------------数据填报-------------- */
550
577
  DATAFORM_TEXT = "dataform-text",
551
578
  DATAFORM_TEXTAREA = "dataform-textarea",
@@ -568,7 +595,10 @@ declare module '@quickbi/bi-types/component-type' {
568
595
  DATAFORM_SLIDER = "dataform-slider",
569
596
  DATAFORM_USER_SELECT_SINGLE = "dataform-user-select-single",
570
597
  DATAFORM_USER_SELECT_MULTI = "dataform-user-select-multi",
571
- DATAFORM_SUBMIT_USER = "dataform-submit-user"
598
+ DATAFORM_SUBMIT_USER = "dataform-submit-user",
599
+ /** 洞察分析 */
600
+ ANALYTICAL_METRIC_NODE = "analytical-metric-node",
601
+ ANALYTICAL_TEXT_NODE = "analytical-text-node"
572
602
  }
573
603
  }
574
604
 
@@ -1135,19 +1165,19 @@ declare module '@quickbi/bi-types/open/components/component-lifecycle' {
1135
1165
  /**
1136
1166
  * 开机阶段钩子
1137
1167
  */
1138
- export type LifecycleBootstrap<T = object, P = any> = (props?: LifecycleProps<T>) => void | Promise<P>;
1168
+ export type LifecycleBootstrap<T = object, P = any> = (props: LifecycleProps<T>) => void | Promise<P>;
1139
1169
  /**
1140
1170
  * 渲染阶段钩子
1141
1171
  */
1142
- export type LifecycleMount<T = object, P = any> = (props?: LifecycleProps<T>) => void | Promise<P>;
1172
+ export type LifecycleMount<T = object, P = any> = (props: LifecycleProps<T>) => void | Promise<P>;
1143
1173
  /**
1144
1174
  * 卸载阶段钩子
1145
1175
  */
1146
- export type LifecycleUnmount<T = object, P = any> = (props?: LifecycleProps<T>) => void | Promise<P>;
1176
+ export type LifecycleUnmount<T = object, P = any> = (props: LifecycleProps<T>) => void | Promise<P>;
1147
1177
  /**
1148
1178
  * 更新阶段钩子
1149
1179
  */
1150
- export type LifecycleUpdate<T = object, P = any> = (props?: LifecycleProps<T>) => void | Promise<P>;
1180
+ export type LifecycleUpdate<T = object, P = any> = (props: LifecycleProps<T>) => void | Promise<P>;
1151
1181
  /**
1152
1182
  * 开放组件生命周期
1153
1183
  */
@@ -1391,37 +1421,78 @@ declare module '@quickbi/bi-types/chart-config' {
1391
1421
  negative = "0",
1392
1422
  bracket = "1"
1393
1423
  }
1424
+ export enum FormatType {
1425
+ /** 数值 */
1426
+ Number = 0,
1427
+ /** 百分比 */
1428
+ Percent = 1,
1429
+ /** 手工输入 */
1430
+ Custom = 2,
1431
+ /** 自动, 此处自动与数值内部自动的区别在于固定最大有效位数(英文3位,中文4位) */
1432
+ Auto = 3
1433
+ }
1394
1434
  /**
1395
1435
  * 数值格式化配置
1396
1436
  */
1397
1437
  export interface NumberFormat {
1398
- /** 模式:默认为自动适配。0 自动适配;1 自定义模式;2 手工输入 */
1399
- formatModal: '0' | '1' | '2';
1400
1438
  /**
1401
- * 对应 原来为 serie.fmtType
1402
- * formatModal = 0 (自动适配)下, 对应可取值为: CN 中文(默认) KMG 英文 CNT 繁体
1403
- * formatModal = 1 (自定义模式)下, 对应可取值为: None
1404
- * formatModal = 2 (手工输入)下, 对应可取值为: Custom
1439
+ * @deprecated 请使用 formatType 替代
1440
+ * 模式:默认为自动适配。0 自动适配;1 自定义模式;2 手工输入
1441
+ * */
1442
+ formatModal?: '0' | '1' | '2';
1443
+ /**
1444
+ * 自动适配的语言配置项
1445
+ * CN 中文(默认)
1446
+ * KMG 英文
1447
+ * CNT 繁体
1448
+ * 默认跟随系统语言环境
1405
1449
  */
1406
- fmtType: 'CN' | 'KMG' | 'CNT' | 'Custom' | 'None';
1407
- /** 值类型,默认为数值。0 数值;1 百分比 */
1408
- valueModal: '0' | '1';
1409
- /** 小数位,默认不选择。原来为 serie.decimalPlaces */
1410
- decimalPlaces: '' | '0' | '1' | '2' | '3' | '4' | '5';
1450
+ fmtType?: 'CN' | 'KMG' | 'CNT' | '';
1451
+ /**
1452
+ * @deprecated 请使用 formatType 替代
1453
+ * 值类型,默认为数值。0 数值;1 百分比
1454
+ * */
1455
+ valueModal?: '0' | '1';
1456
+ /** 格式化类型 */
1457
+ formatType?: FormatType;
1458
+ /** 小数位,默认不选择。string格式是兼容历史格式,后续调用可直接传入number类型 */
1459
+ decimalPlaces?: '' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | number;
1411
1460
  /** 是否使用千分位分隔符,默认不使用。原来为 serie.thousandth */
1412
1461
  thousandth?: boolean;
1413
1462
  /** 手工输入格式,原来为 serie.fmt */
1414
- fmt: string;
1415
- /** 数据单位 */
1463
+ fmt?: string;
1464
+ /** 数据单位进制 */
1416
1465
  magnitudeFormat?: number;
1417
- /** 数据格式 */
1466
+ /** 数据单位 */
1418
1467
  dataMagnitude?: string;
1419
1468
  /** 负数格式 */
1420
1469
  negativeMode?: NegativeMode;
1470
+ /**
1471
+ * @deprecated 请使用 suffix, prefix 替代
1472
+ * 单位
1473
+ * */
1474
+ unit?: string;
1475
+ /** 前缀 */
1476
+ prefix?: string;
1477
+ /** 后缀 */
1478
+ suffix?: string;
1479
+ /** 是否隐藏数据量级单位 */
1480
+ hideDataMagnitude?: boolean;
1481
+ /**
1482
+ * 货币符号模式
1483
+ * 当值为 true 且使用 NegativeMode.negative 时,前缀放在负号后面(-¥5)
1484
+ * 当值为 false 时,前缀放在负号前面(¥-5)
1485
+ */
1486
+ currencySymbolMode?: boolean;
1487
+ /** 是否是旧版自动和手工输入的格式化配置 */
1488
+ isOld?: boolean;
1489
+ selectType?: SelectType;
1421
1490
  }
1422
1491
  export enum SelectType {
1423
1492
  /** 自动 */
1424
1493
  'auto' = "auto",
1494
+ /** 无 */
1495
+ 'general' = "general",
1425
1496
  /** 整数 */
1426
1497
  'int' = "int",
1427
1498
  /** 保留1位小数 */
@@ -1439,7 +1510,6 @@ declare module '@quickbi/bi-types/chart-config' {
1439
1510
  }
1440
1511
  export interface FieldNumberFormat extends NumberFormat {
1441
1512
  selectType?: SelectType;
1442
- unit?: string;
1443
1513
  }
1444
1514
  export enum ImageDisplayMode {
1445
1515
  LEFT = 0,
@@ -1544,6 +1614,13 @@ declare module '@quickbi/bi-types/chart-config' {
1544
1614
  /** 空 */
1545
1615
  empty = ""
1546
1616
  }
1617
+ /** 图例显示百分比位置 */
1618
+ export enum LegendDisplayPercentPositionValue {
1619
+ /** 默认值为'-' */
1620
+ Bottom = "bottom",
1621
+ /** 空 */
1622
+ Right = "right"
1623
+ }
1547
1624
  /** 钻取 面包屑的文字样式 */
1548
1625
  export interface DrillBreadcrumbTextStyle {
1549
1626
  fontSize: number;
@@ -1782,7 +1859,9 @@ declare module '@quickbi/bi-types/standard-model' {
1782
1859
  * | areas区域模型
1783
1860
  * -------------------------------------------------------------------------------------------
1784
1861
  */
1785
- import type { EmptyValueDisplayConfig, SecondDataType } from '@quickbi/bi-types/cube/cube-model';
1862
+ import type { NumberFormat } from '@quickbi/bi-types/chart-config';
1863
+ import type { EmptyValueDisplayConfig } from '@quickbi/bi-types/cube/cube-model';
1864
+ import type { SecondDataType } from '@quickbi/bi-types/cube/cube-schema';
1786
1865
  import type { CountParams, FieldCollectionType, PercentileParams, TopNParams, CompareParams, DateAccumulateParams, ProportionParams } from '@quickbi/bi-types/data-panel';
1787
1866
  import type { DifferenceParams, MovingCalculationParams, MultiFieldCombinationConfig, RankParams } from '@quickbi/bi-types/data-panel/data-config';
1788
1867
  /** 字段信息 */
@@ -1814,6 +1893,7 @@ declare module '@quickbi/bi-types/standard-model' {
1814
1893
  displayType?: SecondDataType.imageUrl | SecondDataType.imageFileId | SecondDataType.geographic | '';
1815
1894
  /** [QBI特有] 数据集格式化配置,如#,##0.00% */
1816
1895
  rawFormat?: string;
1896
+ originFormat?: NumberFormat;
1817
1897
  /** [QBI特有] 数据集维度类型, TimeRegionInBackend, 需迁移,防止循环依赖 */
1818
1898
  dimGranularity?: any;
1819
1899
  /** [FBI特有] 日期格式 */
@@ -2285,12 +2365,14 @@ declare module '@quickbi/bi-types/cube' {
2285
2365
  * @author 无愚
2286
2366
  * @description 数据集类型定义
2287
2367
  */
2368
+ export * from '@quickbi/bi-types/cube/cube-blend';
2369
+ export * from '@quickbi/bi-types/cube/cube-field-expression';
2370
+ export * from '@quickbi/bi-types/cube/cube-links';
2288
2371
  export * from '@quickbi/bi-types/cube/cube-model';
2372
+ export * from '@quickbi/bi-types/cube/cube-schema';
2289
2373
  export * from '@quickbi/bi-types/cube/data-source';
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';
2374
+ export * from '@quickbi/bi-types/cube/logical-schema';
2375
+ export * from '@quickbi/bi-types/cube/physical-schema';
2294
2376
  }
2295
2377
 
2296
2378
  declare module '@quickbi/bi-types/open/menus/menu-schema' {
@@ -2341,6 +2423,7 @@ declare module '@quickbi/bi-types/open/menus/menu-props' {
2341
2423
  import type { EnumAsUnion } from '@quickbi/bi-types/open/common/tools';
2342
2424
  import type { OpenPageTypeEnum } from '@quickbi/bi-types/open/common/page-types';
2343
2425
  import type { OpenDeviceTypeEnum } from '@quickbi/bi-types/open/common/misc';
2426
+ import type { RouteKey } from '@quickbi/bi-types/router/route-key';
2344
2427
  /**
2345
2428
  * 事件/菜单通用的页面信息
2346
2429
  */
@@ -2365,8 +2448,10 @@ declare module '@quickbi/bi-types/open/menus/menu-props' {
2365
2448
  ownerUserName: string;
2366
2449
  /** 页面标题 */
2367
2450
  title: string;
2368
- /** 页面类型 */
2369
- pageType: EnumAsUnion<typeof OpenPageTypeEnum>;
2451
+ /** @deprecated 页面类型, 已废弃, 后续请用routeKey判断页面类型 */
2452
+ pageType?: EnumAsUnion<typeof OpenPageTypeEnum>;
2453
+ /** 页面路由 key */
2454
+ routeKey?: RouteKey;
2370
2455
  }
2371
2456
  /**
2372
2457
  * 事件/菜单通用的工具方法
@@ -2514,6 +2599,23 @@ declare module '@quickbi/bi-types/open/menus/menu-props' {
2514
2599
  }
2515
2600
  }
2516
2601
 
2602
+ declare module '@quickbi/bi-types/open/custom-page/pages-props' {
2603
+ import type { CommonPageConfig } from '@quickbi/bi-types/open/menus/menu-props';
2604
+ /**
2605
+ * 自定义页面 props 接口
2606
+ */
2607
+ export interface PageComponentProps {
2608
+ /** 页面信息 */
2609
+ pageConfig: Pick<CommonPageConfig, 'userId' | 'userName' | 'routeKey'>;
2610
+ }
2611
+ }
2612
+
2613
+ declare module '@quickbi/bi-types/open/custom-page/pages-schema' {
2614
+ /** 自定义页面元信息 */
2615
+ export interface PageMeta {
2616
+ }
2617
+ }
2618
+
2517
2619
  declare module '@quickbi/bi-types/open/embed/core' {
2518
2620
  /**
2519
2621
  * @author 海狸
@@ -2584,7 +2686,7 @@ declare module '@quickbi/bi-types/open/embed/core' {
2584
2686
 
2585
2687
  declare module '@quickbi/bi-types/open/common/page-types' {
2586
2688
  /**
2587
- * @deprecated 开放相关页面类型枚举, 注意要和 routerKkey 做区分, 这个 key 后续要废弃
2689
+ * @deprecated 开放相关页面类型枚举, 注意要和 routerKey 做区分, 这个 key 后续要废弃
2588
2690
  * */
2589
2691
  export enum OpenPageTypeEnum {
2590
2692
  /** 仪表板 */
@@ -2783,8 +2885,12 @@ declare module '@quickbi/bi-types/router/route-key' {
2783
2885
  orgAdminSmartQGlobalConfig = "orgAdminSmartQGlobalConfig",
2784
2886
  /** 组织管理-智能小 Q - 通用配置 - 大模型配置 */
2785
2887
  orgAdminSmartQGlobalConfigLlmConfig = "orgAdminSmartQGlobalConfigLlmConfig",
2888
+ /** 组织管理-智能小 Q - 通用配置 - AI功能管理 */
2889
+ orgAdminSmartQGlobalConfigAIConfig = "orgAdminSmartQGlobalConfigAIConfig",
2786
2890
  /** 组织管理-智能小 Q - 通用配置 - 智能体管理 */
2787
2891
  orgAdminSmartQGlobalConfigAgentManage = "orgAdminSmartQGlobalConfigAgentManage",
2892
+ /** 组织管理-智能小 Q - 通用配置 - 知识库 */
2893
+ orgAdminSmartQGlobalConfigKnowledgeManage = "orgAdminSmartQGlobalConfigKnowledgeManage",
2788
2894
  /** 组织管理-智能小 Q - 通用配置 - 主题定制 */
2789
2895
  orgAdminSmartQGlobalThemeSetting = "orgAdminSmartQGlobalThemeSetting",
2790
2896
  /** 组织管理-小Q问数 */
@@ -2797,6 +2903,12 @@ declare module '@quickbi/bi-types/router/route-key' {
2797
2903
  orgQueryAgentAnalysisThemeAuth = "orgQueryAgentAnalysisThemeAuth",
2798
2904
  /** 组织管理-小Q问数-知识库管理 */
2799
2905
  orgQueryAgentKnowledgeBaseManage = "orgQueryAgentKnowledgeBaseManage",
2906
+ /** 组织管理-小Q问数-全局配置 */
2907
+ orgQueryAgentGlobalConfig = "orgQueryAgentGlobalConfig",
2908
+ /** 组织管理-小Q问数-赞踩知识 */
2909
+ likeAndDislikeKnowledge = "likeAndDislikeKnowledge",
2910
+ /** 组织管理-小Q问数-资产平台接入配置 */
2911
+ orgQueryAgentAssetPlatformConfig = "orgQueryAgentAssetPlatformConfig",
2800
2912
  /** 组织管理-小Q问数-问数资源管理 */
2801
2913
  orgResourceManage = "orgResourceManage",
2802
2914
  /** 组织管理-小Q问数-分析主题管理 */
@@ -2920,10 +3032,14 @@ declare module '@quickbi/bi-types/router/route-key' {
2920
3032
  dataServiceCount = "dataServiceCount",
2921
3033
  /** 发布渠道 */
2922
3034
  embedChannel = "embedChannel",
3035
+ /** 自定义可视化 */
3036
+ customManage = "componentManage",
2923
3037
  /** 自定义组件 */
2924
3038
  customComponent = "customComponent",
2925
3039
  /** 自定义菜单 */
2926
3040
  customMenu = "customMenu",
3041
+ /** 自定义页面 */
3042
+ customPage = "customPage",
2927
3043
  /** 自定义模板 */
2928
3044
  customTemplate = "customTemplate",
2929
3045
  /** 自定义驱动 */
@@ -2950,6 +3066,8 @@ declare module '@quickbi/bi-types/router/route-key' {
2950
3066
  subscriptionTask = "subscriptionTask",
2951
3067
  /** 发送记录, [注意] 该值已被模块嵌入功能落库, 禁止修改枚举值 */
2952
3068
  sendRecord = "sendRecord",
3069
+ /** 小Q解读任务管理 */
3070
+ subscriptionQInsightsManage = "subscriptionQInsightsManage",
2953
3071
  /** 首页-模版市场 */
2954
3072
  templateRoot = "templateRoot",
2955
3073
  /** 我的看板 */
@@ -2958,6 +3076,8 @@ declare module '@quickbi/bi-types/router/route-key' {
2958
3076
  viewHome = "viewHome",
2959
3077
  /** 卡片卡板 */
2960
3078
  viewBoard = "viewBoard",
3079
+ /** 探索分析 */
3080
+ viewExploration = "viewExploration",
2961
3081
  /** 我的收藏 */
2962
3082
  viewFavorite = "viewFavorite",
2963
3083
  /** 最近访问 */
@@ -2988,6 +3108,8 @@ declare module '@quickbi/bi-types/router/route-key' {
2988
3108
  copilotPageQChatDatasource = "copilotPageQChatDatasource",
2989
3109
  /** 首页下的小Q解读 */
2990
3110
  copilotPageQInsight = "copilotPageQInsight",
3111
+ /** 首页下的小Q洞察 */
3112
+ copilotPageQMetric = "copilotPageQMetric",
2991
3113
  /** 首页下的小Q报告 */
2992
3114
  copilotPageQReport = "copilotPageQReport",
2993
3115
  /** 首页下的小Q搭建 */
@@ -3139,6 +3261,12 @@ declare module '@quickbi/bi-types/router/route-key' {
3139
3261
  downloadView = "downloadView",
3140
3262
  /** 自助取数公开预览 */
3141
3263
  downloadPublicView = "downloadPublicView",
3264
+ /** ---------------------------------------------------- 探索分析 -------------------------------------------------- */
3265
+ explorationRoot = "explorationRoot",
3266
+ /** 探索分析编辑 */
3267
+ explorationEdit = "explorationEdit",
3268
+ /** 探索分析预览 */
3269
+ explorationView = "explorationView",
3142
3270
  /** --------------------------------------------------- 即席分析 -------------------------------------------------- */
3143
3271
  analysisRoot = "analysisRoot",
3144
3272
  /** 即席分析编辑 */
@@ -3287,6 +3415,8 @@ declare module '@quickbi/bi-types/router/route-key' {
3287
3415
  monitorScreenshot = "monitorScreenshot",
3288
3416
  /** 钉钉文档嵌入页 */
3289
3417
  dingDoc = "dingDoc",
3418
+ /** ---------------------------------------------------- AI体验中心 —---------------------------------------------------- */
3419
+ aiExperience = "aiExperience",
3290
3420
  /** 小Q报告 */
3291
3421
  wordAgentRoot = "wordAgentRoot",
3292
3422
  /** 小Q报告编辑 */
@@ -3307,7 +3437,21 @@ declare module '@quickbi/bi-types/router/route-key' {
3307
3437
  /** 老大屏预览页 */
3308
3438
  dashboardScreenView = "dashboardScreenView",
3309
3439
  /** 老大屏公开预览页 */
3310
- dashboardScreenPublicView = "dashboardScreenPublicView"
3440
+ dashboardScreenPublicView = "dashboardScreenPublicView",
3441
+ /** 经营洞察列表 */
3442
+ businessInsightList = "businessInsightList",
3443
+ /** 指标洞察列表 */
3444
+ metricInsightList = "metricInsightList",
3445
+ /** 指标树 */
3446
+ metricTreeRoot = "metricTreeRoot",
3447
+ /** 经营洞察-编辑 */
3448
+ businessInsightsEdit = "businessInsightsEdit",
3449
+ /** 经营洞察-预览 */
3450
+ businessInsightsView = "businessInsightsView",
3451
+ /** 指标洞察-编辑 */
3452
+ metricInsightsEdit = "metricInsightsEdit",
3453
+ /** 指标洞察-预览 */
3454
+ metricInsightsView = "metricInsightsView"
3311
3455
  }
3312
3456
  }
3313
3457
 
@@ -3511,6 +3655,14 @@ declare module '@quickbi/bi-types/router/route-tree' {
3511
3655
  /** 智能小 Q - 通用配置 - 大模型配置 */
3512
3656
  readonly key: RouteKey.orgAdminSmartQGlobalConfigLlmConfig;
3513
3657
  readonly path: "/org/admin/smartQ/globalConfig/llmConfig";
3658
+ }, {
3659
+ /** 智能小 Q - 通用配置 - AI功能管理 */
3660
+ readonly key: RouteKey.orgAdminSmartQGlobalConfigAIConfig;
3661
+ readonly path: "/org/admin/smartQ/globalConfig/aiConfig";
3662
+ }, {
3663
+ /** 智能小 Q - 通用配置 - 大模型配置 */
3664
+ readonly key: RouteKey.orgAdminSmartQGlobalConfigKnowledgeManage;
3665
+ readonly path: "/org/admin/smartQ/globalConfig/knowledgeManage";
3514
3666
  }, {
3515
3667
  /** 智能小 Q - 通用配置 - 主题定制 */
3516
3668
  readonly key: RouteKey.orgAdminSmartQGlobalThemeSetting;
@@ -3556,6 +3708,15 @@ declare module '@quickbi/bi-types/router/route-tree' {
3556
3708
  }, {
3557
3709
  readonly key: RouteKey.orgQueryAgentKnowledgeBaseManage;
3558
3710
  readonly path: "/org/admin/copilot/queryAgent/orgKnowledgeBaseManage";
3711
+ }, {
3712
+ readonly key: RouteKey.orgQueryAgentGlobalConfig;
3713
+ readonly path: "/org/admin/copilot/queryAgent/globalConfig";
3714
+ }, {
3715
+ readonly key: RouteKey.likeAndDislikeKnowledge;
3716
+ readonly path: "/org/admin/copilot/queryAgent/likeAndDislikeKnowledge";
3717
+ }, {
3718
+ readonly key: RouteKey.orgQueryAgentAssetPlatformConfig;
3719
+ readonly path: "/org/admin/copilot/queryAgent/assetPlatformConfig";
3559
3720
  }];
3560
3721
  }, {
3561
3722
  readonly key: RouteKey.orgAdminQMessage;
@@ -3730,11 +3891,18 @@ declare module '@quickbi/bi-types/router/route-tree' {
3730
3891
  readonly key: RouteKey.embedChannel;
3731
3892
  readonly path: "/openservice/embedChannel";
3732
3893
  }, {
3733
- readonly key: RouteKey.customComponent;
3894
+ readonly key: RouteKey.customManage;
3734
3895
  readonly path: "/openservice/componentManage";
3735
- }, {
3736
- readonly key: RouteKey.customMenu;
3737
- readonly path: "/openservice/componentMenu";
3896
+ readonly children: [{
3897
+ readonly key: RouteKey.customComponent;
3898
+ readonly path: "/openservice/componentManage/customComponent";
3899
+ }, {
3900
+ readonly key: RouteKey.customMenu;
3901
+ readonly path: "/openservice/componentManage/customMenu";
3902
+ }, {
3903
+ readonly key: RouteKey.customPage;
3904
+ readonly path: "/openservice/componentManage/customPage";
3905
+ }];
3738
3906
  }, {
3739
3907
  readonly key: RouteKey.customTemplate;
3740
3908
  readonly path: "/openservice/defineTemplate";
@@ -3776,6 +3944,9 @@ declare module '@quickbi/bi-types/router/route-tree' {
3776
3944
  }, {
3777
3945
  readonly key: RouteKey.sendRecord;
3778
3946
  readonly path: "/subscribe/record";
3947
+ }, {
3948
+ readonly key: RouteKey.subscriptionQInsightsManage;
3949
+ readonly path: "/subscribe/qInsightsManage";
3779
3950
  }];
3780
3951
  }, {
3781
3952
  readonly key: RouteKey.templateRoot;
@@ -3789,6 +3960,9 @@ declare module '@quickbi/bi-types/router/route-tree' {
3789
3960
  }, {
3790
3961
  readonly key: RouteKey.viewBoard;
3791
3962
  readonly path: "/view/card";
3963
+ }, {
3964
+ readonly key: RouteKey.viewExploration;
3965
+ readonly path: "/view/exploration";
3792
3966
  }, {
3793
3967
  readonly key: RouteKey.viewFavorite;
3794
3968
  readonly path: "/view/favorite";
@@ -3846,6 +4020,12 @@ declare module '@quickbi/bi-types/router/route-tree' {
3846
4020
  }, {
3847
4021
  readonly key: RouteKey.downloadList;
3848
4022
  readonly path: "/workspace/download";
4023
+ }, {
4024
+ readonly key: RouteKey.businessInsightList;
4025
+ readonly path: "/workspace/metricTree/businessInsight";
4026
+ }, {
4027
+ readonly key: RouteKey.metricInsightList;
4028
+ readonly path: "/workspace/metricTree/metricInsight";
3849
4029
  }, {
3850
4030
  readonly key: RouteKey.formList;
3851
4031
  readonly path: "/workspace/dataForm";
@@ -3921,6 +4101,9 @@ declare module '@quickbi/bi-types/router/route-tree' {
3921
4101
  }, {
3922
4102
  readonly key: RouteKey.copilotPageQInsight;
3923
4103
  readonly path: "/copilotPage/qInsight";
4104
+ }, {
4105
+ readonly key: RouteKey.copilotPageQMetric;
4106
+ readonly path: "/copilotPage/qMetric";
3924
4107
  }, {
3925
4108
  readonly key: RouteKey.copilotPageQReport;
3926
4109
  readonly path: "/copilotPage/qreport";
@@ -4063,6 +4246,16 @@ declare module '@quickbi/bi-types/router/route-tree' {
4063
4246
  readonly key: RouteKey.downloadPublicView;
4064
4247
  readonly path: "/token3rd/offline/view/pc.htm";
4065
4248
  }];
4249
+ }, {
4250
+ readonly key: RouteKey.explorationRoot;
4251
+ readonly path: "/exploration";
4252
+ readonly children: [{
4253
+ readonly key: RouteKey.explorationEdit;
4254
+ readonly path: "/exploration/pc.htm";
4255
+ }, {
4256
+ readonly key: RouteKey.explorationView;
4257
+ readonly path: "/exploration/view/pc.htm";
4258
+ }];
4066
4259
  }, {
4067
4260
  readonly key: RouteKey.analysisRoot;
4068
4261
  readonly path: "/analysis";
@@ -4313,6 +4506,25 @@ declare module '@quickbi/bi-types/router/route-tree' {
4313
4506
  readonly key: RouteKey.wordAgentArchiveView;
4314
4507
  readonly path: "/qreport/archiveView.htm";
4315
4508
  }];
4509
+ }, {
4510
+ readonly key: RouteKey.metricTreeRoot;
4511
+ readonly path: "/metricTree";
4512
+ readonly children: [{
4513
+ readonly key: RouteKey.businessInsightsEdit;
4514
+ readonly path: "/metricTree/business/edit.htm";
4515
+ }, {
4516
+ readonly key: RouteKey.businessInsightsView;
4517
+ readonly path: "/metricTree/business/view.htm";
4518
+ }, {
4519
+ readonly key: RouteKey.metricInsightsEdit;
4520
+ readonly path: "/metricTree/insights/edit.htm";
4521
+ }, {
4522
+ readonly key: RouteKey.metricInsightsView;
4523
+ readonly path: "/metricTree/insights/view.htm";
4524
+ }];
4525
+ }, {
4526
+ readonly key: RouteKey.aiExperience;
4527
+ readonly path: "/aiExperience";
4316
4528
  }, {
4317
4529
  readonly key: RouteKey.loginRoot;
4318
4530
  readonly path: "/auth_sso";
@@ -4404,7 +4616,13 @@ declare module '@quickbi/bi-types/permission-type' {
4404
4616
  /** 资源包管理 */
4405
4617
  resourceConfig = "resourceConfig",
4406
4618
  /** 小Q报告 */
4407
- qReport = "qreport"
4619
+ qReport = "qreport",
4620
+ /** 洞察归因 - 经营洞察 */
4621
+ businessInsight = "business_insight",
4622
+ /** 洞察归因 - 指标洞察 */
4623
+ metricInsight = "metric_insight",
4624
+ /** 探索分析 */
4625
+ exploration = "exploration"
4408
4626
  }
4409
4627
  }
4410
4628
 
@@ -4480,7 +4698,8 @@ declare module '@quickbi/bi-types/data-panel/base' {
4480
4698
  AGGREGATE_CALC_FIELD = "AGGREGATE_CALC_FIELD",
4481
4699
  FIELD_GROUP = "FIELD_GROUP",
4482
4700
  AGGREGATE_FIELD = "AGGREGATE_FIELD",
4483
- STRING_FIELD = "STRING_FIELD"
4701
+ STRING_FIELD = "STRING_FIELD",
4702
+ GROUP_CONTRAST = "GROUP_CONTRAST"
4484
4703
  }
4485
4704
  export enum ResultMode {
4486
4705
  SELECT_ALL = "selectAll",
@@ -5013,6 +5232,27 @@ declare module '@quickbi/bi-types/data-panel/data-config' {
5013
5232
  isMultiField?: boolean;
5014
5233
  /** 父字段的guid */
5015
5234
  parentFieldGuid?: string;
5235
+ /** 是否虚拟字段,如散点图中的聚类字段、线柱图中的度量名字段 */
5236
+ isVirtual?: boolean;
5237
+ /** 分组对比组配置, 如果有 groupContrast, 说明是分组对比字段 */
5238
+ groupContrast?: GroupContrast[];
5239
+ }
5240
+ export interface GroupContrast<T = DataConfigAreaItemColumn> {
5241
+ /** 分组 id */
5242
+ groupId: string;
5243
+ /** 分组名称 */
5244
+ groupName: string;
5245
+ /** 分组字段 */
5246
+ columnList: Partial<T>[];
5247
+ /** 差值分组配置 */
5248
+ diffConfig?: {
5249
+ /** 差值类型:差值对比/差值百分比 */
5250
+ calcTypes: 'INCREASE_VALUE' | 'INCREASE_RATIO';
5251
+ /** 源分组id(基准分组) */
5252
+ baseGroupId: string;
5253
+ /** 比较分组id(对比分组) */
5254
+ targetGroupId: string;
5255
+ };
5016
5256
  }
5017
5257
  export enum ContrastType {
5018
5258
  DAY_DAY_RING_RATIO = "day_day",
@@ -5069,9 +5309,11 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5069
5309
  */
5070
5310
  import type * as React from 'react';
5071
5311
  import type { BlendSchema } from '@quickbi/bi-types/cube/cube-blend';
5072
- import type { Aggregator, CubeModel, DateGranularity, EmptyValueDisplayConfig, Field, FieldAttribute, FolderAndHierarchyNode, RegionGranularity } from '@quickbi/bi-types/cube/cube-model';
5312
+ import type { CubeModel, EmptyValueDisplayConfig } from '@quickbi/bi-types/cube/cube-model';
5313
+ import type { Aggregator, DateGranularity, Field, FieldAttribute, FolderAndHierarchyNode, RegionGranularity } from '@quickbi/bi-types/cube/cube-schema';
5073
5314
  import type { FieldType, QueryAxisType, FieldGroupType, SecondFieldType, ChartStatus, StackedSortType, RetainAreaId, FieldCollectionType } from '@quickbi/bi-types/data-panel/base';
5074
- import type { DataConfigAreaItemColumn } from '@quickbi/bi-types/data-panel/data-config';
5315
+ import type { DataConfigAreaItemColumn, GroupContrast } from '@quickbi/bi-types/data-panel/data-config';
5316
+ import type { FormatType } from '@quickbi/bi-types/chart-config';
5075
5317
  export interface ValidateResult {
5076
5318
  isValid: boolean;
5077
5319
  msg?: Message;
@@ -5107,9 +5349,13 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5107
5349
  /** 下钻配置的辅助字段(交叉表、明细表) */
5108
5350
  auxiliaryField = "auxiliaryField",
5109
5351
  /** 空值展示配置 */
5110
- emptyValueDisplay = "emptyValueDisplay"
5352
+ emptyValueDisplay = "emptyValueDisplay",
5353
+ /** 钻取开关(开启下钻/取消下钻) */
5354
+ drillSwitch = "drillSwitch",
5355
+ /** 钻取层级配置 */
5356
+ drillConfig = "drillConfig"
5111
5357
  }
5112
- export type DropDownMenuFieldConfig = AggregationConfig | ContrastConfig | AdvancedCalculationConfig | NumberFormatConfig | LabelConfig | AlignConfig | VerticalAlignConfig | SortConfig | FieldGroupConfig | ChartTypeConfig | ImageSizeConfig | TimeFormatConfig | HidenConfig | AuxiliaryFieldConfig | EmptyValueDisplayFieldConfig;
5358
+ export type DropDownMenuFieldConfig = AggregationConfig | ContrastConfig | AdvancedCalculationConfig | NumberFormatConfig | LabelConfig | AlignConfig | VerticalAlignConfig | SortConfig | FieldGroupConfig | ChartTypeConfig | ImageSizeConfig | TimeFormatConfig | HidenConfig | AuxiliaryFieldConfig | EmptyValueDisplayFieldConfig | DrillSwitchConfig | DrillConfigConfig;
5113
5359
  export type FieldConfigs = Array<DropDownMenuFieldConfig>;
5114
5360
  export type ResetFieldConfigType = {
5115
5361
  menuInfo: DropdownMenuItem;
@@ -5172,6 +5418,7 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5172
5418
  avg = "avg",
5173
5419
  count = "count",
5174
5420
  countd = "countd",
5421
+ approx_distinct = "approx_distinct",
5175
5422
  null = "null",
5176
5423
  more = "more",
5177
5424
  max = "max",
@@ -5262,6 +5509,7 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5262
5509
  }
5263
5510
  export enum NumberFormats {
5264
5511
  auto = "auto",
5512
+ general = "general",
5265
5513
  int = "int",
5266
5514
  oneDecimal = "oneDecimal",
5267
5515
  twoDecimal = "twoDecimal",
@@ -5272,7 +5520,7 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5272
5520
  }
5273
5521
  /** 数据展示格式, 默认打开 */
5274
5522
  export interface NumberFormatConfig extends FieldCommonConfig {
5275
- type: FieldConfigTypes.numberFormat;
5523
+ type?: FieldConfigTypes.numberFormat;
5276
5524
  /** 高级计算类型,支持排序 */
5277
5525
  usefulValue?: NumberFormats[];
5278
5526
  usePrefix?: boolean;
@@ -5281,14 +5529,19 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5281
5529
  hideManualInput?: boolean;
5282
5530
  /** 关闭数量量级使用标识位 */
5283
5531
  hideDataMagnitude?: boolean;
5284
- /** 显示数据单位 */
5285
- showDataUnit?: boolean;
5286
- /** 关闭自动调整配置 */
5532
+ /** 关闭数值中数据量级自动 */
5287
5533
  hideRenderAutoAdjust?: boolean;
5534
+ /** 禁用的格式类型 */
5535
+ disabledFormatTypes?: FormatType[];
5536
+ /** 是否是excel格式化 数据量级与其他实现略有不同,配置项需阉割 */
5537
+ isExcelFormat?: boolean;
5538
+ /** 弹窗中是否显示外部自动适配radio */
5539
+ showAuto?: boolean;
5288
5540
  }
5289
5541
  /** 字段别名 */
5290
5542
  export interface LabelConfig extends FieldCommonConfig {
5291
5543
  type: FieldConfigTypes.rename;
5544
+ title?: string;
5292
5545
  useDescription?: boolean;
5293
5546
  }
5294
5547
  /** 对齐类别 */
@@ -5398,6 +5651,14 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5398
5651
  type: FieldConfigTypes.emptyValueDisplay;
5399
5652
  config?: EmptyValueDisplayConfig;
5400
5653
  }
5654
+ /** 钻取开关(开启下钻/取消下钻) */
5655
+ export interface DrillSwitchConfig extends FieldCommonConfig {
5656
+ type: FieldConfigTypes.drillSwitch;
5657
+ }
5658
+ /** 钻取层级配置 */
5659
+ export interface DrillConfigConfig extends FieldCommonConfig {
5660
+ type: FieldConfigTypes.drillConfig;
5661
+ }
5401
5662
  /**
5402
5663
  * 每个下拉菜单的选项
5403
5664
  */
@@ -5469,6 +5730,8 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5469
5730
  defaultValues?: string[];
5470
5731
  };
5471
5732
  };
5733
+ /** 分组对比字段新增时自动打开配置且只打开一次,设置为运行时状态 */
5734
+ groupContrastAutoOpen?: boolean;
5472
5735
  }
5473
5736
  /** 字段组内具体字段的字段信息,包含是否隐藏等+columnList信息 */
5474
5737
  export interface ChildFieldInfo {
@@ -5528,10 +5791,13 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5528
5791
  description?: React.ReactNode;
5529
5792
  customRenderer?: React.ReactNode;
5530
5793
  isVirtualField?: boolean;
5794
+ colorType?: Field['type'];
5531
5795
  /** 虚拟字段icon */
5532
5796
  operations?: VirtualFieldOperation[];
5533
5797
  /** 触发事件 */
5534
5798
  onClick?: Function;
5799
+ /** 分组对比组配置, 如果有 groupContrast, 说明是分组对比字段 */
5800
+ groupContrast?: GroupContrast<DataConfigAreaItemColumn>[];
5535
5801
  }
5536
5802
  /** [字段集]FieldCollectionInfo信息 */
5537
5803
  export interface FieldCollectionInfo {
@@ -5606,7 +5872,7 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5606
5872
  }
5607
5873
  export class DataSchemaRule {
5608
5874
  /** 默认展示值 */
5609
- placeholder?: string;
5875
+ placeholder?: string | (() => React.ReactNode);
5610
5876
  /** 字段配置个数限制 */
5611
5877
  maxColNum?: number | ((areaMap: AreaMap, options: {
5612
5878
  isConvertQueryInput?: boolean;
@@ -5673,6 +5939,8 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5673
5939
  nameSuffix?: (component: any) => React.ReactNode;
5674
5940
  /** 组合图特有,表示轴的状态 */
5675
5941
  chartStatus?: ChartStatus;
5942
+ /** 组合图特有,表示轴的几何图形(探索分析) */
5943
+ geomType?: FieldChartTypes;
5676
5944
  /** 组合图轴状态不支持选项 */
5677
5945
  chartStatusExclude?: ChartStatus[];
5678
5946
  /** 堆积柱图/条形图特有,表示排序类型 */
@@ -5773,6 +6041,8 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5773
6041
  isExtendAssociateFields?: boolean;
5774
6042
  /** 是否切换数据集 */
5775
6043
  isSwitchCube?: boolean;
6044
+ /** 是否需要进行重新取数(探索分析场景由查询控件触发) */
6045
+ needRefetch?: boolean;
5776
6046
  }
5777
6047
  export type OnChangeCubeOptions = Omit<OnFreshComponentOptions, 'isClickButton' | 'refreshMobileChart' | 'ReloadCube' | 'noPollingCache'>;
5778
6048
  export type OnFreshComponentType = (comp: any, changeAttributeList?: string[], isFresh?: boolean, options?: OnFreshComponentOptions) => any;
@@ -5825,6 +6095,10 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
5825
6095
  timeCompletion: string;
5826
6096
  /** 空值展示配置 */
5827
6097
  emptyValueDisplay: string;
6098
+ /** 钻取开关(开启下钻/取消下钻) */
6099
+ drillSwitch: string;
6100
+ /** 钻取层级配置 */
6101
+ drillConfig: string;
5828
6102
  };
5829
6103
  export {};
5830
6104
  }
@@ -5934,12 +6208,229 @@ declare module '@quickbi/bi-types/data-panel/data-schema' {
5934
6208
  }
5935
6209
 
5936
6210
  declare module '@quickbi/bi-types/cube/cube-model' {
6211
+ /**
6212
+ * @author 嘉念
6213
+ * @description 数据集接口模型
6214
+ */
6215
+ import type { FieldAttribute } from '@quickbi/bi-types/cube/cube-schema';
6216
+ import { CubeSchema, EmptyValueDisplayType } from '@quickbi/bi-types/cube/cube-schema';
6217
+ import type { DsCreateOriginEnum, DataLoadMode } from '@quickbi/bi-types/cube/data-source';
6218
+ import { LogicalSchema } from '@quickbi/bi-types/cube/logical-schema';
6219
+ /** 编辑权限属性 */
6220
+ export enum EditPermitType {
6221
+ /** 脏数据代表空间成员 */
6222
+ oldWorkSpaceMember = 1,
6223
+ /** 指定成员 */
6224
+ appointPerson = 12,
6225
+ /** 全部空间成员 */
6226
+ allWorkSpacePerson = 11
6227
+ }
6228
+ /** 使用权限属性 */
6229
+ export enum UsePermitType {
6230
+ /** 指定成员 */
6231
+ appointPerson = 2,
6232
+ /** 全部空间成员 */
6233
+ allWorkSpacePerson = 1
6234
+ }
6235
+ /** 数据集额外信息 */
6236
+ export class SchemaExtraInfo {
6237
+ /** 数据集所在工作空间的文件夹位置 */
6238
+ aimDirId: string;
6239
+ hasAuthorizedUse?: boolean;
6240
+ /** 权限列表 */
6241
+ permissionList?: string[];
6242
+ /** 行级权限,列级权限字段id */
6243
+ dataLevelAttributeIds: string[];
6244
+ /** 无列级权限的字段 */
6245
+ withoutColumnLevelPermissionFields: string[];
6246
+ /** 聚合方式 */
6247
+ aggFunctions?: string[];
6248
+ /** 是否开启数据脱敏 */
6249
+ isDataMaskOpen?: number;
6250
+ /** 是否开启列级权限 1=开启 0=未开启 */
6251
+ isOpenColumnLevelPermission?: number;
6252
+ /** 是否开启了行级权限 1=开启 0=未开启 */
6253
+ isOpenRowLevelPermission?: number;
6254
+ /** 当前数据集来自的类型 */
6255
+ dsCreateOrigin?: DsCreateOriginEnum;
6256
+ /** 跨源模式 */
6257
+ dataLoadMode?: DataLoadMode;
6258
+ /** 是否为etl 生成的数据集 */
6259
+ etlGenerateCube?: boolean;
6260
+ /** 数据集类型 */
6261
+ cubeType?: 'upload' | 'upload_static';
6262
+ /** 数据集owner */
6263
+ creatorId?: string;
6264
+ /** 数据集owner name */
6265
+ creatorName?: string;
6266
+ /** 编辑权限属性 0-私密 11-空间成员 12-指定成员 1-脏数据代表空间成员 */
6267
+ authLevel?: EditPermitType;
6268
+ /** 数据集描述 */
6269
+ comments?: string;
6270
+ /** 使用权限属性 1-空间成员 2-指定人 */
6271
+ authorizedUseType?: UsePermitType;
6272
+ /** */
6273
+ functionConfig: {
6274
+ enableCache: boolean;
6275
+ enableCalculateMember: boolean;
6276
+ enableCustomizedSql: boolean;
6277
+ enableJoin: boolean;
6278
+ };
6279
+ /** 数据集修改时间 */
6280
+ gmtModified?: string;
6281
+ }
6282
+ /** 空值展示配置类型 */
6283
+ export enum EmptyValueType {
6284
+ /** 空值 */
6285
+ EmptyValue = "EmptyValue",
6286
+ /** 空字符串 */
6287
+ EmptyString = "EmptyString"
6288
+ }
6289
+ export class EmptyStringOrNullDisplayConfig {
6290
+ /** 展示类型 */
6291
+ formatType: EmptyValueDisplayType;
6292
+ /** 自定义展示内容 */
6293
+ customFormat: string;
6294
+ /** 是否是自动(继承数据集) */
6295
+ isAuto?: boolean;
6296
+ }
6297
+ /** 空值展示配置 */
6298
+ export class EmptyValueDisplayConfig {
6299
+ /** 空值展示配置 */
6300
+ emptyValueConfig: EmptyStringOrNullDisplayConfig;
6301
+ /** 空字符串展示配置 */
6302
+ emptyStringConfig: EmptyStringOrNullDisplayConfig;
6303
+ static getDefaultConfigForQuickReport(): EmptyValueDisplayConfig;
6304
+ static convertAttrEmptyValueDisplayConfig(attr: FieldAttribute, isAuto?: boolean): EmptyValueDisplayConfig;
6305
+ /** 根据fieldSettingMap中存储的配置转换成空值展示配置模型 */
6306
+ static getConfigByFieldSettingMap(fieldSetting: any, defaultValue?: any): EmptyValueDisplayConfig;
6307
+ }
6308
+ /** 返回值cellset中的dimType */
6309
+ export enum CellsetDimTypes {
6310
+ StandardDimension = "StandardDimension",
6311
+ StrDateTypeDimension = "StrDateTypeDimension",
6312
+ StarDimension = "StarDimension",
6313
+ GeographicDimension = "GeographicDimension",
6314
+ /** 上面为维度字段,measureCol代表度量 */
6315
+ measureCol = "measureCol"
6316
+ }
6317
+ /** 数据集模型 */
6318
+ export class CubeModel {
6319
+ /** 数据集逻辑模型 */
6320
+ logicalSchema: LogicalSchema;
6321
+ /** 数据集字段相关模型 */
6322
+ cubeSchema: CubeSchema;
6323
+ /** 数据集结构版本 */
6324
+ metaModelVersion: string;
6325
+ /** 数据集订正版本(前端使用) */
6326
+ userDefineVersion: string;
6327
+ /** 数据集额外信息 */
6328
+ schemaExtraInfo: SchemaExtraInfo;
6329
+ }
6330
+ }
6331
+
6332
+ declare module '@quickbi/bi-types/cube/cube-schema' {
5937
6333
  /**
5938
6334
  * @author 嘉念
5939
- * @description 数据集接口模型
6335
+ * @description 数据集字段相关模型
5940
6336
  */
5941
6337
  import type { FieldExpressionModel } from '@quickbi/bi-types/cube/cube-field-expression';
5942
- import type { DsCreateOriginEnum, DsType, DataLoadMode } from '@quickbi/bi-types/cube/data-source';
6338
+ /** 当前数据类型,如果没有进行过类型切换,则和OriginDataType一致 影响sql生成 (原colType) */
6339
+ export enum DataType {
6340
+ number = "number",
6341
+ string = "string",
6342
+ date = "date",
6343
+ datetime = "datetime",
6344
+ time = "time"
6345
+ }
6346
+ /** 二级数据类型:不影响sql生成,影响内存处理及前端icon展示(如:地理维度、) */
6347
+ export enum SecondDataType {
6348
+ number = "number",
6349
+ string = "string",
6350
+ geographic = "geographic",
6351
+ imageUrl = "imageUrl",
6352
+ imageFileId = "imageFileId",
6353
+ date = "date",
6354
+ datetime = "datetime",
6355
+ time = "time",
6356
+ multiValue = "multi_value"
6357
+ }
6358
+ /** 物理数据类型:第一次初始化时填写,后续不会修改 */
6359
+ export type OriginDataType = DataType;
6360
+ /** 度量类型聚合方式 */
6361
+ export enum Aggregator {
6362
+ 'sum' = "sum",
6363
+ 'count' = "count",
6364
+ 'distinct-count' = "distinct-count",
6365
+ 'max' = "max",
6366
+ 'min' = "min",
6367
+ 'avg' = "avg"
6368
+ }
6369
+ /** 年粒度日期类型 */
6370
+ export enum CalendarTypeEnum {
6371
+ /** 公历年 */
6372
+ GregorianYear = "gregorian-year",
6373
+ /** 财年 */
6374
+ FiscalYear = "fiscal-year",
6375
+ /** 农历年 */
6376
+ LunarYear = "lunar-year"
6377
+ }
6378
+ /** 日期维度支持的粒度 */
6379
+ export enum DateGranularity {
6380
+ year = "year",
6381
+ fiscalYear = "fiscal-year",
6382
+ quarter = "year-quarter",
6383
+ fiscalYearQuarter = "fiscal-year-quarter",
6384
+ month = "year-month",
6385
+ week = "year-week",
6386
+ day = "year-month-day",
6387
+ hour = "hour",
6388
+ minute = "hour-minute",
6389
+ second = "hour-minute-second",
6390
+ datetime = "datetime"
6391
+ }
6392
+ /** 地理维度支持的粒度 */
6393
+ export enum RegionGranularity {
6394
+ /** 洲 */
6395
+ continent = "CONTINENT",
6396
+ /** 国家 */
6397
+ country = "COUNTRY",
6398
+ /** 区域 */
6399
+ region = "REGION",
6400
+ /** 省 */
6401
+ province = "PROVINCE",
6402
+ /** 市 */
6403
+ city = "CITY",
6404
+ /** 区 */
6405
+ xian = "XIAN",
6406
+ /** 街道 */
6407
+ street = "STREET",
6408
+ /** 经度 */
6409
+ lng = "LNG",
6410
+ /** 纬度 */
6411
+ lat = "LAT",
6412
+ /** 自定义区域 */
6413
+ custom_region = "CUSTOM_REGION"
6414
+ }
6415
+ /** 多值分隔符 */
6416
+ export enum MultiSeparator {
6417
+ comma = ",",
6418
+ semicolon = ";",
6419
+ space = " "
6420
+ }
6421
+ /** 空值展示配置枚举 */
6422
+ export enum EmptyValueDisplayType {
6423
+ /** 展示为'-' */
6424
+ Hyphen = "hyphen",
6425
+ /** 展示为{空}/{空字符串} */
6426
+ Braces = "braces",
6427
+ /** 展示为"null" */
6428
+ Null = "null",
6429
+ /** 不展示 */
6430
+ NotDisplay = "notDisplay",
6431
+ /** 自定义 */
6432
+ Custom = "custom"
6433
+ }
5943
6434
  export enum CustomAreaType {
5944
6435
  /** 自定义地理信息 */
5945
6436
  CUSTOM_AREA = "CUSTOM_AREA",
@@ -5959,456 +6450,29 @@ declare module '@quickbi/bi-types/cube/cube-model' {
5959
6450
  /** 横坐标 */
5960
6451
  VERTICAL = "CUSTOM_PICTURE_VERTICAL"
5961
6452
  }
6453
+ /** 地理数据匹配项 */
6454
+ export interface GeoDataMappingItem {
6455
+ /** 用户侧地理维度值(原始值: null/'') */
6456
+ key: string;
6457
+ /** qbi 标准行政区划 code */
6458
+ value: string;
6459
+ }
6460
+ /** 地理数据匹配 */
6461
+ export type GeoDataMapping = GeoDataMappingItem[];
5962
6462
  /** 自定义地理信息 */
5963
6463
  export interface ExtraInfo {
5964
6464
  /** 自定义层级Id */
5965
6465
  customGeoLevel?: number;
5966
6466
  /** 自定义图片类型 */
5967
6467
  pictureCoordinateType?: PictureCoordinateType;
6468
+ /** 地理数据匹配 */
6469
+ customGeoMapping?: GeoDataMapping;
5968
6470
  }
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 {
6471
+ /** 字段属性 */
6472
+ export interface FieldAttribute {
6029
6473
  /** 唯一标识 */
6030
6474
  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
- }
6130
- /** 编辑权限属性 */
6131
- export enum EditPermitType {
6132
- /** 脏数据代表空间成员 */
6133
- oldWorkSpaceMember = 1,
6134
- /** 指定成员 */
6135
- appointPerson = 12,
6136
- /** 全部空间成员 */
6137
- allWorkSpacePerson = 11
6138
- }
6139
- /** 使用权限属性 */
6140
- export enum UsePermitType {
6141
- /** 指定成员 */
6142
- appointPerson = 2,
6143
- /** 全部空间成员 */
6144
- allWorkSpacePerson = 1
6145
- }
6146
- /** 数据集额外信息 */
6147
- export class SchemaExtraInfo {
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;
6192
- }
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;
6205
- }
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"
6219
- }
6220
- export enum TableRelation {
6221
- MANY_TO_ONE = "many-to-one"
6222
- }
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"
6236
- }
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[];
6259
- }
6260
- /** 当前数据类型,如果没有进行过类型切换,则和OriginDataType一致 影响sql生成 (原colType) */
6261
- export enum DataType {
6262
- number = "number",
6263
- string = "string",
6264
- date = "date",
6265
- datetime = "datetime",
6266
- time = "time"
6267
- }
6268
- /** 二级数据类型:不影响sql生成,影响内存处理及前端icon展示(如:地理维度、) */
6269
- export enum SecondDataType {
6270
- number = "number",
6271
- string = "string",
6272
- geographic = "geographic",
6273
- imageUrl = "imageUrl",
6274
- imageFileId = "imageFileId",
6275
- date = "date",
6276
- datetime = "datetime",
6277
- time = "time",
6278
- multiValue = "multi_value"
6279
- }
6280
- /** 物理数据类型:第一次初始化时填写,后续不会修改 */
6281
- export type OriginDataType = DataType;
6282
- /** 年粒度日期类型 */
6283
- export enum CalendarTypeEnum {
6284
- /** 公历年 */
6285
- GregorianYear = "gregorian-year",
6286
- /** 财年 */
6287
- FiscalYear = "fiscal-year",
6288
- /** 农历年 */
6289
- LunarYear = "lunar-year"
6290
- }
6291
- /** 日期维度支持的粒度 */
6292
- export enum DateGranularity {
6293
- year = "year",
6294
- fiscalYear = "fiscal-year",
6295
- quarter = "year-quarter",
6296
- fiscalYearQuarter = "fiscal-year-quarter",
6297
- month = "year-month",
6298
- week = "year-week",
6299
- day = "year-month-day",
6300
- hour = "hour",
6301
- minute = "hour-minute",
6302
- second = "hour-minute-second",
6303
- datetime = "datetime"
6304
- }
6305
- /** 地理维度支持的粒度 */
6306
- export enum RegionGranularity {
6307
- /** 洲 */
6308
- continent = "CONTINENT",
6309
- /** 国家 */
6310
- country = "COUNTRY",
6311
- /** 区域 */
6312
- region = "REGION",
6313
- /** 省 */
6314
- province = "PROVINCE",
6315
- /** 市 */
6316
- city = "CITY",
6317
- /** 区 */
6318
- xian = "XIAN",
6319
- /** 街道 */
6320
- street = "STREET",
6321
- /** 经度 */
6322
- lng = "LNG",
6323
- /** 纬度 */
6324
- lat = "LAT",
6325
- /** 自定义区域 */
6326
- custom_region = "CUSTOM_REGION"
6327
- }
6328
- /** 多值分隔符 */
6329
- export enum MultiSeparator {
6330
- comma = ",",
6331
- semicolon = ";",
6332
- space = " "
6333
- }
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"
6367
- }
6368
- /** 空值展示配置类型 */
6369
- export enum EmptyValueType {
6370
- /** 空值 */
6371
- EmptyValue = "EmptyValue",
6372
- /** 空字符串 */
6373
- EmptyString = "EmptyString"
6374
- }
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"
6387
- }
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;
6406
- }
6407
- /** 字段属性 */
6408
- export interface FieldAttribute {
6409
- /** 唯一标识 */
6410
- uniqueId: string;
6411
- /** 显示名称 */
6475
+ /** 显示名称 */
6412
6476
  caption: string;
6413
6477
  /** 一级数据类型(分析类型):影响sql生成 */
6414
6478
  dataType: DataType;
@@ -6418,6 +6482,8 @@ declare module '@quickbi/bi-types/cube/cube-model' {
6418
6482
  originDataType: OriginDataType | null;
6419
6483
  /** 格式化格式 */
6420
6484
  format: string | null;
6485
+ /** 原始格式化配置(NumberFormat对象的JSON字符串) */
6486
+ originFormat?: string | null;
6421
6487
  /** 表数据物理存储格式(暂未使用2021-03) */
6422
6488
  dataFormat: string | null;
6423
6489
  /** 聚合方式 */
@@ -6472,37 +6538,63 @@ declare module '@quickbi/bi-types/cube/cube-model' {
6472
6538
  customAreaType?: CustomAreaType;
6473
6539
  /** 数据集属性额外信息 */
6474
6540
  extraInfo?: ExtraInfo;
6541
+ /** 逻辑表id */
6542
+ node?: string;
6543
+ /** 物理字段 */
6544
+ column?: string;
6475
6545
  }
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;
6546
+ /** 字段列表定义,包含维度、度量 */
6547
+ export interface Field {
6548
+ /** 唯一标识 */
6549
+ uniqueId: string;
6550
+ /** 字段名称 */
6551
+ caption: string;
6552
+ type: 'Dimension' | 'Measure';
6553
+ /** 标记数据面板上的字段、文件夹,和数据集原有的字段、文件夹区别开来 */
6554
+ fromPanel?: boolean;
6555
+ /** 老接口保留字段(计算字段expression中作为唯一标识使用),新数据跟uniqueId值相同 */
6556
+ name?: string;
6557
+ /** 引用表id */
6558
+ table: string;
6559
+ /** 逻辑表id */
6560
+ node: string;
6561
+ /** 物理字段 */
6562
+ column: string;
6563
+ /** 是否为衍生字段,分组字段和计算字段都为true */
6564
+ calculateMember: boolean;
6565
+ /** 字段描述,仅日期类型会使用 */
6566
+ comments?: string;
6567
+ /** 是否支持修改字段类型 */
6568
+ supportCastDataType?: boolean;
6569
+ attributes: FieldAttribute[];
6505
6570
  }
6571
+ export type AttributeMapValue = {
6572
+ attribute: FieldAttribute;
6573
+ type: 'Dimension' | 'Measure';
6574
+ };
6575
+ /**
6576
+ * 树节点类型
6577
+ * folder: 文件夹
6578
+ * hierarchy: 层级结构
6579
+ * attribute: 普通节点
6580
+ * dimensionGroup: 维度组
6581
+ * measureGroup: 度量组
6582
+ * lnglatGroup: 经纬度组
6583
+ * */
6584
+ export type TreeNodeTypes = 'folder' | 'hierarchy' | 'attribute' | 'dimensionGroup' | 'measureGroup' | 'lnglatGroup';
6585
+ /**
6586
+ * 维度树结构类型
6587
+ * Normal: 正常层级结构
6588
+ * Date: 日期类型层级结构
6589
+ * Linked: 关联类型文件夹
6590
+ */
6591
+ export type DimensionTreeFlags = 'DimensionNormal' | 'DimensionDate' | 'DimensionLinked' | null;
6592
+ /**
6593
+ * 度量树结构类型
6594
+ * Normal: 正常层级结构
6595
+ * Linked: 关联类型文件夹
6596
+ */
6597
+ export type MeasureTreeFlags = 'MeasureNormal' | 'MeasureLinked' | null;
6506
6598
  /** 普通字段 */
6507
6599
  export interface AttributeNode {
6508
6600
  /** 字段ID */
@@ -6513,6 +6605,8 @@ declare module '@quickbi/bi-types/cube/cube-model' {
6513
6605
  fromPanel?: boolean;
6514
6606
  /** 节点名称,attribute类型为null */
6515
6607
  name?: null;
6608
+ /** 逻辑表id */
6609
+ node?: string;
6516
6610
  caption?: string;
6517
6611
  children?: (AttributeNode | FolderAndHierarchyNode)[];
6518
6612
  flag: null;
@@ -6529,6 +6623,8 @@ declare module '@quickbi/bi-types/cube/cube-model' {
6529
6623
  fromPanel?: boolean;
6530
6624
  /** 节点名称 */
6531
6625
  name?: string;
6626
+ /** 逻辑表id */
6627
+ node?: string;
6532
6628
  /** 节点名称,attribute类型为null */
6533
6629
  caption?: string;
6534
6630
  /** 所引用的关联表的id,仅flag为DimensionLinked和MeasureLinked时存在 */
@@ -6537,14 +6633,61 @@ declare module '@quickbi/bi-types/cube/cube-model' {
6537
6633
  /** 文件夹和层级结构类型 */
6538
6634
  flag: DimensionTreeFlags | MeasureTreeFlags;
6539
6635
  }
6540
- /**
6541
- * 日期占位符的类型(单个/范围)
6542
- */
6543
- export enum OriginDateType {
6544
- /** 单个日期 */
6545
- SingleDate = "singleDate",
6546
- /** 日期区间 */
6547
- DateRange = "dateRange"
6636
+ /** 数据集层级结构/文件夹/属性的嵌套关系 */
6637
+ export type FieldTree = AttributeNode | FolderAndHierarchyNode;
6638
+ export interface FilterElement {
6639
+ /** 过滤条件引用的字段uid */
6640
+ resourceId: string;
6641
+ /** 过滤条件比较运算符:> < =, 和查询控件所用保持一致 */
6642
+ functionalOperator: string;
6643
+ values: {
6644
+ type?: 'absolute' | 'relative' | null;
6645
+ value: string;
6646
+ }[];
6647
+ /** 前端是否隐藏掉 */
6648
+ hidden?: boolean;
6649
+ }
6650
+ /** 过滤条件 */
6651
+ export class FilterAttr {
6652
+ logicalOperator: 'and' | 'or';
6653
+ /** 过滤值 */
6654
+ filterElements: FilterElement[];
6655
+ /** 嵌套过滤条件 */
6656
+ filters: FilterAttr[];
6657
+ beforeJoin?: boolean;
6658
+ tableId?: string;
6659
+ }
6660
+ /** 占位符类型 */
6661
+ export enum ParamStyleType {
6662
+ /** 条件占位符 */
6663
+ condition = "condition",
6664
+ /** 值占位符 */
6665
+ placeholder = "placeholder",
6666
+ /** 表达式占位符 */
6667
+ param = "param",
6668
+ /** 加速占位符 */
6669
+ accelerate = "accelerate"
6670
+ }
6671
+ /** 占位符参数 */
6672
+ export enum ParamDataType {
6673
+ /** 文本 */
6674
+ string = "string",
6675
+ /** 数值 */
6676
+ number = "number",
6677
+ /** 日期 */
6678
+ dateTime = "datetime",
6679
+ /** 日期-年月日 */
6680
+ dateRegion = "dateRegion",
6681
+ /** 日期-年季 */
6682
+ quarterRegion = "quarterRegion",
6683
+ /** 日期-年月 */
6684
+ monthRegion = "monthRegion",
6685
+ /** 日期-年周 */
6686
+ weekRegion = "weekRegion",
6687
+ /** 日期-年 */
6688
+ yearRegion = "yearRegion",
6689
+ /** 日期-年月日时分秒 */
6690
+ ymdHmsRegion = "ymdHmsRegion"
6548
6691
  }
6549
6692
  export interface ParamType {
6550
6693
  /** sql参数id */
@@ -6574,34 +6717,333 @@ declare module '@quickbi/bi-types/cube/cube-model' {
6574
6717
  /** 默认值是否全局生效,true: 生效范围与过滤器一致。false: 默认值仅在数据集生效 */
6575
6718
  useInGlobal?: boolean;
6576
6719
  }
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"
6720
+ /** 数据集逻辑字段模型 */
6721
+ export class CubeSchema {
6722
+ /** 唯一标识,无业务逻辑,不要使用 */
6723
+ uniqueId: string;
6724
+ /** 数据集ID */
6725
+ cubeId: string;
6726
+ /** 数据源ID */
6727
+ datasourceId: string;
6728
+ /** 数据集名称 */
6729
+ caption: string;
6730
+ /** 字段列表 */
6731
+ fields: Field[];
6732
+ /** 普通字段、层系、文件夹树形结构 */
6733
+ fieldTree: FieldTree[];
6734
+ /** 过滤条件 */
6735
+ filter?: FilterAttr[];
6736
+ /** 全局参数 */
6737
+ params: ParamType[];
6738
+ /** 占位符 */
6739
+ sqlPlaceholders: ParamType[];
6588
6740
  }
6589
- /** 返回值cellset中的dimType */
6590
- export enum CellsetDimTypes {
6591
- StandardDimension = "StandardDimension",
6592
- StrDateTypeDimension = "StrDateTypeDimension",
6593
- StarDimension = "StarDimension",
6594
- GeographicDimension = "GeographicDimension",
6595
- /** 上面为维度字段,measureCol代表度量 */
6596
- measureCol = "measureCol"
6741
+ /** 数据集影子模型 */
6742
+ export type CubeShadow = CubeSchema;
6743
+ }
6744
+
6745
+ declare module '@quickbi/bi-types/cube/cube-blend' {
6746
+ /**
6747
+ * @author 雅影
6748
+ * @description 数据混合类型定义
6749
+ */
6750
+ import type { CubeLinkModel, CubeLinkJoinKeyModel } from '@quickbi/bi-types/cube/cube-links';
6751
+ /** 数据集之间关联的模型定义 */
6752
+ export interface CubeLink extends Omit<CubeLinkModel, 'joinKeys'> {
6753
+ joinKeys: Omit<CubeLinkJoinKeyModel, 'condition'>[];
6597
6754
  }
6598
- export class HintModal {
6599
- dsType: DsType;
6600
- head: `set`;
6601
- key: string;
6602
- connector: `=`;
6755
+ /** 数据集混合schema */
6756
+ export interface BlendSchema {
6757
+ /** 数据混合唯一id */
6758
+ uniqueId: string;
6759
+ /** 数据混合名称 */
6760
+ caption: string;
6761
+ /** 数据混合关联关系 */
6762
+ cubeLinks: CubeLink[];
6763
+ /** 标识是否存在字段id重复 */
6764
+ hasRepeatFid?: boolean;
6765
+ }
6766
+ /** 数据混合消费端模型定义 */
6767
+ export type CubeBlend = BlendSchema;
6768
+ }
6769
+
6770
+ declare module '@quickbi/bi-types/cube/cube-field-expression' {
6771
+ /**
6772
+ * @author 嘉念
6773
+ * @description 数据集字段表达式模型
6774
+ */
6775
+ export enum FieldExpressionType {
6776
+ /** 分组字段 */
6777
+ dataGroup = "dataGroup",
6778
+ /** 计算字段 */
6779
+ udf = "udf",
6780
+ /** lod字段 */
6781
+ system = "system",
6782
+ /** 工具栏字段(时间差字段、缺失值替换字段、新增别名字段、拆分列字段、合并字段) */
6783
+ tool = "tool"
6784
+ }
6785
+ /** 工具栏字段类型 */
6786
+ export enum ToolFieldType {
6787
+ /** 时间差字段 */
6788
+ DateDifference = "dateDifference",
6789
+ /** 缺失值替换字段 */
6790
+ MissingValueReplacement = "missingValueReplacement",
6791
+ /** 维度别名字段 */
6792
+ ValueReplacement = "valueReplacement",
6793
+ /** 拆分列字段 */
6794
+ SplitField = "SplitField",
6795
+ /** 合并字段 */
6796
+ MergeField = "mergeField"
6797
+ }
6798
+ /** 时间差字段配置 */
6799
+ export interface DateDiffFieldConfig {
6800
+ /** 开始字段 */
6801
+ firstField: string;
6802
+ /** 结束字段 */
6803
+ endField: string;
6804
+ /** 时间单位 */
6805
+ timeUnit: string;
6806
+ }
6807
+ /** 维值替换字段配置 */
6808
+ export interface ReplaceDimValueFieldConfig {
6809
+ /** 引用字段Id */
6810
+ refUniqueId: string;
6811
+ /** 替换维值列表 */
6812
+ replaceElementList: {
6813
+ /** 原始值 */
6814
+ originalValue: string;
6815
+ /** 替换值 */
6816
+ value: string;
6817
+ }[];
6818
+ }
6819
+ /** 缺失值替换字段配置 */
6820
+ export interface MissingValueReplaceFieldConfig {
6821
+ /** 引用字段Id */
6822
+ refUniqueId: string;
6823
+ /** 替换空值 */
6824
+ replaceNullValue: boolean;
6825
+ /** 替换空白值 */
6826
+ replaceBlankValue: boolean;
6827
+ /** 替换值 */
6603
6828
  value: string;
6604
- support: boolean;
6829
+ }
6830
+ /** 拆分列字段配置 */
6831
+ export interface SplitColumnFieldConfig {
6832
+ /** 引用字段Id */
6833
+ refUniqueId: string;
6834
+ /** 分隔符 */
6835
+ delimiter: string;
6836
+ /** 是否是第N列拆分字段 */
6837
+ firstN: boolean;
6838
+ /** 拆分字符数 */
6839
+ splitNumber: number;
6840
+ /** 拆分索引 */
6841
+ splitIndex: number;
6842
+ }
6843
+ /** 合并字段配置 */
6844
+ export interface MergeFieldsFieldConfig {
6845
+ /** 连接符 */
6846
+ delimiter: string;
6847
+ /** 合并字段id列表 */
6848
+ mergeElementList: string[];
6849
+ }
6850
+ export interface ToolFieldConfig {
6851
+ /** 唯一标识 */
6852
+ uniqueId: string;
6853
+ /** 字段名称 */
6854
+ caption: string;
6855
+ /** 工具栏类型 */
6856
+ toolType: ToolFieldType;
6857
+ /** 时间差字段配置 */
6858
+ dateDiffItem: DateDiffFieldConfig;
6859
+ /** 新增别名字段配置 */
6860
+ replaceItem: ReplaceDimValueFieldConfig;
6861
+ /** 缺失值替换字段配置 */
6862
+ missingReplaceItem: MissingValueReplaceFieldConfig;
6863
+ /** 拆分列字段配置 */
6864
+ splitItem: SplitColumnFieldConfig;
6865
+ /** 合并字段配置 */
6866
+ mergeItem: MergeFieldsFieldConfig;
6867
+ }
6868
+ /** 分组字段类型 */
6869
+ export enum GroupType {
6870
+ /** 日期类型-自定义区间分组 */
6871
+ NormalGroup = "NormalGroup",
6872
+ /** 枚举-列表分组类型 */
6873
+ ListGroup = "ListGroup",
6874
+ /** 数值-自定义分组类型 */
6875
+ CustomizedGroup = "CustomizedGroup"
6876
+ }
6877
+ /** 分组字段操作符 */
6878
+ export enum GroupOperator {
6879
+ /** 小于 */
6880
+ LessThan = "lessThan",
6881
+ /** 小于等于 */
6882
+ LessThanOrEqualTo = "lessThanOrEqualTo",
6883
+ /** 大于 */
6884
+ GreaterThan = "greaterThan",
6885
+ /** 大于等于 */
6886
+ GreaterThanOrEqualTo = "greaterThanOrEqualTo",
6887
+ /** 为空 */
6888
+ IsNull = "isNull",
6889
+ /** 介于 */
6890
+ Between = "between"
6891
+ }
6892
+ /** 数值-自定义分组类型 */
6893
+ export type CustomizedGroup = {
6894
+ /** 是否是默认分组字段 */
6895
+ groupName: string;
6896
+ defaultGroup: boolean;
6897
+ lower: string;
6898
+ upper: string;
6899
+ lowerOperator: GroupOperator.IsNull | GroupOperator.GreaterThan | GroupOperator.GreaterThanOrEqualTo;
6900
+ upperOperator: GroupOperator.LessThan | GroupOperator.LessThanOrEqualTo;
6901
+ groupNameType: any;
6902
+ };
6903
+ /** 枚举-列表分组类型 */
6904
+ export type ListGrouping = {
6905
+ groupName: string;
6906
+ groupElementList: string[];
6907
+ defaultGroup: boolean;
6908
+ };
6909
+ /** 日期类型-自定义区间分组 */
6910
+ export type NormalGroup = {
6911
+ groupName: string;
6912
+ defaultGroup: boolean;
6913
+ lower: string;
6914
+ upper: string;
6915
+ lowerOperator: GroupOperator.GreaterThanOrEqualTo;
6916
+ upperOperator: GroupOperator.LessThanOrEqualTo;
6917
+ };
6918
+ /** 分组字段 */
6919
+ export type Groups = CustomizedGroup[] | ListGrouping[] | NormalGroup[];
6920
+ export interface GroupFieldConfig {
6921
+ /** 唯一标识 */
6922
+ uniqueId: string;
6923
+ /** 分组名称 */
6924
+ caption: string;
6925
+ /** 分组类型 */
6926
+ groupType: GroupType;
6927
+ refUniqueId: string;
6928
+ /** qa中使用。qbi目前用不到 */
6929
+ refSql?: string;
6930
+ /** qa中使用。qbi目前用不到 */
6931
+ refFunction?: string;
6932
+ /** 数值类型分组字段 */
6933
+ customizedGroups?: CustomizedGroup[];
6934
+ /** 字符串类型分组字段 */
6935
+ listGroupings?: ListGrouping[];
6936
+ /** 日期类型分组字段 */
6937
+ normalGroups?: NormalGroup[];
6938
+ }
6939
+ /**
6940
+ * 原先计算字段、分组字段存储配置的模型,v6.0.2新增:时间差字段、缺失值替换字段、新增别名字段、拆分列字段、合并字段
6941
+ */
6942
+ export interface FieldExpressionModel {
6943
+ type: FieldExpressionType;
6944
+ value?: string;
6945
+ /** 分组字段配置 */
6946
+ dataGroup: GroupFieldConfig;
6947
+ /** 工具栏字段配置 */
6948
+ tool?: ToolFieldConfig;
6949
+ }
6950
+ }
6951
+
6952
+ declare module '@quickbi/bi-types/cube/cube-links' {
6953
+ /**
6954
+ * @author 雅影
6955
+ * @description 数据集关联模型类型定义
6956
+ */
6957
+ import type { TableJoinType } from '@quickbi/bi-types/cube/physical-schema';
6958
+ export enum JoinCondition {
6959
+ /** 等于 */
6960
+ EQUAL_TO = "equal-to",
6961
+ /** 不等于 */
6962
+ UNEQUAL_TO = "unequal-to",
6963
+ /** 大于 */
6964
+ GREATER_THAN = "greater-than",
6965
+ /** 大于等于 */
6966
+ GREATER_THAN_OR_EQUAL_TO = "greater-than-or-equal-to",
6967
+ /** 小于 */
6968
+ LESS_THAN = "less-than",
6969
+ /** 小于等于 */
6970
+ LESS_THAN_OR_EQUAL_TO = "less-than-or-equal-to"
6971
+ }
6972
+ /** 基数 */
6973
+ export enum TableRelation {
6974
+ /** 一对一 */
6975
+ ONE_TO_ONE = "one-to-one",
6976
+ /** 多对多 */
6977
+ MANY_TO_MANY = "many-to-many",
6978
+ /** 一对多 */
6979
+ ONE_TO_MANY = "one-to-many",
6980
+ /** 多对一 */
6981
+ MANY_TO_ONE = "many-to-one"
6982
+ }
6983
+ /** 引用完整性 */
6984
+ export enum ReferentialIntegrity {
6985
+ /** 全部对全部 */
6986
+ ALL_TO_ALL = "all-to-all",
6987
+ /** 全部对部分 */
6988
+ ALL_TO_SOME = "all-to-some",
6989
+ /** 部分对全部 */
6990
+ SOME_TO_ALL = "some-to-all",
6991
+ /** 部分对部分 */
6992
+ SOME_TO_SOME = "some-to-some"
6993
+ }
6994
+ /**
6995
+ * 关联字段
6996
+ * 数据混合blend和数据集物理表关联physical均使用该字段
6997
+ */
6998
+ export type CubeLinkJoinKeyModel = {
6999
+ /** 源表字段(blend模式为数据集字段id,physical模式为物理字段名) */
7000
+ sourceKey: string;
7001
+ /**
7002
+ * @deprecated
7003
+ * 源表关联物理字段类型(QBI目前没在用,保留)
7004
+ */
7005
+ sourceType?: string;
7006
+ /** 目标表字段(blend模式为数据集字段id,physical模式为物理字段名) */
7007
+ targetKey: string;
7008
+ /**
7009
+ * @deprecated
7010
+ * 标表关联物理字段类型(QBI目前没在用,保留)
7011
+ */
7012
+ targetType?: string;
7013
+ /**
7014
+ * 条件
7015
+ */
7016
+ condition: JoinCondition;
7017
+ /**
7018
+ * 目前仅physical模式使用
7019
+ */
7020
+ targetCalculateMember?: boolean;
7021
+ /**
7022
+ * 目前仅physical模式使用
7023
+ */
7024
+ sourceCalculateMember?: boolean;
7025
+ };
7026
+ export interface CubeLinkModel {
7027
+ /** 源表id(blend模式为数据集id,physical模式为物理表id) */
7028
+ source: string;
7029
+ /** 关联表id(blend模式为数据集id,physical模式为物理表id) */
7030
+ target: string;
7031
+ /** 关联类型 */
7032
+ joinType: TableJoinType;
7033
+ /** 关联字段 */
7034
+ joinKeys: CubeLinkJoinKeyModel[];
7035
+ /** 基数 物理表关联目前只有many-to-one */
7036
+ relation?: TableRelation;
7037
+ /** 引用完整性 */
7038
+ match?: ReferentialIntegrity;
7039
+ /**
7040
+ * 是否为自动生成的关联键(未经用户确认)
7041
+ * 前端临时字段,用于标记自动匹配的关联键
7042
+ * - true: 系统自动匹配生成,需要弹窗让用户确认
7043
+ * - false/undefined: 用户已确认,或手动创建的
7044
+ * 注意:此字段不应该发送到后端,仅在前端逻辑中使用
7045
+ */
7046
+ isAutoGenerated?: boolean;
6605
7047
  }
6606
7048
  }
6607
7049
 
@@ -6871,7 +7313,9 @@ declare module '@quickbi/bi-types/cube/data-source' {
6871
7313
  /** 达梦 */
6872
7314
  dm = "dm",
6873
7315
  /** 日志服务SLS */
6874
- sls = "sls"
7316
+ sls = "sls",
7317
+ /** RDS MySQL DuckDB */
7318
+ mysql_duckdb = "mysql_duckdb"
6875
7319
  }
6876
7320
  export enum AcrossDsType {
6877
7321
  UN_SET,
@@ -6894,7 +7338,9 @@ declare module '@quickbi/bi-types/cube/data-source' {
6894
7338
  /** 端口号为8242 此后所有注释 皆为表明 变量代表的端口号码 */
6895
7339
  eight_two_four_two = "8242",
6896
7340
  three_three_zero_six_zero = "33060",
6897
- three_zero_zero_six_zero = "30060"
7341
+ three_zero_zero_six_zero = "30060",
7342
+ three_three_zero_six = "33306",
7343
+ one_zero_zero_zero_zero = "10000"
6898
7344
  }
6899
7345
  /** 数据源 - 根据类型 - 排序 */
6900
7346
  export enum DataSourceSort {
@@ -6930,56 +7376,47 @@ declare module '@quickbi/bi-types/cube/data-source' {
6930
7376
  google = "google",
6931
7377
  customDs = "customDs"
6932
7378
  }
6933
- /** 数据库数据源类型 */
6934
- export const dataBaseType: DataSourcesConfigId[];
6935
7379
  /** 文档数据源 */
6936
7380
  export const SHEET_TABLE: DsType[];
6937
7381
  }
6938
7382
 
6939
- declare module '@quickbi/bi-types/cube/cube-links' {
7383
+ declare module '@quickbi/bi-types/cube/logical-schema' {
6940
7384
  /**
6941
- * @author 雅影
6942
- * @description 数据集关联模型类型定义
7385
+ * @author 嘉念
7386
+ * @description 数据集逻辑模型
6943
7387
  */
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;
7388
+ import type { CubeLinkModel } from '@quickbi/bi-types/cube/cube-links';
7389
+ import type { PhysicalSchema } from '@quickbi/bi-types/cube/physical-schema';
7390
+ /** 逻辑表模型 */
7391
+ export class LogicalTable {
7392
+ /** 节点唯一id */
7393
+ uniqueId: string;
7394
+ /** 节点名称 */
7395
+ caption: string;
7396
+ /** 物理表模型 */
7397
+ physicalSchema: PhysicalSchema;
7398
+ }
7399
+ export class LogicalTree {
7400
+ uniqueId: string;
7401
+ /** 描述了逻辑节点的边关系 只维护引用的节点id */
7402
+ links: CubeLinkModel[];
7403
+ }
7404
+ export class LogicalSchema {
7405
+ /** 数据集逻辑节点列表 */
7406
+ logicalNodes: LogicalTable[];
7407
+ /** 数据集逻辑树列表 */
7408
+ logicalTrees: LogicalTree[];
6974
7409
  }
6975
7410
  }
6976
7411
 
6977
- declare module '@quickbi/bi-types/cube/table-schema' {
7412
+ declare module '@quickbi/bi-types/cube/physical-schema' {
6978
7413
  /**
6979
- * @author 雅影
6980
- * @description 物理表模型
7414
+ * @author 嘉念
7415
+ * @description 数据集表模型
6981
7416
  */
6982
- import type { DataType, DateGranularity, RegionGranularity, SecondDataType } from '@quickbi/bi-types/cube/cube-model';
7417
+ import type { CubeLinkModel } from '@quickbi/bi-types/cube/cube-links';
7418
+ import type { DataType, DateGranularity, RegionGranularity, SecondDataType } from '@quickbi/bi-types/cube/cube-schema';
7419
+ import type { DsType } from '@quickbi/bi-types/cube/data-source';
6983
7420
  /** 物理表字段模型 */
6984
7421
  export interface TableField {
6985
7422
  /** 物理字段备注 */
@@ -7003,7 +7440,7 @@ declare module '@quickbi/bi-types/cube/table-schema' {
7003
7440
  /** 支持修改字段类型 */
7004
7441
  supportCastDataType?: boolean | null;
7005
7442
  }
7006
- /** 物理表模型 */
7443
+ /** 物理表详情接口模型 */
7007
7444
  export interface TableSchema {
7008
7445
  /** 数据源id */
7009
7446
  datasourceId?: string;
@@ -7024,210 +7461,112 @@ declare module '@quickbi/bi-types/cube/table-schema' {
7024
7461
  /** 表类型 上传文件为file */
7025
7462
  tableType?: string;
7026
7463
  }
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"
7043
- }
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"
7056
- }
7057
- /** 时间差字段配置 */
7058
- export interface DateDiffFieldConfig {
7059
- /** 开始字段 */
7060
- firstField: string;
7061
- /** 结束字段 */
7062
- endField: string;
7063
- /** 时间单位 */
7064
- timeUnit: string;
7065
- }
7066
- /** 维值替换字段配置 */
7067
- export interface ReplaceDimValueFieldConfig {
7068
- /** 引用字段Id */
7069
- refUniqueId: string;
7070
- /** 替换维值列表 */
7071
- replaceElementList: {
7072
- /** 原始值 */
7073
- originalValue: string;
7074
- /** 替换值 */
7075
- value: string;
7076
- }[];
7077
- }
7078
- /** 缺失值替换字段配置 */
7079
- export interface MissingValueReplaceFieldConfig {
7080
- /** 引用字段Id */
7081
- refUniqueId: string;
7082
- /** 替换空值 */
7083
- replaceNullValue: boolean;
7084
- /** 替换空白值 */
7085
- replaceBlankValue: boolean;
7086
- /** 替换值 */
7087
- value: string;
7088
- }
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;
7101
- }
7102
- /** 合并字段配置 */
7103
- export interface MergeFieldsFieldConfig {
7104
- /** 连接符 */
7105
- delimiter: string;
7106
- /** 合并字段id列表 */
7107
- mergeElementList: string[];
7464
+ /** 表关联类型 */
7465
+ export enum TableJoinType {
7466
+ /** 左关联 */
7467
+ LEFT_OUTER_JOIN = "LEFT_OUTER_JOIN",
7468
+ /** 内关联 */
7469
+ INNER_JOIN = "INNER_JOIN",
7470
+ /** 右关联 */
7471
+ RIGHT_OUTER_JOIN = "RIGHT_OUTER_JOIN",
7472
+ /** 全关联 */
7473
+ FULL_OUTER_JOIN = "FULL_OUTER_JOIN",
7474
+ JOIN_ERROR = "JOIN_ERROR"
7108
7475
  }
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;
7476
+ /** 物理表类型 */
7477
+ export enum PhysicalTableType {
7478
+ /** 物理表 */
7479
+ Table = "table",
7480
+ /** 自定义SQL */
7481
+ Sql = "sql",
7482
+ /** 上传文件(探索空间 & 数据库)、API数据源、文档数据源 */
7483
+ File = "file"
7126
7484
  }
7127
- /** 分组字段类型 */
7128
- export enum GroupType {
7129
- /** 日期类型-自定义区间分组 */
7130
- NormalGroup = "NormalGroup",
7131
- /** 枚举-列表分组类型 */
7132
- ListGroup = "ListGroup",
7133
- /** 数值-自定义分组类型 */
7134
- CustomizedGroup = "CustomizedGroup"
7485
+ /** 物理表模型 */
7486
+ export interface PhysicalTable {
7487
+ /** 唯一标识 */
7488
+ uniqueId: string;
7489
+ /** 表展示名称 */
7490
+ caption?: string;
7491
+ /** 表id */
7492
+ tableName: string;
7493
+ /** 物理表所属数据源ID */
7494
+ datasourceId: string;
7495
+ /** 是否为事实表(中心表标识) */
7496
+ factTable: boolean;
7497
+ /** 数据源类型 */
7498
+ dsType: DsType;
7499
+ /** 表类型(不落库,每次获取cubeSchema模型时后端实时查询返回) */
7500
+ tableType?: PhysicalTableType;
7501
+ }
7502
+ /** 自定义SQL虚拟表模型 */
7503
+ export interface VirtualTable {
7504
+ /** 唯一标识 */
7505
+ uniqueId: string;
7506
+ /** 表展示名称 */
7507
+ caption: string;
7508
+ /** 表名 */
7509
+ tableName: string;
7510
+ /** 物理表所属数据源ID */
7511
+ datasourceId: string;
7512
+ /** 是否为事实表(中心表标识) */
7513
+ factTable: boolean;
7514
+ dsType: DsType;
7515
+ sqlId: string;
7516
+ sql: string;
7517
+ /** 表类型(不落库,每次获取cubeSchema模型时后端实时查询返回) */
7518
+ tableType?: PhysicalTableType;
7135
7519
  }
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"
7520
+ /** 合并字段来源表信息 */
7521
+ export interface UnionTableColumnModel {
7522
+ /** 来源表id */
7523
+ table: string;
7524
+ /** 来源字段物理字段名(表名称列不传) */
7525
+ column?: string;
7526
+ /** 来源表的名称(表名称列需要传) */
7527
+ value?: string;
7148
7528
  }
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[];
7529
+ /** 合并字段 */
7530
+ export interface UnionColumn {
7531
+ /** 合并后的字段名 */
7532
+ column: string;
7533
+ /** 备注 */
7534
+ caption: string;
7535
+ /** 合并字段的来源表字段信息 */
7536
+ tableColumns: UnionTableColumnModel[];
7537
+ /** 非源表字段,自动生成的表名称列 */
7538
+ isAuto?: boolean;
7195
7539
  }
7196
- /**
7197
- * 原先计算字段、分组字段存储配置的模型,v6.0.2新增:时间差字段、缺失值替换字段、新增别名字段、拆分列字段、合并字段
7198
- */
7199
- export interface FieldExpressionModel {
7200
- type: FieldExpressionType;
7201
- value?: string;
7202
- /** 分组字段配置 */
7203
- dataGroup: GroupFieldConfig;
7204
- /** 工具栏字段配置 */
7205
- tool?: ToolFieldConfig;
7540
+ /** 合并表模型 */
7541
+ export interface UnionTable extends PhysicalTable {
7542
+ /** 物理表 */
7543
+ tables: PhysicalTable[];
7544
+ /** 自定义sql、view */
7545
+ virtualTables: VirtualTable[];
7546
+ /** 合并字段信息 */
7547
+ unionColumns: UnionColumn[];
7206
7548
  }
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'>[];
7549
+ export class HintModal {
7550
+ dsType: DsType;
7551
+ head: `set`;
7552
+ key: string;
7553
+ connector: `=`;
7554
+ value: string;
7555
+ support: boolean;
7218
7556
  }
7219
- /** 数据集混合schema */
7220
- export interface BlendSchema {
7221
- /** 数据混合唯一id */
7222
- uniqueId: string;
7223
- /** 数据混合名称 */
7224
- caption: string;
7225
- /** 数据混合关联关系 */
7226
- cubeLinks: CubeLink[];
7227
- /** 标识是否存在字段id重复 */
7228
- hasRepeatFid?: boolean;
7557
+ export class PhysicalSchema {
7558
+ /** 物理表 */
7559
+ tables: PhysicalTable[];
7560
+ /** 自定义sql、view */
7561
+ virtualTables: VirtualTable[];
7562
+ /** union合并表 */
7563
+ unionTables: UnionTable[];
7564
+ /** 表关联关系 */
7565
+ links: CubeLinkModel[];
7566
+ /** odps表是否开启全表扫描 */
7567
+ sqlHintTypes?: string[];
7568
+ /** 主逻辑表下才有 */
7569
+ sqlHints?: HintModal[];
7229
7570
  }
7230
- /** 数据混合消费端模型定义 */
7231
- export type CubeBlend = BlendSchema;
7232
7571
  }
7233
7572