smartbi-toolkit 1.1.4 → 1.2.0

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 (111) hide show
  1. package/README.md +59 -12
  2. package/dist/common-Cnq1SoER.d.ts +25 -0
  3. package/dist/console-BJttltN4.js +93 -0
  4. package/dist/index.d.ts +23 -14
  5. package/dist/index.js +97 -127
  6. package/dist/{methods → service}/AnalysisReportService.d.ts +18 -14
  7. package/dist/service/AnalysisReportService.js +138 -0
  8. package/dist/service/BusinessThemeService.d.ts +11 -0
  9. package/dist/service/BusinessThemeService.js +20 -0
  10. package/dist/{methods → service}/BusinessViewService.d.ts +18 -14
  11. package/dist/service/BusinessViewService.js +146 -0
  12. package/dist/{methods → service}/CatalogService.d.ts +26 -22
  13. package/dist/service/CatalogService.js +300 -0
  14. package/dist/{methods → service}/ClientCombinedReportService.d.ts +14 -10
  15. package/dist/service/ClientCombinedReportService.js +96 -0
  16. package/dist/{methods → service}/ClientInsightService.d.ts +17 -13
  17. package/dist/service/ClientInsightService.js +123 -0
  18. package/dist/{methods → service}/ClientReportService.d.ts +27 -23
  19. package/dist/service/ClientReportService.js +244 -0
  20. package/dist/service/CombinedReportService.d.ts +11 -0
  21. package/dist/service/CombinedReportService.js +14 -0
  22. package/dist/{methods → service}/DataSourceService.d.ts +26 -22
  23. package/dist/service/DataSourceService.js +306 -0
  24. package/dist/service/GraphicReportService.d.ts +11 -0
  25. package/dist/service/GraphicReportService.js +14 -0
  26. package/dist/service/InsightReport.d.ts +75 -0
  27. package/dist/service/InsightReport.js +118 -0
  28. package/dist/{methods → service}/MetadataService.d.ts +10 -6
  29. package/dist/service/MetadataService.js +60 -0
  30. package/dist/service/OfficeReport.d.ts +53 -0
  31. package/dist/service/OfficeReport.js +74 -0
  32. package/dist/{methods → service}/OfficeReportService.d.ts +10 -6
  33. package/dist/service/OfficeReportService.js +56 -0
  34. package/dist/service/OltpMetadataService.d.ts +23 -0
  35. package/dist/service/OltpMetadataService.js +30 -0
  36. package/dist/service/ParameterService.d.ts +15 -0
  37. package/dist/service/ParameterService.js +22 -0
  38. package/dist/service/PoolService.d.ts +14 -0
  39. package/dist/service/PoolService.js +21 -0
  40. package/dist/{methods → service}/PortalService.d.ts +14 -10
  41. package/dist/service/PortalService.js +106 -0
  42. package/dist/{methods → service}/Report.d.ts +31 -27
  43. package/dist/service/Report.js +275 -0
  44. package/dist/service/SSReport.d.ts +90 -0
  45. package/dist/service/SSReport.js +127 -0
  46. package/dist/service/ScheduleTaskService.d.ts +15 -0
  47. package/dist/service/ScheduleTaskService.js +22 -0
  48. package/dist/service/SimpleReportService.d.ts +15 -0
  49. package/dist/service/SimpleReportService.js +22 -0
  50. package/dist/service/SpreadSheetReportService.d.ts +47 -0
  51. package/dist/service/SpreadSheetReportService.js +65 -0
  52. package/dist/service/SystemConfigService.d.ts +21 -0
  53. package/dist/service/SystemConfigService.js +28 -0
  54. package/dist/service/TimeConsuming.d.ts +10 -0
  55. package/dist/service/TimeConsuming.js +13 -0
  56. package/dist/service/TimeConsumingService.d.ts +8 -0
  57. package/dist/service/TimeConsumingService.js +13 -0
  58. package/dist/{methods → service}/UserManagerService.d.ts +40 -36
  59. package/dist/service/UserManagerService.js +365 -0
  60. package/dist/types-DOYMZhxT.d.ts +409 -0
  61. package/dist/vite-plugin/vite-plugin-smartbi.d.ts +21 -0
  62. package/dist/vite-plugin/vite-plugin-smartbi.js +54 -0
  63. package/dist/vite-plugin/vite-plugin-smartbix.d.ts +17 -0
  64. package/dist/vite-plugin/vite-plugin-smartbix.js +101 -0
  65. package/package.json +59 -141
  66. package/dist/methods/AnalysisReportService.js +0 -126
  67. package/dist/methods/BusinessThemeService.d.ts +0 -8
  68. package/dist/methods/BusinessThemeService.js +0 -11
  69. package/dist/methods/BusinessViewService.js +0 -120
  70. package/dist/methods/CatalogService.js +0 -230
  71. package/dist/methods/ClientCombinedReportService.js +0 -82
  72. package/dist/methods/ClientInsightService.js +0 -107
  73. package/dist/methods/ClientReportService.js +0 -206
  74. package/dist/methods/CombinedReportService.d.ts +0 -7
  75. package/dist/methods/CombinedReportService.js +0 -10
  76. package/dist/methods/DataSourceService.js +0 -220
  77. package/dist/methods/GraphicReportService.d.ts +0 -7
  78. package/dist/methods/GraphicReportService.js +0 -10
  79. package/dist/methods/InsightReport.d.ts +0 -71
  80. package/dist/methods/InsightReport.js +0 -98
  81. package/dist/methods/MetadataService.js +0 -47
  82. package/dist/methods/OfficeReport.d.ts +0 -49
  83. package/dist/methods/OfficeReport.js +0 -65
  84. package/dist/methods/OfficeReportService.js +0 -46
  85. package/dist/methods/OltpMetadataService.d.ts +0 -19
  86. package/dist/methods/OltpMetadataService.js +0 -25
  87. package/dist/methods/ParameterService.d.ts +0 -12
  88. package/dist/methods/ParameterService.js +0 -18
  89. package/dist/methods/PoolService.d.ts +0 -11
  90. package/dist/methods/PoolService.js +0 -17
  91. package/dist/methods/PortalService.js +0 -89
  92. package/dist/methods/Report.js +0 -230
  93. package/dist/methods/SSReport.d.ts +0 -86
  94. package/dist/methods/SSReport.js +0 -114
  95. package/dist/methods/ScheduleTaskService.d.ts +0 -12
  96. package/dist/methods/ScheduleTaskService.js +0 -18
  97. package/dist/methods/SimpleReportService.d.ts +0 -12
  98. package/dist/methods/SimpleReportService.js +0 -18
  99. package/dist/methods/SpreadSheetReportService.d.ts +0 -43
  100. package/dist/methods/SpreadSheetReportService.js +0 -55
  101. package/dist/methods/SystemConfigService.d.ts +0 -17
  102. package/dist/methods/SystemConfigService.js +0 -23
  103. package/dist/methods/TimeConsuming.d.ts +0 -6
  104. package/dist/methods/TimeConsuming.js +0 -9
  105. package/dist/methods/TimeConsumingService.d.ts +0 -5
  106. package/dist/methods/TimeConsumingService.js +0 -9
  107. package/dist/methods/UserManagerService.js +0 -312
  108. package/dist/types.d.ts +0 -412
  109. package/dist/types.js +0 -61
  110. package/dist/vite-plugin-smartbi/index.d.ts +0 -36
  111. package/dist/vite-plugin-smartbi/index.js +0 -107
