smartbi-toolkit 1.1.3 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) 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 +39 -0
  5. package/dist/index.js +111 -0
  6. package/dist/service/AnalysisReportService.d.ts +97 -0
  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/service/BusinessViewService.d.ts +98 -0
  11. package/dist/service/BusinessViewService.js +146 -0
  12. package/dist/service/CatalogService.d.ts +192 -0
  13. package/dist/service/CatalogService.js +300 -0
  14. package/dist/service/ClientCombinedReportService.d.ts +67 -0
  15. package/dist/service/ClientCombinedReportService.js +96 -0
  16. package/dist/service/ClientInsightService.d.ts +87 -0
  17. package/dist/service/ClientInsightService.js +123 -0
  18. package/dist/service/ClientReportService.d.ts +166 -0
  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/service/DataSourceService.d.ts +182 -0
  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/service/MetadataService.d.ts +41 -0
  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/service/OfficeReportService.d.ts +40 -0
  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/service/PortalService.d.ts +70 -0
  41. package/dist/service/PortalService.js +106 -0
  42. package/dist/service/Report.d.ts +182 -0
  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/service/UserManagerService.d.ts +240 -0
  59. package/dist/service/UserManagerService.js +365 -0
  60. package/dist/types-DOYMZhxT.d.ts +409 -0
  61. package/dist/vite-plugin/vite-plugin-smartbi.d.ts +21 -0
  62. package/dist/vite-plugin/vite-plugin-smartbi.js +54 -0
  63. package/dist/vite-plugin/vite-plugin-smartbix.d.ts +17 -0
  64. package/dist/vite-plugin/vite-plugin-smartbix.js +101 -0
  65. package/package.json +59 -141
@@ -0,0 +1,98 @@
1
+ import { K as ViewMetaData, P as PropertyName } from "../types-DOYMZhxT.js";
2
+
3
+ //#region src/service/BusinessViewService.d.ts
4
+ /**
5
+ * 根据数据集(可视化查询、原生SQL查询、SQL查询)的ID查询其SQL语句
6
+ * @param bizViewId (可视化查询、原生SQL查询、SQL查询)的ID
7
+ * @returns 返回其SQL语句
8
+ */
9
+ declare const getSqlString: (bizViewId: string) => Promise<string>;
10
+ /**
11
+ * 打开业务查询以备读取结果集数据
12
+ * @param bizViewId 业务查询ID
13
+ * @param paramsJsonArrStr 报表的参数信息
14
+ * @param rowsPerPage 加载数据时每页返回的行数
15
+ * @param getTotalRows 是否获取总行数
16
+ * @returns 返回查询基本元数据信息
17
+ */
18
+ declare const openLoadDataView: (bizViewId: string, paramsJsonArrStr: string, rowsPerPage: number, getTotalRows: boolean) => Promise<ViewMetaData>;
19
+ /**
20
+ * 按页读取结果集数据
21
+ * @param loadDataClientId 打开查询后的客户端标识
22
+ * @param pageNum 页码(第1页的页码为0,第2页的页码为1,如此类推)
23
+ * @returns 返回原始报表数据
24
+ */
25
+ declare const loadViewData: (loadDataClientId: string, pageNum: number) => Promise<string[][]>;
26
+ /**
27
+ * 按页读取结果集数据
28
+ * @param loadDataClientId 打开查询后的客户端标识
29
+ * @param pageNum 页码(第1页的页码为0,第2页的页码为1,如此类推)
30
+ * @param dataFormatMap 数据格式映射,如:"DOUBLE", "<浮点型-默认值>",目前仅支持double
31
+ * @returns 返回原始报表数据
32
+ */
33
+ declare const loadViewDataWithDataformat: (loadDataClientId: string, pageNum: number, dataFormatMap: Map<string, string>) => Promise<string[][]>;
34
+ /**
35
+ * 关闭业务查询
36
+ * @param loadDataClientId 打开查询后的客户端标识
37
+ * @returns 无返回值
38
+ */
39
+ declare const closeLoadDataView: (loadDataClientId: string) => Promise<void>;
40
+ /**
41
+ * 打开业务查询
42
+ * @param bizViewId 打开业务查询ID
43
+ * @returns 返回业务查询结果
44
+ */
45
+ declare const openBusinessView: (bizViewId: string) => Promise<any[]>;
46
+ /**
47
+ * 关闭业务查询
48
+ * @param bizViewClientId 打开查询后的客户端标识
49
+ * @returns 无返回值
50
+ */
51
+ declare const closeBusinessView: (bizViewClientId: string) => Promise<void>;
52
+ /**
53
+ * 检测输出字段
54
+ * @param bizViewClientId 打开查询后的客户端标识
55
+ * @returns 无返回值
56
+ */
57
+ declare const getRawSqlOutputField: (bizViewClientId: string) => Promise<void>;
58
+ /**
59
+ * 检测输出字段
60
+ * @param clientId 客户端ID
61
+ * @returns 返回输出字段
62
+ */
63
+ declare const detectOutputFields: (clientId: string) => Promise<any[]>;
64
+ /**
65
+ * 覆盖业务视图
66
+ * @param bizViewClientId 业务视图ID
67
+ * @returns 无返回值
68
+ */
69
+ declare const overwriteBusinessView: (bizViewClientId: string) => Promise<void>;
70
+ /**
71
+ * 创建"原生SQL查询"数据集,并保存到指定目录下
72
+ * @param datasourceId 数据源ID
73
+ * @param sql "原生SQL查询"的SQL语句
74
+ * @param name 数据集的名称
75
+ * @param alias 数据集的别名
76
+ * @param desc 数据集的描述
77
+ * @param folderId 用来保存数据集的指定目录ID
78
+ * @returns 返回所创建的"原生SQL查询"数据集ID
79
+ */
80
+ declare const createRawSqlQueryBusinessViewAndSave: (datasourceId: string, sql: string, name: string, alias: string, desc: string, folderId: string) => Promise<string>;
81
+ /**
82
+ * 更新指定的"原生SQL查询"数据集的SQL语句,并自动检测输出字段
83
+ * @param businessViewId "原生SQL查询"数据集ID
84
+ * @param sql 新的SQL语句
85
+ * @returns 返回数据集ID
86
+ */
87
+ declare const updateRawSqlQueryBusinessView: (businessViewId: string, sql: string) => Promise<string>;
88
+ /**
89
+ * 设置输出字段信息
90
+ * @param businessViewClientId clientId
91
+ * @param fieldId 字段信息
92
+ * @param propertyName 属性名,如alias,desc,dataType,dataFormat,orderby,transformRule
93
+ * @param propertyValue 属性值
94
+ * @returns 无返回值
95
+ */
96
+ declare const setOutputFieldInfo: (businessViewClientId: string, fieldId: string, propertyName: PropertyName, propertyValue: string) => Promise<void>;
97
+ //#endregion
98
+ export { closeBusinessView, closeLoadDataView, createRawSqlQueryBusinessViewAndSave, detectOutputFields, getRawSqlOutputField, getSqlString, loadViewData, loadViewDataWithDataformat, openBusinessView, openLoadDataView, overwriteBusinessView, setOutputFieldInfo, updateRawSqlQueryBusinessView };
@@ -0,0 +1,146 @@
1
+ import { smartbi } from "../index.js";
2
+
3
+ //#region src/service/BusinessViewService.ts
4
+ /**
5
+ * 根据数据集(可视化查询、原生SQL查询、SQL查询)的ID查询其SQL语句
6
+ * @param bizViewId (可视化查询、原生SQL查询、SQL查询)的ID
7
+ * @returns 返回其SQL语句
8
+ */
9
+ const getSqlString = (bizViewId) => {
10
+ return smartbi("BusinessViewService", "getSqlString", [bizViewId]);
11
+ };
12
+ /**
13
+ * 打开业务查询以备读取结果集数据
14
+ * @param bizViewId 业务查询ID
15
+ * @param paramsJsonArrStr 报表的参数信息
16
+ * @param rowsPerPage 加载数据时每页返回的行数
17
+ * @param getTotalRows 是否获取总行数
18
+ * @returns 返回查询基本元数据信息
19
+ */
20
+ const openLoadDataView = (bizViewId, paramsJsonArrStr, rowsPerPage, getTotalRows) => {
21
+ return smartbi("BusinessViewService", "openLoadDataView", [
22
+ bizViewId,
23
+ paramsJsonArrStr,
24
+ rowsPerPage,
25
+ getTotalRows
26
+ ]);
27
+ };
28
+ /**
29
+ * 按页读取结果集数据
30
+ * @param loadDataClientId 打开查询后的客户端标识
31
+ * @param pageNum 页码(第1页的页码为0,第2页的页码为1,如此类推)
32
+ * @returns 返回原始报表数据
33
+ */
34
+ const loadViewData = (loadDataClientId, pageNum) => {
35
+ return smartbi("BusinessViewService", "loadViewData", [loadDataClientId, pageNum]);
36
+ };
37
+ /**
38
+ * 按页读取结果集数据
39
+ * @param loadDataClientId 打开查询后的客户端标识
40
+ * @param pageNum 页码(第1页的页码为0,第2页的页码为1,如此类推)
41
+ * @param dataFormatMap 数据格式映射,如:"DOUBLE", "<浮点型-默认值>",目前仅支持double
42
+ * @returns 返回原始报表数据
43
+ */
44
+ const loadViewDataWithDataformat = (loadDataClientId, pageNum, dataFormatMap) => {
45
+ return smartbi("BusinessViewService", "loadViewDataWithDataformat", [
46
+ loadDataClientId,
47
+ pageNum,
48
+ dataFormatMap.toString()
49
+ ]);
50
+ };
51
+ /**
52
+ * 关闭业务查询
53
+ * @param loadDataClientId 打开查询后的客户端标识
54
+ * @returns 无返回值
55
+ */
56
+ const closeLoadDataView = (loadDataClientId) => {
57
+ return smartbi("BusinessViewService", "closeLoadDataView", [loadDataClientId]);
58
+ };
59
+ /**
60
+ * 打开业务查询
61
+ * @param bizViewId 打开业务查询ID
62
+ * @returns 返回业务查询结果
63
+ */
64
+ const openBusinessView = (bizViewId) => {
65
+ return smartbi("BusinessViewService", "openBusinessView", [bizViewId]);
66
+ };
67
+ /**
68
+ * 关闭业务查询
69
+ * @param bizViewClientId 打开查询后的客户端标识
70
+ * @returns 无返回值
71
+ */
72
+ const closeBusinessView = (bizViewClientId) => {
73
+ return smartbi("BusinessViewService", "closeBusinessView", [bizViewClientId]);
74
+ };
75
+ /**
76
+ * 检测输出字段
77
+ * @param bizViewClientId 打开查询后的客户端标识
78
+ * @returns 无返回值
79
+ */
80
+ const getRawSqlOutputField = (bizViewClientId) => {
81
+ return smartbi("BusinessViewService", "getRawSqlOutputField", [bizViewClientId]);
82
+ };
83
+ /**
84
+ * 检测输出字段
85
+ * @param clientId 客户端ID
86
+ * @returns 返回输出字段
87
+ */
88
+ const detectOutputFields = (clientId) => {
89
+ return smartbi("BusinessViewService", "detectOutputFields", [clientId]);
90
+ };
91
+ /**
92
+ * 覆盖业务视图
93
+ * @param bizViewClientId 业务视图ID
94
+ * @returns 无返回值
95
+ */
96
+ const overwriteBusinessView = (bizViewClientId) => {
97
+ return smartbi("BusinessViewService", "overwriteBusinessView", [bizViewClientId]);
98
+ };
99
+ /**
100
+ * 创建"原生SQL查询"数据集,并保存到指定目录下
101
+ * @param datasourceId 数据源ID
102
+ * @param sql "原生SQL查询"的SQL语句
103
+ * @param name 数据集的名称
104
+ * @param alias 数据集的别名
105
+ * @param desc 数据集的描述
106
+ * @param folderId 用来保存数据集的指定目录ID
107
+ * @returns 返回所创建的"原生SQL查询"数据集ID
108
+ */
109
+ const createRawSqlQueryBusinessViewAndSave = (datasourceId, sql, name, alias, desc, folderId) => {
110
+ return smartbi("BusinessViewService", "createRawSqlQueryBusinessViewAndSave", [
111
+ datasourceId,
112
+ sql,
113
+ name,
114
+ alias,
115
+ desc,
116
+ folderId
117
+ ]);
118
+ };
119
+ /**
120
+ * 更新指定的"原生SQL查询"数据集的SQL语句,并自动检测输出字段
121
+ * @param businessViewId "原生SQL查询"数据集ID
122
+ * @param sql 新的SQL语句
123
+ * @returns 返回数据集ID
124
+ */
125
+ const updateRawSqlQueryBusinessView = (businessViewId, sql) => {
126
+ return smartbi("BusinessViewService", "updateRawSqlQueryBusinessView", [businessViewId, sql]);
127
+ };
128
+ /**
129
+ * 设置输出字段信息
130
+ * @param businessViewClientId clientId
131
+ * @param fieldId 字段信息
132
+ * @param propertyName 属性名,如alias,desc,dataType,dataFormat,orderby,transformRule
133
+ * @param propertyValue 属性值
134
+ * @returns 无返回值
135
+ */
136
+ const setOutputFieldInfo = (businessViewClientId, fieldId, propertyName, propertyValue) => {
137
+ return smartbi("BusinessViewService", "setOutputFieldInfo", [
138
+ businessViewClientId,
139
+ fieldId,
140
+ propertyName,
141
+ propertyValue
142
+ ]);
143
+ };
144
+
145
+ //#endregion
146
+ export { closeBusinessView, closeLoadDataView, createRawSqlQueryBusinessViewAndSave, detectOutputFields, getRawSqlOutputField, getSqlString, loadViewData, loadViewDataWithDataformat, openBusinessView, openLoadDataView, overwriteBusinessView, setOutputFieldInfo, updateRawSqlQueryBusinessView };
@@ -0,0 +1,192 @@
1
+ import { L as ResourcePermission, M as PermissionDescendType, N as PermissionType, R as ResourcePermissionItem, o as CatalogElement, s as CatalogElementType, t as AccessType, v as HiddenInBrowse, y as ICatalogSearchResult } from "../types-DOYMZhxT.js";
2
+
3
+ //#region src/service/CatalogService.d.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
+ declare const isCatalogElementAccessible: (elementId: string, type: AccessType) => Promise<boolean>;
17
+ /**
18
+ * 获取资源树的顶层节点列表
19
+ * @returns 返回顶层节点列表,节点类型为CatalogElement
20
+ */
21
+ declare const getRootElements: () => Promise<CatalogElement[]>;
22
+ /**
23
+ * 获得指定节点的子节点列表
24
+ * @param nodeId 指定节点ID
25
+ * @returns 返回子节点列表,节点类型为CatalogElement
26
+ */
27
+ declare const getChildElements: (nodeId: string) => Promise<CatalogElement[]>;
28
+ /**
29
+ * 创建目录
30
+ * @param parentNodeId 父目录ID
31
+ * @param name 目录名称
32
+ * @param alias 目录别名
33
+ * @param desc 目录描述
34
+ * @param type 目录类型,此项可为空,系统会自动根据父目录的类型进行设置
35
+ * @param hiddenInBrowse 是否在浏览模块中隐藏此目录
36
+ * @returns 返回创建的目录对象,类型为CatalogElement
37
+ */
38
+ declare const createFolder: (parentNodeId: string, name: string, alias: string, desc: string, type: CatalogElementType | string, hiddenInBrowse: HiddenInBrowse) => Promise<CatalogElement>;
39
+ /**
40
+ * 通过ID创建目录
41
+ * @param parentNodeId 父目录ID
42
+ * @param id 目录ID
43
+ * @param name 目录名称
44
+ * @param alias 目录别名
45
+ * @param desc 目录描述
46
+ * @param type 目录类型,此项可为空,系统会自动根据父目录的类型进行设置
47
+ * @param hiddenInBrowse 是否在浏览模块中隐藏此目录
48
+ * @returns 返回创建的目录对象,类型为CatalogElement
49
+ */
50
+ declare const createFolderById: (parentNodeId: string, id: string, name: string, alias: string, desc: string, type: CatalogElementType | string, hiddenInBrowse: HiddenInBrowse) => Promise<CatalogElement>;
51
+ /**
52
+ * 通过ID访问资源
53
+ * @param elementId 资源ID
54
+ * @returns 返回资源对象,类型为CatalogElement
55
+ */
56
+ declare const getCatalogElementById: (elementId: string) => Promise<CatalogElement>;
57
+ /**
58
+ * 通过类型获取结点
59
+ * @param type 节点类型
60
+ * @returns 返回指定类型的节点列表,节点类型为CatalogElement
61
+ */
62
+ declare const getCatalogElementByType: (type: CatalogElementType | string) => Promise<CatalogElement[]>;
63
+ /**
64
+ * 获取目录下指定类型的子元素
65
+ * @param parentNodeId 父节点ID
66
+ * @param types 要获取的子元素类型数组
67
+ * @returns 返回指定类型的子元素列表,节点类型为CatalogElement
68
+ */
69
+ declare const getChildElementsByTypes: (parentNodeId: string, types: (CatalogElementType | string)[]) => Promise<CatalogElement[]>;
70
+ /**
71
+ * 获取资源直接被授予的权限信息
72
+ * @param resId 资源ID
73
+ * @returns 返回资源直接被授予的权限信息,类型为ResourcePermission
74
+ */
75
+ declare const getAssignedPermissions: (resId: string) => Promise<ResourcePermission>;
76
+ /**
77
+ * 获取资源继承的权限信息
78
+ * @param resId 资源ID
79
+ * @returns 返回资源继承的权限信息列表,类型为ResourcePermissionItem[]
80
+ */
81
+ declare const getInheritedPermissions: (resId: string) => Promise<ResourcePermissionItem[]>;
82
+ /**
83
+ * 通过ID删除资源
84
+ * @param id 资源ID
85
+ * @returns 无返回值
86
+ */
87
+ declare const deleteCatalogElement: (id: string) => Promise<void>;
88
+ /**
89
+ * 根据别名或名称模糊查询资源信息
90
+ * @param alias 别名或名称关键字
91
+ * @param purview "READ":"查看"; "WRITE":"编辑"; "REF":"引用"
92
+ * @returns 返回搜索结果列表,类型为ICatalogSearchResult[]
93
+ */
94
+ declare const searchCatalogElementLikeAlias: (alias: string, purview: AccessType) => Promise<ICatalogSearchResult[]>;
95
+ /**
96
+ * 设置该资源的组权限
97
+ * @param elementId 资源ID
98
+ * @param groupId 组ID
99
+ * @param type 权限类型
100
+ * @param inherited 是否继承
101
+ * @param permissionDescendType 权限下降类型
102
+ * @param isGroupDescend 是否组下降
103
+ * @returns 无返回值
104
+ */
105
+ declare const setAssignedPermissionByGroup: (elementId: string, groupId: string, type: PermissionType, inherited: boolean, permissionDescendType: PermissionDescendType, isGroupDescend: boolean) => Promise<void>;
106
+ /**
107
+ * 设置该资源的角色权限
108
+ * @param elementId 资源ID
109
+ * @param roleId 角色ID
110
+ * @param type 权限类型
111
+ * @param inherited 是否继承
112
+ * @param permissionDescendType 权限下降类型
113
+ * @returns 无返回值
114
+ */
115
+ declare const setAssignedPermissionByRole: (elementId: string, roleId: string, type: PermissionType, inherited: boolean, permissionDescendType: PermissionDescendType) => Promise<void>;
116
+ /**
117
+ * 设置该资源的用户权限
118
+ * @param elementId 资源ID
119
+ * @param userId 用户ID
120
+ * @param type 权限类型
121
+ * @param inherited 是否继承
122
+ * @param permissionDescendType 权限下降类型
123
+ * @returns 无返回值
124
+ */
125
+ declare const setAssignedPermissionByUser: (elementId: string, userId: string, type: PermissionType, inherited: boolean, permissionDescendType: PermissionDescendType) => Promise<void>;
126
+ /**
127
+ * 更换资源节点的图片
128
+ * @param id 资源ID
129
+ * @param image 图片路径或图片数据
130
+ * @returns 无返回值
131
+ */
132
+ declare const updateCatalogElementImage: (id: string, image: string) => Promise<void>;
133
+ /**
134
+ * 根据ID修改资源信息
135
+ * @param id 资源ID
136
+ * @param jsonNodeConfig JSON节点配置 资源定义,json字符串,格式如下: "{\"alias\":\"复选框_报表2\",\"desc\":\"复选框_报表2\",\"deletedExtKeys\":\"hasChild,detectChild\",\"extended\":\"{'customImage':'Foldera.jpg','hiddenInBrowse':'false'}\"}" alias: 可选属性,别名 desc: 可选属性,描述 deletedExtKeys:可选属性,需要删除的扩展属性的key,参数内容可以不包含该属性 extended:可选属性,需要新增或修改的扩展属性内容,参数内容可以不包含该属性
137
+ * @param wholeExtended 完整的扩展内容,json字符串,格式如下:{"extended": "{\"hasChild\":\"false\",\"hiddenInBrowse\":\"false\"}"}。 该参数内容可为空。如不为空,扩展字段内容将全部替换为该参数内容,否则只对扩展属性进行增量添加。
138
+ * @returns 无返回值
139
+ */
140
+ declare const updateCatalogNode: (id: string, jsonNodeConfig: string, wholeExtended: string) => Promise<void>;
141
+ /**
142
+ * 创建WEB链接
143
+ * @param parentFolderId 父文件夹ID
144
+ * @param urlName URL名称
145
+ * @param urlAlias URL别名
146
+ * @param urlDesc URL描述
147
+ * @param url URL地址
148
+ * @param setting 设置是否新窗口打开以及是否传递登录信息
149
+ * 设置在当前窗口打开设置如下: {"currentWindow":true}
150
+ * 设置在当前窗口打开并传递登录信息设置如下: {"currentWindow":true,"autoLogin":true}
151
+ * 如果此值设置为空,则系统会默认为在新窗口打开并不传递登录信息
152
+ * @returns 返回新创建的URL链接ID
153
+ */
154
+ declare const createURLLink: (parentFolderId: string, urlName: string, urlAlias: string, urlDesc: string, url: string, setting: string) => Promise<string>;
155
+ /**
156
+ * 更新WEB链接
157
+ * @param urlID 结点ID
158
+ * @param urlAlias URL别名
159
+ * @param urlDesc URL描述
160
+ * @param url URL地址
161
+ * @param setting 设置是否新窗口打开以及是否传递登录信息
162
+ * 设置在当前窗口打开设置如下: {"currentWindow":true}
163
+ * 设置在当前窗口打开并传递登录信息设置如下: {"currentWindow":true,"autoLogin":true}
164
+ * 如果此值设置为空,则系统会默认为在新窗口打开并不传递登录信
165
+ * @returns 无返回值
166
+ */
167
+ declare const updateURLLink: (urlID: string, urlAlias: string, urlDesc: string, url: string, setting: string) => Promise<void>;
168
+ /**
169
+ * 复制粘贴并返回新ID
170
+ * @param toId 目标ID
171
+ * @param srcId 源ID
172
+ * @param name 名称
173
+ * @param alias 别名
174
+ * @param desc 描述
175
+ * @returns 返回新创建元素的ID
176
+ */
177
+ declare const copyAndPasteReturnNewId: (toId: string, srcId: string, name: string, alias: string, desc: string) => Promise<string>;
178
+ /**
179
+ * 创建资源树结点
180
+ * 注意:此方法是单纯新建一个树结点,调用此方法前,必须存在此结点类型的实体资源.
181
+ * @param parentId 父ID
182
+ * @param id ID
183
+ * @param name 名称
184
+ * @param alias 别名
185
+ * @param desc 描述
186
+ * @param order 顺序
187
+ * @param type 类型
188
+ * @returns 返回创建的资源节点,类型为CatalogElement
189
+ */
190
+ declare const createCatalogElement: (parentId: string, id: string, name: string, alias: string, desc: string, order: number, type: CatalogElementType | string) => Promise<CatalogElement>;
191
+ //#endregion
192
+ export { copyAndPasteReturnNewId, createCatalogElement, createFolder, createFolderById, createURLLink, deleteCatalogElement, getAssignedPermissions, getCatalogElementById, getCatalogElementByType, getChildElements, getChildElementsByTypes, getInheritedPermissions, getRootElements, isCatalogElementAccessible, searchCatalogElementLikeAlias, setAssignedPermissionByGroup, setAssignedPermissionByRole, setAssignedPermissionByUser, updateCatalogElementImage, updateCatalogNode, updateURLLink };