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.
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-C2_iES_3.d.ts +363 -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
@@ -0,0 +1,15 @@
1
+ //#region src/service/ScheduleTaskService.d.ts
2
+ /**
3
+ * 执行计划任务
4
+ * @param scheduleId 计划ID
5
+ * @returns 返回执行结果的布尔值
6
+ */
7
+ declare const executeSchedule: (scheduleId: string) => Promise<boolean>;
8
+ /**
9
+ * 执行任务
10
+ * @param taskId 任务ID
11
+ * @returns 返回执行结果的布尔值
12
+ */
13
+ declare const executeTask: (taskId: string) => Promise<boolean>;
14
+ //#endregion
15
+ export { executeSchedule, executeTask };
@@ -0,0 +1,22 @@
1
+ import { smartbi } from "../index.js";
2
+
3
+ //#region src/service/ScheduleTaskService.ts
4
+ /**
5
+ * 执行计划任务
6
+ * @param scheduleId 计划ID
7
+ * @returns 返回执行结果的布尔值
8
+ */
9
+ const executeSchedule = (scheduleId) => {
10
+ return smartbi("ScheduleTaskService", "executeSchedule", [scheduleId]);
11
+ };
12
+ /**
13
+ * 执行任务
14
+ * @param taskId 任务ID
15
+ * @returns 返回执行结果的布尔值
16
+ */
17
+ const executeTask = (taskId) => {
18
+ return smartbi("ScheduleTaskService", "executeTask", [taskId]);
19
+ };
20
+
21
+ //#endregion
22
+ export { executeSchedule, executeTask };
@@ -0,0 +1,15 @@
1
+ //#region src/service/SimpleReportService.d.ts
2
+ /**
3
+ * 创建并打开一个报表
4
+ * @param reportId 报表ID
5
+ * @returns 返回打开的报表对象
6
+ */
7
+ declare const openReport: (reportId: string) => Promise<any>;
8
+ /**
9
+ * 打开一个报表不初始化数据库链接
10
+ * @param reportId 报表ID
11
+ * @returns 返回打开的报表对象
12
+ */
13
+ declare const openReportWithoutInit: (reportId: string) => Promise<any>;
14
+ //#endregion
15
+ export { openReport, openReportWithoutInit };
@@ -0,0 +1,22 @@
1
+ import { smartbi } from "../index.js";
2
+
3
+ //#region src/service/SimpleReportService.ts
4
+ /**
5
+ * 创建并打开一个报表
6
+ * @param reportId 报表ID
7
+ * @returns 返回打开的报表对象
8
+ */
9
+ const openReport = (reportId) => {
10
+ return smartbi("SimpleReportService", "openReport", [reportId]);
11
+ };
12
+ /**
13
+ * 打开一个报表不初始化数据库链接
14
+ * @param reportId 报表ID
15
+ * @returns 返回打开的报表对象
16
+ */
17
+ const openReportWithoutInit = (reportId) => {
18
+ return smartbi("SimpleReportService", "openReportWithoutInit", [reportId]);
19
+ };
20
+
21
+ //#endregion
22
+ export { openReport, openReportWithoutInit };
@@ -0,0 +1,47 @@
1
+ import { D as NameValuePair } from "../types-C2_iES_3.js";
2
+
3
+ //#region src/service/SpreadSheetReportService.d.ts
4
+ /**
5
+ * 打开电子表格报表
6
+ * @param reportId 报表ID
7
+ * @returns 返回客户端ID
8
+ */
9
+ declare const openSpreadSheetReportQuery: (reportId: string) => Promise<any>;
10
+ /**
11
+ * 关闭电子表格报表
12
+ * @param clientId 客户端ID
13
+ * @returns 无返回值
14
+ */
15
+ declare const closeSpreadSheetReportQuery: (clientId: string) => Promise<void>;
16
+ /**
17
+ * 根据参数ID获取参数默认值
18
+ * @param panelId 参数面板ID
19
+ * @param paramId 参数ID
20
+ * @returns 返回参数默认值
21
+ */
22
+ declare const getSpreadSheetReportParamDefaultValueByPID: (panelId: string, paramId: string) => Promise<any[]>;
23
+ /**
24
+ * 获取参数备选值
25
+ * @param panelId 参数面板ID
26
+ * @param paramId 参数ID
27
+ * @returns 返回参数标准值
28
+ */
29
+ declare const getSpreadSheetReportParamStandbyValue: (panelId: string, paramId: string) => Promise<NameValuePair[]>;
30
+ /**
31
+ * 获取报表层面的参数默认值
32
+ * @param contextId 报表上下文会话id
33
+ * @param paramId 参数id
34
+ * @returns 返回报表参数默认值
35
+ */
36
+ declare const getSpreadSheetReportParamDefaultValueByContext: (contextId: string, paramId: string) => Promise<any[]>;
37
+ /**
38
+ * 设置参数值
39
+ * @param panelId 参数面板ID
40
+ * @param paramId 参数ID
41
+ * @param value 值
42
+ * @param displayValue 显示值
43
+ * @returns 返回是否设置成功的布尔值
44
+ */
45
+ declare const setSpreadSheetReportParamValue: (panelId: string, paramId: string, value: string, displayValue: string) => Promise<boolean>;
46
+ //#endregion
47
+ export { closeSpreadSheetReportQuery, getSpreadSheetReportParamDefaultValueByContext, getSpreadSheetReportParamDefaultValueByPID, getSpreadSheetReportParamStandbyValue, openSpreadSheetReportQuery, setSpreadSheetReportParamValue };
@@ -0,0 +1,65 @@
1
+ import { smartbi } from "../index.js";
2
+
3
+ //#region src/service/SpreadSheetReportService.ts
4
+ /**
5
+ * 打开电子表格报表
6
+ * @param reportId 报表ID
7
+ * @returns 返回客户端ID
8
+ */
9
+ const openSpreadSheetReportQuery = (reportId) => {
10
+ return smartbi("SpreadSheetReportService", "openQuery", [reportId]);
11
+ };
12
+ /**
13
+ * 关闭电子表格报表
14
+ * @param clientId 客户端ID
15
+ * @returns 无返回值
16
+ */
17
+ const closeSpreadSheetReportQuery = (clientId) => {
18
+ return smartbi("SpreadSheetReportService", "closeQuery", [clientId]);
19
+ };
20
+ /**
21
+ * 根据参数ID获取参数默认值
22
+ * @param panelId 参数面板ID
23
+ * @param paramId 参数ID
24
+ * @returns 返回参数默认值
25
+ */
26
+ const getSpreadSheetReportParamDefaultValueByPID = (panelId, paramId) => {
27
+ return smartbi("SpreadSheetReportService", "getParamDefaultValueByPID", [panelId, paramId]);
28
+ };
29
+ /**
30
+ * 获取参数备选值
31
+ * @param panelId 参数面板ID
32
+ * @param paramId 参数ID
33
+ * @returns 返回参数标准值
34
+ */
35
+ const getSpreadSheetReportParamStandbyValue = (panelId, paramId) => {
36
+ return smartbi("SpreadSheetReportService", "getParamStandbyValue", [panelId, paramId]);
37
+ };
38
+ /**
39
+ * 获取报表层面的参数默认值
40
+ * @param contextId 报表上下文会话id
41
+ * @param paramId 参数id
42
+ * @returns 返回报表参数默认值
43
+ */
44
+ const getSpreadSheetReportParamDefaultValueByContext = (contextId, paramId) => {
45
+ return smartbi("SpreadSheetReportService", "getReportParamDefaultValueByPID", [contextId, paramId]);
46
+ };
47
+ /**
48
+ * 设置参数值
49
+ * @param panelId 参数面板ID
50
+ * @param paramId 参数ID
51
+ * @param value 值
52
+ * @param displayValue 显示值
53
+ * @returns 返回是否设置成功的布尔值
54
+ */
55
+ const setSpreadSheetReportParamValue = (panelId, paramId, value, displayValue) => {
56
+ return smartbi("SpreadSheetReportService", "setParamValue", [
57
+ panelId,
58
+ paramId,
59
+ value,
60
+ displayValue
61
+ ]);
62
+ };
63
+
64
+ //#endregion
65
+ export { closeSpreadSheetReportQuery, getSpreadSheetReportParamDefaultValueByContext, getSpreadSheetReportParamDefaultValueByPID, getSpreadSheetReportParamStandbyValue, openSpreadSheetReportQuery, setSpreadSheetReportParamValue };
@@ -0,0 +1,21 @@
1
+ import { U as SystemConfig } from "../types-C2_iES_3.js";
2
+
3
+ //#region src/service/SystemConfigService.d.ts
4
+ /**
5
+ * 获取系统设置
6
+ * @returns 返回系统设置对象列表
7
+ */
8
+ declare const getSystemConfigs: () => Promise<SystemConfig[]>;
9
+ /**
10
+ * 根据键获取系统配置
11
+ * @param key 配置键
12
+ * @returns 返回系统配置对象
13
+ */
14
+ declare const getSystemConfig: (key: string) => Promise<SystemConfig>;
15
+ /**
16
+ * 清空缓存
17
+ * @returns 无返回值
18
+ */
19
+ declare const clearSystemConfigCache: () => Promise<void>;
20
+ //#endregion
21
+ export { clearSystemConfigCache, getSystemConfig, getSystemConfigs };
@@ -0,0 +1,28 @@
1
+ import { smartbi } from "../index.js";
2
+
3
+ //#region src/service/SystemConfigService.ts
4
+ /**
5
+ * 获取系统设置
6
+ * @returns 返回系统设置对象列表
7
+ */
8
+ const getSystemConfigs = () => {
9
+ return smartbi("SystemConfigService", "getSystemConfigs", []);
10
+ };
11
+ /**
12
+ * 根据键获取系统配置
13
+ * @param key 配置键
14
+ * @returns 返回系统配置对象
15
+ */
16
+ const getSystemConfig = (key) => {
17
+ return smartbi("SystemConfigService", "getSystemConfig", [key]);
18
+ };
19
+ /**
20
+ * 清空缓存
21
+ * @returns 无返回值
22
+ */
23
+ const clearSystemConfigCache = () => {
24
+ return smartbi("SystemConfigService", "clearCache", []);
25
+ };
26
+
27
+ //#endregion
28
+ export { clearSystemConfigCache, getSystemConfig, getSystemConfigs };
@@ -0,0 +1,10 @@
1
+ import { B as RunningInfo } from "../types-C2_iES_3.js";
2
+
3
+ //#region src/service/TimeConsuming.d.ts
4
+ /**
5
+ * 获取状态信息
6
+ * @returns 返回执行状态信息
7
+ */
8
+ declare const loadTimeConsuming: () => Promise<RunningInfo>;
9
+ //#endregion
10
+ export { loadTimeConsuming };
@@ -0,0 +1,13 @@
1
+ import { smartbi } from "../index.js";
2
+
3
+ //#region src/service/TimeConsuming.ts
4
+ /**
5
+ * 获取状态信息
6
+ * @returns 返回执行状态信息
7
+ */
8
+ const loadTimeConsuming = () => {
9
+ return smartbi("TimeConsuming", "load", []);
10
+ };
11
+
12
+ //#endregion
13
+ export { loadTimeConsuming };
@@ -0,0 +1,8 @@
1
+ //#region src/service/TimeConsumingService.d.ts
2
+ /**
3
+ * 获取执行时间信息
4
+ * @returns 返回执行时间信息的JSON对象
5
+ */
6
+ declare const loadRunningTimeConsuming: () => Promise<any>;
7
+ //#endregion
8
+ export { loadRunningTimeConsuming };
@@ -0,0 +1,13 @@
1
+ import { smartbi } from "../index.js";
2
+
3
+ //#region src/service/TimeConsumingService.ts
4
+ /**
5
+ * 获取执行时间信息
6
+ * @returns 返回执行时间信息的JSON对象
7
+ */
8
+ const loadRunningTimeConsuming = () => {
9
+ return smartbi("TimeConsumingService", "loadRunning", []);
10
+ };
11
+
12
+ //#endregion
13
+ export { loadRunningTimeConsuming };
@@ -1,4 +1,6 @@
1
- import type { User, Role, Department, FunctionPermission, ExtensionAttribute } from '../types';
1
+ import { G as User, f as Department, g as FunctionPermission, h as ExtensionAttribute, z as Role } from "../types-C2_iES_3.js";
2
+
3
+ //#region src/service/UserManagerService.d.ts
2
4
  /**
3
5
  * 创建用户
4
6
  * @param parentGroupId 父组ID
@@ -10,7 +12,7 @@ import type { User, Role, Department, FunctionPermission, ExtensionAttribute } f
10
12
  * @param forceChangePassword 是否强制修改密码(可选)
11
13
  * @returns 返回新创建的用户ID
12
14
  */
