@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,107 @@
|
|
|
1
|
+
import { QueryResult } from './Base';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
export interface feature {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export type features = [feature];
|
|
8
|
+
export interface TenantState {
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
lang?: string;
|
|
12
|
+
copyright?: string;
|
|
13
|
+
domain?: string;
|
|
14
|
+
icpFilingNo?: string;
|
|
15
|
+
nsFilingNo?: string;
|
|
16
|
+
logo?: string;
|
|
17
|
+
logoIcon?: string;
|
|
18
|
+
slogan?: string;
|
|
19
|
+
welcome?: string;
|
|
20
|
+
features?: features[];
|
|
21
|
+
enableMultiLang?: boolean;
|
|
22
|
+
ssoUrl?: string;
|
|
23
|
+
mainUrl?: string;
|
|
24
|
+
forgetPwdUrl?: string;
|
|
25
|
+
wxDomain?: string;
|
|
26
|
+
wxLoginType?: string;
|
|
27
|
+
wxAppId?: string;
|
|
28
|
+
wxAppSecret?: string;
|
|
29
|
+
wxGzhAppId?: string;
|
|
30
|
+
wxGzhAppSecret?: string;
|
|
31
|
+
unSaveConfig?: string;
|
|
32
|
+
tenantCode?: string;
|
|
33
|
+
customUi?: Record<string, any>;
|
|
34
|
+
}
|
|
35
|
+
export interface TenantBaseForm {
|
|
36
|
+
tenantCode: string;
|
|
37
|
+
companyName: string;
|
|
38
|
+
corpId: string;
|
|
39
|
+
corpToken: string;
|
|
40
|
+
companyArea: string;
|
|
41
|
+
}
|
|
42
|
+
export interface TenantIndexForm {
|
|
43
|
+
tenantCode: string;
|
|
44
|
+
logo: string;
|
|
45
|
+
tenantName: string;
|
|
46
|
+
loginTitle: string;
|
|
47
|
+
loginSubTitle: string;
|
|
48
|
+
}
|
|
49
|
+
export interface Tenant {
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
code: string;
|
|
53
|
+
description?: string;
|
|
54
|
+
status: 'active' | 'inactive' | 'pending';
|
|
55
|
+
createdAt: string;
|
|
56
|
+
updatedAt: string;
|
|
57
|
+
isInitialized: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface TenantCreateRequest {
|
|
60
|
+
companyName: string;
|
|
61
|
+
code: string;
|
|
62
|
+
mainEmail: string;
|
|
63
|
+
domain: string;
|
|
64
|
+
description?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface TenantInitializeRequest {
|
|
67
|
+
tenantId: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* 获取租户列表
|
|
71
|
+
*/
|
|
72
|
+
export declare function getTenantList(params?: {
|
|
73
|
+
page?: number;
|
|
74
|
+
pageSize?: number;
|
|
75
|
+
keyword?: string;
|
|
76
|
+
status?: string;
|
|
77
|
+
}): Promise< AxiosResponse<QueryResult, any>>;
|
|
78
|
+
/**
|
|
79
|
+
* 获取单个租户详情
|
|
80
|
+
*/
|
|
81
|
+
export declare function getTenantById(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
82
|
+
/**
|
|
83
|
+
* 创建租户
|
|
84
|
+
*/
|
|
85
|
+
export declare function createTenant(data: TenantCreateRequest): Promise< AxiosResponse<QueryResult, any>>;
|
|
86
|
+
/**
|
|
87
|
+
* 初始化租户(使用POST方法)
|
|
88
|
+
*/
|
|
89
|
+
export declare function initializeTenant(data: TenantInitializeRequest): Promise< AxiosResponse<QueryResult, any>>;
|
|
90
|
+
/**
|
|
91
|
+
* 通过租户编码初始化租户(使用GET方法)
|
|
92
|
+
*/
|
|
93
|
+
export declare function initializeTenantByCode(code: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
94
|
+
/**
|
|
95
|
+
* 更新租户信息
|
|
96
|
+
*/
|
|
97
|
+
export declare function updateTenant(id: string, data: Partial<TenantCreateRequest>): Promise< AxiosResponse<QueryResult, any>>;
|
|
98
|
+
/**
|
|
99
|
+
* 删除租户
|
|
100
|
+
*/
|
|
101
|
+
export declare function deleteTenant(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
102
|
+
export declare function formDataToFile(data: Record<string, any>, fileName: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
103
|
+
export declare function formDataFromFile(fileName: string): Promise< AxiosResponse<string, any>>;
|
|
104
|
+
/**
|
|
105
|
+
* 重置租户管理员密码
|
|
106
|
+
*/
|
|
107
|
+
export declare function resetTenantAdminPassword(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { ComponentCustomProperties } from 'vue';
|
|
2
|
+
import { QueryResult } from './Base';
|
|
3
|
+
import { RouteRecordNormalized } from 'vue-router';
|
|
4
|
+
import { AxiosResponse } from 'axios';
|
|
5
|
+
export type RoleType = '' | '*' | 'admin' | 'user';
|
|
6
|
+
export declare const LoginSuccessEvent: string;
|
|
7
|
+
export declare const SwitchTenantEvent: string;
|
|
8
|
+
export interface Tenant {
|
|
9
|
+
code: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UserOrg {
|
|
13
|
+
defaultOrg: boolean;
|
|
14
|
+
id: string;
|
|
15
|
+
pid: string;
|
|
16
|
+
name: string;
|
|
17
|
+
fullName: string;
|
|
18
|
+
deptId: string;
|
|
19
|
+
companyId: string;
|
|
20
|
+
tenantCode: string;
|
|
21
|
+
}
|
|
22
|
+
export interface UserState {
|
|
23
|
+
id?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
loginName?: string;
|
|
26
|
+
jobNumber?: string;
|
|
27
|
+
cooperatingOrgId?: string;
|
|
28
|
+
avatar?: string;
|
|
29
|
+
mobilePrefix?: string;
|
|
30
|
+
mobilePhone?: string;
|
|
31
|
+
email?: string;
|
|
32
|
+
registrationDate?: string;
|
|
33
|
+
personalWebsite?: string;
|
|
34
|
+
introduction?: string;
|
|
35
|
+
certification?: number;
|
|
36
|
+
job?: string;
|
|
37
|
+
jobName?: string;
|
|
38
|
+
location?: string;
|
|
39
|
+
locationName?: string;
|
|
40
|
+
orgId?: string;
|
|
41
|
+
orgName?: string;
|
|
42
|
+
companyId?: string;
|
|
43
|
+
companyName?: string;
|
|
44
|
+
unionId?: string;
|
|
45
|
+
corpId?: string;
|
|
46
|
+
corpName?: string;
|
|
47
|
+
companyExtendId?: string;
|
|
48
|
+
description?: string;
|
|
49
|
+
nationCode?: string;
|
|
50
|
+
provinceCode?: string;
|
|
51
|
+
cityCode?: string;
|
|
52
|
+
address?: string;
|
|
53
|
+
tenantCode?: string;
|
|
54
|
+
role?: RoleType;
|
|
55
|
+
roleIds?: string;
|
|
56
|
+
roleCodes?: string;
|
|
57
|
+
tenants?: Tenant[];
|
|
58
|
+
orgs?: UserOrg[];
|
|
59
|
+
token?: string;
|
|
60
|
+
weixinUnionId?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface LoginData {
|
|
63
|
+
username: string;
|
|
64
|
+
password: string;
|
|
65
|
+
org?: string;
|
|
66
|
+
tenant?: string;
|
|
67
|
+
suffix?: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* 分析后缀
|
|
71
|
+
* @param username name@tenant
|
|
72
|
+
*/
|
|
73
|
+
export declare const analysisSuffix: (username: string) => {
|
|
74
|
+
username: string;
|
|
75
|
+
suffix: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
export interface LoginRes {
|
|
78
|
+
token: string;
|
|
79
|
+
}
|
|
80
|
+
export declare function switchIdentity(org: string, tenant: string): Promise<QueryResult>;
|
|
81
|
+
/**
|
|
82
|
+
* 登录
|
|
83
|
+
* @param data
|
|
84
|
+
*/
|
|
85
|
+
export declare function login(data: LoginData): Promise< AxiosResponse<LoginRes, any>>;
|
|
86
|
+
export declare function anonymousLogin(data: LoginData): Promise< AxiosResponse<QueryResult, any>>;
|
|
87
|
+
/**
|
|
88
|
+
* oauth2登录
|
|
89
|
+
* @param data
|
|
90
|
+
*/
|
|
91
|
+
export declare function doLogin(data: LoginData): Promise<QueryResult>;
|
|
92
|
+
export declare function doLoginWithCode(data: string): Promise< AxiosResponse<LoginRes, any>>;
|
|
93
|
+
/**
|
|
94
|
+
* 登出
|
|
95
|
+
*/
|
|
96
|
+
export declare function logout(): Promise< AxiosResponse<LoginRes, any>>;
|
|
97
|
+
/**
|
|
98
|
+
* oauth2登出
|
|
99
|
+
* @param ssoUrl
|
|
100
|
+
* @param loginId
|
|
101
|
+
*/
|
|
102
|
+
export declare function doLogout(ssoUrl?: string, loginId?: string): Promise< AxiosResponse<LoginRes, any>>;
|
|
103
|
+
/**
|
|
104
|
+
* 获取用户信息
|
|
105
|
+
*/
|
|
106
|
+
export declare function getUserInfo(): Promise< AxiosResponse<UserState, any>>;
|
|
107
|
+
/**
|
|
108
|
+
* 获取用户菜单列表
|
|
109
|
+
*/
|
|
110
|
+
export declare function getMenuList(): Promise< AxiosResponse<RouteRecordNormalized[], any>>;
|
|
111
|
+
/**
|
|
112
|
+
* 更新用户头像
|
|
113
|
+
* @param userId
|
|
114
|
+
* @param formData
|
|
115
|
+
*/
|
|
116
|
+
export declare function uploadAvatar(userId: string, formData: FormData): Promise< AxiosResponse<UserState, any>>;
|
|
117
|
+
export interface AccountUserInfo {
|
|
118
|
+
description: string;
|
|
119
|
+
address: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* 更新用户信息
|
|
123
|
+
* @param userId
|
|
124
|
+
* @param formData
|
|
125
|
+
*/
|
|
126
|
+
export declare function updateUserInfo(userId: string, formData: AccountUserInfo): Promise< AxiosResponse<UserState, any>>;
|
|
127
|
+
export type AuthCodeAction = 'forgetPassword' | 'validateUser' | 'updateMobile' | 'updatePassword' | 'updateEmail' | 'loginEmail' | 'loginMobile';
|
|
128
|
+
export interface ResetPasswordForm {
|
|
129
|
+
action: AuthCodeAction;
|
|
130
|
+
validType: string;
|
|
131
|
+
prefix: string;
|
|
132
|
+
validBox: string;
|
|
133
|
+
userId: string;
|
|
134
|
+
authCode: string;
|
|
135
|
+
password: string;
|
|
136
|
+
rPassword: string;
|
|
137
|
+
isPassing?: boolean;
|
|
138
|
+
}
|
|
139
|
+
export declare function forgetPasswordValid(params: ResetPasswordForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
140
|
+
export declare function forgetPasswordEdit(params: ResetPasswordForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
141
|
+
export interface AuthCodeForm {
|
|
142
|
+
action: AuthCodeAction;
|
|
143
|
+
validType: string;
|
|
144
|
+
prefix: string;
|
|
145
|
+
validBox: string;
|
|
146
|
+
userId: string;
|
|
147
|
+
authCode: string;
|
|
148
|
+
isPassing?: boolean;
|
|
149
|
+
}
|
|
150
|
+
export interface BindAccountData {
|
|
151
|
+
index: number;
|
|
152
|
+
title: string;
|
|
153
|
+
description: string;
|
|
154
|
+
isNull: boolean;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* 获取验证码
|
|
158
|
+
* @param params
|
|
159
|
+
*/
|
|
160
|
+
export declare function generateUserCode(params: AuthCodeForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
161
|
+
export declare function generateAuthCode(params: AuthCodeForm, baseUrl?: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
162
|
+
export declare function validateUser(params: AuthCodeForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
163
|
+
export declare function bindAccount(params: AuthCodeForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
164
|
+
/**
|
|
165
|
+
* 获取系统参数配置
|
|
166
|
+
* @param params
|
|
167
|
+
*/
|
|
168
|
+
export declare function getSystemConfig(params: Record<string, any>): Promise< AxiosResponse<QueryResult, any>>;
|
|
169
|
+
/**
|
|
170
|
+
* 系统参数配置
|
|
171
|
+
* @param params
|
|
172
|
+
*/
|
|
173
|
+
export declare const getSysConfig: (global: ComponentCustomProperties & Record<string, any>, userInfo?: Record<any, any>, params?: Record<string, string>) => Promise<void>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { BaseEntity, PageQueryResponse, QueryResult } from './Base';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
export interface QueryAppVersionForm extends BaseEntity {
|
|
4
|
+
version: string;
|
|
5
|
+
packagePath: string;
|
|
6
|
+
packageSource: string;
|
|
7
|
+
packetTime: string;
|
|
8
|
+
status: string;
|
|
9
|
+
description: string;
|
|
10
|
+
appId: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 分页查询
|
|
14
|
+
* @param params
|
|
15
|
+
*/
|
|
16
|
+
export declare function pageQueryAppVersions(params: Record<string, any>): Promise< AxiosResponse<PageQueryResponse, any>>;
|
|
17
|
+
/**
|
|
18
|
+
* 单条查询
|
|
19
|
+
* @param id
|
|
20
|
+
*/
|
|
21
|
+
export declare function getAppVersion(id: string): Promise< AxiosResponse<QueryAppVersionForm, any>>;
|
|
22
|
+
/**
|
|
23
|
+
* 创建或更新
|
|
24
|
+
* @param params
|
|
25
|
+
*/
|
|
26
|
+
export declare function createOrUpdateAppVersion(params: QueryAppVersionForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
27
|
+
/**
|
|
28
|
+
* 删除
|
|
29
|
+
* @param id
|
|
30
|
+
*/
|
|
31
|
+
export declare function deleteAppVersion(id: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
32
|
+
/**
|
|
33
|
+
* 应用打包
|
|
34
|
+
* @param appId
|
|
35
|
+
*/
|
|
36
|
+
export declare function packetAppVersion(appId: string, version?: string, description?: string, appointMetas?: Record<string, string>): Promise< AxiosResponse<QueryResult, any>>;
|
|
37
|
+
/**
|
|
38
|
+
* 应用对比打包
|
|
39
|
+
* @param appId
|
|
40
|
+
* @param version
|
|
41
|
+
* @param description
|
|
42
|
+
* @param appointMetas
|
|
43
|
+
*/
|
|
44
|
+
export declare function packetMergeAppVersion(appId: string, version?: string, description?: string, appointMetas?: Record<string, string>): Promise< AxiosResponse<QueryResult, any>>;
|
|
45
|
+
/**
|
|
46
|
+
* 验证应用版本
|
|
47
|
+
* @param params
|
|
48
|
+
*/
|
|
49
|
+
export declare function validateAppVersion(params: QueryAppVersionForm): Promise< AxiosResponse<QueryResult, any>>;
|
|
50
|
+
/**
|
|
51
|
+
* 部署应用
|
|
52
|
+
* @param versionId
|
|
53
|
+
*/
|
|
54
|
+
export declare function deployAppVersion(versionId: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
55
|
+
/**
|
|
56
|
+
* 查询应用包详细数据
|
|
57
|
+
* @param appVersionId
|
|
58
|
+
*/
|
|
59
|
+
export declare function queryAppPackage(appVersionId: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { QueryResult } from './Base';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
export declare const WeChatLoginCode: string;
|
|
4
|
+
export declare const wxLoginJsUrl: string;
|
|
5
|
+
/**
|
|
6
|
+
* 取消绑定微信账号
|
|
7
|
+
* @param userId
|
|
8
|
+
*/
|
|
9
|
+
export declare function signOut(userId: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
10
|
+
export declare const weChatSignOut: (userId: string, successBack?: any, failBack?: any) => Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* 用户绑定微信账号
|
|
13
|
+
* @param userId
|
|
14
|
+
* @param code
|
|
15
|
+
*/
|
|
16
|
+
export declare function signIn(userId: string, code: string): Promise< AxiosResponse<QueryResult, any>>;
|
|
17
|
+
export declare const weChatSignIn: (userId: string, code: string, successBack?: any, failBack?: any, finallyBack?: any) => Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* 获取微信用户唯一标识
|
|
20
|
+
* @param code
|
|
21
|
+
*/
|
|
22
|
+
export declare function getUnionId(code: string): Promise< AxiosResponse<string, any>>;
|
|
23
|
+
export declare const weChatUnionId: (code: string, successBack?: any, failBack?: any, finallyBack?: any) => Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* 获取微信公众号二维码登录地址
|
|
26
|
+
* @param sceneId
|
|
27
|
+
*/
|
|
28
|
+
export declare function getOfficialAccountUrl(sceneId: string): Promise< AxiosResponse<string, any>>;
|
|
29
|
+
/**
|
|
30
|
+
* 监听微信公众号二维码登录事件
|
|
31
|
+
* @param sceneId
|
|
32
|
+
*/
|
|
33
|
+
export declare function listenUrl(sceneId: string): string;
|
|
34
|
+
export declare function listenOfficialAccountSceneId(sceneId: string): Promise< AxiosResponse<string, any>>;
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { QueryResult } from './Base';
|
|
2
|
+
export interface ApiResponse<T = any> {
|
|
3
|
+
code: number;
|
|
4
|
+
msg: string;
|
|
5
|
+
status: string;
|
|
6
|
+
data: T;
|
|
7
|
+
}
|
|
8
|
+
export interface PageParams {
|
|
9
|
+
appId: string;
|
|
10
|
+
page?: number;
|
|
11
|
+
pageSize?: number;
|
|
12
|
+
name?: string;
|
|
13
|
+
}
|
|
14
|
+
export type { PageParams as WorkflowPageParams };
|
|
15
|
+
export interface PageResult<T> {
|
|
16
|
+
page: number;
|
|
17
|
+
pageSize: number;
|
|
18
|
+
total: number;
|
|
19
|
+
data: T[];
|
|
20
|
+
}
|
|
21
|
+
export interface WorkflowDefine {
|
|
22
|
+
id?: string;
|
|
23
|
+
defineKey?: string;
|
|
24
|
+
name: string;
|
|
25
|
+
remark?: string;
|
|
26
|
+
appId?: string;
|
|
27
|
+
version?: string;
|
|
28
|
+
status?: string;
|
|
29
|
+
formId?: string;
|
|
30
|
+
deploymentId?: string;
|
|
31
|
+
deployAt?: string;
|
|
32
|
+
deployer?: string;
|
|
33
|
+
deployerName?: string;
|
|
34
|
+
updateTime?: string;
|
|
35
|
+
sequenceFlows?: any[];
|
|
36
|
+
workflowNodes?: any[];
|
|
37
|
+
autoSave?: boolean;
|
|
38
|
+
allowRevoke?: boolean;
|
|
39
|
+
source?: any;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 工作流任务接口
|
|
43
|
+
*/
|
|
44
|
+
export interface WorkflowTask {
|
|
45
|
+
id: string;
|
|
46
|
+
formRecordId: string;
|
|
47
|
+
taskDefId: string;
|
|
48
|
+
procInstId: string;
|
|
49
|
+
description: string;
|
|
50
|
+
assigneeId: string;
|
|
51
|
+
ownerId: string;
|
|
52
|
+
procDefName: string;
|
|
53
|
+
taskName: string;
|
|
54
|
+
assigneeName: string;
|
|
55
|
+
ownerName: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* 工作流引擎接口下一步节点信息
|
|
59
|
+
*/
|
|
60
|
+
export interface WorkflowNextStep {
|
|
61
|
+
stepName: string;
|
|
62
|
+
stepTargetName: string;
|
|
63
|
+
targetRef: string;
|
|
64
|
+
subStepList: WorkflowNextStep[] | null;
|
|
65
|
+
/**
|
|
66
|
+
* 步骤用户列表,只有在发起流程获取流程步骤信息时,才会有人员信息
|
|
67
|
+
* 在审批处理步骤时,不会有这些信息,需要再通过获取人员信息接口获取
|
|
68
|
+
*/
|
|
69
|
+
stepUserList?: WorkflowUser[];
|
|
70
|
+
/**
|
|
71
|
+
* 是否同意操作
|
|
72
|
+
* true: 同意
|
|
73
|
+
* false: 不同意
|
|
74
|
+
* null: 未明确指定
|
|
75
|
+
*/
|
|
76
|
+
isAgree: boolean | null;
|
|
77
|
+
selected?: boolean;
|
|
78
|
+
selectedUsers?: string[];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* 工作流用户信息
|
|
82
|
+
*/
|
|
83
|
+
export interface WorkflowUser {
|
|
84
|
+
userId: string;
|
|
85
|
+
userName: string;
|
|
86
|
+
userEnName?: string;
|
|
87
|
+
orgId: string;
|
|
88
|
+
orgName: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 工作流任务信息
|
|
92
|
+
*/
|
|
93
|
+
export interface WorkflowTaskInfo {
|
|
94
|
+
procId: string;
|
|
95
|
+
taskId: string;
|
|
96
|
+
taskName: string;
|
|
97
|
+
userId: string;
|
|
98
|
+
userName: string;
|
|
99
|
+
orgId: string | null;
|
|
100
|
+
orgName: string | null;
|
|
101
|
+
fromTask: string | null;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* 工作流节点详细信息
|
|
105
|
+
*/
|
|
106
|
+
export interface WorkflowNodeInfo {
|
|
107
|
+
id: string;
|
|
108
|
+
name: string;
|
|
109
|
+
nodeType: string;
|
|
110
|
+
properties: Array<{
|
|
111
|
+
name: string;
|
|
112
|
+
value: any;
|
|
113
|
+
}>;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* 工作流详细任务信息
|
|
117
|
+
*/
|
|
118
|
+
export interface WorkflowTaskDetail {
|
|
119
|
+
id: string;
|
|
120
|
+
name: string;
|
|
121
|
+
procInstId: string;
|
|
122
|
+
procDefId: string;
|
|
123
|
+
assignee: string;
|
|
124
|
+
nodeInfo: WorkflowNodeInfo;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* 工作流请求结果接口
|
|
128
|
+
*/
|
|
129
|
+
export interface WorkflowQueryResult extends QueryResult {
|
|
130
|
+
data: any;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* 工作流开启参数
|
|
134
|
+
*/
|
|
135
|
+
export interface WorkflowStartParams {
|
|
136
|
+
defineKey: string;
|
|
137
|
+
bizId: string;
|
|
138
|
+
bizName: string;
|
|
139
|
+
formData: Record<string, any>;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* 工作流启动结果
|
|
143
|
+
*/
|
|
144
|
+
export interface WorkflowStartResult extends ApiResponse<{
|
|
145
|
+
procId: string;
|
|
146
|
+
taskId: string;
|
|
147
|
+
[key: string]: any;
|
|
148
|
+
}> {
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* 工作流运行参数
|
|
152
|
+
*/
|
|
153
|
+
export interface WorkflowRunParams {
|
|
154
|
+
procId: string;
|
|
155
|
+
taskId: string;
|
|
156
|
+
selectStepList: WorkflowNextStep[];
|
|
157
|
+
comment: string;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* 启动并提交流程参数
|
|
161
|
+
*/
|
|
162
|
+
export interface WorkflowStartAtomicityParams {
|
|
163
|
+
defineKey: string;
|
|
164
|
+
bizId: string;
|
|
165
|
+
bizName: string;
|
|
166
|
+
formData: Record<string, any>;
|
|
167
|
+
selectStepList: WorkflowNextStep[];
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* 分页查询流程定义
|
|
171
|
+
* @param params 查询参数
|
|
172
|
+
*/
|
|
173
|
+
export declare function pageQueryDefine(params: PageParams): Promise<ApiResponse<PageResult<WorkflowDefine>>>;
|
|
174
|
+
/**
|
|
175
|
+
* 获取当前用户的待办任务
|
|
176
|
+
*/
|
|
177
|
+
declare function getMyPendingTasks(): Promise<any>;
|
|
178
|
+
/**
|
|
179
|
+
* 获取当前用户的已办任务
|
|
180
|
+
*/
|
|
181
|
+
declare function getMyCompletedTasks(): Promise<any>;
|
|
182
|
+
/**
|
|
183
|
+
* 获取任务详情
|
|
184
|
+
* @param taskId 任务ID
|
|
185
|
+
*/
|
|
186
|
+
declare function getTaskDetail(taskId: string): Promise<any>;
|
|
187
|
+
/**
|
|
188
|
+
* 处理任务
|
|
189
|
+
* @param taskId 任务ID
|
|
190
|
+
* @param params 处理参数
|
|
191
|
+
*/
|
|
192
|
+
declare function handleTask(taskId: string, params: Record<string, any>): Promise<any>;
|
|
193
|
+
/**
|
|
194
|
+
* 分页查询待办任务
|
|
195
|
+
* @param params 查询参数
|
|
196
|
+
*/
|
|
197
|
+
declare function pageQueryPendingTasks(params: Record<string, any>): Promise<any>;
|
|
198
|
+
/**
|
|
199
|
+
* 分页查询已办任务
|
|
200
|
+
* @param params 查询参数
|
|
201
|
+
*/
|
|
202
|
+
declare function pageQueryCompletedTasks(params: Record<string, any>): Promise<any>;
|
|
203
|
+
/**
|
|
204
|
+
* 启动新的工作流
|
|
205
|
+
* @param params 工作流参数
|
|
206
|
+
*/
|
|
207
|
+
declare function startProcess(params: Record<string, any>): Promise<any>;
|
|
208
|
+
/**
|
|
209
|
+
* 开启流程
|
|
210
|
+
* @param params 包含defineKey、bizId、bizName和formData的参数对象
|
|
211
|
+
* @returns 返回流程启动结果
|
|
212
|
+
*/
|
|
213
|
+
declare function startWorkflow(params: WorkflowStartParams): Promise<any>;
|
|
214
|
+
/**
|
|
215
|
+
* 流转流程
|
|
216
|
+
* @param params 包含procId、taskId、selectStepList和comment的参数对象
|
|
217
|
+
* @returns 流程流转结果
|
|
218
|
+
*/
|
|
219
|
+
declare function runWorkflow(params: WorkflowRunParams): Promise<any>;
|
|
220
|
+
/**
|
|
221
|
+
* 获取下一步节点
|
|
222
|
+
* @param procId 流程实例ID
|
|
223
|
+
* @param taskId 任务ID
|
|
224
|
+
* @returns 下一步节点信息
|
|
225
|
+
*/
|
|
226
|
+
declare function queryNextStep(procId: string, taskId: string): Promise<any>;
|
|
227
|
+
/**
|
|
228
|
+
* 强制结束流程
|
|
229
|
+
* @param procId 流程实例ID
|
|
230
|
+
* @param taskId 任务ID
|
|
231
|
+
* @returns 操作结果
|
|
232
|
+
*/
|
|
233
|
+
declare function forceEndWorkflow(procId: string, taskId: string): Promise<any>;
|
|
234
|
+
/**
|
|
235
|
+
* 发送流转(聚合步骤)
|
|
236
|
+
* @param procId 流程实例ID
|
|
237
|
+
* @param taskId 任务ID
|
|
238
|
+
* @returns 操作结果
|
|
239
|
+
*/
|
|
240
|
+
declare function sendOnce(procId: string, taskId: string): Promise<any>;
|
|
241
|
+
/**
|
|
242
|
+
* 获取流程实例
|
|
243
|
+
* @param procId 流程实例ID
|
|
244
|
+
* @returns 流程实例信息
|
|
245
|
+
*/
|
|
246
|
+
declare function getProcInstance(procId: string): Promise<any>;
|
|
247
|
+
/**
|
|
248
|
+
* 获取流程实例任务
|
|
249
|
+
* @param procId 流程实例ID
|
|
250
|
+
* @returns 流程实例任务列表
|
|
251
|
+
*/
|
|
252
|
+
declare function getProcTask(procId: string): Promise<any>;
|
|
253
|
+
/**
|
|
254
|
+
* 获取任务信息
|
|
255
|
+
* @param taskId 任务ID
|
|
256
|
+
* @param procId 流程实例ID
|
|
257
|
+
* @returns 任务详细信息
|
|
258
|
+
*/
|
|
259
|
+
declare function getTaskInfo(taskId: string, procId: string): Promise<any>;
|
|
260
|
+
/**
|
|
261
|
+
* 获取流程实例当前任务
|
|
262
|
+
* @param procId 流程实例ID
|
|
263
|
+
* @returns 当前任务信息
|
|
264
|
+
*/
|
|
265
|
+
declare function getCurrentTask(procId: string): Promise<any>;
|
|
266
|
+
/**
|
|
267
|
+
* 获取节点审批人
|
|
268
|
+
* @param procId 流程实例ID
|
|
269
|
+
* @param targetRef 目标节点引用
|
|
270
|
+
* @returns 节点审批人列表
|
|
271
|
+
*/
|
|
272
|
+
declare function queryStepUser(procId: string, targetRef: string): Promise<any>;
|
|
273
|
+
/**
|
|
274
|
+
* 预查询下一步
|
|
275
|
+
* @param defineKey 流程定义key
|
|
276
|
+
* @returns 下一步节点信息
|
|
277
|
+
*/
|
|
278
|
+
declare function queryNextStepPrediction(defineKey: string): Promise<any>;
|
|
279
|
+
/**
|
|
280
|
+
* 预查询下一步用户
|
|
281
|
+
* @param defineKey 流程定义key
|
|
282
|
+
* @param targetRef 目标节点引用
|
|
283
|
+
* @returns 节点审批人列表
|
|
284
|
+
*/
|
|
285
|
+
declare function queryStepUserPrediction(defineKey: string, targetRef: string): Promise<any>;
|
|
286
|
+
/**
|
|
287
|
+
* 启动并提交流程
|
|
288
|
+
* @param params 包含defineKey、bizId、bizName、formData和selectStepList的参数对象
|
|
289
|
+
* @returns 流程启动并提交结果
|
|
290
|
+
*/
|
|
291
|
+
declare function startWorkflowAtomicity(params: WorkflowStartAtomicityParams): Promise<any>;
|
|
292
|
+
/**
|
|
293
|
+
* 导出WorkflowApi对象
|
|
294
|
+
*/
|
|
295
|
+
export declare const workflowApi: {
|
|
296
|
+
pageQueryDefine: typeof pageQueryDefine;
|
|
297
|
+
getMyPendingTasks: typeof getMyPendingTasks;
|
|
298
|
+
getMyCompletedTasks: typeof getMyCompletedTasks;
|
|
299
|
+
getTaskDetail: typeof getTaskDetail;
|
|
300
|
+
handleTask: typeof handleTask;
|
|
301
|
+
pageQueryPendingTasks: typeof pageQueryPendingTasks;
|
|
302
|
+
pageQueryCompletedTasks: typeof pageQueryCompletedTasks;
|
|
303
|
+
startProcess: typeof startProcess;
|
|
304
|
+
startWorkflow: typeof startWorkflow;
|
|
305
|
+
runWorkflow: typeof runWorkflow;
|
|
306
|
+
queryNextStep: typeof queryNextStep;
|
|
307
|
+
forceEndWorkflow: typeof forceEndWorkflow;
|
|
308
|
+
sendOnce: typeof sendOnce;
|
|
309
|
+
getProcInstance: typeof getProcInstance;
|
|
310
|
+
getProcTask: typeof getProcTask;
|
|
311
|
+
getTaskInfo: typeof getTaskInfo;
|
|
312
|
+
getCurrentTask: typeof getCurrentTask;
|
|
313
|
+
queryStepUser: typeof queryStepUser;
|
|
314
|
+
queryNextStepPrediction: typeof queryNextStepPrediction;
|
|
315
|
+
queryStepUserPrediction: typeof queryStepUserPrediction;
|
|
316
|
+
startWorkflowAtomicity: typeof startWorkflowAtomicity;
|
|
317
|
+
};
|