smartbi-toolkit 1.1.4 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -12
- package/dist/common-Cnq1SoER.d.ts +25 -0
- package/dist/console-BJttltN4.js +93 -0
- package/dist/index.d.ts +23 -14
- package/dist/index.js +97 -127
- package/dist/{methods → service}/AnalysisReportService.d.ts +18 -14
- package/dist/service/AnalysisReportService.js +138 -0
- package/dist/service/BusinessThemeService.d.ts +11 -0
- package/dist/service/BusinessThemeService.js +20 -0
- package/dist/{methods → service}/BusinessViewService.d.ts +18 -14
- package/dist/service/BusinessViewService.js +146 -0
- package/dist/{methods → service}/CatalogService.d.ts +26 -22
- package/dist/service/CatalogService.js +300 -0
- package/dist/{methods → service}/ClientCombinedReportService.d.ts +14 -10
- package/dist/service/ClientCombinedReportService.js +96 -0
- package/dist/{methods → service}/ClientInsightService.d.ts +17 -13
- package/dist/service/ClientInsightService.js +123 -0
- package/dist/{methods → service}/ClientReportService.d.ts +27 -23
- package/dist/service/ClientReportService.js +244 -0
- package/dist/service/CombinedReportService.d.ts +11 -0
- package/dist/service/CombinedReportService.js +14 -0
- package/dist/{methods → service}/DataSourceService.d.ts +26 -22
- package/dist/service/DataSourceService.js +306 -0
- package/dist/service/GraphicReportService.d.ts +11 -0
- package/dist/service/GraphicReportService.js +14 -0
- package/dist/service/InsightReport.d.ts +75 -0
- package/dist/service/InsightReport.js +118 -0
- package/dist/{methods → service}/MetadataService.d.ts +10 -6
- package/dist/service/MetadataService.js +60 -0
- package/dist/service/OfficeReport.d.ts +53 -0
- package/dist/service/OfficeReport.js +74 -0
- package/dist/{methods → service}/OfficeReportService.d.ts +10 -6
- package/dist/service/OfficeReportService.js +56 -0
- package/dist/service/OltpMetadataService.d.ts +23 -0
- package/dist/service/OltpMetadataService.js +30 -0
- package/dist/service/ParameterService.d.ts +15 -0
- package/dist/service/ParameterService.js +22 -0
- package/dist/service/PoolService.d.ts +14 -0
- package/dist/service/PoolService.js +21 -0
- package/dist/{methods → service}/PortalService.d.ts +14 -10
- package/dist/service/PortalService.js +106 -0
- package/dist/{methods → service}/Report.d.ts +31 -27
- package/dist/service/Report.js +275 -0
- package/dist/service/SSReport.d.ts +90 -0
- package/dist/service/SSReport.js +127 -0
- package/dist/service/ScheduleTaskService.d.ts +15 -0
- package/dist/service/ScheduleTaskService.js +22 -0
- package/dist/service/SimpleReportService.d.ts +15 -0
- package/dist/service/SimpleReportService.js +22 -0
- package/dist/service/SpreadSheetReportService.d.ts +47 -0
- package/dist/service/SpreadSheetReportService.js +65 -0
- package/dist/service/SystemConfigService.d.ts +21 -0
- package/dist/service/SystemConfigService.js +28 -0
- package/dist/service/TimeConsuming.d.ts +10 -0
- package/dist/service/TimeConsuming.js +13 -0
- package/dist/service/TimeConsumingService.d.ts +8 -0
- package/dist/service/TimeConsumingService.js +13 -0
- package/dist/{methods → service}/UserManagerService.d.ts +40 -36
- package/dist/service/UserManagerService.js +365 -0
- package/dist/types-C2_iES_3.d.ts +363 -0
- package/dist/vite-plugin/vite-plugin-smartbi.d.ts +21 -0
- package/dist/vite-plugin/vite-plugin-smartbi.js +54 -0
- package/dist/vite-plugin/vite-plugin-smartbix.d.ts +17 -0
- package/dist/vite-plugin/vite-plugin-smartbix.js +101 -0
- package/package.json +59 -141
- package/dist/methods/AnalysisReportService.js +0 -126
- package/dist/methods/BusinessThemeService.d.ts +0 -8
- package/dist/methods/BusinessThemeService.js +0 -11
- package/dist/methods/BusinessViewService.js +0 -120
- package/dist/methods/CatalogService.js +0 -230
- package/dist/methods/ClientCombinedReportService.js +0 -82
- package/dist/methods/ClientInsightService.js +0 -107
- package/dist/methods/ClientReportService.js +0 -206
- package/dist/methods/CombinedReportService.d.ts +0 -7
- package/dist/methods/CombinedReportService.js +0 -10
- package/dist/methods/DataSourceService.js +0 -220
- package/dist/methods/GraphicReportService.d.ts +0 -7
- package/dist/methods/GraphicReportService.js +0 -10
- package/dist/methods/InsightReport.d.ts +0 -71
- package/dist/methods/InsightReport.js +0 -98
- package/dist/methods/MetadataService.js +0 -47
- package/dist/methods/OfficeReport.d.ts +0 -49
- package/dist/methods/OfficeReport.js +0 -65
- package/dist/methods/OfficeReportService.js +0 -46
- package/dist/methods/OltpMetadataService.d.ts +0 -19
- package/dist/methods/OltpMetadataService.js +0 -25
- package/dist/methods/ParameterService.d.ts +0 -12
- package/dist/methods/ParameterService.js +0 -18
- package/dist/methods/PoolService.d.ts +0 -11
- package/dist/methods/PoolService.js +0 -17
- package/dist/methods/PortalService.js +0 -89
- package/dist/methods/Report.js +0 -230
- package/dist/methods/SSReport.d.ts +0 -86
- package/dist/methods/SSReport.js +0 -114
- package/dist/methods/ScheduleTaskService.d.ts +0 -12
- package/dist/methods/ScheduleTaskService.js +0 -18
- package/dist/methods/SimpleReportService.d.ts +0 -12
- package/dist/methods/SimpleReportService.js +0 -18
- package/dist/methods/SpreadSheetReportService.d.ts +0 -43
- package/dist/methods/SpreadSheetReportService.js +0 -55
- package/dist/methods/SystemConfigService.d.ts +0 -17
- package/dist/methods/SystemConfigService.js +0 -23
- package/dist/methods/TimeConsuming.d.ts +0 -6
- package/dist/methods/TimeConsuming.js +0 -9
- package/dist/methods/TimeConsumingService.d.ts +0 -5
- package/dist/methods/TimeConsumingService.js +0 -9
- package/dist/methods/UserManagerService.js +0 -312
- package/dist/types.d.ts +0 -412
- package/dist/types.js +0 -61
- package/dist/vite-plugin-smartbi/index.d.ts +0 -36
- package/dist/vite-plugin-smartbi/index.js +0 -107
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { smartbi } from "../index.js";
|
|
2
|
+
|
|
3
|
+
//#region src/service/CatalogService.ts
|
|
4
|
+
/**
|
|
5
|
+
* 判断某个资源是否可访问。
|
|
6
|
+
* 参数:
|
|
7
|
+
* elementId - 资源ID
|
|
8
|
+
* type - 访问类型:
|
|
9
|
+
* 1.引用权限:REF
|
|
10
|
+
* 2.查看权限:READ
|
|
11
|
+
* 3.编辑权限:WRITE
|
|
12
|
+
* @param elementId 资源ID
|
|
13
|
+
* @param type 访问类型
|
|
14
|
+
* @returns 返回是否有权限的布尔值
|
|
15
|
+
*/
|
|
16
|
+
const isCatalogElementAccessible = (elementId, type) => {
|
|
17
|
+
return smartbi("CatalogService", "isCatalogElementAccessible", [elementId, type]);
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 获取资源树的顶层节点列表
|
|
21
|
+
* @returns 返回顶层节点列表,节点类型为CatalogElement
|
|
22
|
+
*/
|
|
23
|
+
const getRootElements = () => {
|
|
24
|
+
return smartbi("CatalogService", "getRootElements", []);
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 获得指定节点的子节点列表
|
|
28
|
+
* @param nodeId 指定节点ID
|
|
29
|
+
* @returns 返回子节点列表,节点类型为CatalogElement
|
|
30
|
+
*/
|
|
31
|
+
const getChildElements = (nodeId) => {
|
|
32
|
+
return smartbi("CatalogService", "getChildElements", [nodeId]);
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* 创建目录
|
|
36
|
+
* @param parentNodeId 父目录ID
|
|
37
|
+
* @param name 目录名称
|
|
38
|
+
* @param alias 目录别名
|
|
39
|
+
* @param desc 目录描述
|
|
40
|
+
* @param type 目录类型,此项可为空,系统会自动根据父目录的类型进行设置
|
|
41
|
+
* @param hiddenInBrowse 是否在浏览模块中隐藏此目录
|
|
42
|
+
* @returns 返回创建的目录对象,类型为CatalogElement
|
|
43
|
+
*/
|
|
44
|
+
const createFolder = (parentNodeId, name, alias, desc, type, hiddenInBrowse) => {
|
|
45
|
+
return smartbi("CatalogService", "createFolder", [
|
|
46
|
+
parentNodeId,
|
|
47
|
+
name,
|
|
48
|
+
alias,
|
|
49
|
+
desc,
|
|
50
|
+
type,
|
|
51
|
+
hiddenInBrowse
|
|
52
|
+
]);
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 通过ID创建目录
|
|
56
|
+
* @param parentNodeId 父目录ID
|
|
57
|
+
* @param id 目录ID
|
|
58
|
+
* @param name 目录名称
|
|
59
|
+
* @param alias 目录别名
|
|
60
|
+
* @param desc 目录描述
|
|
61
|
+
* @param type 目录类型,此项可为空,系统会自动根据父目录的类型进行设置
|
|
62
|
+
* @param hiddenInBrowse 是否在浏览模块中隐藏此目录
|
|
63
|
+
* @returns 返回创建的目录对象,类型为CatalogElement
|
|
64
|
+
*/
|
|
65
|
+
const createFolderById = (parentNodeId, id, name, alias, desc, type, hiddenInBrowse) => {
|
|
66
|
+
return smartbi("CatalogService", "createFolderById", [
|
|
67
|
+
parentNodeId,
|
|
68
|
+
id,
|
|
69
|
+
name,
|
|
70
|
+
alias,
|
|
71
|
+
desc,
|
|
72
|
+
type,
|
|
73
|
+
hiddenInBrowse
|
|
74
|
+
]);
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* 通过ID访问资源
|
|
78
|
+
* @param elementId 资源ID
|
|
79
|
+
* @returns 返回资源对象,类型为CatalogElement
|
|
80
|
+
*/
|
|
81
|
+
const getCatalogElementById = (elementId) => {
|
|
82
|
+
return smartbi("CatalogService", "getCatalogElementById", [elementId]);
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* 通过类型获取结点
|
|
86
|
+
* @param type 节点类型
|
|
87
|
+
* @returns 返回指定类型的节点列表,节点类型为CatalogElement
|
|
88
|
+
*/
|
|
89
|
+
const getCatalogElementByType = (type) => {
|
|
90
|
+
return smartbi("CatalogService", "getCatalogElementByType", [type]);
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* 获取目录下指定类型的子元素
|
|
94
|
+
* @param parentNodeId 父节点ID
|
|
95
|
+
* @param types 要获取的子元素类型数组
|
|
96
|
+
* @returns 返回指定类型的子元素列表,节点类型为CatalogElement
|
|
97
|
+
*/
|
|
98
|
+
const getChildElementsByTypes = (parentNodeId, types) => {
|
|
99
|
+
return smartbi("CatalogService", "getChildElementsByTypes", [parentNodeId, types.toString()]);
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* 获取资源直接被授予的权限信息
|
|
103
|
+
* @param resId 资源ID
|
|
104
|
+
* @returns 返回资源直接被授予的权限信息,类型为ResourcePermission
|
|
105
|
+
*/
|
|
106
|
+
const getAssignedPermissions = (resId) => {
|
|
107
|
+
return smartbi("CatalogService", "getAssignedPermissions", [resId]);
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* 获取资源继承的权限信息
|
|
111
|
+
* @param resId 资源ID
|
|
112
|
+
* @returns 返回资源继承的权限信息列表,类型为ResourcePermissionItem[]
|
|
113
|
+
*/
|
|
114
|
+
const getInheritedPermissions = (resId) => {
|
|
115
|
+
return smartbi("CatalogService", "getInheritedPermissions", [resId]);
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* 通过ID删除资源
|
|
119
|
+
* @param id 资源ID
|
|
120
|
+
* @returns 无返回值
|
|
121
|
+
*/
|
|
122
|
+
const deleteCatalogElement = (id) => {
|
|
123
|
+
return smartbi("CatalogService", "deleteCatalogElement", [id]);
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* 根据别名或名称模糊查询资源信息
|
|
127
|
+
* @param alias 别名或名称关键字
|
|
128
|
+
* @param purview "READ":"查看"; "WRITE":"编辑"; "REF":"引用"
|
|
129
|
+
* @returns 返回搜索结果列表,类型为ICatalogSearchResult[]
|
|
130
|
+
*/
|
|
131
|
+
const searchCatalogElementLikeAlias = (alias, purview) => {
|
|
132
|
+
return smartbi("CatalogService", "searchCatalogElementLikeAlias", [alias, purview]);
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* 设置该资源的组权限
|
|
136
|
+
* @param elementId 资源ID
|
|
137
|
+
* @param groupId 组ID
|
|
138
|
+
* @param type 权限类型
|
|
139
|
+
* @param inherited 是否继承
|
|
140
|
+
* @param permissionDescendType 权限下降类型
|
|
141
|
+
* @param isGroupDescend 是否组下降
|
|
142
|
+
* @returns 无返回值
|
|
143
|
+
*/
|
|
144
|
+
const setAssignedPermissionByGroup = (elementId, groupId, type, inherited, permissionDescendType, isGroupDescend) => {
|
|
145
|
+
return smartbi("CatalogService", "setAssignedPermissionByGroup", [
|
|
146
|
+
elementId,
|
|
147
|
+
groupId,
|
|
148
|
+
type,
|
|
149
|
+
inherited,
|
|
150
|
+
permissionDescendType,
|
|
151
|
+
isGroupDescend
|
|
152
|
+
]);
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* 设置该资源的角色权限
|
|
156
|
+
* @param elementId 资源ID
|
|
157
|
+
* @param roleId 角色ID
|
|
158
|
+
* @param type 权限类型
|
|
159
|
+
* @param inherited 是否继承
|
|
160
|
+
* @param permissionDescendType 权限下降类型
|
|
161
|
+
* @returns 无返回值
|
|
162
|
+
*/
|
|
163
|
+
const setAssignedPermissionByRole = (elementId, roleId, type, inherited, permissionDescendType) => {
|
|
164
|
+
return smartbi("CatalogService", "setAssignedPermissionByRole", [
|
|
165
|
+
elementId,
|
|
166
|
+
roleId,
|
|
167
|
+
type,
|
|
168
|
+
inherited,
|
|
169
|
+
permissionDescendType
|
|
170
|
+
]);
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* 设置该资源的用户权限
|
|
174
|
+
* @param elementId 资源ID
|
|
175
|
+
* @param userId 用户ID
|
|
176
|
+
* @param type 权限类型
|
|
177
|
+
* @param inherited 是否继承
|
|
178
|
+
* @param permissionDescendType 权限下降类型
|
|
179
|
+
* @returns 无返回值
|
|
180
|
+
*/
|
|
181
|
+
const setAssignedPermissionByUser = (elementId, userId, type, inherited, permissionDescendType) => {
|
|
182
|
+
return smartbi("CatalogService", "setAssignedPermissionByUser", [
|
|
183
|
+
elementId,
|
|
184
|
+
userId,
|
|
185
|
+
type,
|
|
186
|
+
inherited,
|
|
187
|
+
permissionDescendType
|
|
188
|
+
]);
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* 更换资源节点的图片
|
|
192
|
+
* @param id 资源ID
|
|
193
|
+
* @param image 图片路径或图片数据
|
|
194
|
+
* @returns 无返回值
|
|
195
|
+
*/
|
|
196
|
+
const updateCatalogElementImage = (id, image) => {
|
|
197
|
+
return smartbi("CatalogService", "updateCatalogElementImage", [id, image]);
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* 根据ID修改资源信息
|
|
201
|
+
* @param id 资源ID
|
|
202
|
+
* @param jsonNodeConfig JSON节点配置 资源定义,json字符串,格式如下: "{\"alias\":\"复选框_报表2\",\"desc\":\"复选框_报表2\",\"deletedExtKeys\":\"hasChild,detectChild\",\"extended\":\"{'customImage':'Foldera.jpg','hiddenInBrowse':'false'}\"}" alias: 可选属性,别名 desc: 可选属性,描述 deletedExtKeys:可选属性,需要删除的扩展属性的key,参数内容可以不包含该属性 extended:可选属性,需要新增或修改的扩展属性内容,参数内容可以不包含该属性
|
|
203
|
+
* @param wholeExtended 完整的扩展内容,json字符串,格式如下:{"extended": "{\"hasChild\":\"false\",\"hiddenInBrowse\":\"false\"}"}。 该参数内容可为空。如不为空,扩展字段内容将全部替换为该参数内容,否则只对扩展属性进行增量添加。
|
|
204
|
+
* @returns 无返回值
|
|
205
|
+
*/
|
|
206
|
+
const updateCatalogNode = (id, jsonNodeConfig, wholeExtended) => {
|
|
207
|
+
return smartbi("CatalogService", "updateCatalogNode", [
|
|
208
|
+
id,
|
|
209
|
+
jsonNodeConfig,
|
|
210
|
+
wholeExtended
|
|
211
|
+
]);
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* 创建WEB链接
|
|
215
|
+
* @param parentFolderId 父文件夹ID
|
|
216
|
+
* @param urlName URL名称
|
|
217
|
+
* @param urlAlias URL别名
|
|
218
|
+
* @param urlDesc URL描述
|
|
219
|
+
* @param url URL地址
|
|
220
|
+
* @param setting 设置是否新窗口打开以及是否传递登录信息
|
|
221
|
+
* 设置在当前窗口打开设置如下: {"currentWindow":true}
|
|
222
|
+
* 设置在当前窗口打开并传递登录信息设置如下: {"currentWindow":true,"autoLogin":true}
|
|
223
|
+
* 如果此值设置为空,则系统会默认为在新窗口打开并不传递登录信息
|
|
224
|
+
* @returns 返回新创建的URL链接ID
|
|
225
|
+
*/
|
|
226
|
+
const createURLLink = (parentFolderId, urlName, urlAlias, urlDesc, url, setting) => {
|
|
227
|
+
return smartbi("CatalogService", "createURLLink", [
|
|
228
|
+
parentFolderId,
|
|
229
|
+
urlName,
|
|
230
|
+
urlAlias,
|
|
231
|
+
urlDesc,
|
|
232
|
+
url,
|
|
233
|
+
setting
|
|
234
|
+
]);
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* 更新WEB链接
|
|
238
|
+
* @param urlID 结点ID
|
|
239
|
+
* @param urlAlias URL别名
|
|
240
|
+
* @param urlDesc URL描述
|
|
241
|
+
* @param url URL地址
|
|
242
|
+
* @param setting 设置是否新窗口打开以及是否传递登录信息
|
|
243
|
+
* 设置在当前窗口打开设置如下: {"currentWindow":true}
|
|
244
|
+
* 设置在当前窗口打开并传递登录信息设置如下: {"currentWindow":true,"autoLogin":true}
|
|
245
|
+
* 如果此值设置为空,则系统会默认为在新窗口打开并不传递登录信
|
|
246
|
+
* @returns 无返回值
|
|
247
|
+
*/
|
|
248
|
+
const updateURLLink = (urlID, urlAlias, urlDesc, url, setting) => {
|
|
249
|
+
return smartbi("CatalogService", "updateURLLink", [
|
|
250
|
+
urlID,
|
|
251
|
+
urlAlias,
|
|
252
|
+
urlDesc,
|
|
253
|
+
url,
|
|
254
|
+
setting
|
|
255
|
+
]);
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* 复制粘贴并返回新ID
|
|
259
|
+
* @param toId 目标ID
|
|
260
|
+
* @param srcId 源ID
|
|
261
|
+
* @param name 名称
|
|
262
|
+
* @param alias 别名
|
|
263
|
+
* @param desc 描述
|
|
264
|
+
* @returns 返回新创建元素的ID
|
|
265
|
+
*/
|
|
266
|
+
const copyAndPasteReturnNewId = (toId, srcId, name, alias, desc) => {
|
|
267
|
+
return smartbi("CatalogService", "copyAndPasteReturnNewId", [
|
|
268
|
+
toId,
|
|
269
|
+
srcId,
|
|
270
|
+
name,
|
|
271
|
+
alias,
|
|
272
|
+
desc
|
|
273
|
+
]);
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* 创建资源树结点
|
|
277
|
+
* 注意:此方法是单纯新建一个树结点,调用此方法前,必须存在此结点类型的实体资源.
|
|
278
|
+
* @param parentId 父ID
|
|
279
|
+
* @param id ID
|
|
280
|
+
* @param name 名称
|
|
281
|
+
* @param alias 别名
|
|
282
|
+
* @param desc 描述
|
|
283
|
+
* @param order 顺序
|
|
284
|
+
* @param type 类型
|
|
285
|
+
* @returns 返回创建的资源节点,类型为CatalogElement
|
|
286
|
+
*/
|
|
287
|
+
const createCatalogElement = (parentId, id, name, alias, desc, order, type) => {
|
|
288
|
+
return smartbi("CatalogService", "createCatalogElement", [
|
|
289
|
+
parentId,
|
|
290
|
+
id,
|
|
291
|
+
name,
|
|
292
|
+
alias,
|
|
293
|
+
desc,
|
|
294
|
+
order,
|
|
295
|
+
type
|
|
296
|
+
]);
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
//#endregion
|
|
300
|
+
export { copyAndPasteReturnNewId, createCatalogElement, createFolder, createFolderById, createURLLink, deleteCatalogElement, getAssignedPermissions, getCatalogElementById, getCatalogElementByType, getChildElements, getChildElementsByTypes, getInheritedPermissions, getRootElements, isCatalogElementAccessible, searchCatalogElementLikeAlias, setAssignedPermissionByGroup, setAssignedPermissionByRole, setAssignedPermissionByUser, updateCatalogElementImage, updateCatalogNode, updateURLLink };
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { b as IClientCombinedReportView } from "../types-C2_iES_3.js";
|
|
2
|
+
|
|
3
|
+
//#region src/service/ClientCombinedReportService.d.ts
|
|
2
4
|
/**
|
|
3
5
|
* 打开一个即席查询报表
|
|
4
6
|
* @param queryId 报表ID
|
|
5
7
|
* @returns 返回打开的报表视图,类型为IClientCombinedReportView
|
|
6
8
|
*/
|
|
7
|
-
|
|
9
|
+
declare const openQuery: (queryId: string) => Promise<IClientCombinedReportView>;
|
|
8
10
|
/**
|
|
9
11
|
* 打开一个即席查询报表(不初始化)
|
|
10
12
|
* @param queryId 报表ID
|
|
11
13
|
* @returns 返回打开的报表视图,类型为IClientCombinedReportView
|
|
12
14
|
*/
|
|
13
|
-
|
|
15
|
+
declare const openQueryWithoutInit: (queryId: string) => Promise<IClientCombinedReportView>;
|
|
14
16
|
/**
|
|
15
17
|
* 同步条件面板参数
|
|
16
18
|
* @param combinedClientId combinedClientId
|
|
17
19
|
* @param condPanelClientId condPanelClientId
|
|
18
20
|
* @returns 无返回值
|
|
19
21
|
*/
|
|
20
|
-
|
|
22
|
+
declare const updateConditionPanel: (combinedClientId: string, condPanelClientId: string) => Promise<void>;
|
|
21
23
|
/**
|
|
22
24
|
* 将报表信息从服务端的会话状态中清除
|
|
23
25
|
* @param combinedClientId 客户ID
|
|
24
26
|
* @returns 无返回值
|
|
25
27
|
*/
|
|
26
|
-
|
|
28
|
+
declare const removeFromSession: (combinedClientId: string) => Promise<void>;
|
|
27
29
|
/**
|
|
28
30
|
* 克隆查询
|
|
29
31
|
* @param clientId 客户端ID
|
|
@@ -33,14 +35,14 @@ export declare const removeFromSession: (combinedClientId: string) => Promise<vo
|
|
|
33
35
|
* @param desc 描述
|
|
34
36
|
* @returns 返回新客户端ID
|
|
35
37
|
*/
|
|
36
|
-
|
|
38
|
+
declare const cloneQuery: (clientId: string, parentNodeId: string, name: string, alias: string, desc: string) => Promise<string>;
|
|
37
39
|
/**
|
|
38
40
|
* 导出报表
|
|
39
41
|
* @param clientId 客户端ID
|
|
40
42
|
* @param reportId 报表ID
|
|
41
43
|
* @returns 无返回值
|
|
42
44
|
*/
|
|
43
|
-
|
|
45
|
+
declare const dump: (clientId: string, reportId: string) => Promise<void>;
|
|
44
46
|
/**
|
|
45
47
|
* 覆盖查询
|
|
46
48
|
* @param clientId 客户端ID
|
|
@@ -48,16 +50,18 @@ export declare const dump: (clientId: string, reportId: string) => Promise<void>
|
|
|
48
50
|
* @param desc 描述
|
|
49
51
|
* @returns 返回true/false
|
|
50
52
|
*/
|
|
51
|
-
|
|
53
|
+
declare const overwriteQuery: (clientId: string, replacedReportId: string, desc: string) => Promise<boolean>;
|
|
52
54
|
/**
|
|
53
55
|
* 获取即席查询的数据来源类型
|
|
54
56
|
* @param queryId 即席查询id
|
|
55
57
|
* @returns 返回数据来源类型
|
|
56
58
|
*/
|
|
57
|
-
|
|
59
|
+
declare const getDataSourceType: (queryId: string) => Promise<string>;
|
|
58
60
|
/**
|
|
59
61
|
* 获取即席查询的类型
|
|
60
62
|
* @param reportId 即席查询id
|
|
61
63
|
* @returns 返回类型
|
|
62
64
|
*/
|
|
63
|
-
|
|
65
|
+
declare const getExtendedType: (reportId: string) => Promise<string>;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { cloneQuery, dump, getDataSourceType, getExtendedType, openQuery, openQueryWithoutInit, overwriteQuery, removeFromSession, updateConditionPanel };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { smartbi } from "../index.js";
|
|
2
|
+
|
|
3
|
+
//#region src/service/ClientCombinedReportService.ts
|
|
4
|
+
/**
|
|
5
|
+
* 打开一个即席查询报表
|
|
6
|
+
* @param queryId 报表ID
|
|
7
|
+
* @returns 返回打开的报表视图,类型为IClientCombinedReportView
|
|
8
|
+
*/
|
|
9
|
+
const openQuery = (queryId) => {
|
|
10
|
+
return smartbi("ClientCombinedReportService", "openQuery", [queryId]);
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 打开一个即席查询报表(不初始化)
|
|
14
|
+
* @param queryId 报表ID
|
|
15
|
+
* @returns 返回打开的报表视图,类型为IClientCombinedReportView
|
|
16
|
+
*/
|
|
17
|
+
const openQueryWithoutInit = (queryId) => {
|
|
18
|
+
return smartbi("ClientCombinedReportService", "openQueryWithoutInit", [queryId]);
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 同步条件面板参数
|
|
22
|
+
* @param combinedClientId combinedClientId
|
|
23
|
+
* @param condPanelClientId condPanelClientId
|
|
24
|
+
* @returns 无返回值
|
|
25
|
+
*/
|
|
26
|
+
const updateConditionPanel = (combinedClientId, condPanelClientId) => {
|
|
27
|
+
return smartbi("ClientCombinedReportService", "updateConditionPanel", [combinedClientId, condPanelClientId]);
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* 将报表信息从服务端的会话状态中清除
|
|
31
|
+
* @param combinedClientId 客户ID
|
|
32
|
+
* @returns 无返回值
|
|
33
|
+
*/
|
|
34
|
+
const removeFromSession = (combinedClientId) => {
|
|
35
|
+
return smartbi("ClientCombinedReportService", "removeFromSession", [combinedClientId]);
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 克隆查询
|
|
39
|
+
* @param clientId 客户端ID
|
|
40
|
+
* @param parentNodeId 父节点ID
|
|
41
|
+
* @param name 名称
|
|
42
|
+
* @param alias 别名
|
|
43
|
+
* @param desc 描述
|
|
44
|
+
* @returns 返回新客户端ID
|
|
45
|
+
*/
|
|
46
|
+
const cloneQuery = (clientId, parentNodeId, name, alias, desc) => {
|
|
47
|
+
return smartbi("ClientCombinedReportService", "cloneQuery", [
|
|
48
|
+
clientId,
|
|
49
|
+
parentNodeId,
|
|
50
|
+
name,
|
|
51
|
+
alias,
|
|
52
|
+
desc
|
|
53
|
+
]);
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 导出报表
|
|
57
|
+
* @param clientId 客户端ID
|
|
58
|
+
* @param reportId 报表ID
|
|
59
|
+
* @returns 无返回值
|
|
60
|
+
*/
|
|
61
|
+
const dump = (clientId, reportId) => {
|
|
62
|
+
return smartbi("ClientCombinedReportService", "dump", [clientId, reportId]);
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* 覆盖查询
|
|
66
|
+
* @param clientId 客户端ID
|
|
67
|
+
* @param replacedReportId 报表ID
|
|
68
|
+
* @param desc 描述
|
|
69
|
+
* @returns 返回true/false
|
|
70
|
+
*/
|
|
71
|
+
const overwriteQuery = (clientId, replacedReportId, desc) => {
|
|
72
|
+
return smartbi("ClientCombinedReportService", "overwriteQuery", [
|
|
73
|
+
clientId,
|
|
74
|
+
replacedReportId,
|
|
75
|
+
desc
|
|
76
|
+
]);
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* 获取即席查询的数据来源类型
|
|
80
|
+
* @param queryId 即席查询id
|
|
81
|
+
* @returns 返回数据来源类型
|
|
82
|
+
*/
|
|
83
|
+
const getDataSourceType = (queryId) => {
|
|
84
|
+
return smartbi("ClientCombinedReportService", "getDataSourceType", [queryId]);
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* 获取即席查询的类型
|
|
88
|
+
* @param reportId 即席查询id
|
|
89
|
+
* @returns 返回类型
|
|
90
|
+
*/
|
|
91
|
+
const getExtendedType = (reportId) => {
|
|
92
|
+
return smartbi("ClientCombinedReportService", "getExtendedType", [reportId]);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
//#endregion
|
|
96
|
+
export { cloneQuery, dump, getDataSourceType, getExtendedType, openQuery, openQueryWithoutInit, overwriteQuery, removeFromSession, updateConditionPanel };
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { D as NameValuePair, F as ReportData, U as SystemConfig } from "../types-C2_iES_3.js";
|
|
2
|
+
|
|
3
|
+
//#region src/service/ClientInsightService.d.ts
|
|
2
4
|
/**
|
|
3
5
|
* 清空透视分析临时表
|
|
4
6
|
* @returns 无返回值
|
|
5
7
|
*/
|
|
6
|
-
|
|
8
|
+
declare const cleanTempTablePool: () => Promise<void>;
|
|
7
9
|
/**
|
|
8
10
|
* 打开透视分析
|
|
9
11
|
* @param reportId 报表Id
|
|
10
12
|
* @param pageId 页面Id
|
|
11
13
|
* @returns 返回JSON对象
|
|
12
14
|
*/
|
|
13
|
-
|
|
15
|
+
declare const openQuery: (reportId: string, pageId: string) => Promise<any>;
|
|
14
16
|
/**
|
|
15
17
|
* 获取参数备选值
|
|
16
18
|
* @param panelId 参数面板ClientId
|
|
17
19
|
* @param paramId 参数Id
|
|
18
20
|
* @returns 返回键值对列表
|
|
19
21
|
*/
|
|
20
|
-
|
|
22
|
+
declare const getParamStandbyValue: (panelId: string, paramId: string) => Promise<NameValuePair[]>;
|
|
21
23
|
/**
|
|
22
24
|
* 根据参数Id获取参数默认值
|
|
23
25
|
* @param panelId 参数面板ClientId
|
|
24
26
|
* @param paramId 参数Id
|
|
25
27
|
* @returns 返回JSON数组
|
|
26
28
|
*/
|
|
27
|
-
|
|
29
|
+
declare const getParamDefaultValueByPID: (panelId: string, paramId: string) => Promise<any[]>;
|
|
28
30
|
/**
|
|
29
31
|
* 设置参数值
|
|
30
32
|
* @param panelId 参数面板ClientId
|
|
@@ -33,13 +35,13 @@ export declare const getParamDefaultValueByPID: (panelId: string, paramId: strin
|
|
|
33
35
|
* @param displayValue 参数显示值
|
|
34
36
|
* @returns 无返回值
|
|
35
37
|
*/
|
|
36
|
-
|
|
38
|
+
declare const setParamValue: (panelId: string, paramId: string, value: string, displayValue: string) => Promise<void>;
|
|
37
39
|
/**
|
|
38
40
|
* 关闭透视分析
|
|
39
41
|
* @param clientId clientId
|
|
40
42
|
* @returns 无返回值
|
|
41
43
|
*/
|
|
42
|
-
|
|
44
|
+
declare const close: (clientId: string) => Promise<void>;
|
|
43
45
|
/**
|
|
44
46
|
* 创建透视分析
|
|
45
47
|
* @param businessViewId 业务查询ID
|
|
@@ -49,35 +51,37 @@ export declare const close: (clientId: string) => Promise<void>;
|
|
|
49
51
|
* @param folderId 保存目录的ID
|
|
50
52
|
* @returns 返回透视分析ID
|
|
51
53
|
*/
|
|
52
|
-
|
|
54
|
+
declare const createInsightQuery: (businessViewId: string, name: string, alias: string, desc: string, folderId: string) => Promise<string>;
|
|
53
55
|
/**
|
|
54
56
|
* 重新获取报表对象的当前状态
|
|
55
57
|
* @param clientId clientId
|
|
56
58
|
* @returns 返回查询结果JSON对象
|
|
57
59
|
*/
|
|
58
|
-
|
|
60
|
+
declare const getInsightQuery: (clientId: string) => Promise<any>;
|
|
59
61
|
/**
|
|
60
62
|
* 获取透视分析系统选项导出使用缓存默认值
|
|
61
63
|
* @returns 返回systemconfig
|
|
62
64
|
*/
|
|
63
|
-
|
|
65
|
+
declare const getExportWithCacheConfig: () => Promise<SystemConfig>;
|
|
64
66
|
/**
|
|
65
67
|
* 获取原始报表数据
|
|
66
68
|
* @param clientId 客户端ID
|
|
67
69
|
* @param pageNum 页码
|
|
68
70
|
* @returns 返回原始报表数据
|
|
69
71
|
*/
|
|
70
|
-
|
|
72
|
+
declare const getRawReportData: (clientId: string, pageNum: number) => Promise<ReportData>;
|
|
71
73
|
/**
|
|
72
74
|
* 取得一个表达式的值
|
|
73
75
|
* @param clientId 客户ID
|
|
74
76
|
* @param func 表达式
|
|
75
77
|
* @returns 返回表达式的值
|
|
76
78
|
*/
|
|
77
|
-
|
|
79
|
+
declare const getFunctionValue: (clientId: string, func: string) => Promise<string>;
|
|
78
80
|
/**
|
|
79
81
|
* 取得clientConfig
|
|
80
82
|
* @param clientId 客户ID
|
|
81
83
|
* @returns 返回clientConfig
|
|
82
84
|
*/
|
|
83
|
-
|
|
85
|
+
declare const getClientConfig: (clientId: string) => Promise<string>;
|
|
86
|
+
//#endregion
|
|
87
|
+
export { cleanTempTablePool, close, createInsightQuery, getClientConfig, getExportWithCacheConfig, getFunctionValue, getInsightQuery, getParamDefaultValueByPID, getParamStandbyValue, getRawReportData, openQuery, setParamValue };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { smartbi } from "../index.js";
|
|
2
|
+
|
|
3
|
+
//#region src/service/ClientInsightService.ts
|
|
4
|
+
/**
|
|
5
|
+
* 清空透视分析临时表
|
|
6
|
+
* @returns 无返回值
|
|
7
|
+
*/
|
|
8
|
+
const cleanTempTablePool = () => {
|
|
9
|
+
return smartbi("ClientInsightService", "cleanTempTablePool", []);
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 打开透视分析
|
|
13
|
+
* @param reportId 报表Id
|
|
14
|
+
* @param pageId 页面Id
|
|
15
|
+
* @returns 返回JSON对象
|
|
16
|
+
*/
|
|
17
|
+
const openQuery = (reportId, pageId) => {
|
|
18
|
+
return smartbi("ClientInsightService", "openQuery", [reportId, pageId]);
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 获取参数备选值
|
|
22
|
+
* @param panelId 参数面板ClientId
|
|
23
|
+
* @param paramId 参数Id
|
|
24
|
+
* @returns 返回键值对列表
|
|
25
|
+
*/
|
|
26
|
+
const getParamStandbyValue = (panelId, paramId) => {
|
|
27
|
+
return smartbi("ClientInsightService", "getParamStandbyValue", [panelId, paramId]);
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* 根据参数Id获取参数默认值
|
|
31
|
+
* @param panelId 参数面板ClientId
|
|
32
|
+
* @param paramId 参数Id
|
|
33
|
+
* @returns 返回JSON数组
|
|
34
|
+
*/
|
|
35
|
+
const getParamDefaultValueByPID = (panelId, paramId) => {
|
|
36
|
+
return smartbi("ClientInsightService", "getParamDefaultValueByPID", [panelId, paramId]);
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 设置参数值
|
|
40
|
+
* @param panelId 参数面板ClientId
|
|
41
|
+
* @param paramId 参数Id
|
|
42
|
+
* @param value 参数真实值
|
|
43
|
+
* @param displayValue 参数显示值
|
|
44
|
+
* @returns 无返回值
|
|
45
|
+
*/
|
|
46
|
+
const setParamValue = (panelId, paramId, value, displayValue) => {
|
|
47
|
+
return smartbi("ClientInsightService", "setParamValue", [
|
|
48
|
+
panelId,
|
|
49
|
+
paramId,
|
|
50
|
+
value,
|
|
51
|
+
displayValue
|
|
52
|
+
]);
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 关闭透视分析
|
|
56
|
+
* @param clientId clientId
|
|
57
|
+
* @returns 无返回值
|
|
58
|
+
*/
|
|
59
|
+
const close = (clientId) => {
|
|
60
|
+
return smartbi("ClientInsightService", "close", [clientId]);
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* 创建透视分析
|
|
64
|
+
* @param businessViewId 业务查询ID
|
|
65
|
+
* @param name 名称
|
|
66
|
+
* @param alias 别名
|
|
67
|
+
* @param desc 描述
|
|
68
|
+
* @param folderId 保存目录的ID
|
|
69
|
+
* @returns 返回透视分析ID
|
|
70
|
+
*/
|
|
71
|
+
const createInsightQuery = (businessViewId, name, alias, desc, folderId) => {
|
|
72
|
+
return smartbi("ClientInsightService", "createInsightQuery", [
|
|
73
|
+
businessViewId,
|
|
74
|
+
name,
|
|
75
|
+
alias,
|
|
76
|
+
desc,
|
|
77
|
+
folderId
|
|
78
|
+
]);
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* 重新获取报表对象的当前状态
|
|
82
|
+
* @param clientId clientId
|
|
83
|
+
* @returns 返回查询结果JSON对象
|
|
84
|
+
*/
|
|
85
|
+
const getInsightQuery = (clientId) => {
|
|
86
|
+
return smartbi("ClientInsightService", "getInsightQuery", [clientId]);
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* 获取透视分析系统选项导出使用缓存默认值
|
|
90
|
+
* @returns 返回systemconfig
|
|
91
|
+
*/
|
|
92
|
+
const getExportWithCacheConfig = () => {
|
|
93
|
+
return smartbi("ClientInsightService", "getExportWithCacheConfig", []);
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* 获取原始报表数据
|
|
97
|
+
* @param clientId 客户端ID
|
|
98
|
+
* @param pageNum 页码
|
|
99
|
+
* @returns 返回原始报表数据
|
|
100
|
+
*/
|
|
101
|
+
const getRawReportData = (clientId, pageNum) => {
|
|
102
|
+
return smartbi("ClientInsightService", "getRawReportData", [clientId, pageNum]);
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* 取得一个表达式的值
|
|
106
|
+
* @param clientId 客户ID
|
|
107
|
+
* @param func 表达式
|
|
108
|
+
* @returns 返回表达式的值
|
|
109
|
+
*/
|
|
110
|
+
const getFunctionValue = (clientId, func) => {
|
|
111
|
+
return smartbi("ClientInsightService", "getFunctionValue", [clientId, func]);
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* 取得clientConfig
|
|
115
|
+
* @param clientId 客户ID
|
|
116
|
+
* @returns 返回clientConfig
|
|
117
|
+
*/
|
|
118
|
+
const getClientConfig = (clientId) => {
|
|
119
|
+
return smartbi("ClientInsightService", "getClientConfig", [clientId]);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
//#endregion
|
|
123
|
+
export { cleanTempTablePool, close, createInsightQuery, getClientConfig, getExportWithCacheConfig, getFunctionValue, getInsightQuery, getParamDefaultValueByPID, getParamStandbyValue, getRawReportData, openQuery, setParamValue };
|