13
- export declare const createUser: (parentGroupId: string, userName: string, userAlias: string, desc: string, password: string, isEnabled: boolean, forceChangePassword?: boolean) => Promise<string>;
15
+ declare const createUser: (parentGroupId: string, userName: string, userAlias: string, desc: string, password: string, isEnabled: boolean, forceChangePassword?: boolean) => Promise<string>;
14
16
  /**
15
17
  * 指定ID创建用户
16
18
  * @param parentGroupId 父组ID
@@ -22,54 +24,54 @@ export declare const createUser: (parentGroupId: string, userName: string, userA
22
24
  * @param isEnabled 是否启用
23
25
  * @param forceChangePassword 是否强制修改密码(可选)
24
26
  */
25
- export declare const createUserById: (parentGroupId: string, userId: string, userName: string, userAlias: string, desc: string, password: string, isEnabled: boolean, forceChangePassword?: boolean) => Promise<void>;
27
+ declare const createUserById: (parentGroupId: string, userId: string, userName: string, userAlias: string, desc: string, password: string, isEnabled: boolean, forceChangePassword?: boolean) => Promise<void>;
26
28
  /**
27
29
  * 删除用户
28
30
  * @param userId 用户ID
29
31
  * @returns 返回是否删除成功的布尔值
30
32
  */
