@etsoo/smarterp-crm 1.0.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/.gitattributes +2 -0
- package/.github/workflows/main.yml +60 -0
- package/LICENSE +21 -0
- package/README.md +17 -0
- package/__tests__/PersonApi.ts +15 -0
- package/__tests__/app/TestApp.ts +139 -0
- package/__tests__/tsconfig.json +20 -0
- package/babel.config.json +11 -0
- package/lib/cjs/CrmApp.d.ts +186 -0
- package/lib/cjs/CrmApp.js +170 -0
- package/lib/cjs/PersonApi.d.ts +38 -0
- package/lib/cjs/PersonApi.js +45 -0
- package/lib/cjs/PersonProfileApi.d.ts +54 -0
- package/lib/cjs/PersonProfileApi.js +63 -0
- package/lib/cjs/components/index.d.ts +1 -0
- package/lib/cjs/components/index.js +18 -0
- package/lib/cjs/components/person/PersonTiplist.d.ts +28 -0
- package/lib/cjs/components/person/PersonTiplist.js +27 -0
- package/lib/cjs/dto/person/AddressItem.d.ts +36 -0
- package/lib/cjs/dto/person/AddressItem.js +12 -0
- package/lib/cjs/dto/person/CategoryItem.d.ts +16 -0
- package/lib/cjs/dto/person/CategoryItem.js +2 -0
- package/lib/cjs/dto/person/ContactItem.d.ts +30 -0
- package/lib/cjs/dto/person/ContactItem.js +2 -0
- package/lib/cjs/dto/person/MaritalStatus.d.ts +36 -0
- package/lib/cjs/dto/person/MaritalStatus.js +40 -0
- package/lib/cjs/dto/person/PersonDegree.d.ts +26 -0
- package/lib/cjs/dto/person/PersonDegree.js +30 -0
- package/lib/cjs/dto/person/PersonEducation.d.ts +111 -0
- package/lib/cjs/dto/person/PersonEducation.js +115 -0
- package/lib/cjs/dto/person/PersonListDto.d.ts +6 -0
- package/lib/cjs/dto/person/PersonListDto.js +2 -0
- package/lib/cjs/dto/person/PersonQueryData.d.ts +24 -0
- package/lib/cjs/dto/person/PersonQueryData.js +2 -0
- package/lib/cjs/dto/person/PersonReadDto.d.ts +206 -0
- package/lib/cjs/dto/person/PersonReadDto.js +2 -0
- package/lib/cjs/dto/person/PersonTitle.d.ts +36 -0
- package/lib/cjs/dto/person/PersonTitle.js +40 -0
- package/lib/cjs/dto/personProfile/PersonProfileKind.d.ts +26 -0
- package/lib/cjs/dto/personProfile/PersonProfileKind.js +30 -0
- package/lib/cjs/dto/personProfile/PersonProfileListData.d.ts +16 -0
- package/lib/cjs/dto/personProfile/PersonProfileListData.js +2 -0
- package/lib/cjs/dto/personProfile/PersonProfileQueryData.d.ts +43 -0
- package/lib/cjs/dto/personProfile/PersonProfileQueryData.js +2 -0
- package/lib/cjs/dto/personProfile/PersonProfileUpdateReadData.d.ts +73 -0
- package/lib/cjs/dto/personProfile/PersonProfileUpdateReadData.js +2 -0
- package/lib/cjs/dto/personProfile/PersonProfileViewData.d.ts +5 -0
- package/lib/cjs/dto/personProfile/PersonProfileViewData.js +2 -0
- package/lib/cjs/i18n/CrmCulture.d.ts +244 -0
- package/lib/cjs/i18n/CrmCulture.js +23 -0
- package/lib/cjs/i18n/en.json +74 -0
- package/lib/cjs/i18n/zh-Hans.json +74 -0
- package/lib/cjs/i18n/zh-Hant.json +74 -0
- package/lib/cjs/index.d.ts +20 -0
- package/lib/cjs/index.js +40 -0
- package/lib/cjs/rq/person/PersonListRQ.d.ts +6 -0
- package/lib/cjs/rq/person/PersonListRQ.js +2 -0
- package/lib/cjs/rq/person/PersonQueryRQ.d.ts +6 -0
- package/lib/cjs/rq/person/PersonQueryRQ.js +2 -0
- package/lib/cjs/rq/personProfile/PersonProfileCreateRQ.d.ts +73 -0
- package/lib/cjs/rq/personProfile/PersonProfileCreateRQ.js +2 -0
- package/lib/cjs/rq/personProfile/PersonProfileListRQ.d.ts +48 -0
- package/lib/cjs/rq/personProfile/PersonProfileListRQ.js +2 -0
- package/lib/cjs/rq/personProfile/PersonProfileQueryRQ.d.ts +12 -0
- package/lib/cjs/rq/personProfile/PersonProfileQueryRQ.js +2 -0
- package/lib/mjs/CrmApp.d.ts +186 -0
- package/lib/mjs/CrmApp.js +165 -0
- package/lib/mjs/PersonApi.d.ts +38 -0
- package/lib/mjs/PersonApi.js +41 -0
- package/lib/mjs/PersonProfileApi.d.ts +54 -0
- package/lib/mjs/PersonProfileApi.js +59 -0
- package/lib/mjs/components/index.d.ts +1 -0
- package/lib/mjs/components/index.js +2 -0
- package/lib/mjs/components/person/PersonTiplist.d.ts +28 -0
- package/lib/mjs/components/person/PersonTiplist.js +24 -0
- package/lib/mjs/dto/person/AddressItem.d.ts +36 -0
- package/lib/mjs/dto/person/AddressItem.js +11 -0
- package/lib/mjs/dto/person/CategoryItem.d.ts +16 -0
- package/lib/mjs/dto/person/CategoryItem.js +1 -0
- package/lib/mjs/dto/person/ContactItem.d.ts +30 -0
- package/lib/mjs/dto/person/ContactItem.js +1 -0
- package/lib/mjs/dto/person/MaritalStatus.d.ts +36 -0
- package/lib/mjs/dto/person/MaritalStatus.js +37 -0
- package/lib/mjs/dto/person/PersonDegree.d.ts +26 -0
- package/lib/mjs/dto/person/PersonDegree.js +27 -0
- package/lib/mjs/dto/person/PersonEducation.d.ts +111 -0
- package/lib/mjs/dto/person/PersonEducation.js +112 -0
- package/lib/mjs/dto/person/PersonListDto.d.ts +6 -0
- package/lib/mjs/dto/person/PersonListDto.js +1 -0
- package/lib/mjs/dto/person/PersonQueryData.d.ts +24 -0
- package/lib/mjs/dto/person/PersonQueryData.js +1 -0
- package/lib/mjs/dto/person/PersonReadDto.d.ts +206 -0
- package/lib/mjs/dto/person/PersonReadDto.js +1 -0
- package/lib/mjs/dto/person/PersonTitle.d.ts +36 -0
- package/lib/mjs/dto/person/PersonTitle.js +37 -0
- package/lib/mjs/dto/personProfile/PersonProfileKind.d.ts +26 -0
- package/lib/mjs/dto/personProfile/PersonProfileKind.js +27 -0
- package/lib/mjs/dto/personProfile/PersonProfileListData.d.ts +16 -0
- package/lib/mjs/dto/personProfile/PersonProfileListData.js +1 -0
- package/lib/mjs/dto/personProfile/PersonProfileQueryData.d.ts +43 -0
- package/lib/mjs/dto/personProfile/PersonProfileQueryData.js +1 -0
- package/lib/mjs/dto/personProfile/PersonProfileUpdateReadData.d.ts +73 -0
- package/lib/mjs/dto/personProfile/PersonProfileUpdateReadData.js +1 -0
- package/lib/mjs/dto/personProfile/PersonProfileViewData.d.ts +5 -0
- package/lib/mjs/dto/personProfile/PersonProfileViewData.js +1 -0
- package/lib/mjs/i18n/CrmCulture.d.ts +460 -0
- package/lib/mjs/i18n/CrmCulture.js +20 -0
- package/lib/mjs/i18n/en.json +74 -0
- package/lib/mjs/i18n/zh-Hans.json +74 -0
- package/lib/mjs/i18n/zh-Hant.json +74 -0
- package/lib/mjs/index.d.ts +20 -0
- package/lib/mjs/index.js +24 -0
- package/lib/mjs/rq/person/PersonListRQ.d.ts +6 -0
- package/lib/mjs/rq/person/PersonListRQ.js +1 -0
- package/lib/mjs/rq/person/PersonQueryRQ.d.ts +6 -0
- package/lib/mjs/rq/person/PersonQueryRQ.js +1 -0
- package/lib/mjs/rq/personProfile/PersonProfileCreateRQ.d.ts +73 -0
- package/lib/mjs/rq/personProfile/PersonProfileCreateRQ.js +1 -0
- package/lib/mjs/rq/personProfile/PersonProfileListRQ.d.ts +48 -0
- package/lib/mjs/rq/personProfile/PersonProfileListRQ.js +1 -0
- package/lib/mjs/rq/personProfile/PersonProfileQueryRQ.d.ts +12 -0
- package/lib/mjs/rq/personProfile/PersonProfileQueryRQ.js +1 -0
- package/package.json +64 -0
- package/src/CrmApp.ts +270 -0
- package/src/PersonApi.ts +50 -0
- package/src/PersonProfileApi.ts +81 -0
- package/src/components/index.ts +2 -0
- package/src/components/person/PersonTiplist.tsx +75 -0
- package/src/dto/person/AddressItem.ts +39 -0
- package/src/dto/person/CategoryItem.ts +17 -0
- package/src/dto/person/ContactItem.ts +38 -0
- package/src/dto/person/MaritalStatus.ts +41 -0
- package/src/dto/person/PersonDegree.ts +29 -0
- package/src/dto/person/PersonEducation.ts +131 -0
- package/src/dto/person/PersonListDto.ts +7 -0
- package/src/dto/person/PersonQueryData.ts +28 -0
- package/src/dto/person/PersonReadDto.ts +242 -0
- package/src/dto/person/PersonTitle.ts +41 -0
- package/src/dto/personProfile/PersonProfileKind.ts +29 -0
- package/src/dto/personProfile/PersonProfileListData.ts +17 -0
- package/src/dto/personProfile/PersonProfileQueryData.ts +50 -0
- package/src/dto/personProfile/PersonProfileUpdateReadData.ts +86 -0
- package/src/dto/personProfile/PersonProfileViewData.ts +5 -0
- package/src/i18n/CrmCulture.ts +21 -0
- package/src/i18n/en.json +74 -0
- package/src/i18n/zh-Hans.json +74 -0
- package/src/i18n/zh-Hant.json +74 -0
- package/src/index.ts +30 -0
- package/src/rq/person/PersonListRQ.ts +7 -0
- package/src/rq/person/PersonQueryRQ.ts +7 -0
- package/src/rq/personProfile/PersonProfileCreateRQ.ts +86 -0
- package/src/rq/personProfile/PersonProfileListRQ.ts +56 -0
- package/src/rq/personProfile/PersonProfileQueryRQ.ts +13 -0
- package/tsconfig.cjs.json +20 -0
- package/tsconfig.json +20 -0
- package/vite.config.mts +12 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { EntityStatus, UserRole } from "@etsoo/appscript";
|
|
2
|
+
import { ContactItem } from "./ContactItem";
|
|
3
|
+
import { CategoryItem } from "./CategoryItem";
|
|
4
|
+
import { AddressItem } from "./AddressItem";
|
|
5
|
+
import { MaritalStatus } from "./MaritalStatus";
|
|
6
|
+
import { PersonEducation } from "./PersonEducation";
|
|
7
|
+
import { PersonDegree } from "./PersonDegree";
|
|
8
|
+
import { PersonTitle } from "./PersonTitle";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Person private data
|
|
12
|
+
* 人员私有数据
|
|
13
|
+
*/
|
|
14
|
+
type PersonPrivateData = {
|
|
15
|
+
/**
|
|
16
|
+
* Gender
|
|
17
|
+
* 性别
|
|
18
|
+
*/
|
|
19
|
+
gender?: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Birthday
|
|
23
|
+
* 生日
|
|
24
|
+
*/
|
|
25
|
+
birthday?: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Ethnicity
|
|
29
|
+
* 种族
|
|
30
|
+
*/
|
|
31
|
+
ethnicity?: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Height in cm
|
|
35
|
+
* 高度(厘米)
|
|
36
|
+
*/
|
|
37
|
+
height?: number;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Weight in kg
|
|
41
|
+
* 重量(千克)
|
|
42
|
+
*/
|
|
43
|
+
weight?: number;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Marital status
|
|
47
|
+
* 婚姻状况
|
|
48
|
+
*/
|
|
49
|
+
maritalStatus?: MaritalStatus;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Education
|
|
53
|
+
* 学历
|
|
54
|
+
*/
|
|
55
|
+
education?: PersonEducation;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Education degree
|
|
59
|
+
* 学位
|
|
60
|
+
*/
|
|
61
|
+
degree?: PersonDegree;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Political status
|
|
65
|
+
* 政治面貌
|
|
66
|
+
*/
|
|
67
|
+
politicalStatus?: string;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Person view data
|
|
72
|
+
* 人员浏览数据
|
|
73
|
+
*/
|
|
74
|
+
export type PersonViewData = ContactItem & {
|
|
75
|
+
/**
|
|
76
|
+
* Unique identifier
|
|
77
|
+
* 唯一标识符
|
|
78
|
+
*/
|
|
79
|
+
uid: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Is legal person (enterprise)
|
|
83
|
+
* 是否为法人(企业)
|
|
84
|
+
*/
|
|
85
|
+
isLegalPerson: boolean;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Given name
|
|
89
|
+
* 名
|
|
90
|
+
*/
|
|
91
|
+
givenName?: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Family name
|
|
95
|
+
* 姓
|
|
96
|
+
*/
|
|
97
|
+
familyName?: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Latin given name
|
|
101
|
+
* 拉丁名
|
|
102
|
+
*/
|
|
103
|
+
latinGivenName?: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Latin family name
|
|
107
|
+
* 拉丁姓
|
|
108
|
+
*/
|
|
109
|
+
latinFamilyName?: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Titles
|
|
113
|
+
* 称谓
|
|
114
|
+
*/
|
|
115
|
+
title?: PersonTitle;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Description
|
|
119
|
+
* 描述
|
|
120
|
+
*/
|
|
121
|
+
description?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Avatar
|
|
125
|
+
* 头像
|
|
126
|
+
*/
|
|
127
|
+
avatar?: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Job title
|
|
131
|
+
* 工作头衔
|
|
132
|
+
*/
|
|
133
|
+
jobTitle?: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Assigned id
|
|
137
|
+
* 分配的编号
|
|
138
|
+
*/
|
|
139
|
+
assignedId?: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Categories
|
|
143
|
+
* 类目
|
|
144
|
+
*/
|
|
145
|
+
categories?: CategoryItem[];
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Keywords
|
|
149
|
+
* 关键词
|
|
150
|
+
*/
|
|
151
|
+
keywords?: string[];
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Addresses
|
|
155
|
+
* 地址
|
|
156
|
+
*/
|
|
157
|
+
addresses?: AddressItem[];
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Report to (person.id)
|
|
161
|
+
* 汇报对象
|
|
162
|
+
*/
|
|
163
|
+
reportTo?: number;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Report to name
|
|
167
|
+
* 汇报对象姓名
|
|
168
|
+
*/
|
|
169
|
+
reportToName?: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Creation time
|
|
173
|
+
* 创建时间
|
|
174
|
+
*/
|
|
175
|
+
creation: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Status
|
|
179
|
+
* 状况
|
|
180
|
+
*/
|
|
181
|
+
status: EntityStatus;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Query keyword
|
|
185
|
+
* 查询关键字
|
|
186
|
+
*/
|
|
187
|
+
queryKeyword?: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Regions
|
|
191
|
+
* 地区
|
|
192
|
+
*/
|
|
193
|
+
regions?: string[];
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Currencies
|
|
197
|
+
* 币种
|
|
198
|
+
*/
|
|
199
|
+
currencies?: string[];
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Cultures
|
|
203
|
+
* 文化
|
|
204
|
+
*/
|
|
205
|
+
cultures?: string[];
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* JSON data
|
|
209
|
+
* JSON 数据
|
|
210
|
+
*/
|
|
211
|
+
data?: string;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* User role, permission level
|
|
215
|
+
* 用户角色,权限等级
|
|
216
|
+
*/
|
|
217
|
+
userRole?: UserRole;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Inviter
|
|
221
|
+
* 邀请人编号
|
|
222
|
+
*/
|
|
223
|
+
inviterName?: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Expiry time
|
|
227
|
+
* 到期时间
|
|
228
|
+
*/
|
|
229
|
+
expiry?: string;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Refresh time
|
|
233
|
+
* 刷新时间
|
|
234
|
+
*/
|
|
235
|
+
refreshTime: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Private data
|
|
239
|
+
* 私有数据
|
|
240
|
+
*/
|
|
241
|
+
privateData?: PersonPrivateData;
|
|
242
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Titles
|
|
3
|
+
* 称谓
|
|
4
|
+
*/
|
|
5
|
+
export enum PersonTitle {
|
|
6
|
+
/**
|
|
7
|
+
* Mr.
|
|
8
|
+
* 先生
|
|
9
|
+
*/
|
|
10
|
+
MR = 1,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Ms.
|
|
14
|
+
* 女士
|
|
15
|
+
*/
|
|
16
|
+
MS = 2,
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Mrs.
|
|
20
|
+
* 夫人
|
|
21
|
+
*/
|
|
22
|
+
MRS = 3,
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Miss
|
|
26
|
+
* 小姐
|
|
27
|
+
*/
|
|
28
|
+
Miss = 4,
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Dr.
|
|
32
|
+
* 博士
|
|
33
|
+
*/
|
|
34
|
+
DR = 11,
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Prof.
|
|
38
|
+
* 教授
|
|
39
|
+
*/
|
|
40
|
+
Prof = 12
|
|
41
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Person profile kind
|
|
3
|
+
* 个人资料种类
|
|
4
|
+
*/
|
|
5
|
+
export enum PersonProfileKind {
|
|
6
|
+
/**
|
|
7
|
+
* Normal
|
|
8
|
+
* 默认
|
|
9
|
+
*/
|
|
10
|
+
Normal = 1,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Schedule
|
|
14
|
+
* 日程
|
|
15
|
+
*/
|
|
16
|
+
Schedule = 106,
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Finance
|
|
20
|
+
* 财务
|
|
21
|
+
*/
|
|
22
|
+
Finance = 108,
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Agile
|
|
26
|
+
* 敏捷管理
|
|
27
|
+
*/
|
|
28
|
+
Agile = 110
|
|
29
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EntityStatus } from "@etsoo/appscript";
|
|
2
|
+
import { PersonProfileKind } from "./PersonProfileKind";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Person profile query data
|
|
6
|
+
* 人员档案查询数据
|
|
7
|
+
*/
|
|
8
|
+
export type PersonProfileQueryData = {
|
|
9
|
+
/**
|
|
10
|
+
* Id
|
|
11
|
+
* 编号
|
|
12
|
+
*/
|
|
13
|
+
id: number;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Kind
|
|
17
|
+
* 类型
|
|
18
|
+
*/
|
|
19
|
+
kind?: PersonProfileKind;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Title
|
|
23
|
+
* 标题
|
|
24
|
+
*/
|
|
25
|
+
title: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Happen date
|
|
29
|
+
* 发生日期
|
|
30
|
+
*/
|
|
31
|
+
happenDate?: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Happen date end
|
|
35
|
+
* 发生日期结束
|
|
36
|
+
*/
|
|
37
|
+
happenDateEnd?: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Status
|
|
41
|
+
* 状况
|
|
42
|
+
*/
|
|
43
|
+
status: EntityStatus;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Creation
|
|
47
|
+
* 登记时间
|
|
48
|
+
*/
|
|
49
|
+
creation: string;
|
|
50
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { EntityStatus } from "@etsoo/appscript";
|
|
2
|
+
import { PersonProfileKind } from "./PersonProfileKind";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Person profile update read data
|
|
6
|
+
* 个人档案更新读取数据
|
|
7
|
+
*/
|
|
8
|
+
export type PersonProfileUpdateReadData = {
|
|
9
|
+
/**
|
|
10
|
+
* Id
|
|
11
|
+
* 编号
|
|
12
|
+
*/
|
|
13
|
+
id: number;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Person id
|
|
17
|
+
* 个人编号
|
|
18
|
+
*/
|
|
19
|
+
personId: number;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Other participants
|
|
23
|
+
* 其他参与者
|
|
24
|
+
*/
|
|
25
|
+
persons?: number[];
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Order id
|
|
29
|
+
* 订单编号
|
|
30
|
+
*/
|
|
31
|
+
orderId?: number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Kind
|
|
35
|
+
* 类型
|
|
36
|
+
*/
|
|
37
|
+
kind: PersonProfileKind;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Title
|
|
41
|
+
* 标题
|
|
42
|
+
*/
|
|
43
|
+
title: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Comment
|
|
47
|
+
* 评价
|
|
48
|
+
*/
|
|
49
|
+
comment: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Location
|
|
53
|
+
* 位置
|
|
54
|
+
*/
|
|
55
|
+
location?: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Location id
|
|
59
|
+
* 位置编号
|
|
60
|
+
*/
|
|
61
|
+
locationId?: number;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Happen date
|
|
65
|
+
* 发生日期
|
|
66
|
+
*/
|
|
67
|
+
happenDate: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Happen date end
|
|
71
|
+
* 发生日期结束
|
|
72
|
+
*/
|
|
73
|
+
happenDateEnd?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Status
|
|
77
|
+
* 状态
|
|
78
|
+
*/
|
|
79
|
+
status: EntityStatus;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* JSON data
|
|
83
|
+
* JSON 数据
|
|
84
|
+
*/
|
|
85
|
+
data?: string;
|
|
86
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CRM culture
|
|
3
|
+
*/
|
|
4
|
+
export namespace CrmCulture {
|
|
5
|
+
/**
|
|
6
|
+
* Get en neutral culture
|
|
7
|
+
*/
|
|
8
|
+
export const en = () => import("./en.json");
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Get zh-Hans neutral cultrue
|
|
12
|
+
* @returns Full culture
|
|
13
|
+
*/
|
|
14
|
+
export const zhHans = () => import("./zh-Hans.json");
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Get zh-Hant neutral cultrue
|
|
18
|
+
* @returns Full culture
|
|
19
|
+
*/
|
|
20
|
+
export const zhHant = () => import("./zh-Hant.json");
|
|
21
|
+
}
|
package/src/i18n/en.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"assets": "Assets",
|
|
3
|
+
"contacts": "Contacts",
|
|
4
|
+
"cultures": "Cultures",
|
|
5
|
+
"currencies": "Currencies",
|
|
6
|
+
"customers": "Customers",
|
|
7
|
+
"degreeBachelor": "Bachelor",
|
|
8
|
+
"degreeDoctor": "Doctor",
|
|
9
|
+
"degreeMaster": "Master",
|
|
10
|
+
"degreePreBachelor": "Pre-bachelor",
|
|
11
|
+
"educationHighSchool": "High school",
|
|
12
|
+
"educationHighSchool1": "Year 10",
|
|
13
|
+
"educationHighSchool2": "Year 11",
|
|
14
|
+
"educationHighSchool3": "Year 12",
|
|
15
|
+
"educationMiddleSchool": "Middle school",
|
|
16
|
+
"educationMiddleSchool1": "Year 7",
|
|
17
|
+
"educationMiddleSchool2": "Year 8",
|
|
18
|
+
"educationMiddleSchool3": "Year 9",
|
|
19
|
+
"educationPrimarySchool": "Primary school",
|
|
20
|
+
"educationPrimarySchool2": "Year 2",
|
|
21
|
+
"educationPrimarySchool3": "Year 3",
|
|
22
|
+
"educationPrimarySchool4": "Year 4",
|
|
23
|
+
"educationPrimarySchool5": "Year 5",
|
|
24
|
+
"educationPrimarySchool6": "Year 6",
|
|
25
|
+
"educationUniversity10": "Bachelor's Graduate (With Degree)",
|
|
26
|
+
"educationUniversity12": "Postgraduate (No Degree)",
|
|
27
|
+
"educationUniversity14": "Master's Graduate",
|
|
28
|
+
"educationUniversity2": "Diploma Graduate",
|
|
29
|
+
"educationUniversity4": "Graduated from Five Types of Higher Education",
|
|
30
|
+
"educationUniversity6": "University Student",
|
|
31
|
+
"educationUniversity8": "Bachelor's Graduate (No Degree)",
|
|
32
|
+
"employees": "Employees",
|
|
33
|
+
"idUser": "User",
|
|
34
|
+
"isLegalPerson": "Is business",
|
|
35
|
+
"isOrg": "Is my org",
|
|
36
|
+
"jobTitle": "Job title",
|
|
37
|
+
"latinName": "Latin name",
|
|
38
|
+
"maritalDivorced": "Divorced",
|
|
39
|
+
"maritalMarried": "Married",
|
|
40
|
+
"maritalPartnership": "Partnership",
|
|
41
|
+
"maritalSeparated": "Separated",
|
|
42
|
+
"maritalSingle": "Single",
|
|
43
|
+
"maritalWidowed": "Widowed",
|
|
44
|
+
"offerings": "Offerings",
|
|
45
|
+
"orders": "Orders",
|
|
46
|
+
"personBirthday": "Birthday",
|
|
47
|
+
"personDegree": "Degree",
|
|
48
|
+
"personEducation": "Education",
|
|
49
|
+
"personEthnicity": "Ethnicity",
|
|
50
|
+
"personFemale": "Female",
|
|
51
|
+
"personGender": "Gender",
|
|
52
|
+
"personMale": "Male",
|
|
53
|
+
"personMaritalStatus": "Marital status",
|
|
54
|
+
"personName": "Name",
|
|
55
|
+
"personTitle": "Title",
|
|
56
|
+
"personTitleDR": "Dr.",
|
|
57
|
+
"personTitleMR": "Mr.",
|
|
58
|
+
"personTitleMRS": "Mrs.",
|
|
59
|
+
"personTitleMS": "Ms.",
|
|
60
|
+
"personTitleMiss": "Miss",
|
|
61
|
+
"personTitleProf": "Prof.",
|
|
62
|
+
"personHeight": "Height (CM)",
|
|
63
|
+
"personWeight": "Weight (KG)",
|
|
64
|
+
"politicalStatus": "Political status",
|
|
65
|
+
"profiles": "Profiles",
|
|
66
|
+
"purchases": "Purchases",
|
|
67
|
+
"products": "Products",
|
|
68
|
+
"regions": "Regions",
|
|
69
|
+
"reports": "Reports",
|
|
70
|
+
"stockIn": "Stock in",
|
|
71
|
+
"stockOut": "Stock out",
|
|
72
|
+
"system": "System",
|
|
73
|
+
"suppliers": "Suppliers"
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"assets": "资产",
|
|
3
|
+
"contacts": "联系人",
|
|
4
|
+
"cultures": "语言/文化",
|
|
5
|
+
"currencies": "币种",
|
|
6
|
+
"customers": "客户",
|
|
7
|
+
"degreeBachelor": "学士",
|
|
8
|
+
"degreeDoctor": "博士",
|
|
9
|
+
"degreeMaster": "硕士",
|
|
10
|
+
"degreePreBachelor": "副学士",
|
|
11
|
+
"educationHighSchool": "高中",
|
|
12
|
+
"educationHighSchool1": "高中1年级",
|
|
13
|
+
"educationHighSchool2": "高中2年级",
|
|
14
|
+
"educationHighSchool3": "高中3年级",
|
|
15
|
+
"educationMiddleSchool": "初中",
|
|
16
|
+
"educationMiddleSchool1": "初中1年级",
|
|
17
|
+
"educationMiddleSchool2": "初中2年级",
|
|
18
|
+
"educationMiddleSchool3": "初中3年级",
|
|
19
|
+
"educationPrimarySchool": "小学",
|
|
20
|
+
"educationPrimarySchool2": "小学2年级",
|
|
21
|
+
"educationPrimarySchool3": "小学3年级",
|
|
22
|
+
"educationPrimarySchool4": "小学4年级",
|
|
23
|
+
"educationPrimarySchool5": "小学5年级",
|
|
24
|
+
"educationPrimarySchool6": "小学6年级",
|
|
25
|
+
"educationUniversity10": "大学本科毕业且获得学士学位",
|
|
26
|
+
"educationUniversity12": "研究生毕业(无学位证书)",
|
|
27
|
+
"educationUniversity14": "硕士学位毕业",
|
|
28
|
+
"educationUniversity2": "大专毕业",
|
|
29
|
+
"educationUniversity4": "五大学历毕业(自考、电大、夜大、党校、函授)",
|
|
30
|
+
"educationUniversity6": "大学在读",
|
|
31
|
+
"educationUniversity8": "大学本科毕业(无学士学位)",
|
|
32
|
+
"employees": "员工",
|
|
33
|
+
"idUser": "用户",
|
|
34
|
+
"isLegalPerson": "是否企业",
|
|
35
|
+
"isOrg": "是否本机构",
|
|
36
|
+
"jobTitle": "职位",
|
|
37
|
+
"latinName": "拼音名",
|
|
38
|
+
"maritalDivorced": "离异",
|
|
39
|
+
"maritalMarried": "已婚",
|
|
40
|
+
"maritalPartnership": "同居伴侣",
|
|
41
|
+
"maritalSeparated": "分居",
|
|
42
|
+
"maritalSingle": "未婚",
|
|
43
|
+
"maritalWidowed": "丧偶",
|
|
44
|
+
"offerings": "产品和服务",
|
|
45
|
+
"orders": "订单",
|
|
46
|
+
"personBirthday": "生日",
|
|
47
|
+
"personDegree": "学位",
|
|
48
|
+
"personEducation": "学历",
|
|
49
|
+
"personEthnicity": "民族",
|
|
50
|
+
"personFemale": "女",
|
|
51
|
+
"personGender": "性别",
|
|
52
|
+
"personMale": "男",
|
|
53
|
+
"personMaritalStatus": "婚姻状况",
|
|
54
|
+
"personName": "名称 / 姓名",
|
|
55
|
+
"personTitle": "称谓",
|
|
56
|
+
"personTitleDR": "博士",
|
|
57
|
+
"personTitleMR": "先生",
|
|
58
|
+
"personTitleMRS": "夫人",
|
|
59
|
+
"personTitleMS": "女士",
|
|
60
|
+
"personTitleMiss": "小姐",
|
|
61
|
+
"personTitleProf": "教授",
|
|
62
|
+
"personHeight": "身高 (厘米)",
|
|
63
|
+
"personWeight": "体重 (公斤)",
|
|
64
|
+
"politicalStatus": "政治面貌",
|
|
65
|
+
"profiles": "档案",
|
|
66
|
+
"products": "产品",
|
|
67
|
+
"purchases": "采购",
|
|
68
|
+
"regions": "国家或地区",
|
|
69
|
+
"reports": "报表",
|
|
70
|
+
"stockIn": "入库",
|
|
71
|
+
"stockOut": "出库",
|
|
72
|
+
"system": "系统",
|
|
73
|
+
"suppliers": "供应商"
|
|
74
|
+
}
|