@zjhc/ui 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +51 -0
- package/NOTICE +23 -0
- package/README.md +177 -2
- package/dist/component.d.ts +3 -0
- package/dist/components/autocomplete/index.d.ts +5 -0
- package/dist/components/autocomplete/src/autoComplete.vue.d.ts +511 -0
- package/dist/components/autocomplete/src/autocomplete.d.ts +50 -0
- package/dist/components/collapse-container/index.d.ts +6 -0
- package/dist/components/collapse-container/src/collapseContainer.vue.d.ts +47 -0
- package/dist/components/collapse-container/src/instance.d.ts +2 -0
- package/dist/components/collapse-panel/index.d.ts +6 -0
- package/dist/components/collapse-panel/src/collapsePanel.vue.d.ts +68 -0
- package/dist/components/collapse-panel/src/instance.d.ts +2 -0
- package/dist/components/complex-table/index.d.ts +7 -0
- package/dist/components/complex-table/src/ComplexTable.vue.d.ts +1428 -0
- package/dist/components/complex-table/src/TableOperator.vue.d.ts +41 -0
- package/dist/components/complex-table/src/instance.d.ts +4 -0
- package/dist/components/dialog/index.d.ts +5 -0
- package/dist/components/dialog/src/dialog-content.d.ts +20 -0
- package/dist/components/dialog/src/dialog.d.ts +76 -0
- package/dist/components/dialog/src/dialog.vue.d.ts +456 -0
- package/dist/components/dialog/src/dialogContent.vue.d.ts +74 -0
- package/dist/components/dialog/src/use-dialog.d.ts +23 -0
- package/dist/components/edit-table-column/EditTableColumn.vue.d.ts +79 -0
- package/dist/components/edit-table-column/index.d.ts +6 -0
- package/dist/components/edit-table-column/registerComp.d.ts +3 -0
- package/dist/components/edit-table-column/type.d.ts +14 -0
- package/dist/components/group-container/index.d.ts +6 -0
- package/dist/components/group-container/src/groupContainer.vue.d.ts +43 -0
- package/dist/components/group-container/src/instance.d.ts +2 -0
- package/dist/components/index.d.ts +13 -0
- package/dist/components/loading/index.d.ts +11 -0
- package/dist/components/loading/src/directive.d.ts +13 -0
- package/dist/components/loading/src/loading.d.ts +27 -0
- package/dist/components/loading/src/service.d.ts +3 -0
- package/dist/components/loading/src/types.d.ts +61 -0
- package/dist/components/search-layout/index.d.ts +6 -0
- package/dist/components/search-layout/src/instance.d.ts +2 -0
- package/dist/components/search-layout/src/searchLayout.vue.d.ts +22 -0
- package/dist/components/search-panel/index.d.ts +6 -0
- package/dist/components/search-panel/src/instance.d.ts +2 -0
- package/dist/components/search-panel/src/searchPanel.vue.d.ts +17 -0
- package/dist/components/search-panel-layout/index.d.ts +6 -0
- package/dist/components/search-panel-layout/src/layout.d.ts +95 -0
- package/dist/components/sticky-toolbar/index.d.ts +6 -0
- package/dist/components/sticky-toolbar/src/instance.d.ts +2 -0
- package/dist/components/sticky-toolbar/src/stickyToolbar.vue.d.ts +43 -0
- package/dist/components/switch-mode/index.d.ts +7 -0
- package/dist/components/switch-theme/index.d.ts +7 -0
- package/dist/components/table-toolbar/index.d.ts +7 -0
- package/dist/components/table-toolbar/src/buttonGroup.vue.d.ts +79 -0
- package/dist/components/table-toolbar/src/interface.d.ts +21 -0
- package/dist/components/table-toolbar/src/tableToolbar.vue.d.ts +71 -0
- package/dist/constants/aria.d.ts +17 -0
- package/dist/constants/date.d.ts +3 -0
- package/dist/constants/event.d.ts +3 -0
- package/dist/constants/index.d.ts +5 -0
- package/dist/constants/key.d.ts +1 -0
- package/dist/constants/size.d.ts +7 -0
- package/dist/defaults.d.ts +5 -0
- package/dist/hooks/complex-table/index.d.ts +33 -0
- package/dist/hooks/get-cookie/index.d.ts +4 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/oper-modal/index.d.ts +8 -0
- package/dist/hooks/post-message/index.d.ts +19 -0
- package/dist/hooks/set-theme/index.d.ts +2 -0
- package/dist/hooks/use-draggable-resize/index.d.ts +10 -0
- package/dist/hooks/use-loading/index.d.ts +4 -0
- package/dist/hooks/use-namespace/index.d.ts +20 -0
- package/dist/icons/arrow-down.vue.d.ts +2 -0
- package/dist/icons/arrow-up.vue.d.ts +2 -0
- package/dist/icons/check.vue.d.ts +2 -0
- package/dist/icons/close.vue.d.ts +2 -0
- package/dist/icons/copy-document.vue.d.ts +2 -0
- package/dist/icons/filter.vue.d.ts +2 -0
- package/dist/icons/full-screen.vue.d.ts +2 -0
- package/dist/icons/index.d.ts +9 -0
- package/dist/icons/loading.vue.d.ts +2 -0
- package/dist/icons/minus.vue.d.ts +2 -0
- package/dist/index.cjs +3985 -0
- package/dist/index.css +2661 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.mjs +3985 -0
- package/dist/make-installer.d.ts +5 -0
- package/dist/plugin.d.ts +3 -0
- package/dist/types/enhance/accessory.d.ts +45 -0
- package/dist/types/enhance/biztrace.d.ts +75 -0
- package/dist/types/enhance/form.d.ts +83 -0
- package/dist/types/enhance/heai.d.ts +47 -0
- package/dist/types/enhance/workflow.d.ts +385 -0
- package/dist/types/extension/extension.d.ts +58 -0
- package/dist/types/extension/frame.d.ts +48 -0
- package/dist/types/extension/job.d.ts +36 -0
- package/dist/types/framework/auth.d.ts +38 -0
- package/dist/types/framework/config.d.ts +13 -0
- package/dist/types/framework/core.d.ts +24 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/style.d.ts +10 -0
- package/dist/utils/tools/istype.d.ts +11 -0
- package/dist/utils/tools/security.d.ts +2 -0
- package/dist/utils/tools/throw-error.d.ts +1 -0
- package/dist/utils/tools/tree.d.ts +2 -0
- package/dist/utils/vue/index.d.ts +2 -0
- package/dist/utils/vue/install.d.ts +6 -0
- package/dist/utils/vue/shared.d.ts +10 -0
- package/dist/utils/vue/typescript.d.ts +5 -0
- package/dist/version.d.ts +1 -0
- package/package.json +76 -4
- package/theme-chalk/autocomplete.css +144 -0
- package/theme-chalk/base-var.css +1037 -0
- package/theme-chalk/base.css +120 -0
- package/theme-chalk/collapse-container.css +71 -0
- package/theme-chalk/collapse-panel.css +49 -0
- package/theme-chalk/complextable.css +72 -0
- package/theme-chalk/dark.css +134 -0
- package/theme-chalk/dialog.css +0 -0
- package/theme-chalk/document-tables.css +175 -0
- package/theme-chalk/group-container.css +159 -0
- package/theme-chalk/index.css +2661 -0
- package/theme-chalk/loading.css +86 -0
- package/theme-chalk/page.css +34 -0
- package/theme-chalk/pub-class.css +417 -0
- package/theme-chalk/reset.css +152 -0
- package/theme-chalk/search-panel.css +31 -0
- package/theme-chalk/searchlayout.css +125 -0
- package/theme-chalk/src/autocomplete.scss +103 -0
- package/theme-chalk/src/base-var.scss +489 -0
- package/theme-chalk/src/base.scss +1 -0
- package/theme-chalk/src/black/index.scss +4 -0
- package/theme-chalk/src/collapse-container.scss +44 -0
- package/theme-chalk/src/collapse-panel.scss +26 -0
- package/theme-chalk/src/common/var.scss +154 -0
- package/theme-chalk/src/complextable.scss +47 -0
- package/theme-chalk/src/dark/css-vars.scss +35 -0
- package/theme-chalk/src/dark/var.scss +198 -0
- package/theme-chalk/src/dialog.scss +0 -0
- package/theme-chalk/src/document-tables.scss +133 -0
- package/theme-chalk/src/group-container.scss +139 -0
- package/theme-chalk/src/index.scss +17 -0
- package/theme-chalk/src/light/css-vars.scss +4 -0
- package/theme-chalk/src/light/var.scss +158 -0
- package/theme-chalk/src/loading.scss +68 -0
- package/theme-chalk/src/mixins/_var.scss +48 -0
- package/theme-chalk/src/mixins/config.scss +5 -0
- package/theme-chalk/src/mixins/function.scss +133 -0
- package/theme-chalk/src/mixins/mixins.scss +211 -0
- package/theme-chalk/src/page.scss +8 -0
- package/theme-chalk/src/pub-class.scss +127 -0
- package/theme-chalk/src/reset.scss +155 -0
- package/theme-chalk/src/search-panel.scss +10 -0
- package/theme-chalk/src/searchlayout.scss +114 -0
- package/theme-chalk/src/sticky-toolbar.scss +59 -0
- package/theme-chalk/src/table-toolbar.scss +36 -0
- package/theme-chalk/src/var.scss +32 -0
- package/theme-chalk/src/zjhc/alert.scss +16 -0
- package/theme-chalk/src/zjhc/anchor.scss +10 -0
- package/theme-chalk/src/zjhc/autocomplete.scss +11 -0
- package/theme-chalk/src/zjhc/backtop.scss +8 -0
- package/theme-chalk/src/zjhc/breadcrumb.scss +3 -0
- package/theme-chalk/src/zjhc/button.scss +82 -0
- package/theme-chalk/src/zjhc/calendar.scss +5 -0
- package/theme-chalk/src/zjhc/card.scss +5 -0
- package/theme-chalk/src/zjhc/cascader.scss +26 -0
- package/theme-chalk/src/zjhc/checkbox.scss +59 -0
- package/theme-chalk/src/zjhc/collapse.scss +8 -0
- package/theme-chalk/src/zjhc/dateEditor.scss +14 -0
- package/theme-chalk/src/zjhc/descriptions.scss +32 -0
- package/theme-chalk/src/zjhc/dialog.scss +148 -0
- package/theme-chalk/src/zjhc/drawer.scss +4 -0
- package/theme-chalk/src/zjhc/dropdown.scss +16 -0
- package/theme-chalk/src/zjhc/empty.scss +3 -0
- package/theme-chalk/src/zjhc/fontsize.scss +42 -0
- package/theme-chalk/src/zjhc/form.scss +33 -0
- package/theme-chalk/src/zjhc/index.scss +48 -0
- package/theme-chalk/src/zjhc/input.scss +47 -0
- package/theme-chalk/src/zjhc/link.scss +20 -0
- package/theme-chalk/src/zjhc/main.scss +3 -0
- package/theme-chalk/src/zjhc/mention.scss +9 -0
- package/theme-chalk/src/zjhc/menu.scss +0 -0
- package/theme-chalk/src/zjhc/message-box.scss +57 -0
- package/theme-chalk/src/zjhc/message.scss +13 -0
- package/theme-chalk/src/zjhc/notification.scss +4 -0
- package/theme-chalk/src/zjhc/number.scss +9 -0
- package/theme-chalk/src/zjhc/overlay.scss +3 -0
- package/theme-chalk/src/zjhc/page.scss +3 -0
- package/theme-chalk/src/zjhc/pagination.scss +64 -0
- package/theme-chalk/src/zjhc/picker.scss +85 -0
- package/theme-chalk/src/zjhc/popover.scss +13 -0
- package/theme-chalk/src/zjhc/popper.scss +13 -0
- package/theme-chalk/src/zjhc/radio.scss +49 -0
- package/theme-chalk/src/zjhc/scrollbar.scss +5 -0
- package/theme-chalk/src/zjhc/segmented.scss +18 -0
- package/theme-chalk/src/zjhc/select.scss +49 -0
- package/theme-chalk/src/zjhc/steps.scss +40 -0
- package/theme-chalk/src/zjhc/switch.scss +11 -0
- package/theme-chalk/src/zjhc/table-v2.scss +16 -0
- package/theme-chalk/src/zjhc/table.scss +44 -0
- package/theme-chalk/src/zjhc/tabs.scss +15 -0
- package/theme-chalk/src/zjhc/tags.scss +25 -0
- package/theme-chalk/src/zjhc/timeline.scss +16 -0
- package/theme-chalk/src/zjhc/tour.scss +9 -0
- package/theme-chalk/src/zjhc/tree.scss +6 -0
- package/theme-chalk/src/zjhc/upload.scss +6 -0
- package/theme-chalk/sticky-toolbar.css +71 -0
- package/theme-chalk/table-toolbar.css +53 -0
- package/theme-chalk/var.css +120 -0
package/dist/plugin.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type AccessoryDirection = 'vertical' | 'horizontal';
|
|
2
|
+
export interface Accessory {
|
|
3
|
+
accessoryId: string;
|
|
4
|
+
appCode: string;
|
|
5
|
+
storageCategory: string;
|
|
6
|
+
storageVersion: number;
|
|
7
|
+
bizId: string;
|
|
8
|
+
bizTag: string;
|
|
9
|
+
relId: string;
|
|
10
|
+
fileName: string;
|
|
11
|
+
fileMime: string;
|
|
12
|
+
persisted: boolean;
|
|
13
|
+
storagePath: string;
|
|
14
|
+
storageFile: string;
|
|
15
|
+
fileSize: number;
|
|
16
|
+
fileType: string;
|
|
17
|
+
sortOrder: number;
|
|
18
|
+
userId: string;
|
|
19
|
+
parentId: string;
|
|
20
|
+
userFullPath: string;
|
|
21
|
+
recCreateTime: string;
|
|
22
|
+
deleted: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface AccessorySetting {
|
|
25
|
+
appCode: string;
|
|
26
|
+
storageCategory: string;
|
|
27
|
+
storageVersion: number;
|
|
28
|
+
storageType: string;
|
|
29
|
+
storageProperties: string;
|
|
30
|
+
}
|
|
31
|
+
export interface UploadData {
|
|
32
|
+
category: string;
|
|
33
|
+
fileName: string;
|
|
34
|
+
bizId: string;
|
|
35
|
+
bizTag: string;
|
|
36
|
+
relId: string;
|
|
37
|
+
persisted: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface AccessoryChunk {
|
|
40
|
+
chunkHash: string;
|
|
41
|
+
fileName: string;
|
|
42
|
+
chunkSize: number;
|
|
43
|
+
chunkIndex: number;
|
|
44
|
+
totalChunks: number;
|
|
45
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export type BizTraceStatus = 'START' | 'RUNNING' | 'COMPLETE';
|
|
2
|
+
export type BizTraceStepType = 'FLOW' | 'START' | 'COMPLETE';
|
|
3
|
+
export interface BizTraceInfo {
|
|
4
|
+
recordId: string;
|
|
5
|
+
appCode: string;
|
|
6
|
+
traceCode: string;
|
|
7
|
+
bizId: string;
|
|
8
|
+
stepCode: string;
|
|
9
|
+
parentId: string;
|
|
10
|
+
userId: string;
|
|
11
|
+
userName: string;
|
|
12
|
+
userPath: string;
|
|
13
|
+
results: string;
|
|
14
|
+
comments: string;
|
|
15
|
+
createTime: string;
|
|
16
|
+
completedTime: string;
|
|
17
|
+
}
|
|
18
|
+
export interface BizTraceDefinitionInfo {
|
|
19
|
+
appCode: string;
|
|
20
|
+
traceCode: string;
|
|
21
|
+
traceName: string;
|
|
22
|
+
includeUser: boolean;
|
|
23
|
+
useService: boolean;
|
|
24
|
+
traceDescription: string;
|
|
25
|
+
stepList: Array<BizTraceStepDefinitionInfo>;
|
|
26
|
+
}
|
|
27
|
+
export interface BizTraceStepDefinitionInfo {
|
|
28
|
+
appCode: string;
|
|
29
|
+
traceCode: string;
|
|
30
|
+
stepCode: string;
|
|
31
|
+
stepName: string;
|
|
32
|
+
stepType: BizTraceStepType;
|
|
33
|
+
stepDescription: string;
|
|
34
|
+
}
|
|
35
|
+
export interface BizTraceRuntimeInfo {
|
|
36
|
+
traceId: string;
|
|
37
|
+
appCode: string;
|
|
38
|
+
traceCode: string;
|
|
39
|
+
bizId: string;
|
|
40
|
+
parentId: string;
|
|
41
|
+
userId: string;
|
|
42
|
+
userName: string;
|
|
43
|
+
userPath: string;
|
|
44
|
+
createTime: string;
|
|
45
|
+
completedTime: string;
|
|
46
|
+
currStep: string;
|
|
47
|
+
currStatus: BizTraceStatus;
|
|
48
|
+
stepList: Array<BizTraceStepRuntimeInfo>;
|
|
49
|
+
}
|
|
50
|
+
export interface BizTraceStepRuntimeInfo {
|
|
51
|
+
stepId: string;
|
|
52
|
+
traceId: string;
|
|
53
|
+
stepCode: string;
|
|
54
|
+
stepType: BizTraceStepType;
|
|
55
|
+
parentId: string;
|
|
56
|
+
userId: string;
|
|
57
|
+
userName: string;
|
|
58
|
+
userPath: string;
|
|
59
|
+
results: string;
|
|
60
|
+
comments: string;
|
|
61
|
+
createTime: string;
|
|
62
|
+
completedTime: string;
|
|
63
|
+
userList: Array<BizTraceStepUserRuntimeInfo>;
|
|
64
|
+
}
|
|
65
|
+
export interface BizTraceStepUserRuntimeInfo {
|
|
66
|
+
stepId: string;
|
|
67
|
+
traceId: string;
|
|
68
|
+
parentId: string;
|
|
69
|
+
userId: string;
|
|
70
|
+
userName: string;
|
|
71
|
+
userPath: string;
|
|
72
|
+
results: string;
|
|
73
|
+
comments: string;
|
|
74
|
+
processTime: string;
|
|
75
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Accessory } from './accessory';
|
|
2
|
+
import { BaseWorkflowForm, TaskType } from './workflow';
|
|
3
|
+
export type FormRenderType = 'NORMAL' | 'DESIGN';
|
|
4
|
+
export type FormWidgetDisplayType = 'EDITABLE' | 'READONLY' | 'HIDDEN';
|
|
5
|
+
export interface DeptSnInfo {
|
|
6
|
+
appCode: string;
|
|
7
|
+
deptId: string;
|
|
8
|
+
deptPath: string;
|
|
9
|
+
snTitle: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FormDefineInfo {
|
|
12
|
+
appCode: string;
|
|
13
|
+
formCode: string;
|
|
14
|
+
formName: string;
|
|
15
|
+
formCategory: string;
|
|
16
|
+
formSn: string;
|
|
17
|
+
renderType: FormRenderType;
|
|
18
|
+
urlTemplate: string;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
formDescription: string;
|
|
21
|
+
}
|
|
22
|
+
export interface FormWorkflowRelationInfo {
|
|
23
|
+
appCode: string;
|
|
24
|
+
formCode: string;
|
|
25
|
+
deptId: string;
|
|
26
|
+
deptPath: string;
|
|
27
|
+
processRange: number;
|
|
28
|
+
processCode: string;
|
|
29
|
+
processName: string;
|
|
30
|
+
}
|
|
31
|
+
export interface FormDesignInfo {
|
|
32
|
+
appCode: string;
|
|
33
|
+
formCode: string;
|
|
34
|
+
widgetJson: string;
|
|
35
|
+
scenes: Array<FormDesignSceneInfo>;
|
|
36
|
+
}
|
|
37
|
+
export interface FormDesignSceneInfo {
|
|
38
|
+
appCode: string;
|
|
39
|
+
formCode: string;
|
|
40
|
+
sceneCode: string;
|
|
41
|
+
sceneName: string;
|
|
42
|
+
widgets: Array<FormDesignSceneWidgetInfo>;
|
|
43
|
+
}
|
|
44
|
+
export interface FormDesignSceneWidgetInfo {
|
|
45
|
+
appCode: string;
|
|
46
|
+
formCode: string;
|
|
47
|
+
sceneCode: string;
|
|
48
|
+
widgetCode: string;
|
|
49
|
+
displayType: FormWidgetDisplayType;
|
|
50
|
+
}
|
|
51
|
+
export interface FormDesignDataQueryInfo {
|
|
52
|
+
appCode: string;
|
|
53
|
+
formTitle: string;
|
|
54
|
+
issueUserId: string;
|
|
55
|
+
beginDate: string;
|
|
56
|
+
endDate: string;
|
|
57
|
+
pageIndex: number;
|
|
58
|
+
pageSize: number;
|
|
59
|
+
}
|
|
60
|
+
export interface FormDesignDataInfo {
|
|
61
|
+
formId: string;
|
|
62
|
+
appCode: string;
|
|
63
|
+
formCode: string;
|
|
64
|
+
formTitle: string;
|
|
65
|
+
issueUserId: string;
|
|
66
|
+
issueUserName: string;
|
|
67
|
+
issueUserParentId: string;
|
|
68
|
+
issueUserFullPathName: string;
|
|
69
|
+
createTime: string;
|
|
70
|
+
completeTime: string;
|
|
71
|
+
extendData: Record<string, unknown>;
|
|
72
|
+
accessories: Array<Accessory>;
|
|
73
|
+
}
|
|
74
|
+
export interface WFFormDesignDataInfo extends BaseWorkflowForm {
|
|
75
|
+
formCode: string;
|
|
76
|
+
extendData: Record<string, unknown>;
|
|
77
|
+
accessories: Array<Accessory>;
|
|
78
|
+
}
|
|
79
|
+
export interface WFTaskQueryInfo {
|
|
80
|
+
type: TaskType;
|
|
81
|
+
pageSize: number;
|
|
82
|
+
pageIndex: number;
|
|
83
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type HeaiMessageStep = 'CREATED' | 'SEND' | 'RECEIVED' | 'COMPLETED';
|
|
2
|
+
export type HeaiMessageFlag = 'WAITING' | 'COMPLETED' | 'ERROR';
|
|
3
|
+
export interface HeaiMessageTypeInfo {
|
|
4
|
+
typeCode: string;
|
|
5
|
+
appCode: string;
|
|
6
|
+
senderId: string;
|
|
7
|
+
receiverId: string;
|
|
8
|
+
channel: string;
|
|
9
|
+
contentType: string;
|
|
10
|
+
messageDirect: boolean;
|
|
11
|
+
respRequired: boolean;
|
|
12
|
+
respType: string;
|
|
13
|
+
requireResp: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface HeaiMessageInfo {
|
|
16
|
+
appMsgId: string;
|
|
17
|
+
heaiId: string;
|
|
18
|
+
messageId: string;
|
|
19
|
+
bizId: string;
|
|
20
|
+
messageType: string;
|
|
21
|
+
filePath: string;
|
|
22
|
+
retryCount: number;
|
|
23
|
+
completed: boolean;
|
|
24
|
+
lastTime: string;
|
|
25
|
+
content: string;
|
|
26
|
+
workflowList: Array<HeaiMessageWorkflowInfo>;
|
|
27
|
+
}
|
|
28
|
+
export interface HeaiMessageWorkflowInfo {
|
|
29
|
+
appMsgId: string;
|
|
30
|
+
createTime: string;
|
|
31
|
+
stepCode: HeaiMessageStep;
|
|
32
|
+
success: boolean;
|
|
33
|
+
resultCode: string;
|
|
34
|
+
resultMessage: string;
|
|
35
|
+
}
|
|
36
|
+
export interface HeaiMessageQueryInfo {
|
|
37
|
+
type: boolean;
|
|
38
|
+
flag: HeaiMessageFlag;
|
|
39
|
+
appMsgId: string;
|
|
40
|
+
messageType: string;
|
|
41
|
+
bizId: string;
|
|
42
|
+
searchKey: string;
|
|
43
|
+
beginDate: string;
|
|
44
|
+
endDate: string;
|
|
45
|
+
pageIndex: number;
|
|
46
|
+
pageSize: number;
|
|
47
|
+
}
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import { Accessory } from './accessory';
|
|
2
|
+
import { OguType } from '../framework/auth';
|
|
3
|
+
export type AssignmentDescriptorType = 'NONE' | 'ISSUER' | 'BRANCH_CREATOR' | 'USER' | 'DEPT' | 'ROLE_DEPT' | 'ROLE_LEVEL' | 'ROLE' | 'EXTEND';
|
|
4
|
+
export type DeptHandleType = 'NONE' | 'ZHUBAN' | 'XIEBAN' | 'HUIQIAN' | 'ZHUSONG' | 'CHAOSONG';
|
|
5
|
+
export type FlowDescriptorType = 'NORMAL' | 'CONDITION';
|
|
6
|
+
export type OperateStatus = 'NONE' | 'AGREE' | 'REJECT' | 'BACK' | 'REVOKE';
|
|
7
|
+
export type ProcessRuntimeStatus = 'NONE' | 'RUNNING' | 'SUSPENDING' | 'COMPLETED';
|
|
8
|
+
export type TaskType = 'WAITING_TASK' | 'WAITING_TASK' | 'COMPLETED_TASK' | 'SUSPENDING_TASK';
|
|
9
|
+
export type FormRuntimeStatus = 'NOSTART' | 'RUNNING' | 'REJECTED' | 'COMPLETED' | 'ABORTED';
|
|
10
|
+
export type NodeDescriptorType = 'START' | 'END' | 'APPROVE' | 'BRANCH' | 'VIRTUAL' | 'COPY';
|
|
11
|
+
export type CompleteStrategy = 'ONE' | 'ALL' | 'BRANCH' | 'PERCENT' | 'COUNT';
|
|
12
|
+
export type OperMode = 'create' | 'exist' | 'oper' | 'show';
|
|
13
|
+
export type OperationType = 'save' | 'delete' | 'suspend' | 'back' | 'reject' | 'agree' | 'revoke';
|
|
14
|
+
export declare function getOperationType(type: OperationType): string;
|
|
15
|
+
export interface CommentTemplate {
|
|
16
|
+
commentId: string;
|
|
17
|
+
commentName: string;
|
|
18
|
+
commentTemplate: string;
|
|
19
|
+
appCode: string;
|
|
20
|
+
processCode: string;
|
|
21
|
+
activityCode: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ProcessDefinition {
|
|
24
|
+
appCode: string;
|
|
25
|
+
code: string;
|
|
26
|
+
name: string;
|
|
27
|
+
version: number;
|
|
28
|
+
content: string;
|
|
29
|
+
branch: boolean;
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
expireDays: number;
|
|
32
|
+
description?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ProcessDescriptor {
|
|
35
|
+
code: string;
|
|
36
|
+
name: string;
|
|
37
|
+
branch: boolean;
|
|
38
|
+
expireDays: number;
|
|
39
|
+
description?: string;
|
|
40
|
+
nodes: Array<NodeDescriptor>;
|
|
41
|
+
flows: Array<FlowDescriptor>;
|
|
42
|
+
}
|
|
43
|
+
export interface NodeDescriptor {
|
|
44
|
+
type: NodeDescriptorType;
|
|
45
|
+
code: string;
|
|
46
|
+
name: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
backCode?: string;
|
|
49
|
+
branchCode?: string;
|
|
50
|
+
seceneCode?: string;
|
|
51
|
+
routeOptional?: boolean;
|
|
52
|
+
completeStrategy?: CompleteStrategyDescriptor;
|
|
53
|
+
expireDays?: number;
|
|
54
|
+
keepTrace?: boolean;
|
|
55
|
+
returnable?: boolean;
|
|
56
|
+
assignment?: AssignmentDescriptor;
|
|
57
|
+
options: Record<string, unknown>;
|
|
58
|
+
attrs: Record<string, unknown>;
|
|
59
|
+
listeners: Array<string>;
|
|
60
|
+
}
|
|
61
|
+
export interface FlowDescriptor {
|
|
62
|
+
type: FlowDescriptorType;
|
|
63
|
+
code: string;
|
|
64
|
+
name: string;
|
|
65
|
+
source: string;
|
|
66
|
+
target: string;
|
|
67
|
+
condition?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface AssignmentDescriptor {
|
|
70
|
+
type: AssignmentDescriptorType;
|
|
71
|
+
branchDepts?: string;
|
|
72
|
+
roleCode?: string;
|
|
73
|
+
userPaths?: string;
|
|
74
|
+
deptPaths?: string;
|
|
75
|
+
deptLevel?: number;
|
|
76
|
+
className?: string;
|
|
77
|
+
extendParam?: string;
|
|
78
|
+
[key: string]: string | number | boolean | undefined;
|
|
79
|
+
}
|
|
80
|
+
export interface CompleteStrategyDescriptor {
|
|
81
|
+
strategy: CompleteStrategy;
|
|
82
|
+
value?: number;
|
|
83
|
+
}
|
|
84
|
+
export interface BaseWorkflowForm {
|
|
85
|
+
formId: string;
|
|
86
|
+
appCode: string;
|
|
87
|
+
formTitle: string;
|
|
88
|
+
formStatus: FormRuntimeStatus;
|
|
89
|
+
exists: boolean;
|
|
90
|
+
processId: string;
|
|
91
|
+
processCode: string;
|
|
92
|
+
processRange: number;
|
|
93
|
+
issueUserId: string;
|
|
94
|
+
issueUserName: string;
|
|
95
|
+
issueUserParentId: string;
|
|
96
|
+
issueUserFullPathName: string;
|
|
97
|
+
issueDeptFullPathName: string;
|
|
98
|
+
createTime: string;
|
|
99
|
+
completeTime?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface RuntimeProcess {
|
|
102
|
+
processId: string;
|
|
103
|
+
appCode: string;
|
|
104
|
+
processCode: string;
|
|
105
|
+
processVersion: number;
|
|
106
|
+
processRange: number;
|
|
107
|
+
parentProcessId?: string;
|
|
108
|
+
parentActivityId?: string;
|
|
109
|
+
parentAssignmentId: string;
|
|
110
|
+
bizId: string;
|
|
111
|
+
bizTitle?: string;
|
|
112
|
+
bizUrlFormat: string;
|
|
113
|
+
bizSaved: boolean;
|
|
114
|
+
issueUserId: string;
|
|
115
|
+
issueUserName: string;
|
|
116
|
+
issueUserParentId: string;
|
|
117
|
+
issueUserFullPath: string;
|
|
118
|
+
runtimeStatus: ProcessRuntimeStatus;
|
|
119
|
+
createTime: string;
|
|
120
|
+
expireTime: string;
|
|
121
|
+
completeTime?: string;
|
|
122
|
+
activities: Array<RuntimeActivity>;
|
|
123
|
+
}
|
|
124
|
+
export interface RuntimeActivity {
|
|
125
|
+
activityId: string;
|
|
126
|
+
processId: string;
|
|
127
|
+
nodeType: NodeDescriptorType;
|
|
128
|
+
nodeCode: string;
|
|
129
|
+
nodeName: string;
|
|
130
|
+
runtimeStatus: ProcessRuntimeStatus;
|
|
131
|
+
operateStatus: OperateStatus;
|
|
132
|
+
createTime: string;
|
|
133
|
+
expireTime: string;
|
|
134
|
+
startTime?: string;
|
|
135
|
+
completeTime?: string;
|
|
136
|
+
prevUserId?: string;
|
|
137
|
+
prevUserName?: string;
|
|
138
|
+
prevUserParentId?: string;
|
|
139
|
+
prevUserFullPath?: string;
|
|
140
|
+
prevActivityId?: string;
|
|
141
|
+
prevActivityCode?: string;
|
|
142
|
+
prevActivityType?: NodeDescriptorType;
|
|
143
|
+
assignments: Array<RuntimeAssignment>;
|
|
144
|
+
}
|
|
145
|
+
export interface RuntimeAssignment {
|
|
146
|
+
assignId: string;
|
|
147
|
+
processId: string;
|
|
148
|
+
activityId: string;
|
|
149
|
+
receiverId: string;
|
|
150
|
+
receiverName: string;
|
|
151
|
+
receiverParentId: string;
|
|
152
|
+
receiverFullPath: string;
|
|
153
|
+
receiverType: OguType;
|
|
154
|
+
receiverHandleType: DeptHandleType;
|
|
155
|
+
operated: boolean;
|
|
156
|
+
operateStatus: OperateStatus;
|
|
157
|
+
createTime: string;
|
|
158
|
+
readTime?: string;
|
|
159
|
+
operateTime?: string;
|
|
160
|
+
}
|
|
161
|
+
export interface RuntimeComment {
|
|
162
|
+
assignId: string;
|
|
163
|
+
appCode: string;
|
|
164
|
+
bizId: string;
|
|
165
|
+
processId: string;
|
|
166
|
+
activityId: string;
|
|
167
|
+
comments: string;
|
|
168
|
+
accessoryList: Array<Accessory>;
|
|
169
|
+
}
|
|
170
|
+
export interface RuntimeRouteNode {
|
|
171
|
+
code: string;
|
|
172
|
+
name: string;
|
|
173
|
+
description?: string;
|
|
174
|
+
options: Record<string, unknown>;
|
|
175
|
+
assigns: Array<RuntimeOgu>;
|
|
176
|
+
}
|
|
177
|
+
export interface RuntimeTask {
|
|
178
|
+
taskId: string;
|
|
179
|
+
viewCode: string;
|
|
180
|
+
appCode: string;
|
|
181
|
+
bizId: string;
|
|
182
|
+
taskTitle?: string;
|
|
183
|
+
senderId: string;
|
|
184
|
+
senderParentId: string;
|
|
185
|
+
senderName: string;
|
|
186
|
+
senderFullPath: string;
|
|
187
|
+
receiverId: string;
|
|
188
|
+
receiverParentId: string;
|
|
189
|
+
receiverName: string;
|
|
190
|
+
receiverFullPath: string;
|
|
191
|
+
copyFlag: boolean;
|
|
192
|
+
keepTrace: boolean;
|
|
193
|
+
delegateFlag: boolean;
|
|
194
|
+
delegateUserId?: string;
|
|
195
|
+
delegateUserName?: string;
|
|
196
|
+
delegateParentId?: string;
|
|
197
|
+
delegateFullPath?: string;
|
|
198
|
+
url: string;
|
|
199
|
+
taskDesc?: string;
|
|
200
|
+
taskType: TaskType;
|
|
201
|
+
createTime: string;
|
|
202
|
+
expireTime: string;
|
|
203
|
+
startTime?: string;
|
|
204
|
+
completeTime?: string;
|
|
205
|
+
processId: string;
|
|
206
|
+
activityId: string;
|
|
207
|
+
assignId: string;
|
|
208
|
+
}
|
|
209
|
+
export interface RuntimeOgu {
|
|
210
|
+
oguId: string;
|
|
211
|
+
oguName: string;
|
|
212
|
+
oguType: OguType;
|
|
213
|
+
parentId: string;
|
|
214
|
+
fullPathName: string;
|
|
215
|
+
copyFlag: boolean;
|
|
216
|
+
deptType: DeptHandleType;
|
|
217
|
+
delegateFlag: boolean;
|
|
218
|
+
delegateUserId?: string;
|
|
219
|
+
delegateUserName?: string;
|
|
220
|
+
delegateParentId?: string;
|
|
221
|
+
delegateFullPath?: string;
|
|
222
|
+
}
|
|
223
|
+
export interface NodeDescriptorDto {
|
|
224
|
+
code: string;
|
|
225
|
+
name: string;
|
|
226
|
+
type: NodeDescriptorType;
|
|
227
|
+
routeOptional: boolean;
|
|
228
|
+
options: Record<string, unknown>;
|
|
229
|
+
}
|
|
230
|
+
export interface CommentsDto {
|
|
231
|
+
userModified: boolean;
|
|
232
|
+
userComments: string;
|
|
233
|
+
userAccessoryList: Array<Accessory>;
|
|
234
|
+
deptModified: boolean;
|
|
235
|
+
deptComments: string;
|
|
236
|
+
deptAccessoryList: Array<Accessory>;
|
|
237
|
+
}
|
|
238
|
+
export interface AgreeAutoRequestDto<T extends BaseWorkflowForm> {
|
|
239
|
+
taskId: string;
|
|
240
|
+
comments?: CommentsDto;
|
|
241
|
+
copyNodeCode: string;
|
|
242
|
+
copyOguList: Array<RuntimeOgu>;
|
|
243
|
+
nextBranchList: Array<RuntimeOgu>;
|
|
244
|
+
variables?: Record<string, unknown>;
|
|
245
|
+
form: T;
|
|
246
|
+
}
|
|
247
|
+
export interface AgreeRequestDto<T extends BaseWorkflowForm> {
|
|
248
|
+
taskId: string;
|
|
249
|
+
comments?: CommentsDto;
|
|
250
|
+
routeNodeCode: string;
|
|
251
|
+
routeOguList: Array<RuntimeOgu>;
|
|
252
|
+
copyNodeCode: string;
|
|
253
|
+
copyOguList: Array<RuntimeOgu>;
|
|
254
|
+
variables?: Record<string, unknown>;
|
|
255
|
+
form: T;
|
|
256
|
+
}
|
|
257
|
+
export interface CreateRequestDto {
|
|
258
|
+
urlFormat: string;
|
|
259
|
+
processCode: string;
|
|
260
|
+
range: number;
|
|
261
|
+
variables?: Record<string, unknown>;
|
|
262
|
+
}
|
|
263
|
+
export interface ExistRequestDto {
|
|
264
|
+
formId: string;
|
|
265
|
+
urlFormat: string;
|
|
266
|
+
processCode: string;
|
|
267
|
+
range: number;
|
|
268
|
+
variables?: Record<string, unknown>;
|
|
269
|
+
}
|
|
270
|
+
export interface OperateRequestDto<T extends BaseWorkflowForm> {
|
|
271
|
+
taskId: string;
|
|
272
|
+
comments?: CommentsDto;
|
|
273
|
+
form: T;
|
|
274
|
+
}
|
|
275
|
+
export interface RouteRequestDto {
|
|
276
|
+
taskId: string;
|
|
277
|
+
variables?: Record<string, unknown>;
|
|
278
|
+
}
|
|
279
|
+
export interface SaveRequestDto<T extends BaseWorkflowForm> {
|
|
280
|
+
taskId: string;
|
|
281
|
+
comments?: CommentsDto;
|
|
282
|
+
form: T;
|
|
283
|
+
}
|
|
284
|
+
export interface AdjustRequestDto {
|
|
285
|
+
processId: string;
|
|
286
|
+
toProcessCode?: string;
|
|
287
|
+
toNodeCode: string;
|
|
288
|
+
toOgu: RuntimeOgu;
|
|
289
|
+
}
|
|
290
|
+
export interface StartResponseDto<T extends BaseWorkflowForm> {
|
|
291
|
+
task: TaskDto;
|
|
292
|
+
comments: CommentsDto;
|
|
293
|
+
processCode: string;
|
|
294
|
+
activityDescriptor: NodeDescriptorDto;
|
|
295
|
+
canApprove: boolean;
|
|
296
|
+
canOperate: Record<string, boolean>;
|
|
297
|
+
canCopy: boolean;
|
|
298
|
+
copyNodeCode: string;
|
|
299
|
+
copyAssigns: Array<RuntimeOgu>;
|
|
300
|
+
form: T;
|
|
301
|
+
}
|
|
302
|
+
export interface TaskDto {
|
|
303
|
+
taskId: string;
|
|
304
|
+
viewCode: string;
|
|
305
|
+
appCode: string;
|
|
306
|
+
bizId: string;
|
|
307
|
+
taskTitle: string;
|
|
308
|
+
senderId: string;
|
|
309
|
+
senderParentId: string;
|
|
310
|
+
senderName: string;
|
|
311
|
+
senderFullPath: string;
|
|
312
|
+
receiverId: string;
|
|
313
|
+
receiverParentId: string;
|
|
314
|
+
receiverName: string;
|
|
315
|
+
receiverFullPath: string;
|
|
316
|
+
copyFlag: boolean;
|
|
317
|
+
keepTrace: boolean;
|
|
318
|
+
delegateFlag: boolean;
|
|
319
|
+
delegateUserId: string;
|
|
320
|
+
delegateUserName: string;
|
|
321
|
+
delegateParentId: string;
|
|
322
|
+
delegateFullPath: string;
|
|
323
|
+
url: string;
|
|
324
|
+
taskDesc: string;
|
|
325
|
+
taskType: TaskType;
|
|
326
|
+
createTime: string;
|
|
327
|
+
expireTime: string;
|
|
328
|
+
startTime: string;
|
|
329
|
+
completeTime: string;
|
|
330
|
+
processId: string;
|
|
331
|
+
activityId: string;
|
|
332
|
+
assignId: string;
|
|
333
|
+
operated: boolean;
|
|
334
|
+
operateStatus: OperateStatus;
|
|
335
|
+
readTime: string;
|
|
336
|
+
operateTime: string;
|
|
337
|
+
}
|
|
338
|
+
export interface NextRouteData {
|
|
339
|
+
nextNodeCode: string;
|
|
340
|
+
nextOguList: Array<RuntimeOgu>;
|
|
341
|
+
}
|
|
342
|
+
export interface TraceInfo {
|
|
343
|
+
processId: string;
|
|
344
|
+
createTime: string;
|
|
345
|
+
completeTime: string;
|
|
346
|
+
activities: Array<TraceActivityInfo>;
|
|
347
|
+
}
|
|
348
|
+
export interface TraceActivityInfo {
|
|
349
|
+
activityId: string;
|
|
350
|
+
processId: string;
|
|
351
|
+
nodeType: NodeDescriptorType;
|
|
352
|
+
nodeCode: string;
|
|
353
|
+
nodeName: string;
|
|
354
|
+
runtimeStatus: ProcessRuntimeStatus;
|
|
355
|
+
operateStatus: OperateStatus;
|
|
356
|
+
createTime: string;
|
|
357
|
+
startTime: string;
|
|
358
|
+
completeTime: string;
|
|
359
|
+
prevUserId: string;
|
|
360
|
+
prevUserName: string;
|
|
361
|
+
prevUserParentId: string;
|
|
362
|
+
prevUserFullPath: string;
|
|
363
|
+
prevActivityId: string;
|
|
364
|
+
prevActivityCode: string;
|
|
365
|
+
prevActivityType: NodeDescriptorType;
|
|
366
|
+
assignments: Array<TraceAssignInfo>;
|
|
367
|
+
}
|
|
368
|
+
export interface TraceAssignInfo {
|
|
369
|
+
assignId: string;
|
|
370
|
+
processId: string;
|
|
371
|
+
activityId: string;
|
|
372
|
+
receiverId: string;
|
|
373
|
+
receiverName: string;
|
|
374
|
+
receiverParentId: string;
|
|
375
|
+
receiverFullPath: string;
|
|
376
|
+
receiverType: OguType;
|
|
377
|
+
receiverHandleType: DeptHandleType;
|
|
378
|
+
operated: boolean;
|
|
379
|
+
operateStatus: OperateStatus;
|
|
380
|
+
createTime: string;
|
|
381
|
+
readTime: string;
|
|
382
|
+
operateTime: string;
|
|
383
|
+
comments: string;
|
|
384
|
+
accessoryList: Array<Accessory>;
|
|
385
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export type HolidayFlag = 'FESTIVAL' | 'WEEKEND';
|
|
2
|
+
export interface AuditLogInfo {
|
|
3
|
+
/** id */
|
|
4
|
+
logId: string;
|
|
5
|
+
/** 部门ParentId */
|
|
6
|
+
parentId: string;
|
|
7
|
+
/** 用户GUID */
|
|
8
|
+
userId: string;
|
|
9
|
+
/** 用户全路径 */
|
|
10
|
+
fullPathName: string;
|
|
11
|
+
/** 用户名 */
|
|
12
|
+
userName: string;
|
|
13
|
+
/** 关区 */
|
|
14
|
+
customsCode: string;
|
|
15
|
+
/** 客户端IP */
|
|
16
|
+
ipAddress: string;
|
|
17
|
+
/** 视角 */
|
|
18
|
+
viewCode: string;
|
|
19
|
+
/** 应用编码 */
|
|
20
|
+
appCode: string;
|
|
21
|
+
/** 应用特征码 */
|
|
22
|
+
appFeatureCode: string;
|
|
23
|
+
/** 业务系统日志Id */
|
|
24
|
+
orgId: string;
|
|
25
|
+
/** 业务ID */
|
|
26
|
+
bizId: string;
|
|
27
|
+
/** 环节ID */
|
|
28
|
+
stepId: string;
|
|
29
|
+
/** 操作时间 */
|
|
30
|
+
operTime: number;
|
|
31
|
+
/** 操作对象表及字段名称 */
|
|
32
|
+
operDbItems: string;
|
|
33
|
+
/** 操作类型编码 */
|
|
34
|
+
operType: string;
|
|
35
|
+
/** 操作内容 */
|
|
36
|
+
operContent: string;
|
|
37
|
+
/** 操作数据量 */
|
|
38
|
+
operDataQty: string;
|
|
39
|
+
/** 操作描述 */
|
|
40
|
+
operDesc: string;
|
|
41
|
+
/** 操作结果 */
|
|
42
|
+
operResult: string;
|
|
43
|
+
/** sm3加密数据 */
|
|
44
|
+
hashCode: string;
|
|
45
|
+
/** 创建日期 */
|
|
46
|
+
recCreateTime: number;
|
|
47
|
+
}
|
|
48
|
+
export interface Counter {
|
|
49
|
+
appCode: string;
|
|
50
|
+
counterPrefix: string;
|
|
51
|
+
counterValue: number;
|
|
52
|
+
}
|
|
53
|
+
export interface Holiday {
|
|
54
|
+
customsCode: string;
|
|
55
|
+
holidayDate: string;
|
|
56
|
+
holidayName: string;
|
|
57
|
+
holidayFlag: HolidayFlag;
|
|
58
|
+
}
|