31
- export declare const deleteUser: (userId: string) => Promise<boolean>;
33
+ declare const deleteUser: (userId: string) => Promise<boolean>;
32
34
  /**
33
35
  * 通过用户ID获取用户信息
34
36
  * @param id 用户ID
35
37
  * @returns 返回用户信息
36
38
  */
37
- export declare const getUserById: (id: string) => Promise<User>;
39
+ declare const getUserById: (id: string) => Promise<User>;
38
40
  /**
39
41
  * 通过用户名称获取用户信息
40
42
  * @param name 用户名称
41
43
  * @returns 返回用户信息
42
44
  */
43
- export declare const getUserByName: (name: string) => Promise<User>;
45
+ declare const getUserByName: (name: string) => Promise<User>;
44
46
  /**
45
47
  * 根据用户扩展属性获取用户信息
46
48
  * @param key 属性键
47
49
  * @param value 属性值
48
50
  * @returns 返回用户列表
49
51
  */
50
- export declare const getUserByAttribute: (key: string, value: string) => Promise<User[]>;
52
+ declare const getUserByAttribute: (key: string, value: string) => Promise<User[]>;
51
53
  /**
52
54
  * 获取系统中的用户列表
53
55
  * @returns 返回用户列表
54
56
  */
55
- export declare const getAllUsers: () => Promise<User[]>;
57
+ declare const getAllUsers: () => Promise<User[]>;
56
58
  /**
57
59
  * 获取当前登录用户信息
58
60
  * @returns 返回当前用户信息
59
61
  */
