smartbi-toolkit 1.0.1 → 1.1.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 (69) hide show
  1. package/README.md +41 -0
  2. package/dist/index.d.ts +2 -2
  3. package/dist/index.js +99 -0
  4. package/dist/main.d.ts +0 -1
  5. package/dist/main.js +18 -0
  6. package/dist/methods/AnalysisReportService.d.ts +93 -0
  7. package/dist/methods/AnalysisReportService.js +126 -0
  8. package/dist/methods/BusinessThemeService.d.ts +8 -0
  9. package/dist/methods/BusinessThemeService.js +11 -0
  10. package/dist/methods/BusinessViewService.d.ts +94 -0
  11. package/dist/methods/BusinessViewService.js +120 -0
  12. package/dist/methods/CatalogService.d.ts +1 -89
  13. package/dist/methods/CatalogService.js +224 -0
  14. package/dist/methods/ClientCombinedReportService.d.ts +63 -0
  15. package/dist/methods/ClientCombinedReportService.js +82 -0
  16. package/dist/methods/ClientInsightService.d.ts +83 -0
  17. package/dist/methods/ClientInsightService.js +107 -0
  18. package/dist/methods/ClientReportService.d.ts +162 -0
  19. package/dist/methods/ClientReportService.js +206 -0
  20. package/dist/methods/CombinedReportService.d.ts +7 -0
  21. package/dist/methods/CombinedReportService.js +10 -0
  22. package/dist/methods/DataSourceService.d.ts +178 -0
  23. package/dist/methods/DataSourceService.js +220 -0
  24. package/dist/methods/GraphicReportService.d.ts +6 -0
  25. package/dist/methods/GraphicReportService.js +10 -0
  26. package/dist/methods/InsightReport.d.ts +71 -0
  27. package/dist/methods/InsightReport.js +98 -0
  28. package/dist/methods/MetadataService.d.ts +37 -0
  29. package/dist/methods/MetadataService.js +47 -0
  30. package/dist/methods/OfficeReport.d.ts +49 -0
  31. package/dist/methods/OfficeReport.js +65 -0
  32. package/dist/methods/OfficeReportService.d.ts +36 -0
  33. package/dist/methods/OfficeReportService.js +46 -0
  34. package/dist/methods/OltpMetadataService.d.ts +19 -0
  35. package/dist/methods/OltpMetadataService.js +25 -0
  36. package/dist/methods/ParameterService.d.ts +12 -0
  37. package/dist/methods/ParameterService.js +18 -0
  38. package/dist/methods/PoolService.d.ts +11 -0
  39. package/dist/methods/PoolService.js +17 -0
  40. package/dist/methods/PortalService.d.ts +66 -0
  41. package/dist/methods/PortalService.js +89 -0
  42. package/dist/methods/Report.d.ts +178 -0
  43. package/dist/methods/Report.js +230 -0
  44. package/dist/methods/SSReport.d.ts +86 -0
  45. package/dist/methods/SSReport.js +114 -0
  46. package/dist/methods/ScheduleTaskService.d.ts +12 -0
  47. package/dist/methods/ScheduleTaskService.js +18 -0
  48. package/dist/methods/SimpleReportService.d.ts +12 -0
  49. package/dist/methods/SimpleReportService.js +18 -0
  50. package/dist/methods/SpreadSheetReportService.d.ts +43 -0
  51. package/dist/methods/SpreadSheetReportService.js +55 -0
  52. package/dist/methods/SystemConfigService.d.ts +28 -0
  53. package/dist/methods/SystemConfigService.js +24 -0
  54. package/dist/methods/TimeConsuming.d.ts +6 -0
  55. package/dist/methods/TimeConsuming.js +9 -0
  56. package/dist/methods/TimeConsumingService.d.ts +5 -0
  57. package/dist/methods/TimeConsumingService.js +9 -0
  58. package/dist/methods/UserManagerService.d.ts +258 -0
  59. package/dist/methods/UserManagerService.js +332 -0
  60. package/dist/types.d.ts +442 -0
  61. package/dist/types.js +125 -0
  62. package/dist/vite-plugin-smartbi/index.d.ts +36 -0
  63. package/dist/vite-plugin-smartbi/index.js +107 -0
  64. package/package.json +129 -11
  65. package/dist/CatalogService.es.js +0 -112
  66. package/dist/SmartbiToolbox.es.js +0 -51
  67. package/dist/index.d.ts.map +0 -1
  68. package/dist/main.d.ts.map +0 -1
  69. package/dist/methods/CatalogService.d.ts.map +0 -1
