@ibiz-template/core 0.7.41-alpha.1 → 0.7.41-alpha.106
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/index.esm.js +75 -15
- package/dist/index.system.min.js +1 -1
- package/out/context/index.d.ts.map +1 -1
- package/out/environment/environment.d.ts.map +1 -1
- package/out/environment/environment.js +8 -1
- package/out/error/http-error/http-error.d.ts +2 -2
- package/out/error/http-error/http-error.d.ts.map +1 -1
- package/out/interface/api/chat-message/i-api-chat-message.d.ts +63 -0
- package/out/interface/api/chat-message/i-api-chat-message.d.ts.map +1 -0
- package/out/interface/api/chat-message/i-api-chat-message.js +1 -0
- package/out/interface/api/chat-message/index.d.ts +2 -0
- package/out/interface/api/chat-message/index.d.ts.map +1 -0
- package/out/interface/api/chat-message/index.js +1 -0
- package/out/interface/api/environment/i-devtool-config.d.ts +11 -1
- package/out/interface/api/environment/i-devtool-config.d.ts.map +1 -1
- package/out/interface/api/environment/i-environment.d.ts +138 -1
- package/out/interface/api/environment/i-environment.d.ts.map +1 -1
- package/out/interface/api/ibizsys/i-app-data.d.ts +57 -0
- package/out/interface/api/ibizsys/i-app-data.d.ts.map +1 -0
- package/out/interface/api/ibizsys/i-app-data.js +1 -0
- package/out/interface/api/ibizsys/i-org-data.d.ts +1 -1
- package/out/interface/api/ibizsys/index.d.ts +1 -0
- package/out/interface/api/ibizsys/index.d.ts.map +1 -1
- package/out/interface/api/index.d.ts +1 -0
- package/out/interface/api/index.d.ts.map +1 -1
- package/out/interface/api/index.js +1 -0
- package/out/interface/api/utils/i-api-i18n.d.ts +9 -9
- package/out/interface/api/utils/index.d.ts +1 -0
- package/out/interface/api/utils/index.d.ts.map +1 -1
- package/out/interface/api/utils/message-center/base/i-message-base.d.ts +3 -3
- package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts +1 -1
- package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts +1 -1
- package/out/interface/api/utils/message-center/command/i-message-command.d.ts +1 -1
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts +1 -1
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts +1 -1
- package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts +5 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts.map +1 -1
- package/out/interface/api/utils/message-center/common/i-portal-message.d.ts +3 -3
- package/out/interface/api/utils/message-center/console/i-message-console.d.ts +1 -1
- package/out/interface/api/utils/message-center/error/i-message-error.d.ts +1 -1
- package/out/interface/api/utils/message-center/i-message-center.d.ts +2 -2
- package/out/interface/api/utils/net/i-api-http-error.d.ts +39 -0
- package/out/interface/api/utils/net/i-api-http-error.d.ts.map +1 -0
- package/out/interface/api/utils/net/i-api-http-error.js +1 -0
- package/out/interface/api/utils/net/i-api-net.d.ts +1 -1
- package/out/interface/i-chat-message/i-chat-message.d.ts +2 -49
- package/out/interface/i-chat-message/i-chat-message.d.ts.map +1 -1
- package/out/utils/download-file/download-file.d.ts.map +1 -1
- package/out/utils/download-file/download-file.js +11 -1
- package/out/utils/interceptor/core-interceptor.js +2 -1
- package/out/utils/net/http-response.d.ts +2 -1
- package/out/utils/net/http-response.d.ts.map +1 -1
- package/out/utils/net/http-response.js +5 -1
- package/out/utils/net/net.d.ts +1 -1
- package/out/utils/net/net.d.ts.map +1 -1
- package/out/utils/recursive/find-recursive-child.d.ts +20 -0
- package/out/utils/recursive/find-recursive-child.d.ts.map +1 -1
- package/out/utils/recursive/find-recursive-child.js +69 -7
- package/out/utils/string-util/string-util.d.ts.map +1 -1
- package/out/utils/string-util/string-util.js +2 -4
- package/package.json +5 -4
- package/src/command/command-register.ts +121 -0
- package/src/command/command.ts +78 -0
- package/src/command/index.ts +8 -0
- package/src/command/utils/index.ts +2 -0
- package/src/command/utils/linked-list.ts +136 -0
- package/src/command/utils/util.ts +103 -0
- package/src/constant/core/core.ts +54 -0
- package/src/constant/emoji/emoji.ts +2929 -0
- package/src/constant/http-status-message/http-status-message.ts +18 -0
- package/src/constant/index.ts +4 -0
- package/src/constant/util/util.ts +3 -0
- package/src/context/index.ts +231 -0
- package/src/environment/environment.ts +64 -0
- package/src/error/http-error/entity-error.ts +29 -0
- package/src/error/http-error/http-error-factory.ts +24 -0
- package/src/error/http-error/http-error.ts +52 -0
- package/src/error/index.ts +7 -0
- package/src/error/model-error/model-error.ts +27 -0
- package/src/error/notice-error/notice-error.ts +16 -0
- package/src/error/runtime-error/runtime-error.ts +13 -0
- package/src/error/runtime-model-error/runtime-model-error.ts +27 -0
- package/src/ibizsys.ts +82 -0
- package/src/index.ts +14 -0
- package/src/install.ts +12 -0
- package/src/interface/api/chat-message/i-api-chat-message.ts +71 -0
- package/src/interface/api/chat-message/index.ts +1 -0
- package/src/interface/api/constant/index.ts +2 -0
- package/src/interface/api/constant/login-mode/login-mode.ts +25 -0
- package/src/interface/api/constant/menu-permission-mode/menu-permission-mode.ts +20 -0
- package/src/interface/api/environment/i-devtool-config.ts +56 -0
- package/src/interface/api/environment/i-environment.ts +523 -0
- package/src/interface/api/environment/index.ts +2 -0
- package/src/interface/api/global-param/i-api-context.ts +37 -0
- package/src/interface/api/global-param/i-global-param.ts +27 -0
- package/src/interface/api/global-param/index.ts +2 -0
- package/src/interface/api/ibizsys/i-api-ibizsys.ts +54 -0
- package/src/interface/api/ibizsys/i-app-data.ts +64 -0
- package/src/interface/api/ibizsys/i-org-data.ts +31 -0
- package/src/interface/api/ibizsys/index.ts +3 -0
- package/src/interface/api/index.ts +6 -0
- package/src/interface/api/utils/i-api-i18n.ts +56 -0
- package/src/interface/api/utils/index.ts +5 -0
- package/src/interface/api/utils/message-center/base/i-message-all.ts +8 -0
- package/src/interface/api/utils/message-center/base/i-message-base.ts +29 -0
- package/src/interface/api/utils/message-center/base/index.ts +2 -0
- package/src/interface/api/utils/message-center/command/add-in-changed/i-add-in-changed.ts +25 -0
- package/src/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.ts +16 -0
- package/src/interface/api/utils/message-center/command/async-action/i-command-async-action.ts +17 -0
- package/src/interface/api/utils/message-center/command/change/i-command-change.ts +8 -0
- package/src/interface/api/utils/message-center/command/create/i-command-create.ts +18 -0
- package/src/interface/api/utils/message-center/command/i-command-base.ts +23 -0
- package/src/interface/api/utils/message-center/command/i-message-command.ts +94 -0
- package/src/interface/api/utils/message-center/command/index.ts +20 -0
- package/src/interface/api/utils/message-center/command/internal-message/i-command-internal-message.ts +17 -0
- package/src/interface/api/utils/message-center/command/internal-message/i-internal-message.ts +132 -0
- package/src/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.ts +17 -0
- package/src/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.ts +47 -0
- package/src/interface/api/utils/message-center/command/remove/i-command-remove.ts +18 -0
- package/src/interface/api/utils/message-center/command/update/i-command-update.ts +18 -0
- package/src/interface/api/utils/message-center/common/i-app-data-entity.ts +16 -0
- package/src/interface/api/utils/message-center/common/i-message-center-event.ts +15 -0
- package/src/interface/api/utils/message-center/common/i-msg-meta-data.ts +13 -0
- package/src/interface/api/utils/message-center/common/i-portal-async-action.ts +144 -0
- package/src/interface/api/utils/message-center/common/i-portal-message.ts +84 -0
- package/src/interface/api/utils/message-center/common/index.ts +5 -0
- package/src/interface/api/utils/message-center/console/i-message-console.ts +17 -0
- package/src/interface/api/utils/message-center/error/i-message-error.ts +17 -0
- package/src/interface/api/utils/message-center/i-message-center.ts +53 -0
- package/src/interface/api/utils/message-center/index.ts +6 -0
- package/src/interface/api/utils/net/i-api-http-error.ts +43 -0
- package/src/interface/api/utils/net/i-api-net.ts +93 -0
- package/src/interface/api/utils/net/i-http-response.ts +67 -0
- package/src/interface/click-outside/click-outside.ts +51 -0
- package/src/interface/command/command/i-command-option.ts +47 -0
- package/src/interface/command/command/i-command.ts +68 -0
- package/src/interface/command/disposable/i-disposable.ts +12 -0
- package/src/interface/command/i-command-controller.ts +50 -0
- package/src/interface/command/index.ts +11 -0
- package/src/interface/context/index.ts +42 -0
- package/src/interface/error/index.ts +13 -0
- package/src/interface/i-chat-message/i-chat-message.ts +16 -0
- package/src/interface/ibizsys/i-ibizsys.ts +33 -0
- package/src/interface/ibizsys/index.ts +1 -0
- package/src/interface/index.ts +11 -0
- package/src/interface/utils/i-18n.ts +22 -0
- package/src/interface/utils/index.ts +1 -0
- package/src/locale/en/index.ts +30 -0
- package/src/locale/index.ts +2 -0
- package/src/locale/zh-CN/index.ts +28 -0
- package/src/params/params.ts +131 -0
- package/src/types.ts +26 -0
- package/src/utils/bit-mask/bit-mask.ts +87 -0
- package/src/utils/click-outside/click-outside.ts +108 -0
- package/src/utils/clone/clone.ts +38 -0
- package/src/utils/color/color.ts +84 -0
- package/src/utils/cookie-util/cookie-util.ts +192 -0
- package/src/utils/data-type/data-types.ts +93 -0
- package/src/utils/download-file/download-file.ts +110 -0
- package/src/utils/event/event.ts +69 -0
- package/src/utils/history-list/history-item.ts +41 -0
- package/src/utils/history-list/history-list.ts +137 -0
- package/src/utils/index.ts +24 -0
- package/src/utils/interceptor/core-interceptor.ts +127 -0
- package/src/utils/interceptor/index.ts +2 -0
- package/src/utils/interceptor/interceptor.ts +122 -0
- package/src/utils/logger/logger.ts +34 -0
- package/src/utils/message-center/base/message-all.ts +10 -0
- package/src/utils/message-center/base/message-base.ts +73 -0
- package/src/utils/message-center/command/add-in-changed/command-add-in-changed.ts +23 -0
- package/src/utils/message-center/command/async-action/command-async-action.ts +23 -0
- package/src/utils/message-center/command/change/command-change.ts +11 -0
- package/src/utils/message-center/command/command-base/command-base.ts +35 -0
- package/src/utils/message-center/command/create/command-create.ts +25 -0
- package/src/utils/message-center/command/internal-message/command-internal-message.ts +26 -0
- package/src/utils/message-center/command/mark-open-data/command-mark-open-data.ts +23 -0
- package/src/utils/message-center/command/message-command.ts +162 -0
- package/src/utils/message-center/command/remove/command-remove.ts +25 -0
- package/src/utils/message-center/command/update/command-update.ts +25 -0
- package/src/utils/message-center/console/message-console.ts +27 -0
- package/src/utils/message-center/error/message-error.ts +27 -0
- package/src/utils/message-center/index.ts +1 -0
- package/src/utils/message-center/message-center.ts +77 -0
- package/src/utils/namespace/namespace.ts +217 -0
- package/src/utils/net/http-response.ts +60 -0
- package/src/utils/net/net.ts +448 -0
- package/src/utils/recursive/find-recursive-child.ts +238 -0
- package/src/utils/string-util/string-util.ts +76 -0
- package/src/utils/style/remote-style.ts +17 -0
- package/src/utils/sync/await-timeout.ts +29 -0
- package/src/utils/sync/count-latch.ts +79 -0
- package/src/utils/sync/index.ts +2 -0
- package/src/utils/types/types.ts +24 -0
- package/src/utils/upload/select-file.ts +93 -0
- package/src/utils/upload/upload-file.ts +194 -0
- package/src/utils/url-helper/url-helper.ts +52 -0
- package/src/utils/util/util.ts +580 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// 站内信状态
|
|
2
|
+
export type InternalMessageStatus =
|
|
3
|
+
| 'SENT'
|
|
4
|
+
| 'RECEIVED'
|
|
5
|
+
| 'READ'
|
|
6
|
+
| 'NOT_SENT'
|
|
7
|
+
| 'SEND_FAILED'
|
|
8
|
+
| 'REPLIED'
|
|
9
|
+
| 'DELETED';
|
|
10
|
+
|
|
11
|
+
// 站内信内容类型
|
|
12
|
+
export type InternalMessageContentType = 'TEXT' | 'HTML' | 'MARKDOWN' | 'JSON';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @description 站内信消息
|
|
16
|
+
* @export
|
|
17
|
+
* @interface IInternalMessage
|
|
18
|
+
*/
|
|
19
|
+
export interface IInternalMessage {
|
|
20
|
+
/**
|
|
21
|
+
* @description 更新人
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof IInternalMessage
|
|
24
|
+
*/
|
|
25
|
+
update_man: string;
|
|
26
|
+
/**
|
|
27
|
+
* @description 更新时间
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof IInternalMessage
|
|
30
|
+
*/
|
|
31
|
+
update_time: string;
|
|
32
|
+
/**
|
|
33
|
+
* @description 创建人
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof IInternalMessage
|
|
36
|
+
*/
|
|
37
|
+
create_man: string;
|
|
38
|
+
/**
|
|
39
|
+
* @description 创建时间
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof IInternalMessage
|
|
42
|
+
*/
|
|
43
|
+
create_time: string;
|
|
44
|
+
/**
|
|
45
|
+
* @description 唯一标识
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof IInternalMessage
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* @description 状态
|
|
52
|
+
* @type {InternalMessageStatus}
|
|
53
|
+
* @memberof IInternalMessage
|
|
54
|
+
*/
|
|
55
|
+
status: InternalMessageStatus;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @description 内容类型
|
|
59
|
+
* @type {InternalMessageContentType}
|
|
60
|
+
* @memberof IInternalMessage
|
|
61
|
+
*/
|
|
62
|
+
content_type: InternalMessageContentType;
|
|
63
|
+
/**
|
|
64
|
+
* @description 内容
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof IInternalMessage
|
|
67
|
+
*/
|
|
68
|
+
content: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @description 系统标记
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof IInternalMessage
|
|
74
|
+
*/
|
|
75
|
+
system_tag: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @description 所有者标记
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof IInternalMessage
|
|
81
|
+
*/
|
|
82
|
+
owner_id: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @description 消息所有者类型
|
|
86
|
+
* @type {('PERSONAL' | 'SYSTEM')}
|
|
87
|
+
* @memberof IInternalMessage
|
|
88
|
+
*/
|
|
89
|
+
owner_type: 'PERSONAL' | 'SYSTEM';
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @description 消息类型
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof IInternalMessage
|
|
95
|
+
*/
|
|
96
|
+
message_type: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @description 标题
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof IInternalMessage
|
|
102
|
+
*/
|
|
103
|
+
title: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @description 接受者
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof IInternalMessage
|
|
109
|
+
*/
|
|
110
|
+
receiver: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @description 短内容
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof IInternalMessage
|
|
116
|
+
*/
|
|
117
|
+
short_content?: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @description 链接
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof IInternalMessage
|
|
123
|
+
*/
|
|
124
|
+
url?: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @description 移动端链接
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof IInternalMessage
|
|
130
|
+
*/
|
|
131
|
+
mobile_url?: string;
|
|
132
|
+
}
|
package/src/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ICommandBase } from '../i-command-base';
|
|
2
|
+
import { IMarkOpenData } from './i-mark-open-data';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @description 协同指令消息控制器
|
|
6
|
+
* @export
|
|
7
|
+
* @interface ICommandMarkOpenData
|
|
8
|
+
* @extends {ICommandBase}
|
|
9
|
+
*/
|
|
10
|
+
export interface ICommandMarkOpenData extends ICommandBase {
|
|
11
|
+
/**
|
|
12
|
+
* @description 发送消息
|
|
13
|
+
* @param {IMarkOpenData} data 协同数据
|
|
14
|
+
* @memberof ICommandMarkOpenData
|
|
15
|
+
*/
|
|
16
|
+
send(data: IMarkOpenData): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IApiData } from '../../../../global-param';
|
|
2
|
+
|
|
3
|
+
// 协同消息类型
|
|
4
|
+
export type MarkOpenDataAction = 'VIEW' | 'EDIT' | 'UPDATE' | 'CLOSE';
|
|
5
|
+
/**
|
|
6
|
+
* @description 协同消息
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IMarkOpenData
|
|
9
|
+
*/
|
|
10
|
+
export interface IMarkOpenData {
|
|
11
|
+
/**
|
|
12
|
+
* @description 行为类型
|
|
13
|
+
* @type {MarkOpenDataAction}
|
|
14
|
+
* @memberof IMarkOpenData
|
|
15
|
+
*/
|
|
16
|
+
action: MarkOpenDataAction;
|
|
17
|
+
/**
|
|
18
|
+
* @description 实体名称
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof IMarkOpenData
|
|
21
|
+
*/
|
|
22
|
+
entity: string;
|
|
23
|
+
/**
|
|
24
|
+
* @description 实体主键
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof IMarkOpenData
|
|
27
|
+
*/
|
|
28
|
+
key: string;
|
|
29
|
+
/**
|
|
30
|
+
* @description 时间戳
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof IMarkOpenData
|
|
33
|
+
*/
|
|
34
|
+
time: number;
|
|
35
|
+
/**
|
|
36
|
+
* @description 消息数据
|
|
37
|
+
* @type {IApiData}
|
|
38
|
+
* @memberof IMarkOpenData
|
|
39
|
+
*/
|
|
40
|
+
data?: IApiData;
|
|
41
|
+
/**
|
|
42
|
+
* @description 用户名
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof IMarkOpenData
|
|
45
|
+
*/
|
|
46
|
+
username: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IAppDataEntity, IMsgMetaData } from '../../common';
|
|
2
|
+
import { ICommandBase } from '../i-command-base';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @description 删除指令消息控制器
|
|
6
|
+
* @export
|
|
7
|
+
* @interface ICommandRemove
|
|
8
|
+
* @extends {ICommandBase}
|
|
9
|
+
*/
|
|
10
|
+
export interface ICommandRemove extends ICommandBase {
|
|
11
|
+
/**
|
|
12
|
+
* @description 发送消息
|
|
13
|
+
* @param {IAppDataEntity} data 实体数据
|
|
14
|
+
* @param {IMsgMetaData} [meta] 元数据
|
|
15
|
+
* @memberof ICommandRemove
|
|
16
|
+
*/
|
|
17
|
+
send(data: IAppDataEntity, meta?: IMsgMetaData): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IAppDataEntity, IMsgMetaData } from '../../common';
|
|
2
|
+
import { ICommandBase } from '../i-command-base';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @description 更新指令消息控制器
|
|
6
|
+
* @export
|
|
7
|
+
* @interface ICommandUpdate
|
|
8
|
+
* @extends {ICommandBase}
|
|
9
|
+
*/
|
|
10
|
+
export interface ICommandUpdate extends ICommandBase {
|
|
11
|
+
/**
|
|
12
|
+
* @description 发送消息
|
|
13
|
+
* @param {IAppDataEntity} data 实体数据
|
|
14
|
+
* @param {IMsgMetaData} [meta] 元数据
|
|
15
|
+
* @memberof ICommandUpdate
|
|
16
|
+
*/
|
|
17
|
+
send(data: IAppDataEntity, meta?: IMsgMetaData): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IApiData } from '../../../global-param';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 应用实体数据对象
|
|
5
|
+
* @export
|
|
6
|
+
* @interface IAppDataEntity
|
|
7
|
+
* @extends {IApiData}
|
|
8
|
+
*/
|
|
9
|
+
export interface IAppDataEntity extends IApiData {
|
|
10
|
+
/**
|
|
11
|
+
* @description 应用实体数据对象标识
|
|
12
|
+
* @type {string}
|
|
13
|
+
* @memberof IAppDataEntity
|
|
14
|
+
*/
|
|
15
|
+
srfdecodename: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IPortalMessage } from './i-portal-message';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 消息事件
|
|
5
|
+
* @export
|
|
6
|
+
* @interface IMessageCenterEvent
|
|
7
|
+
*/
|
|
8
|
+
export interface IMessageCenterEvent {
|
|
9
|
+
/**
|
|
10
|
+
* @description 所有消息事件
|
|
11
|
+
* @param {IPortalMessage} msg 消息
|
|
12
|
+
* @memberof IMessageCenterEvent
|
|
13
|
+
*/
|
|
14
|
+
all: (msg: IPortalMessage) => void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description 异步作业信息
|
|
3
|
+
* @export
|
|
4
|
+
* @interface IPortalAsyncAction
|
|
5
|
+
*/
|
|
6
|
+
export interface IPortalAsyncAction {
|
|
7
|
+
/**
|
|
8
|
+
* @description 异步操作标识
|
|
9
|
+
* @type {string}
|
|
10
|
+
* @memberof IPortalAsyncAction
|
|
11
|
+
*/
|
|
12
|
+
asyncacitonid: string;
|
|
13
|
+
/**
|
|
14
|
+
* @description 异步操作名称
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof IPortalAsyncAction
|
|
17
|
+
*/
|
|
18
|
+
asyncacitonname: string;
|
|
19
|
+
/**
|
|
20
|
+
* @description 会话标识
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof IPortalAsyncAction
|
|
23
|
+
*/
|
|
24
|
+
fulltopictag: string;
|
|
25
|
+
/**
|
|
26
|
+
* @description 租户标识
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof IPortalAsyncAction
|
|
29
|
+
*/
|
|
30
|
+
srfdcid: string;
|
|
31
|
+
/**
|
|
32
|
+
* @description 租户系统标识
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof IPortalAsyncAction
|
|
35
|
+
*/
|
|
36
|
+
dcsystemid: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @description 异步作业类型,DEIMPORTDATA2: 异步导入
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof IPortalAsyncAction
|
|
42
|
+
*/
|
|
43
|
+
actiontype: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @description 作业状态
|
|
47
|
+
* @type {(10 | 20 | 30 | 40)} 未开始 | 执行中 | 已执行 | 执行失败
|
|
48
|
+
* @memberof IPortalAsyncAction
|
|
49
|
+
*/
|
|
50
|
+
actionstate: 10 | 20 | 30 | 40;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @description 异步作业执行结果
|
|
54
|
+
* @type {unknown}
|
|
55
|
+
* @memberof IPortalAsyncAction
|
|
56
|
+
*/
|
|
57
|
+
actionresult?: unknown;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @description 步骤信息
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof IPortalAsyncAction
|
|
63
|
+
*/
|
|
64
|
+
stepinfo?: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @description 完成百分比
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof IPortalAsyncAction
|
|
70
|
+
*/
|
|
71
|
+
completionrate?: number;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @description 异步结果下载路径,目前是留给导出数据使用
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof IPortalAsyncAction
|
|
77
|
+
*/
|
|
78
|
+
asyncresultdownloadurl?: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @description 预留参数
|
|
82
|
+
* @type {unknown}
|
|
83
|
+
* @memberof IPortalAsyncAction
|
|
84
|
+
*/
|
|
85
|
+
actionparam?: unknown;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @description 预留参数2
|
|
89
|
+
* @type {unknown}
|
|
90
|
+
* @memberof IPortalAsyncAction
|
|
91
|
+
*/
|
|
92
|
+
actionparam2?: unknown;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @description 预留参数3
|
|
96
|
+
* @type {unknown}
|
|
97
|
+
* @memberof IPortalAsyncAction
|
|
98
|
+
*/
|
|
99
|
+
actionparam3?: unknown;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @description 预留参数4
|
|
103
|
+
* @type {unknown}
|
|
104
|
+
* @memberof IPortalAsyncAction
|
|
105
|
+
*/
|
|
106
|
+
actionparam4?: unknown;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @description 操作开始时间
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof IPortalAsyncAction
|
|
112
|
+
*/
|
|
113
|
+
begintime: string;
|
|
114
|
+
/**
|
|
115
|
+
* @description 操作结束时间
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof IPortalAsyncAction
|
|
118
|
+
*/
|
|
119
|
+
endtime: string;
|
|
120
|
+
/**
|
|
121
|
+
* @description 创建人标识
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof IPortalAsyncAction
|
|
124
|
+
*/
|
|
125
|
+
createman: string;
|
|
126
|
+
/**
|
|
127
|
+
* @description 创建时间
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof IPortalAsyncAction
|
|
130
|
+
*/
|
|
131
|
+
createdate: string;
|
|
132
|
+
/**
|
|
133
|
+
* @description 更新人标识
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof IPortalAsyncAction
|
|
136
|
+
*/
|
|
137
|
+
updateman: string;
|
|
138
|
+
/**
|
|
139
|
+
* @description 更新时间
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof IPortalAsyncAction
|
|
142
|
+
*/
|
|
143
|
+
updatedate: string;
|
|
144
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { IApiData } from '../../../global-param';
|
|
2
|
+
import { IPortalAsyncAction } from './i-portal-async-action';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @description 消息数据
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IPortalMessage
|
|
8
|
+
*/
|
|
9
|
+
export interface IPortalMessage {
|
|
10
|
+
/**
|
|
11
|
+
* @description 消息标识
|
|
12
|
+
* @type {string}
|
|
13
|
+
* @memberof IPortalMessage
|
|
14
|
+
*/
|
|
15
|
+
messageid: string;
|
|
16
|
+
/**
|
|
17
|
+
* @description 消息名称
|
|
18
|
+
* @type {string}
|
|
19
|
+
* @memberof IPortalMessage
|
|
20
|
+
*/
|
|
21
|
+
messagename?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @description 消息类型, 日志消息 | 命令 | 错误消息
|
|
25
|
+
* @type {('CONSOLE' | 'COMMAND' | 'ERROR')} 日志消息 | 命令 | 错误消息
|
|
26
|
+
* @memberof IPortalMessage
|
|
27
|
+
*/
|
|
28
|
+
type: 'CONSOLE' | 'COMMAND' | 'ERROR';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @description 消息子类型, 标注打开数据 | 异步作业 | 站内信 | 数据更新 | 数据删除 | 数据创建 | 添加更改
|
|
32
|
+
* @type {('MARKOPENDATA'
|
|
33
|
+
* | 'ASYNCACTION'
|
|
34
|
+
* | 'INTERNALMESSAGE'
|
|
35
|
+
* | 'OBJECTUPDATED'
|
|
36
|
+
* | 'OBJECTREMOVED'
|
|
37
|
+
* | 'OBJECTCREATED'
|
|
38
|
+
* | 'ADDINCHANGED')} 标注打开数据 | 异步作业 | 站内信 | 数据更新 | 数据删除 | 数据创建 | 添加更改
|
|
39
|
+
* @memberof IPortalMessage
|
|
40
|
+
*/
|
|
41
|
+
subtype?:
|
|
42
|
+
| 'MARKOPENDATA'
|
|
43
|
+
| 'ASYNCACTION'
|
|
44
|
+
| 'INTERNALMESSAGE'
|
|
45
|
+
| 'OBJECTUPDATED'
|
|
46
|
+
| 'OBJECTREMOVED'
|
|
47
|
+
| 'OBJECTCREATED'
|
|
48
|
+
| 'ADDINCHANGED';
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @description 内容摘要
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof IPortalMessage
|
|
54
|
+
*/
|
|
55
|
+
content?: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @description 消息数据
|
|
59
|
+
* @type {(IPortalAsyncAction | IApiData | string | unknown)}
|
|
60
|
+
* @memberof IPortalMessage
|
|
61
|
+
*/
|
|
62
|
+
data?: IPortalAsyncAction | IApiData | string | unknown;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @description 消息路径
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof IPortalMessage
|
|
68
|
+
*/
|
|
69
|
+
url?: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @description 移动端消息路径
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof IPortalMessage
|
|
75
|
+
*/
|
|
76
|
+
mobileurl?: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @description 触发源的key,随机字符串,作为接收方判断是否相同环境触发,相同环境则不做处理,可不传
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof IPortalMessage
|
|
82
|
+
*/
|
|
83
|
+
triggerKey?: string;
|
|
84
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { IMessageCenterEvent } from './i-message-center-event';
|
|
2
|
+
export type { IPortalAsyncAction } from './i-portal-async-action';
|
|
3
|
+
export type { IPortalMessage } from './i-portal-message';
|
|
4
|
+
export type { IAppDataEntity } from './i-app-data-entity';
|
|
5
|
+
export type { IMsgMetaData } from './i-msg-meta-data';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IApiData } from '../../../global-param';
|
|
2
|
+
import { IMessageBase } from '../base';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @description 日志消息控制器
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IMessageConsole
|
|
8
|
+
* @extends {IMessageBase}
|
|
9
|
+
*/
|
|
10
|
+
export interface IMessageConsole extends IMessageBase {
|
|
11
|
+
/**
|
|
12
|
+
* @description 发送消息
|
|
13
|
+
* @param {(IApiData | string)} data 日志数据
|
|
14
|
+
* @memberof IMessageConsole
|
|
15
|
+
*/
|
|
16
|
+
send(data: IApiData | string): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IApiData } from '../../../global-param';
|
|
2
|
+
import { IMessageBase } from '../base';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @description 错误消息控制器
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IMessageError
|
|
8
|
+
* @extends {IMessageBase}
|
|
9
|
+
*/
|
|
10
|
+
export interface IMessageError extends IMessageBase {
|
|
11
|
+
/**
|
|
12
|
+
* @description 发送消息
|
|
13
|
+
* @param {(IApiData | string)} data 错误数据
|
|
14
|
+
* @memberof IMessageError
|
|
15
|
+
*/
|
|
16
|
+
send(data: IApiData | string): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { IMessageCommand } from './command';
|
|
2
|
+
import { IPortalMessage } from './common';
|
|
3
|
+
import { IMessageConsole } from './console/i-message-console';
|
|
4
|
+
import { IMessageError } from './error/i-message-error';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @description 界面消息中心
|
|
8
|
+
* @export
|
|
9
|
+
* @interface IMessageCenter
|
|
10
|
+
*/
|
|
11
|
+
export interface IMessageCenter {
|
|
12
|
+
/**
|
|
13
|
+
* @description 指令消息
|
|
14
|
+
* @type {IMessageCommand}
|
|
15
|
+
* @memberof IMessageCenter
|
|
16
|
+
*/
|
|
17
|
+
readonly command: IMessageCommand;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @description 日志消息
|
|
21
|
+
* @type {IMessageConsole}
|
|
22
|
+
* @memberof IMessageCenter
|
|
23
|
+
*/
|
|
24
|
+
readonly console: IMessageConsole;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @description 错误消息
|
|
28
|
+
* @type {IMessageError}
|
|
29
|
+
* @memberof IMessageCenter
|
|
30
|
+
*/
|
|
31
|
+
readonly error: IMessageError;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @description 发送消息
|
|
35
|
+
* @param {IPortalMessage} msg 消息
|
|
36
|
+
* @memberof IMessageCenter
|
|
37
|
+
*/
|
|
38
|
+
next(msg: IPortalMessage): void;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @description 订阅消息
|
|
42
|
+
* @param {(msg: IPortalMessage) => void} callback 回调函数
|
|
43
|
+
* @memberof IMessageCenter
|
|
44
|
+
*/
|
|
45
|
+
on(callback: (msg: IPortalMessage) => void): void;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @description 取消订阅
|
|
49
|
+
* @param {(msg: IPortalMessage) => void} callback 回调函数
|
|
50
|
+
* @memberof IMessageCenter
|
|
51
|
+
*/
|
|
52
|
+
off(callback: (msg: IPortalMessage) => void): void;
|
|
53
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './common';
|
|
2
|
+
export * from './base';
|
|
3
|
+
export * from './command';
|
|
4
|
+
export type { IMessageConsole } from './console/i-message-console';
|
|
5
|
+
export type { IMessageError } from './error/i-message-error';
|
|
6
|
+
export type { IMessageCenter } from './i-message-center';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description Http错误接口
|
|
5
|
+
* @export
|
|
6
|
+
* @interface IApiHttpError
|
|
7
|
+
*/
|
|
8
|
+
export interface IApiHttpError {
|
|
9
|
+
/**
|
|
10
|
+
* @description 错误名称
|
|
11
|
+
* @type {string}
|
|
12
|
+
* @memberof IApiHttpError
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @description 错误消息
|
|
18
|
+
* @type {string}
|
|
19
|
+
* @memberof IApiHttpError
|
|
20
|
+
*/
|
|
21
|
+
message: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @description 状态码
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof IApiHttpError
|
|
27
|
+
*/
|
|
28
|
+
status: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @description 错误标识
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IApiHttpError
|
|
34
|
+
*/
|
|
35
|
+
tag: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @description axios响应对象
|
|
39
|
+
* @type {AxiosResponse}
|
|
40
|
+
* @memberof IApiHttpError
|
|
41
|
+
*/
|
|
42
|
+
response?: AxiosResponse;
|
|
43
|
+
}
|