60
- export declare const getCurrentUser: () => Promise<User>;
62
+ declare const getCurrentUser: () => Promise<User>;
61
63
  /**
62
64
  * 修改当前用户的密码
63
65
  * @param oldPassword 旧密码
64
66
  * @param newPassword 新密码
65
67
  */
66
- export declare const changePassword: (oldPassword: string, newPassword: string) => Promise<void>;
68
+ declare const changePassword: (oldPassword: string, newPassword: string) => Promise<void>;
67
69
  /**
68
70
  * 获取用户密码
69
71
  * @param userName 用户名
70
72
  * @returns 返回用户密码
71
73
  */
72
- export declare const getPassword: (userName: string) => Promise<string>;
74
+ declare const getPassword: (userName: string) => Promise<string>;
73
75
  /**
74
76
  * 创建角色
75
77
  * @param roleName 角色名称
@@ -78,44 +80,44 @@ export declare const getPassword: (userName: string) => Promise<string>;
78
80
  * @param groupId 组ID
79
81
  * @returns 返回新创建的角色ID
80
82
  */
81
- export declare const createRole: (roleName: string, roleAlias: string, desc: string, groupId: string) => Promise<string>;
83
+ declare const createRole: (roleName: string, roleAlias: string, desc: string, groupId: string) => Promise<string>;
82
84
  /**
83
85
  * 删除角色
84
86
  * @param roleId 角色ID
85
87
  * @returns 返回是否删除成功的布尔值
86
88
  */
87
- export declare const deleteRole: (roleId: string) => Promise<boolean>;
89
+ declare const deleteRole: (roleId: string) => Promise<boolean>;
88
90
  /**
89
91
  * 通过ID获取角色
90
92
  * @param id 角色ID
91
93
  * @returns 返回角色信息
92
94
  */
93
- export declare const getRoleById: (id: string) => Promise<Role>;
95
+ declare const getRoleById: (id: string) => Promise<Role>;
94
96
  /**
95
97
  * 通过角色名称获取角色对象
96
98
  * @param name 角色名称
97
99
  * @returns 返回角色信息
98
100
  */
