@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,36 @@
1
+ /**
2
+ * Address kind
3
+ * 地址类型
4
+ */
5
+ declare enum AddressKind {
6
+ Office = 1,
7
+ Home = 2,
8
+ Other = 9
9
+ }
10
+ /**
11
+ * Address item
12
+ * 地址项
13
+ */
14
+ export type AddressItem = {
15
+ /**
16
+ * Id
17
+ * 编号
18
+ */
19
+ id: number;
20
+ /**
21
+ * Kind
22
+ * 类型
23
+ */
24
+ kind: AddressKind;
25
+ /**
26
+ * Name
27
+ * 名称
28
+ */
29
+ name: string;
30
+ /**
31
+ * Formatted address
32
+ * 格式化地址
33
+ */
34
+ formattedAddress: string;
35
+ };
36
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Address kind
3
+ * 地址类型
4
+ */
5
+ var AddressKind;
6
+ (function (AddressKind) {
7
+ AddressKind[AddressKind["Office"] = 1] = "Office";
8
+ AddressKind[AddressKind["Home"] = 2] = "Home";
9
+ AddressKind[AddressKind["Other"] = 9] = "Other";
10
+ })(AddressKind || (AddressKind = {}));
11
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Category item
3
+ * 类目项
4
+ */
5
+ export type CategoryItem = {
6
+ /**
7
+ * Id
8
+ * 编号
9
+ */
10
+ id: number;
11
+ /**
12
+ * Names
13
+ * 名称数组
14
+ */
15
+ names: string[];
16
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ import { IdentityTypeFlags } from "@etsoo/appscript";
2
+ /**
3
+ * Identity type data
4
+ * 身份类型数据
5
+ */
6
+ export type IdentityTypeData = {
7
+ /**
8
+ * Identity type
9
+ */
10
+ identityType: IdentityTypeFlags;
11
+ /**
12
+ * Is organization
13
+ */
14
+ isOrg: boolean;
15
+ };
16
+ /**
17
+ * Contact item
18
+ * 联系人项
19
+ */
20
+ export type ContactItem = IdentityTypeData & {
21
+ /**
22
+ * Id
23
+ */
24
+ id: number;
25
+ /**
26
+ * Name
27
+ */
28
+ name: string;
29
+ preferredName?: string;
30
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Person marital status
3
+ * 个人婚姻状况
4
+ */
5
+ export declare enum MaritalStatus {
6
+ /**
7
+ * Single
8
+ * 未婚
9
+ */
10
+ Single = 1,
11
+ /**
12
+ * Married
13
+ * 已婚
14
+ */
15
+ Married = 2,
16
+ /**
17
+ * Partnership
18
+ * 同居伴侣
19
+ */
20
+ Partnership = 3,
21
+ /**
22
+ * Separated
23
+ * 分居
24
+ */
25
+ Separated = 4,
26
+ /**
27
+ * Divorced
28
+ * 离异
29
+ */
30
+ Divorced = 5,
31
+ /**
32
+ * Widowed
33
+ * 丧偶
34
+ */
35
+ Widowed = 6
36
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Person marital status
3
+ * 个人婚姻状况
4
+ */
5
+ export var MaritalStatus;
6
+ (function (MaritalStatus) {
7
+ /**
8
+ * Single
9
+ * 未婚
10
+ */
11
+ MaritalStatus[MaritalStatus["Single"] = 1] = "Single";
12
+ /**
13
+ * Married
14
+ * 已婚
15
+ */
16
+ MaritalStatus[MaritalStatus["Married"] = 2] = "Married";
17
+ /**
18
+ * Partnership
19
+ * 同居伴侣
20
+ */
21
+ MaritalStatus[MaritalStatus["Partnership"] = 3] = "Partnership";
22
+ /**
23
+ * Separated
24
+ * 分居
25
+ */
26
+ MaritalStatus[MaritalStatus["Separated"] = 4] = "Separated";
27
+ /**
28
+ * Divorced
29
+ * 离异
30
+ */
31
+ MaritalStatus[MaritalStatus["Divorced"] = 5] = "Divorced";
32
+ /**
33
+ * Widowed
34
+ * 丧偶
35
+ */
36
+ MaritalStatus[MaritalStatus["Widowed"] = 6] = "Widowed";
37
+ })(MaritalStatus || (MaritalStatus = {}));
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Person degree
3
+ * 个人学位
4
+ */
5
+ export declare enum PersonDegree {
6
+ /**
7
+ * Pre-bachelor
8
+ * 副学士
9
+ */
10
+ PreBachelor = 1,
11
+ /**
12
+ * Bachelor
13
+ * 学士
14
+ */
15
+ Bachelor = 2,
16
+ /**
17
+ * Master
18
+ * 硕士
19
+ */
20
+ Master = 3,
21
+ /**
22
+ * Doctor
23
+ * 博士
24
+ */
25
+ Doctor = 4
26
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Person degree
3
+ * 个人学位
4
+ */
5
+ export var PersonDegree;
6
+ (function (PersonDegree) {
7
+ /**
8
+ * Pre-bachelor
9
+ * 副学士
10
+ */
11
+ PersonDegree[PersonDegree["PreBachelor"] = 1] = "PreBachelor";
12
+ /**
13
+ * Bachelor
14
+ * 学士
15
+ */
16
+ PersonDegree[PersonDegree["Bachelor"] = 2] = "Bachelor";
17
+ /**
18
+ * Master
19
+ * 硕士
20
+ */
21
+ PersonDegree[PersonDegree["Master"] = 3] = "Master";
22
+ /**
23
+ * Doctor
24
+ * 博士
25
+ */
26
+ PersonDegree[PersonDegree["Doctor"] = 4] = "Doctor";
27
+ })(PersonDegree || (PersonDegree = {}));
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Person education
3
+ * 个人学历
4
+ */
5
+ export declare enum PersonEducation {
6
+ /**
7
+ * Primary school
8
+ * 小学
9
+ */
10
+ PrimarySchool = 1,
11
+ /**
12
+ * Year 2
13
+ * 小学2年级
14
+ */
15
+ PrimarySchool2 = 2,
16
+ /**
17
+ * Year 3
18
+ * 小学3年级
19
+ */
20
+ PrimarySchool3 = 3,
21
+ /**
22
+ * Year 4
23
+ * 小学4年级
24
+ */
25
+ PrimarySchool4 = 4,
26
+ /**
27
+ * Year 5
28
+ * 小学5年级
29
+ */
30
+ PrimarySchool5 = 5,
31
+ /**
32
+ * Year 6
33
+ * 小学6年级
34
+ */
35
+ PrimarySchool6 = 6,
36
+ /**
37
+ * Middle school
38
+ * 初中
39
+ */
40
+ MiddleSchool = 20,
41
+ /**
42
+ * Year 7
43
+ * 初中1年级
44
+ */
45
+ MiddleSchool1 = 27,
46
+ /**
47
+ * Year 8
48
+ * 初中2年级
49
+ */
50
+ MiddleSchool2 = 28,
51
+ /**
52
+ * Year 9
53
+ * 初中3年级
54
+ */
55
+ MiddleSchool3 = 29,
56
+ /**
57
+ * High school
58
+ * 高中
59
+ */
60
+ HighSchool = 40,
61
+ /**
62
+ * Year 10
63
+ * 高中1年级
64
+ */
65
+ HighSchool1 = 51,
66
+ /**
67
+ * Year 11
68
+ * 高中2年级
69
+ */
70
+ HighSchool2 = 52,
71
+ /**
72
+ * Year 12
73
+ * 高中3年级
74
+ */
75
+ HighSchool3 = 53,
76
+ /**
77
+ * Diploma Graduate
78
+ * 大专毕业
79
+ */
80
+ University2 = 82,
81
+ /**
82
+ * Graduated from Five Types of Higher Education (Self-study Exam, Open University, Night University, Party School, Correspondence Course)
83
+ * 五大学历毕业(自考、电大、夜大、党校、函授)
84
+ */
85
+ University4 = 84,
86
+ /**
87
+ * University Student
88
+ * 大学在读
89
+ */
90
+ University6 = 86,
91
+ /**
92
+ * Bachelor's Graduate (No Degree)
93
+ * 大学本科毕业(无学士学位)
94
+ */
95
+ University8 = 88,
96
+ /**
97
+ * Bachelor's Graduate (With Degree)
98
+ * 大学本科毕业且获得学士学位
99
+ */
100
+ University10 = 90,
101
+ /**
102
+ * Postgraduate (No Degree)
103
+ * 研究生毕业(无学位证书)
104
+ */
105
+ University12 = 92,
106
+ /**
107
+ * Master’s Graduate
108
+ * 硕士学位毕业
109
+ */
110
+ University14 = 94
111
+ }
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Person education
3
+ * 个人学历
4
+ */
5
+ export var PersonEducation;
6
+ (function (PersonEducation) {
7
+ /**
8
+ * Primary school
9
+ * 小学
10
+ */
11
+ PersonEducation[PersonEducation["PrimarySchool"] = 1] = "PrimarySchool";
12
+ /**
13
+ * Year 2
14
+ * 小学2年级
15
+ */
16
+ PersonEducation[PersonEducation["PrimarySchool2"] = 2] = "PrimarySchool2";
17
+ /**
18
+ * Year 3
19
+ * 小学3年级
20
+ */
21
+ PersonEducation[PersonEducation["PrimarySchool3"] = 3] = "PrimarySchool3";
22
+ /**
23
+ * Year 4
24
+ * 小学4年级
25
+ */
26
+ PersonEducation[PersonEducation["PrimarySchool4"] = 4] = "PrimarySchool4";
27
+ /**
28
+ * Year 5
29
+ * 小学5年级
30
+ */
31
+ PersonEducation[PersonEducation["PrimarySchool5"] = 5] = "PrimarySchool5";
32
+ /**
33
+ * Year 6
34
+ * 小学6年级
35
+ */
36
+ PersonEducation[PersonEducation["PrimarySchool6"] = 6] = "PrimarySchool6";
37
+ /**
38
+ * Middle school
39
+ * 初中
40
+ */
41
+ PersonEducation[PersonEducation["MiddleSchool"] = 20] = "MiddleSchool";
42
+ /**
43
+ * Year 7
44
+ * 初中1年级
45
+ */
46
+ PersonEducation[PersonEducation["MiddleSchool1"] = 27] = "MiddleSchool1";
47
+ /**
48
+ * Year 8
49
+ * 初中2年级
50
+ */
51
+ PersonEducation[PersonEducation["MiddleSchool2"] = 28] = "MiddleSchool2";
52
+ /**
53
+ * Year 9
54
+ * 初中3年级
55
+ */
56
+ PersonEducation[PersonEducation["MiddleSchool3"] = 29] = "MiddleSchool3";
57
+ /**
58
+ * High school
59
+ * 高中
60
+ */
61
+ PersonEducation[PersonEducation["HighSchool"] = 40] = "HighSchool";
62
+ /**
63
+ * Year 10
64
+ * 高中1年级
65
+ */
66
+ PersonEducation[PersonEducation["HighSchool1"] = 51] = "HighSchool1";
67
+ /**
68
+ * Year 11
69
+ * 高中2年级
70
+ */
71
+ PersonEducation[PersonEducation["HighSchool2"] = 52] = "HighSchool2";
72
+ /**
73
+ * Year 12
74
+ * 高中3年级
75
+ */
76
+ PersonEducation[PersonEducation["HighSchool3"] = 53] = "HighSchool3";
77
+ /**
78
+ * Diploma Graduate
79
+ * 大专毕业
80
+ */
81
+ PersonEducation[PersonEducation["University2"] = 82] = "University2";
82
+ /**
83
+ * Graduated from Five Types of Higher Education (Self-study Exam, Open University, Night University, Party School, Correspondence Course)
84
+ * 五大学历毕业(自考、电大、夜大、党校、函授)
85
+ */
86
+ PersonEducation[PersonEducation["University4"] = 84] = "University4";
87
+ /**
88
+ * University Student
89
+ * 大学在读
90
+ */
91
+ PersonEducation[PersonEducation["University6"] = 86] = "University6";
92
+ /**
93
+ * Bachelor's Graduate (No Degree)
94
+ * 大学本科毕业(无学士学位)
95
+ */
96
+ PersonEducation[PersonEducation["University8"] = 88] = "University8";
97
+ /**
98
+ * Bachelor's Graduate (With Degree)
99
+ * 大学本科毕业且获得学士学位
100
+ */
101
+ PersonEducation[PersonEducation["University10"] = 90] = "University10";
102
+ /**
103
+ * Postgraduate (No Degree)
104
+ * 研究生毕业(无学位证书)
105
+ */
106
+ PersonEducation[PersonEducation["University12"] = 92] = "University12";
107
+ /**
108
+ * Master’s Graduate
109
+ * 硕士学位毕业
110
+ */
111
+ PersonEducation[PersonEducation["University14"] = 94] = "University14";
112
+ })(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 @@
1
+ export {};
@@ -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 @@
1
+ export {};
@@ -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 @@
1
+ export {};