@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.
- package/dist/gl-runtime-core.css +1 -0
- package/dist/gl-runtime-core.css.gz +0 -0
- package/dist/gl-runtime-core.js +169768 -0
- package/dist/gl-runtime-core.js.gz +0 -0
- package/dist/gl-runtime-core.umd.cjs +35 -0
- package/dist/iconfont-BJ2VOOKJ.js +35 -0
- package/dist/iconfont-BJ2VOOKJ.js.gz +0 -0
- package/dist/types/actions/JsScriptExecutor.d.ts +291 -0
- package/dist/types/actions/fns/datetime.d.ts +22 -0
- package/dist/types/actions/fns/device.d.ts +23 -0
- package/dist/types/actions/fns/math.d.ts +27 -0
- package/dist/types/api/EntityApi.d.ts +143 -0
- package/dist/types/api/EntityDataSource.d.ts +272 -0
- package/dist/types/api/EntityDeleteService.d.ts +47 -0
- package/dist/types/api/EntityQueryCache.d.ts +62 -0
- package/dist/types/api/EntityQueryService.d.ts +71 -0
- package/dist/types/api/EntityResultMapping.d.ts +11 -0
- package/dist/types/api/EntitySaveService.d.ts +46 -0
- package/dist/types/api/EntityTypes.d.ts +135 -0
- package/dist/types/api/EntityUtilService.d.ts +42 -0
- package/dist/types/assets/globalConfig.d.ts +5 -0
- package/dist/types/components/AppProvideProxy.d.ts +21 -0
- package/dist/types/components/ComponentTreeParser.d.ts +17 -0
- package/dist/types/components/FormProvideProxy.d.ts +35 -0
- package/dist/types/components/Hooks.d.ts +7 -0
- package/dist/types/components/PageDataSourceManager.d.ts +28 -0
- package/dist/types/components/PageLoader.d.ts +6 -0
- package/dist/types/components/PageProvideProxy.d.ts +413 -0
- package/dist/types/components/UiEventNames.d.ts +15 -0
- package/dist/types/components/gl-chart/GlChart.vue.d.ts +135 -0
- package/dist/types/components/gl-component/GlComponent.vue.d.ts +191 -0
- package/dist/types/components/gl-component/GlComponentSupport.d.ts +49 -0
- package/dist/types/components/gl-component/GlInsts.vue.d.ts +19 -0
- package/dist/types/components/gl-div/GlDiv.vue.d.ts +107 -0
- package/dist/types/components/gl-dnd-placeholder/Index.vue.d.ts +112 -0
- package/dist/types/components/gl-html/Index.vue.d.ts +7 -0
- package/dist/types/components/gl-iconfont/IconsJson.d.ts +15 -0
- package/dist/types/components/gl-iconfont/Index.vue.d.ts +19 -0
- package/dist/types/components/gl-loader/GlLoader.vue.d.ts +3 -0
- package/dist/types/components/gl-login/FloatingActionButton.vue.d.ts +9 -0
- package/dist/types/components/gl-login/LoginDialog.vue.d.ts +9 -0
- package/dist/types/components/gl-loop/GlLoop.vue.d.ts +230 -0
- package/dist/types/components/gl-page-viewer/GlPageViewer.vue.d.ts +221 -0
- package/dist/types/components/gl-scanner/GlScanner.vue.d.ts +44 -0
- package/dist/types/components/gl-template/GlTemplate.vue.d.ts +154 -0
- package/dist/types/components/gl-template/Typs.d.ts +4 -0
- package/dist/types/components/gl-virtual/Index.vue.d.ts +3 -0
- package/dist/types/components/mixins.d.ts +86 -0
- package/dist/types/components/ui-mixins.d.ts +16 -0
- package/dist/types/composables/useApiUrl.d.ts +30 -0
- package/dist/types/composables/useGlobal.d.ts +21 -0
- package/dist/types/composables/useLoading.d.ts +6 -0
- package/dist/types/composables/useLogger.d.ts +32 -0
- package/dist/types/composables/useMessages.d.ts +15 -0
- package/dist/types/composables/useRole.d.ts +5 -0
- package/dist/types/locales/index.d.ts +21 -0
- package/dist/types/locales/lang/en-US.d.ts +4 -0
- package/dist/types/locales/lang/zh-CN.d.ts +4 -0
- package/dist/types/m/datasource/ApplicationApi.d.ts +163 -0
- package/dist/types/m/datasource/ArcoApi.d.ts +76 -0
- package/dist/types/m/datasource/Base.d.ts +99 -0
- package/dist/types/m/datasource/BranchApi.d.ts +2 -0
- package/dist/types/m/datasource/CompanyApi.d.ts +49 -0
- package/dist/types/m/datasource/DictApi.d.ts +127 -0
- package/dist/types/m/datasource/DictionaryApi.d.ts +16 -0
- package/dist/types/m/datasource/EncodingApi.d.ts +59 -0
- package/dist/types/m/datasource/Entry.d.ts +5 -0
- package/dist/types/m/datasource/FieldMeta.d.ts +6 -0
- package/dist/types/m/datasource/FileApi.d.ts +273 -0
- package/dist/types/m/datasource/FileTemplateApi.d.ts +114 -0
- package/dist/types/m/datasource/InterApi.d.ts +104 -0
- package/dist/types/m/datasource/MarketApi.d.ts +191 -0
- package/dist/types/m/datasource/MessageApi.d.ts +27 -0
- package/dist/types/m/datasource/ModelApi.d.ts +327 -0
- package/dist/types/m/datasource/NoticeApi.d.ts +37 -0
- package/dist/types/m/datasource/OcrPdfApi.d.ts +145 -0
- package/dist/types/m/datasource/PluginApi.d.ts +35 -0
- package/dist/types/m/datasource/ScheduleApi.d.ts +67 -0
- package/dist/types/m/datasource/SecurityApi.d.ts +253 -0
- package/dist/types/m/datasource/SiteApi.d.ts +38 -0
- package/dist/types/m/datasource/SqlApi.d.ts +45 -0
- package/dist/types/m/datasource/SysConfigApi.d.ts +52 -0
- package/dist/types/m/datasource/TenantApi.d.ts +107 -0
- package/dist/types/m/datasource/UserApi.d.ts +173 -0
- package/dist/types/m/datasource/VersionApi.d.ts +59 -0
- package/dist/types/m/datasource/WeChatApi.d.ts +34 -0
- package/dist/types/m/datasource/WorkflowApi.d.ts +317 -0
- package/dist/types/m/datasource/ZxingApi.d.ts +38 -0
- package/dist/types/main.d.ts +114 -0
- package/dist/types/store/index.d.ts +2 -0
- package/dist/types/store/modules/user/index.d.ts +16 -0
- package/dist/types/types/Operators.d.ts +19 -0
- package/dist/types/types/global.d.ts +198 -0
- package/dist/types/types/options.d.ts +35 -0
- package/dist/types/utils/Auth.d.ts +37 -0
- package/dist/types/utils/CacheManager.d.ts +110 -0
- package/dist/types/utils/CheckUtil.d.ts +5 -0
- package/dist/types/utils/ClipboardUtil.d.ts +24 -0
- package/dist/types/utils/ConvertUtil.d.ts +81 -0
- package/dist/types/utils/Event.d.ts +2 -0
- package/dist/types/utils/FileUtil.d.ts +7 -0
- package/dist/types/utils/GenerateUtil.d.ts +14 -0
- package/dist/types/utils/IsUtil.d.ts +126 -0
- package/dist/types/utils/MixUtil.d.ts +49 -0
- package/dist/types/utils/Monitor.d.ts +2 -0
- package/dist/types/utils/PageUtil.d.ts +14 -0
- package/dist/types/utils/PluginUtil.d.ts +9 -0
- package/dist/types/utils/RecordsUtil.d.ts +3 -0
- package/dist/types/utils/SseClient.d.ts +34 -0
- package/dist/types/utils/StoreUtil.d.ts +8 -0
- package/dist/types/utils/StringUtil.d.ts +29 -0
- package/dist/types/utils/Utils.d.ts +217 -0
- package/dist/types/utils/emitter.d.ts +3 -0
- package/dist/types/utils/renderTemplate.d.ts +6 -0
- package/dist/types/utils/toChineseCurrency.d.ts +5 -0
- package/package.json +76 -0
- package/src/main.ts +498 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { PageQueryResponse, QueryResult } from './Base';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
/**
|
|
4
|
+
* 参数类型枚举
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ApiParamType {
|
|
7
|
+
PARAMS = "params",
|
|
8
|
+
PATH = "path",
|
|
9
|
+
HEADER = "headers",
|
|
10
|
+
BODY = "body",
|
|
11
|
+
FORM = "form",
|
|
12
|
+
COOKIE = "cookies"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 请求方法枚举
|
|
16
|
+
*/
|
|
17
|
+
export declare enum RequestMethod {
|
|
18
|
+
GET = "GET",
|
|
19
|
+
POST = "POST",
|
|
20
|
+
PUT = "PUT",
|
|
21
|
+
DELETE = "DELETE",
|
|
22
|
+
PATCH = "PATCH",
|
|
23
|
+
HEAD = "HEAD",
|
|
24
|
+
OPTIONS = "OPTIONS"
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 数据类型枚举
|
|
28
|
+
*/
|
|
29
|
+
export declare enum ApiDataType {
|
|
30
|
+
STRING = "string",
|
|
31
|
+
NUMBER = "number",
|
|
32
|
+
BOOLEAN = "boolean",
|
|
33
|
+
ARRAY = "array",
|
|
34
|
+
OBJECT = "object",
|
|
35
|
+
FILE = "file"
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 响应格式枚举
|
|
39
|
+
*/
|
|
40
|
+
export declare enum ResponseFormat {
|
|
41
|
+
JSON = "json",
|
|
42
|
+
XML = "xml",
|
|
43
|
+
TEXT = "text",
|
|
44
|
+
HTML = "html",
|
|
45
|
+
BINARY = "binary"
|
|
46
|
+
}
|
|
47
|
+
export interface QueryApiParamForm {
|
|
48
|
+
id: string;
|
|
49
|
+
pid: string;
|
|
50
|
+
apiId: string;
|
|
51
|
+
jacket: boolean;
|
|
52
|
+
alternateType: string;
|
|
53
|
+
paramType: ApiParamType;
|
|
54
|
+
bodyType: string;
|
|
55
|
+
name: string;
|
|
56
|
+
dataType: ApiDataType;
|
|
57
|
+
required: boolean;
|
|
58
|
+
demoValue: string;
|
|
59
|
+
defaultValue: string;
|
|
60
|
+
remark: string;
|
|
61
|
+
appId: string;
|
|
62
|
+
tenantCode: string;
|
|
63
|
+
updateAt?: string;
|
|
64
|
+
updaterName?: string;
|
|
65
|
+
children?: QueryApiParamForm[];
|
|
66
|
+
}
|
|
67
|
+
export declare function pageQueryApiParams(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
|
|
68
|
+
export declare function queryApiParams(params: Record<string, any>): Promise< AxiosResponse<QueryApiParamForm[], any>>;
|
|
69
|
+
export declare function getApiParam(id: string): Promise< AxiosResponse<QueryApiParamForm, any>>;
|
|
70
|
+
export declare function createOrUpdateApiParam(params: QueryApiParamForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
71
|
+
export declare function deleteApiParam(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
72
|
+
export interface QueryApiForm {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
code: string;
|
|
76
|
+
paging: boolean;
|
|
77
|
+
method: RequestMethod;
|
|
78
|
+
version: number;
|
|
79
|
+
remark: string;
|
|
80
|
+
anonymous: number;
|
|
81
|
+
groupName: string;
|
|
82
|
+
sourceContent: string;
|
|
83
|
+
releaseContent: string;
|
|
84
|
+
enableStatus: number;
|
|
85
|
+
outsideUrl: string;
|
|
86
|
+
outsideStatus: number;
|
|
87
|
+
responseFormat: ResponseFormat;
|
|
88
|
+
responseType: string;
|
|
89
|
+
logLevel: string;
|
|
90
|
+
appId: string;
|
|
91
|
+
tenantCode: string;
|
|
92
|
+
updateAt?: string;
|
|
93
|
+
updaterName?: string;
|
|
94
|
+
requestParams?: QueryApiParamForm[];
|
|
95
|
+
responseParams?: QueryApiParamForm[];
|
|
96
|
+
}
|
|
97
|
+
export declare function pageQueryApis(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
|
|
98
|
+
export declare function queryApis(params: Record<string, any>): Promise< AxiosResponse<QueryApiForm[], any>>;
|
|
99
|
+
export declare function getApi(id: string): Promise< AxiosResponse<QueryApiForm, any>>;
|
|
100
|
+
export declare function createOrUpdateApi(params: QueryApiForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
101
|
+
export declare function deleteApi(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
102
|
+
export declare function validateApiCode(params: QueryApiForm): Promise< AxiosResponse<boolean, any>>;
|
|
103
|
+
export declare function generateOutside(params: QueryApiForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
104
|
+
export declare function queryApiGroupNames(params: Record<string, any>): Promise< AxiosResponse<QueryApiForm[], any>>;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
export interface ApiResponse<T = any> {
|
|
2
|
+
code: number;
|
|
3
|
+
msg: string;
|
|
4
|
+
status: string;
|
|
5
|
+
data: T;
|
|
6
|
+
}
|
|
7
|
+
export interface PageParams {
|
|
8
|
+
pageNum?: number;
|
|
9
|
+
pageSize?: number;
|
|
10
|
+
category?: string;
|
|
11
|
+
keyword?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface PageResult<T> {
|
|
14
|
+
pageNum: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
total: number;
|
|
17
|
+
records: T[];
|
|
18
|
+
}
|
|
19
|
+
export interface MarketApp {
|
|
20
|
+
id?: string;
|
|
21
|
+
name: string;
|
|
22
|
+
code: string;
|
|
23
|
+
category?: string;
|
|
24
|
+
versionInfo?: string;
|
|
25
|
+
manufacturer?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
initialPackage?: string;
|
|
28
|
+
tag?: string;
|
|
29
|
+
deployCount?: number;
|
|
30
|
+
score?: number;
|
|
31
|
+
status?: string;
|
|
32
|
+
publishStatus?: string;
|
|
33
|
+
compatibility?: string;
|
|
34
|
+
refAppId?: string;
|
|
35
|
+
sourceInfo?: string;
|
|
36
|
+
deptId?: string;
|
|
37
|
+
buId?: string;
|
|
38
|
+
tenantCode?: string;
|
|
39
|
+
delStatus?: number;
|
|
40
|
+
updateAt?: string;
|
|
41
|
+
updater?: string;
|
|
42
|
+
updaterName?: string;
|
|
43
|
+
createAt?: string;
|
|
44
|
+
creator?: string;
|
|
45
|
+
creatorName?: string;
|
|
46
|
+
deleteAt?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface MarketPlugin {
|
|
49
|
+
id?: string;
|
|
50
|
+
name: string;
|
|
51
|
+
code: string;
|
|
52
|
+
category?: string;
|
|
53
|
+
versionInfo?: string;
|
|
54
|
+
manufacturer?: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
initialPackage?: string;
|
|
57
|
+
tag?: string;
|
|
58
|
+
deployCount?: number;
|
|
59
|
+
score?: number;
|
|
60
|
+
status?: string;
|
|
61
|
+
publishStatus?: string;
|
|
62
|
+
compatibility?: string;
|
|
63
|
+
refAppId?: string;
|
|
64
|
+
sourceInfo?: string;
|
|
65
|
+
deptId?: string;
|
|
66
|
+
buId?: string;
|
|
67
|
+
tenantCode?: string;
|
|
68
|
+
delStatus?: number;
|
|
69
|
+
updateAt?: string;
|
|
70
|
+
updater?: string;
|
|
71
|
+
updaterName?: string;
|
|
72
|
+
createAt?: string;
|
|
73
|
+
creator?: string;
|
|
74
|
+
creatorName?: string;
|
|
75
|
+
deleteAt?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface DeployParams {
|
|
78
|
+
appId: string;
|
|
79
|
+
version?: string;
|
|
80
|
+
config?: Record<string, any>;
|
|
81
|
+
}
|
|
82
|
+
export interface DeployPluginParams {
|
|
83
|
+
pluginId: string;
|
|
84
|
+
version?: string;
|
|
85
|
+
config?: Record<string, any>;
|
|
86
|
+
}
|
|
87
|
+
export interface DeployResult {
|
|
88
|
+
success: boolean;
|
|
89
|
+
message?: string;
|
|
90
|
+
deployId?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface MarketCategory {
|
|
93
|
+
id: string;
|
|
94
|
+
name: string;
|
|
95
|
+
description?: string;
|
|
96
|
+
icon?: string;
|
|
97
|
+
sort?: number;
|
|
98
|
+
status?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface CategoryResponse {
|
|
101
|
+
count: number;
|
|
102
|
+
categories: string[];
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* 获取应用清单
|
|
106
|
+
* @param params 查询参数
|
|
107
|
+
*/
|
|
108
|
+
export declare function getAppList(params: PageParams): Promise<ApiResponse<PageResult<MarketApp>>>;
|
|
109
|
+
/**
|
|
110
|
+
* 部署应用
|
|
111
|
+
* @param params 部署参数
|
|
112
|
+
*/
|
|
113
|
+
export declare function deployApp(params: DeployParams): Promise<ApiResponse<DeployResult>>;
|
|
114
|
+
/**
|
|
115
|
+
* 获取应用详情
|
|
116
|
+
* @param id 应用ID
|
|
117
|
+
*/
|
|
118
|
+
export declare function getAppDetail(id: string): Promise<ApiResponse<MarketApp>>;
|
|
119
|
+
/**
|
|
120
|
+
* 获取应用分类
|
|
121
|
+
*/
|
|
122
|
+
export declare function getAppCategories(): Promise<ApiResponse<CategoryResponse>>;
|
|
123
|
+
/**
|
|
124
|
+
* 获取插件清单
|
|
125
|
+
* @param params 查询参数
|
|
126
|
+
*/
|
|
127
|
+
export declare function getPluginList(params: PageParams): Promise<ApiResponse<PageResult<MarketPlugin>>>;
|
|
128
|
+
/**
|
|
129
|
+
* 部署插件
|
|
130
|
+
* @param params 部署参数
|
|
131
|
+
*/
|
|
132
|
+
export declare function deployPlugin(params: DeployPluginParams): Promise<ApiResponse<DeployResult>>;
|
|
133
|
+
/**
|
|
134
|
+
* 获取插件详情
|
|
135
|
+
* @param id 插件ID
|
|
136
|
+
*/
|
|
137
|
+
export declare function getPluginDetail(id: string): Promise<ApiResponse<MarketPlugin>>;
|
|
138
|
+
/**
|
|
139
|
+
* 获取插件分类
|
|
140
|
+
*/
|
|
141
|
+
export declare function getPluginCategories(): Promise<ApiResponse<CategoryResponse>>;
|
|
142
|
+
/**
|
|
143
|
+
* 下载应用部署包
|
|
144
|
+
*/
|
|
145
|
+
export declare function downloadApp(appId: string): Promise<any>;
|
|
146
|
+
/**
|
|
147
|
+
* 申请应用上架
|
|
148
|
+
* @param appData 应用申请数据
|
|
149
|
+
*/
|
|
150
|
+
export declare function applyApp(appData: any): Promise<ApiResponse<any>>;
|
|
151
|
+
/**
|
|
152
|
+
* 检查应用是否已安装在当前租户
|
|
153
|
+
* @param appId 应用ID
|
|
154
|
+
*/
|
|
155
|
+
export declare function checkAppInstall(appId: string): Promise<ApiResponse<{
|
|
156
|
+
installed: boolean;
|
|
157
|
+
}>>;
|
|
158
|
+
/**
|
|
159
|
+
* 获取可部署应用清单
|
|
160
|
+
* @param params 查询参数
|
|
161
|
+
*/
|
|
162
|
+
export declare function getAppList2Deploy(params: PageParams): Promise<ApiResponse<PageResult<MarketApp>>>;
|
|
163
|
+
/**
|
|
164
|
+
* 获取待审核应用清单
|
|
165
|
+
* @param params 查询参数
|
|
166
|
+
*/
|
|
167
|
+
export declare function getAppList2Verify(params: PageParams): Promise<ApiResponse<PageResult<MarketApp>>>;
|
|
168
|
+
/**
|
|
169
|
+
* 审核通过应用
|
|
170
|
+
* @param appId 应用ID
|
|
171
|
+
*/
|
|
172
|
+
export declare function approveApp(appId: string): Promise<ApiResponse<any>>;
|
|
173
|
+
/**
|
|
174
|
+
* 导出MarketApi对象
|
|
175
|
+
*/
|
|
176
|
+
export declare const marketApi: {
|
|
177
|
+
getAppList: typeof getAppList;
|
|
178
|
+
getAppList2Deploy: typeof getAppList2Deploy;
|
|
179
|
+
getAppList2Verify: typeof getAppList2Verify;
|
|
180
|
+
deployApp: typeof deployApp;
|
|
181
|
+
downloadApp: typeof downloadApp;
|
|
182
|
+
getAppDetail: typeof getAppDetail;
|
|
183
|
+
getAppCategories: typeof getAppCategories;
|
|
184
|
+
applyApp: typeof applyApp;
|
|
185
|
+
checkAppInstall: typeof checkAppInstall;
|
|
186
|
+
approveApp: typeof approveApp;
|
|
187
|
+
getPluginList: typeof getPluginList;
|
|
188
|
+
deployPlugin: typeof deployPlugin;
|
|
189
|
+
getPluginDetail: typeof getPluginDetail;
|
|
190
|
+
getPluginCategories: typeof getPluginCategories;
|
|
191
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
2
|
+
export interface MessageRecord {
|
|
3
|
+
id: string;
|
|
4
|
+
type: string;
|
|
5
|
+
title: string;
|
|
6
|
+
subTitle: string;
|
|
7
|
+
avatar?: string;
|
|
8
|
+
content: string;
|
|
9
|
+
time: string;
|
|
10
|
+
status: 0 | 1;
|
|
11
|
+
messageType?: number;
|
|
12
|
+
}
|
|
13
|
+
export type MessageListType = MessageRecord[];
|
|
14
|
+
export declare function queryMessageList(): Promise< AxiosResponse<MessageListType, any>>;
|
|
15
|
+
interface MessageStatus {
|
|
16
|
+
ids: string[];
|
|
17
|
+
}
|
|
18
|
+
export declare function setMessageStatus(data: MessageStatus): Promise< AxiosResponse<MessageListType, any>>;
|
|
19
|
+
export interface ChatRecord {
|
|
20
|
+
id: number;
|
|
21
|
+
username: string;
|
|
22
|
+
content: string;
|
|
23
|
+
time: string;
|
|
24
|
+
isCollect: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare function queryChatList(): Promise< AxiosResponse<ChatRecord[], any>>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { PageQueryResponse, QueryResult } from './Base';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
export interface QueryConnectForm {
|
|
4
|
+
id: string;
|
|
5
|
+
dbConnectName: string;
|
|
6
|
+
dbSchema: string;
|
|
7
|
+
dbType: string;
|
|
8
|
+
dbName: string;
|
|
9
|
+
dbHostnameIp: string;
|
|
10
|
+
dbPort: number;
|
|
11
|
+
dbUserName: string;
|
|
12
|
+
dbPassword: string;
|
|
13
|
+
enableStatus: number;
|
|
14
|
+
appId: string;
|
|
15
|
+
tenantCode: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function pageQueryConnects(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
|
|
18
|
+
export declare function queryConnects(params: Record<string, any>): Promise< AxiosResponse<QueryConnectForm[], any>>;
|
|
19
|
+
export declare function getConnect(id: string): Promise< AxiosResponse<QueryConnectForm, any>>;
|
|
20
|
+
export declare function createOrUpdateConnect(params: QueryConnectForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
21
|
+
export declare function batchCreateConnects(appId: string, connectIds: string[], userName: string, password: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
22
|
+
export declare function jdbcConnect(params: QueryConnectForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
23
|
+
export declare function deleteConnect(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
24
|
+
export interface QueryTableForm {
|
|
25
|
+
id: string;
|
|
26
|
+
connectId: string;
|
|
27
|
+
dbType: string;
|
|
28
|
+
title: string;
|
|
29
|
+
tableName: string;
|
|
30
|
+
entityName: string;
|
|
31
|
+
linked: number;
|
|
32
|
+
tableType: string;
|
|
33
|
+
viewSql: string;
|
|
34
|
+
enableStatus: number;
|
|
35
|
+
seqNo: number;
|
|
36
|
+
tableComment: string;
|
|
37
|
+
description: string;
|
|
38
|
+
synced: boolean;
|
|
39
|
+
sourceType: string;
|
|
40
|
+
packBusData: number;
|
|
41
|
+
appId: string;
|
|
42
|
+
tenantCode: string;
|
|
43
|
+
acrossApp: boolean;
|
|
44
|
+
acrossWorkflow: boolean;
|
|
45
|
+
tableSchema: string;
|
|
46
|
+
cacheType?: string;
|
|
47
|
+
}
|
|
48
|
+
export declare function pageQueryTables(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
|
|
49
|
+
export declare function queryTables(params: Record<string, any>): Promise< AxiosResponse<QueryTableForm[], any>>;
|
|
50
|
+
export declare function getTable(id: string): Promise< AxiosResponse<QueryTableForm, any>>;
|
|
51
|
+
export declare function createOrUpdateTable(params: QueryTableForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
52
|
+
export declare function deleteTable(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
53
|
+
export declare function copyTable(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
|
|
54
|
+
export declare function queryDefaultView(entityName: string): Promise< AxiosResponse<string, any>>;
|
|
55
|
+
export declare function upgradesTable(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
|
|
56
|
+
export declare function initTables(appId: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
57
|
+
export declare function initViews(appId: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
58
|
+
export declare function initViewOne(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
59
|
+
/**
|
|
60
|
+
* 重置实体模型(从数据库同步至模型)
|
|
61
|
+
* @param tableId
|
|
62
|
+
*/
|
|
63
|
+
export declare function resetModelFormTable(tableId: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
64
|
+
export declare function validateTableEntityName(params: QueryTableForm): Promise< AxiosResponse<boolean, any>>;
|
|
65
|
+
export interface QueryMultiComponentForm {
|
|
66
|
+
title: string;
|
|
67
|
+
fieldName: string;
|
|
68
|
+
selectType: string;
|
|
69
|
+
dataType: string;
|
|
70
|
+
charMaxLength: number;
|
|
71
|
+
numericPrecision: number;
|
|
72
|
+
numericScale: number;
|
|
73
|
+
columnSelectType?: ColumnSelectType;
|
|
74
|
+
isEdit?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export interface QueryTableColumnForm {
|
|
77
|
+
id: string;
|
|
78
|
+
tableId: string;
|
|
79
|
+
abstractColumnExpressions: string;
|
|
80
|
+
fieldName: string;
|
|
81
|
+
tableSchema: string;
|
|
82
|
+
tableName: string;
|
|
83
|
+
tableCatalog: string;
|
|
84
|
+
title: string;
|
|
85
|
+
name: string;
|
|
86
|
+
comment: string;
|
|
87
|
+
ordinalPosition: number;
|
|
88
|
+
defaultValue: string | number | string[];
|
|
89
|
+
type: string;
|
|
90
|
+
key: number | boolean;
|
|
91
|
+
nullable: number | boolean;
|
|
92
|
+
uniqued: number | boolean;
|
|
93
|
+
dataType: string;
|
|
94
|
+
selectType: string;
|
|
95
|
+
typeExtra: string | string[];
|
|
96
|
+
extraValue: string;
|
|
97
|
+
extraMap: string;
|
|
98
|
+
extra: string;
|
|
99
|
+
autoIncrement: number | boolean;
|
|
100
|
+
charMaxLength: number;
|
|
101
|
+
numericPrecision: number;
|
|
102
|
+
numericScale: number;
|
|
103
|
+
numericSigned: number | boolean;
|
|
104
|
+
datetimePrecision: string;
|
|
105
|
+
enableStatus: number;
|
|
106
|
+
linked: number;
|
|
107
|
+
description: string;
|
|
108
|
+
isRefColumn: boolean | number;
|
|
109
|
+
refLocalCol: string;
|
|
110
|
+
refTables: string;
|
|
111
|
+
refColName: string;
|
|
112
|
+
autoAdd: number | boolean | string | string[];
|
|
113
|
+
autoName: string;
|
|
114
|
+
seqNo: number;
|
|
115
|
+
appId: string;
|
|
116
|
+
tenantCode: string;
|
|
117
|
+
synced: boolean | number;
|
|
118
|
+
encrypted: boolean | number;
|
|
119
|
+
marker: string;
|
|
120
|
+
drawed: boolean | number;
|
|
121
|
+
delStatus: number;
|
|
122
|
+
deptId?: string;
|
|
123
|
+
buId?: string;
|
|
124
|
+
updateAt?: string | string[];
|
|
125
|
+
updater?: string;
|
|
126
|
+
updaterName?: string;
|
|
127
|
+
createAt?: string | string[];
|
|
128
|
+
creator?: string;
|
|
129
|
+
creatorName?: string;
|
|
130
|
+
deleteAt?: string | string[];
|
|
131
|
+
}
|
|
132
|
+
export declare function pageQueryTableColumns(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
|
|
133
|
+
export declare function queryTableColumns(params: Record<string, any>): Promise< AxiosResponse<QueryTableColumnForm[], any>>;
|
|
134
|
+
export declare function queryDefaultMeta(): Promise< AxiosResponse<QueryTableColumnForm[], any>>;
|
|
135
|
+
export declare function getTableColumn(id: string): Promise< AxiosResponse<QueryTableColumnForm, any>>;
|
|
136
|
+
export declare function createOrUpdateTableColumn(params: QueryTableColumnForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
137
|
+
export declare function insertCommonColumns(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
|
|
138
|
+
export declare function deleteTableColumn(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
139
|
+
export declare function validateTableColumnName(params: QueryTableColumnForm): Promise< AxiosResponse<boolean, any>>;
|
|
140
|
+
export interface DataTypeRadius {
|
|
141
|
+
max: number;
|
|
142
|
+
min: number;
|
|
143
|
+
digit: number;
|
|
144
|
+
unDigit: number;
|
|
145
|
+
precision: number;
|
|
146
|
+
}
|
|
147
|
+
export interface ColumnSelectType {
|
|
148
|
+
group: string;
|
|
149
|
+
label: string;
|
|
150
|
+
value: string;
|
|
151
|
+
mysql: string;
|
|
152
|
+
disabled: false;
|
|
153
|
+
fixed: false;
|
|
154
|
+
extent: number;
|
|
155
|
+
radius: DataTypeRadius;
|
|
156
|
+
}
|
|
157
|
+
export declare function querySelectType(): Promise< AxiosResponse<ColumnSelectType[], any>>;
|
|
158
|
+
export interface QueryTableForeignForm {
|
|
159
|
+
id: string;
|
|
160
|
+
mainTable: string;
|
|
161
|
+
mainTableCol: string;
|
|
162
|
+
foreignTable: string;
|
|
163
|
+
foreignTableCol: string;
|
|
164
|
+
updateAction: string;
|
|
165
|
+
deleteAction: string;
|
|
166
|
+
enableStatus: number;
|
|
167
|
+
description: string;
|
|
168
|
+
seqNo: number;
|
|
169
|
+
appId: string;
|
|
170
|
+
tenantCode: string;
|
|
171
|
+
}
|
|
172
|
+
export declare function pageQueryTableForeigns(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
|
|
173
|
+
export declare function queryTableForeigns(params: Record<string, any>): Promise< AxiosResponse<QueryTableForeignForm[], any>>;
|
|
174
|
+
export declare function getTableForeign(id: string): Promise< AxiosResponse<QueryTableForeignForm, any>>;
|
|
175
|
+
export declare function createOrUpdateTableForeign(params: QueryTableForeignForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
176
|
+
export declare function deleteTableForeign(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
177
|
+
export interface QueryTableCheckForm {
|
|
178
|
+
id: string;
|
|
179
|
+
title: string;
|
|
180
|
+
code: string;
|
|
181
|
+
type: string;
|
|
182
|
+
checkClause: string;
|
|
183
|
+
connectId: string;
|
|
184
|
+
tableSchema: string;
|
|
185
|
+
tableId: string;
|
|
186
|
+
tableName: string;
|
|
187
|
+
columnId: string;
|
|
188
|
+
columnName: string;
|
|
189
|
+
enableStatus: number;
|
|
190
|
+
description: string;
|
|
191
|
+
synced: boolean;
|
|
192
|
+
appId: string;
|
|
193
|
+
tenantCode: string;
|
|
194
|
+
}
|
|
195
|
+
export declare function pageQueryTableChecks(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
|
|
196
|
+
export declare function queryTableChecks(params: Record<string, any>): Promise< AxiosResponse<QueryTableCheckForm[], any>>;
|
|
197
|
+
export declare function getTableCheck(id: string): Promise< AxiosResponse<QueryTableCheckForm, any>>;
|
|
198
|
+
export declare function createOrUpdateTableCheck(params: QueryTableCheckForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
199
|
+
export declare function deleteTableCheck(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
200
|
+
export declare function validateTableCheckCode(params: QueryTableCheckForm): Promise< AxiosResponse<boolean, any>>;
|
|
201
|
+
export interface QueryViewForm {
|
|
202
|
+
id: string;
|
|
203
|
+
connectId: string;
|
|
204
|
+
entityName: string;
|
|
205
|
+
title: string;
|
|
206
|
+
viewName: string;
|
|
207
|
+
viewType: string;
|
|
208
|
+
viewConstruct: string;
|
|
209
|
+
viewColumn: string;
|
|
210
|
+
description: string;
|
|
211
|
+
linked: number;
|
|
212
|
+
enableStatus: number;
|
|
213
|
+
seqNo: number;
|
|
214
|
+
appId: string;
|
|
215
|
+
tenantCode: string;
|
|
216
|
+
updaterName?: string;
|
|
217
|
+
updateAt?: string;
|
|
218
|
+
}
|
|
219
|
+
export declare function pageQueryViews(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
|
|
220
|
+
export declare function queryViews(params: Record<string, any>): Promise< AxiosResponse<QueryViewForm[], any>>;
|
|
221
|
+
export declare function getView(id: string): Promise< AxiosResponse<QueryViewForm, any>>;
|
|
222
|
+
export declare function createOrUpdateView(params: QueryViewForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
223
|
+
export declare function deleteView(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
224
|
+
export declare function validateViewName(params: QueryViewForm): Promise< AxiosResponse<boolean, any>>;
|
|
225
|
+
export declare function resetDefaultView(params: QueryTableForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
226
|
+
export interface QueryAppTableForm {
|
|
227
|
+
id: string;
|
|
228
|
+
appId: string;
|
|
229
|
+
appName: string;
|
|
230
|
+
tableId: string;
|
|
231
|
+
tableName: string;
|
|
232
|
+
tableTitle: string;
|
|
233
|
+
tableAppId: string;
|
|
234
|
+
permissionId: string;
|
|
235
|
+
permissionName: string;
|
|
236
|
+
approvalStatus: string;
|
|
237
|
+
approvalNeed: boolean;
|
|
238
|
+
enableStatus: number;
|
|
239
|
+
tenantCode: string;
|
|
240
|
+
description: string;
|
|
241
|
+
updaterName?: string;
|
|
242
|
+
updateAt?: string;
|
|
243
|
+
}
|
|
244
|
+
export declare function queryAppTables(params: Record<string, any>): Promise< AxiosResponse<QueryAppTableForm[], any>>;
|
|
245
|
+
export declare function getAppTable(id: string): Promise< AxiosResponse<QueryAppTableForm, any>>;
|
|
246
|
+
export declare function createOrUpdateAppTable(params: QueryAppTableForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
247
|
+
export declare function deleteAppTable(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
248
|
+
export interface QueryAppViewForm {
|
|
249
|
+
id: string;
|
|
250
|
+
appId: string;
|
|
251
|
+
appName: string;
|
|
252
|
+
tableName: string;
|
|
253
|
+
viewId: string;
|
|
254
|
+
viewName: string;
|
|
255
|
+
viewTitle: string;
|
|
256
|
+
viewAppId: string;
|
|
257
|
+
permissionId: string;
|
|
258
|
+
permissionName: string;
|
|
259
|
+
approvalStatus: string;
|
|
260
|
+
approvalNeed: boolean;
|
|
261
|
+
enableStatus: number;
|
|
262
|
+
tenantCode: string;
|
|
263
|
+
description: string;
|
|
264
|
+
updaterName?: string;
|
|
265
|
+
updateAt?: string;
|
|
266
|
+
}
|
|
267
|
+
export declare function queryAppViews(params: Record<string, any>): Promise< AxiosResponse<QueryAppViewForm[], any>>;
|
|
268
|
+
export declare function getAppView(id: string): Promise< AxiosResponse<QueryAppViewForm, any>>;
|
|
269
|
+
export declare function createOrUpdateAppView(params: QueryAppViewForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
270
|
+
export declare function deleteAppView(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
271
|
+
/**
|
|
272
|
+
* 新建或更新表,不删除表字段(从模型同步至数据库)
|
|
273
|
+
* @param entity 实体名称
|
|
274
|
+
*/
|
|
275
|
+
export declare function createOrUpdateModelToTable(entity: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
276
|
+
/**
|
|
277
|
+
* 新建更新视图(发布)
|
|
278
|
+
* @param view 视图名称
|
|
279
|
+
* @param viewConnectId 视图连接id
|
|
280
|
+
* @param viewSql 视图语句
|
|
281
|
+
*/
|
|
282
|
+
export declare function releaseMetaView(view: string, viewConnectId: string, viewSql: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
283
|
+
/**
|
|
284
|
+
* 验证sql语句正确性
|
|
285
|
+
* @param connectId 数据连接id
|
|
286
|
+
* @param viewSql 视图语句
|
|
287
|
+
*/
|
|
288
|
+
export declare function validateMetaView(connectId: string, viewSql: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
289
|
+
export declare function validateMetaViewByTable(connectId: string, entityName: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
290
|
+
/**
|
|
291
|
+
* 刷新元数据缓存
|
|
292
|
+
* @param params 限制条件,tenantCode,appId,connectId,entityName,tableId
|
|
293
|
+
*/
|
|
294
|
+
export declare function refreshMetaRedis(params?: Record<string, string>): Promise< AxiosResponse<QueryResult, any>>;
|
|
295
|
+
/**
|
|
296
|
+
* 查询所有的数据连接
|
|
297
|
+
* @param params
|
|
298
|
+
* @param successBack
|
|
299
|
+
* @param failBack
|
|
300
|
+
*/
|
|
301
|
+
export declare const getConnectSelectOptions: (params: Record<string, any>, successBack?: any, failBack?: any) => Promise<void>;
|
|
302
|
+
/**
|
|
303
|
+
* 获取常用字段,platform_common_fields
|
|
304
|
+
* @param successBack
|
|
305
|
+
* @param failBack
|
|
306
|
+
*/
|
|
307
|
+
export declare const getCommonFieldsOptions: (successBack?: any, failBack?: any) => Promise<void>;
|
|
308
|
+
/**
|
|
309
|
+
* 查询默认模型字段
|
|
310
|
+
* @param successBack
|
|
311
|
+
* @param handleBack
|
|
312
|
+
* @param failBack
|
|
313
|
+
*/
|
|
314
|
+
export declare const getDefaultColumnMetas: (successBack?: any, failBack?: any) => Promise<void>;
|
|
315
|
+
/**
|
|
316
|
+
* 查询默认模型字段 - 名称(create_at)
|
|
317
|
+
* @param successBack
|
|
318
|
+
* @param failBack
|
|
319
|
+
*/
|
|
320
|
+
export declare const getDefaultColumnNames: (successBack?: any, failBack?: any) => Promise<void>;
|
|
321
|
+
/**
|
|
322
|
+
* 查询模型字段类型
|
|
323
|
+
* @param successBack
|
|
324
|
+
* @param handleBack
|
|
325
|
+
* @param failBack
|
|
326
|
+
*/
|
|
327
|
+
export declare const getTypeSelectOptions: (successBack?: any, failBack?: any) => Promise<void>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ApiResult } from '../../main.ts';
|
|
2
|
+
export interface NoticeRecord {
|
|
3
|
+
id: string;
|
|
4
|
+
type: string;
|
|
5
|
+
title: string;
|
|
6
|
+
subTitle?: string;
|
|
7
|
+
avatar?: string;
|
|
8
|
+
content: string;
|
|
9
|
+
time: string;
|
|
10
|
+
status: 0 | 1;
|
|
11
|
+
}
|
|
12
|
+
export type NoticeListType = NoticeRecord[];
|
|
13
|
+
/**
|
|
14
|
+
* 获取用户通知列表
|
|
15
|
+
*/
|
|
16
|
+
export declare function queryNoticeList(): Promise< ApiResult<any>>;
|
|
17
|
+
/**
|
|
18
|
+
* 获取通知详情
|
|
19
|
+
* @param id 通知ID
|
|
20
|
+
*/
|
|
21
|
+
export declare function getNoticeDetail(id: string): Promise< ApiResult<any>>;
|
|
22
|
+
/**
|
|
23
|
+
* 标记单个通知为已读
|
|
24
|
+
* @param id 通知ID
|
|
25
|
+
*/
|
|
26
|
+
export declare function markNoticeRead(id: string): Promise< ApiResult<any>>;
|
|
27
|
+
/**
|
|
28
|
+
* 标记所有通知为已读
|
|
29
|
+
*/
|
|
30
|
+
export declare function markAllNoticeRead(): Promise< ApiResult<any>>;
|
|
31
|
+
declare const noticeApi: {
|
|
32
|
+
queryNoticeList: typeof queryNoticeList;
|
|
33
|
+
getNoticeDetail: typeof getNoticeDetail;
|
|
34
|
+
markNoticeRead: typeof markNoticeRead;
|
|
35
|
+
markAllNoticeRead: typeof markAllNoticeRead;
|
|
36
|
+
};
|
|
37
|
+
export { noticeApi };
|