smartbi-toolkit 1.1.0 → 1.1.2

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.
Files changed (64) hide show
  1. package/README.md +86 -10
  2. package/package.json +8 -2
  3. package/dist/index.d.ts +0 -22
  4. package/dist/index.js +0 -99
  5. package/dist/main.d.ts +0 -1
  6. package/dist/main.js +0 -18
  7. package/dist/methods/AnalysisReportService.d.ts +0 -93
  8. package/dist/methods/AnalysisReportService.js +0 -126
  9. package/dist/methods/BusinessThemeService.d.ts +0 -8
  10. package/dist/methods/BusinessThemeService.js +0 -11
  11. package/dist/methods/BusinessViewService.d.ts +0 -94
  12. package/dist/methods/BusinessViewService.js +0 -120
  13. package/dist/methods/CatalogService.d.ts +0 -182
  14. package/dist/methods/CatalogService.js +0 -224
  15. package/dist/methods/ClientCombinedReportService.d.ts +0 -63
  16. package/dist/methods/ClientCombinedReportService.js +0 -82
  17. package/dist/methods/ClientInsightService.d.ts +0 -83
  18. package/dist/methods/ClientInsightService.js +0 -107
  19. package/dist/methods/ClientReportService.d.ts +0 -162
  20. package/dist/methods/ClientReportService.js +0 -206
  21. package/dist/methods/CombinedReportService.d.ts +0 -7
  22. package/dist/methods/CombinedReportService.js +0 -10
  23. package/dist/methods/DataSourceService.d.ts +0 -178
  24. package/dist/methods/DataSourceService.js +0 -220
  25. package/dist/methods/GraphicReportService.d.ts +0 -6
  26. package/dist/methods/GraphicReportService.js +0 -10
  27. package/dist/methods/InsightReport.d.ts +0 -71
  28. package/dist/methods/InsightReport.js +0 -98
  29. package/dist/methods/MetadataService.d.ts +0 -37
  30. package/dist/methods/MetadataService.js +0 -47
  31. package/dist/methods/OfficeReport.d.ts +0 -49
  32. package/dist/methods/OfficeReport.js +0 -65
  33. package/dist/methods/OfficeReportService.d.ts +0 -36
  34. package/dist/methods/OfficeReportService.js +0 -46
  35. package/dist/methods/OltpMetadataService.d.ts +0 -19
  36. package/dist/methods/OltpMetadataService.js +0 -25
  37. package/dist/methods/ParameterService.d.ts +0 -12
  38. package/dist/methods/ParameterService.js +0 -18
  39. package/dist/methods/PoolService.d.ts +0 -11
  40. package/dist/methods/PoolService.js +0 -17
  41. package/dist/methods/PortalService.d.ts +0 -66
  42. package/dist/methods/PortalService.js +0 -89
  43. package/dist/methods/Report.d.ts +0 -178
  44. package/dist/methods/Report.js +0 -230
  45. package/dist/methods/SSReport.d.ts +0 -86
  46. package/dist/methods/SSReport.js +0 -114
  47. package/dist/methods/ScheduleTaskService.d.ts +0 -12
  48. package/dist/methods/ScheduleTaskService.js +0 -18
  49. package/dist/methods/SimpleReportService.d.ts +0 -12
  50. package/dist/methods/SimpleReportService.js +0 -18
  51. package/dist/methods/SpreadSheetReportService.d.ts +0 -43
  52. package/dist/methods/SpreadSheetReportService.js +0 -55
  53. package/dist/methods/SystemConfigService.d.ts +0 -28
  54. package/dist/methods/SystemConfigService.js +0 -24
  55. package/dist/methods/TimeConsuming.d.ts +0 -6
  56. package/dist/methods/TimeConsuming.js +0 -9
  57. package/dist/methods/TimeConsumingService.d.ts +0 -5
  58. package/dist/methods/TimeConsumingService.js +0 -9
  59. package/dist/methods/UserManagerService.d.ts +0 -258
  60. package/dist/methods/UserManagerService.js +0 -332
  61. package/dist/types.d.ts +0 -442
  62. package/dist/types.js +0 -125
  63. package/dist/vite-plugin-smartbi/index.d.ts +0 -36
  64. package/dist/vite-plugin-smartbi/index.js +0 -107
