smartbi-toolkit 1.1.3 → 1.1.4
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/dist/index.d.ts +30 -0
- package/dist/index.js +141 -0
- package/dist/methods/AnalysisReportService.d.ts +93 -0
- package/dist/methods/AnalysisReportService.js +126 -0
- package/dist/methods/BusinessThemeService.d.ts +8 -0
- package/dist/methods/BusinessThemeService.js +11 -0
- package/dist/methods/BusinessViewService.d.ts +94 -0
- package/dist/methods/BusinessViewService.js +120 -0
- package/dist/methods/CatalogService.d.ts +188 -0
- package/dist/methods/CatalogService.js +230 -0
- package/dist/methods/ClientCombinedReportService.d.ts +63 -0
- package/dist/methods/ClientCombinedReportService.js +82 -0
- package/dist/methods/ClientInsightService.d.ts +83 -0
- package/dist/methods/ClientInsightService.js +107 -0
- package/dist/methods/ClientReportService.d.ts +162 -0
- package/dist/methods/ClientReportService.js +206 -0
- package/dist/methods/CombinedReportService.d.ts +7 -0
- package/dist/methods/CombinedReportService.js +10 -0
- package/dist/methods/DataSourceService.d.ts +178 -0
- package/dist/methods/DataSourceService.js +220 -0
- package/dist/methods/GraphicReportService.d.ts +7 -0
- package/dist/methods/GraphicReportService.js +10 -0
- package/dist/methods/InsightReport.d.ts +71 -0
- package/dist/methods/InsightReport.js +98 -0
- package/dist/methods/MetadataService.d.ts +37 -0
- package/dist/methods/MetadataService.js +47 -0
- package/dist/methods/OfficeReport.d.ts +49 -0
- package/dist/methods/OfficeReport.js +65 -0
- package/dist/methods/OfficeReportService.d.ts +36 -0
- package/dist/methods/OfficeReportService.js +46 -0
- package/dist/methods/OltpMetadataService.d.ts +19 -0
- package/dist/methods/OltpMetadataService.js +25 -0
- package/dist/methods/ParameterService.d.ts +12 -0
- package/dist/methods/ParameterService.js +18 -0
- package/dist/methods/PoolService.d.ts +11 -0
- package/dist/methods/PoolService.js +17 -0
- package/dist/methods/PortalService.d.ts +66 -0
- package/dist/methods/PortalService.js +89 -0
- package/dist/methods/Report.d.ts +178 -0
- package/dist/methods/Report.js +230 -0
- package/dist/methods/SSReport.d.ts +86 -0
- package/dist/methods/SSReport.js +114 -0
- package/dist/methods/ScheduleTaskService.d.ts +12 -0
- package/dist/methods/ScheduleTaskService.js +18 -0
- package/dist/methods/SimpleReportService.d.ts +12 -0
- package/dist/methods/SimpleReportService.js +18 -0
- package/dist/methods/SpreadSheetReportService.d.ts +43 -0
- package/dist/methods/SpreadSheetReportService.js +55 -0
- package/dist/methods/SystemConfigService.d.ts +17 -0
- package/dist/methods/SystemConfigService.js +23 -0
- package/dist/methods/TimeConsuming.d.ts +6 -0
- package/dist/methods/TimeConsuming.js +9 -0
- package/dist/methods/TimeConsumingService.d.ts +5 -0
- package/dist/methods/TimeConsumingService.js +9 -0
- package/dist/methods/UserManagerService.d.ts +236 -0
- package/dist/methods/UserManagerService.js +312 -0
- package/dist/types.d.ts +412 -0
- package/dist/types.js +61 -0
- package/dist/vite-plugin-smartbi/index.d.ts +36 -0
- package/dist/vite-plugin-smartbi/index.js +107 -0
- package/package.json +1 -1
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { smartbi } from "../index";
|
|
2
|
+
/**
|
|
3
|
+
* 创建用户
|
|
4
|
+
* @param parentGroupId 父组ID
|
|
5
|
+
* @param userName 用户名
|
|
6
|
+
* @param userAlias 用户别名
|
|
7
|
+
* @param desc 描述
|
|
8
|
+
* @param password 密码
|
|
9
|
+
* @param isEnabled 是否启用
|
|
10
|
+
* @param forceChangePassword 是否强制修改密码(可选)
|
|
11
|
+
* @returns 返回新创建的用户ID
|
|
12
|
+
*/
|
|
13
|
+
export const createUser = (parentGroupId, userName, userAlias, desc, password, isEnabled, forceChangePassword) => {
|
|
14
|
+
const params = forceChangePassword !== undefined
|
|
15
|
+
? [parentGroupId, userName, userAlias, desc, password, isEnabled, forceChangePassword]
|
|
16
|
+
: [parentGroupId, userName, userAlias, desc, password, isEnabled];
|
|
17
|
+
return smartbi('UserManagerService', 'createUser', params);
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 指定ID创建用户
|
|
21
|
+
* @param parentGroupId 父组ID
|
|
22
|
+
* @param userId 用户ID
|
|
23
|
+
* @param userName 用户名
|
|
24
|
+
* @param userAlias 用户别名
|
|
25
|
+
* @param desc 描述
|
|
26
|
+
* @param password 密码
|
|
27
|
+
* @param isEnabled 是否启用
|
|
28
|
+
* @param forceChangePassword 是否强制修改密码(可选)
|
|
29
|
+
*/
|
|
30
|
+
export const createUserById = (parentGroupId, userId, userName, userAlias, desc, password, isEnabled, forceChangePassword) => {
|
|
31
|
+
const params = forceChangePassword !== undefined
|
|
32
|
+
? [parentGroupId, userId, userName, userAlias, desc, password, isEnabled, forceChangePassword]
|
|
33
|
+
: [parentGroupId, userId, userName, userAlias, desc, password, isEnabled];
|
|
34
|
+
return smartbi('UserManagerService', 'createUserById', params);
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* 删除用户
|
|
38
|
+
* @param userId 用户ID
|
|
39
|
+
* @returns 返回是否删除成功的布尔值
|
|
40
|
+
*/
|
|
41
|
+
export const deleteUser = (userId) => {
|
|
42
|
+
return smartbi('UserManagerService', 'deleteUser', [userId]);
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* 通过用户ID获取用户信息
|
|
46
|
+
* @param id 用户ID
|
|
47
|
+
* @returns 返回用户信息
|
|
48
|
+
*/
|
|
49
|
+
export const getUserById = (id) => {
|
|
50
|
+
return smartbi('UserManagerService', 'getUserById', [id]);
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* 通过用户名称获取用户信息
|
|
54
|
+
* @param name 用户名称
|
|
55
|
+
* @returns 返回用户信息
|
|
56
|
+
*/
|
|
57
|
+
export const getUserByName = (name) => {
|
|
58
|
+
return smartbi('UserManagerService', 'getUserByName', [name]);
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 根据用户扩展属性获取用户信息
|
|
62
|
+
* @param key 属性键
|
|
63
|
+
* @param value 属性值
|
|
64
|
+
* @returns 返回用户列表
|
|
65
|
+
*/
|
|
66
|
+
export const getUserByAttribute = (key, value) => {
|
|
67
|
+
return smartbi('UserManagerService', 'getUserByAttribute', [key, value]);
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* 获取系统中的用户列表
|
|
71
|
+
* @returns 返回用户列表
|
|
72
|
+
*/
|
|
73
|
+
export const getAllUsers = () => {
|
|
74
|
+
return smartbi('UserManagerService', 'getAllUsers', []);
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* 获取当前登录用户信息
|
|
78
|
+
* @returns 返回当前用户信息
|
|
79
|
+
*/
|
|
80
|
+
export const getCurrentUser = () => {
|
|
81
|
+
return smartbi('UserManagerService', 'getCurrentUser', []);
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* 修改当前用户的密码
|
|
85
|
+
* @param oldPassword 旧密码
|
|
86
|
+
* @param newPassword 新密码
|
|
87
|
+
*/
|
|
88
|
+
export const changePassword = (oldPassword, newPassword) => {
|
|
89
|
+
return smartbi('UserManagerService', 'changePassword', [oldPassword, newPassword]);
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* 获取用户密码
|
|
93
|
+
* @param userName 用户名
|
|
94
|
+
* @returns 返回用户密码
|
|
95
|
+
*/
|
|
96
|
+
export const getPassword = (userName) => {
|
|
97
|
+
return smartbi('UserManagerService', 'getPassword', [userName]);
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* 创建角色
|
|
101
|
+
* @param roleName 角色名称
|
|
102
|
+
* @param roleAlias 角色别名
|
|
103
|
+
* @param desc 描述
|
|
104
|
+
* @param groupId 组ID
|
|
105
|
+
* @returns 返回新创建的角色ID
|
|
106
|
+
*/
|
|
107
|
+
export const createRole = (roleName, roleAlias, desc, groupId) => {
|
|
108
|
+
return smartbi('UserManagerService', 'createRole', [roleName, roleAlias, desc, groupId]);
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* 删除角色
|
|
112
|
+
* @param roleId 角色ID
|
|
113
|
+
* @returns 返回是否删除成功的布尔值
|
|
114
|
+
*/
|
|
115
|
+
export const deleteRole = (roleId) => {
|
|
116
|
+
return smartbi('UserManagerService', 'deleteRole', [roleId]);
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* 通过ID获取角色
|
|
120
|
+
* @param id 角色ID
|
|
121
|
+
* @returns 返回角色信息
|
|
122
|
+
*/
|
|
123
|
+
export const getRoleById = (id) => {
|
|
124
|
+
return smartbi('UserManagerService', 'getRoleById', [id]);
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* 通过角色名称获取角色对象
|
|
128
|
+
* @param name 角色名称
|
|
129
|
+
* @returns 返回角色信息
|
|
130
|
+
*/
|
|
131
|
+
export const getRoleByName = (name) => {
|
|
132
|
+
return smartbi('UserManagerService', 'getRoleByName', [name]);
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* 获取系统中的角色列表
|
|
136
|
+
* @returns 返回角色列表
|
|
137
|
+
*/
|
|
138
|
+
export const getAllRoles = () => {
|
|
139
|
+
return smartbi('UserManagerService', 'getAllRoles', []);
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* 给用户分配角色
|
|
143
|
+
* @param userId 用户ID
|
|
144
|
+
* @param roleIdList 角色ID列表
|
|
145
|
+
* @returns 返回是否分配成功的布尔值
|
|
146
|
+
*/
|
|
147
|
+
export const assignRolesToUser = (userId, roleIdList) => {
|
|
148
|
+
return smartbi('UserManagerService', 'assignRolesToUser', [userId, roleIdList.toString()]);
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* 给角色分配用户
|
|
152
|
+
* @param roleId 角色ID
|
|
153
|
+
* @param userIdList 用户ID列表
|
|
154
|
+
* @returns 返回是否分配成功的布尔值
|
|
155
|
+
*/
|
|
156
|
+
export const assignUsersToRole = (roleId, userIdList) => {
|
|
157
|
+
return smartbi('UserManagerService', 'assignUsersToRole', [roleId, userIdList.toString()]);
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* 创建组
|
|
161
|
+
* @param parentGroupId 父组ID
|
|
162
|
+
* @param groupName 组名称
|
|
163
|
+
* @param groupAlias 组别名
|
|
164
|
+
* @param desc 描述
|
|
165
|
+
* @param departmentCode 组编号
|
|
166
|
+
* @returns 返回新创建的组ID
|
|
167
|
+
*/
|
|
168
|
+
export const createDepartment = (parentGroupId, groupName, groupAlias, desc, departmentCode) => {
|
|
169
|
+
return smartbi('UserManagerService', 'createDepartment', [parentGroupId, groupName, groupAlias, desc, departmentCode]);
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* 删除组
|
|
173
|
+
* @param groupId 组ID
|
|
174
|
+
* @returns 返回是否删除成功的布尔值
|
|
175
|
+
*/
|
|
176
|
+
export const deleteDepartment = (groupId) => {
|
|
177
|
+
return smartbi('UserManagerService', 'deleteDepartment', [groupId]);
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* 通过ID获取组对象
|
|
181
|
+
* @param id 组ID
|
|
182
|
+
* @returns 返回组信息
|
|
183
|
+
*/
|
|
184
|
+
export const getDepartmentById = (id) => {
|
|
185
|
+
return smartbi('UserManagerService', 'getDepartmentById', [id]);
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* 通过组名称获取组对象
|
|
189
|
+
* @param name 组名称
|
|
190
|
+
* @returns 返回组信息
|
|
191
|
+
*/
|
|
192
|
+
export const getDepartmentByName = (name) => {
|
|
193
|
+
return smartbi('UserManagerService', 'getDepartmentByName', [name]);
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* 通过组编号获取组对象
|
|
197
|
+
* @param code 组编号
|
|
198
|
+
* @returns 返回组信息
|
|
199
|
+
*/
|
|
200
|
+
export const getDepartmentByCode = (code) => {
|
|
201
|
+
return smartbi('UserManagerService', 'getDepartmentByCode', [code]);
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* 获取系统中的组列表
|
|
205
|
+
* @returns 返回组列表
|
|
206
|
+
*/
|
|
207
|
+
export const getAllDepartments = () => {
|
|
208
|
+
return smartbi('UserManagerService', 'getAllDepartments', []);
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* 获取用户的所属组
|
|
212
|
+
* @param userId 用户ID
|
|
213
|
+
* @returns 返回用户所属组列表
|
|
214
|
+
*/
|
|
215
|
+
export const getDepartmentsOfUser = (userId) => {
|
|
216
|
+
return smartbi('UserManagerService', 'getDepartmentsOfUser', [userId]);
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* 修改组所拥有的用户
|
|
220
|
+
* @param groupId 组ID
|
|
221
|
+
* @param userIdList 用户ID列表
|
|
222
|
+
* @returns 返回是否修改成功的布尔值
|
|
223
|
+
*/
|
|
224
|
+
export const assignUsersToGroup = (groupId, userIdList) => {
|
|
225
|
+
return smartbi('UserManagerService', 'assignUsersToGroup', [groupId, userIdList.toString()]);
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* 修改用户的所属组
|
|
229
|
+
* @param userId 用户ID
|
|
230
|
+
* @param groupId 组ID列表
|
|
231
|
+
* @returns 返回是否修改成功的布尔值
|
|
232
|
+
*/
|
|
233
|
+
export const assignDepartmentsToUser = (userId, groupId) => {
|
|
234
|
+
return smartbi('UserManagerService', 'assignDepartmentsToUser', [userId, groupId.toString()]);
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* 添加扩展属性
|
|
238
|
+
* @param userId 用户ID
|
|
239
|
+
* @param key 属性键
|
|
240
|
+
* @param value 属性值
|
|
241
|
+
* @param longValue 长值
|
|
242
|
+
* @returns 返回是否添加成功的布尔值
|
|
243
|
+
*/
|
|
244
|
+
export const addUserAttribute = (userId, key, value, longValue) => {
|
|
245
|
+
return smartbi('UserManagerService', 'addUserAttribute', [userId, key, value, longValue]);
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* 获取指定的属性值
|
|
249
|
+
* @param userId 用户ID
|
|
250
|
+
* @param key 属性键
|
|
251
|
+
* @returns 返回扩展属性
|
|
252
|
+
*/
|
|
253
|
+
export const getUserAttribute = (userId, key) => {
|
|
254
|
+
return smartbi('UserManagerService', 'getUserAttribute', [userId, key]);
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* 获取某用户所有的属性值
|
|
258
|
+
* @param userId 用户ID
|
|
259
|
+
* @returns 返回用户所有扩展属性列表
|
|
260
|
+
*/
|
|
261
|
+
export const getAllUserAttributes = (userId) => {
|
|
262
|
+
return smartbi('UserManagerService', 'getAllUserAttributes', [userId]);
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* 创建操作权限
|
|
266
|
+
* @param funcId 权限ID
|
|
267
|
+
* @param parentFuncId 父权限ID
|
|
268
|
+
* @param funcName 权限名称
|
|
269
|
+
* @param funcAlias 权限别名
|
|
270
|
+
* @param funcDesc 权限描述
|
|
271
|
+
* @returns 返回是否创建成功的布尔值
|
|
272
|
+
*/
|
|
273
|
+
export const createFunction = (funcId, parentFuncId, funcName, funcAlias, funcDesc) => {
|
|
274
|
+
return smartbi('UserManagerService', 'createFunction', [funcId, parentFuncId, funcName, funcAlias, funcDesc]);
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* 删除操作权限
|
|
278
|
+
* @param funcId 权限ID
|
|
279
|
+
* @returns 返回是否删除成功的布尔值
|
|
280
|
+
*/
|
|
281
|
+
export const deleteFunction = (funcId) => {
|
|
282
|
+
return smartbi('UserManagerService', 'deleteFunction', [funcId]);
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* 通过操作权限ID获取操作权限对象
|
|
286
|
+
* @param funcId 权限ID
|
|
287
|
+
* @returns 返回权限信息
|
|
288
|
+
*/
|
|
289
|
+
export const getFunctionById = (funcId) => {
|
|
290
|
+
return smartbi('UserManagerService', 'getFunctionById', [funcId]);
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* 获取所有操作权限列表
|
|
294
|
+
* @returns 返回权限列表
|
|
295
|
+
*/
|
|
296
|
+
export const getAllFunctions = () => {
|
|
297
|
+
return smartbi('UserManagerService', 'getAllFunctions', []);
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* 获取License中的关键信息
|
|
301
|
+
* @returns 返回License信息
|
|
302
|
+
*/
|
|
303
|
+
export const getLicenseInfo = () => {
|
|
304
|
+
return smartbi('UserManagerService', 'getLicenseInfo', []);
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* 获取系统中所有License模块名称列表
|
|
308
|
+
* @returns 返回License模块名称列表
|
|
309
|
+
*/
|
|
310
|
+
export const getLicenses = () => {
|
|
311
|
+
return smartbi('UserManagerService', 'getLicenses', []);
|
|
312
|
+
};
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
export interface IResult {
|
|
2
|
+
cells: Array<any>;
|
|
3
|
+
axes: Array<any>;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export interface RunningInfoItem {
|
|
7
|
+
name: string;
|
|
8
|
+
startTime: number;
|
|
9
|
+
cost: number;
|
|
10
|
+
}
|
|
11
|
+
export interface RunningInfo {
|
|
12
|
+
currentItem: RunningInfoItem;
|
|
13
|
+
currentItemFinished: boolean;
|
|
14
|
+
allItems: RunningInfoItem[];
|
|
15
|
+
asyncInfos: RunningInfo[];
|
|
16
|
+
resId?: string;
|
|
17
|
+
startTime: number;
|
|
18
|
+
isFinished: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface IParameter {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}
|
|
25
|
+
export interface Parameter {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
alias?: string;
|
|
29
|
+
desc?: string;
|
|
30
|
+
type?: string;
|
|
31
|
+
defaultValue?: string;
|
|
32
|
+
componentType?: string;
|
|
33
|
+
displayValue?: string;
|
|
34
|
+
value?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface NameValuePair {
|
|
37
|
+
name: string;
|
|
38
|
+
value: string;
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}
|
|
41
|
+
export interface ViewMetaData {
|
|
42
|
+
clientId?: string;
|
|
43
|
+
totalRowCount: number;
|
|
44
|
+
fieldNames: string[];
|
|
45
|
+
fieldTypes: string[];
|
|
46
|
+
}
|
|
47
|
+
export type PropertyName = 'alias' | 'desc' | 'dataType' | 'dataFormat' | 'orderby' | 'transformRule';
|
|
48
|
+
export declare const PropertyName: {
|
|
49
|
+
ALIAS: string;
|
|
50
|
+
DESC: string;
|
|
51
|
+
DATA_TYPE: string;
|
|
52
|
+
DATA_FORMAT: string;
|
|
53
|
+
ORDER_BY: string;
|
|
54
|
+
TRANSFORM_RULE: string;
|
|
55
|
+
};
|
|
56
|
+
export type BusinessViewType = 'RAW_SQL_QUERY' | 'VISUAL_QUERY' | 'SQL_QUERY';
|
|
57
|
+
export declare const BusinessViewType: {
|
|
58
|
+
RAW_SQL_QUERY: string;
|
|
59
|
+
VISUAL_QUERY: string;
|
|
60
|
+
SQL_QUERY: string;
|
|
61
|
+
};
|
|
62
|
+
export interface CatalogElement {
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
alias: string;
|
|
66
|
+
desc?: string;
|
|
67
|
+
type: string;
|
|
68
|
+
hasChild: boolean;
|
|
69
|
+
order: number;
|
|
70
|
+
extended?: string;
|
|
71
|
+
hiddenInBrowse: boolean;
|
|
72
|
+
showOnPC: boolean;
|
|
73
|
+
showOnPad: boolean;
|
|
74
|
+
showOnPhone: boolean;
|
|
75
|
+
customImage?: string;
|
|
76
|
+
customMobileImage?: string;
|
|
77
|
+
mobileImageId?: string;
|
|
78
|
+
detectChild: boolean;
|
|
79
|
+
lastModifiedDate?: Date;
|
|
80
|
+
fullPath?: string;
|
|
81
|
+
parentId?: string;
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
}
|
|
84
|
+
export interface ResourcePermission {
|
|
85
|
+
permissions: ResourcePermissionItem[];
|
|
86
|
+
inherited: boolean;
|
|
87
|
+
owner: IAssignee;
|
|
88
|
+
resid: string;
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
}
|
|
91
|
+
export interface ICatalogSearchResult {
|
|
92
|
+
catalogElement?: any;
|
|
93
|
+
idPath?: string[];
|
|
94
|
+
aliasPath?: string[];
|
|
95
|
+
}
|
|
96
|
+
export type AccessType = 'REF' | 'READ' | 'WRITE';
|
|
97
|
+
export declare const AccessType: {
|
|
98
|
+
REF: string;
|
|
99
|
+
READ: string;
|
|
100
|
+
WRITE: string;
|
|
101
|
+
};
|
|
102
|
+
export type CatalogElementType = 'FOLDER' | 'SIMPLE_REPORT' | 'ANALYSIS_REPORT' | 'COMBINED_QUERY' | 'INSIGHT' | 'OLAP_REPORT' | 'DASHBOARD' | 'SMARTBIX_PAGE' | 'DATASET' | 'VISUAL' | 'SQL' | 'PROCEDURE' | 'NATIVE_SQL' | 'JAVA' | 'SMARTBIX_DATASET' | 'AUGMENTED_DATASET' | 'BUSINESS_VIEW' | 'BUSINESS_SUBJECT' | 'BUSINESS_QUERY' | 'SPREADSHEET_REPORT' | 'WEB_SPREADSHEET_REPORT' | 'SMARTBI_DATAPROCESS' | 'ETL_AUTOMATION' | 'JOB_FLOW' | 'SMARTBI_MINING' | 'URL' | 'excelimport' | 'TXTQUERYOBJECT' | 'TXTDATASOURCE' | 'SCHEMA' | 'OLD_DATASET';
|
|
103
|
+
export declare const CatalogElementType: {
|
|
104
|
+
FOLDER: string;
|
|
105
|
+
SIMPLE_REPORT: string;
|
|
106
|
+
ANALYSIS_REPORT: string;
|
|
107
|
+
COMBINED_QUERY: string;
|
|
108
|
+
INSIGHT: string;
|
|
109
|
+
OLAP_REPORT: string;
|
|
110
|
+
DASHBOARD: string;
|
|
111
|
+
SMARTBIX_PAGE: string;
|
|
112
|
+
DATASET: string;
|
|
113
|
+
VISUAL: string;
|
|
114
|
+
SQL: string;
|
|
115
|
+
PROCEDURE: string;
|
|
116
|
+
NATIVE_SQL: string;
|
|
117
|
+
JAVA: string;
|
|
118
|
+
SMARTBIX_DATASET: string;
|
|
119
|
+
AUGMENTED_DATASET: string;
|
|
120
|
+
BUSINESS_VIEW: string;
|
|
121
|
+
BUSINESS_SUBJECT: string;
|
|
122
|
+
BUSINESS_QUERY: string;
|
|
123
|
+
SPREADSHEET_REPORT: string;
|
|
124
|
+
WEB_SPREADSHEET_REPORT: string;
|
|
125
|
+
DATA_PROCESS: string;
|
|
126
|
+
ETL_AUTOMATION: string;
|
|
127
|
+
JOB_FLOW: string;
|
|
128
|
+
DATA_MINING: string;
|
|
129
|
+
URL_LINK: string;
|
|
130
|
+
EXCEL_IMPORT_TEMPLATE: string;
|
|
131
|
+
TXT_QUERY_OBJECT: string;
|
|
132
|
+
TXT_DATA_SOURCE: string;
|
|
133
|
+
SCHEMA: string;
|
|
134
|
+
OLD_DATASET: string;
|
|
135
|
+
};
|
|
136
|
+
export interface IAssignee {
|
|
137
|
+
id: string;
|
|
138
|
+
name: string;
|
|
139
|
+
alias: string;
|
|
140
|
+
type: string;
|
|
141
|
+
}
|
|
142
|
+
export interface ResourcePermissionItem {
|
|
143
|
+
assignee: IAssignee;
|
|
144
|
+
purviewType: string;
|
|
145
|
+
permissionApplyToScope: string;
|
|
146
|
+
groupDescend: boolean;
|
|
147
|
+
id: string;
|
|
148
|
+
fromresid: string;
|
|
149
|
+
expiresTime: string;
|
|
150
|
+
sourceUser?: any;
|
|
151
|
+
}
|
|
152
|
+
export type PermissionType = 'NONE' | 'REF' | 'READ' | 'WRITE' | 'OVERVIEW' | 'GRANT';
|
|
153
|
+
export type PermissionDescendType = 'NONE' | 'FOLDER_ONLY' | 'FILE_ONLY' | 'FOLDER_FILE';
|
|
154
|
+
export type HiddenInBrowse = boolean;
|
|
155
|
+
export interface IClientCombinedReportView extends ClientReportView {
|
|
156
|
+
queryClientId?: string;
|
|
157
|
+
condPanelClientId?: string;
|
|
158
|
+
paramPanelId?: string;
|
|
159
|
+
}
|
|
160
|
+
export interface ReportData {
|
|
161
|
+
matrix: any[][];
|
|
162
|
+
}
|
|
163
|
+
export interface CustomFilterDataBean {
|
|
164
|
+
fieldId: string;
|
|
165
|
+
operator1: string;
|
|
166
|
+
value1: string;
|
|
167
|
+
groupType: string;
|
|
168
|
+
operator2?: string;
|
|
169
|
+
value2?: string;
|
|
170
|
+
[key: string]: any;
|
|
171
|
+
}
|
|
172
|
+
export type AggregateType = 'SUM' | 'MIN' | 'MAX' | 'COUNT' | 'DISTINCT_COUNT' | 'AVG' | 'NULL';
|
|
173
|
+
export type OrderType = 'ASC' | 'DESC' | 'NONE';
|
|
174
|
+
export type OperatorType = '=' | '>' | '<';
|
|
175
|
+
export interface DataSource {
|
|
176
|
+
id: string;
|
|
177
|
+
name: string;
|
|
178
|
+
alias?: string;
|
|
179
|
+
desc?: string;
|
|
180
|
+
user: string;
|
|
181
|
+
password?: string;
|
|
182
|
+
driverType: DriverType | string;
|
|
183
|
+
driver: string;
|
|
184
|
+
url: string;
|
|
185
|
+
maxConnection: number;
|
|
186
|
+
dbCharset?: string;
|
|
187
|
+
validationQuery?: string;
|
|
188
|
+
transactionIsolation: number;
|
|
189
|
+
validationQueryMethod: number;
|
|
190
|
+
authenticationType?: string;
|
|
191
|
+
driverCatalog?: string;
|
|
192
|
+
}
|
|
193
|
+
export type JDBCTableType = 'TABLE' | 'VIEW' | 'PROC' | 'MACRO';
|
|
194
|
+
export interface JDBCTable {
|
|
195
|
+
catalog?: string;
|
|
196
|
+
schema?: string;
|
|
197
|
+
name: string;
|
|
198
|
+
desc?: string;
|
|
199
|
+
type: JDBCTableType;
|
|
200
|
+
}
|
|
201
|
+
export interface BasicField {
|
|
202
|
+
id: string;
|
|
203
|
+
name: string;
|
|
204
|
+
alias?: string;
|
|
205
|
+
desc?: string;
|
|
206
|
+
dataType: string;
|
|
207
|
+
dataFormat?: string;
|
|
208
|
+
}
|
|
209
|
+
export interface SDKCellData {
|
|
210
|
+
type?: string;
|
|
211
|
+
isNull?: boolean;
|
|
212
|
+
displayValue?: string;
|
|
213
|
+
stringValue?: string;
|
|
214
|
+
intValue?: number;
|
|
215
|
+
doubleValue?: number;
|
|
216
|
+
dateValue?: Date;
|
|
217
|
+
longValue?: number;
|
|
218
|
+
byteArrayValue?: Uint8Array | string | string[];
|
|
219
|
+
extendValue?: string;
|
|
220
|
+
useTransformRule?: boolean;
|
|
221
|
+
bigIntValue?: bigint;
|
|
222
|
+
bigDecimalValue?: number;
|
|
223
|
+
}
|
|
224
|
+
export interface SDKGridData {
|
|
225
|
+
totalRowsCount: number;
|
|
226
|
+
stringHeaders?: string[];
|
|
227
|
+
columnNames?: string[];
|
|
228
|
+
columnLabels?: string[];
|
|
229
|
+
data?: SDKCellData[][];
|
|
230
|
+
}
|
|
231
|
+
export type DriverType = 'KINGBASE' | 'ODBC' | 'MSSQL' | 'MYSQL' | 'ORACLE' | 'DB2_400' | 'DB2' | 'DB2_V9' | 'INFORMIX' | 'SYBASE' | 'TERADATA' | 'TERADATA_V12' | 'ACCESS' | 'EXCEL' | 'POSTGRESQL' | 'GREENPLUM' | 'DEFAULT';
|
|
232
|
+
export interface SystemConfig {
|
|
233
|
+
key: string;
|
|
234
|
+
value: string;
|
|
235
|
+
longValue?: string;
|
|
236
|
+
[key: string]: any;
|
|
237
|
+
}
|
|
238
|
+
export interface IDocument {
|
|
239
|
+
id: string;
|
|
240
|
+
name: string;
|
|
241
|
+
alias?: string;
|
|
242
|
+
cnAlias?: string;
|
|
243
|
+
enAlias?: string;
|
|
244
|
+
twAlias?: string;
|
|
245
|
+
desc?: string;
|
|
246
|
+
cnDesc?: string;
|
|
247
|
+
enDesc?: string;
|
|
248
|
+
twDesc?: string;
|
|
249
|
+
type: string;
|
|
250
|
+
path?: string;
|
|
251
|
+
content?: string;
|
|
252
|
+
refid?: string[];
|
|
253
|
+
affid?: string[];
|
|
254
|
+
flag?: string;
|
|
255
|
+
docOrder?: number;
|
|
256
|
+
lastModified?: string;
|
|
257
|
+
indexLastModified?: string;
|
|
258
|
+
extended?: string;
|
|
259
|
+
[key: string]: any;
|
|
260
|
+
}
|
|
261
|
+
export interface DocumentTreeNode extends IDocument {
|
|
262
|
+
children?: DocumentTreeNode[];
|
|
263
|
+
parent?: DocumentTreeNode;
|
|
264
|
+
[key: string]: any;
|
|
265
|
+
}
|
|
266
|
+
export interface CategoryResource {
|
|
267
|
+
id: string;
|
|
268
|
+
name: string;
|
|
269
|
+
alias: string;
|
|
270
|
+
desc: string;
|
|
271
|
+
type: string;
|
|
272
|
+
}
|
|
273
|
+
export interface CalcField {
|
|
274
|
+
id: string;
|
|
275
|
+
name: string;
|
|
276
|
+
alias?: string;
|
|
277
|
+
desc?: string;
|
|
278
|
+
expression: string;
|
|
279
|
+
dataType: string;
|
|
280
|
+
dataFormat?: string;
|
|
281
|
+
condition?: string;
|
|
282
|
+
isInGroup?: string;
|
|
283
|
+
isBuildSql?: boolean;
|
|
284
|
+
[key: string]: any;
|
|
285
|
+
}
|
|
286
|
+
export interface TableField {
|
|
287
|
+
id: string;
|
|
288
|
+
name: string;
|
|
289
|
+
dateType: string;
|
|
290
|
+
columnSize: number;
|
|
291
|
+
decimalDigits: number;
|
|
292
|
+
[key: string]: any;
|
|
293
|
+
}
|
|
294
|
+
export interface GraphicReport {
|
|
295
|
+
clientId: string;
|
|
296
|
+
width: string;
|
|
297
|
+
height: string;
|
|
298
|
+
flashBasePath: string;
|
|
299
|
+
parameterPanelId: string;
|
|
300
|
+
params: Parameter[];
|
|
301
|
+
serviceName: string;
|
|
302
|
+
timeConsuming: any;
|
|
303
|
+
[key: string]: any;
|
|
304
|
+
}
|
|
305
|
+
export interface User {
|
|
306
|
+
id: string;
|
|
307
|
+
name: string;
|
|
308
|
+
alias?: string;
|
|
309
|
+
password?: string;
|
|
310
|
+
desc?: string;
|
|
311
|
+
enabled: string;
|
|
312
|
+
cellPhoneNumber?: string;
|
|
313
|
+
emailAddress?: string;
|
|
314
|
+
validityType?: string;
|
|
315
|
+
validityStartTime?: Date;
|
|
316
|
+
validityEndTime?: Date;
|
|
317
|
+
pwdLastModifyTime?: Date;
|
|
318
|
+
lastLoginTime?: Date;
|
|
319
|
+
assignedGroups?: any[];
|
|
320
|
+
assignedRoles?: any[];
|
|
321
|
+
createTime?: Date;
|
|
322
|
+
updateTime?: Date;
|
|
323
|
+
cellPhoneDecoded?: boolean;
|
|
324
|
+
emailDecoded?: boolean;
|
|
325
|
+
[key: string]: any;
|
|
326
|
+
}
|
|
327
|
+
export interface Role {
|
|
328
|
+
id: string;
|
|
329
|
+
name: string;
|
|
330
|
+
alias?: string;
|
|
331
|
+
desc?: string;
|
|
332
|
+
systemId?: string;
|
|
333
|
+
groupId?: string;
|
|
334
|
+
componentDefine?: string;
|
|
335
|
+
creatorGroup?: any;
|
|
336
|
+
groupToRole?: any[];
|
|
337
|
+
functions?: any[];
|
|
338
|
+
assignedUsers?: any[];
|
|
339
|
+
enabled?: string;
|
|
340
|
+
[key: string]: any;
|
|
341
|
+
}
|
|
342
|
+
export interface Department {
|
|
343
|
+
id: string;
|
|
344
|
+
name: string;
|
|
345
|
+
alias?: string;
|
|
346
|
+
desc?: string;
|
|
347
|
+
orgId?: string;
|
|
348
|
+
departmentCode?: string;
|
|
349
|
+
systemId?: string;
|
|
350
|
+
createTime?: Date;
|
|
351
|
+
updateTime?: Date;
|
|
352
|
+
enabled?: string;
|
|
353
|
+
parentGroup?: Department;
|
|
354
|
+
subGroups?: Department[];
|
|
355
|
+
assignedUsers?: User[];
|
|
356
|
+
groupToRole?: any[];
|
|
357
|
+
createdRoles?: Role[];
|
|
358
|
+
[key: string]: any;
|
|
359
|
+
}
|
|
360
|
+
export interface FunctionPermission {
|
|
361
|
+
id: string;
|
|
362
|
+
name: string;
|
|
363
|
+
alias?: string;
|
|
364
|
+
desc?: string;
|
|
365
|
+
systemId?: string;
|
|
366
|
+
isBuiltIn?: string;
|
|
367
|
+
order?: number;
|
|
368
|
+
parentFunction?: FunctionPermission;
|
|
369
|
+
subFunctions?: FunctionPermission[];
|
|
370
|
+
rolesToFunction?: Role[];
|
|
371
|
+
[key: string]: any;
|
|
372
|
+
}
|
|
373
|
+
export interface ExtensionAttribute {
|
|
374
|
+
id: string;
|
|
375
|
+
key: string;
|
|
376
|
+
value: string;
|
|
377
|
+
longValue?: string;
|
|
378
|
+
[key: string]: any;
|
|
379
|
+
}
|
|
380
|
+
export interface AllExportTypeMap {
|
|
381
|
+
EXCEL: 'EXCEL';
|
|
382
|
+
TXT: 'TXT';
|
|
383
|
+
CSV: 'CSV';
|
|
384
|
+
WORD: 'WORD';
|
|
385
|
+
WORD2003: 'WORD2003';
|
|
386
|
+
POWERPOINT: 'POWERPOINT';
|
|
387
|
+
PDF: 'PDF';
|
|
388
|
+
PNG: 'PNG';
|
|
389
|
+
EXCEL2007: 'EXCEL2007';
|
|
390
|
+
LIST_EXCEL: 'LIST_EXCEL';
|
|
391
|
+
HTML: 'HTML';
|
|
392
|
+
}
|
|
393
|
+
export type ReportExportType = keyof Pick<AllExportTypeMap, 'EXCEL' | 'TXT' | 'CSV'>;
|
|
394
|
+
export type OfficeReportExportType = keyof Pick<AllExportTypeMap, 'WORD' | 'WORD2003' | 'POWERPOINT' | 'PDF'>;
|
|
395
|
+
export type SSReportExportType = keyof Pick<AllExportTypeMap, 'PDF' | 'PNG' | 'WORD' | 'EXCEL2007' | 'LIST_EXCEL' | 'EXCEL' | 'HTML' | 'CSV'>;
|
|
396
|
+
export type JSONArray = any[];
|
|
397
|
+
export interface ReportBean {
|
|
398
|
+
params?: any[];
|
|
399
|
+
fields?: any[];
|
|
400
|
+
clientConfig?: string;
|
|
401
|
+
}
|
|
402
|
+
export interface ClientReportView {
|
|
403
|
+
clientId?: string;
|
|
404
|
+
reportBean?: ReportBean;
|
|
405
|
+
}
|
|
406
|
+
export interface ICombinedReport {
|
|
407
|
+
currentReportName: string;
|
|
408
|
+
rowsPerPage: number;
|
|
409
|
+
parameters?: any[];
|
|
410
|
+
fields?: any[];
|
|
411
|
+
[key: string]: any;
|
|
412
|
+
}
|