@ibiz-template/core 0.5.6 → 0.5.7-alpha.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/out/interface/i-internal-message/i-internal-message.d.ts +117 -0
- package/out/interface/i-internal-message/i-internal-message.d.ts.map +1 -0
- package/out/interface/i-internal-message/i-internal-message.js +1 -0
- package/out/interface/index.d.ts +1 -0
- package/out/interface/index.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/interface/i-internal-message/i-internal-message.ts +135 -0
- package/src/interface/index.ts +5 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export type InternalMessageStatus = 'SENT' | 'RECEIVED' | 'READ' | 'NOT_SENT' | 'SEND_FAILED' | 'REPLIED' | 'DELETED';
|
|
2
|
+
export type InternalMessageContentType = 'TEXT' | 'HTML' | 'MARKDOWN' | 'JSON';
|
|
3
|
+
/**
|
|
4
|
+
* 站内信
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2024-01-23 01:50:09
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IInternalMessage
|
|
9
|
+
*/
|
|
10
|
+
export interface IInternalMessage {
|
|
11
|
+
/**
|
|
12
|
+
* 更新人
|
|
13
|
+
* @author lxm
|
|
14
|
+
* @date 2024-01-23 01:53:09
|
|
15
|
+
* @type {string}
|
|
16
|
+
*/
|
|
17
|
+
update_man: string;
|
|
18
|
+
/**
|
|
19
|
+
* 更新时间
|
|
20
|
+
* @author lxm
|
|
21
|
+
* @date 2024-01-23 01:53:08
|
|
22
|
+
* @type {string}
|
|
23
|
+
*/
|
|
24
|
+
update_time: string;
|
|
25
|
+
/**
|
|
26
|
+
* 创建人
|
|
27
|
+
* @author lxm
|
|
28
|
+
* @date 2024-01-23 01:53:06
|
|
29
|
+
* @type {string}
|
|
30
|
+
*/
|
|
31
|
+
create_man: string;
|
|
32
|
+
/**
|
|
33
|
+
* 创建时间
|
|
34
|
+
* @author lxm
|
|
35
|
+
* @date 2024-01-23 01:53:04
|
|
36
|
+
* @type {string}
|
|
37
|
+
*/
|
|
38
|
+
create_time: string;
|
|
39
|
+
/**
|
|
40
|
+
* 唯一标识
|
|
41
|
+
* @author lxm
|
|
42
|
+
* @date 2024-01-23 01:52:58
|
|
43
|
+
* @type {string}
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
/**
|
|
47
|
+
* 状态
|
|
48
|
+
* @author lxm
|
|
49
|
+
* @date 2024-01-23 01:57:58
|
|
50
|
+
* @type {InternalMessageStatus}
|
|
51
|
+
*/
|
|
52
|
+
status: InternalMessageStatus;
|
|
53
|
+
/**
|
|
54
|
+
* 内容类型
|
|
55
|
+
* @author lxm
|
|
56
|
+
* @date 2024-01-23 01:57:52
|
|
57
|
+
* @type {InternalMessageContentType}
|
|
58
|
+
*/
|
|
59
|
+
content_type: InternalMessageContentType;
|
|
60
|
+
/**
|
|
61
|
+
* 内容
|
|
62
|
+
* @author lxm
|
|
63
|
+
* @date 2024-01-23 03:32:23
|
|
64
|
+
* @type {string}
|
|
65
|
+
*/
|
|
66
|
+
content: string;
|
|
67
|
+
/**
|
|
68
|
+
* 系统标记
|
|
69
|
+
* @author lxm
|
|
70
|
+
* @date 2024-01-23 01:58:27
|
|
71
|
+
* @type {string}
|
|
72
|
+
*/
|
|
73
|
+
system_tag: string;
|
|
74
|
+
/**
|
|
75
|
+
* 所有者标记
|
|
76
|
+
* @author lxm
|
|
77
|
+
* @date 2024-01-23 01:58:45
|
|
78
|
+
* @type {string}
|
|
79
|
+
*/
|
|
80
|
+
owner_id: string;
|
|
81
|
+
/**
|
|
82
|
+
* 消息所有者类型
|
|
83
|
+
* @author lxm
|
|
84
|
+
* @date 2024-01-23 01:52:39
|
|
85
|
+
* @type {('PERSONAL' | 'SYSTEM')}
|
|
86
|
+
*/
|
|
87
|
+
owner_type: 'PERSONAL' | 'SYSTEM';
|
|
88
|
+
/**
|
|
89
|
+
* 消息类型
|
|
90
|
+
* @author lxm
|
|
91
|
+
* @date 2024-01-23 01:59:34
|
|
92
|
+
* @type {string}
|
|
93
|
+
*/
|
|
94
|
+
message_type: string;
|
|
95
|
+
/**
|
|
96
|
+
* 标题
|
|
97
|
+
* @author lxm
|
|
98
|
+
* @date 2024-01-23 01:59:52
|
|
99
|
+
* @type {string}
|
|
100
|
+
*/
|
|
101
|
+
title: string;
|
|
102
|
+
/**
|
|
103
|
+
* 接受者
|
|
104
|
+
* @author lxm
|
|
105
|
+
* @date 2024-01-23 02:00:04
|
|
106
|
+
* @type {string}
|
|
107
|
+
*/
|
|
108
|
+
receiver: string;
|
|
109
|
+
/**
|
|
110
|
+
* 短内容
|
|
111
|
+
* @author lxm
|
|
112
|
+
* @date 2024-01-23 02:00:22
|
|
113
|
+
* @type {string}
|
|
114
|
+
*/
|
|
115
|
+
short_content?: string;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=i-internal-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-internal-message.d.ts","sourceRoot":"","sources":["../../../src/interface/i-internal-message/i-internal-message.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAC7B,MAAM,GACN,UAAU,GACV,MAAM,GACN,UAAU,GACV,aAAa,GACb,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;AAE/E;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;OAKG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAE9B;;;;;OAKG;IACH,YAAY,EAAE,0BAA0B,CAAC;IAEzC;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,UAAU,EAAE,UAAU,GAAG,QAAQ,CAAC;IAElC;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/out/interface/index.d.ts
CHANGED
|
@@ -5,4 +5,5 @@ export type { IEnvironment } from './i-environment/i-environment';
|
|
|
5
5
|
export type { IPortalAsyncAction } from './i-portal-async-action/i-portal-async-action';
|
|
6
6
|
export type { IPortalMessage } from './i-portal-message/i-portal-message';
|
|
7
7
|
export type { OrgData } from './org-data/org-data';
|
|
8
|
+
export type { IInternalMessage, InternalMessageContentType, InternalMessageStatus, } from './i-internal-message/i-internal-message';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,YAAY,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,YAAY,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,YAAY,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACxF,YAAY,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1E,YAAY,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,YAAY,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,YAAY,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,YAAY,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACxF,YAAY,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1E,YAAY,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,YAAY,EACV,gBAAgB,EAChB,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,yCAAyC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7-alpha.0",
|
|
4
4
|
"description": "核心包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"test": "jest",
|
|
26
26
|
"publish:next": "npm run build && npm publish --access public --tag=next --registry=https://registry.npmjs.org/",
|
|
27
27
|
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
|
|
28
|
+
"publish:alpha": "npm run build && npm publish --access public --tag=alpha --registry=https://registry.npmjs.org/",
|
|
28
29
|
"publish:beta": "npm run build && npm publish --access public --tag=beta --registry=https://registry.npmjs.org/",
|
|
29
30
|
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
30
31
|
},
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
"license": "MIT",
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"@microsoft/fetch-event-source": "^2.0.1",
|
|
35
|
-
"axios": "^1.6.
|
|
36
|
+
"axios": "^1.6.5",
|
|
36
37
|
"lodash-es": "^4.17.21",
|
|
37
38
|
"loglevel": "^1.8.1",
|
|
38
39
|
"loglevel-plugin-prefix": "^0.8.4",
|
|
@@ -50,5 +51,5 @@
|
|
|
50
51
|
"qx-util": "^0.4.8",
|
|
51
52
|
"ramda": "^0.29.0"
|
|
52
53
|
},
|
|
53
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "d334b6bfb6f0869076ab2d09f9d959885eef71dc"
|
|
54
55
|
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export type InternalMessageStatus =
|
|
2
|
+
| 'SENT'
|
|
3
|
+
| 'RECEIVED'
|
|
4
|
+
| 'READ'
|
|
5
|
+
| 'NOT_SENT'
|
|
6
|
+
| 'SEND_FAILED'
|
|
7
|
+
| 'REPLIED'
|
|
8
|
+
| 'DELETED';
|
|
9
|
+
|
|
10
|
+
export type InternalMessageContentType = 'TEXT' | 'HTML' | 'MARKDOWN' | 'JSON';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 站内信
|
|
14
|
+
* @author lxm
|
|
15
|
+
* @date 2024-01-23 01:50:09
|
|
16
|
+
* @export
|
|
17
|
+
* @interface IInternalMessage
|
|
18
|
+
*/
|
|
19
|
+
export interface IInternalMessage {
|
|
20
|
+
/**
|
|
21
|
+
* 更新人
|
|
22
|
+
* @author lxm
|
|
23
|
+
* @date 2024-01-23 01:53:09
|
|
24
|
+
* @type {string}
|
|
25
|
+
*/
|
|
26
|
+
update_man: string;
|
|
27
|
+
/**
|
|
28
|
+
* 更新时间
|
|
29
|
+
* @author lxm
|
|
30
|
+
* @date 2024-01-23 01:53:08
|
|
31
|
+
* @type {string}
|
|
32
|
+
*/
|
|
33
|
+
update_time: string;
|
|
34
|
+
/**
|
|
35
|
+
* 创建人
|
|
36
|
+
* @author lxm
|
|
37
|
+
* @date 2024-01-23 01:53:06
|
|
38
|
+
* @type {string}
|
|
39
|
+
*/
|
|
40
|
+
create_man: string;
|
|
41
|
+
/**
|
|
42
|
+
* 创建时间
|
|
43
|
+
* @author lxm
|
|
44
|
+
* @date 2024-01-23 01:53:04
|
|
45
|
+
* @type {string}
|
|
46
|
+
*/
|
|
47
|
+
create_time: string;
|
|
48
|
+
/**
|
|
49
|
+
* 唯一标识
|
|
50
|
+
* @author lxm
|
|
51
|
+
* @date 2024-01-23 01:52:58
|
|
52
|
+
* @type {string}
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 状态
|
|
58
|
+
* @author lxm
|
|
59
|
+
* @date 2024-01-23 01:57:58
|
|
60
|
+
* @type {InternalMessageStatus}
|
|
61
|
+
*/
|
|
62
|
+
status: InternalMessageStatus;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* 内容类型
|
|
66
|
+
* @author lxm
|
|
67
|
+
* @date 2024-01-23 01:57:52
|
|
68
|
+
* @type {InternalMessageContentType}
|
|
69
|
+
*/
|
|
70
|
+
content_type: InternalMessageContentType;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 内容
|
|
74
|
+
* @author lxm
|
|
75
|
+
* @date 2024-01-23 03:32:23
|
|
76
|
+
* @type {string}
|
|
77
|
+
*/
|
|
78
|
+
content: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 系统标记
|
|
82
|
+
* @author lxm
|
|
83
|
+
* @date 2024-01-23 01:58:27
|
|
84
|
+
* @type {string}
|
|
85
|
+
*/
|
|
86
|
+
system_tag: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* 所有者标记
|
|
90
|
+
* @author lxm
|
|
91
|
+
* @date 2024-01-23 01:58:45
|
|
92
|
+
* @type {string}
|
|
93
|
+
*/
|
|
94
|
+
owner_id: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* 消息所有者类型
|
|
98
|
+
* @author lxm
|
|
99
|
+
* @date 2024-01-23 01:52:39
|
|
100
|
+
* @type {('PERSONAL' | 'SYSTEM')}
|
|
101
|
+
*/
|
|
102
|
+
owner_type: 'PERSONAL' | 'SYSTEM';
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* 消息类型
|
|
106
|
+
* @author lxm
|
|
107
|
+
* @date 2024-01-23 01:59:34
|
|
108
|
+
* @type {string}
|
|
109
|
+
*/
|
|
110
|
+
message_type: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 标题
|
|
114
|
+
* @author lxm
|
|
115
|
+
* @date 2024-01-23 01:59:52
|
|
116
|
+
* @type {string}
|
|
117
|
+
*/
|
|
118
|
+
title: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 接受者
|
|
122
|
+
* @author lxm
|
|
123
|
+
* @date 2024-01-23 02:00:04
|
|
124
|
+
* @type {string}
|
|
125
|
+
*/
|
|
126
|
+
receiver: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* 短内容
|
|
130
|
+
* @author lxm
|
|
131
|
+
* @date 2024-01-23 02:00:22
|
|
132
|
+
* @type {string}
|
|
133
|
+
*/
|
|
134
|
+
short_content?: string;
|
|
135
|
+
}
|
package/src/interface/index.ts
CHANGED
|
@@ -5,3 +5,8 @@ export type { IEnvironment } from './i-environment/i-environment';
|
|
|
5
5
|
export type { IPortalAsyncAction } from './i-portal-async-action/i-portal-async-action';
|
|
6
6
|
export type { IPortalMessage } from './i-portal-message/i-portal-message';
|
|
7
7
|
export type { OrgData } from './org-data/org-data';
|
|
8
|
+
export type {
|
|
9
|
+
IInternalMessage,
|
|
10
|
+
InternalMessageContentType,
|
|
11
|
+
InternalMessageStatus,
|
|
12
|
+
} from './i-internal-message/i-internal-message';
|