@@ -0,0 +1,258 @@
1
+ import type { User, Role, Department, FunctionPermission, ExtensionAttribute } from '../types';
2
+ /**
3
+ * 创建用户
4
+ * @param parentGroupId 父组ID
5
+ * @param userName 用户名
6
+ * @param userAlias 用户别名
7
+ * @param desc 描述
8
+ * @param password 密码
9
+ * @param isEnabled 是否启用
10
+ * @returns 返回新创建的用户ID
11
+ */
12
+ export declare const createUser: (parentGroupId: string, userName: string, userAlias: string, desc: string, password: string, isEnabled: boolean) => Promise<string>;
13
+ /**
14
+ * 创建用户(带强制修改密码选项)
15
+ * @param parentGroupId 父组ID
16
+ * @param userName 用户名
17
+ * @param userAlias 用户别名
18
+ * @param desc 描述
19
+ * @param password 密码
20
+ * @param isEnabled 是否启用
21
+ * @param forceChangePassword 是否强制修改密码
22
+ * @returns 返回新创建的用户ID
23
+ */
24
+ export declare const createUserWithForceChangePassword: (parentGroupId: string, userName: string, userAlias: string, desc: string, password: string, isEnabled: boolean, forceChangePassword: boolean) => Promise<string>;
25
+ /**
26
+ * 指定ID创建用户
27
+ * @param parentGroupId 父组ID
28
+ * @param userId 用户ID
29
+ * @param userName 用户名
30
+ * @param userAlias 用户别名
31
+ * @param desc 描述
32
+ * @param password 密码
33
+ * @param isEnabled 是否启用
34
+ */
35
+ export declare const createUserById: (parentGroupId: string, userId: string, userName: string, userAlias: string, desc: string, password: string, isEnabled: boolean) => Promise<void>;
36
+ /**
37
+ * 指定ID创建用户(带强制修改密码选项)
38
+ * @param parentGroupId 父组ID
39
+ * @param userId 用户ID
40
+ * @param userName 用户名
41
+ * @param userAlias 用户别名
42
+ * @param desc 描述
43
+ * @param password 密码
44
+ * @param isEnabled 是否启用
45
+ * @param forceChangePassword 是否强制修改密码
46
+ */
47
+ export declare const createUserByIdWithForceChangePassword: (parentGroupId: string, userId: string, userName: string, userAlias: string, desc: string, password: string, isEnabled: boolean, forceChangePassword: boolean) => Promise<void>;
48
+ /**
49
+ * 删除用户
50
+ * @param userId 用户ID
51
+ * @returns 返回是否删除成功的布尔值
52
+ */
53
+ export declare const deleteUser: (userId: string) => Promise<boolean>;
54
+ /**
55
+ * 通过用户ID获取用户信息
56
+ * @param id 用户ID
57
+ * @returns 返回用户信息
58
+ */
59
+ export declare const getUserById: (id: string) => Promise<User>;
60
+ /**
61
+ * 通过用户名称获取用户信息
62
+ * @param name 用户名称
63
+ * @returns 返回用户信息
64
+ */
65
+ export declare const getUserByName: (name: string) => Promise<User>;
66
+ /**
67
+ * 根据用户扩展属性获取用户信息
68
+ * @param key 属性键
69
+ * @param value 属性值
70
+ * @returns 返回用户列表
71
+ */
72
+ export declare const getUserByAttribute: (key: string, value: string) => Promise<User[]>;
73
+ /**
74
+ * 获取系统中的用户列表
75
+ * @returns 返回用户列表
76
+ */
77
+ export declare const getAllUsers: () => Promise<User[]>;
78
+ /**
79
+ * 获取当前登录用户信息
80
+ * @returns 返回当前用户信息
81
+ */
82
+ export declare const getCurrentUser: () => Promise<User>;
83
+ /**
84
+ * 修改当前用户的密码
85
+ * @param oldPassword 旧密码
86
+ * @param newPassword 新密码
87
+ */
88
+ export declare const changePassword: (oldPassword: string, newPassword: string) => Promise<void>;
89
+ /**
90
+ * 获取用户密码
91
+ * @param userName 用户名
92
+ * @returns 返回用户密码
93
+ */
94
+ export declare const getPassword: (userName: string) => Promise<string>;
95
+ /**
96
+ * 创建角色
97
+ * @param roleName 角色名称
98
+ * @param roleAlias 角色别名
99
+ * @param desc 描述
100
+ * @param groupId 组ID
101
+ * @returns 返回新创建的角色ID
102
+ */
103
+ export declare const createRole: (roleName: string, roleAlias: string, desc: string, groupId: string) => Promise<string>;
104
+ /**
105
+ * 删除角色
106
+ * @param roleId 角色ID
107
+ * @returns 返回是否删除成功的布尔值
108
+ */
109
+ export declare const deleteRole: (roleId: string) => Promise<boolean>;
110
+ /**
111
+ * 通过ID获取角色
112
+ * @param id 角色ID
113
+ * @returns 返回角色信息
114
+ */
115
+ export declare const getRoleById: (id: string) => Promise<Role>;
116
+ /**
117
+ * 通过角色名称获取角色对象
118
+ * @param name 角色名称
119
+ * @returns 返回角色信息
120
+ */
121
+ export declare const getRoleByName: (name: string) => Promise<Role>;
122
+ /**
123
+ * 获取系统中的角色列表
124
+ * @returns 返回角色列表
125
+ */
126
+ export declare const getAllRoles: () => Promise<Role[]>;
127
+ /**
128
+ * 给用户分配角色
129
+ * @param userId 用户ID
130
+ * @param roleIdList 角色ID列表
131
+ * @returns 返回是否分配成功的布尔值
132
+ */
133
+ export declare const assignRolesToUser: (userId: string, roleIdList: string[]) => Promise<boolean>;
134
+ /**
135
+ * 给角色分配用户
136
+ * @param roleId 角色ID
137
+ * @param userIdList 用户ID列表
138
+ * @returns 返回是否分配成功的布尔值
139
+ */
140
+ export declare const assignUsersToRole: (roleId: string, userIdList: string[]) => Promise<boolean>;
141
+ /**
142
+ * 创建组
143
+ * @param parentGroupId 父组ID
144
+ * @param groupName 组名称
145
+ * @param groupAlias 组别名
146
+ * @param desc 描述
147
+ * @param departmentCode 组编号
148
+ * @returns 返回新创建的组ID
149
+ */
150
+ export declare const createDepartment: (parentGroupId: string, groupName: string, groupAlias: string, desc: string, departmentCode: string) => Promise<string>;
151
+ /**
152
+ * 删除组
153
+ * @param groupId 组ID
154
+ * @returns 返回是否删除成功的布尔值
155
+ */
156
+ export declare const deleteDepartment: (groupId: string) => Promise<boolean>;
157
+ /**
158
+ * 通过ID获取组对象
159
+ * @param id 组ID
160
+ * @returns 返回组信息
161
+ */
162
+ export declare const getDepartmentById: (id: string) => Promise<Department>;
163
+ /**
164
+ * 通过组名称获取组对象
165
+ * @param name 组名称
166
+ * @returns 返回组信息
167
+ */
168
+ export declare const getDepartmentByName: (name: string) => Promise<Department>;
169
+ /**
170
+ * 通过组编号获取组对象
171
+ * @param code 组编号
172
+ * @returns 返回组信息
173
+ */
174
+ export declare const getDepartmentByCode: (code: string) => Promise<Department>;
175
+ /**
176
+ * 获取系统中的组列表
177
+ * @returns 返回组列表
178
+ */
179
+ export declare const getAllDepartments: () => Promise<Department[]>;
180
+ /**
181
+ * 获取用户的所属组
182
+ * @param userId 用户ID
183
+ * @returns 返回用户所属组列表
184
+ */
185
+ export declare const getDepartmentsOfUser: (userId: string) => Promise<Department[]>;
186
+ /**
187
+ * 修改组所拥有的用户
188
+ * @param groupId 组ID
189
+ * @param userIdList 用户ID列表
190
+ * @returns 返回是否修改成功的布尔值
191
+ */
192
+ export declare const assignUsersToGroup: (groupId: string, userIdList: string[]) => Promise<boolean>;
193
+ /**
194
+ * 修改用户的所属组
195
+ * @param userId 用户ID
196
+ * @param groupId 组ID列表
197
+ * @returns 返回是否修改成功的布尔值
198
+ */
199
+ export declare const assignDepartmentsToUser: (userId: string, groupId: string[]) => Promise<boolean>;
200
+ /**
201
+ * 添加扩展属性
202
+ * @param userId 用户ID
203
+ * @param key 属性键
204
+ * @param value 属性值
205
+ * @param longValue 长值
206
+ * @returns 返回是否添加成功的布尔值
207
+ */
208
+ export declare const addUserAttribute: (userId: string, key: string, value: string, longValue: string) => Promise<boolean>;
209
+ /**
210
+ * 获取指定的属性值
211
+ * @param userId 用户ID
212
+ * @param key 属性键
213
+ * @returns 返回扩展属性
214
+ */
215
+ export declare const getUserAttribute: (userId: string, key: string) => Promise<ExtensionAttribute>;
216
+ /**
217
+ * 获取某用户所有的属性值
218
+ * @param userId 用户ID
219
+ * @returns 返回用户所有扩展属性列表
220
+ */
221
+ export declare const getAllUserAttributes: (userId: string) => Promise<ExtensionAttribute[]>;
222
+ /**
223
+ * 创建操作权限
224
+ * @param funcId 权限ID
225
+ * @param parentFuncId 父权限ID
226
+ * @param funcName 权限名称
227
+ * @param funcAlias 权限别名
228
+ * @param funcDesc 权限描述
229
+ * @returns 返回是否创建成功的布尔值
230
+ */
231
+ export declare const createFunction: (funcId: string, parentFuncId: string, funcName: string, funcAlias: string, funcDesc: string) => Promise<boolean>;
232
+ /**
233
+ * 删除操作权限
234
+ * @param funcId 权限ID
235
+ * @returns 返回是否删除成功的布尔值
236
+ */
237
+ export declare const deleteFunction: (funcId: string) => Promise<boolean>;
238
+ /**
239
+ * 通过操作权限ID获取操作权限对象
240
+ * @param funcId 权限ID
241
+ * @returns 返回权限信息
242
+ */
243
+ export declare const getFunctionById: (funcId: string) => Promise<FunctionPermission>;
244
+ /**
245
+ * 获取所有操作权限列表
246
+ * @returns 返回权限列表
247
+ */
248
+ export declare const getAllFunctions: () => Promise<FunctionPermission[]>;
249
+ /**
250
+ * 获取License中的关键信息
251
+ * @returns 返回License信息
252
+ */
253
+ export declare const getLicenseInfo: () => Promise<any>;
254
+ /**
255
+ * 获取系统中所有License模块名称列表
256
+ * @returns 返回License模块名称列表
257
+ */
258
+ export declare const getLicenses: () => Promise<string[]>;
@@ -0,0 +1,332 @@
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
+ * @returns 返回新创建的用户ID
11
+ */
12
+ export const createUser = (parentGroupId, userName, userAlias, desc, password, isEnabled) => {
13
+ return smartbi('UserManagerService', 'createUser', [parentGroupId, userName, userAlias, desc, password, isEnabled]);
14
+ };
15
+ /**
16
+ * 创建用户(带强制修改密码选项)
17
+ * @param parentGroupId 父组ID
18
+ * @param userName 用户名
19
+ * @param userAlias 用户别名
20
+ * @param desc 描述
21
+ * @param password 密码
22
+ * @param isEnabled 是否启用
23
+ * @param forceChangePassword 是否强制修改密码
24
+ * @returns 返回新创建的用户ID
25
+ */
26
+ export const createUserWithForceChangePassword = (parentGroupId, userName, userAlias, desc, password, isEnabled, forceChangePassword) => {
27
+ return smartbi('UserManagerService', 'createUser', [parentGroupId, userName, userAlias, desc, password, isEnabled, forceChangePassword]);
28
+ };
29
+ /**
30
+ * 指定ID创建用户
31
+ * @param parentGroupId 父组ID
32
+ * @param userId 用户ID
33
+ * @param userName 用户名
34
+ * @param userAlias 用户别名
35
+ * @param desc 描述
36
+ * @param password 密码
37
+ * @param isEnabled 是否启用
38
+ */
39
+ export const createUserById = (parentGroupId, userId, userName, userAlias, desc, password, isEnabled) => {
40
+ return smartbi('UserManagerService', 'createUserById', [parentGroupId, userId, userName, userAlias, desc, password, isEnabled]);
41
+ };
42
+ /**
43
+ * 指定ID创建用户(带强制修改密码选项)
44
+ * @param parentGroupId 父组ID
45
+ * @param userId 用户ID
46
+ * @param userName 用户名
47
+ * @param userAlias 用户别名
48
+ * @param desc 描述
49
+ * @param password 密码
50
+ * @param isEnabled 是否启用
51
+ * @param forceChangePassword 是否强制修改密码
52
+ */
53
+ export const createUserByIdWithForceChangePassword = (parentGroupId, userId, userName, userAlias, desc, password, isEnabled, forceChangePassword) => {
54
+ return smartbi('UserManagerService', 'createUserById', [parentGroupId, userId, userName, userAlias, desc, password, isEnabled, forceChangePassword]);
55
+ };
56
+ /**
57
+ * 删除用户
58
+ * @param userId 用户ID
59
+ * @returns 返回是否删除成功的布尔值
60
+ */
61
+ export const deleteUser = (userId) => {
62
+ return smartbi('UserManagerService', 'deleteUser', [userId]);
63
+ };
64
+ /**
65
+ * 通过用户ID获取用户信息
66
+ * @param id 用户ID
67
+ * @returns 返回用户信息
68
+ */
69
+ export const getUserById = (id) => {
70
+ return smartbi('UserManagerService', 'getUserById', [id]);
71
+ };
72
+ /**
73
+ * 通过用户名称获取用户信息
74
+ * @param name 用户名称
75
+ * @returns 返回用户信息
76
+ */
77
+ export const getUserByName = (name) => {
78
+ return smartbi('UserManagerService', 'getUserByName', [name]);
79
+ };
80
+ /**
81
+ * 根据用户扩展属性获取用户信息
82
+ * @param key 属性键
83
+ * @param value 属性值
84
+ * @returns 返回用户列表
85
+ */
86
+ export const getUserByAttribute = (key, value) => {
87
+ return smartbi('UserManagerService', 'getUserByAttribute', [key, value]);
88
+ };
89
+ /**
90
+ * 获取系统中的用户列表
91
+ * @returns 返回用户列表
92
+ */
93
+ export const getAllUsers = () => {
94
+ return smartbi('UserManagerService', 'getAllUsers', []);
95
+ };
96
+ /**
97
+ * 获取当前登录用户信息
98
+ * @returns 返回当前用户信息
99
+ */
100
+ export const getCurrentUser = () => {
101
+ return smartbi('UserManagerService', 'getCurrentUser', []);
102
+ };
103
+ /**
104
+ * 修改当前用户的密码
105
+ * @param oldPassword 旧密码
106
+ * @param newPassword 新密码
107
+ */
108
+ export const changePassword = (oldPassword, newPassword) => {
109
+ return smartbi('UserManagerService', 'changePassword', [oldPassword, newPassword]);
110
+ };
111
+ /**
112
+ * 获取用户密码
113
+ * @param userName 用户名
114
+ * @returns 返回用户密码
115
+ */
116
+ export const getPassword = (userName) => {
117
+ return smartbi('UserManagerService', 'getPassword', [userName]);
118
+ };
119
+ /**
120
+ * 创建角色
121
+ * @param roleName 角色名称
122
+ * @param roleAlias 角色别名
123
+ * @param desc 描述
124
+ * @param groupId 组ID
125
+ * @returns 返回新创建的角色ID
126
+ */
127
+ export const createRole = (roleName, roleAlias, desc, groupId) => {
128
+ return smartbi('UserManagerService', 'createRole', [roleName, roleAlias, desc, groupId]);
129
+ };
130
+ /**
131
+ * 删除角色
132
+ * @param roleId 角色ID
133
+ * @returns 返回是否删除成功的布尔值
134
+ */
135
+ export const deleteRole = (roleId) => {
136
+ return smartbi('UserManagerService', 'deleteRole', [roleId]);
137
+ };
138
+ /**
139
+ * 通过ID获取角色
140
+ * @param id 角色ID
141
+ * @returns 返回角色信息
142
+ */
143
+ export const getRoleById = (id) => {
144
+ return smartbi('UserManagerService', 'getRoleById', [id]);
145
+ };
146
+ /**
147
+ * 通过角色名称获取角色对象
148
+ * @param name 角色名称
149
+ * @returns 返回角色信息
150
+ */
151
+ export const getRoleByName = (name) => {
152
+ return smartbi('UserManagerService', 'getRoleByName', [name]);
153
+ };
154
+ /**
155
+ * 获取系统中的角色列表
156
+ * @returns 返回角色列表
157
+ */
158
+ export const getAllRoles = () => {
159
+ return smartbi('UserManagerService', 'getAllRoles', []);
160
+ };
161
+ /**
162
+ * 给用户分配角色
163
+ * @param userId 用户ID
164
+ * @param roleIdList 角色ID列表
165
+ * @returns 返回是否分配成功的布尔值
166
+ */
167
+ export const assignRolesToUser = (userId, roleIdList) => {
168
+ return smartbi('UserManagerService', 'assignRolesToUser', [userId, roleIdList.toString()]);
169
+ };
170
+ /**
171
+ * 给角色分配用户
172
+ * @param roleId 角色ID
173
+ * @param userIdList 用户ID列表
174
+ * @returns 返回是否分配成功的布尔值
175
+ */
176
+ export const assignUsersToRole = (roleId, userIdList) => {
177
+ return smartbi('UserManagerService', 'assignUsersToRole', [roleId, userIdList.toString()]);
178
+ };
179
+ /**
180
+ * 创建组
181
+ * @param parentGroupId 父组ID
182
+ * @param groupName 组名称
183
+ * @param groupAlias 组别名
184
+ * @param desc 描述
185
+ * @param departmentCode 组编号
186
+ * @returns 返回新创建的组ID
187
+ */
188
+ export const createDepartment = (parentGroupId, groupName, groupAlias, desc, departmentCode) => {
189
+ return smartbi('UserManagerService', 'createDepartment', [parentGroupId, groupName, groupAlias, desc, departmentCode]);
190
+ };
191
+ /**
192
+ * 删除组
193
+ * @param groupId 组ID
194
+ * @returns 返回是否删除成功的布尔值
195
+ */
196
+ export const deleteDepartment = (groupId) => {
197
+ return smartbi('UserManagerService', 'deleteDepartment', [groupId]);
198
+ };
199
+ /**
200
+ * 通过ID获取组对象
201
+ * @param id 组ID
202
+ * @returns 返回组信息
203
+ */
204
+ export const getDepartmentById = (id) => {
205
+ return smartbi('UserManagerService', 'getDepartmentById', [id]);
206
+ };
207
+ /**
208
+ * 通过组名称获取组对象
209
+ * @param name 组名称
210
+ * @returns 返回组信息
211
+ */
212
+ export const getDepartmentByName = (name) => {
213
+ return smartbi('UserManagerService', 'getDepartmentByName', [name]);
214
+ };
215
+ /**
216
+ * 通过组编号获取组对象
217
+ * @param code 组编号
218
+ * @returns 返回组信息
219
+ */
220
+ export const getDepartmentByCode = (code) => {
221
+ return smartbi('UserManagerService', 'getDepartmentByCode', [code]);
222
+ };
223
+ /**
224
+ * 获取系统中的组列表
225
+ * @returns 返回组列表
226
+ */
227
+ export const getAllDepartments = () => {
228
+ return smartbi('UserManagerService', 'getAllDepartments', []);
229
+ };
230
+ /**
231
+ * 获取用户的所属组
232
+ * @param userId 用户ID
233
+ * @returns 返回用户所属组列表
234
+ */
235
+ export const getDepartmentsOfUser = (userId) => {
236
+ return smartbi('UserManagerService', 'getDepartmentsOfUser', [userId]);
237
+ };
238
+ /**
239
+ * 修改组所拥有的用户
240
+ * @param groupId 组ID
241
+ * @param userIdList 用户ID列表
242
+ * @returns 返回是否修改成功的布尔值
243
+ */
244
+ export const assignUsersToGroup = (groupId, userIdList) => {
245
+ return smartbi('UserManagerService', 'assignUsersToGroup', [groupId, userIdList.toString()]);
246
+ };
247
+ /**
248
+ * 修改用户的所属组
249
+ * @param userId 用户ID
250
+ * @param groupId 组ID列表
251
+ * @returns 返回是否修改成功的布尔值
252
+ */
253
+ export const assignDepartmentsToUser = (userId, groupId) => {
254
+ return smartbi('UserManagerService', 'assignDepartmentsToUser', [userId, groupId.toString()]);
255
+ };
256
+ /**
257
+ * 添加扩展属性
258
+ * @param userId 用户ID
259
+ * @param key 属性键
260
+ * @param value 属性值
261
+ * @param longValue 长值
262
+ * @returns 返回是否添加成功的布尔值
263
+ */
264
+ export const addUserAttribute = (userId, key, value, longValue) => {
265
+ return smartbi('UserManagerService', 'addUserAttribute', [userId, key, value, longValue]);
266
+ };
267
+ /**
268
+ * 获取指定的属性值
269
+ * @param userId 用户ID
270
+ * @param key 属性键
271
+ * @returns 返回扩展属性
272
+ */
273
+ export const getUserAttribute = (userId, key) => {
274
+ return smartbi('UserManagerService', 'getUserAttribute', [userId, key]);
275
+ };
276
+ /**
277
+ * 获取某用户所有的属性值
278
+ * @param userId 用户ID
279
+ * @returns 返回用户所有扩展属性列表
280
+ */
281
+ export const getAllUserAttributes = (userId) => {
282
+ return smartbi('UserManagerService', 'getAllUserAttributes', [userId]);
283
+ };
284
+ /**
285
+ * 创建操作权限
286
+ * @param funcId 权限ID
287
+ * @param parentFuncId 父权限ID
288
+ * @param funcName 权限名称
289
+ * @param funcAlias 权限别名
290
+ * @param funcDesc 权限描述
291
+ * @returns 返回是否创建成功的布尔值
292
+ */
293
+ export const createFunction = (funcId, parentFuncId, funcName, funcAlias, funcDesc) => {
294
+ return smartbi('UserManagerService', 'createFunction', [funcId, parentFuncId, funcName, funcAlias, funcDesc]);
295
+ };
296
+ /**
297
+ * 删除操作权限
298
+ * @param funcId 权限ID
299
+ * @returns 返回是否删除成功的布尔值
300
+ */
301
+ export const deleteFunction = (funcId) => {
302
+ return smartbi('UserManagerService', 'deleteFunction', [funcId]);
303
+ };
304
+ /**
305
+ * 通过操作权限ID获取操作权限对象
306
+ * @param funcId 权限ID
307
+ * @returns 返回权限信息
308
+ */
309
+ export const getFunctionById = (funcId) => {
310
+ return smartbi('UserManagerService', 'getFunctionById', [funcId]);
311
+ };
312
+ /**
313
+ * 获取所有操作权限列表
314
+ * @returns 返回权限列表
315
+ */
316
+ export const getAllFunctions = () => {
317
+ return smartbi('UserManagerService', 'getAllFunctions', []);
318
+ };
319
+ /**
320
+ * 获取License中的关键信息
321
+ * @returns 返回License信息
322
+ */
323
+ export const getLicenseInfo = () => {
324
+ return smartbi('UserManagerService', 'getLicenseInfo', []);
325
+ };
326
+ /**
327
+ * 获取系统中所有License模块名称列表
328
+ * @returns 返回License模块名称列表
329
+ */
330
+ export const getLicenses = () => {
331
+ return smartbi('UserManagerService', 'getLicenses', []);
332
+ };