99
- export declare const getRoleByName: (name: string) => Promise<Role>;
101
+ declare const getRoleByName: (name: string) => Promise<Role>;
100
102
  /**
101
103
  * 获取系统中的角色列表
102
104
  * @returns 返回角色列表
103
105
  */
104
- export declare const getAllRoles: () => Promise<Role[]>;
106
+ declare const getAllRoles: () => Promise<Role[]>;
105
107
  /**
106
108
  * 给用户分配角色
107
109
  * @param userId 用户ID
108
110
  * @param roleIdList 角色ID列表
109
111
  * @returns 返回是否分配成功的布尔值
110
112
  */
111
- export declare const assignRolesToUser: (userId: string, roleIdList: string[]) => Promise<boolean>;
113
+ declare const assignRolesToUser: (userId: string, roleIdList: string[]) => Promise<boolean>;
112
114
  /**
113
115
  * 给角色分配用户
114
116
  * @param roleId 角色ID
115
117
  * @param userIdList 用户ID列表
116
118
  * @returns 返回是否分配成功的布尔值
117
119
  */
118
- export declare const assignUsersToRole: (roleId: string, userIdList: string[]) => Promise<boolean>;
120
+ declare const assignUsersToRole: (roleId: string, userIdList: string[]) => Promise<boolean>;
119
121
  /**
120
122
  * 创建组
121
123
  * @param parentGroupId 父组ID
@@ -125,56 +127,56 @@ export declare const assignUsersToRole: (roleId: string, userIdList: string[]) =
125
127
  * @param departmentCode 组编号
126
128
  * @returns 返回新创建的组ID
127
129
  */
128
- export declare const createDepartment: (parentGroupId: string, groupName: string, groupAlias: string, desc: string, departmentCode: string) => Promise<string>;
130
+ declare const createDepartment: (parentGroupId: string, groupName: string, groupAlias: string, desc: string, departmentCode: string) => Promise<string>;
129
131
  /**
130
132
  * 删除组
131
133
  * @param groupId 组ID
132
134
  * @returns 返回是否删除成功的布尔值
133
135
  */
134
- export declare const deleteDepartment: (groupId: string) => Promise<boolean>;
136
+ declare const deleteDepartment: (groupId: string) => Promise<boolean>;
135
137
  /**
136
138
  * 通过ID获取组对象
137
139
  * @param id 组ID
138
140
  * @returns 返回组信息
139
141
  */
140
- export declare const getDepartmentById: (id: string) => Promise<Department>;
142
+ declare const getDepartmentById: (id: string) => Promise<Department>;
141
143
  /**
142
144
  * 通过组名称获取组对象
143
145
  * @param name 组名称
144
146
  * @returns 返回组信息
145
147
  */
146
- export declare const getDepartmentByName: (name: string) => Promise<Department>;
148
+ declare const getDepartmentByName: (name: string) => Promise<Department>;
147
149
  /**
148
150
  * 通过组编号获取组对象
149
151
  * @param code 组编号
150
152
  * @returns 返回组信息
151
153
  */
152
- export declare const getDepartmentByCode: (code: string) => Promise<Department>;
154
+ declare const getDepartmentByCode: (code: string) => Promise<Department>;
153
155
  /**
154
156
  * 获取系统中的组列表
155
157
  * @returns 返回组列表
156
158
  */
157
- export declare const getAllDepartments: () => Promise<Department[]>;
159
+ declare const getAllDepartments: () => Promise<Department[]>;
158
160
  /**
159
161
  * 获取用户的所属组
160
162
  * @param userId 用户ID
161
163
  * @returns 返回用户所属组列表
162
164
  */
163
- export declare const getDepartmentsOfUser: (userId: string) => Promise<Department[]>;
165
+ declare const getDepartmentsOfUser: (userId: string) => Promise<Department[]>;
164
166
  /**
165
167
  * 修改组所拥有的用户
166
168
  * @param groupId 组ID
167
169
  * @param userIdList 用户ID列表
168
170
  * @returns 返回是否修改成功的布尔值
169
171
  */
170
- export declare const assignUsersToGroup: (groupId: string, userIdList: string[]) => Promise<boolean>;
172
+ declare const assignUsersToGroup: (groupId: string, userIdList: string[]) => Promise<boolean>;
171
173
  /**
172
174
  * 修改用户的所属组
173
175
  * @param userId 用户ID
174
176
  * @param groupId 组ID列表
175
177
  * @returns 返回是否修改成功的布尔值
176
178
  */
