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,230 +0,0 @@
1
- import { smartbi } from "../index";
2
- /**
3
- * 取得当前报表名
4
- * @returns 当前报表名
5
- */
6
- export const getCurrentReportName = () => {
7
- return smartbi('Report', 'getCurrentReportName', []);
8
- };
9
- /**
10
- * 取得每页行数
11
- * @returns 每页行数
12
- */
13
- export const getRowsPerPage = () => {
14
- return smartbi('Report', 'getRowsPerPage', []);
15
- };
16
- /**
17
- * 取得报表的参数信息
18
- * @returns 参数列表
19
- */
20
- export const getReportParameters = () => {
21
- return smartbi('Report', 'getParameters', []);
22
- };
23
- /**
24
- * 取得报表的字段信息
25
- * @returns 字段列表
26
- */
27
- export const getReportFields = () => {
28
- return smartbi('Report', 'getFields', []);
29
- };
30
- /**
31
- * 打开一个报表
32
- * @param reportId 报表ID
33
- * @returns 无返回值
34
- */
35
- export const openReport = (reportId) => {
36
- return smartbi('Report', 'open', [reportId]);
37
- };
38
- /**
39
- * 打开一个报表(不初始化)
40
- * @param reportId 报表ID
41
- * @returns 无返回值
42
- */
43
- export const openReportWithoutInit = (reportId) => {
44
- return smartbi('Report', 'openWithoutInit', [reportId]);
45
- };
46
- /**
47
- * 执行报表
48
- * @param rowsPerPage 指定每页行数
49
- * @returns 报表总行数
50
- */
51
- export const executeReport = (rowsPerPage) => {
52
- return smartbi('Report', 'execute', [rowsPerPage]);
53
- };
54
- /**
55
- * 取得报表的指定页
56
- * @param pageIndex 页码
57
- * @returns 报表数据
58
- */
59
- export const getPage = (pageIndex) => {
60
- return smartbi('Report', 'getPage', [pageIndex]);
61
- };
62
- /**
63
- * 关闭报表
64
- * @returns 无返回值
65
- */
66
- export const closeReport = () => {
67
- return smartbi('Report', 'close', []);
68
- };
69
- /**
70
- * 设置参数值(仅值)
71
- * @param paramId 参数ID
72
- * @param paramValue 参数值
73
- * @returns 无返回值
74
- */
75
- export const setReportParamValueOnly = (paramId, paramValue) => {
76
- return smartbi('Report', 'setParamValue', [paramId, paramValue]);
77
- };
78
- /**
79
- * 设置参数值
80
- * @param paramId 参数ID
81
- * @param paramValue 参数值
82
- * @param displayValue 参数显示值
83
- * @returns 无返回值
84
- */
85
- export const setReportParamValue = (paramId, paramValue, displayValue) => {
86
- return smartbi('Report', 'setParamValue', [paramId, paramValue, displayValue]);
87
- };
88
- /**
89
- * 导出报表(基础版)
90
- * @param type 指定导出类型 EXCEL, TXT, CSV
91
- * @param delimiter 指定分割符(EXCEL类型不需要)
92
- * @param maxRow 指定最大行数
93
- * @param os 指定报表输出流
94
- * @returns 无返回值
95
- */
96
- export const doExport = (type, delimiter, maxRow, os) => {
97
- return smartbi('Report', 'doExport', [type, delimiter, maxRow, os]);
98
- };
99
- /**
100
- * 导出报表(带资源路径)
101
- * @param type 指定导出类型 EXCEL, TXT, CSV
102
- * @param delimiter 指定分割符(EXCEL类型不需要)
103
- * @param maxRow 指定最大行数
104
- * @param os 指定报表输出流
105
- * @param resourceBasePath 资源基础路径
106
- * @returns 无返回值
107
- */
108
- export const doExportWithResourcePath = (type, delimiter, maxRow, os, resourceBasePath) => {
109
- return smartbi('Report', 'doExport', [type, delimiter, maxRow, os, resourceBasePath]);
110
- };
111
- /**
112
- * 导出报表(带值类型)
113
- * @param type 指定导出类型 EXCEL, TXT, CSV
114
- * @param delimiter 指定分割符(EXCEL类型不需要)
115
- * @param maxRow 指定最大行数
116
- * @param os 指定报表输出流
117
- * @param resourceBasePath 资源基础路径
118
- * @param valueType 值类型
119
- * @returns 无返回值
120
- */
121
- export const doExportWithValueType = (type, delimiter, maxRow, os, resourceBasePath, valueType) => {
122
- return smartbi('Report', 'doExport', [type, delimiter, maxRow, os, resourceBasePath, valueType]);
123
- };
124
- /**
125
- * 导出报表(完整版)
126
- * @param type 指定导出类型 EXCEL, TXT, CSV
127
- * @param delimiter 指定分割符(EXCEL类型不需要)
128
- * @param maxRow 指定最大行数
129
- * @param os 指定报表输出流
130
- * @param resourceBasePath 资源基础路径
131
- * @param valueType 值类型
132
- * @param postData 数据
133
- * @returns 无返回值
134
- */
135
- export const doExportFull = (type, delimiter, maxRow, os, resourceBasePath, valueType, postData) => {
136
- return smartbi('Report', 'doExport', [type, delimiter, maxRow, os, resourceBasePath, valueType, postData]);
137
- };
138
- /**
139
- * 指定某个字段的排序方式
140
- * @param fieldId 字段ID
141
- * @param orderType 排序方式 ASC, DESC, NONE
142
- * @returns 无返回值
143
- */
144
- export const setReportOrderByType = (fieldId, orderType) => {
145
- return smartbi('Report', 'setOrderByType', [fieldId, orderType]);
146
- };
147
- /**
148
- * 指定某个字段的聚合方式
149
- * @param fieldId 字段ID
150
- * @param aggregate 聚合方式
151
- * @returns 无返回值
152
- */
153
- export const setReportFieldAggregate = (fieldId, aggregate) => {
154
- return smartbi('Report', 'setFieldAggregate', [fieldId, aggregate]);
155
- };
156
- /**
157
- * 指定报表过滤条件
158
- * @param fieldId 字段ID
159
- * @param operator 操作符
160
- * @param value 值
161
- * @returns 无返回值
162
- */
163
- export const setReportAutoCondition = (fieldId, operator, value) => {
164
- return smartbi('Report', 'setAutoCondition', [fieldId, operator, value]);
165
- };
166
- /**
167
- * 设置自定义过滤条件
168
- * @param filterData 过滤条件数据
169
- * @returns 是否设置成功
170
- */
171
- export const setReportCustomCondition = (filterData) => {
172
- return smartbi('Report', 'setCustomCondition', [filterData.toString()]);
173
- };
174
- /**
175
- * 读取报表数据
176
- * @param reportId 报表ID
177
- * @returns 无返回值
178
- */
179
- export const dumpReport = (reportId) => {
180
- return smartbi('Report', 'dump', [reportId]);
181
- };
182
- /**
183
- * 修改报表
184
- * @returns 无返回值
185
- */
186
- export const updateReportQuery = () => {
187
- return smartbi('Report', 'updateQuery', []);
188
- };
189
- /**
190
- * 获得某个参数的候选值列表
191
- * @param paramId 参数ID
192
- * @returns 参数的候选值列表
193
- */
194
- export const getReportParamStandbyValue = (paramId) => {
195
- return smartbi('Report', 'getParamStandbyValue', [paramId]);
196
- };
197
- /**
198
- * 获取执行状态
199
- * @returns 执行状态
200
- */
201
- export const getReportExecutingState = () => {
202
- return smartbi('Report', 'getExecutingState', []);
203
- };
204
- /**
205
- * 把报表查询结果复制在另一张新的报表中
206
- * @param reportId 报表ID
207
- * @param parentNodeId 父节点ID
208
- * @param name 名称
209
- * @param alias 别名
210
- * @param desc 描述
211
- * @returns 新的报表ID
212
- */
213
- export const cloneReportQuery = (reportId, parentNodeId, name, alias, desc) => {
214
- return smartbi('Report', 'cloneQuery', [reportId, parentNodeId, name, alias, desc]);
215
- };
216
- /**
217
- * 获取客户端配置
218
- * @returns 客户端配置
219
- */
220
- export const getReportClientConfig = () => {
221
- return smartbi('Report', 'getClientConfig', []);
222
- };
223
- /**
224
- * 设置客户端配置
225
- * @param clientConfig 客户端配置
226
- * @returns 无返回值
227
- */
228
- export const setReportClientConfig = (clientConfig) => {
229
- return smartbi('Report', 'setClientConfig', [clientConfig]);
230
- };
@@ -1,86 +0,0 @@
1
- import type { NameValuePair, Parameter, RunningInfo, SSReportExportType } from '../types';
2
- /**
3
- * 打开电子表格报表
4
- * @param id 报表ID
5
- * @returns 无返回值
6
- */
7
- export declare const openSSReport: (id: string) => Promise<void>;
8
- /**
9
- * 关闭电子表格报表
10
- * @returns 无返回值
11
- */
12
- export declare const closeSSReport: () => Promise<void>;
13
- /**
14
- * 获取参数列表
15
- * @returns 返回参数列表
16
- */
17
- export declare const getSSReportParamList: () => Promise<Parameter[]>;
18
- /**
19
- * 根据参数ID获取参数备选值
20
- * @param paramId 参数ID
21
- * @returns 返回参数键值对
22
- */
23
- export declare const getSSReportParamStandbyValue: (paramId: string) => Promise<NameValuePair[]>;
24
- /**
25
- * 根据参数ID获取参数默认值
26
- * @param pid 参数ID
27
- * @returns 返回参数默认值
28
- */
29
- export declare const getSSReportParamDefaultValueByPID: (pid: string) => Promise<string>;
30
- /**
31
- * 导出电子表格(基础版)
32
- * @param type 导出类型
33
- * @param os 输出流
34
- * @returns 无返回值
35
- */
36
- export declare const exportSSReport: (type: SSReportExportType | string, os: any) => Promise<void>;
37
- /**
38
- * 导出电子表格(带参数版)
39
- * @param type 导出格式
40
- * @param os 输出流
41
- * @param postData 请求参数
42
- * @returns 无返回值
43
- */
44
- export declare const exportSSReportWithPostData: (type: SSReportExportType | string, os: any, postData: string) => Promise<void>;
45
- /**
46
- * 设置参数值
47
- * @param id 参数ID
48
- * @param value 值
49
- * @param displayValue 显示值
50
- * @returns 无返回值
51
- */
52
- export declare const setSSReportParamValue: (id: string, value: string, displayValue: string) => Promise<void>;
53
- /**
54
- * 设置导出工作单的索引
55
- * @param exportSheetIndexes 导出工作单的索引
56
- * @returns 无返回值
57
- */
58
- export declare const setSSReportExportSheetIndexes: (exportSheetIndexes: string) => Promise<void>;
59
- /**
60
- * 设置是否导出公式
61
- * @param exportFormula 是否导出公式
62
- * @returns 无返回值
63
- */
64
- export declare const setSSReportExportFormula: (exportFormula: boolean) => Promise<void>;
65
- /**
66
- * 获取执行状态
67
- * @returns 返回执行状态
68
- */
69
- export declare const getSSReportExecutingState: () => Promise<RunningInfo>;
70
- /**
71
- * 获取操作
72
- * @returns 返回操作
73
- */
74
- export declare const getSSReportOperation: () => Promise<string>;
75
- /**
76
- * 设置操作
77
- * @param operation 操作
78
- * @returns 无返回值
79
- */
80
- export declare const setSSReportOperation: (operation: string) => Promise<void>;
81
- /**
82
- * 设置筛选条件
83
- * @param filtersRule 筛选条件json
84
- * @returns 无返回值
85
- */
86
- export declare const setSSReportFiltersRule: (filtersRule: string) => Promise<void>;
@@ -1,114 +0,0 @@
1
- import { smartbi } from "../index";
2
- /**
3
- * 打开电子表格报表
4
- * @param id 报表ID
5
- * @returns 无返回值
6
- */
7
- export const openSSReport = (id) => {
8
- return smartbi('SSReport', 'open', [id]);
9
- };
10
- /**
11
- * 关闭电子表格报表
12
- * @returns 无返回值
13
- */
14
- export const closeSSReport = () => {
15
- return smartbi('SSReport', 'close', []);
16
- };
17
- /**
18
- * 获取参数列表
19
- * @returns 返回参数列表
20
- */
21
- export const getSSReportParamList = () => {
22
- return smartbi('SSReport', 'getParamList', []);
23
- };
24
- /**
25
- * 根据参数ID获取参数备选值
26
- * @param paramId 参数ID
27
- * @returns 返回参数键值对
28
- */
29
- export const getSSReportParamStandbyValue = (paramId) => {
30
- return smartbi('SSReport', 'getParamStandbyValue', [paramId]);
31
- };
32
- /**
33
- * 根据参数ID获取参数默认值
34
- * @param pid 参数ID
35
- * @returns 返回参数默认值
36
- */
37
- export const getSSReportParamDefaultValueByPID = (pid) => {
38
- return smartbi('SSReport', 'getParamDefaultValueByPID', [pid]);
39
- };
40
- /**
41
- * 导出电子表格(基础版)
42
- * @param type 导出类型
43
- * @param os 输出流
44
- * @returns 无返回值
45
- */
46
- export const exportSSReport = (type, os) => {
47
- return smartbi('SSReport', 'doExport', [type, os]);
48
- };
49
- /**
50
- * 导出电子表格(带参数版)
51
- * @param type 导出格式
52
- * @param os 输出流
53
- * @param postData 请求参数
54
- * @returns 无返回值
55
- */
56
- export const exportSSReportWithPostData = (type, os, postData) => {
57
- return smartbi('SSReport', 'doExport', [type, os, postData]);
58
- };
59
- /**
60
- * 设置参数值
61
- * @param id 参数ID
62
- * @param value 值
63
- * @param displayValue 显示值
64
- * @returns 无返回值
65
- */
66
- export const setSSReportParamValue = (id, value, displayValue) => {
67
- return smartbi('SSReport', 'setParamValue', [id, value, displayValue]);
68
- };
69
- /**
70
- * 设置导出工作单的索引
71
- * @param exportSheetIndexes 导出工作单的索引
72
- * @returns 无返回值
73
- */
74
- export const setSSReportExportSheetIndexes = (exportSheetIndexes) => {
75
- return smartbi('SSReport', 'setExportSheetIndexes', [exportSheetIndexes]);
76
- };
77
- /**
78
- * 设置是否导出公式
79
- * @param exportFormula 是否导出公式
80
- * @returns 无返回值
81
- */
82
- export const setSSReportExportFormula = (exportFormula) => {
83
- return smartbi('SSReport', 'setExportFormula', [exportFormula]);
84
- };
85
- /**
86
- * 获取执行状态
87
- * @returns 返回执行状态
88
- */
89
- export const getSSReportExecutingState = () => {
90
- return smartbi('SSReport', 'getExecutingState', []);
91
- };
92
- /**
93
- * 获取操作
94
- * @returns 返回操作
95
- */
96
- export const getSSReportOperation = () => {
97
- return smartbi('SSReport', 'getOperation', []);
98
- };
99
- /**
100
- * 设置操作
101
- * @param operation 操作
102
- * @returns 无返回值
103
- */
104
- export const setSSReportOperation = (operation) => {
105
- return smartbi('SSReport', 'setOperation', [operation]);
106
- };
107
- /**
108
- * 设置筛选条件
109
- * @param filtersRule 筛选条件json
110
- * @returns 无返回值
111
- */
112
- export const setSSReportFiltersRule = (filtersRule) => {
113
- return smartbi('SSReport', 'setFiltersRule', [filtersRule]);
114
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * 执行计划任务
3
- * @param scheduleId 计划ID
4
- * @returns 返回执行结果的布尔值
5
- */
6
- export declare const executeSchedule: (scheduleId: string) => Promise<boolean>;
7
- /**
8
- * 执行任务
9
- * @param taskId 任务ID
10
- * @returns 返回执行结果的布尔值
11
- */
12
- export declare const executeTask: (taskId: string) => Promise<boolean>;
@@ -1,18 +0,0 @@
1
- // 定义SmartBI计划任务服务相关的类型接口
2
- import { smartbi } from "../index";
3
- /**
4
- * 执行计划任务
5
- * @param scheduleId 计划ID
6
- * @returns 返回执行结果的布尔值
7
- */
8
- export const executeSchedule = (scheduleId) => {
9
- return smartbi('ScheduleTaskService', 'executeSchedule', [scheduleId]);
10
- };
11
- /**
12
- * 执行任务
13
- * @param taskId 任务ID
14
- * @returns 返回执行结果的布尔值
15
- */
16
- export const executeTask = (taskId) => {
17
- return smartbi('ScheduleTaskService', 'executeTask', [taskId]);
18
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * 创建并打开一个报表
3
- * @param reportId 报表ID
4
- * @returns 返回打开的报表对象
5
- */
6
- export declare const openReport: (reportId: string) => Promise<any>;
7
- /**
8
- * 打开一个报表不初始化数据库链接
9
- * @param reportId 报表ID
10
- * @returns 返回打开的报表对象
11
- */
12
- export declare const openReportWithoutInit: (reportId: string) => Promise<any>;
@@ -1,18 +0,0 @@
1
- // 定义SmartBI简单报表服务相关的类型接口
2
- import { smartbi } from "../index";
3
- /**
4
- * 创建并打开一个报表
5
- * @param reportId 报表ID
6
- * @returns 返回打开的报表对象
7
- */
8
- export const openReport = (reportId) => {
9
- return smartbi('SimpleReportService', 'openReport', [reportId]);
10
- };
11
- /**
12
- * 打开一个报表不初始化数据库链接
13
- * @param reportId 报表ID
14
- * @returns 返回打开的报表对象
15
- */
16
- export const openReportWithoutInit = (reportId) => {
17
- return smartbi('SimpleReportService', 'openReportWithoutInit', [reportId]);
18
- };
@@ -1,43 +0,0 @@
1
- import type { NameValuePair } from '../types';
2
- /**
3
- * 打开电子表格报表
4
- * @param reportId 报表ID
5
- * @returns 返回客户端ID
6
- */
7
- export declare const openSpreadSheetReportQuery: (reportId: string) => Promise<any>;
8
- /**
9
- * 关闭电子表格报表
10
- * @param clientId 客户端ID
11
- * @returns 无返回值
12
- */
13
- export declare const closeSpreadSheetReportQuery: (clientId: string) => Promise<void>;
14
- /**
15
- * 根据参数ID获取参数默认值
16
- * @param panelId 参数面板ID
17
- * @param paramId 参数ID
18
- * @returns 返回参数默认值
19
- */
20
- export declare const getSpreadSheetReportParamDefaultValueByPID: (panelId: string, paramId: string) => Promise<any[]>;
21
- /**
22
- * 获取参数备选值
23
- * @param panelId 参数面板ID
24
- * @param paramId 参数ID
25
- * @returns 返回参数标准值
26
- */
27
- export declare const getSpreadSheetReportParamStandbyValue: (panelId: string, paramId: string) => Promise<NameValuePair[]>;
28
- /**
29
- * 获取报表层面的参数默认值
30
- * @param contextId 报表上下文会话id
31
- * @param paramId 参数id
32
- * @returns 返回报表参数默认值
33
- */
34
- export declare const getSpreadSheetReportParamDefaultValueByContext: (contextId: string, paramId: string) => Promise<any[]>;
35
- /**
36
- * 设置参数值
37
- * @param panelId 参数面板ID
38
- * @param paramId 参数ID
39
- * @param value 值
40
- * @param displayValue 显示值
41
- * @returns 返回是否设置成功的布尔值
42
- */
43
- export declare const setSpreadSheetReportParamValue: (panelId: string, paramId: string, value: string, displayValue: string) => Promise<boolean>;
@@ -1,55 +0,0 @@
1
- import { smartbi } from "../index";
2
- /**
3
- * 打开电子表格报表
4
- * @param reportId 报表ID
5
- * @returns 返回客户端ID
6
- */
7
- export const openSpreadSheetReportQuery = (reportId) => {
8
- return smartbi('SpreadSheetReportService', 'openQuery', [reportId]);
9
- };
10
- /**
11
- * 关闭电子表格报表
12
- * @param clientId 客户端ID
13
- * @returns 无返回值
14
- */
15
- export const closeSpreadSheetReportQuery = (clientId) => {
16
- return smartbi('SpreadSheetReportService', 'closeQuery', [clientId]);
17
- };
18
- /**
19
- * 根据参数ID获取参数默认值
20
- * @param panelId 参数面板ID
21
- * @param paramId 参数ID
22
- * @returns 返回参数默认值
23
- */
24
- export const getSpreadSheetReportParamDefaultValueByPID = (panelId, paramId) => {
25
- return smartbi('SpreadSheetReportService', 'getParamDefaultValueByPID', [panelId, paramId]);
26
- };
27
- /**
28
- * 获取参数备选值
29
- * @param panelId 参数面板ID
30
- * @param paramId 参数ID
31
- * @returns 返回参数标准值
32
- */
33
- export const getSpreadSheetReportParamStandbyValue = (panelId, paramId) => {
34
- return smartbi('SpreadSheetReportService', 'getParamStandbyValue', [panelId, paramId]);
35
- };
36
- /**
37
- * 获取报表层面的参数默认值
38
- * @param contextId 报表上下文会话id
39
- * @param paramId 参数id
40
- * @returns 返回报表参数默认值
41
- */
42
- export const getSpreadSheetReportParamDefaultValueByContext = (contextId, paramId) => {
43
- return smartbi('SpreadSheetReportService', 'getReportParamDefaultValueByPID', [contextId, paramId]);
44
- };
45
- /**
46
- * 设置参数值
47
- * @param panelId 参数面板ID
48
- * @param paramId 参数ID
49
- * @param value 值
50
- * @param displayValue 显示值
51
- * @returns 返回是否设置成功的布尔值
52
- */
53
- export const setSpreadSheetReportParamValue = (panelId, paramId, value, displayValue) => {
54
- return smartbi('SpreadSheetReportService', 'setParamValue', [panelId, paramId, value, displayValue]);
55
- };
@@ -1,28 +0,0 @@
1
- export interface SystemConfig {
2
- id: string;
3
- key: string;
4
- name: string;
5
- value: string;
6
- description?: string;
7
- category?: string;
8
- dataType?: string;
9
- defaultValue?: string;
10
- editable?: boolean;
11
- [key: string]: any;
12
- }
13
- /**
14
- * 获取系统设置
15
- * @returns 返回系统设置对象列表
16
- */
17
- export declare const getSystemConfigs: () => Promise<SystemConfig[]>;
18
- /**
19
- * 根据键获取系统配置
20
- * @param key 配置键
21
- * @returns 返回系统配置对象
22
- */
23
- export declare const getSystemConfig: (key: string) => Promise<SystemConfig>;
24
- /**
25
- * 清空缓存
26
- * @returns 无返回值
27
- */
28
- export declare const clearSystemConfigCache: () => Promise<void>;
@@ -1,24 +0,0 @@
1
- // 定义SmartBI系统配置服务相关的类型接口
2
- import { smartbi } from "../index";
3
- /**
4
- * 获取系统设置
5
- * @returns 返回系统设置对象列表
6
- */
7
- export const getSystemConfigs = () => {
8
- return smartbi('SystemConfigService', 'getSystemConfigs', []);
9
- };
10
- /**
11
- * 根据键获取系统配置
12
- * @param key 配置键
13
- * @returns 返回系统配置对象
14
- */
15
- export const getSystemConfig = (key) => {
16
- return smartbi('SystemConfigService', 'getSystemConfig', [key]);
17
- };
18
- /**
19
- * 清空缓存
20
- * @returns 无返回值
21
- */
22
- export const clearSystemConfigCache = () => {
23
- return smartbi('SystemConfigService', 'clearCache', []);
24
- };
@@ -1,6 +0,0 @@
1
- import type { RunningInfo } from '../types';
2
- /**
3
- * 获取状态信息
4
- * @returns 返回执行状态信息
5
- */
6
- export declare const loadTimeConsuming: () => Promise<RunningInfo>;
@@ -1,9 +0,0 @@
1
- // 定义SmartBI耗时分析相关的类型接口
2
- import { smartbi } from "../index";
3
- /**
4
- * 获取状态信息
5
- * @returns 返回执行状态信息
6
- */
7
- export const loadTimeConsuming = () => {
8
- return smartbi('TimeConsuming', 'load', []);
9
- };
@@ -1,5 +0,0 @@
1
- /**
2
- * 获取执行时间信息
3
- * @returns 返回执行时间信息的JSON对象
4
- */
5
- export declare const loadRunningTimeConsuming: () => Promise<any>;
@@ -1,9 +0,0 @@
1
- // 导入公共类型
2
- import { smartbi } from "../index";
3
- /**
4
- * 获取执行时间信息
5
- * @returns 返回执行时间信息的JSON对象
6
- */
7
- export const loadRunningTimeConsuming = () => {
8
- return smartbi('TimeConsumingService', 'loadRunning', []);
9
- };