@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.
Files changed (156) hide show
  1. package/.gitattributes +2 -0
  2. package/.github/workflows/main.yml +60 -0
  3. package/LICENSE +21 -0
  4. package/README.md +17 -0
  5. package/__tests__/PersonApi.ts +15 -0
  6. package/__tests__/app/TestApp.ts +139 -0
  7. package/__tests__/tsconfig.json +20 -0
  8. package/babel.config.json +11 -0
  9. package/lib/cjs/CrmApp.d.ts +186 -0
  10. package/lib/cjs/CrmApp.js +170 -0
  11. package/lib/cjs/PersonApi.d.ts +38 -0
  12. package/lib/cjs/PersonApi.js +45 -0
  13. package/lib/cjs/PersonProfileApi.d.ts +54 -0
  14. package/lib/cjs/PersonProfileApi.js +63 -0
  15. package/lib/cjs/components/index.d.ts +1 -0
  16. package/lib/cjs/components/index.js +18 -0
  17. package/lib/cjs/components/person/PersonTiplist.d.ts +28 -0
  18. package/lib/cjs/components/person/PersonTiplist.js +27 -0
  19. package/lib/cjs/dto/person/AddressItem.d.ts +36 -0
  20. package/lib/cjs/dto/person/AddressItem.js +12 -0
  21. package/lib/cjs/dto/person/CategoryItem.d.ts +16 -0
  22. package/lib/cjs/dto/person/CategoryItem.js +2 -0
  23. package/lib/cjs/dto/person/ContactItem.d.ts +30 -0
  24. package/lib/cjs/dto/person/ContactItem.js +2 -0
  25. package/lib/cjs/dto/person/MaritalStatus.d.ts +36 -0
  26. package/lib/cjs/dto/person/MaritalStatus.js +40 -0
  27. package/lib/cjs/dto/person/PersonDegree.d.ts +26 -0
  28. package/lib/cjs/dto/person/PersonDegree.js +30 -0
  29. package/lib/cjs/dto/person/PersonEducation.d.ts +111 -0
  30. package/lib/cjs/dto/person/PersonEducation.js +115 -0
  31. package/lib/cjs/dto/person/PersonListDto.d.ts +6 -0
  32. package/lib/cjs/dto/person/PersonListDto.js +2 -0
  33. package/lib/cjs/dto/person/PersonQueryData.d.ts +24 -0
  34. package/lib/cjs/dto/person/PersonQueryData.js +2 -0
  35. package/lib/cjs/dto/person/PersonReadDto.d.ts +206 -0
  36. package/lib/cjs/dto/person/PersonReadDto.js +2 -0
  37. package/lib/cjs/dto/person/PersonTitle.d.ts +36 -0
  38. package/lib/cjs/dto/person/PersonTitle.js +40 -0
  39. package/lib/cjs/dto/personProfile/PersonProfileKind.d.ts +26 -0
  40. package/lib/cjs/dto/personProfile/PersonProfileKind.js +30 -0
  41. package/lib/cjs/dto/personProfile/PersonProfileListData.d.ts +16 -0
  42. package/lib/cjs/dto/personProfile/PersonProfileListData.js +2 -0
  43. package/lib/cjs/dto/personProfile/PersonProfileQueryData.d.ts +43 -0
  44. package/lib/cjs/dto/personProfile/PersonProfileQueryData.js +2 -0
  45. package/lib/cjs/dto/personProfile/PersonProfileUpdateReadData.d.ts +73 -0
  46. package/lib/cjs/dto/personProfile/PersonProfileUpdateReadData.js +2 -0
  47. package/lib/cjs/dto/personProfile/PersonProfileViewData.d.ts +5 -0
  48. package/lib/cjs/dto/personProfile/PersonProfileViewData.js +2 -0
  49. package/lib/cjs/i18n/CrmCulture.d.ts +244 -0
  50. package/lib/cjs/i18n/CrmCulture.js +23 -0
  51. package/lib/cjs/i18n/en.json +74 -0
  52. package/lib/cjs/i18n/zh-Hans.json +74 -0
  53. package/lib/cjs/i18n/zh-Hant.json +74 -0
  54. package/lib/cjs/index.d.ts +20 -0
  55. package/lib/cjs/index.js +40 -0
  56. package/lib/cjs/rq/person/PersonListRQ.d.ts +6 -0
  57. package/lib/cjs/rq/person/PersonListRQ.js +2 -0
  58. package/lib/cjs/rq/person/PersonQueryRQ.d.ts +6 -0
  59. package/lib/cjs/rq/person/PersonQueryRQ.js +2 -0
  60. package/lib/cjs/rq/personProfile/PersonProfileCreateRQ.d.ts +73 -0
  61. package/lib/cjs/rq/personProfile/PersonProfileCreateRQ.js +2 -0
  62. package/lib/cjs/rq/personProfile/PersonProfileListRQ.d.ts +48 -0
  63. package/lib/cjs/rq/personProfile/PersonProfileListRQ.js +2 -0
  64. package/lib/cjs/rq/personProfile/PersonProfileQueryRQ.d.ts +12 -0
  65. package/lib/cjs/rq/personProfile/PersonProfileQueryRQ.js +2 -0
  66. package/lib/mjs/CrmApp.d.ts +186 -0
  67. package/lib/mjs/CrmApp.js +165 -0
  68. package/lib/mjs/PersonApi.d.ts +38 -0
  69. package/lib/mjs/PersonApi.js +41 -0
  70. package/lib/mjs/PersonProfileApi.d.ts +54 -0
  71. package/lib/mjs/PersonProfileApi.js +59 -0
  72. package/lib/mjs/components/index.d.ts +1 -0
  73. package/lib/mjs/components/index.js +2 -0
  74. package/lib/mjs/components/person/PersonTiplist.d.ts +28 -0
  75. package/lib/mjs/components/person/PersonTiplist.js +24 -0
  76. package/lib/mjs/dto/person/AddressItem.d.ts +36 -0
  77. package/lib/mjs/dto/person/AddressItem.js +11 -0
  78. package/lib/mjs/dto/person/CategoryItem.d.ts +16 -0
  79. package/lib/mjs/dto/person/CategoryItem.js +1 -0
  80. package/lib/mjs/dto/person/ContactItem.d.ts +30 -0
  81. package/lib/mjs/dto/person/ContactItem.js +1 -0
  82. package/lib/mjs/dto/person/MaritalStatus.d.ts +36 -0
  83. package/lib/mjs/dto/person/MaritalStatus.js +37 -0
  84. package/lib/mjs/dto/person/PersonDegree.d.ts +26 -0
  85. package/lib/mjs/dto/person/PersonDegree.js +27 -0
  86. package/lib/mjs/dto/person/PersonEducation.d.ts +111 -0
  87. package/lib/mjs/dto/person/PersonEducation.js +112 -0
  88. package/lib/mjs/dto/person/PersonListDto.d.ts +6 -0
  89. package/lib/mjs/dto/person/PersonListDto.js +1 -0
  90. package/lib/mjs/dto/person/PersonQueryData.d.ts +24 -0
  91. package/lib/mjs/dto/person/PersonQueryData.js +1 -0
  92. package/lib/mjs/dto/person/PersonReadDto.d.ts +206 -0
  93. package/lib/mjs/dto/person/PersonReadDto.js +1 -0
  94. package/lib/mjs/dto/person/PersonTitle.d.ts +36 -0
  95. package/lib/mjs/dto/person/PersonTitle.js +37 -0
  96. package/lib/mjs/dto/personProfile/PersonProfileKind.d.ts +26 -0
  97. package/lib/mjs/dto/personProfile/PersonProfileKind.js +27 -0
  98. package/lib/mjs/dto/personProfile/PersonProfileListData.d.ts +16 -0
  99. package/lib/mjs/dto/personProfile/PersonProfileListData.js +1 -0
  100. package/lib/mjs/dto/personProfile/PersonProfileQueryData.d.ts +43 -0
  101. package/lib/mjs/dto/personProfile/PersonProfileQueryData.js +1 -0
  102. package/lib/mjs/dto/personProfile/PersonProfileUpdateReadData.d.ts +73 -0
  103. package/lib/mjs/dto/personProfile/PersonProfileUpdateReadData.js +1 -0
  104. package/lib/mjs/dto/personProfile/PersonProfileViewData.d.ts +5 -0
  105. package/lib/mjs/dto/personProfile/PersonProfileViewData.js +1 -0
  106. package/lib/mjs/i18n/CrmCulture.d.ts +460 -0
  107. package/lib/mjs/i18n/CrmCulture.js +20 -0
  108. package/lib/mjs/i18n/en.json +74 -0
  109. package/lib/mjs/i18n/zh-Hans.json +74 -0
  110. package/lib/mjs/i18n/zh-Hant.json +74 -0
  111. package/lib/mjs/index.d.ts +20 -0
  112. package/lib/mjs/index.js +24 -0
  113. package/lib/mjs/rq/person/PersonListRQ.d.ts +6 -0
  114. package/lib/mjs/rq/person/PersonListRQ.js +1 -0
  115. package/lib/mjs/rq/person/PersonQueryRQ.d.ts +6 -0
  116. package/lib/mjs/rq/person/PersonQueryRQ.js +1 -0
  117. package/lib/mjs/rq/personProfile/PersonProfileCreateRQ.d.ts +73 -0
  118. package/lib/mjs/rq/personProfile/PersonProfileCreateRQ.js +1 -0
  119. package/lib/mjs/rq/personProfile/PersonProfileListRQ.d.ts +48 -0
  120. package/lib/mjs/rq/personProfile/PersonProfileListRQ.js +1 -0
  121. package/lib/mjs/rq/personProfile/PersonProfileQueryRQ.d.ts +12 -0
  122. package/lib/mjs/rq/personProfile/PersonProfileQueryRQ.js +1 -0
  123. package/package.json +64 -0
  124. package/src/CrmApp.ts +270 -0
  125. package/src/PersonApi.ts +50 -0
  126. package/src/PersonProfileApi.ts +81 -0
  127. package/src/components/index.ts +2 -0
  128. package/src/components/person/PersonTiplist.tsx +75 -0
  129. package/src/dto/person/AddressItem.ts +39 -0
  130. package/src/dto/person/CategoryItem.ts +17 -0
  131. package/src/dto/person/ContactItem.ts +38 -0
  132. package/src/dto/person/MaritalStatus.ts +41 -0
  133. package/src/dto/person/PersonDegree.ts +29 -0
  134. package/src/dto/person/PersonEducation.ts +131 -0
  135. package/src/dto/person/PersonListDto.ts +7 -0
  136. package/src/dto/person/PersonQueryData.ts +28 -0
  137. package/src/dto/person/PersonReadDto.ts +242 -0
  138. package/src/dto/person/PersonTitle.ts +41 -0
  139. package/src/dto/personProfile/PersonProfileKind.ts +29 -0
  140. package/src/dto/personProfile/PersonProfileListData.ts +17 -0
  141. package/src/dto/personProfile/PersonProfileQueryData.ts +50 -0
  142. package/src/dto/personProfile/PersonProfileUpdateReadData.ts +86 -0
  143. package/src/dto/personProfile/PersonProfileViewData.ts +5 -0
  144. package/src/i18n/CrmCulture.ts +21 -0
  145. package/src/i18n/en.json +74 -0
  146. package/src/i18n/zh-Hans.json +74 -0
  147. package/src/i18n/zh-Hant.json +74 -0
  148. package/src/index.ts +30 -0
  149. package/src/rq/person/PersonListRQ.ts +7 -0
  150. package/src/rq/person/PersonQueryRQ.ts +7 -0
  151. package/src/rq/personProfile/PersonProfileCreateRQ.ts +86 -0
  152. package/src/rq/personProfile/PersonProfileListRQ.ts +56 -0
  153. package/src/rq/personProfile/PersonProfileQueryRQ.ts +13 -0
  154. package/tsconfig.cjs.json +20 -0
  155. package/tsconfig.json +20 -0
  156. package/vite.config.mts +12 -0
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PersonEducation = void 0;
4
+ /**
5
+ * Person education
6
+ * 个人学历
7
+ */
8
+ var PersonEducation;
9
+ (function (PersonEducation) {
10
+ /**
11
+ * Primary school
12
+ * 小学
13
+ */
14
+ PersonEducation[PersonEducation["PrimarySchool"] = 1] = "PrimarySchool";
15
+ /**
16
+ * Year 2
17
+ * 小学2年级
18
+ */
19
+ PersonEducation[PersonEducation["PrimarySchool2"] = 2] = "PrimarySchool2";
20
+ /**
21
+ * Year 3
22
+ * 小学3年级
23
+ */
24
+ PersonEducation[PersonEducation["PrimarySchool3"] = 3] = "PrimarySchool3";
25
+ /**
26
+ * Year 4
27
+ * 小学4年级
28
+ */
29
+ PersonEducation[PersonEducation["PrimarySchool4"] = 4] = "PrimarySchool4";
30
+ /**
31
+ * Year 5
32
+ * 小学5年级
33
+ */
34
+ PersonEducation[PersonEducation["PrimarySchool5"] = 5] = "PrimarySchool5";
35
+ /**
36
+ * Year 6
37
+ * 小学6年级
38
+ */
39
+ PersonEducation[PersonEducation["PrimarySchool6"] = 6] = "PrimarySchool6";
40
+ /**
41
+ * Middle school
42
+ * 初中
43
+ */
44
+ PersonEducation[PersonEducation["MiddleSchool"] = 20] = "MiddleSchool";
45
+ /**
46
+ * Year 7
47
+ * 初中1年级
48
+ */
49
+ PersonEducation[PersonEducation["MiddleSchool1"] = 27] = "MiddleSchool1";
50
+ /**
51
+ * Year 8
52
+ * 初中2年级
53
+ */
54
+ PersonEducation[PersonEducation["MiddleSchool2"] = 28] = "MiddleSchool2";
55
+ /**
56
+ * Year 9
57
+ * 初中3年级
58
+ */
59
+ PersonEducation[PersonEducation["MiddleSchool3"] = 29] = "MiddleSchool3";
60
+ /**
61
+ * High school
62
+ * 高中
63
+ */
64
+ PersonEducation[PersonEducation["HighSchool"] = 40] = "HighSchool";
65
+ /**
66
+ * Year 10
67
+ * 高中1年级
68
+ */
69
+ PersonEducation[PersonEducation["HighSchool1"] = 51] = "HighSchool1";
70
+ /**
71
+ * Year 11
72
+ * 高中2年级
73
+ */
74
+ PersonEducation[PersonEducation["HighSchool2"] = 52] = "HighSchool2";
75
+ /**
76
+ * Year 12
77
+ * 高中3年级
78
+ */
79
+ PersonEducation[PersonEducation["HighSchool3"] = 53] = "HighSchool3";
80
+ /**
81
+ * Diploma Graduate
82
+ * 大专毕业
83
+ */
84
+ PersonEducation[PersonEducation["University2"] = 82] = "University2";
85
+ /**
86
+ * Graduated from Five Types of Higher Education (Self-study Exam, Open University, Night University, Party School, Correspondence Course)
87
+ * 五大学历毕业(自考、电大、夜大、党校、函授)
88
+ */
89
+ PersonEducation[PersonEducation["University4"] = 84] = "University4";
90
+ /**
91
+ * University Student
92
+ * 大学在读
93
+ */
94
+ PersonEducation[PersonEducation["University6"] = 86] = "University6";
95
+ /**
96
+ * Bachelor's Graduate (No Degree)
97
+ * 大学本科毕业(无学士学位)
98
+ */
99
+ PersonEducation[PersonEducation["University8"] = 88] = "University8";
100
+ /**
101
+ * Bachelor's Graduate (With Degree)
102
+ * 大学本科毕业且获得学士学位
103
+ */
104
+ PersonEducation[PersonEducation["University10"] = 90] = "University10";
105
+ /**
106
+ * Postgraduate (No Degree)
107
+ * 研究生毕业(无学位证书)
108
+ */
109
+ PersonEducation[PersonEducation["University12"] = 92] = "University12";
110
+ /**
111
+ * Master’s Graduate
112
+ * 硕士学位毕业
113
+ */
114
+ PersonEducation[PersonEducation["University14"] = 94] = "University14";
115
+ })(PersonEducation || (exports.PersonEducation = PersonEducation = {}));
@@ -0,0 +1,6 @@
1
+ import { ContactItem } from "./ContactItem";
2
+ /**
3
+ * Person list data
4
+ * 成员列表数据
5
+ */
6
+ export type PersonListDto = ContactItem & {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import { EntityStatus } from "@etsoo/appscript";
2
+ import { PersonListDto } from "./PersonListDto";
3
+ /**
4
+ * Person query data
5
+ * 成员查询数据
6
+ */
7
+ export type PersonQueryData = PersonListDto & {
8
+ /**
9
+ * Assigned id
10
+ */
11
+ assignedId?: string;
12
+ /**
13
+ * Job title
14
+ */
15
+ jobTitle?: string;
16
+ /**
17
+ * Status
18
+ */
19
+ status: EntityStatus;
20
+ /**
21
+ * Creation
22
+ */
23
+ creation: Date | string;
24
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,206 @@
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
+ * Person private data
11
+ * 人员私有数据
12
+ */
13
+ type PersonPrivateData = {
14
+ /**
15
+ * Gender
16
+ * 性别
17
+ */
18
+ gender?: string;
19
+ /**
20
+ * Birthday
21
+ * 生日
22
+ */
23
+ birthday?: string;
24
+ /**
25
+ * Ethnicity
26
+ * 种族
27
+ */
28
+ ethnicity?: string;
29
+ /**
30
+ * Height in cm
31
+ * 高度(厘米)
32
+ */
33
+ height?: number;
34
+ /**
35
+ * Weight in kg
36
+ * 重量(千克)
37
+ */
38
+ weight?: number;
39
+ /**
40
+ * Marital status
41
+ * 婚姻状况
42
+ */
43
+ maritalStatus?: MaritalStatus;
44
+ /**
45
+ * Education
46
+ * 学历
47
+ */
48
+ education?: PersonEducation;
49
+ /**
50
+ * Education degree
51
+ * 学位
52
+ */
53
+ degree?: PersonDegree;
54
+ /**
55
+ * Political status
56
+ * 政治面貌
57
+ */
58
+ politicalStatus?: string;
59
+ };
60
+ /**
61
+ * Person view data
62
+ * 人员浏览数据
63
+ */
64
+ export type PersonViewData = ContactItem & {
65
+ /**
66
+ * Unique identifier
67
+ * 唯一标识符
68
+ */
69
+ uid: string;
70
+ /**
71
+ * Is legal person (enterprise)
72
+ * 是否为法人(企业)
73
+ */
74
+ isLegalPerson: boolean;
75
+ /**
76
+ * Given name
77
+ * 名
78
+ */
79
+ givenName?: string;
80
+ /**
81
+ * Family name
82
+ * 姓
83
+ */
84
+ familyName?: string;
85
+ /**
86
+ * Latin given name
87
+ * 拉丁名
88
+ */
89
+ latinGivenName?: string;
90
+ /**
91
+ * Latin family name
92
+ * 拉丁姓
93
+ */
94
+ latinFamilyName?: string;
95
+ /**
96
+ * Titles
97
+ * 称谓
98
+ */
99
+ title?: PersonTitle;
100
+ /**
101
+ * Description
102
+ * 描述
103
+ */
104
+ description?: string;
105
+ /**
106
+ * Avatar
107
+ * 头像
108
+ */
109
+ avatar?: string;
110
+ /**
111
+ * Job title
112
+ * 工作头衔
113
+ */
114
+ jobTitle?: string;
115
+ /**
116
+ * Assigned id
117
+ * 分配的编号
118
+ */
119
+ assignedId?: string;
120
+ /**
121
+ * Categories
122
+ * 类目
123
+ */
124
+ categories?: CategoryItem[];
125
+ /**
126
+ * Keywords
127
+ * 关键词
128
+ */
129
+ keywords?: string[];
130
+ /**
131
+ * Addresses
132
+ * 地址
133
+ */
134
+ addresses?: AddressItem[];
135
+ /**
136
+ * Report to (person.id)
137
+ * 汇报对象
138
+ */
139
+ reportTo?: number;
140
+ /**
141
+ * Report to name
142
+ * 汇报对象姓名
143
+ */
144
+ reportToName?: string;
145
+ /**
146
+ * Creation time
147
+ * 创建时间
148
+ */
149
+ creation: string;
150
+ /**
151
+ * Status
152
+ * 状况
153
+ */
154
+ status: EntityStatus;
155
+ /**
156
+ * Query keyword
157
+ * 查询关键字
158
+ */
159
+ queryKeyword?: string;
160
+ /**
161
+ * Regions
162
+ * 地区
163
+ */
164
+ regions?: string[];
165
+ /**
166
+ * Currencies
167
+ * 币种
168
+ */
169
+ currencies?: string[];
170
+ /**
171
+ * Cultures
172
+ * 文化
173
+ */
174
+ cultures?: string[];
175
+ /**
176
+ * JSON data
177
+ * JSON 数据
178
+ */
179
+ data?: string;
180
+ /**
181
+ * User role, permission level
182
+ * 用户角色,权限等级
183
+ */
184
+ userRole?: UserRole;
185
+ /**
186
+ * Inviter
187
+ * 邀请人编号
188
+ */
189
+ inviterName?: string;
190
+ /**
191
+ * Expiry time
192
+ * 到期时间
193
+ */
194
+ expiry?: string;
195
+ /**
196
+ * Refresh time
197
+ * 刷新时间
198
+ */
199
+ refreshTime: string;
200
+ /**
201
+ * Private data
202
+ * 私有数据
203
+ */
204
+ privateData?: PersonPrivateData;
205
+ };
206
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Titles
3
+ * 称谓
4
+ */
5
+ export declare enum PersonTitle {
6
+ /**
7
+ * Mr.
8
+ * 先生
9
+ */
10
+ MR = 1,
11
+ /**
12
+ * Ms.
13
+ * 女士
14
+ */
15
+ MS = 2,
16
+ /**
17
+ * Mrs.
18
+ * 夫人
19
+ */
20
+ MRS = 3,
21
+ /**
22
+ * Miss
23
+ * 小姐
24
+ */
25
+ Miss = 4,
26
+ /**
27
+ * Dr.
28
+ * 博士
29
+ */
30
+ DR = 11,
31
+ /**
32
+ * Prof.
33
+ * 教授
34
+ */
35
+ Prof = 12
36
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PersonTitle = void 0;
4
+ /**
5
+ * Titles
6
+ * 称谓
7
+ */
8
+ var PersonTitle;
9
+ (function (PersonTitle) {
10
+ /**
11
+ * Mr.
12
+ * 先生
13
+ */
14
+ PersonTitle[PersonTitle["MR"] = 1] = "MR";
15
+ /**
16
+ * Ms.
17
+ * 女士
18
+ */
19
+ PersonTitle[PersonTitle["MS"] = 2] = "MS";
20
+ /**
21
+ * Mrs.
22
+ * 夫人
23
+ */
24
+ PersonTitle[PersonTitle["MRS"] = 3] = "MRS";
25
+ /**
26
+ * Miss
27
+ * 小姐
28
+ */
29
+ PersonTitle[PersonTitle["Miss"] = 4] = "Miss";
30
+ /**
31
+ * Dr.
32
+ * 博士
33
+ */
34
+ PersonTitle[PersonTitle["DR"] = 11] = "DR";
35
+ /**
36
+ * Prof.
37
+ * 教授
38
+ */
39
+ PersonTitle[PersonTitle["Prof"] = 12] = "Prof";
40
+ })(PersonTitle || (exports.PersonTitle = PersonTitle = {}));
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Person profile kind
3
+ * 个人资料种类
4
+ */
5
+ export declare enum PersonProfileKind {
6
+ /**
7
+ * Normal
8
+ * 默认
9
+ */
10
+ Normal = 1,
11
+ /**
12
+ * Schedule
13
+ * 日程
14
+ */
15
+ Schedule = 106,
16
+ /**
17
+ * Finance
18
+ * 财务
19
+ */
20
+ Finance = 108,
21
+ /**
22
+ * Agile
23
+ * 敏捷管理
24
+ */
25
+ Agile = 110
26
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PersonProfileKind = void 0;
4
+ /**
5
+ * Person profile kind
6
+ * 个人资料种类
7
+ */
8
+ var PersonProfileKind;
9
+ (function (PersonProfileKind) {
10
+ /**
11
+ * Normal
12
+ * 默认
13
+ */
14
+ PersonProfileKind[PersonProfileKind["Normal"] = 1] = "Normal";
15
+ /**
16
+ * Schedule
17
+ * 日程
18
+ */
19
+ PersonProfileKind[PersonProfileKind["Schedule"] = 106] = "Schedule";
20
+ /**
21
+ * Finance
22
+ * 财务
23
+ */
24
+ PersonProfileKind[PersonProfileKind["Finance"] = 108] = "Finance";
25
+ /**
26
+ * Agile
27
+ * 敏捷管理
28
+ */
29
+ PersonProfileKind[PersonProfileKind["Agile"] = 110] = "Agile";
30
+ })(PersonProfileKind || (exports.PersonProfileKind = PersonProfileKind = {}));
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Person profile list data
3
+ * 人员档案列表数据
4
+ */
5
+ export type PersonProfileListData = {
6
+ /**
7
+ * Id
8
+ * 编号
9
+ */
10
+ id: number;
11
+ /**
12
+ * Title
13
+ * 标题
14
+ */
15
+ title: string;
16
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,43 @@
1
+ import { EntityStatus } from "@etsoo/appscript";
2
+ import { PersonProfileKind } from "./PersonProfileKind";
3
+ /**
4
+ * Person profile query data
5
+ * 人员档案查询数据
6
+ */
7
+ export type PersonProfileQueryData = {
8
+ /**
9
+ * Id
10
+ * 编号
11
+ */
12
+ id: number;
13
+ /**
14
+ * Kind
15
+ * 类型
16
+ */
17
+ kind?: PersonProfileKind;
18
+ /**
19
+ * Title
20
+ * 标题
21
+ */
22
+ title: string;
23
+ /**
24
+ * Happen date
25
+ * 发生日期
26
+ */
27
+ happenDate?: string;
28
+ /**
29
+ * Happen date end
30
+ * 发生日期结束
31
+ */
32
+ happenDateEnd?: string;
33
+ /**
34
+ * Status
35
+ * 状况
36
+ */
37
+ status: EntityStatus;
38
+ /**
39
+ * Creation
40
+ * 登记时间
41
+ */
42
+ creation: string;
43
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,73 @@
1
+ import { EntityStatus } from "@etsoo/appscript";
2
+ import { PersonProfileKind } from "./PersonProfileKind";
3
+ /**
4
+ * Person profile update read data
5
+ * 个人档案更新读取数据
6
+ */
7
+ export type PersonProfileUpdateReadData = {
8
+ /**
9
+ * Id
10
+ * 编号
11
+ */
12
+ id: number;
13
+ /**
14
+ * Person id
15
+ * 个人编号
16
+ */
17
+ personId: number;
18
+ /**
19
+ * Other participants
20
+ * 其他参与者
21
+ */
22
+ persons?: number[];
23
+ /**
24
+ * Order id
25
+ * 订单编号
26
+ */
27
+ orderId?: number;
28
+ /**
29
+ * Kind
30
+ * 类型
31
+ */
32
+ kind: PersonProfileKind;
33
+ /**
34
+ * Title
35
+ * 标题
36
+ */
37
+ title: string;
38
+ /**
39
+ * Comment
40
+ * 评价
41
+ */
42
+ comment: string;
43
+ /**
44
+ * Location
45
+ * 位置
46
+ */
47
+ location?: string;
48
+ /**
49
+ * Location id
50
+ * 位置编号
51
+ */
52
+ locationId?: number;
53
+ /**
54
+ * Happen date
55
+ * 发生日期
56
+ */
57
+ happenDate: string;
58
+ /**
59
+ * Happen date end
60
+ * 发生日期结束
61
+ */
62
+ happenDateEnd?: string;
63
+ /**
64
+ * Status
65
+ * 状态
66
+ */
67
+ status: EntityStatus;
68
+ /**
69
+ * JSON data
70
+ * JSON 数据
71
+ */
72
+ data?: string;
73
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Person profile view data
3
+ * 个人档案查看数据
4
+ */
5
+ export type PersonProfileViewData = {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });