@geelato/gl-runtime-core 0.0.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 (117) hide show
  1. package/dist/gl-runtime-core.css +1 -0
  2. package/dist/gl-runtime-core.css.gz +0 -0
  3. package/dist/gl-runtime-core.js +169768 -0
  4. package/dist/gl-runtime-core.js.gz +0 -0
  5. package/dist/gl-runtime-core.umd.cjs +35 -0
  6. package/dist/iconfont-BJ2VOOKJ.js +35 -0
  7. package/dist/iconfont-BJ2VOOKJ.js.gz +0 -0
  8. package/dist/types/actions/JsScriptExecutor.d.ts +291 -0
  9. package/dist/types/actions/fns/datetime.d.ts +22 -0
  10. package/dist/types/actions/fns/device.d.ts +23 -0
  11. package/dist/types/actions/fns/math.d.ts +27 -0
  12. package/dist/types/api/EntityApi.d.ts +143 -0
  13. package/dist/types/api/EntityDataSource.d.ts +272 -0
  14. package/dist/types/api/EntityDeleteService.d.ts +47 -0
  15. package/dist/types/api/EntityQueryCache.d.ts +62 -0
  16. package/dist/types/api/EntityQueryService.d.ts +71 -0
  17. package/dist/types/api/EntityResultMapping.d.ts +11 -0
  18. package/dist/types/api/EntitySaveService.d.ts +46 -0
  19. package/dist/types/api/EntityTypes.d.ts +135 -0
  20. package/dist/types/api/EntityUtilService.d.ts +42 -0
  21. package/dist/types/assets/globalConfig.d.ts +5 -0
  22. package/dist/types/components/AppProvideProxy.d.ts +21 -0
  23. package/dist/types/components/ComponentTreeParser.d.ts +17 -0
  24. package/dist/types/components/FormProvideProxy.d.ts +35 -0
  25. package/dist/types/components/Hooks.d.ts +7 -0
  26. package/dist/types/components/PageDataSourceManager.d.ts +28 -0
  27. package/dist/types/components/PageLoader.d.ts +6 -0
  28. package/dist/types/components/PageProvideProxy.d.ts +413 -0
  29. package/dist/types/components/UiEventNames.d.ts +15 -0
  30. package/dist/types/components/gl-chart/GlChart.vue.d.ts +135 -0
  31. package/dist/types/components/gl-component/GlComponent.vue.d.ts +191 -0
  32. package/dist/types/components/gl-component/GlComponentSupport.d.ts +49 -0
  33. package/dist/types/components/gl-component/GlInsts.vue.d.ts +19 -0
  34. package/dist/types/components/gl-div/GlDiv.vue.d.ts +107 -0
  35. package/dist/types/components/gl-dnd-placeholder/Index.vue.d.ts +112 -0
  36. package/dist/types/components/gl-html/Index.vue.d.ts +7 -0
  37. package/dist/types/components/gl-iconfont/IconsJson.d.ts +15 -0
  38. package/dist/types/components/gl-iconfont/Index.vue.d.ts +19 -0
  39. package/dist/types/components/gl-loader/GlLoader.vue.d.ts +3 -0
  40. package/dist/types/components/gl-login/FloatingActionButton.vue.d.ts +9 -0
  41. package/dist/types/components/gl-login/LoginDialog.vue.d.ts +9 -0
  42. package/dist/types/components/gl-loop/GlLoop.vue.d.ts +230 -0
  43. package/dist/types/components/gl-page-viewer/GlPageViewer.vue.d.ts +221 -0
  44. package/dist/types/components/gl-scanner/GlScanner.vue.d.ts +44 -0
  45. package/dist/types/components/gl-template/GlTemplate.vue.d.ts +154 -0
  46. package/dist/types/components/gl-template/Typs.d.ts +4 -0
  47. package/dist/types/components/gl-virtual/Index.vue.d.ts +3 -0
  48. package/dist/types/components/mixins.d.ts +86 -0
  49. package/dist/types/components/ui-mixins.d.ts +16 -0
  50. package/dist/types/composables/useApiUrl.d.ts +30 -0
  51. package/dist/types/composables/useGlobal.d.ts +21 -0
  52. package/dist/types/composables/useLoading.d.ts +6 -0
  53. package/dist/types/composables/useLogger.d.ts +32 -0
  54. package/dist/types/composables/useMessages.d.ts +15 -0
  55. package/dist/types/composables/useRole.d.ts +5 -0
  56. package/dist/types/locales/index.d.ts +21 -0
  57. package/dist/types/locales/lang/en-US.d.ts +4 -0
  58. package/dist/types/locales/lang/zh-CN.d.ts +4 -0
  59. package/dist/types/m/datasource/ApplicationApi.d.ts +163 -0
  60. package/dist/types/m/datasource/ArcoApi.d.ts +76 -0
  61. package/dist/types/m/datasource/Base.d.ts +99 -0
  62. package/dist/types/m/datasource/BranchApi.d.ts +2 -0
  63. package/dist/types/m/datasource/CompanyApi.d.ts +49 -0
  64. package/dist/types/m/datasource/DictApi.d.ts +127 -0
  65. package/dist/types/m/datasource/DictionaryApi.d.ts +16 -0
  66. package/dist/types/m/datasource/EncodingApi.d.ts +59 -0
  67. package/dist/types/m/datasource/Entry.d.ts +5 -0
  68. package/dist/types/m/datasource/FieldMeta.d.ts +6 -0
  69. package/dist/types/m/datasource/FileApi.d.ts +273 -0
  70. package/dist/types/m/datasource/FileTemplateApi.d.ts +114 -0
  71. package/dist/types/m/datasource/InterApi.d.ts +104 -0
  72. package/dist/types/m/datasource/MarketApi.d.ts +191 -0
  73. package/dist/types/m/datasource/MessageApi.d.ts +27 -0
  74. package/dist/types/m/datasource/ModelApi.d.ts +327 -0
  75. package/dist/types/m/datasource/NoticeApi.d.ts +37 -0
  76. package/dist/types/m/datasource/OcrPdfApi.d.ts +145 -0
  77. package/dist/types/m/datasource/PluginApi.d.ts +35 -0
  78. package/dist/types/m/datasource/ScheduleApi.d.ts +67 -0
  79. package/dist/types/m/datasource/SecurityApi.d.ts +253 -0
  80. package/dist/types/m/datasource/SiteApi.d.ts +38 -0
  81. package/dist/types/m/datasource/SqlApi.d.ts +45 -0
  82. package/dist/types/m/datasource/SysConfigApi.d.ts +52 -0
  83. package/dist/types/m/datasource/TenantApi.d.ts +107 -0
  84. package/dist/types/m/datasource/UserApi.d.ts +173 -0
  85. package/dist/types/m/datasource/VersionApi.d.ts +59 -0
  86. package/dist/types/m/datasource/WeChatApi.d.ts +34 -0
  87. package/dist/types/m/datasource/WorkflowApi.d.ts +317 -0
  88. package/dist/types/m/datasource/ZxingApi.d.ts +38 -0
  89. package/dist/types/main.d.ts +114 -0
  90. package/dist/types/store/index.d.ts +2 -0
  91. package/dist/types/store/modules/user/index.d.ts +16 -0
  92. package/dist/types/types/Operators.d.ts +19 -0
  93. package/dist/types/types/global.d.ts +198 -0
  94. package/dist/types/types/options.d.ts +35 -0
  95. package/dist/types/utils/Auth.d.ts +37 -0
  96. package/dist/types/utils/CacheManager.d.ts +110 -0
  97. package/dist/types/utils/CheckUtil.d.ts +5 -0
  98. package/dist/types/utils/ClipboardUtil.d.ts +24 -0
  99. package/dist/types/utils/ConvertUtil.d.ts +81 -0
  100. package/dist/types/utils/Event.d.ts +2 -0
  101. package/dist/types/utils/FileUtil.d.ts +7 -0
  102. package/dist/types/utils/GenerateUtil.d.ts +14 -0
  103. package/dist/types/utils/IsUtil.d.ts +126 -0
  104. package/dist/types/utils/MixUtil.d.ts +49 -0
  105. package/dist/types/utils/Monitor.d.ts +2 -0
  106. package/dist/types/utils/PageUtil.d.ts +14 -0
  107. package/dist/types/utils/PluginUtil.d.ts +9 -0
  108. package/dist/types/utils/RecordsUtil.d.ts +3 -0
  109. package/dist/types/utils/SseClient.d.ts +34 -0
  110. package/dist/types/utils/StoreUtil.d.ts +8 -0
  111. package/dist/types/utils/StringUtil.d.ts +29 -0
  112. package/dist/types/utils/Utils.d.ts +217 -0
  113. package/dist/types/utils/emitter.d.ts +3 -0
  114. package/dist/types/utils/renderTemplate.d.ts +6 -0
  115. package/dist/types/utils/toChineseCurrency.d.ts +5 -0
  116. package/package.json +76 -0
  117. package/src/main.ts +498 -0