177
- export declare const assignDepartmentsToUser: (userId: string, groupId: string[]) => Promise<boolean>;
179
+ declare const assignDepartmentsToUser: (userId: string, groupId: string[]) => Promise<boolean>;
178
180
  /**
179
181
  * 添加扩展属性
180
182
  * @param userId 用户ID
@@ -183,20 +185,20 @@ export declare const assignDepartmentsToUser: (userId: string, groupId: string[]
183
185
  * @param longValue 长值
184
186
  * @returns 返回是否添加成功的布尔值
185
187
  */
186
- export declare const addUserAttribute: (userId: string, key: string, value: string, longValue: string) => Promise<boolean>;
188
+ declare const addUserAttribute: (userId: string, key: string, value: string, longValue: string) => Promise<boolean>;
187
189
  /**
188
190
  * 获取指定的属性值
189
191
  * @param userId 用户ID
190
192
  * @param key 属性键
191
193
  * @returns 返回扩展属性
192
194
  */
193
- export declare const getUserAttribute: (userId: string, key: string) => Promise<ExtensionAttribute>;
195
+ declare const getUserAttribute: (userId: string, key: string) => Promise<ExtensionAttribute>;
194
196
  /**
195
197
  * 获取某用户所有的属性值
196
198
  * @param userId 用户ID
197
199
  * @returns 返回用户所有扩展属性列表
198
200
  */
199
- export declare const getAllUserAttributes: (userId: string) => Promise<ExtensionAttribute[]>;
201
+ declare const getAllUserAttributes: (userId: string) => Promise<ExtensionAttribute[]>;
200
202
  /**
201
203
  * 创建操作权限
202
204
  * @param funcId 权限ID
@@ -206,31 +208,33 @@ export declare const getAllUserAttributes: (userId: string) => Promise<Extension
206
208
  * @param funcDesc 权限描述
207
209
  * @returns 返回是否创建成功的布尔值
208
210
  */
209
- export declare const createFunction: (funcId: string, parentFuncId: string, funcName: string, funcAlias: string, funcDesc: string) => Promise<boolean>;
211
+ declare const createFunction: (funcId: string, parentFuncId: string, funcName: string, funcAlias: string, funcDesc: string) => Promise<boolean>;
210
212
  /**
211
213
  * 删除操作权限
212
214
  * @param funcId 权限ID
213
215
  * @returns 返回是否删除成功的布尔值
214
216
  */
215
- export declare const deleteFunction: (funcId: string) => Promise<boolean>;
217
+ declare const deleteFunction: (funcId: string) => Promise<boolean>;
216
218
  /**
217
219
  * 通过操作权限ID获取操作权限对象
218
220
  * @param funcId 权限ID
219
221
  * @returns 返回权限信息
220
222
  */
221
- export declare const getFunctionById: (funcId: string) => Promise<FunctionPermission>;
223
+ declare const getFunctionById: (funcId: string) => Promise<FunctionPermission>;
222
224
  /**
223
225
  * 获取所有操作权限列表
224
226
  * @returns 返回权限列表
225
227
  */
226
- export declare const getAllFunctions: () => Promise<FunctionPermission[]>;
228
+ declare const getAllFunctions: () => Promise<FunctionPermission[]>;
227
229
  /**
228
230
  * 获取License中的关键信息
229
231
  * @returns 返回License信息
230
232
  */
231
- export declare const getLicenseInfo: () => Promise<any>;
233
+ declare const getLicenseInfo: () => Promise<any>;
232
234
  /**
233
235
  * 获取系统中所有License模块名称列表
234
236
  * @returns 返回License模块名称列表
235
237
  */
236
- export declare const getLicenses: () => Promise<string[]>;
238
+ declare const getLicenses: () => Promise<string[]>;
239
+ //#endregion
240
+ export { addUserAttribute, assignDepartmentsToUser, assignRolesToUser, assignUsersToGroup, assignUsersToRole, changePassword, createDepartment, createFunction, createRole, createUser, createUserById, deleteDepartment, deleteFunction, deleteRole, deleteUser, getAllDepartments, getAllFunctions, getAllRoles, getAllUserAttributes, getAllUsers, getCurrentUser, getDepartmentByCode, getDepartmentById, getDepartmentByName, getDepartmentsOfUser, getFunctionById, getLicenseInfo, getLicenses, getPassword, getRoleById, getRoleByName, getUserAttribute, getUserByAttribute, getUserById, getUserByName };