@@ -1,83 +0,0 @@
1
- import type { NameValuePair, ReportData, SystemConfig } from '../types';
2
- /**
3
- * 清空透视分析临时表
4
- * @returns 无返回值
5
- */
6
- export declare const cleanTempTablePool: () => Promise<void>;
7
- /**
8
- * 打开透视分析
9
- * @param reportId 报表Id
10
- * @param pageId 页面Id
11
- * @returns 返回JSON对象
12
- */
13
- export declare const openQuery: (reportId: string, pageId: string) => Promise<any>;
14
- /**
15
- * 获取参数备选值
16
- * @param panelId 参数面板ClientId
17
- * @param paramId 参数Id
18
- * @returns 返回键值对列表
19
- */
20
- export declare const getParamStandbyValue: (panelId: string, paramId: string) => Promise<NameValuePair[]>;
21
- /**
22
- * 根据参数Id获取参数默认值
23
- * @param panelId 参数面板ClientId
24
- * @param paramId 参数Id
25
- * @returns 返回JSON数组
26
- */
27
- export declare const getParamDefaultValueByPID: (panelId: string, paramId: string) => Promise<any[]>;
28
- /**
29
- * 设置参数值
30
- * @param panelId 参数面板ClientId
31
- * @param paramId 参数Id
32
- * @param value 参数真实值
33
- * @param displayValue 参数显示值
34
- * @returns 无返回值
35
- */
36
- export declare const setParamValue: (panelId: string, paramId: string, value: string, displayValue: string) => Promise<void>;
37
- /**
38
- * 关闭透视分析
39
- * @param clientId clientId
40
- * @returns 无返回值
41
- */
42
- export declare const close: (clientId: string) => Promise<void>;
43
- /**
44
- * 创建透视分析
45
- * @param businessViewId 业务查询ID
46
- * @param name 名称
47
- * @param alias 别名
48
- * @param desc 描述
49
- * @param folderId 保存目录的ID
50
- * @returns 返回透视分析ID
51
- */
52
- export declare const createInsightQuery: (businessViewId: string, name: string, alias: string, desc: string, folderId: string) => Promise<string>;
53
- /**
54
- * 重新获取报表对象的当前状态
55
- * @param clientId clientId
56
- * @returns 返回查询结果JSON对象
57
- */
58
- export declare const getInsightQuery: (clientId: string) => Promise<any>;
59
- /**
60
- * 获取透视分析系统选项导出使用缓存默认值
61
- * @returns 返回systemconfig
62
- */
63
- export declare const getExportWithCacheConfig: () => Promise<SystemConfig>;
64
- /**
65
- * 获取原始报表数据
66
- * @param clientId 客户端ID
67
- * @param pageNum 页码
68
- * @returns 返回原始报表数据
69
- */
70
- export declare const getRawReportData: (clientId: string, pageNum: number) => Promise<ReportData>;
71
- /**
72
- * 取得一个表达式的值
73
- * @param clientId 客户ID
74
- * @param func 表达式
75
- * @returns 返回表达式的值
76
- */
77
- export declare const getFunctionValue: (clientId: string, func: string) => Promise<string>;
78
- /**
79
- * 取得clientConfig
80
- * @param clientId 客户ID
81
- * @returns 返回clientConfig
82
- */
83
- export declare const getClientConfig: (clientId: string) => Promise<string>;
@@ -1,107 +0,0 @@
1
- import { smartbi } from "../index";
2
- /**
3
- * 清空透视分析临时表
4
- * @returns 无返回值
5
- */
6
- export const cleanTempTablePool = () => {
7
- return smartbi('ClientInsightService', 'cleanTempTablePool', []);
8
- };
9
- /**
10
- * 打开透视分析
11
- * @param reportId 报表Id
12
- * @param pageId 页面Id
13
- * @returns 返回JSON对象
14
- */
15
- export const openQuery = (reportId, pageId) => {
16
- return smartbi('ClientInsightService', 'openQuery', [reportId, pageId]);
17
- };
18
- /**
19
- * 获取参数备选值
20
- * @param panelId 参数面板ClientId
21
- * @param paramId 参数Id
22
- * @returns 返回键值对列表
23
- */
24
- export const getParamStandbyValue = (panelId, paramId) => {
25
- return smartbi('ClientInsightService', 'getParamStandbyValue', [panelId, paramId]);
26
- };
27
- /**
28
- * 根据参数Id获取参数默认值
29
- * @param panelId 参数面板ClientId
30
- * @param paramId 参数Id
31
- * @returns 返回JSON数组
32
- */
33
- export const getParamDefaultValueByPID = (panelId, paramId) => {
34
- return smartbi('ClientInsightService', 'getParamDefaultValueByPID', [panelId, paramId]);
35
- };
36
- /**
37
- * 设置参数值
38
- * @param panelId 参数面板ClientId
39
- * @param paramId 参数Id
40
- * @param value 参数真实值
41
- * @param displayValue 参数显示值
42
- * @returns 无返回值
43
- */
44
- export const setParamValue = (panelId, paramId, value, displayValue) => {
45
- return smartbi('ClientInsightService', 'setParamValue', [panelId, paramId, value, displayValue]);
46
- };
47
- /**
48
- * 关闭透视分析
49
- * @param clientId clientId
50
- * @returns 无返回值
51
- */
52
- export const close = (clientId) => {
53
- return smartbi('ClientInsightService', 'close', [clientId]);
54
- };
55
- /**
56
- * 创建透视分析
57
- * @param businessViewId 业务查询ID
58
- * @param name 名称
59
- * @param alias 别名
60
- * @param desc 描述
61
- * @param folderId 保存目录的ID
62
- * @returns 返回透视分析ID
63
- */
64
- export const createInsightQuery = (businessViewId, name, alias, desc, folderId) => {
65
- return smartbi('ClientInsightService', 'createInsightQuery', [businessViewId, name, alias, desc, folderId]);
66
- };
67
- /**
68
- * 重新获取报表对象的当前状态
69
- * @param clientId clientId
70
- * @returns 返回查询结果JSON对象
71
- */
72
- export const getInsightQuery = (clientId) => {
73
- return smartbi('ClientInsightService', 'getInsightQuery', [clientId]);
74
- };
75
- /**
76
- * 获取透视分析系统选项导出使用缓存默认值
77
- * @returns 返回systemconfig
78
- */
79
- export const getExportWithCacheConfig = () => {
80
- return smartbi('ClientInsightService', 'getExportWithCacheConfig', []);
81
- };
82
- /**
83
- * 获取原始报表数据
84
- * @param clientId 客户端ID
85
- * @param pageNum 页码
86
- * @returns 返回原始报表数据
87
- */
88
- export const getRawReportData = (clientId, pageNum) => {
89
- return smartbi('ClientInsightService', 'getRawReportData', [clientId, pageNum]);
90
- };
91
- /**
92
- * 取得一个表达式的值
93
- * @param clientId 客户ID
94
- * @param func 表达式
95
- * @returns 返回表达式的值
96
- */
97
- export const getFunctionValue = (clientId, func) => {
98
- return smartbi('ClientInsightService', 'getFunctionValue', [clientId, func]);
99
- };
100
- /**
101
- * 取得clientConfig
102
- * @param clientId 客户ID
103
- * @returns 返回clientConfig
104
- */
105
- export const getClientConfig = (clientId) => {
106
- return smartbi('ClientInsightService', 'getClientConfig', [clientId]);
107
- };
@@ -1,162 +0,0 @@
1
- import type { AggregateType, ClientReportView, CustomFilterDataBean, OperatorType, OrderType, ReportData } from '../types';
2
- /**
3
- * 打开一个报表
4
- * @param queryId 报表ID
5
- * @returns 返回打开的报表视图
6
- */
7
- export declare const openQuery: (queryId: string) => Promise<ClientReportView>;
8
- /**
9
- * 打开一个报表(不初始化)
10
- * @param queryId 报表ID
11
- * @returns 返回打开的报表视图
12
- */
13
- export declare const openQueryWithoutInit: (queryId: string) => Promise<ClientReportView>;
14
- /**
15
- * 取得一个表达式的值
16
- * @param clientId 客户ID
17
- * @param func 表达式
18
- * @returns 表达式的值
19
- */
20
- export declare const getFunctionValue: (clientId: string, func: string) => Promise<string>;
21
- /**
22
- * 设置每页的行数
23
- * @param clientId 客户ID
24
- * @param rowsPerPage 每页行数
25
- * @returns 无返回值
26
- */
27
- export declare const setRowsPerPage: (clientId: string, rowsPerPage: number) => Promise<void>;
28
- /**
29
- * 获取每页的行数
30
- * @param clientId 客户ID
31
- * @returns 每页行数
32
- */
33
- export declare const getRowsPerPage: (clientId: string) => Promise<number>;
34
- /**
35
- * 执行报表(新接口)
36
- * @param clientId 客户ID
37
- * @returns 报表的总行数
38
- */
39
- export declare const executeQueryLong: (clientId: string) => Promise<number>;
40
- /**
41
- * 获得报表数据
42
- * @param clientId 客户ID
43
- * @param pageNum 报表页码,指定获取报表的第几页,从0算起
44
- * @returns 报表数据
45
- */
46
- export declare const getReportData: (clientId: string, pageNum: number) => Promise<ReportData>;
47
- /**
48
- * 获得原始报表数据
49
- * @param clientId 客户ID
50
- * @param pageNum 报表页码,指定获取报表的第几页,从0算起
51
- * @returns 原始报表数据
52
- */
53
- export declare const getRawReportData: (clientId: string, pageNum: number) => Promise<ReportData>;
54
- /**
55
- * 将报表信息从服务端的会话状态中清除
56
- * @param clientId 客户ID
57
- * @returns 无返回值
58
- */
59
- export declare const removeFromSession: (clientId: string) => Promise<void>;
60
- /**
61
- * 设置参数值
62
- * @param clientId 客户ID
63
- * @param paramId 参数ID
64
- * @param paramValue 参数值
65
- * @param paramDisplayValue 参数显示值
66
- * @returns 是否设置成功
67
- */
68
- export declare const setParamValue: (clientId: string, paramId: string, paramValue: string, paramDisplayValue: string) => Promise<boolean>;
69
- /**
70
- * 设置参数值(按名称)
71
- * @param clientId 客户ID
72
- * @param paramId 参数ID
73
- * @param paramValue 参数值
74
- * @param paramDisplayValue 参数显示值
75
- * @returns 是否设置成功
76
- */
77
- export declare const setParamValueByName: (clientId: string, paramId: string, paramValue: string, paramDisplayValue: string) => Promise<boolean>;
78
- /**
79
- * 获得某个参数的默认值
80
- * @param clientId 客户ID
81
- * @param paramId 参数ID
82
- * @returns 参数的默认值列表
83
- */
84
- export declare const getParamDefaultValue: (clientId: string, paramId: string) => Promise<string[]>;
85
- /**
86
- * 获得某个参数的候选值列表
87
- * @param clientId 客户ID
88
- * @param paramId 参数ID
89
- * @returns 参数的候选值列表
90
- */
91
- export declare const getParamStandbyValue: (clientId: string, paramId: string) => Promise<string[]>;
92
- /**
93
- * 设置报表的排序字段
94
- * @param clientId 客户ID
95
- * @param fieldId 字段ID
96
- * @param orderType 排序方式, ASC, DESC, NONE
97
- * @returns 是否设置成功
98
- */
99
- export declare const setOrderByType: (clientId: string, fieldId: string, orderType: OrderType | string) => Promise<boolean>;
100
- /**
101
- * 设置字段聚合方式
102
- * @param clientId 客户ID
103
- * @param fieldId 字段ID
104
- * @param aggregate 聚合方式 SUM, MIN, MAX, COUNT, DISTINCT_COUNT, AVG, NULL
105
- * @returns 是否设置成功
106
- */
107
- export declare const setFieldAggregate: (clientId: string, fieldId: string, aggregate: AggregateType | string) => Promise<boolean>;
108
- /**
109
- * 获取报表中某字段的所有可能值
110
- * @param clientId 客户ID
111
- * @param fieldId 字段ID
112
- * @returns 字段的所有可能值列表
113
- */
114
- export declare const getFieldDistinctValues: (clientId: string, fieldId: string) => Promise<string[]>;
115
- /**
116
- * 设置过滤条件
117
- * @param clientId 客户ID
118
- * @param fieldId 字段ID
119
- * @param operator 操作符
120
- * @param value 值
121
- * @returns 是否设置成功
122
- */
123
- export declare const setAutoCondition: (clientId: string, fieldId: string, operator: OperatorType | string, value: string) => Promise<boolean>;
124
- /**
125
- * 设置自定义过滤条件
126
- * @param clientId 客户ID
127
- * @param filterData 过滤条件数据
128
- * @returns 是否设置成功
129
- */
130
- export declare const setCustomCondition: (clientId: string, filterData: CustomFilterDataBean) => Promise<boolean>;
131
- /**
132
- * 设置客户端配置
133
- * @param clientId 客户ID
134
- * @param clientConfig 客户端配置
135
- * @returns 无返回值
136
- */
137
- export declare const setClientConfig: (clientId: string, clientConfig: string) => Promise<void>;
138
- /**
139
- * 克隆查询
140
- * @param clientId 客户ID
141
- * @param parentNodeId 父节点ID
142
- * * @param name 名称
143
- * @param alias 别名
144
- * @param desc 描述
145
- * @returns 新克隆的查询ID
146
- */
147
- export declare const cloneQuery: (clientId: string, parentNodeId: string, name: string, alias: string, desc: string) => Promise<string>;
148
- /**
149
- * 覆盖查询
150
- * @param clientId 客户ID
151
- * @param replacedReportId 被替换的报表ID
152
- * @param desc 描述
153
- * @returns 是否覆盖成功
154
- */
155
- export declare const overwriteQuery: (clientId: string, replacedReportId: string, desc: string) => Promise<boolean>;
156
- /**
157
- * 导出报表
158
- * @param clientId 客户ID
159
- * @param reportId 报表ID
160
- * @returns 无返回值
161
- */
162
- export declare const dump: (clientId: string, reportId: string) => Promise<void>;
@@ -1,206 +0,0 @@
1
- import { smartbi } from "../index";
2
- /**
3
- * 打开一个报表
4
- * @param queryId 报表ID
5
- * @returns 返回打开的报表视图
6
- */
7
- export const openQuery = (queryId) => {
8
- return smartbi('ClientReportService', 'openQuery', [queryId]);
9
- };
10
- /**
11
- * 打开一个报表(不初始化)
12
- * @param queryId 报表ID
13
- * @returns 返回打开的报表视图
14
- */
15
- export const openQueryWithoutInit = (queryId) => {
16
- return smartbi('ClientReportService', 'openQueryWithoutInit', [queryId]);
17
- };
18
- /**
19
- * 取得一个表达式的值
20
- * @param clientId 客户ID
21
- * @param func 表达式
22
- * @returns 表达式的值
23
- */
24
- export const getFunctionValue = (clientId, func) => {
25
- return smartbi('ClientReportService', 'getFunctionValue', [clientId, func]);
26
- };
27
- /**
28
- * 设置每页的行数
29
- * @param clientId 客户ID
30
- * @param rowsPerPage 每页行数
31
- * @returns 无返回值
32
- */
33
- export const setRowsPerPage = (clientId, rowsPerPage) => {
34
- return smartbi('ClientReportService', 'setRowsPerPage', [clientId, rowsPerPage]);
35
- };
36
- /**
37
- * 获取每页的行数
38
- * @param clientId 客户ID
39
- * @returns 每页行数
40
- */
41
- export const getRowsPerPage = (clientId) => {
42
- return smartbi('ClientReportService', 'getRowsPerPage', [clientId]);
43
- };
44
- /**
45
- * 执行报表(新接口)
46
- * @param clientId 客户ID
47
- * @returns 报表的总行数
48
- */
49
- export const executeQueryLong = (clientId) => {
50
- return smartbi('ClientReportService', 'executeQueryLong', [clientId]);
51
- };
52
- /**
53
- * 获得报表数据
54
- * @param clientId 客户ID
55
- * @param pageNum 报表页码,指定获取报表的第几页,从0算起
56
- * @returns 报表数据
57
- */
58
- export const getReportData = (clientId, pageNum) => {
59
- return smartbi('ClientReportService', 'getReportData', [clientId, pageNum]);
60
- };
61
- /**
62
- * 获得原始报表数据
63
- * @param clientId 客户ID
64
- * @param pageNum 报表页码,指定获取报表的第几页,从0算起
65
- * @returns 原始报表数据
66
- */
67
- export const getRawReportData = (clientId, pageNum) => {
68
- return smartbi('ClientReportService', 'getRawReportData', [clientId, pageNum]);
69
- };
70
- /**
71
- * 将报表信息从服务端的会话状态中清除
72
- * @param clientId 客户ID
73
- * @returns 无返回值
74
- */
75
- export const removeFromSession = (clientId) => {
76
- return smartbi('ClientReportService', 'removeFromSession', [clientId]);
77
- };
78
- /**
79
- * 设置参数值
80
- * @param clientId 客户ID
81
- * @param paramId 参数ID
82
- * @param paramValue 参数值
83
- * @param paramDisplayValue 参数显示值
84
- * @returns 是否设置成功
85
- */
86
- export const setParamValue = (clientId, paramId, paramValue, paramDisplayValue) => {
87
- return smartbi('ClientReportService', 'setParamValue', [clientId, paramId, paramValue, paramDisplayValue]);
88
- };
89
- /**
90
- * 设置参数值(按名称)
91
- * @param clientId 客户ID
92
- * @param paramId 参数ID
93
- * @param paramValue 参数值
94
- * @param paramDisplayValue 参数显示值
95
- * @returns 是否设置成功
96
- */
97
- export const setParamValueByName = (clientId, paramId, paramValue, paramDisplayValue) => {
98
- return smartbi('ClientReportService', 'setParamValueByName', [clientId, paramId, paramValue, paramDisplayValue]);
99
- };
100
- /**
101
- * 获得某个参数的默认值
102
- * @param clientId 客户ID
103
- * @param paramId 参数ID
104
- * @returns 参数的默认值列表
105
- */
106
- export const getParamDefaultValue = (clientId, paramId) => {
107
- return smartbi('ClientReportService', 'getParamDefaultValue', [clientId, paramId]);
108
- };
109
- /**
110
- * 获得某个参数的候选值列表
111
- * @param clientId 客户ID
112
- * @param paramId 参数ID
113
- * @returns 参数的候选值列表
114
- */
115
- export const getParamStandbyValue = (clientId, paramId) => {
116
- return smartbi('ClientReportService', 'getParamStandbyValue', [clientId, paramId]);
117
- };
118
- /**
119
- * 设置报表的排序字段
120
- * @param clientId 客户ID
121
- * @param fieldId 字段ID
122
- * @param orderType 排序方式, ASC, DESC, NONE
123
- * @returns 是否设置成功
124
- */
125
- export const setOrderByType = (clientId, fieldId, orderType) => {
126
- return smartbi('ClientReportService', 'setOrderByType', [clientId, fieldId, orderType]);
127
- };
128
- /**
129
- * 设置字段聚合方式
130
- * @param clientId 客户ID
131
- * @param fieldId 字段ID
132
- * @param aggregate 聚合方式 SUM, MIN, MAX, COUNT, DISTINCT_COUNT, AVG, NULL
133
- * @returns 是否设置成功
134
- */
135
- export const setFieldAggregate = (clientId, fieldId, aggregate) => {
136
- return smartbi('ClientReportService', 'setFieldAggregate', [clientId, fieldId, aggregate]);
137
- };
138
- /**
139
- * 获取报表中某字段的所有可能值
140
- * @param clientId 客户ID
141
- * @param fieldId 字段ID
142
- * @returns 字段的所有可能值列表
143
- */
144
- export const getFieldDistinctValues = (clientId, fieldId) => {
145
- return smartbi('ClientReportService', 'getFieldDistinctValues', [clientId, fieldId]);
146
- };
147
- /**
148
- * 设置过滤条件
149
- * @param clientId 客户ID
150
- * @param fieldId 字段ID
151
- * @param operator 操作符
152
- * @param value 值
153
- * @returns 是否设置成功
154
- */
155
- export const setAutoCondition = (clientId, fieldId, operator, value) => {
156
- return smartbi('ClientReportService', 'setAutoCondition', [clientId, fieldId, operator, value]);
157
- };
158
- /**
159
- * 设置自定义过滤条件
160
- * @param clientId 客户ID
161
- * @param filterData 过滤条件数据
162
- * @returns 是否设置成功
163
- */
164
- export const setCustomCondition = (clientId, filterData) => {
165
- return smartbi('ClientReportService', 'setCustomCondition', [clientId, filterData.toString()]);
166
- };
167
- /**
168
- * 设置客户端配置
169
- * @param clientId 客户ID
170
- * @param clientConfig 客户端配置
171
- * @returns 无返回值
172
- */
173
- export const setClientConfig = (clientId, clientConfig) => {
174
- return smartbi('ClientReportService', 'setClientConfig', [clientId, clientConfig]);
175
- };
176
- /**
177
- * 克隆查询
178
- * @param clientId 客户ID
179
- * @param parentNodeId 父节点ID
180
- * * @param name 名称
181
- * @param alias 别名
182
- * @param desc 描述
183
- * @returns 新克隆的查询ID
184
- */
185
- export const cloneQuery = (clientId, parentNodeId, name, alias, desc) => {
186
- return smartbi('ClientReportService', 'cloneQuery', [clientId, parentNodeId, name, alias, desc]);
187
- };
188
- /**
189
- * 覆盖查询
190
- * @param clientId 客户ID
191
- * @param replacedReportId 被替换的报表ID
192
- * @param desc 描述
193
- * @returns 是否覆盖成功
194
- */
195
- export const overwriteQuery = (clientId, replacedReportId, desc) => {
196
- return smartbi('ClientReportService', 'overwriteQuery', [clientId, replacedReportId, desc]);
197
- };
198
- /**
199
- * 导出报表
200
- * @param clientId 客户ID
201
- * @param reportId 报表ID
202
- * @returns 无返回值
203
- */
204
- export const dump = (clientId, reportId) => {
205
- return smartbi('ClientReportService', 'dump', [clientId, reportId]);
206
- };
@@ -1,7 +0,0 @@
1
- import type { ICombinedReport } from '../types';
2
- /**
3
- * 创建并打开一个报表
4
- * @param reportId 报表ID
5
- * @returns 返回打开的报表对象,类型为ICombinedReport
6
- */
7
- export declare const openReport: (reportId: string) => Promise<ICombinedReport>;
@@ -1,10 +0,0 @@
1
- // CombinedReportService 服务方法
2
- import { smartbi } from "../index";
3
- /**
4
- * 创建并打开一个报表
5
- * @param reportId 报表ID
6
- * @returns 返回打开的报表对象,类型为ICombinedReport
7
- */
8
- export const openReport = (reportId) => {
9
- return smartbi('CombinedReportService', 'openReport', [reportId]);
10
- };