@@ -0,0 +1,145 @@
1
+ import { PageQueryResponse, QueryResult } from './Base';
2
+ import { AxiosResponse } from 'axios';
3
+ export interface PDFAnnotationPickContentForm {
4
+ annotationAreaContent: string;
5
+ instanceAreaContent: string;
6
+ }
7
+ export interface PDFResolveDataForm {
8
+ wholeContent: string;
9
+ pdfAnnotationPickContentList: PDFAnnotationPickContentForm[];
10
+ }
11
+ export interface OcrPdfContentForm {
12
+ name: string;
13
+ content: string;
14
+ result: string;
15
+ errorMsg: string;
16
+ }
17
+ export interface OcrPdfWholeForm {
18
+ wholeContent: string;
19
+ ocrPdfContents: OcrPdfContentForm[];
20
+ }
21
+ export interface PDFAnnotationDiscernRuleForm {
22
+ bem: string;
23
+ discernWidth: number;
24
+ lem: string;
25
+ rem: string;
26
+ unionType: string;
27
+ }
28
+ export interface PDFAnnotationMetaForm {
29
+ width: number;
30
+ height: number;
31
+ annotationIndex: number;
32
+ x: number;
33
+ y: number;
34
+ pageIndex: number;
35
+ templateAreaContent: string;
36
+ floatArea: boolean;
37
+ lineHeight: number;
38
+ content: string;
39
+ annotationAttrs: Record<string, any>;
40
+ pdfAnnotationDiscernRule: PDFAnnotationDiscernRuleForm;
41
+ }
42
+ export interface QueryOcrPdfMetaForm {
43
+ id: string;
44
+ pdfId: string;
45
+ name: string;
46
+ position: string;
47
+ type: string;
48
+ rule: string;
49
+ example: string;
50
+ description: string;
51
+ seqNo: string;
52
+ appId: string;
53
+ tenantCode: string;
54
+ annotationIndex: number;
55
+ floatAreaY: boolean;
56
+ lineHeight: number;
57
+ discernRule: string;
58
+ }
59
+ /**
60
+ * 分页查询
61
+ * @param params Record<string, any>
62
+ */
63
+ export declare function pageQueryOcrPdfMeta(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
64
+ /**
65
+ * 条件查询
66
+ * @param params Record<string, any>
67
+ */
68
+ export declare function queryOcrPdfMetas(params: Record<string, any>): Promise< AxiosResponse<QueryOcrPdfMetaForm[], any>>;
69
+ /**
70
+ * 单条查询
71
+ * @param id string,主键
72
+ */
73
+ export declare function getOcrPdfMeta(id: string): Promise< AxiosResponse<QueryOcrPdfMetaForm, any>>;
74
+ /**
75
+ * 创建或更新
76
+ * @param params QueryOcrPdfMetaForm,批准信息
77
+ */
78
+ export declare function createOrUpdateOcrPdfMeta(params: QueryOcrPdfMetaForm): Promise< AxiosResponse<QueryResult, any>>;
79
+ /**
80
+ * 测试规则
81
+ * @param params
82
+ */
83
+ export declare function testOcrPdfMetaRules(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
84
+ /**
85
+ * 更新规则
86
+ * @param pdfId 模板id
87
+ * @param params {name:批注内容,rule:批注规则}
88
+ */
89
+ export declare function updateOcrPdfMetaRules(pdfId: string, params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
90
+ /**
91
+ * 删除
92
+ * @param id string,主键
93
+ */
94
+ export declare function deleteOcrPdfMeta(id: string): Promise< AxiosResponse<QueryResult, any>>;
95
+ export interface QueryOcrPdfForm {
96
+ id: string;
97
+ title: string;
98
+ groupCode: string;
99
+ content: string;
100
+ template: string;
101
+ rule: string;
102
+ enableStatus: number;
103
+ description: string;
104
+ appId: string;
105
+ tenantCode: string;
106
+ metas?: QueryOcrPdfMetaForm[];
107
+ }
108
+ /**
109
+ * 分页查询
110
+ * @param params Record<string, any>,查询条件
111
+ */
112
+ export declare function pageQueryOcrPdf(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
113
+ /**
114
+ * 条件查询
115
+ * @param params Record<string, any>,查询条件
116
+ */
117
+ export declare function queryOcrPdfs(params: Record<string, any>): Promise< AxiosResponse<QueryOcrPdfForm[], any>>;
118
+ /**
119
+ * 单条查询
120
+ * @param id string,主键
121
+ */
122
+ export declare function getOcrPdf(id: string, hasMeta?: boolean): Promise< AxiosResponse<QueryOcrPdfForm, any>>;
123
+ /**
124
+ * 创建或更新
125
+ * @param params QueryOcrPdfForm,PDF信息
126
+ */
127
+ export declare function createOrUpdateOcrPdf(params: QueryOcrPdfForm, hasMeta?: boolean): Promise< AxiosResponse<QueryResult, any>>;
128
+ /**
129
+ * 删除
130
+ * @param id string,主键
131
+ */
132
+ export declare function deleteOcrPdf(id: string): Promise< AxiosResponse<QueryResult, any>>;
133
+ /**
134
+ * 解析PDF
135
+ * @param params Record<string, any>
136
+ */
137
+ export declare function analysisOcrPdf(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
138
+ /**
139
+ * 校验时间格式
140
+ * @param params
141
+ */
142
+ export declare function validateTimeRule(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
143
+ export declare function ocrPdfResolve(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
144
+ export declare function ocrPdfResolveRule(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
145
+ export declare function querySelectOptionGroup(): Promise< AxiosResponse<QueryResult, any>>;
@@ -0,0 +1,35 @@
1
+ import { QueryResult } from './Base';
2
+ import { AxiosResponse } from 'axios';
3
+ export interface PluginInfo {
4
+ id: string;
5
+ name?: string;
6
+ description: string;
7
+ version: string;
8
+ provider?: string;
9
+ author?: string;
10
+ state?: string;
11
+ enabled?: boolean;
12
+ switching?: boolean;
13
+ }
14
+ export interface PluginToggleRequest {
15
+ pluginId: string;
16
+ enabled: boolean;
17
+ }
18
+ /**
19
+ * 获取插件列表
20
+ * @returns 插件列表响应
21
+ */
22
+ export declare function getPluginList(): Promise< AxiosResponse<QueryResult, any>>;
23
+ /**
24
+ * 切换插件状态(启用/禁用)
25
+ * @param pluginId 插件ID
26
+ * @param enabled 是否启用
27
+ * @returns 响应结果
28
+ */
29
+ export declare function switchPluginStatus(pluginId: string, enabled: boolean): Promise< AxiosResponse<QueryResult, any>>;
30
+ /**
31
+ * 添加插件
32
+ * @param pluginData 插件数据
33
+ * @returns 响应结果
34
+ */
35
+ export declare function addPlugin(pluginData: any): Promise< AxiosResponse<QueryResult, any>>;
@@ -0,0 +1,67 @@
1
+ import { PageQueryResponse, QueryResult } from './Base';
2
+ import { AxiosResponse } from 'axios';
3
+ export interface QueryScheduleForm {
4
+ id: string;
5
+ name: string;
6
+ code: string;
7
+ classInfo: string;
8
+ expression: string;
9
+ type: string;
10
+ params: string;
11
+ status: number;
12
+ description: string;
13
+ retryTimes: number;
14
+ appId: string;
15
+ tenantCode: string;
16
+ extra?: string;
17
+ }
18
+ export declare function pageQuerySchedules(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
19
+ export declare function querySchedules(params: Record<string, any>): Promise< AxiosResponse<QueryScheduleForm[], any>>;
20
+ export declare function getSchedule(id: string): Promise< AxiosResponse<QueryScheduleForm, any>>;
21
+ export declare function createOrUpdateSchedule(params: QueryScheduleForm): Promise< AxiosResponse<QueryResult, any>>;
22
+ export declare function deleteSchedule(id: string): Promise< AxiosResponse<QueryResult, any>>;
23
+ export declare function validateScheduleCode(params: QueryScheduleForm): Promise< AxiosResponse<boolean, any>>;
24
+ export declare function changeScheduleStatus(id: string, status: number): Promise< AxiosResponse<QueryScheduleForm, any>>;
25
+ export interface QueryScheduleLogForm {
26
+ id: string;
27
+ scheduleId: string;
28
+ scheduleCode: string;
29
+ scheduleName: string;
30
+ scheduleInfo: string;
31
+ type: string;
32
+ startAt: string;
33
+ finishAt: string;
34
+ status: number;
35
+ result: string;
36
+ appId: string;
37
+ tenantCode: string;
38
+ }
39
+ export declare function pageQueryScheduleLogs(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
40
+ export declare function queryScheduleLogs(params: Record<string, any>): Promise< AxiosResponse<QueryScheduleLogForm[], any>>;
41
+ export declare function getScheduleLog(id: string): Promise< AxiosResponse<QueryScheduleLogForm, any>>;
42
+ export declare function createOrUpdateScheduleLog(params: QueryScheduleLogForm): Promise< AxiosResponse<QueryResult, any>>;
43
+ export declare function deleteScheduleLog(id: string): Promise< AxiosResponse<QueryResult, any>>;
44
+ /**
45
+ * 调度运行
46
+ * @param scheduleUrl
47
+ * @param code
48
+ */
49
+ export declare function scheduleRuntimeStart(code: string): Promise< AxiosResponse<QueryResult, any>>;
50
+ /**
51
+ * 调度停止
52
+ * @param scheduleUrl
53
+ * @param code
54
+ */
55
+ export declare function scheduleRuntimeStop(code: string): Promise< AxiosResponse<QueryResult, any>>;
56
+ /**
57
+ * 调度配置
58
+ * @param scheduleUrl
59
+ * @param code
60
+ */
61
+ export declare function scheduleRuntimeConfig(code: string): Promise< AxiosResponse<QueryResult, any>>;
62
+ /**
63
+ * 调度配置刷新
64
+ * @param scheduleUrl
65
+ * @param code
66
+ */
67
+ export declare function scheduleRuntimeConfigRefresh(code: string): Promise< AxiosResponse<QueryResult, any>>;
@@ -0,0 +1,253 @@
1
+ import { PageQueryResponse, QueryResult } from './Base';
2
+ import { QueryTableColumnForm } from './ModelApi';
3
+ import { AxiosResponse } from 'axios';
4
+ export interface QueryOrgForm {
5
+ id: string;
6
+ pid: string;
7
+ seqNo: number;
8
+ name: string;
9
+ code: string;
10
+ type: string;
11
+ category: string;
12
+ status: number;
13
+ description: string;
14
+ extendId: string;
15
+ isLeaf?: boolean | string;
16
+ tenantCode: string;
17
+ }
18
+ export declare function pageQueryOrg(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
19
+ export declare function queryOrgs(params: Record<string, any>): Promise< AxiosResponse<QueryOrgForm[], any>>;
20
+ export declare function queryOrgsByParams(params: Record<string, any>): Promise< AxiosResponse<QueryOrgForm[], any>>;
21
+ export declare function queryTrees(params: Record<string, any>): Promise< AxiosResponse<QueryOrgForm[], any>>;
22
+ export declare function getOrg(id: string): Promise< AxiosResponse<QueryOrgForm, any>>;
23
+ export declare function createOrUpdateOrg(params: QueryOrgForm): Promise< AxiosResponse<QueryResult, any>>;
24
+ export declare function deleteOrg(id: string): Promise< AxiosResponse<QueryResult, any>>;
25
+ export declare function validateOrgCode(params: QueryOrgForm): Promise< AxiosResponse<boolean, any>>;
26
+ export declare function getOrgCompany(id: string): Promise< AxiosResponse<QueryOrgForm, any>>;
27
+ export interface QueryUserForm {
28
+ id: string;
29
+ jobNumber: string;
30
+ name: string;
31
+ enName: string;
32
+ loginName: string;
33
+ seqNo: number;
34
+ sex: number;
35
+ salt: string;
36
+ avatar: string;
37
+ password: string;
38
+ mobilePrefix: string;
39
+ plainPassword: string;
40
+ mobilePhone: string;
41
+ telephone: string;
42
+ orgId: string;
43
+ orgName: string;
44
+ email: string;
45
+ post: string;
46
+ provinceCode: string;
47
+ cityCode: string;
48
+ type: number;
49
+ source: number;
50
+ enableStatus: number;
51
+ description: string;
52
+ tenantCode: string;
53
+ cooperatingOrgId: string;
54
+ weixinUnionId: string;
55
+ stocked?: boolean;
56
+ }
57
+ export declare function pageQueryUser(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
58
+ export declare function pageQueryStock(request: Record<string, any>, params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
59
+ export declare function pageQueryUserOf(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
60
+ export declare function queryOrgUserByUserId(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
61
+ export declare function queryUsers(params: Record<string, any>): Promise< AxiosResponse<QueryUserForm[], any>>;
62
+ export declare function queryUsersByParams(params: Record<string, any>): Promise< AxiosResponse<QueryUserForm[], any>>;
63
+ export declare function getUser(id: string): Promise< AxiosResponse<QueryUserForm, any>>;
64
+ export declare function createOrUpdateUser(params: QueryUserForm): Promise< AxiosResponse<QueryResult, any>>;
65
+ export declare function deleteUser(id: string): Promise< AxiosResponse<QueryResult, any>>;
66
+ export declare function resetPassword(id: string): Promise< AxiosResponse<QueryResult, any>>;
67
+ export declare function validateUserParams(type: string, params: QueryUserForm): Promise< AxiosResponse<boolean, any>>;
68
+ export declare function getUserCompany(id: string): Promise< AxiosResponse<QueryOrgForm, any>>;
69
+ export interface QueryUserStockForm {
70
+ id: string;
71
+ userId: string;
72
+ stockId: string;
73
+ }
74
+ export declare function countUserStock(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
75
+ export declare function createUserStock(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
76
+ export declare function removeUserStock(stockId: string): Promise< AxiosResponse<QueryResult, any>>;
77
+ export interface QueryOrgUserForm {
78
+ id: string;
79
+ userId: string;
80
+ userName: string;
81
+ orgId: string;
82
+ orgName: string;
83
+ defaultOrg: number;
84
+ post: string;
85
+ tenantCode: string;
86
+ }
87
+ export declare function pageQueryOrgUser(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
88
+ export declare function pageQueryOrgUserOf(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
89
+ export declare function queryOrgUsers(params: Record<string, any>): Promise< AxiosResponse<QueryOrgUserForm[], any>>;
90
+ export declare function getOrgUser(id: string): Promise< AxiosResponse<QueryOrgUserForm, any>>;
91
+ export declare function createOrUpdateOrgUser(params: QueryOrgUserForm): Promise< AxiosResponse<QueryResult, any>>;
92
+ export declare function insertOrgUser(params: QueryOrgUserForm): Promise< AxiosResponse<QueryResult, any>>;
93
+ export declare function deleteOrgUser(id: string): Promise< AxiosResponse<QueryResult, any>>;
94
+ export interface QueryPermissionForm {
95
+ id: string;
96
+ name: string;
97
+ code: string;
98
+ type: string;
99
+ object: string;
100
+ parentObject: string;
101
+ rule: string;
102
+ description: string;
103
+ appId: string;
104
+ tenantCode: string;
105
+ seqNo: number;
106
+ perDefault?: boolean;
107
+ }
108
+ export interface QueryPermissionClassifyForm {
109
+ type: string;
110
+ data: QueryPermissionForm[];
111
+ }
112
+ export declare function pageQueryPermission(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
113
+ export declare function queryPermissions(params: Record<string, any>): Promise< AxiosResponse<QueryPermissionForm[], any>>;
114
+ export declare function getPermission(id: string): Promise< AxiosResponse<QueryPermissionForm, any>>;
115
+ export declare function createOrUpdatePermission(params: QueryPermissionForm): Promise< AxiosResponse<QueryResult, any>>;
116
+ export declare function deletePermission(id: string): Promise< AxiosResponse<QueryResult, any>>;
117
+ export declare function validatePermissionCode(params: QueryPermissionForm): Promise< AxiosResponse<boolean, any>>;
118
+ export declare function shiftPermission(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
119
+ export declare function getEffectiveByPermission(userId: string, entityName: string): Promise< AxiosResponse<QueryResult, any>>;
120
+ export interface QueryRoleForm {
121
+ id: string;
122
+ name: string;
123
+ code: string;
124
+ type: string;
125
+ weight: number;
126
+ enableStatus: number;
127
+ seqNo: number;
128
+ description: string;
129
+ tenantCode: string;
130
+ appId: string;
131
+ usedApp: number | boolean;
132
+ appName?: string;
133
+ appIds?: string;
134
+ }
135
+ export declare function pageQueryRole(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
136
+ export declare function pageQueryOfRole(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
137
+ export declare function queryRoles(params: Record<string, any>): Promise< AxiosResponse<QueryRoleForm[], any>>;
138
+ export declare function getRole(id: string): Promise< AxiosResponse<QueryRoleForm, any>>;
139
+ export declare function createOrUpdateRole(params: QueryRoleForm): Promise< AxiosResponse<QueryResult, any>>;
140
+ export declare function deleteRole(id: string): Promise< AxiosResponse<QueryResult, any>>;
141
+ export declare function validateRoleCode(params: QueryRoleForm): Promise< AxiosResponse<boolean, any>>;
142
+ export interface QueryRoleAppForm {
143
+ id: string;
144
+ roleId: string;
145
+ roleName: string;
146
+ appId: string;
147
+ appName: string;
148
+ tenantCode: string;
149
+ appIds?: string;
150
+ }
151
+ export declare function pageQueryRoleApp(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
152
+ export declare function pageQueryRoleAppOf(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
153
+ export declare function getRoleApp(id: string): Promise< AxiosResponse<QueryRoleAppForm, any>>;
154
+ export declare function insertRoleApp(params: QueryRoleAppForm): Promise< AxiosResponse<QueryResult, any>>;
155
+ export declare function deleteRoleApp(id: string): Promise< AxiosResponse<QueryResult, any>>;
156
+ export declare function deleteRoleOfApp(appId: string, roleId: string): Promise< AxiosResponse<QueryResult, any>>;
157
+ export interface QueryRoleUserForm {
158
+ id: string;
159
+ roleId: string;
160
+ roleName: string;
161
+ userId: string;
162
+ userName: string;
163
+ tenantCode: string;
164
+ }
165
+ export declare function pageQueryRoleUser(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
166
+ export declare function pageQueryRoleUserOf(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
167
+ export declare function getRoleUser(id: string): Promise< AxiosResponse<QueryRoleUserForm, any>>;
168
+ export declare function queryRoleByUser(userId: string, appId: string, tenantCode: string): Promise< AxiosResponse<QueryRoleForm[], any>>;
169
+ export declare function insertRoleUser(params: QueryRoleUserForm): Promise< AxiosResponse<QueryResult, any>>;
170
+ export declare function switchRoleUser(params: QueryRoleUserForm): Promise< AxiosResponse<QueryResult, any>>;
171
+ export declare function deleteRoleUser(id: string): Promise< AxiosResponse<QueryResult, any>>;
172
+ export interface QueryRoleTreeNodeForm {
173
+ id: string;
174
+ roleId: string;
175
+ roleName: string;
176
+ treeNodeId: string;
177
+ treeNodeText: string;
178
+ treeId: string;
179
+ title: string;
180
+ appId: string;
181
+ tenantCode: string;
182
+ }
183
+ export interface QueryTreeNodeForm {
184
+ id: string;
185
+ treeEntity: string;
186
+ treeId: string;
187
+ parent: string;
188
+ type: string;
189
+ title: string;
190
+ iconType: string;
191
+ extendEntity: string;
192
+ extendId: string;
193
+ meta: string;
194
+ url: string;
195
+ flag: string;
196
+ description: string;
197
+ appId: string;
198
+ tenantCode: string;
199
+ children?: QueryTreeNodeForm[];
200
+ isSelected?: boolean;
201
+ }
202
+ export declare function pageQueryRoleTreeNode(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
203
+ export declare function pageQueryRoleTreeNodeOf(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
204
+ export declare function queryTreeNodes(params: Record<string, any>): Promise< AxiosResponse<QueryTreeNodeForm[], any>>;
205
+ export declare function getRoleTreeNode(id: string): Promise< AxiosResponse<QueryRoleTreeNodeForm, any>>;
206
+ export declare function insertRoleTreeNode(params: QueryRoleTreeNodeForm): Promise< AxiosResponse<QueryResult, any>>;
207
+ export declare function deleteRoleTreeNode(id: string): Promise< AxiosResponse<QueryResult, any>>;
208
+ export declare function deleteRoleTreeNodeById(roleId: string, treeNodeId: string): Promise< AxiosResponse<QueryResult, any>>;
209
+ export declare function deleteRoleTreeNodes(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
210
+ export interface QueryRolePermissionForm {
211
+ id: string;
212
+ roleId: string;
213
+ roleName: string;
214
+ permissionId: string;
215
+ permissionIds?: string;
216
+ permissionName: string;
217
+ appId: string;
218
+ tenantCode: string;
219
+ }
220
+ export interface QueryTableRolePermissionForm {
221
+ role: QueryRoleForm[];
222
+ permission: QueryPermissionForm[];
223
+ table: Record<string, boolean | string>[];
224
+ }
225
+ export interface QueryTableRolePermissionClassifyForm {
226
+ role: QueryRoleForm[];
227
+ permission: QueryPermissionClassifyForm[];
228
+ table: Record<string, boolean | string>[];
229
+ }
230
+ export interface QueryColumnRolePermissionForm {
231
+ role: QueryRoleForm[];
232
+ column: QueryTableColumnForm[];
233
+ table: Record<string, boolean | string>[];
234
+ }
235
+ export declare function pageQueryRolePermission(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
236
+ export declare function pageQueryRolePermissionOf(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
237
+ export declare function getRolePermission(id: string): Promise< AxiosResponse<QueryRolePermissionForm, any>>;
238
+ export declare function insertRolePermission(params: QueryRolePermissionForm): Promise< AxiosResponse<QueryResult, any>>;
239
+ export declare function deleteRolePermission(id: string): Promise< AxiosResponse<QueryResult, any>>;
240
+ export declare function switchRolePermission(params: QueryRolePermissionForm): Promise< AxiosResponse<QueryResult, any>>;
241
+ export declare function queryTableRolePermissions(type: string, object: string, params: Record<string, any>): Promise< AxiosResponse<QueryTableRolePermissionClassifyForm, any>>;
242
+ export declare function insertTableRolePermission(params: QueryRolePermissionForm): Promise< AxiosResponse<QueryResult, any>>;
243
+ export declare function insertTableRoleViewPermission(params: QueryRolePermissionForm): Promise< AxiosResponse<QueryResult, any>>;
244
+ export declare function resetDefaultPermission(type: string, object: string, parentObject: string, appId: string): Promise< AxiosResponse<QueryResult, any>>;
245
+ export declare function queryColumnRolePermissions(type: string, object: string, params: Record<string, any>): Promise< AxiosResponse<QueryColumnRolePermissionForm, any>>;
246
+ export declare function insertColumnRolePermission(params: Record<string, boolean | string>): Promise< AxiosResponse<QueryResult, any>>;
247
+ /**
248
+ * 查询所有角色
249
+ * @param params
250
+ * @param successBack
251
+ * @param failBack
252
+ */
253
+ export declare const getRoleSelectOptions: (params: Record<string, any>, successBack?: any, failBack?: any) => Promise<void>;
@@ -0,0 +1,38 @@
1
+ import { PageQueryResponse, QueryResult } from './Base';
2
+ import { AxiosResponse } from 'axios';
3
+ export interface QueryStaticSiteForm {
4
+ id: string;
5
+ name: string;
6
+ code: string;
7
+ requirePermission: boolean;
8
+ description: string;
9
+ enableStatus: number;
10
+ appId: string;
11
+ tenantCode: string;
12
+ }
13
+ export interface QueryFileInfoForm {
14
+ path: string;
15
+ name: string;
16
+ directory: boolean;
17
+ lastModified: string;
18
+ fileType: string;
19
+ fileSize: string;
20
+ hidden: boolean;
21
+ canRead: boolean;
22
+ canWrite: boolean;
23
+ canExecute: boolean;
24
+ enableStatus: number;
25
+ }
26
+ export declare function pageQueryStaticSites(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
27
+ export declare function queryStaticSites(params: Record<string, any>): Promise< AxiosResponse<QueryStaticSiteForm[], any>>;
28
+ export declare function getStaticSite(id: string): Promise< AxiosResponse<QueryStaticSiteForm, any>>;
29
+ export declare function createOrUpdateStaticSite(params: QueryStaticSiteForm): Promise< AxiosResponse<QueryResult, any>>;
30
+ export declare function deleteStaticSite(id: string): Promise< AxiosResponse<QueryResult, any>>;
31
+ export declare function validateStaticSiteCode(params: QueryStaticSiteForm): Promise< AxiosResponse<boolean, any>>;
32
+ export declare function queryFolderTree(params: Record<string, any>): Promise< AxiosResponse<Record<string, any>[], any>>;
33
+ export declare function queryFiles(params: Record<string, any>, type?: string): Promise< AxiosResponse<Record<string, any>[], any>>;
34
+ export declare function batchDeleteFolders(path: string): Promise< AxiosResponse<Record<string, any>[], any>>;
35
+ export declare function downloadFolder(filePath: string, fileName: string, fileType: string): void;
36
+ export declare function updateFolderName(path: string, name: string): Promise< AxiosResponse<Record<string, any>[], any>>;
37
+ export declare function createFolder(path: string, name: string): Promise< AxiosResponse<Record<string, any>[], any>>;
38
+ export declare function getSiteUploadUrl(params?: Record<string, any>): string;
@@ -0,0 +1,45 @@
1
+ import { PageQueryResponse, QueryResult } from './Base';
2
+ import { AxiosResponse } from 'axios';
3
+ export interface QuerySqlForm {
4
+ id: string;
5
+ title: string;
6
+ keyName: string;
7
+ requestParams: string;
8
+ responseType: string;
9
+ responseParams: string;
10
+ configType: string;
11
+ encodingContent: string;
12
+ description: string;
13
+ enableStatus: number;
14
+ appId: string;
15
+ tenantCode: string;
16
+ updaterName?: string;
17
+ updateAt?: string;
18
+ }
19
+ export declare function pageQuerySqls(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
20
+ export declare function querySqls(params: Record<string, any>): Promise< AxiosResponse<QuerySqlForm[], any>>;
21
+ export declare function getSql(id: string): Promise< AxiosResponse<QuerySqlForm, any>>;
22
+ export declare function createOrUpdateSql(params: QuerySqlForm): Promise< AxiosResponse<QueryResult, any>>;
23
+ export declare function deleteSql(id: string): Promise< AxiosResponse<QueryResult, any>>;
24
+ export declare function validateSqlKeyName(params: QuerySqlForm): Promise< AxiosResponse<boolean, any>>;
25
+ export interface QueryAppSqlForm {
26
+ id: string;
27
+ appId: string;
28
+ appName: string;
29
+ sqlId: string;
30
+ sqlKey: string;
31
+ sqlTitle: string;
32
+ sqlAppId: string;
33
+ approvalStatus: string;
34
+ approvalNeed: boolean;
35
+ enableStatus: number;
36
+ tenantCode: string;
37
+ description: string;
38
+ updaterName?: string;
39
+ updateAt?: string;
40
+ }
41
+ export declare function queryAppSqls(params: Record<string, any>): Promise< AxiosResponse<QueryAppSqlForm[], any>>;
42
+ export declare function getAppSql(id: string): Promise< AxiosResponse<QueryAppSqlForm, any>>;
43
+ export declare function createOrUpdateAppSql(params: QueryAppSqlForm): Promise< AxiosResponse<QueryResult, any>>;
44
+ export declare function deleteAppSql(id: string): Promise< AxiosResponse<QueryResult, any>>;
45
+ export declare function querySqlByApp(appId: string, params: Record<string, any>): Promise< AxiosResponse<QuerySqlForm[], any>>;
@@ -0,0 +1,52 @@
1
+ import { PageQueryResponse, QueryResult } from './Base';
2
+ import { AxiosResponse } from 'axios';
3
+ export interface QuerySysConfigForm {
4
+ id: string;
5
+ keyType: string | string[];
6
+ configKey: string;
7
+ valueType: string;
8
+ configValue: string | number | boolean;
9
+ configAssist?: string;
10
+ remark: string;
11
+ purpose: string;
12
+ enableStatus: number;
13
+ encrypted: boolean | number;
14
+ appId: string;
15
+ tenantCode: string;
16
+ }
17
+ /**
18
+ * 分页查询
19
+ * @param params
20
+ */
21
+ export declare function pageQuerySysConfig(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
22
+ /**
23
+ * 条件查询
24
+ * @param params
25
+ */
26
+ export declare function querySysConfigs(params: Record<string, any>): Promise< AxiosResponse<QuerySysConfigForm[], any>>;
27
+ /**
28
+ * 单条获取
29
+ * @param id
30
+ * @param encrypt 是否解密
31
+ */
32
+ export declare function getSysConfig(id: string, encrypt?: boolean): Promise< AxiosResponse<QuerySysConfigForm, any>>;
33
+ /**
34
+ * 创建或更新
35
+ * @param params
36
+ */
37
+ export declare function createOrUpdateSysConfig(params: QuerySysConfigForm): Promise< AxiosResponse<QueryResult, any>>;
38
+ /**
39
+ * 删除
40
+ * @param id
41
+ */
42
+ export declare function deleteSysConfig(id: string): Promise< AxiosResponse<QueryResult, any>>;
43
+ /**
44
+ * 校验配置键
45
+ * @param params
46
+ */
47
+ export declare function validateSysConfigKey(params: QuerySysConfigForm): Promise< AxiosResponse<boolean, any>>;
48
+ /**
49
+ * 根据配置键查询配置值
50
+ * @param configKey
51
+ */
52
+ export declare function getValueByKeys(configKey: string): Promise< AxiosResponse<string, any>>;