@@ -1,18 +0,0 @@
1
- // 定义SmartBI参数服务相关的类型接口
2
- import { smartbi } from "../index";
3
- /**
4
- * 根据参数ID获取参数默认值SQL语句
5
- * @param paramId 参数ID
6
- * @returns 返回SQL语句
7
- */
8
- export const getParameterDefaultSQLById = (paramId) => {
9
- return smartbi('ParameterService', 'getParameterDefaultSQLById', [paramId]);
10
- };
11
- /**
12
- * 根据参数ID获取参数备选值SQL语句
13
- * @param paramId 参数ID
14
- * @returns 返回SQL语句
15
- */
16
- export const getParameterStandbySQLById = (paramId) => {
17
- return smartbi('ParameterService', 'getParameterStandbySQLById', [paramId]);
18
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * 清除所有连接池
3
- * @returns 无返回值
4
- */
5
- export declare const clearAllPools: () => Promise<void>;
6
- /**
7
- * 根据连接池名称清除连接池
8
- * @param poolName 连接池名称
9
- * @returns 无返回值
10
- */
11
- export declare const clearPoolByName: (poolName: string) => Promise<void>;
@@ -1,17 +0,0 @@
1
- // 定义SmartBI连接池服务相关的类型接口
2
- import { smartbi } from "../index";
3
- /**
4
- * 清除所有连接池
5
- * @returns 无返回值
6
- */
7
- export const clearAllPools = () => {
8
- return smartbi('PoolService', 'clearAllPools', []);
9
- };
10
- /**
11
- * 根据连接池名称清除连接池
12
- * @param poolName 连接池名称
13
- * @returns 无返回值
14
- */
15
- export const clearPoolByName = (poolName) => {
16
- return smartbi('PoolService', 'clearPoolByName', [poolName]);
17
- };
@@ -1,89 +0,0 @@
1
- import { smartbi } from "../index";
2
- /**
3
- * 打开整个页面
4
- * @param pageId 页面ID
5
- * @returns 返回客户端ID
6
- */
7
- export const openEntirePage = (pageId) => {
8
- return smartbi('PortalService', 'openEntirePage', [pageId]);
9
- };
10
- /**
11
- * 执行页面中所有的查询
12
- * @param clientId 客户端ID
13
- * @param portletType 组件类型
14
- * @returns 无返回值
15
- */
16
- export const excuteAllQueryInPage = (clientId, portletType) => {
17
- return smartbi('PortalService', 'excuteAllQueryInPage', [clientId, portletType.toString()]);
18
- };
19
- /**
20
- * 关闭整个页面
21
- * @param clientId 客户端ID
22
- * @returns 无返回值
23
- */
24
- export const closeEntirePage = (clientId) => {
25
- return smartbi('PortalService', 'closeEntirePage', [clientId]);
26
- };
27
- /**
28
- * 导出页面
29
- * @param clientId 客户端ID
30
- * @param exportType 导出类型
31
- * @param pageWidth 页面大小
32
- * @param os 输出流
33
- * @param postData 可选参数 - 参数
34
- * @returns 无返回值
35
- */
36
- export const doExport = (clientId, exportType, pageWidth, os, postData) => {
37
- if (postData !== undefined) {
38
- return smartbi('PortalService', 'doExport', [clientId, exportType, pageWidth, os, postData]);
39
- }
40
- else {
41
- return smartbi('PortalService', 'doExport', [clientId, exportType, pageWidth, os]);
42
- }
43
- };
44
- /**
45
- * 根据参数ID获取参数默认值
46
- * @param clientId 客户端ID
47
- * @param paramId 参数ID
48
- * @returns 返回参数默认值
49
- */
50
- export const getParamDefaultValue = (clientId, paramId) => {
51
- return smartbi('PortalService', 'getParamDefaultValue', [clientId, paramId]);
52
- };
53
- /**
54
- * 根据参数ID获取参数默认值列表
55
- * @param clientId 客户端ID
56
- * @param paramId 参数ID
57
- * @returns 返回参数默认值列表
58
- */
59
- export const getParamDefaultValues = (clientId, paramId) => {
60
- return smartbi('PortalService', 'getParamDefaultValues', [clientId, paramId]);
61
- };
62
- /**
63
- * 设置参数值
64
- * @param clientId 客户端ID
65
- * @param paramId 参数ID
66
- * @param paramValue 参数值
67
- * @param paramDisplayValue 参数显示值
68
- * @returns 无返回值
69
- */
70
- export const setParamValue = (clientId, paramId, paramValue, paramDisplayValue) => {
71
- return smartbi('PortalService', 'setParamValue', [clientId, paramId, paramValue, paramDisplayValue]);
72
- };
73
- /**
74
- * 获取页面的参数列表
75
- * @param pageId 页面ID
76
- * @returns 返回参数列表
77
- */
78
- export const getParameters = (pageId) => {
79
- return smartbi('PortalService', 'getParameters', [pageId]);
80
- };
81
- /**
82
- * 获取参数备选值
83
- * @param clientId 客户端ID
84
- * @param paramId 参数ID
85
- * @returns 返回参数标准值
86
- */
87
- export const getParamStandbyValue = (clientId, paramId) => {
88
- return smartbi('PortalService', 'getParamStandbyValue', [clientId, paramId]);
89
- };
@@ -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>;