@quickbi/bi-types 3.1.1-beta.1 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.d.ts CHANGED
@@ -2223,6 +2223,7 @@ declare module '@quickbi/bi-types/cube' {
2223
2223
  export * from '@quickbi/bi-types/cube/data-source';
2224
2224
  export * from '@quickbi/bi-types/cube/cube-links';
2225
2225
  export * from '@quickbi/bi-types/cube/table-schema';
2226
+ export * from '@quickbi/bi-types/cube/cube-field-expression';
2226
2227
  export type { BlendSchema, CubeBlend, CubeLink } from '@quickbi/bi-types/cube/cube-blend';
2227
2228
  }
2228
2229
 
@@ -2716,6 +2717,14 @@ declare module '@quickbi/bi-types/router/route-key' {
2716
2717
  orgAdminSmartQGlobalConfigAgentManage = "orgAdminSmartQGlobalConfigAgentManage",
2717
2718
  /** 组织管理-小Q问数 */
2718
2719
  orgAdminCopilot = "orgAdminCopilot",
2720
+ /** 组织管理-小Q问数 - 探索版 */
2721
+ orgAdminCopilotQueryAgent = "orgAdminCopilotQueryAgent",
2722
+ /** 组织管理-小Q问数-分析主题管理 */
2723
+ orgQueryAgentAnalysisThemeManage = "orgQueryAgentAnalysisThemeManage",
2724
+ /** 组织管理-小Q问数 - 探索版 - 分析主题授权 */
2725
+ orgQueryAgentAnalysisThemeAuth = "orgQueryAgentAnalysisThemeAuth",
2726
+ /** 组织管理-小Q问数-知识库管理 */
2727
+ orgQueryAgentKnowledgeBaseManage = "orgQueryAgentKnowledgeBaseManage",
2719
2728
  /** 组织管理-小Q问数-问数资源管理 */
2720
2729
  orgResourceManage = "orgResourceManage",
2721
2730
  /** 组织管理-小Q问数-分析主题管理 */
@@ -2899,6 +2908,10 @@ declare module '@quickbi/bi-types/router/route-key' {
2899
2908
  copilotPageSmartQ = "copilotPageSuperAgent",
2900
2909
  /** 首页下的小Q问数 */
2901
2910
  copilotPageQChat = "copilotPageQChat",
2911
+ /** 首页下的小Q问数-数据集模式 */
2912
+ copilotPageQChatCube = "copilotPageQChatCube",
2913
+ /** 首页下的小Q问数-数据源模式 */
2914
+ copilotPageQChatDatasource = "copilotPageQChatDatasource",
2902
2915
  /** 首页下的小Q解读 */
2903
2916
  copilotPageQInsight = "copilotPageQInsight",
2904
2917
  /** 首页下的小Q报告 */
@@ -3108,6 +3121,10 @@ declare module '@quickbi/bi-types/router/route-key' {
3108
3121
  mobileCopilot = "mobileCopilot",
3109
3122
  /** 移动端微应用-小Q问数 */
3110
3123
  mobileCopilotQChat = "mobileCopilotQChat",
3124
+ /** 移动端微应用-小Q问数-数据集模式 */
3125
+ mobileCopilotQChatCube = "mobileCopilotQChatCube",
3126
+ /** 移动端微应用-小Q问数-分析主题模式 */
3127
+ mobileCopilotQChatDatasource = "mobileCopilotQChatDatasource",
3111
3128
  /** 移动端微应用-自定义应用 */
3112
3129
  mobileCopilotAgent = "mobileCopilotAgent",
3113
3130
  /** 移动端微应用-小Q发现 */
@@ -3443,6 +3460,19 @@ declare module '@quickbi/bi-types/router/route-tree' {
3443
3460
  readonly key: RouteKey.orgGlobalConfig;
3444
3461
  readonly path: "/org/admin/copilot/globalConfig";
3445
3462
  }];
3463
+ }, {
3464
+ readonly key: RouteKey.orgAdminCopilotQueryAgent;
3465
+ readonly path: "/org/admin/copilot/queryAgent";
3466
+ readonly children: [{
3467
+ readonly key: RouteKey.orgQueryAgentAnalysisThemeManage;
3468
+ readonly path: "/org/admin/copilot/queryAgent/analysisThemeManage";
3469
+ }, {
3470
+ readonly key: RouteKey.orgQueryAgentAnalysisThemeAuth;
3471
+ readonly path: "/org/admin/copilot/queryAgent/orgAnalysisThemeAuth";
3472
+ }, {
3473
+ readonly key: RouteKey.orgQueryAgentKnowledgeBaseManage;
3474
+ readonly path: "/org/admin/copilot/queryAgent/orgKnowledgeBaseManage";
3475
+ }];
3446
3476
  }, {
3447
3477
  readonly key: RouteKey.orgAdminQMessage;
3448
3478
  readonly path: "/org/admin/qMessage";
@@ -3794,6 +3824,13 @@ declare module '@quickbi/bi-types/router/route-tree' {
3794
3824
  }, {
3795
3825
  readonly key: RouteKey.copilotPageQChat;
3796
3826
  readonly path: "/copilotPage/qChat";
3827
+ readonly children: [{
3828
+ readonly key: RouteKey.copilotPageQChatCube;
3829
+ readonly path: "/copilotPage/qChat/cube";
3830
+ }, {
3831
+ readonly key: RouteKey.copilotPageQChatDatasource;
3832
+ readonly path: "/copilotPage/qChat/datasource";
3833
+ }];
3797
3834
  }, {
3798
3835
  readonly key: RouteKey.copilotPageQInsight;
3799
3836
  readonly path: "/copilotPage/qInsight";
@@ -4049,6 +4086,13 @@ declare module '@quickbi/bi-types/router/route-tree' {
4049
4086
  readonly children: [{
4050
4087
  readonly key: RouteKey.mobileCopilotQChat;
4051
4088
  readonly path: "/copilot/qChat";
4089
+ readonly children: [{
4090
+ readonly key: RouteKey.mobileCopilotQChatCube;
4091
+ readonly path: "/copilot/qChat/cube";
4092
+ }, {
4093
+ readonly key: RouteKey.mobileCopilotQChatDatasource;
4094
+ readonly path: "/copilot/qChat/datasource";
4095
+ }];
4052
4096
  }, {
4053
4097
  readonly key: RouteKey.mobileCopilotAgent;
4054
4098
  readonly path: "/copilot/agent/:id";
@@ -4263,6 +4307,8 @@ declare module '@quickbi/bi-types/permission-type' {
4263
4307
  llmCube = "llmCube",
4264
4308
  /** 大模型数据集主题 */
4265
4309
  llmCubeTheme = "llmCubeTheme",
4310
+ /** 大模型数据源主题 */
4311
+ copilotExplorerTheme = "copilotExplorerTheme",
4266
4312
  /** 仪表板问数 */
4267
4313
  dashboardNl2sql = "dashboardNl2sql",
4268
4314
  /** 资源包管理 */
@@ -5799,9 +5845,10 @@ declare module '@quickbi/bi-types/data-panel/data-schema' {
5799
5845
 
5800
5846
  declare module '@quickbi/bi-types/cube/cube-model' {
5801
5847
  /**
5802
- * @author 无愚
5848
+ * @author 嘉念
5803
5849
  * @description 数据集接口模型
5804
5850
  */
5851
+ import type { FieldExpressionModel } from '@quickbi/bi-types/cube/cube-field-expression';
5805
5852
  import type { DsCreateOriginEnum, DsType, DataLoadMode } from '@quickbi/bi-types/cube/data-source';
5806
5853
  export enum CustomAreaType {
5807
5854
  /** 自定义地理信息 */
@@ -5867,7 +5914,7 @@ declare module '@quickbi/bi-types/cube/cube-model' {
5867
5914
  Table = "table",
5868
5915
  /** 自定义SQL */
5869
5916
  Sql = "sql",
5870
- /** 上传文件(探索空间 & 数据库)、API数据源、钉钉表格、飞书多维表格、飞书表格 */
5917
+ /** 上传文件(探索空间 & 数据库)、API数据源、文档数据源 */
5871
5918
  File = "file"
5872
5919
  }
5873
5920
  /** 表模型 */
@@ -6217,8 +6264,6 @@ declare module '@quickbi/bi-types/cube/cube-model' {
6217
6264
  * lnglatGroup: 经纬度组
6218
6265
  * */
6219
6266
  export type TreeNodeTypes = 'folder' | 'hierarchy' | 'attribute' | 'dimensionGroup' | 'measureGroup' | 'lnglatGroup';
6220
- /** 分组字段类型 */
6221
- export type GroupType = 'NormalGroup' | 'ListGroup' | 'CustomizedGroup';
6222
6267
  /** 占位符类型 */
6223
6268
  export enum ParamStyleType {
6224
6269
  /** 条件占位符 */
@@ -6230,34 +6275,6 @@ declare module '@quickbi/bi-types/cube/cube-model' {
6230
6275
  /** 加速占位符 */
6231
6276
  accelerate = "accelerate"
6232
6277
  }
6233
- /** 数值-自定义分组类型 */
6234
- export type CustomizedGroup = {
6235
- /** 是否是默认分组字段 */
6236
- groupName: string;
6237
- defaultGroup: boolean;
6238
- lower: string;
6239
- upper: string;
6240
- lowerOperator: 'isNull' | 'greaterThan' | 'greaterThanOrEqualTo';
6241
- upperOperator: 'lessThan' | 'lessThanOrEqualTo';
6242
- groupNameType: any;
6243
- };
6244
- /** 枚举-列表分组类型 */
6245
- export type ListGrouping = {
6246
- groupName: string;
6247
- groupElementList: string[];
6248
- defaultGroup: boolean;
6249
- };
6250
- /** 日期类型-自定义区间分组 */
6251
- export type NormalGroup = {
6252
- groupName: string;
6253
- defaultGroup: boolean;
6254
- lower: string;
6255
- upper: string;
6256
- lowerOperator: 'greaterThanOrEqualTo';
6257
- upperOperator: 'lessThanOrEqualTo';
6258
- };
6259
- /** 分组字段 */
6260
- export type Groups = CustomizedGroup[] | ListGrouping[] | NormalGroup[];
6261
6278
  /** 空值展示配置类型 */
6262
6279
  export enum EmptyValueType {
6263
6280
  /** 空值 */
@@ -6331,8 +6348,8 @@ declare module '@quickbi/bi-types/cube/cube-model' {
6331
6348
  mult: string | null;
6332
6349
  /** 维度、粒度 */
6333
6350
  granularity: DateGranularity | RegionGranularity | null;
6334
- /** 计算字段、分组字段 */
6335
- expression?: Expression;
6351
+ /** 字段表达式模型 */
6352
+ expression?: FieldExpressionModel;
6336
6353
  /** 标记数据面板上的字段、文件夹,和数据集原有的字段、文件夹区别开来 */
6337
6354
  fromPanel?: boolean;
6338
6355
  /** 老接口保留字段(计算字段expression中作为唯一标识使用),新数据跟uniqueId值相同 */
@@ -6371,30 +6388,6 @@ declare module '@quickbi/bi-types/cube/cube-model' {
6371
6388
  'min' = "min",
6372
6389
  'avg' = "avg"
6373
6390
  }
6374
- export interface Expression {
6375
- type: 'dataGroup' | 'udf' | 'system';
6376
- value?: string;
6377
- /** 分组字段配置 */
6378
- dataGroup: {
6379
- /** 唯一标识 */
6380
- uniqueId: string;
6381
- /** 分组名称 */
6382
- caption: string;
6383
- /** 分组类型 */
6384
- groupType: GroupType;
6385
- refUniqueId: string;
6386
- /** qa中使用。qbi目前用不到 */
6387
- refSql?: string;
6388
- /** qa中使用。qbi目前用不到 */
6389
- refFunction?: string;
6390
- /** 数值类型分组字段 */
6391
- customizedGroups?: CustomizedGroup[];
6392
- /** 字符串类型分组字段 */
6393
- listGroupings?: ListGrouping[];
6394
- /** 日期类型分组字段 */
6395
- normalGroups?: NormalGroup[];
6396
- };
6397
- }
6398
6391
  export class FilterAttr {
6399
6392
  logicalOperator: 'and' | 'or';
6400
6393
  /** 过滤值 */
@@ -6609,56 +6602,97 @@ declare module '@quickbi/bi-types/cube/data-source' {
6609
6602
  file = "file",
6610
6603
  clivia = "clivia",
6611
6604
  quickindex = "quickindex",
6605
+ /** API数据源 */
6612
6606
  api_datasource = "api_datasource",
6607
+ /** MaxCompute */
6613
6608
  odps = "odps",
6614
6609
  maxcompute = "maxcompute",
6610
+ /** Mysql */
6615
6611
  mysql = "mysql",
6612
+ /** Alibaba HybridDB for MySQL */
6616
6613
  hybrid_mysql = "hybrid_mysql",
6614
+ /** AnalyticDB MySQL版2.0 */
6617
6615
  garuda = "garuda",
6616
+ /** SQLServer */
6618
6617
  sqlserver = "sqlserver",
6618
+ /** AnalyticDB PostgreSQL版 */
6619
6619
  greenplum = "greenplum",
6620
+ /** PolarDB PostgreSQL版(兼容Oracle) */
6620
6621
  ppas = "ppas",
6622
+ /** Oracle */
6621
6623
  oracle = "oracle",
6624
+ /** PostgreSQL */
6622
6625
  postgresql = "postgresql",
6626
+ /** Hive */
6623
6627
  hive = "hive",
6628
+ /** Vertica */
6624
6629
  vertica = "vertica",
6630
+ /** IBM DB2 LUW */
6625
6631
  db2 = "db2",
6626
6632
  db2_v10 = "db2_v10",
6633
+ /** SAP IQ (Sybase IQ) */
6627
6634
  sybase = "sybase",
6635
+ /** SAP HANA */
6628
6636
  hana = "hana",
6637
+ /** Data Lake Analytics */
6629
6638
  dla = "dla",
6639
+ /** 对象存储 OSS */
6630
6640
  oss = "oss",
6641
+ /** PolarDB分布式版 */
6631
6642
  drds = "drds",
6643
+ /** Presto */
6632
6644
  presto = "presto",
6645
+ /** AnalyticDB MySQL版3.0 */
6633
6646
  adb = "adb",
6634
6647
  adbSpark = "adb_spark",
6648
+ analyticdb_v3 = "analyticdb_v3",
6649
+ /** adb数据源后端是这样返回的 */
6650
+ analyticdb_v3_spark = "analyticdb_v3_spark",
6651
+ analyticdb = "analyticdb",
6652
+ /** PolarDB MySQL版 */
6635
6653
  polardb = "polardb",
6654
+ /** Impala */
6636
6655
  impala = "impala",
6637
6656
  /** impala3.0在数据集保存时会被后端替换成v3 兼容 */
6638
6657
  impala_v3 = "impala_v3",
6658
+ /** 不清楚来源 */
6639
6659
  multiDatasource = "multiDatasource",
6660
+ /** Alibaba TSDB */
6640
6661
  tsdb = "tsdb",
6662
+ /** Hbase 旧版 */
6641
6663
  hbase = "hbase",
6664
+ /** Hbase 新版 */
6665
+ phoenix_thin = "phoenix_thin",
6666
+ /** Dataphin */
6642
6667
  dataphin = "dataphin",
6643
6668
  dataphin_odps = "dataphin_odps",
6644
6669
  dataphin_hive = "dataphin_hive",
6645
6670
  dataphin_v2_odps = "dataphin_v2_odps",
6646
6671
  dataphin_v2_hive = "dataphin_v2_hive",
6672
+ dataphin_jdbc = "dataphin_jdbc",
6673
+ /** Kingbase */
6647
6674
  kbase = "kbase",
6675
+ /** ClickHouse */
6648
6676
  clickhouse = "clickhouse",
6677
+ /** Gbase 8a */
6649
6678
  gbase = "gbase",
6679
+ /** PolarDB PostgreSQL版 */
6650
6680
  polardb_pg = "polardb_pg",
6681
+ /** Hologres */
6651
6682
  hologres = "hologres",
6683
+ /** 没见过,以前雅影加的 */
6652
6684
  teradata = "teradata",
6685
+ /** Spark SQL */
6653
6686
  spark_sql = "spark_sql",
6687
+ /** DingTalk 芃阳加的 */
6654
6688
  dingtalk = "dingtalk",
6655
- analyticdb_v3 = "analyticdb_v3",
6656
- /** adb数据源后端是这样返回的 */
6657
- analyticdb_v3_spark = "analyticdb_v3_spark",
6658
- analyticdb = "analyticdb",
6689
+ /** Elasticsearch */
6659
6690
  elasticsearch = "elasticsearch",
6691
+ /** StarRocks */
6660
6692
  starrocks = "starrocks",
6693
+ /** Apache Doris */
6661
6694
  apache_doris = "apache_doris",
6695
+ /** Relyt */
6662
6696
  relyt = "relyt",
6663
6697
  /** 旧版数据源 */
6664
6698
  datalake_analytics = "datalake_analytics",
@@ -6666,11 +6700,12 @@ declare module '@quickbi/bi-types/cube/data-source' {
6666
6700
  phoenix = "phoenix",
6667
6701
  /** 旧版数据源 */
6668
6702
  mysql_hybrid = "mysql_hybrid",
6703
+ /** API数据源直连 */
6669
6704
  api_datasource_realtime = "api_datasource_realtime",
6705
+ /** OceanBase Oracle */
6670
6706
  oceanbase_oracle = "oceanbase_oracle",
6707
+ /** OceanBase Mysql */
6671
6708
  oceanbase_mysql = "oceanbase_mysql",
6672
- /** 飞书多维表格 */
6673
- feishu_bitable = "feishu_bitable",
6674
6709
  /** 多模sql */
6675
6710
  lindormMultiMode = "lindorm_multi_mode",
6676
6711
  /** 宽表引擎 */
@@ -6679,8 +6714,16 @@ declare module '@quickbi/bi-types/cube/data-source' {
6679
6714
  lindormTsdb = "lindorm_tsdb",
6680
6715
  /** lindorm 全部 */
6681
6716
  lindormAll = "lindorm_all",
6717
+ /** lindorm的多模sql */
6718
+ sql_engine = "sql_engine",
6719
+ /** lindorm 宽表引擎 */
6720
+ width_table = "width_table",
6721
+ /** 飞书多维表格 */
6722
+ feishu_bitable = "feishu_bitable",
6682
6723
  /** 飞书电子表格 */
6683
6724
  feishu_spreadsheet = "feishu_spreadsheet",
6725
+ /** 钉钉AI表格(多维表格) */
6726
+ dingtalk_ai_table = "dingtalk_ai_table",
6684
6727
  /** 钉钉电子表格 */
6685
6728
  dingtalk_spreadsheet = "dingtalk_spreadsheet",
6686
6729
  /** 瓴羊one */
@@ -6689,19 +6732,52 @@ declare module '@quickbi/bi-types/cube/data-source' {
6689
6732
  customDs = "customDs",
6690
6733
  /** tidb表 */
6691
6734
  tidb = "tidb",
6692
- /** mariadb */
6735
+ /** mariadb */
6693
6736
  mariadb = "mariadb",
6737
+ /** Greenplum */
6694
6738
  greenplum_v6 = "greenplum_v6",
6739
+ /** Aurora MySQL */
6695
6740
  aurora_mysql = "aurora_mysql",
6741
+ /** Aurora PostgreSQL */
6696
6742
  aurora_postgresql = "aurora_postgresql",
6743
+ /** Aloudata CAN */
6697
6744
  aloudata_can = "aloudata_can",
6745
+ /** 神通 */
6698
6746
  oscar = "oscar",
6747
+ /** DMS */
6699
6748
  dms = "dms",
6749
+ /** SelectDB */
6700
6750
  selectdb = "selectdb",
6751
+ /** Databricks */
6701
6752
  databricks = "databricks",
6753
+ /** BigQuery */
6702
6754
  bigquery = "bigquery",
6755
+ /** Amazon Athena */
6703
6756
  athena = "athena",
6704
- yida = "yida"
6757
+ /** 宜搭 */
6758
+ yida = "yida",
6759
+ /** EMR Serverless Spark 版 */
6760
+ emr_spark = "emr_spark",
6761
+ /** Snowflake */
6762
+ snowflake = "snowflake",
6763
+ /** Kylin */
6764
+ kylin = "kylin",
6765
+ /** RedShift */
6766
+ redshift = "redshift",
6767
+ /** GaussDB */
6768
+ gaussdb = "gaussdb",
6769
+ /** GaussDB(DWS) */
6770
+ gaussdb_dws = "gaussdb_dws",
6771
+ /** TDSQL-H LibraDB */
6772
+ tdsql = "tdsql",
6773
+ /** MongoDB */
6774
+ mongodb = "mongodb",
6775
+ /** Unicorn */
6776
+ unicorn = "unicorn",
6777
+ /** 达梦 */
6778
+ dm = "dm",
6779
+ /** 日志服务SLS */
6780
+ sls = "sls"
6705
6781
  }
6706
6782
  export enum AcrossDsType {
6707
6783
  UN_SET,
@@ -6736,12 +6812,14 @@ declare module '@quickbi/bi-types/cube/data-source' {
6736
6812
  FEI_SHU_BITABLE = 3,
6737
6813
  /** 飞书 - 电子表格 */
6738
6814
  FEI_SHU_SPREADSHEET = 4,
6815
+ /** 钉钉 - AI表格(多维表格) */
6816
+ DING_TALK_AI_TABLE = 5,
6739
6817
  /** 钉钉 - 电子表格 */
6740
- DING_TALK_SPREADSHEET = 5,
6818
+ DING_TALK_SPREADSHEET = 6,
6741
6819
  /** 瓴羊one */
6742
- LING_YANG_ONE = 6,
6820
+ LING_YANG_ONE = 7,
6743
6821
  /** 其他类型的数据源 按返回的顺序排序在后面 */
6744
- OTHER_DATASOURCE = 7
6822
+ OTHER_DATASOURCE = 8
6745
6823
  }
6746
6824
  /** 数据源类型 */
6747
6825
  export enum DataSourcesConfigId {
@@ -6854,6 +6932,186 @@ declare module '@quickbi/bi-types/cube/table-schema' {
6854
6932
  }
6855
6933
  }
6856
6934
 
6935
+ declare module '@quickbi/bi-types/cube/cube-field-expression' {
6936
+ /**
6937
+ * @author 嘉念
6938
+ * @description 数据集字段表达式模型
6939
+ */
6940
+ export enum FieldExpressionType {
6941
+ /** 分组字段 */
6942
+ dataGroup = "dataGroup",
6943
+ /** 计算字段 */
6944
+ udf = "udf",
6945
+ /** lod字段 */
6946
+ system = "system",
6947
+ /** 工具栏字段(时间差字段、缺失值替换字段、新增别名字段、拆分列字段、合并字段) */
6948
+ tool = "tool"
6949
+ }
6950
+ /** 工具栏字段类型 */
6951
+ export enum ToolFieldType {
6952
+ /** 时间差字段 */
6953
+ DateDifference = "dateDifference",
6954
+ /** 缺失值替换字段 */
6955
+ MissingValueReplacement = "missingValueReplacement",
6956
+ /** 维度别名字段 */
6957
+ ValueReplacement = "valueReplacement",
6958
+ /** 拆分列字段 */
6959
+ SplitField = "SplitField",
6960
+ /** 合并字段 */
6961
+ MergeField = "mergeField"
6962
+ }
6963
+ /** 时间差字段配置 */
6964
+ export interface DateDiffFieldConfig {
6965
+ /** 开始字段 */
6966
+ firstField: string;
6967
+ /** 结束字段 */
6968
+ endField: string;
6969
+ /** 时间单位 */
6970
+ timeUnit: string;
6971
+ }
6972
+ /** 维值替换字段配置 */
6973
+ export interface ReplaceDimValueFieldConfig {
6974
+ /** 引用字段Id */
6975
+ refUniqueId: string;
6976
+ /** 替换维值列表 */
6977
+ replaceElementList: {
6978
+ /** 原始值 */
6979
+ originalValue: string;
6980
+ /** 替换值 */
6981
+ value: string;
6982
+ }[];
6983
+ }
6984
+ /** 缺失值替换字段配置 */
6985
+ export interface MissingValueReplaceFieldConfig {
6986
+ /** 引用字段Id */
6987
+ refUniqueId: string;
6988
+ /** 替换空值 */
6989
+ replaceNullValue: boolean;
6990
+ /** 替换空白值 */
6991
+ replaceBlankValue: boolean;
6992
+ /** 替换值 */
6993
+ value: string;
6994
+ }
6995
+ /** 拆分列字段配置 */
6996
+ export interface SplitColumnFieldConfig {
6997
+ /** 引用字段Id */
6998
+ refUniqueId: string;
6999
+ /** 分隔符 */
7000
+ delimiter: string;
7001
+ /** 是否是第N列拆分字段 */
7002
+ firstN: boolean;
7003
+ /** 拆分字符数 */
7004
+ splitNumber: number;
7005
+ /** 拆分索引 */
7006
+ splitIndex: number;
7007
+ }
7008
+ /** 合并字段配置 */
7009
+ export interface MergeFieldsFieldConfig {
7010
+ /** 连接符 */
7011
+ delimiter: string;
7012
+ /** 合并字段id列表 */
7013
+ mergeElementList: string[];
7014
+ }
7015
+ export interface ToolFieldConfig {
7016
+ /** 唯一标识 */
7017
+ uniqueId: string;
7018
+ /** 字段名称 */
7019
+ caption: string;
7020
+ /** 工具栏类型 */
7021
+ toolType: ToolFieldType;
7022
+ /** 时间差字段配置 */
7023
+ dateDiffItem: DateDiffFieldConfig;
7024
+ /** 新增别名字段配置 */
7025
+ replaceItem: ReplaceDimValueFieldConfig;
7026
+ /** 缺失值替换字段配置 */
7027
+ missingReplaceItem: MissingValueReplaceFieldConfig;
7028
+ /** 拆分列字段配置 */
7029
+ splitItem: SplitColumnFieldConfig;
7030
+ /** 合并字段配置 */
7031
+ mergeItem: MergeFieldsFieldConfig;
7032
+ }
7033
+ /** 分组字段类型 */
7034
+ export enum GroupType {
7035
+ /** 日期类型-自定义区间分组 */
7036
+ NormalGroup = "NormalGroup",
7037
+ /** 枚举-列表分组类型 */
7038
+ ListGroup = "ListGroup",
7039
+ /** 数值-自定义分组类型 */
7040
+ CustomizedGroup = "CustomizedGroup"
7041
+ }
7042
+ /** 分组字段操作符 */
7043
+ export enum GroupOperator {
7044
+ /** 小于 */
7045
+ LessThan = "lessThan",
7046
+ /** 小于等于 */
7047
+ LessThanOrEqualTo = "lessThanOrEqualTo",
7048
+ /** 大于 */
7049
+ GreaterThan = "greaterThan",
7050
+ /** 大于等于 */
7051
+ GreaterThanOrEqualTo = "greaterThanOrEqualTo",
7052
+ /** 为空 */
7053
+ IsNull = "isNull"
7054
+ }
7055
+ /** 数值-自定义分组类型 */
7056
+ export type CustomizedGroup = {
7057
+ /** 是否是默认分组字段 */
7058
+ groupName: string;
7059
+ defaultGroup: boolean;
7060
+ lower: string;
7061
+ upper: string;
7062
+ lowerOperator: GroupOperator.IsNull | GroupOperator.GreaterThan | GroupOperator.GreaterThanOrEqualTo;
7063
+ upperOperator: GroupOperator.LessThan | GroupOperator.LessThanOrEqualTo;
7064
+ groupNameType: any;
7065
+ };
7066
+ /** 枚举-列表分组类型 */
7067
+ export type ListGrouping = {
7068
+ groupName: string;
7069
+ groupElementList: string[];
7070
+ defaultGroup: boolean;
7071
+ };
7072
+ /** 日期类型-自定义区间分组 */
7073
+ export type NormalGroup = {
7074
+ groupName: string;
7075
+ defaultGroup: boolean;
7076
+ lower: string;
7077
+ upper: string;
7078
+ lowerOperator: GroupOperator.GreaterThanOrEqualTo;
7079
+ upperOperator: GroupOperator.LessThanOrEqualTo;
7080
+ };
7081
+ /** 分组字段 */
7082
+ export type Groups = CustomizedGroup[] | ListGrouping[] | NormalGroup[];
7083
+ export interface GroupFieldConfig {
7084
+ /** 唯一标识 */
7085
+ uniqueId: string;
7086
+ /** 分组名称 */
7087
+ caption: string;
7088
+ /** 分组类型 */
7089
+ groupType: GroupType;
7090
+ refUniqueId: string;
7091
+ /** qa中使用。qbi目前用不到 */
7092
+ refSql?: string;
7093
+ /** qa中使用。qbi目前用不到 */
7094
+ refFunction?: string;
7095
+ /** 数值类型分组字段 */
7096
+ customizedGroups?: CustomizedGroup[];
7097
+ /** 字符串类型分组字段 */
7098
+ listGroupings?: ListGrouping[];
7099
+ /** 日期类型分组字段 */
7100
+ normalGroups?: NormalGroup[];
7101
+ }
7102
+ /**
7103
+ * 原先计算字段、分组字段存储配置的模型,v6.0.2新增:时间差字段、缺失值替换字段、新增别名字段、拆分列字段、合并字段
7104
+ */
7105
+ export interface FieldExpressionModel {
7106
+ type: FieldExpressionType;
7107
+ value?: string;
7108
+ /** 分组字段配置 */
7109
+ dataGroup: GroupFieldConfig;
7110
+ /** 工具栏字段配置 */
7111
+ tool?: ToolFieldConfig;
7112
+ }
7113
+ }
7114
+
6857
7115
  declare module '@quickbi/bi-types/cube/cube-blend' {
6858
7116
  /**
6859
7117
  * @author 雅影