@quickbi/bi-types 3.2.5 → 3.2.7
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 +1128 -808
- package/cjs/index.js +481 -244
- package/esm/index.d.ts +1128 -808
- package/esm/index.mjs +481 -244
- 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, } 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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
1402
|
-
*
|
|
1403
|
-
*
|
|
1404
|
-
|
|
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
|
|
1407
|
-
/**
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
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
|
|
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 {
|
|
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/
|
|
2291
|
-
export * from '@quickbi/bi-types/cube/
|
|
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
|
|
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 开放相关页面类型枚举, 注意要和
|
|
2689
|
+
* @deprecated 开放相关页面类型枚举, 注意要和 routerKey 做区分, 这个 key 后续要废弃
|
|
2588
2690
|
* */
|
|
2589
2691
|
export enum OpenPageTypeEnum {
|
|
2590
2692
|
/** 仪表板 */
|
|
@@ -2783,10 +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",
|
|
2788
|
-
/** 组织管理-智能小 Q - 通用配置 -
|
|
2789
|
-
|
|
2892
|
+
/** 组织管理-智能小 Q - 通用配置 - 知识库 */
|
|
2893
|
+
orgAdminSmartQGlobalConfigKnowledgeManage = "orgAdminSmartQGlobalConfigKnowledgeManage",
|
|
2790
2894
|
/** 组织管理-小Q问数 */
|
|
2791
2895
|
orgAdminCopilot = "orgAdminCopilot",
|
|
2792
2896
|
/** 组织管理-小Q问数 - 探索版 */
|
|
@@ -2797,6 +2901,12 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
2797
2901
|
orgQueryAgentAnalysisThemeAuth = "orgQueryAgentAnalysisThemeAuth",
|
|
2798
2902
|
/** 组织管理-小Q问数-知识库管理 */
|
|
2799
2903
|
orgQueryAgentKnowledgeBaseManage = "orgQueryAgentKnowledgeBaseManage",
|
|
2904
|
+
/** 组织管理-小Q问数-全局配置 */
|
|
2905
|
+
orgQueryAgentGlobalConfig = "orgQueryAgentGlobalConfig",
|
|
2906
|
+
/** 组织管理-小Q问数-赞踩知识 */
|
|
2907
|
+
likeAndDislikeKnowledge = "likeAndDislikeKnowledge",
|
|
2908
|
+
/** 组织管理-小Q问数-资产平台接入配置 */
|
|
2909
|
+
orgQueryAgentAssetPlatformConfig = "orgQueryAgentAssetPlatformConfig",
|
|
2800
2910
|
/** 组织管理-小Q问数-问数资源管理 */
|
|
2801
2911
|
orgResourceManage = "orgResourceManage",
|
|
2802
2912
|
/** 组织管理-小Q问数-分析主题管理 */
|
|
@@ -2920,10 +3030,14 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
2920
3030
|
dataServiceCount = "dataServiceCount",
|
|
2921
3031
|
/** 发布渠道 */
|
|
2922
3032
|
embedChannel = "embedChannel",
|
|
3033
|
+
/** 自定义可视化 */
|
|
3034
|
+
customManage = "componentManage",
|
|
2923
3035
|
/** 自定义组件 */
|
|
2924
3036
|
customComponent = "customComponent",
|
|
2925
3037
|
/** 自定义菜单 */
|
|
2926
3038
|
customMenu = "customMenu",
|
|
3039
|
+
/** 自定义页面 */
|
|
3040
|
+
customPage = "customPage",
|
|
2927
3041
|
/** 自定义模板 */
|
|
2928
3042
|
customTemplate = "customTemplate",
|
|
2929
3043
|
/** 自定义驱动 */
|
|
@@ -2958,6 +3072,8 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
2958
3072
|
viewHome = "viewHome",
|
|
2959
3073
|
/** 卡片卡板 */
|
|
2960
3074
|
viewBoard = "viewBoard",
|
|
3075
|
+
/** 探索分析 */
|
|
3076
|
+
viewExploration = "viewExploration",
|
|
2961
3077
|
/** 我的收藏 */
|
|
2962
3078
|
viewFavorite = "viewFavorite",
|
|
2963
3079
|
/** 最近访问 */
|
|
@@ -2988,14 +3104,12 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
2988
3104
|
copilotPageQChatDatasource = "copilotPageQChatDatasource",
|
|
2989
3105
|
/** 首页下的小Q解读 */
|
|
2990
3106
|
copilotPageQInsight = "copilotPageQInsight",
|
|
3107
|
+
/** 首页下的小Q洞察 */
|
|
3108
|
+
copilotPageQMetric = "copilotPageQMetric",
|
|
2991
3109
|
/** 首页下的小Q报告 */
|
|
2992
3110
|
copilotPageQReport = "copilotPageQReport",
|
|
2993
3111
|
/** 首页下的小Q搭建 */
|
|
2994
3112
|
copilotPageQDashboard = "copilotPageQDashboard",
|
|
2995
|
-
/** 首页下的小Q搜索 */
|
|
2996
|
-
copilotPageSearch = "copilotPageSearch",
|
|
2997
|
-
/** 首页下的小Q更多 */
|
|
2998
|
-
copilotPageMore = "copilotPageMore",
|
|
2999
3113
|
/** 首页下的自定义智能体列表页 */
|
|
3000
3114
|
copilotPageAgentList = "copilotPageAgentList",
|
|
3001
3115
|
/** 首页下的自定义智能体 */
|
|
@@ -3139,6 +3253,12 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
3139
3253
|
downloadView = "downloadView",
|
|
3140
3254
|
/** 自助取数公开预览 */
|
|
3141
3255
|
downloadPublicView = "downloadPublicView",
|
|
3256
|
+
/** ---------------------------------------------------- 探索分析 -------------------------------------------------- */
|
|
3257
|
+
explorationRoot = "explorationRoot",
|
|
3258
|
+
/** 探索分析编辑 */
|
|
3259
|
+
explorationEdit = "explorationEdit",
|
|
3260
|
+
/** 探索分析预览 */
|
|
3261
|
+
explorationView = "explorationView",
|
|
3142
3262
|
/** --------------------------------------------------- 即席分析 -------------------------------------------------- */
|
|
3143
3263
|
analysisRoot = "analysisRoot",
|
|
3144
3264
|
/** 即席分析编辑 */
|
|
@@ -3287,6 +3407,8 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
3287
3407
|
monitorScreenshot = "monitorScreenshot",
|
|
3288
3408
|
/** 钉钉文档嵌入页 */
|
|
3289
3409
|
dingDoc = "dingDoc",
|
|
3410
|
+
/** ---------------------------------------------------- AI体验中心 —---------------------------------------------------- */
|
|
3411
|
+
aiExperience = "aiExperience",
|
|
3290
3412
|
/** 小Q报告 */
|
|
3291
3413
|
wordAgentRoot = "wordAgentRoot",
|
|
3292
3414
|
/** 小Q报告编辑 */
|
|
@@ -3307,7 +3429,21 @@ declare module '@quickbi/bi-types/router/route-key' {
|
|
|
3307
3429
|
/** 老大屏预览页 */
|
|
3308
3430
|
dashboardScreenView = "dashboardScreenView",
|
|
3309
3431
|
/** 老大屏公开预览页 */
|
|
3310
|
-
dashboardScreenPublicView = "dashboardScreenPublicView"
|
|
3432
|
+
dashboardScreenPublicView = "dashboardScreenPublicView",
|
|
3433
|
+
/** 经营洞察列表 */
|
|
3434
|
+
businessInsightList = "businessInsightList",
|
|
3435
|
+
/** 指标洞察列表 */
|
|
3436
|
+
metricInsightList = "metricInsightList",
|
|
3437
|
+
/** 指标树 */
|
|
3438
|
+
metricTreeRoot = "metricTreeRoot",
|
|
3439
|
+
/** 经营洞察-编辑 */
|
|
3440
|
+
businessInsightsEdit = "businessInsightsEdit",
|
|
3441
|
+
/** 经营洞察-预览 */
|
|
3442
|
+
businessInsightsView = "businessInsightsView",
|
|
3443
|
+
/** 指标洞察-编辑 */
|
|
3444
|
+
metricInsightsEdit = "metricInsightsEdit",
|
|
3445
|
+
/** 指标洞察-预览 */
|
|
3446
|
+
metricInsightsView = "metricInsightsView"
|
|
3311
3447
|
}
|
|
3312
3448
|
}
|
|
3313
3449
|
|
|
@@ -3512,9 +3648,13 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
3512
3648
|
readonly key: RouteKey.orgAdminSmartQGlobalConfigLlmConfig;
|
|
3513
3649
|
readonly path: "/org/admin/smartQ/globalConfig/llmConfig";
|
|
3514
3650
|
}, {
|
|
3515
|
-
/** 智能小 Q - 通用配置 -
|
|
3516
|
-
readonly key: RouteKey.
|
|
3517
|
-
readonly path: "/org/admin/smartQ/globalConfig/
|
|
3651
|
+
/** 智能小 Q - 通用配置 - AI功能管理 */
|
|
3652
|
+
readonly key: RouteKey.orgAdminSmartQGlobalConfigAIConfig;
|
|
3653
|
+
readonly path: "/org/admin/smartQ/globalConfig/aiConfig";
|
|
3654
|
+
}, {
|
|
3655
|
+
/** 智能小 Q - 通用配置 - 大模型配置 */
|
|
3656
|
+
readonly key: RouteKey.orgAdminSmartQGlobalConfigKnowledgeManage;
|
|
3657
|
+
readonly path: "/org/admin/smartQ/globalConfig/knowledgeManage";
|
|
3518
3658
|
}];
|
|
3519
3659
|
}, {
|
|
3520
3660
|
readonly key: RouteKey.orgAdminCopilot;
|
|
@@ -3556,6 +3696,15 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
3556
3696
|
}, {
|
|
3557
3697
|
readonly key: RouteKey.orgQueryAgentKnowledgeBaseManage;
|
|
3558
3698
|
readonly path: "/org/admin/copilot/queryAgent/orgKnowledgeBaseManage";
|
|
3699
|
+
}, {
|
|
3700
|
+
readonly key: RouteKey.orgQueryAgentGlobalConfig;
|
|
3701
|
+
readonly path: "/org/admin/copilot/queryAgent/globalConfig";
|
|
3702
|
+
}, {
|
|
3703
|
+
readonly key: RouteKey.likeAndDislikeKnowledge;
|
|
3704
|
+
readonly path: "/org/admin/copilot/queryAgent/likeAndDislikeKnowledge";
|
|
3705
|
+
}, {
|
|
3706
|
+
readonly key: RouteKey.orgQueryAgentAssetPlatformConfig;
|
|
3707
|
+
readonly path: "/org/admin/copilot/queryAgent/assetPlatformConfig";
|
|
3559
3708
|
}];
|
|
3560
3709
|
}, {
|
|
3561
3710
|
readonly key: RouteKey.orgAdminQMessage;
|
|
@@ -3730,11 +3879,18 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
3730
3879
|
readonly key: RouteKey.embedChannel;
|
|
3731
3880
|
readonly path: "/openservice/embedChannel";
|
|
3732
3881
|
}, {
|
|
3733
|
-
readonly key: RouteKey.
|
|
3882
|
+
readonly key: RouteKey.customManage;
|
|
3734
3883
|
readonly path: "/openservice/componentManage";
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3884
|
+
readonly children: [{
|
|
3885
|
+
readonly key: RouteKey.customComponent;
|
|
3886
|
+
readonly path: "/openservice/componentManage/customComponent";
|
|
3887
|
+
}, {
|
|
3888
|
+
readonly key: RouteKey.customMenu;
|
|
3889
|
+
readonly path: "/openservice/componentManage/customMenu";
|
|
3890
|
+
}, {
|
|
3891
|
+
readonly key: RouteKey.customPage;
|
|
3892
|
+
readonly path: "/openservice/componentManage/customPage";
|
|
3893
|
+
}];
|
|
3738
3894
|
}, {
|
|
3739
3895
|
readonly key: RouteKey.customTemplate;
|
|
3740
3896
|
readonly path: "/openservice/defineTemplate";
|
|
@@ -3789,6 +3945,9 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
3789
3945
|
}, {
|
|
3790
3946
|
readonly key: RouteKey.viewBoard;
|
|
3791
3947
|
readonly path: "/view/card";
|
|
3948
|
+
}, {
|
|
3949
|
+
readonly key: RouteKey.viewExploration;
|
|
3950
|
+
readonly path: "/view/exploration";
|
|
3792
3951
|
}, {
|
|
3793
3952
|
readonly key: RouteKey.viewFavorite;
|
|
3794
3953
|
readonly path: "/view/favorite";
|
|
@@ -3846,6 +4005,12 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
3846
4005
|
}, {
|
|
3847
4006
|
readonly key: RouteKey.downloadList;
|
|
3848
4007
|
readonly path: "/workspace/download";
|
|
4008
|
+
}, {
|
|
4009
|
+
readonly key: RouteKey.businessInsightList;
|
|
4010
|
+
readonly path: "/workspace/metricTree/businessInsight";
|
|
4011
|
+
}, {
|
|
4012
|
+
readonly key: RouteKey.metricInsightList;
|
|
4013
|
+
readonly path: "/workspace/metricTree/metricInsight";
|
|
3849
4014
|
}, {
|
|
3850
4015
|
readonly key: RouteKey.formList;
|
|
3851
4016
|
readonly path: "/workspace/dataForm";
|
|
@@ -3921,6 +4086,9 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
3921
4086
|
}, {
|
|
3922
4087
|
readonly key: RouteKey.copilotPageQInsight;
|
|
3923
4088
|
readonly path: "/copilotPage/qInsight";
|
|
4089
|
+
}, {
|
|
4090
|
+
readonly key: RouteKey.copilotPageQMetric;
|
|
4091
|
+
readonly path: "/copilotPage/qMetric";
|
|
3924
4092
|
}, {
|
|
3925
4093
|
readonly key: RouteKey.copilotPageQReport;
|
|
3926
4094
|
readonly path: "/copilotPage/qreport";
|
|
@@ -4063,6 +4231,16 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
4063
4231
|
readonly key: RouteKey.downloadPublicView;
|
|
4064
4232
|
readonly path: "/token3rd/offline/view/pc.htm";
|
|
4065
4233
|
}];
|
|
4234
|
+
}, {
|
|
4235
|
+
readonly key: RouteKey.explorationRoot;
|
|
4236
|
+
readonly path: "/exploration";
|
|
4237
|
+
readonly children: [{
|
|
4238
|
+
readonly key: RouteKey.explorationEdit;
|
|
4239
|
+
readonly path: "/exploration/pc.htm";
|
|
4240
|
+
}, {
|
|
4241
|
+
readonly key: RouteKey.explorationView;
|
|
4242
|
+
readonly path: "/exploration/view/pc.htm";
|
|
4243
|
+
}];
|
|
4066
4244
|
}, {
|
|
4067
4245
|
readonly key: RouteKey.analysisRoot;
|
|
4068
4246
|
readonly path: "/analysis";
|
|
@@ -4313,6 +4491,25 @@ declare module '@quickbi/bi-types/router/route-tree' {
|
|
|
4313
4491
|
readonly key: RouteKey.wordAgentArchiveView;
|
|
4314
4492
|
readonly path: "/qreport/archiveView.htm";
|
|
4315
4493
|
}];
|
|
4494
|
+
}, {
|
|
4495
|
+
readonly key: RouteKey.metricTreeRoot;
|
|
4496
|
+
readonly path: "/metricTree";
|
|
4497
|
+
readonly children: [{
|
|
4498
|
+
readonly key: RouteKey.businessInsightsEdit;
|
|
4499
|
+
readonly path: "/metricTree/business/edit.htm";
|
|
4500
|
+
}, {
|
|
4501
|
+
readonly key: RouteKey.businessInsightsView;
|
|
4502
|
+
readonly path: "/metricTree/business/view.htm";
|
|
4503
|
+
}, {
|
|
4504
|
+
readonly key: RouteKey.metricInsightsEdit;
|
|
4505
|
+
readonly path: "/metricTree/insights/edit.htm";
|
|
4506
|
+
}, {
|
|
4507
|
+
readonly key: RouteKey.metricInsightsView;
|
|
4508
|
+
readonly path: "/metricTree/insights/view.htm";
|
|
4509
|
+
}];
|
|
4510
|
+
}, {
|
|
4511
|
+
readonly key: RouteKey.aiExperience;
|
|
4512
|
+
readonly path: "/aiExperience";
|
|
4316
4513
|
}, {
|
|
4317
4514
|
readonly key: RouteKey.loginRoot;
|
|
4318
4515
|
readonly path: "/auth_sso";
|
|
@@ -4404,7 +4601,13 @@ declare module '@quickbi/bi-types/permission-type' {
|
|
|
4404
4601
|
/** 资源包管理 */
|
|
4405
4602
|
resourceConfig = "resourceConfig",
|
|
4406
4603
|
/** 小Q报告 */
|
|
4407
|
-
qReport = "qreport"
|
|
4604
|
+
qReport = "qreport",
|
|
4605
|
+
/** 洞察归因 - 经营洞察 */
|
|
4606
|
+
businessInsight = "business_insight",
|
|
4607
|
+
/** 洞察归因 - 指标洞察 */
|
|
4608
|
+
metricInsight = "metric_insight",
|
|
4609
|
+
/** 探索分析 */
|
|
4610
|
+
exploration = "exploration"
|
|
4408
4611
|
}
|
|
4409
4612
|
}
|
|
4410
4613
|
|
|
@@ -4480,7 +4683,8 @@ declare module '@quickbi/bi-types/data-panel/base' {
|
|
|
4480
4683
|
AGGREGATE_CALC_FIELD = "AGGREGATE_CALC_FIELD",
|
|
4481
4684
|
FIELD_GROUP = "FIELD_GROUP",
|
|
4482
4685
|
AGGREGATE_FIELD = "AGGREGATE_FIELD",
|
|
4483
|
-
STRING_FIELD = "STRING_FIELD"
|
|
4686
|
+
STRING_FIELD = "STRING_FIELD",
|
|
4687
|
+
GROUP_CONTRAST = "GROUP_CONTRAST"
|
|
4484
4688
|
}
|
|
4485
4689
|
export enum ResultMode {
|
|
4486
4690
|
SELECT_ALL = "selectAll",
|
|
@@ -5013,6 +5217,27 @@ declare module '@quickbi/bi-types/data-panel/data-config' {
|
|
|
5013
5217
|
isMultiField?: boolean;
|
|
5014
5218
|
/** 父字段的guid */
|
|
5015
5219
|
parentFieldGuid?: string;
|
|
5220
|
+
/** 是否虚拟字段,如散点图中的聚类字段、线柱图中的度量名字段 */
|
|
5221
|
+
isVirtual?: boolean;
|
|
5222
|
+
/** 分组对比组配置, 如果有 groupContrast, 说明是分组对比字段 */
|
|
5223
|
+
groupContrast?: GroupContrast[];
|
|
5224
|
+
}
|
|
5225
|
+
export interface GroupContrast<T = DataConfigAreaItemColumn> {
|
|
5226
|
+
/** 分组 id */
|
|
5227
|
+
groupId: string;
|
|
5228
|
+
/** 分组名称 */
|
|
5229
|
+
groupName: string;
|
|
5230
|
+
/** 分组字段 */
|
|
5231
|
+
columnList: Partial<T>[];
|
|
5232
|
+
/** 差值分组配置 */
|
|
5233
|
+
diffConfig?: {
|
|
5234
|
+
/** 差值类型:差值对比/差值百分比 */
|
|
5235
|
+
calcTypes: 'INCREASE_VALUE' | 'INCREASE_RATIO';
|
|
5236
|
+
/** 源分组id(基准分组) */
|
|
5237
|
+
baseGroupId: string;
|
|
5238
|
+
/** 比较分组id(对比分组) */
|
|
5239
|
+
targetGroupId: string;
|
|
5240
|
+
};
|
|
5016
5241
|
}
|
|
5017
5242
|
export enum ContrastType {
|
|
5018
5243
|
DAY_DAY_RING_RATIO = "day_day",
|
|
@@ -5069,9 +5294,11 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5069
5294
|
*/
|
|
5070
5295
|
import type * as React from 'react';
|
|
5071
5296
|
import type { BlendSchema } from '@quickbi/bi-types/cube/cube-blend';
|
|
5072
|
-
import type {
|
|
5297
|
+
import type { CubeModel, EmptyValueDisplayConfig } from '@quickbi/bi-types/cube/cube-model';
|
|
5298
|
+
import type { Aggregator, DateGranularity, Field, FieldAttribute, FolderAndHierarchyNode, RegionGranularity } from '@quickbi/bi-types/cube/cube-schema';
|
|
5073
5299
|
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';
|
|
5300
|
+
import type { DataConfigAreaItemColumn, GroupContrast } from '@quickbi/bi-types/data-panel/data-config';
|
|
5301
|
+
import type { FormatType } from '@quickbi/bi-types/chart-config';
|
|
5075
5302
|
export interface ValidateResult {
|
|
5076
5303
|
isValid: boolean;
|
|
5077
5304
|
msg?: Message;
|
|
@@ -5107,9 +5334,13 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5107
5334
|
/** 下钻配置的辅助字段(交叉表、明细表) */
|
|
5108
5335
|
auxiliaryField = "auxiliaryField",
|
|
5109
5336
|
/** 空值展示配置 */
|
|
5110
|
-
emptyValueDisplay = "emptyValueDisplay"
|
|
5337
|
+
emptyValueDisplay = "emptyValueDisplay",
|
|
5338
|
+
/** 钻取开关(开启下钻/取消下钻) */
|
|
5339
|
+
drillSwitch = "drillSwitch",
|
|
5340
|
+
/** 钻取层级配置 */
|
|
5341
|
+
drillConfig = "drillConfig"
|
|
5111
5342
|
}
|
|
5112
|
-
export type DropDownMenuFieldConfig = AggregationConfig | ContrastConfig | AdvancedCalculationConfig | NumberFormatConfig | LabelConfig | AlignConfig | VerticalAlignConfig | SortConfig | FieldGroupConfig | ChartTypeConfig | ImageSizeConfig | TimeFormatConfig | HidenConfig | AuxiliaryFieldConfig | EmptyValueDisplayFieldConfig;
|
|
5343
|
+
export type DropDownMenuFieldConfig = AggregationConfig | ContrastConfig | AdvancedCalculationConfig | NumberFormatConfig | LabelConfig | AlignConfig | VerticalAlignConfig | SortConfig | FieldGroupConfig | ChartTypeConfig | ImageSizeConfig | TimeFormatConfig | HidenConfig | AuxiliaryFieldConfig | EmptyValueDisplayFieldConfig | DrillSwitchConfig | DrillConfigConfig;
|
|
5113
5344
|
export type FieldConfigs = Array<DropDownMenuFieldConfig>;
|
|
5114
5345
|
export type ResetFieldConfigType = {
|
|
5115
5346
|
menuInfo: DropdownMenuItem;
|
|
@@ -5172,6 +5403,7 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5172
5403
|
avg = "avg",
|
|
5173
5404
|
count = "count",
|
|
5174
5405
|
countd = "countd",
|
|
5406
|
+
approx_distinct = "approx_distinct",
|
|
5175
5407
|
null = "null",
|
|
5176
5408
|
more = "more",
|
|
5177
5409
|
max = "max",
|
|
@@ -5262,6 +5494,7 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5262
5494
|
}
|
|
5263
5495
|
export enum NumberFormats {
|
|
5264
5496
|
auto = "auto",
|
|
5497
|
+
general = "general",
|
|
5265
5498
|
int = "int",
|
|
5266
5499
|
oneDecimal = "oneDecimal",
|
|
5267
5500
|
twoDecimal = "twoDecimal",
|
|
@@ -5272,7 +5505,7 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5272
5505
|
}
|
|
5273
5506
|
/** 数据展示格式, 默认打开 */
|
|
5274
5507
|
export interface NumberFormatConfig extends FieldCommonConfig {
|
|
5275
|
-
type
|
|
5508
|
+
type?: FieldConfigTypes.numberFormat;
|
|
5276
5509
|
/** 高级计算类型,支持排序 */
|
|
5277
5510
|
usefulValue?: NumberFormats[];
|
|
5278
5511
|
usePrefix?: boolean;
|
|
@@ -5281,14 +5514,19 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5281
5514
|
hideManualInput?: boolean;
|
|
5282
5515
|
/** 关闭数量量级使用标识位 */
|
|
5283
5516
|
hideDataMagnitude?: boolean;
|
|
5284
|
-
/**
|
|
5285
|
-
showDataUnit?: boolean;
|
|
5286
|
-
/** 关闭自动调整配置 */
|
|
5517
|
+
/** 关闭数值中数据量级自动 */
|
|
5287
5518
|
hideRenderAutoAdjust?: boolean;
|
|
5519
|
+
/** 禁用的格式类型 */
|
|
5520
|
+
disabledFormatTypes?: FormatType[];
|
|
5521
|
+
/** 是否是excel格式化 数据量级与其他实现略有不同,配置项需阉割 */
|
|
5522
|
+
isExcelFormat?: boolean;
|
|
5523
|
+
/** 弹窗中是否显示外部自动适配radio */
|
|
5524
|
+
showAuto?: boolean;
|
|
5288
5525
|
}
|
|
5289
5526
|
/** 字段别名 */
|
|
5290
5527
|
export interface LabelConfig extends FieldCommonConfig {
|
|
5291
5528
|
type: FieldConfigTypes.rename;
|
|
5529
|
+
title?: string;
|
|
5292
5530
|
useDescription?: boolean;
|
|
5293
5531
|
}
|
|
5294
5532
|
/** 对齐类别 */
|
|
@@ -5398,6 +5636,14 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5398
5636
|
type: FieldConfigTypes.emptyValueDisplay;
|
|
5399
5637
|
config?: EmptyValueDisplayConfig;
|
|
5400
5638
|
}
|
|
5639
|
+
/** 钻取开关(开启下钻/取消下钻) */
|
|
5640
|
+
export interface DrillSwitchConfig extends FieldCommonConfig {
|
|
5641
|
+
type: FieldConfigTypes.drillSwitch;
|
|
5642
|
+
}
|
|
5643
|
+
/** 钻取层级配置 */
|
|
5644
|
+
export interface DrillConfigConfig extends FieldCommonConfig {
|
|
5645
|
+
type: FieldConfigTypes.drillConfig;
|
|
5646
|
+
}
|
|
5401
5647
|
/**
|
|
5402
5648
|
* 每个下拉菜单的选项
|
|
5403
5649
|
*/
|
|
@@ -5469,6 +5715,8 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5469
5715
|
defaultValues?: string[];
|
|
5470
5716
|
};
|
|
5471
5717
|
};
|
|
5718
|
+
/** 分组对比字段新增时自动打开配置且只打开一次,设置为运行时状态 */
|
|
5719
|
+
groupContrastAutoOpen?: boolean;
|
|
5472
5720
|
}
|
|
5473
5721
|
/** 字段组内具体字段的字段信息,包含是否隐藏等+columnList信息 */
|
|
5474
5722
|
export interface ChildFieldInfo {
|
|
@@ -5528,10 +5776,13 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5528
5776
|
description?: React.ReactNode;
|
|
5529
5777
|
customRenderer?: React.ReactNode;
|
|
5530
5778
|
isVirtualField?: boolean;
|
|
5779
|
+
colorType?: Field['type'];
|
|
5531
5780
|
/** 虚拟字段icon */
|
|
5532
5781
|
operations?: VirtualFieldOperation[];
|
|
5533
5782
|
/** 触发事件 */
|
|
5534
5783
|
onClick?: Function;
|
|
5784
|
+
/** 分组对比组配置, 如果有 groupContrast, 说明是分组对比字段 */
|
|
5785
|
+
groupContrast?: GroupContrast<DataConfigAreaItemColumn>[];
|
|
5535
5786
|
}
|
|
5536
5787
|
/** [字段集]FieldCollectionInfo信息 */
|
|
5537
5788
|
export interface FieldCollectionInfo {
|
|
@@ -5606,7 +5857,7 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5606
5857
|
}
|
|
5607
5858
|
export class DataSchemaRule {
|
|
5608
5859
|
/** 默认展示值 */
|
|
5609
|
-
placeholder?: string;
|
|
5860
|
+
placeholder?: string | (() => React.ReactNode);
|
|
5610
5861
|
/** 字段配置个数限制 */
|
|
5611
5862
|
maxColNum?: number | ((areaMap: AreaMap, options: {
|
|
5612
5863
|
isConvertQueryInput?: boolean;
|
|
@@ -5673,6 +5924,8 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5673
5924
|
nameSuffix?: (component: any) => React.ReactNode;
|
|
5674
5925
|
/** 组合图特有,表示轴的状态 */
|
|
5675
5926
|
chartStatus?: ChartStatus;
|
|
5927
|
+
/** 组合图特有,表示轴的几何图形(探索分析) */
|
|
5928
|
+
geomType?: FieldChartTypes;
|
|
5676
5929
|
/** 组合图轴状态不支持选项 */
|
|
5677
5930
|
chartStatusExclude?: ChartStatus[];
|
|
5678
5931
|
/** 堆积柱图/条形图特有,表示排序类型 */
|
|
@@ -5773,6 +6026,8 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5773
6026
|
isExtendAssociateFields?: boolean;
|
|
5774
6027
|
/** 是否切换数据集 */
|
|
5775
6028
|
isSwitchCube?: boolean;
|
|
6029
|
+
/** 是否需要进行重新取数(探索分析场景由查询控件触发) */
|
|
6030
|
+
needRefetch?: boolean;
|
|
5776
6031
|
}
|
|
5777
6032
|
export type OnChangeCubeOptions = Omit<OnFreshComponentOptions, 'isClickButton' | 'refreshMobileChart' | 'ReloadCube' | 'noPollingCache'>;
|
|
5778
6033
|
export type OnFreshComponentType = (comp: any, changeAttributeList?: string[], isFresh?: boolean, options?: OnFreshComponentOptions) => any;
|
|
@@ -5825,6 +6080,10 @@ declare module '@quickbi/bi-types/data-panel/data-schema-item' {
|
|
|
5825
6080
|
timeCompletion: string;
|
|
5826
6081
|
/** 空值展示配置 */
|
|
5827
6082
|
emptyValueDisplay: string;
|
|
6083
|
+
/** 钻取开关(开启下钻/取消下钻) */
|
|
6084
|
+
drillSwitch: string;
|
|
6085
|
+
/** 钻取层级配置 */
|
|
6086
|
+
drillConfig: string;
|
|
5828
6087
|
};
|
|
5829
6088
|
export {};
|
|
5830
6089
|
}
|
|
@@ -5934,12 +6193,229 @@ declare module '@quickbi/bi-types/data-panel/data-schema' {
|
|
|
5934
6193
|
}
|
|
5935
6194
|
|
|
5936
6195
|
declare module '@quickbi/bi-types/cube/cube-model' {
|
|
6196
|
+
/**
|
|
6197
|
+
* @author 嘉念
|
|
6198
|
+
* @description 数据集接口模型
|
|
6199
|
+
*/
|
|
6200
|
+
import type { FieldAttribute } from '@quickbi/bi-types/cube/cube-schema';
|
|
6201
|
+
import { CubeSchema, EmptyValueDisplayType } from '@quickbi/bi-types/cube/cube-schema';
|
|
6202
|
+
import type { DsCreateOriginEnum, DataLoadMode } from '@quickbi/bi-types/cube/data-source';
|
|
6203
|
+
import { LogicalSchema } from '@quickbi/bi-types/cube/logical-schema';
|
|
6204
|
+
/** 编辑权限属性 */
|
|
6205
|
+
export enum EditPermitType {
|
|
6206
|
+
/** 脏数据代表空间成员 */
|
|
6207
|
+
oldWorkSpaceMember = 1,
|
|
6208
|
+
/** 指定成员 */
|
|
6209
|
+
appointPerson = 12,
|
|
6210
|
+
/** 全部空间成员 */
|
|
6211
|
+
allWorkSpacePerson = 11
|
|
6212
|
+
}
|
|
6213
|
+
/** 使用权限属性 */
|
|
6214
|
+
export enum UsePermitType {
|
|
6215
|
+
/** 指定成员 */
|
|
6216
|
+
appointPerson = 2,
|
|
6217
|
+
/** 全部空间成员 */
|
|
6218
|
+
allWorkSpacePerson = 1
|
|
6219
|
+
}
|
|
6220
|
+
/** 数据集额外信息 */
|
|
6221
|
+
export class SchemaExtraInfo {
|
|
6222
|
+
/** 数据集所在工作空间的文件夹位置 */
|
|
6223
|
+
aimDirId: string;
|
|
6224
|
+
hasAuthorizedUse?: boolean;
|
|
6225
|
+
/** 权限列表 */
|
|
6226
|
+
permissionList?: string[];
|
|
6227
|
+
/** 行级权限,列级权限字段id */
|
|
6228
|
+
dataLevelAttributeIds: string[];
|
|
6229
|
+
/** 无列级权限的字段 */
|
|
6230
|
+
withoutColumnLevelPermissionFields: string[];
|
|
6231
|
+
/** 聚合方式 */
|
|
6232
|
+
aggFunctions?: string[];
|
|
6233
|
+
/** 是否开启数据脱敏 */
|
|
6234
|
+
isDataMaskOpen?: number;
|
|
6235
|
+
/** 是否开启列级权限 1=开启 0=未开启 */
|
|
6236
|
+
isOpenColumnLevelPermission?: number;
|
|
6237
|
+
/** 是否开启了行级权限 1=开启 0=未开启 */
|
|
6238
|
+
isOpenRowLevelPermission?: number;
|
|
6239
|
+
/** 当前数据集来自的类型 */
|
|
6240
|
+
dsCreateOrigin?: DsCreateOriginEnum;
|
|
6241
|
+
/** 跨源模式 */
|
|
6242
|
+
dataLoadMode?: DataLoadMode;
|
|
6243
|
+
/** 是否为etl 生成的数据集 */
|
|
6244
|
+
etlGenerateCube?: boolean;
|
|
6245
|
+
/** 数据集类型 */
|
|
6246
|
+
cubeType?: 'upload' | 'upload_static';
|
|
6247
|
+
/** 数据集owner */
|
|
6248
|
+
creatorId?: string;
|
|
6249
|
+
/** 数据集owner name */
|
|
6250
|
+
creatorName?: string;
|
|
6251
|
+
/** 编辑权限属性 0-私密 11-空间成员 12-指定成员 1-脏数据代表空间成员 */
|
|
6252
|
+
authLevel?: EditPermitType;
|
|
6253
|
+
/** 数据集描述 */
|
|
6254
|
+
comments?: string;
|
|
6255
|
+
/** 使用权限属性 1-空间成员 2-指定人 */
|
|
6256
|
+
authorizedUseType?: UsePermitType;
|
|
6257
|
+
/** */
|
|
6258
|
+
functionConfig: {
|
|
6259
|
+
enableCache: boolean;
|
|
6260
|
+
enableCalculateMember: boolean;
|
|
6261
|
+
enableCustomizedSql: boolean;
|
|
6262
|
+
enableJoin: boolean;
|
|
6263
|
+
};
|
|
6264
|
+
/** 数据集修改时间 */
|
|
6265
|
+
gmtModified?: string;
|
|
6266
|
+
}
|
|
6267
|
+
/** 空值展示配置类型 */
|
|
6268
|
+
export enum EmptyValueType {
|
|
6269
|
+
/** 空值 */
|
|
6270
|
+
EmptyValue = "EmptyValue",
|
|
6271
|
+
/** 空字符串 */
|
|
6272
|
+
EmptyString = "EmptyString"
|
|
6273
|
+
}
|
|
6274
|
+
export class EmptyStringOrNullDisplayConfig {
|
|
6275
|
+
/** 展示类型 */
|
|
6276
|
+
formatType: EmptyValueDisplayType;
|
|
6277
|
+
/** 自定义展示内容 */
|
|
6278
|
+
customFormat: string;
|
|
6279
|
+
/** 是否是自动(继承数据集) */
|
|
6280
|
+
isAuto?: boolean;
|
|
6281
|
+
}
|
|
6282
|
+
/** 空值展示配置 */
|
|
6283
|
+
export class EmptyValueDisplayConfig {
|
|
6284
|
+
/** 空值展示配置 */
|
|
6285
|
+
emptyValueConfig: EmptyStringOrNullDisplayConfig;
|
|
6286
|
+
/** 空字符串展示配置 */
|
|
6287
|
+
emptyStringConfig: EmptyStringOrNullDisplayConfig;
|
|
6288
|
+
static getDefaultConfigForQuickReport(): EmptyValueDisplayConfig;
|
|
6289
|
+
static convertAttrEmptyValueDisplayConfig(attr: FieldAttribute, isAuto?: boolean): EmptyValueDisplayConfig;
|
|
6290
|
+
/** 根据fieldSettingMap中存储的配置转换成空值展示配置模型 */
|
|
6291
|
+
static getConfigByFieldSettingMap(fieldSetting: any, defaultValue?: any): EmptyValueDisplayConfig;
|
|
6292
|
+
}
|
|
6293
|
+
/** 返回值cellset中的dimType */
|
|
6294
|
+
export enum CellsetDimTypes {
|
|
6295
|
+
StandardDimension = "StandardDimension",
|
|
6296
|
+
StrDateTypeDimension = "StrDateTypeDimension",
|
|
6297
|
+
StarDimension = "StarDimension",
|
|
6298
|
+
GeographicDimension = "GeographicDimension",
|
|
6299
|
+
/** 上面为维度字段,measureCol代表度量 */
|
|
6300
|
+
measureCol = "measureCol"
|
|
6301
|
+
}
|
|
6302
|
+
/** 数据集模型 */
|
|
6303
|
+
export class CubeModel {
|
|
6304
|
+
/** 数据集逻辑模型 */
|
|
6305
|
+
logicalSchema: LogicalSchema;
|
|
6306
|
+
/** 数据集字段相关模型 */
|
|
6307
|
+
cubeSchema: CubeSchema;
|
|
6308
|
+
/** 数据集结构版本 */
|
|
6309
|
+
metaModelVersion: string;
|
|
6310
|
+
/** 数据集订正版本(前端使用) */
|
|
6311
|
+
userDefineVersion: string;
|
|
6312
|
+
/** 数据集额外信息 */
|
|
6313
|
+
schemaExtraInfo: SchemaExtraInfo;
|
|
6314
|
+
}
|
|
6315
|
+
}
|
|
6316
|
+
|
|
6317
|
+
declare module '@quickbi/bi-types/cube/cube-schema' {
|
|
5937
6318
|
/**
|
|
5938
6319
|
* @author 嘉念
|
|
5939
|
-
* @description
|
|
6320
|
+
* @description 数据集字段相关模型
|
|
5940
6321
|
*/
|
|
5941
6322
|
import type { FieldExpressionModel } from '@quickbi/bi-types/cube/cube-field-expression';
|
|
5942
|
-
|
|
6323
|
+
/** 当前数据类型,如果没有进行过类型切换,则和OriginDataType一致 影响sql生成 (原colType) */
|
|
6324
|
+
export enum DataType {
|
|
6325
|
+
number = "number",
|
|
6326
|
+
string = "string",
|
|
6327
|
+
date = "date",
|
|
6328
|
+
datetime = "datetime",
|
|
6329
|
+
time = "time"
|
|
6330
|
+
}
|
|
6331
|
+
/** 二级数据类型:不影响sql生成,影响内存处理及前端icon展示(如:地理维度、) */
|
|
6332
|
+
export enum SecondDataType {
|
|
6333
|
+
number = "number",
|
|
6334
|
+
string = "string",
|
|
6335
|
+
geographic = "geographic",
|
|
6336
|
+
imageUrl = "imageUrl",
|
|
6337
|
+
imageFileId = "imageFileId",
|
|
6338
|
+
date = "date",
|
|
6339
|
+
datetime = "datetime",
|
|
6340
|
+
time = "time",
|
|
6341
|
+
multiValue = "multi_value"
|
|
6342
|
+
}
|
|
6343
|
+
/** 物理数据类型:第一次初始化时填写,后续不会修改 */
|
|
6344
|
+
export type OriginDataType = DataType;
|
|
6345
|
+
/** 度量类型聚合方式 */
|
|
6346
|
+
export enum Aggregator {
|
|
6347
|
+
'sum' = "sum",
|
|
6348
|
+
'count' = "count",
|
|
6349
|
+
'distinct-count' = "distinct-count",
|
|
6350
|
+
'max' = "max",
|
|
6351
|
+
'min' = "min",
|
|
6352
|
+
'avg' = "avg"
|
|
6353
|
+
}
|
|
6354
|
+
/** 年粒度日期类型 */
|
|
6355
|
+
export enum CalendarTypeEnum {
|
|
6356
|
+
/** 公历年 */
|
|
6357
|
+
GregorianYear = "gregorian-year",
|
|
6358
|
+
/** 财年 */
|
|
6359
|
+
FiscalYear = "fiscal-year",
|
|
6360
|
+
/** 农历年 */
|
|
6361
|
+
LunarYear = "lunar-year"
|
|
6362
|
+
}
|
|
6363
|
+
/** 日期维度支持的粒度 */
|
|
6364
|
+
export enum DateGranularity {
|
|
6365
|
+
year = "year",
|
|
6366
|
+
fiscalYear = "fiscal-year",
|
|
6367
|
+
quarter = "year-quarter",
|
|
6368
|
+
fiscalYearQuarter = "fiscal-year-quarter",
|
|
6369
|
+
month = "year-month",
|
|
6370
|
+
week = "year-week",
|
|
6371
|
+
day = "year-month-day",
|
|
6372
|
+
hour = "hour",
|
|
6373
|
+
minute = "hour-minute",
|
|
6374
|
+
second = "hour-minute-second",
|
|
6375
|
+
datetime = "datetime"
|
|
6376
|
+
}
|
|
6377
|
+
/** 地理维度支持的粒度 */
|
|
6378
|
+
export enum RegionGranularity {
|
|
6379
|
+
/** 洲 */
|
|
6380
|
+
continent = "CONTINENT",
|
|
6381
|
+
/** 国家 */
|
|
6382
|
+
country = "COUNTRY",
|
|
6383
|
+
/** 区域 */
|
|
6384
|
+
region = "REGION",
|
|
6385
|
+
/** 省 */
|
|
6386
|
+
province = "PROVINCE",
|
|
6387
|
+
/** 市 */
|
|
6388
|
+
city = "CITY",
|
|
6389
|
+
/** 区 */
|
|
6390
|
+
xian = "XIAN",
|
|
6391
|
+
/** 街道 */
|
|
6392
|
+
street = "STREET",
|
|
6393
|
+
/** 经度 */
|
|
6394
|
+
lng = "LNG",
|
|
6395
|
+
/** 纬度 */
|
|
6396
|
+
lat = "LAT",
|
|
6397
|
+
/** 自定义区域 */
|
|
6398
|
+
custom_region = "CUSTOM_REGION"
|
|
6399
|
+
}
|
|
6400
|
+
/** 多值分隔符 */
|
|
6401
|
+
export enum MultiSeparator {
|
|
6402
|
+
comma = ",",
|
|
6403
|
+
semicolon = ";",
|
|
6404
|
+
space = " "
|
|
6405
|
+
}
|
|
6406
|
+
/** 空值展示配置枚举 */
|
|
6407
|
+
export enum EmptyValueDisplayType {
|
|
6408
|
+
/** 展示为'-' */
|
|
6409
|
+
Hyphen = "hyphen",
|
|
6410
|
+
/** 展示为{空}/{空字符串} */
|
|
6411
|
+
Braces = "braces",
|
|
6412
|
+
/** 展示为"null" */
|
|
6413
|
+
Null = "null",
|
|
6414
|
+
/** 不展示 */
|
|
6415
|
+
NotDisplay = "notDisplay",
|
|
6416
|
+
/** 自定义 */
|
|
6417
|
+
Custom = "custom"
|
|
6418
|
+
}
|
|
5943
6419
|
export enum CustomAreaType {
|
|
5944
6420
|
/** 自定义地理信息 */
|
|
5945
6421
|
CUSTOM_AREA = "CUSTOM_AREA",
|
|
@@ -5959,456 +6435,29 @@ declare module '@quickbi/bi-types/cube/cube-model' {
|
|
|
5959
6435
|
/** 横坐标 */
|
|
5960
6436
|
VERTICAL = "CUSTOM_PICTURE_VERTICAL"
|
|
5961
6437
|
}
|
|
6438
|
+
/** 地理数据匹配项 */
|
|
6439
|
+
export interface GeoDataMappingItem {
|
|
6440
|
+
/** 用户侧地理维度值(原始值: null/'') */
|
|
6441
|
+
key: string;
|
|
6442
|
+
/** qbi 标准行政区划 code */
|
|
6443
|
+
value: string;
|
|
6444
|
+
}
|
|
6445
|
+
/** 地理数据匹配 */
|
|
6446
|
+
export type GeoDataMapping = GeoDataMappingItem[];
|
|
5962
6447
|
/** 自定义地理信息 */
|
|
5963
6448
|
export interface ExtraInfo {
|
|
5964
6449
|
/** 自定义层级Id */
|
|
5965
6450
|
customGeoLevel?: number;
|
|
5966
6451
|
/** 自定义图片类型 */
|
|
5967
6452
|
pictureCoordinateType?: PictureCoordinateType;
|
|
6453
|
+
/** 地理数据匹配 */
|
|
6454
|
+
customGeoMapping?: GeoDataMapping;
|
|
5968
6455
|
}
|
|
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 {
|
|
6456
|
+
/** 字段属性 */
|
|
6457
|
+
export interface FieldAttribute {
|
|
6029
6458
|
/** 唯一标识 */
|
|
6030
6459
|
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
|
-
/** 显示名称 */
|
|
6460
|
+
/** 显示名称 */
|
|
6412
6461
|
caption: string;
|
|
6413
6462
|
/** 一级数据类型(分析类型):影响sql生成 */
|
|
6414
6463
|
dataType: DataType;
|
|
@@ -6418,6 +6467,8 @@ declare module '@quickbi/bi-types/cube/cube-model' {
|
|
|
6418
6467
|
originDataType: OriginDataType | null;
|
|
6419
6468
|
/** 格式化格式 */
|
|
6420
6469
|
format: string | null;
|
|
6470
|
+
/** 原始格式化配置(NumberFormat对象的JSON字符串) */
|
|
6471
|
+
originFormat?: string | null;
|
|
6421
6472
|
/** 表数据物理存储格式(暂未使用2021-03) */
|
|
6422
6473
|
dataFormat: string | null;
|
|
6423
6474
|
/** 聚合方式 */
|
|
@@ -6446,10 +6497,6 @@ declare module '@quickbi/bi-types/cube/cube-model' {
|
|
|
6446
6497
|
name?: string;
|
|
6447
6498
|
/** 字段描述 */
|
|
6448
6499
|
comments?: string;
|
|
6449
|
-
/** 字段备注类型 文本/链接 */
|
|
6450
|
-
commentType?: 'text' | 'url';
|
|
6451
|
-
/** 链接模式下的链接文字(commentType=url 时有效) */
|
|
6452
|
-
commentLinkText?: string;
|
|
6453
6500
|
/** 字段自定义排序设置 */
|
|
6454
6501
|
sortModel?: {
|
|
6455
6502
|
sortType: 'ASC' | 'DESC' | 'CUSTOM';
|
|
@@ -6472,37 +6519,63 @@ declare module '@quickbi/bi-types/cube/cube-model' {
|
|
|
6472
6519
|
customAreaType?: CustomAreaType;
|
|
6473
6520
|
/** 数据集属性额外信息 */
|
|
6474
6521
|
extraInfo?: ExtraInfo;
|
|
6522
|
+
/** 逻辑表id */
|
|
6523
|
+
node?: string;
|
|
6524
|
+
/** 物理字段 */
|
|
6525
|
+
column?: string;
|
|
6475
6526
|
}
|
|
6476
|
-
/**
|
|
6477
|
-
export
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
'
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
/**
|
|
6488
|
-
|
|
6489
|
-
/**
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
/**
|
|
6496
|
-
|
|
6497
|
-
/**
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
type?: 'absolute' | 'relative' | null;
|
|
6501
|
-
value: string;
|
|
6502
|
-
}[];
|
|
6503
|
-
/** 前端是否隐藏掉 */
|
|
6504
|
-
hidden?: boolean;
|
|
6527
|
+
/** 字段列表定义,包含维度、度量 */
|
|
6528
|
+
export interface Field {
|
|
6529
|
+
/** 唯一标识 */
|
|
6530
|
+
uniqueId: string;
|
|
6531
|
+
/** 字段名称 */
|
|
6532
|
+
caption: string;
|
|
6533
|
+
type: 'Dimension' | 'Measure';
|
|
6534
|
+
/** 标记数据面板上的字段、文件夹,和数据集原有的字段、文件夹区别开来 */
|
|
6535
|
+
fromPanel?: boolean;
|
|
6536
|
+
/** 老接口保留字段(计算字段expression中作为唯一标识使用),新数据跟uniqueId值相同 */
|
|
6537
|
+
name?: string;
|
|
6538
|
+
/** 引用表id */
|
|
6539
|
+
table: string;
|
|
6540
|
+
/** 逻辑表id */
|
|
6541
|
+
node: string;
|
|
6542
|
+
/** 物理字段 */
|
|
6543
|
+
column: string;
|
|
6544
|
+
/** 是否为衍生字段,分组字段和计算字段都为true */
|
|
6545
|
+
calculateMember: boolean;
|
|
6546
|
+
/** 字段描述,仅日期类型会使用 */
|
|
6547
|
+
comments?: string;
|
|
6548
|
+
/** 是否支持修改字段类型 */
|
|
6549
|
+
supportCastDataType?: boolean;
|
|
6550
|
+
attributes: FieldAttribute[];
|
|
6505
6551
|
}
|
|
6552
|
+
export type AttributeMapValue = {
|
|
6553
|
+
attribute: FieldAttribute;
|
|
6554
|
+
type: 'Dimension' | 'Measure';
|
|
6555
|
+
};
|
|
6556
|
+
/**
|
|
6557
|
+
* 树节点类型
|
|
6558
|
+
* folder: 文件夹
|
|
6559
|
+
* hierarchy: 层级结构
|
|
6560
|
+
* attribute: 普通节点
|
|
6561
|
+
* dimensionGroup: 维度组
|
|
6562
|
+
* measureGroup: 度量组
|
|
6563
|
+
* lnglatGroup: 经纬度组
|
|
6564
|
+
* */
|
|
6565
|
+
export type TreeNodeTypes = 'folder' | 'hierarchy' | 'attribute' | 'dimensionGroup' | 'measureGroup' | 'lnglatGroup';
|
|
6566
|
+
/**
|
|
6567
|
+
* 维度树结构类型
|
|
6568
|
+
* Normal: 正常层级结构
|
|
6569
|
+
* Date: 日期类型层级结构
|
|
6570
|
+
* Linked: 关联类型文件夹
|
|
6571
|
+
*/
|
|
6572
|
+
export type DimensionTreeFlags = 'DimensionNormal' | 'DimensionDate' | 'DimensionLinked' | null;
|
|
6573
|
+
/**
|
|
6574
|
+
* 度量树结构类型
|
|
6575
|
+
* Normal: 正常层级结构
|
|
6576
|
+
* Linked: 关联类型文件夹
|
|
6577
|
+
*/
|
|
6578
|
+
export type MeasureTreeFlags = 'MeasureNormal' | 'MeasureLinked' | null;
|
|
6506
6579
|
/** 普通字段 */
|
|
6507
6580
|
export interface AttributeNode {
|
|
6508
6581
|
/** 字段ID */
|
|
@@ -6513,6 +6586,8 @@ declare module '@quickbi/bi-types/cube/cube-model' {
|
|
|
6513
6586
|
fromPanel?: boolean;
|
|
6514
6587
|
/** 节点名称,attribute类型为null */
|
|
6515
6588
|
name?: null;
|
|
6589
|
+
/** 逻辑表id */
|
|
6590
|
+
node?: string;
|
|
6516
6591
|
caption?: string;
|
|
6517
6592
|
children?: (AttributeNode | FolderAndHierarchyNode)[];
|
|
6518
6593
|
flag: null;
|
|
@@ -6529,6 +6604,8 @@ declare module '@quickbi/bi-types/cube/cube-model' {
|
|
|
6529
6604
|
fromPanel?: boolean;
|
|
6530
6605
|
/** 节点名称 */
|
|
6531
6606
|
name?: string;
|
|
6607
|
+
/** 逻辑表id */
|
|
6608
|
+
node?: string;
|
|
6532
6609
|
/** 节点名称,attribute类型为null */
|
|
6533
6610
|
caption?: string;
|
|
6534
6611
|
/** 所引用的关联表的id,仅flag为DimensionLinked和MeasureLinked时存在 */
|
|
@@ -6537,14 +6614,61 @@ declare module '@quickbi/bi-types/cube/cube-model' {
|
|
|
6537
6614
|
/** 文件夹和层级结构类型 */
|
|
6538
6615
|
flag: DimensionTreeFlags | MeasureTreeFlags;
|
|
6539
6616
|
}
|
|
6540
|
-
/**
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6617
|
+
/** 数据集层级结构/文件夹/属性的嵌套关系 */
|
|
6618
|
+
export type FieldTree = AttributeNode | FolderAndHierarchyNode;
|
|
6619
|
+
export interface FilterElement {
|
|
6620
|
+
/** 过滤条件引用的字段uid */
|
|
6621
|
+
resourceId: string;
|
|
6622
|
+
/** 过滤条件比较运算符:> < =, 和查询控件所用保持一致 */
|
|
6623
|
+
functionalOperator: string;
|
|
6624
|
+
values: {
|
|
6625
|
+
type?: 'absolute' | 'relative' | null;
|
|
6626
|
+
value: string;
|
|
6627
|
+
}[];
|
|
6628
|
+
/** 前端是否隐藏掉 */
|
|
6629
|
+
hidden?: boolean;
|
|
6630
|
+
}
|
|
6631
|
+
/** 过滤条件 */
|
|
6632
|
+
export class FilterAttr {
|
|
6633
|
+
logicalOperator: 'and' | 'or';
|
|
6634
|
+
/** 过滤值 */
|
|
6635
|
+
filterElements: FilterElement[];
|
|
6636
|
+
/** 嵌套过滤条件 */
|
|
6637
|
+
filters: FilterAttr[];
|
|
6638
|
+
beforeJoin?: boolean;
|
|
6639
|
+
tableId?: string;
|
|
6640
|
+
}
|
|
6641
|
+
/** 占位符类型 */
|
|
6642
|
+
export enum ParamStyleType {
|
|
6643
|
+
/** 条件占位符 */
|
|
6644
|
+
condition = "condition",
|
|
6645
|
+
/** 值占位符 */
|
|
6646
|
+
placeholder = "placeholder",
|
|
6647
|
+
/** 表达式占位符 */
|
|
6648
|
+
param = "param",
|
|
6649
|
+
/** 加速占位符 */
|
|
6650
|
+
accelerate = "accelerate"
|
|
6651
|
+
}
|
|
6652
|
+
/** 占位符参数 */
|
|
6653
|
+
export enum ParamDataType {
|
|
6654
|
+
/** 文本 */
|
|
6655
|
+
string = "string",
|
|
6656
|
+
/** 数值 */
|
|
6657
|
+
number = "number",
|
|
6658
|
+
/** 日期 */
|
|
6659
|
+
dateTime = "datetime",
|
|
6660
|
+
/** 日期-年月日 */
|
|
6661
|
+
dateRegion = "dateRegion",
|
|
6662
|
+
/** 日期-年季 */
|
|
6663
|
+
quarterRegion = "quarterRegion",
|
|
6664
|
+
/** 日期-年月 */
|
|
6665
|
+
monthRegion = "monthRegion",
|
|
6666
|
+
/** 日期-年周 */
|
|
6667
|
+
weekRegion = "weekRegion",
|
|
6668
|
+
/** 日期-年 */
|
|
6669
|
+
yearRegion = "yearRegion",
|
|
6670
|
+
/** 日期-年月日时分秒 */
|
|
6671
|
+
ymdHmsRegion = "ymdHmsRegion"
|
|
6548
6672
|
}
|
|
6549
6673
|
export interface ParamType {
|
|
6550
6674
|
/** sql参数id */
|
|
@@ -6574,34 +6698,333 @@ declare module '@quickbi/bi-types/cube/cube-model' {
|
|
|
6574
6698
|
/** 默认值是否全局生效,true: 生效范围与过滤器一致。false: 默认值仅在数据集生效 */
|
|
6575
6699
|
useInGlobal?: boolean;
|
|
6576
6700
|
}
|
|
6577
|
-
/**
|
|
6578
|
-
export
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6701
|
+
/** 数据集逻辑字段模型 */
|
|
6702
|
+
export class CubeSchema {
|
|
6703
|
+
/** 唯一标识,无业务逻辑,不要使用 */
|
|
6704
|
+
uniqueId: string;
|
|
6705
|
+
/** 数据集ID */
|
|
6706
|
+
cubeId: string;
|
|
6707
|
+
/** 数据源ID */
|
|
6708
|
+
datasourceId: string;
|
|
6709
|
+
/** 数据集名称 */
|
|
6710
|
+
caption: string;
|
|
6711
|
+
/** 字段列表 */
|
|
6712
|
+
fields: Field[];
|
|
6713
|
+
/** 普通字段、层系、文件夹树形结构 */
|
|
6714
|
+
fieldTree: FieldTree[];
|
|
6715
|
+
/** 过滤条件 */
|
|
6716
|
+
filter?: FilterAttr[];
|
|
6717
|
+
/** 全局参数 */
|
|
6718
|
+
params: ParamType[];
|
|
6719
|
+
/** 占位符 */
|
|
6720
|
+
sqlPlaceholders: ParamType[];
|
|
6588
6721
|
}
|
|
6589
|
-
/**
|
|
6590
|
-
export
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6722
|
+
/** 数据集影子模型 */
|
|
6723
|
+
export type CubeShadow = CubeSchema;
|
|
6724
|
+
}
|
|
6725
|
+
|
|
6726
|
+
declare module '@quickbi/bi-types/cube/cube-blend' {
|
|
6727
|
+
/**
|
|
6728
|
+
* @author 雅影
|
|
6729
|
+
* @description 数据混合类型定义
|
|
6730
|
+
*/
|
|
6731
|
+
import type { CubeLinkModel, CubeLinkJoinKeyModel } from '@quickbi/bi-types/cube/cube-links';
|
|
6732
|
+
/** 数据集之间关联的模型定义 */
|
|
6733
|
+
export interface CubeLink extends Omit<CubeLinkModel, 'joinKeys'> {
|
|
6734
|
+
joinKeys: Omit<CubeLinkJoinKeyModel, 'condition'>[];
|
|
6597
6735
|
}
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6736
|
+
/** 数据集混合schema */
|
|
6737
|
+
export interface BlendSchema {
|
|
6738
|
+
/** 数据混合唯一id */
|
|
6739
|
+
uniqueId: string;
|
|
6740
|
+
/** 数据混合名称 */
|
|
6741
|
+
caption: string;
|
|
6742
|
+
/** 数据混合关联关系 */
|
|
6743
|
+
cubeLinks: CubeLink[];
|
|
6744
|
+
/** 标识是否存在字段id重复 */
|
|
6745
|
+
hasRepeatFid?: boolean;
|
|
6746
|
+
}
|
|
6747
|
+
/** 数据混合消费端模型定义 */
|
|
6748
|
+
export type CubeBlend = BlendSchema;
|
|
6749
|
+
}
|
|
6750
|
+
|
|
6751
|
+
declare module '@quickbi/bi-types/cube/cube-field-expression' {
|
|
6752
|
+
/**
|
|
6753
|
+
* @author 嘉念
|
|
6754
|
+
* @description 数据集字段表达式模型
|
|
6755
|
+
*/
|
|
6756
|
+
export enum FieldExpressionType {
|
|
6757
|
+
/** 分组字段 */
|
|
6758
|
+
dataGroup = "dataGroup",
|
|
6759
|
+
/** 计算字段 */
|
|
6760
|
+
udf = "udf",
|
|
6761
|
+
/** lod字段 */
|
|
6762
|
+
system = "system",
|
|
6763
|
+
/** 工具栏字段(时间差字段、缺失值替换字段、新增别名字段、拆分列字段、合并字段) */
|
|
6764
|
+
tool = "tool"
|
|
6765
|
+
}
|
|
6766
|
+
/** 工具栏字段类型 */
|
|
6767
|
+
export enum ToolFieldType {
|
|
6768
|
+
/** 时间差字段 */
|
|
6769
|
+
DateDifference = "dateDifference",
|
|
6770
|
+
/** 缺失值替换字段 */
|
|
6771
|
+
MissingValueReplacement = "missingValueReplacement",
|
|
6772
|
+
/** 维度别名字段 */
|
|
6773
|
+
ValueReplacement = "valueReplacement",
|
|
6774
|
+
/** 拆分列字段 */
|
|
6775
|
+
SplitField = "SplitField",
|
|
6776
|
+
/** 合并字段 */
|
|
6777
|
+
MergeField = "mergeField"
|
|
6778
|
+
}
|
|
6779
|
+
/** 时间差字段配置 */
|
|
6780
|
+
export interface DateDiffFieldConfig {
|
|
6781
|
+
/** 开始字段 */
|
|
6782
|
+
firstField: string;
|
|
6783
|
+
/** 结束字段 */
|
|
6784
|
+
endField: string;
|
|
6785
|
+
/** 时间单位 */
|
|
6786
|
+
timeUnit: string;
|
|
6787
|
+
}
|
|
6788
|
+
/** 维值替换字段配置 */
|
|
6789
|
+
export interface ReplaceDimValueFieldConfig {
|
|
6790
|
+
/** 引用字段Id */
|
|
6791
|
+
refUniqueId: string;
|
|
6792
|
+
/** 替换维值列表 */
|
|
6793
|
+
replaceElementList: {
|
|
6794
|
+
/** 原始值 */
|
|
6795
|
+
originalValue: string;
|
|
6796
|
+
/** 替换值 */
|
|
6797
|
+
value: string;
|
|
6798
|
+
}[];
|
|
6799
|
+
}
|
|
6800
|
+
/** 缺失值替换字段配置 */
|
|
6801
|
+
export interface MissingValueReplaceFieldConfig {
|
|
6802
|
+
/** 引用字段Id */
|
|
6803
|
+
refUniqueId: string;
|
|
6804
|
+
/** 替换空值 */
|
|
6805
|
+
replaceNullValue: boolean;
|
|
6806
|
+
/** 替换空白值 */
|
|
6807
|
+
replaceBlankValue: boolean;
|
|
6808
|
+
/** 替换值 */
|
|
6603
6809
|
value: string;
|
|
6604
|
-
|
|
6810
|
+
}
|
|
6811
|
+
/** 拆分列字段配置 */
|
|
6812
|
+
export interface SplitColumnFieldConfig {
|
|
6813
|
+
/** 引用字段Id */
|
|
6814
|
+
refUniqueId: string;
|
|
6815
|
+
/** 分隔符 */
|
|
6816
|
+
delimiter: string;
|
|
6817
|
+
/** 是否是第N列拆分字段 */
|
|
6818
|
+
firstN: boolean;
|
|
6819
|
+
/** 拆分字符数 */
|
|
6820
|
+
splitNumber: number;
|
|
6821
|
+
/** 拆分索引 */
|
|
6822
|
+
splitIndex: number;
|
|
6823
|
+
}
|
|
6824
|
+
/** 合并字段配置 */
|
|
6825
|
+
export interface MergeFieldsFieldConfig {
|
|
6826
|
+
/** 连接符 */
|
|
6827
|
+
delimiter: string;
|
|
6828
|
+
/** 合并字段id列表 */
|
|
6829
|
+
mergeElementList: string[];
|
|
6830
|
+
}
|
|
6831
|
+
export interface ToolFieldConfig {
|
|
6832
|
+
/** 唯一标识 */
|
|
6833
|
+
uniqueId: string;
|
|
6834
|
+
/** 字段名称 */
|
|
6835
|
+
caption: string;
|
|
6836
|
+
/** 工具栏类型 */
|
|
6837
|
+
toolType: ToolFieldType;
|
|
6838
|
+
/** 时间差字段配置 */
|
|
6839
|
+
dateDiffItem: DateDiffFieldConfig;
|
|
6840
|
+
/** 新增别名字段配置 */
|
|
6841
|
+
replaceItem: ReplaceDimValueFieldConfig;
|
|
6842
|
+
/** 缺失值替换字段配置 */
|
|
6843
|
+
missingReplaceItem: MissingValueReplaceFieldConfig;
|
|
6844
|
+
/** 拆分列字段配置 */
|
|
6845
|
+
splitItem: SplitColumnFieldConfig;
|
|
6846
|
+
/** 合并字段配置 */
|
|
6847
|
+
mergeItem: MergeFieldsFieldConfig;
|
|
6848
|
+
}
|
|
6849
|
+
/** 分组字段类型 */
|
|
6850
|
+
export enum GroupType {
|
|
6851
|
+
/** 日期类型-自定义区间分组 */
|
|
6852
|
+
NormalGroup = "NormalGroup",
|
|
6853
|
+
/** 枚举-列表分组类型 */
|
|
6854
|
+
ListGroup = "ListGroup",
|
|
6855
|
+
/** 数值-自定义分组类型 */
|
|
6856
|
+
CustomizedGroup = "CustomizedGroup"
|
|
6857
|
+
}
|
|
6858
|
+
/** 分组字段操作符 */
|
|
6859
|
+
export enum GroupOperator {
|
|
6860
|
+
/** 小于 */
|
|
6861
|
+
LessThan = "lessThan",
|
|
6862
|
+
/** 小于等于 */
|
|
6863
|
+
LessThanOrEqualTo = "lessThanOrEqualTo",
|
|
6864
|
+
/** 大于 */
|
|
6865
|
+
GreaterThan = "greaterThan",
|
|
6866
|
+
/** 大于等于 */
|
|
6867
|
+
GreaterThanOrEqualTo = "greaterThanOrEqualTo",
|
|
6868
|
+
/** 为空 */
|
|
6869
|
+
IsNull = "isNull",
|
|
6870
|
+
/** 介于 */
|
|
6871
|
+
Between = "between"
|
|
6872
|
+
}
|
|
6873
|
+
/** 数值-自定义分组类型 */
|
|
6874
|
+
export type CustomizedGroup = {
|
|
6875
|
+
/** 是否是默认分组字段 */
|
|
6876
|
+
groupName: string;
|
|
6877
|
+
defaultGroup: boolean;
|
|
6878
|
+
lower: string;
|
|
6879
|
+
upper: string;
|
|
6880
|
+
lowerOperator: GroupOperator.IsNull | GroupOperator.GreaterThan | GroupOperator.GreaterThanOrEqualTo;
|
|
6881
|
+
upperOperator: GroupOperator.LessThan | GroupOperator.LessThanOrEqualTo;
|
|
6882
|
+
groupNameType: any;
|
|
6883
|
+
};
|
|
6884
|
+
/** 枚举-列表分组类型 */
|
|
6885
|
+
export type ListGrouping = {
|
|
6886
|
+
groupName: string;
|
|
6887
|
+
groupElementList: string[];
|
|
6888
|
+
defaultGroup: boolean;
|
|
6889
|
+
};
|
|
6890
|
+
/** 日期类型-自定义区间分组 */
|
|
6891
|
+
export type NormalGroup = {
|
|
6892
|
+
groupName: string;
|
|
6893
|
+
defaultGroup: boolean;
|
|
6894
|
+
lower: string;
|
|
6895
|
+
upper: string;
|
|
6896
|
+
lowerOperator: GroupOperator.GreaterThanOrEqualTo;
|
|
6897
|
+
upperOperator: GroupOperator.LessThanOrEqualTo;
|
|
6898
|
+
};
|
|
6899
|
+
/** 分组字段 */
|
|
6900
|
+
export type Groups = CustomizedGroup[] | ListGrouping[] | NormalGroup[];
|
|
6901
|
+
export interface GroupFieldConfig {
|
|
6902
|
+
/** 唯一标识 */
|
|
6903
|
+
uniqueId: string;
|
|
6904
|
+
/** 分组名称 */
|
|
6905
|
+
caption: string;
|
|
6906
|
+
/** 分组类型 */
|
|
6907
|
+
groupType: GroupType;
|
|
6908
|
+
refUniqueId: string;
|
|
6909
|
+
/** qa中使用。qbi目前用不到 */
|
|
6910
|
+
refSql?: string;
|
|
6911
|
+
/** qa中使用。qbi目前用不到 */
|
|
6912
|
+
refFunction?: string;
|
|
6913
|
+
/** 数值类型分组字段 */
|
|
6914
|
+
customizedGroups?: CustomizedGroup[];
|
|
6915
|
+
/** 字符串类型分组字段 */
|
|
6916
|
+
listGroupings?: ListGrouping[];
|
|
6917
|
+
/** 日期类型分组字段 */
|
|
6918
|
+
normalGroups?: NormalGroup[];
|
|
6919
|
+
}
|
|
6920
|
+
/**
|
|
6921
|
+
* 原先计算字段、分组字段存储配置的模型,v6.0.2新增:时间差字段、缺失值替换字段、新增别名字段、拆分列字段、合并字段
|
|
6922
|
+
*/
|
|
6923
|
+
export interface FieldExpressionModel {
|
|
6924
|
+
type: FieldExpressionType;
|
|
6925
|
+
value?: string;
|
|
6926
|
+
/** 分组字段配置 */
|
|
6927
|
+
dataGroup: GroupFieldConfig;
|
|
6928
|
+
/** 工具栏字段配置 */
|
|
6929
|
+
tool?: ToolFieldConfig;
|
|
6930
|
+
}
|
|
6931
|
+
}
|
|
6932
|
+
|
|
6933
|
+
declare module '@quickbi/bi-types/cube/cube-links' {
|
|
6934
|
+
/**
|
|
6935
|
+
* @author 雅影
|
|
6936
|
+
* @description 数据集关联模型类型定义
|
|
6937
|
+
*/
|
|
6938
|
+
import type { TableJoinType } from '@quickbi/bi-types/cube/physical-schema';
|
|
6939
|
+
export enum JoinCondition {
|
|
6940
|
+
/** 等于 */
|
|
6941
|
+
EQUAL_TO = "equal-to",
|
|
6942
|
+
/** 不等于 */
|
|
6943
|
+
UNEQUAL_TO = "unequal-to",
|
|
6944
|
+
/** 大于 */
|
|
6945
|
+
GREATER_THAN = "greater-than",
|
|
6946
|
+
/** 大于等于 */
|
|
6947
|
+
GREATER_THAN_OR_EQUAL_TO = "greater-than-or-equal-to",
|
|
6948
|
+
/** 小于 */
|
|
6949
|
+
LESS_THAN = "less-than",
|
|
6950
|
+
/** 小于等于 */
|
|
6951
|
+
LESS_THAN_OR_EQUAL_TO = "less-than-or-equal-to"
|
|
6952
|
+
}
|
|
6953
|
+
/** 基数 */
|
|
6954
|
+
export enum TableRelation {
|
|
6955
|
+
/** 一对一 */
|
|
6956
|
+
ONE_TO_ONE = "one-to-one",
|
|
6957
|
+
/** 多对多 */
|
|
6958
|
+
MANY_TO_MANY = "many-to-many",
|
|
6959
|
+
/** 一对多 */
|
|
6960
|
+
ONE_TO_MANY = "one-to-many",
|
|
6961
|
+
/** 多对一 */
|
|
6962
|
+
MANY_TO_ONE = "many-to-one"
|
|
6963
|
+
}
|
|
6964
|
+
/** 引用完整性 */
|
|
6965
|
+
export enum ReferentialIntegrity {
|
|
6966
|
+
/** 全部对全部 */
|
|
6967
|
+
ALL_TO_ALL = "all-to-all",
|
|
6968
|
+
/** 全部对部分 */
|
|
6969
|
+
ALL_TO_SOME = "all-to-some",
|
|
6970
|
+
/** 部分对全部 */
|
|
6971
|
+
SOME_TO_ALL = "some-to-all",
|
|
6972
|
+
/** 部分对部分 */
|
|
6973
|
+
SOME_TO_SOME = "some-to-some"
|
|
6974
|
+
}
|
|
6975
|
+
/**
|
|
6976
|
+
* 关联字段
|
|
6977
|
+
* 数据混合blend和数据集物理表关联physical均使用该字段
|
|
6978
|
+
*/
|
|
6979
|
+
export type CubeLinkJoinKeyModel = {
|
|
6980
|
+
/** 源表字段(blend模式为数据集字段id,physical模式为物理字段名) */
|
|
6981
|
+
sourceKey: string;
|
|
6982
|
+
/**
|
|
6983
|
+
* @deprecated
|
|
6984
|
+
* 源表关联物理字段类型(QBI目前没在用,保留)
|
|
6985
|
+
*/
|
|
6986
|
+
sourceType?: string;
|
|
6987
|
+
/** 目标表字段(blend模式为数据集字段id,physical模式为物理字段名) */
|
|
6988
|
+
targetKey: string;
|
|
6989
|
+
/**
|
|
6990
|
+
* @deprecated
|
|
6991
|
+
* 标表关联物理字段类型(QBI目前没在用,保留)
|
|
6992
|
+
*/
|
|
6993
|
+
targetType?: string;
|
|
6994
|
+
/**
|
|
6995
|
+
* 条件
|
|
6996
|
+
*/
|
|
6997
|
+
condition: JoinCondition;
|
|
6998
|
+
/**
|
|
6999
|
+
* 目前仅physical模式使用
|
|
7000
|
+
*/
|
|
7001
|
+
targetCalculateMember?: boolean;
|
|
7002
|
+
/**
|
|
7003
|
+
* 目前仅physical模式使用
|
|
7004
|
+
*/
|
|
7005
|
+
sourceCalculateMember?: boolean;
|
|
7006
|
+
};
|
|
7007
|
+
export interface CubeLinkModel {
|
|
7008
|
+
/** 源表id(blend模式为数据集id,physical模式为物理表id) */
|
|
7009
|
+
source: string;
|
|
7010
|
+
/** 关联表id(blend模式为数据集id,physical模式为物理表id) */
|
|
7011
|
+
target: string;
|
|
7012
|
+
/** 关联类型 */
|
|
7013
|
+
joinType: TableJoinType;
|
|
7014
|
+
/** 关联字段 */
|
|
7015
|
+
joinKeys: CubeLinkJoinKeyModel[];
|
|
7016
|
+
/** 基数 物理表关联目前只有many-to-one */
|
|
7017
|
+
relation?: TableRelation;
|
|
7018
|
+
/** 引用完整性 */
|
|
7019
|
+
match?: ReferentialIntegrity;
|
|
7020
|
+
/**
|
|
7021
|
+
* 是否为自动生成的关联键(未经用户确认)
|
|
7022
|
+
* 前端临时字段,用于标记自动匹配的关联键
|
|
7023
|
+
* - true: 系统自动匹配生成,需要弹窗让用户确认
|
|
7024
|
+
* - false/undefined: 用户已确认,或手动创建的
|
|
7025
|
+
* 注意:此字段不应该发送到后端,仅在前端逻辑中使用
|
|
7026
|
+
*/
|
|
7027
|
+
isAutoGenerated?: boolean;
|
|
6605
7028
|
}
|
|
6606
7029
|
}
|
|
6607
7030
|
|
|
@@ -6871,7 +7294,9 @@ declare module '@quickbi/bi-types/cube/data-source' {
|
|
|
6871
7294
|
/** 达梦 */
|
|
6872
7295
|
dm = "dm",
|
|
6873
7296
|
/** 日志服务SLS */
|
|
6874
|
-
sls = "sls"
|
|
7297
|
+
sls = "sls",
|
|
7298
|
+
/** RDS MySQL DuckDB */
|
|
7299
|
+
mysql_duckdb = "mysql_duckdb"
|
|
6875
7300
|
}
|
|
6876
7301
|
export enum AcrossDsType {
|
|
6877
7302
|
UN_SET,
|
|
@@ -6894,7 +7319,9 @@ declare module '@quickbi/bi-types/cube/data-source' {
|
|
|
6894
7319
|
/** 端口号为8242 此后所有注释 皆为表明 变量代表的端口号码 */
|
|
6895
7320
|
eight_two_four_two = "8242",
|
|
6896
7321
|
three_three_zero_six_zero = "33060",
|
|
6897
|
-
three_zero_zero_six_zero = "30060"
|
|
7322
|
+
three_zero_zero_six_zero = "30060",
|
|
7323
|
+
three_three_zero_six = "33306",
|
|
7324
|
+
one_zero_zero_zero_zero = "10000"
|
|
6898
7325
|
}
|
|
6899
7326
|
/** 数据源 - 根据类型 - 排序 */
|
|
6900
7327
|
export enum DataSourceSort {
|
|
@@ -6930,56 +7357,47 @@ declare module '@quickbi/bi-types/cube/data-source' {
|
|
|
6930
7357
|
google = "google",
|
|
6931
7358
|
customDs = "customDs"
|
|
6932
7359
|
}
|
|
6933
|
-
/** 数据库数据源类型 */
|
|
6934
|
-
export const dataBaseType: DataSourcesConfigId[];
|
|
6935
7360
|
/** 文档数据源 */
|
|
6936
7361
|
export const SHEET_TABLE: DsType[];
|
|
6937
7362
|
}
|
|
6938
7363
|
|
|
6939
|
-
declare module '@quickbi/bi-types/cube/
|
|
7364
|
+
declare module '@quickbi/bi-types/cube/logical-schema' {
|
|
6940
7365
|
/**
|
|
6941
|
-
* @author
|
|
6942
|
-
* @description
|
|
7366
|
+
* @author 嘉念
|
|
7367
|
+
* @description 数据集逻辑模型
|
|
6943
7368
|
*/
|
|
6944
|
-
import type {
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
export
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
sourceTableName: string;
|
|
6966
|
-
/** 目标表名称 */
|
|
6967
|
-
targetTableName: string;
|
|
6968
|
-
/** 关联类型 */
|
|
6969
|
-
joinType: TableJoinType;
|
|
6970
|
-
/** 关联key */
|
|
6971
|
-
joinKeys: CubeLinkJoinKeyModel[];
|
|
6972
|
-
/** 关联关系 */
|
|
6973
|
-
relation: TableRelation;
|
|
7369
|
+
import type { CubeLinkModel } from '@quickbi/bi-types/cube/cube-links';
|
|
7370
|
+
import type { PhysicalSchema } from '@quickbi/bi-types/cube/physical-schema';
|
|
7371
|
+
/** 逻辑表模型 */
|
|
7372
|
+
export class LogicalTable {
|
|
7373
|
+
/** 节点唯一id */
|
|
7374
|
+
uniqueId: string;
|
|
7375
|
+
/** 节点名称 */
|
|
7376
|
+
caption: string;
|
|
7377
|
+
/** 物理表模型 */
|
|
7378
|
+
physicalSchema: PhysicalSchema;
|
|
7379
|
+
}
|
|
7380
|
+
export class LogicalTree {
|
|
7381
|
+
uniqueId: string;
|
|
7382
|
+
/** 描述了逻辑节点的边关系 只维护引用的节点id */
|
|
7383
|
+
links: CubeLinkModel[];
|
|
7384
|
+
}
|
|
7385
|
+
export class LogicalSchema {
|
|
7386
|
+
/** 数据集逻辑节点列表 */
|
|
7387
|
+
logicalNodes: LogicalTable[];
|
|
7388
|
+
/** 数据集逻辑树列表 */
|
|
7389
|
+
logicalTrees: LogicalTree[];
|
|
6974
7390
|
}
|
|
6975
7391
|
}
|
|
6976
7392
|
|
|
6977
|
-
declare module '@quickbi/bi-types/cube/
|
|
7393
|
+
declare module '@quickbi/bi-types/cube/physical-schema' {
|
|
6978
7394
|
/**
|
|
6979
|
-
* @author
|
|
6980
|
-
* @description
|
|
7395
|
+
* @author 嘉念
|
|
7396
|
+
* @description 数据集表模型
|
|
6981
7397
|
*/
|
|
6982
|
-
import type {
|
|
7398
|
+
import type { CubeLinkModel } from '@quickbi/bi-types/cube/cube-links';
|
|
7399
|
+
import type { DataType, DateGranularity, RegionGranularity, SecondDataType } from '@quickbi/bi-types/cube/cube-schema';
|
|
7400
|
+
import type { DsType } from '@quickbi/bi-types/cube/data-source';
|
|
6983
7401
|
/** 物理表字段模型 */
|
|
6984
7402
|
export interface TableField {
|
|
6985
7403
|
/** 物理字段备注 */
|
|
@@ -7003,7 +7421,7 @@ declare module '@quickbi/bi-types/cube/table-schema' {
|
|
|
7003
7421
|
/** 支持修改字段类型 */
|
|
7004
7422
|
supportCastDataType?: boolean | null;
|
|
7005
7423
|
}
|
|
7006
|
-
/**
|
|
7424
|
+
/** 物理表详情接口模型 */
|
|
7007
7425
|
export interface TableSchema {
|
|
7008
7426
|
/** 数据源id */
|
|
7009
7427
|
datasourceId?: string;
|
|
@@ -7024,210 +7442,112 @@ declare module '@quickbi/bi-types/cube/table-schema' {
|
|
|
7024
7442
|
/** 表类型 上传文件为file */
|
|
7025
7443
|
tableType?: string;
|
|
7026
7444
|
}
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
*/
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
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[];
|
|
7445
|
+
/** 表关联类型 */
|
|
7446
|
+
export enum TableJoinType {
|
|
7447
|
+
/** 左关联 */
|
|
7448
|
+
LEFT_OUTER_JOIN = "LEFT_OUTER_JOIN",
|
|
7449
|
+
/** 内关联 */
|
|
7450
|
+
INNER_JOIN = "INNER_JOIN",
|
|
7451
|
+
/** 右关联 */
|
|
7452
|
+
RIGHT_OUTER_JOIN = "RIGHT_OUTER_JOIN",
|
|
7453
|
+
/** 全关联 */
|
|
7454
|
+
FULL_OUTER_JOIN = "FULL_OUTER_JOIN",
|
|
7455
|
+
JOIN_ERROR = "JOIN_ERROR"
|
|
7108
7456
|
}
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
dateDiffItem: DateDiffFieldConfig;
|
|
7118
|
-
/** 新增别名字段配置 */
|
|
7119
|
-
replaceItem: ReplaceDimValueFieldConfig;
|
|
7120
|
-
/** 缺失值替换字段配置 */
|
|
7121
|
-
missingReplaceItem: MissingValueReplaceFieldConfig;
|
|
7122
|
-
/** 拆分列字段配置 */
|
|
7123
|
-
splitItem: SplitColumnFieldConfig;
|
|
7124
|
-
/** 合并字段配置 */
|
|
7125
|
-
mergeItem: MergeFieldsFieldConfig;
|
|
7457
|
+
/** 物理表类型 */
|
|
7458
|
+
export enum PhysicalTableType {
|
|
7459
|
+
/** 物理表 */
|
|
7460
|
+
Table = "table",
|
|
7461
|
+
/** 自定义SQL */
|
|
7462
|
+
Sql = "sql",
|
|
7463
|
+
/** 上传文件(探索空间 & 数据库)、API数据源、文档数据源 */
|
|
7464
|
+
File = "file"
|
|
7126
7465
|
}
|
|
7127
|
-
/**
|
|
7128
|
-
export
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7466
|
+
/** 物理表模型 */
|
|
7467
|
+
export interface PhysicalTable {
|
|
7468
|
+
/** 唯一标识 */
|
|
7469
|
+
uniqueId: string;
|
|
7470
|
+
/** 表展示名称 */
|
|
7471
|
+
caption?: string;
|
|
7472
|
+
/** 表id */
|
|
7473
|
+
tableName: string;
|
|
7474
|
+
/** 物理表所属数据源ID */
|
|
7475
|
+
datasourceId: string;
|
|
7476
|
+
/** 是否为事实表(中心表标识) */
|
|
7477
|
+
factTable: boolean;
|
|
7478
|
+
/** 数据源类型 */
|
|
7479
|
+
dsType: DsType;
|
|
7480
|
+
/** 表类型(不落库,每次获取cubeSchema模型时后端实时查询返回) */
|
|
7481
|
+
tableType?: PhysicalTableType;
|
|
7482
|
+
}
|
|
7483
|
+
/** 自定义SQL虚拟表模型 */
|
|
7484
|
+
export interface VirtualTable {
|
|
7485
|
+
/** 唯一标识 */
|
|
7486
|
+
uniqueId: string;
|
|
7487
|
+
/** 表展示名称 */
|
|
7488
|
+
caption: string;
|
|
7489
|
+
/** 表名 */
|
|
7490
|
+
tableName: string;
|
|
7491
|
+
/** 物理表所属数据源ID */
|
|
7492
|
+
datasourceId: string;
|
|
7493
|
+
/** 是否为事实表(中心表标识) */
|
|
7494
|
+
factTable: boolean;
|
|
7495
|
+
dsType: DsType;
|
|
7496
|
+
sqlId: string;
|
|
7497
|
+
sql: string;
|
|
7498
|
+
/** 表类型(不落库,每次获取cubeSchema模型时后端实时查询返回) */
|
|
7499
|
+
tableType?: PhysicalTableType;
|
|
7135
7500
|
}
|
|
7136
|
-
/**
|
|
7137
|
-
export
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
/** 大于等于 */
|
|
7145
|
-
GreaterThanOrEqualTo = "greaterThanOrEqualTo",
|
|
7146
|
-
/** 为空 */
|
|
7147
|
-
IsNull = "isNull"
|
|
7501
|
+
/** 合并字段来源表信息 */
|
|
7502
|
+
export interface UnionTableColumnModel {
|
|
7503
|
+
/** 来源表id */
|
|
7504
|
+
table: string;
|
|
7505
|
+
/** 来源字段物理字段名(表名称列不传) */
|
|
7506
|
+
column?: string;
|
|
7507
|
+
/** 来源表的名称(表名称列需要传) */
|
|
7508
|
+
value?: string;
|
|
7148
7509
|
}
|
|
7149
|
-
/**
|
|
7150
|
-
export
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
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[];
|
|
7510
|
+
/** 合并字段 */
|
|
7511
|
+
export interface UnionColumn {
|
|
7512
|
+
/** 合并后的字段名 */
|
|
7513
|
+
column: string;
|
|
7514
|
+
/** 备注 */
|
|
7515
|
+
caption: string;
|
|
7516
|
+
/** 合并字段的来源表字段信息 */
|
|
7517
|
+
tableColumns: UnionTableColumnModel[];
|
|
7518
|
+
/** 非源表字段,自动生成的表名称列 */
|
|
7519
|
+
isAuto?: boolean;
|
|
7195
7520
|
}
|
|
7196
|
-
/**
|
|
7197
|
-
|
|
7198
|
-
*/
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
/** 工具栏字段配置 */
|
|
7205
|
-
tool?: ToolFieldConfig;
|
|
7521
|
+
/** 合并表模型 */
|
|
7522
|
+
export interface UnionTable extends PhysicalTable {
|
|
7523
|
+
/** 物理表 */
|
|
7524
|
+
tables: PhysicalTable[];
|
|
7525
|
+
/** 自定义sql、view */
|
|
7526
|
+
virtualTables: VirtualTable[];
|
|
7527
|
+
/** 合并字段信息 */
|
|
7528
|
+
unionColumns: UnionColumn[];
|
|
7206
7529
|
}
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
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'>[];
|
|
7530
|
+
export class HintModal {
|
|
7531
|
+
dsType: DsType;
|
|
7532
|
+
head: `set`;
|
|
7533
|
+
key: string;
|
|
7534
|
+
connector: `=`;
|
|
7535
|
+
value: string;
|
|
7536
|
+
support: boolean;
|
|
7218
7537
|
}
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7538
|
+
export class PhysicalSchema {
|
|
7539
|
+
/** 物理表 */
|
|
7540
|
+
tables: PhysicalTable[];
|
|
7541
|
+
/** 自定义sql、view */
|
|
7542
|
+
virtualTables: VirtualTable[];
|
|
7543
|
+
/** union合并表 */
|
|
7544
|
+
unionTables: UnionTable[];
|
|
7545
|
+
/** 表关联关系 */
|
|
7546
|
+
links: CubeLinkModel[];
|
|
7547
|
+
/** odps表是否开启全表扫描 */
|
|
7548
|
+
sqlHintTypes?: string[];
|
|
7549
|
+
/** 主逻辑表下才有 */
|
|
7550
|
+
sqlHints?: HintModal[];
|
|
7229
7551
|
}
|
|
7230
|
-
/** 数据混合消费端模型定义 */
|
|
7231
|
-
export type CubeBlend = BlendSchema;
|
|
7232
7552
|
}
|
|
7233
7553
|
|