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,230 +0,0 @@
1
- import { smartbi } from "../index";
2
- /**
3
- * 判断某个资源是否可访问。
4
- * 参数:
5
- * elementId - 资源ID
6
- * type - 访问类型:
7
- * 1.引用权限:REF
8
- * 2.查看权限:READ
9
- * 3.编辑权限:WRITE
10
- * @param elementId 资源ID
11
- * @param type 访问类型
12
- * @returns 返回是否有权限的布尔值
13
- */
14
- export const isCatalogElementAccessible = (elementId, type) => {
15
- return smartbi('CatalogService', 'isCatalogElementAccessible', [elementId, type]);
16
- };
17
- /**
18
- * 获取资源树的顶层节点列表
19
- * @returns 返回顶层节点列表,节点类型为CatalogElement
20
- */
21
- export const getRootElements = () => {
22
- return smartbi('CatalogService', 'getRootElements', []);
23
- };
24
- /**
25
- * 获得指定节点的子节点列表
26
- * @param nodeId 指定节点ID
27
- * @returns 返回子节点列表,节点类型为CatalogElement
28
- */
29
- export const getChildElements = (nodeId) => {
30
- return smartbi('CatalogService', 'getChildElements', [nodeId]);
31
- };
32
- /**
33
- * 创建目录
34
- * @param parentNodeId 父目录ID
35
- * @param name 目录名称
36
- * @param alias 目录别名
37
- * @param desc 目录描述
38
- * @param type 目录类型,此项可为空,系统会自动根据父目录的类型进行设置
39
- * @param hiddenInBrowse 是否在浏览模块中隐藏此目录
40
- * @returns 返回创建的目录对象,类型为CatalogElement
41
- */
42
- export const createFolder = (parentNodeId, name, alias, desc, type, hiddenInBrowse) => {
43
- return smartbi('CatalogService', 'createFolder', [parentNodeId, name, alias, desc, type, hiddenInBrowse]);
44
- };
45
- /**
46
- * 通过ID创建目录
47
- * @param parentNodeId 父目录ID
48
- * @param id 目录ID
49
- * @param name 目录名称
50
- * @param alias 目录别名
51
- * @param desc 目录描述
52
- * @param type 目录类型,此项可为空,系统会自动根据父目录的类型进行设置
53
- * @param hiddenInBrowse 是否在浏览模块中隐藏此目录
54
- * @returns 返回创建的目录对象,类型为CatalogElement
55
- */
56
- export const createFolderById = (parentNodeId, id, name, alias, desc, type, hiddenInBrowse) => {
57
- return smartbi('CatalogService', 'createFolderById', [parentNodeId, id, name, alias, desc, type, hiddenInBrowse]);
58
- };
59
- /**
60
- * 通过ID访问资源
61
- * @param elementId 资源ID
62
- * @returns 返回资源对象,类型为CatalogElement
63
- */
64
- export const getCatalogElementById = (elementId) => {
65
- return smartbi('CatalogService', 'getCatalogElementById', [elementId]);
66
- };
67
- /**
68
- * 通过类型获取结点
69
- * @param type 节点类型
70
- * @returns 返回指定类型的节点列表,节点类型为CatalogElement
71
- */
72
- export const getCatalogElementByType = (type) => {
73
- return smartbi('CatalogService', 'getCatalogElementByType', [type]);
74
- };
75
- /**
76
- * 获取目录下指定类型的子元素
77
- * @param parentNodeId 父节点ID
78
- * @param types 要获取的子元素类型数组
79
- * @returns 返回指定类型的子元素列表,节点类型为CatalogElement
80
- */
81
- export const getChildElementsByTypes = (parentNodeId, types) => {
82
- return smartbi('CatalogService', 'getChildElementsByTypes', [parentNodeId, types.toString()]);
83
- };
84
- /**
85
- * 获取资源直接被授予的权限信息
86
- * @param resId 资源ID
87
- * @returns 返回资源直接被授予的权限信息,类型为ResourcePermission
88
- */
89
- export const getAssignedPermissions = (resId) => {
90
- return smartbi('CatalogService', 'getAssignedPermissions', [resId]);
91
- };
92
- /**
93
- * 获取资源继承的权限信息
94
- * @param resId 资源ID
95
- * @returns 返回资源继承的权限信息列表,类型为ResourcePermissionItem[]
96
- */
97
- export const getInheritedPermissions = (resId) => {
98
- return smartbi('CatalogService', 'getInheritedPermissions', [resId]);
99
- };
100
- /**
101
- * 通过ID删除资源
102
- * @param id 资源ID
103
- * @returns 无返回值
104
- */
105
- export const deleteCatalogElement = (id) => {
106
- return smartbi('CatalogService', 'deleteCatalogElement', [id]);
107
- };
108
- /**
109
- * 根据别名或名称模糊查询资源信息
110
- * @param alias 别名或名称关键字
111
- * @param purview "READ":"查看"; "WRITE":"编辑"; "REF":"引用"
112
- * @returns 返回搜索结果列表,类型为ICatalogSearchResult[]
113
- */
114
- export const searchCatalogElementLikeAlias = (alias, purview) => {
115
- return smartbi('CatalogService', 'searchCatalogElementLikeAlias', [alias, purview]);
116
- };
117
- /**
118
- * 设置该资源的组权限
119
- * @param elementId 资源ID
120
- * @param groupId 组ID
121
- * @param type 权限类型
122
- * @param inherited 是否继承
123
- * @param permissionDescendType 权限下降类型
124
- * @param isGroupDescend 是否组下降
125
- * @returns 无返回值
126
- */
127
- export const setAssignedPermissionByGroup = (elementId, groupId, type, inherited, permissionDescendType, isGroupDescend) => {
128
- return smartbi('CatalogService', 'setAssignedPermissionByGroup', [elementId, groupId, type, inherited, permissionDescendType, isGroupDescend]);
129
- };
130
- /**
131
- * 设置该资源的角色权限
132
- * @param elementId 资源ID
133
- * @param roleId 角色ID
134
- * @param type 权限类型
135
- * @param inherited 是否继承
136
- * @param permissionDescendType 权限下降类型
137
- * @returns 无返回值
138
- */
139
- export const setAssignedPermissionByRole = (elementId, roleId, type, inherited, permissionDescendType) => {
140
- return smartbi('CatalogService', 'setAssignedPermissionByRole', [elementId, roleId, type, inherited, permissionDescendType]);
141
- };
142
- /**
143
- * 设置该资源的用户权限
144
- * @param elementId 资源ID
145
- * @param userId 用户ID
146
- * @param type 权限类型
147
- * @param inherited 是否继承
148
- * @param permissionDescendType 权限下降类型
149
- * @returns 无返回值
150
- */
151
- export const setAssignedPermissionByUser = (elementId, userId, type, inherited, permissionDescendType) => {
152
- return smartbi('CatalogService', 'setAssignedPermissionByUser', [elementId, userId, type, inherited, permissionDescendType]);
153
- };
154
- /**
155
- * 更换资源节点的图片
156
- * @param id 资源ID
157
- * @param image 图片路径或图片数据
158
- * @returns 无返回值
159
- */
160
- export const updateCatalogElementImage = (id, image) => {
161
- return smartbi('CatalogService', 'updateCatalogElementImage', [id, image]);
162
- };
163
- /**
164
- * 根据ID修改资源信息
165
- * @param id 资源ID
166
- * @param jsonNodeConfig JSON节点配置 资源定义,json字符串,格式如下: "{\"alias\":\"复选框_报表2\",\"desc\":\"复选框_报表2\",\"deletedExtKeys\":\"hasChild,detectChild\",\"extended\":\"{'customImage':'Foldera.jpg','hiddenInBrowse':'false'}\"}" alias: 可选属性,别名 desc: 可选属性,描述 deletedExtKeys:可选属性,需要删除的扩展属性的key,参数内容可以不包含该属性 extended:可选属性,需要新增或修改的扩展属性内容,参数内容可以不包含该属性
167
- * @param wholeExtended 完整的扩展内容,json字符串,格式如下:{"extended": "{\"hasChild\":\"false\",\"hiddenInBrowse\":\"false\"}"}。 该参数内容可为空。如不为空,扩展字段内容将全部替换为该参数内容,否则只对扩展属性进行增量添加。
168
- * @returns 无返回值
169
- */
170
- export const updateCatalogNode = (id, jsonNodeConfig, wholeExtended) => {
171
- return smartbi('CatalogService', 'updateCatalogNode', [id, jsonNodeConfig, wholeExtended]);
172
- };
173
- /**
174
- * 创建WEB链接
175
- * @param parentFolderId 父文件夹ID
176
- * @param urlName URL名称
177
- * @param urlAlias URL别名
178
- * @param urlDesc URL描述
179
- * @param url URL地址
180
- * @param setting 设置是否新窗口打开以及是否传递登录信息
181
- * 设置在当前窗口打开设置如下: {"currentWindow":true}
182
- * 设置在当前窗口打开并传递登录信息设置如下: {"currentWindow":true,"autoLogin":true}
183
- * 如果此值设置为空,则系统会默认为在新窗口打开并不传递登录信息
184
- * @returns 返回新创建的URL链接ID
185
- */
186
- export const createURLLink = (parentFolderId, urlName, urlAlias, urlDesc, url, setting) => {
187
- return smartbi('CatalogService', 'createURLLink', [parentFolderId, urlName, urlAlias, urlDesc, url, setting]);
188
- };
189
- /**
190
- * 更新WEB链接
191
- * @param urlID 结点ID
192
- * @param urlAlias URL别名
193
- * @param urlDesc URL描述
194
- * @param url URL地址
195
- * @param setting 设置是否新窗口打开以及是否传递登录信息
196
- * 设置在当前窗口打开设置如下: {"currentWindow":true}
197
- * 设置在当前窗口打开并传递登录信息设置如下: {"currentWindow":true,"autoLogin":true}
198
- * 如果此值设置为空,则系统会默认为在新窗口打开并不传递登录信
199
- * @returns 无返回值
200
- */
201
- export const updateURLLink = (urlID, urlAlias, urlDesc, url, setting) => {
202
- return smartbi('CatalogService', 'updateURLLink', [urlID, urlAlias, urlDesc, url, setting]);
203
- };
204
- /**
205
- * 复制粘贴并返回新ID
206
- * @param toId 目标ID
207
- * @param srcId 源ID
208
- * @param name 名称
209
- * @param alias 别名
210
- * @param desc 描述
211
- * @returns 返回新创建元素的ID
212
- */
213
- export const copyAndPasteReturnNewId = (toId, srcId, name, alias, desc) => {
214
- return smartbi('CatalogService', 'copyAndPasteReturnNewId', [toId, srcId, name, alias, desc]);
215
- };
216
- /**
217
- * 创建资源树结点
218
- * 注意:此方法是单纯新建一个树结点,调用此方法前,必须存在此结点类型的实体资源.
219
- * @param parentId 父ID
220
- * @param id ID
221
- * @param name 名称
222
- * @param alias 别名
223
- * @param desc 描述
224
- * @param order 顺序
225
- * @param type 类型
226
- * @returns 返回创建的资源节点,类型为CatalogElement
227
- */
228
- export const createCatalogElement = (parentId, id, name, alias, desc, order, type) => {
229
- return smartbi('CatalogService', 'createCatalogElement', [parentId, id, name, alias, desc, order, type]);
230
- };
@@ -1,82 +0,0 @@
1
- // ClientCombinedReportService 服务方法
2
- import { smartbi } from "../index";
3
- /**
4
- * 打开一个即席查询报表
5
- * @param queryId 报表ID
6
- * @returns 返回打开的报表视图,类型为IClientCombinedReportView
7
- */
8
- export const openQuery = (queryId) => {
9
- return smartbi('ClientCombinedReportService', 'openQuery', [queryId]);
10
- };
11
- /**
12
- * 打开一个即席查询报表(不初始化)
13
- * @param queryId 报表ID
14
- * @returns 返回打开的报表视图,类型为IClientCombinedReportView
15
- */
16
- export const openQueryWithoutInit = (queryId) => {
17
- return smartbi('ClientCombinedReportService', 'openQueryWithoutInit', [queryId]);
18
- };
19
- /**
20
- * 同步条件面板参数
21
- * @param combinedClientId combinedClientId
22
- * @param condPanelClientId condPanelClientId
23
- * @returns 无返回值
24
- */
25
- export const updateConditionPanel = (combinedClientId, condPanelClientId) => {
26
- return smartbi('ClientCombinedReportService', 'updateConditionPanel', [combinedClientId, condPanelClientId]);
27
- };
28
- /**
29
- * 将报表信息从服务端的会话状态中清除
30
- * @param combinedClientId 客户ID
31
- * @returns 无返回值
32
- */
33
- export const removeFromSession = (combinedClientId) => {
34
- return smartbi('ClientCombinedReportService', 'removeFromSession', [combinedClientId]);
35
- };
36
- /**
37
- * 克隆查询
38
- * @param clientId 客户端ID
39
- * @param parentNodeId 父节点ID
40
- * @param name 名称
41
- * @param alias 别名
42
- * @param desc 描述
43
- * @returns 返回新客户端ID
44
- */
45
- export const cloneQuery = (clientId, parentNodeId, name, alias, desc) => {
46
- return smartbi('ClientCombinedReportService', 'cloneQuery', [clientId, parentNodeId, name, alias, desc]);
47
- };
48
- /**
49
- * 导出报表
50
- * @param clientId 客户端ID
51
- * @param reportId 报表ID
52
- * @returns 无返回值
53
- */
54
- export const dump = (clientId, reportId) => {
55
- return smartbi('ClientCombinedReportService', 'dump', [clientId, reportId]);
56
- };
57
- /**
58
- * 覆盖查询
59
- * @param clientId 客户端ID
60
- * @param replacedReportId 报表ID
61
- * @param desc 描述
62
- * @returns 返回true/false
63
- */
64
- export const overwriteQuery = (clientId, replacedReportId, desc) => {
65
- return smartbi('ClientCombinedReportService', 'overwriteQuery', [clientId, replacedReportId, desc]);
66
- };
67
- /**
68
- * 获取即席查询的数据来源类型
69
- * @param queryId 即席查询id
70
- * @returns 返回数据来源类型
71
- */
72
- export const getDataSourceType = (queryId) => {
73
- return smartbi('ClientCombinedReportService', 'getDataSourceType', [queryId]);
74
- };
75
- /**
76
- * 获取即席查询的类型
77
- * @param reportId 即席查询id
78
- * @returns 返回类型
79
- */
80
- export const getExtendedType = (reportId) => {
81
- return smartbi('ClientCombinedReportService', 'getExtendedType', [reportId]);
82
- };
@@ -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,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
- };