@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,244 @@
1
+ /**
2
+ * CRM culture
3
+ */
4
+ export declare namespace CrmCulture {
5
+ /**
6
+ * Get en neutral culture
7
+ */
8
+ const en: () => Promise<{
9
+ default: {
10
+ assets: string;
11
+ contacts: string;
12
+ cultures: string;
13
+ currencies: string;
14
+ customers: string;
15
+ degreeBachelor: string;
16
+ degreeDoctor: string;
17
+ degreeMaster: string;
18
+ degreePreBachelor: string;
19
+ educationHighSchool: string;
20
+ educationHighSchool1: string;
21
+ educationHighSchool2: string;
22
+ educationHighSchool3: string;
23
+ educationMiddleSchool: string;
24
+ educationMiddleSchool1: string;
25
+ educationMiddleSchool2: string;
26
+ educationMiddleSchool3: string;
27
+ educationPrimarySchool: string;
28
+ educationPrimarySchool2: string;
29
+ educationPrimarySchool3: string;
30
+ educationPrimarySchool4: string;
31
+ educationPrimarySchool5: string;
32
+ educationPrimarySchool6: string;
33
+ educationUniversity10: string;
34
+ educationUniversity12: string;
35
+ educationUniversity14: string;
36
+ educationUniversity2: string;
37
+ educationUniversity4: string;
38
+ educationUniversity6: string;
39
+ educationUniversity8: string;
40
+ employees: string;
41
+ idUser: string;
42
+ isLegalPerson: string;
43
+ isOrg: string;
44
+ jobTitle: string;
45
+ latinName: string;
46
+ maritalDivorced: string;
47
+ maritalMarried: string;
48
+ maritalPartnership: string;
49
+ maritalSeparated: string;
50
+ maritalSingle: string;
51
+ maritalWidowed: string;
52
+ offerings: string;
53
+ orders: string;
54
+ personBirthday: string;
55
+ personDegree: string;
56
+ personEducation: string;
57
+ personEthnicity: string;
58
+ personFemale: string;
59
+ personGender: string;
60
+ personMale: string;
61
+ personMaritalStatus: string;
62
+ personName: string;
63
+ personTitle: string;
64
+ personTitleDR: string;
65
+ personTitleMR: string;
66
+ personTitleMRS: string;
67
+ personTitleMS: string;
68
+ personTitleMiss: string;
69
+ personTitleProf: string;
70
+ personHeight: string;
71
+ personWeight: string;
72
+ politicalStatus: string;
73
+ profiles: string;
74
+ purchases: string;
75
+ products: string;
76
+ regions: string;
77
+ reports: string;
78
+ stockIn: string;
79
+ stockOut: string;
80
+ system: string;
81
+ suppliers: string;
82
+ };
83
+ }>;
84
+ /**
85
+ * Get zh-Hans neutral cultrue
86
+ * @returns Full culture
87
+ */
88
+ const zhHans: () => Promise<{
89
+ default: {
90
+ assets: string;
91
+ contacts: string;
92
+ cultures: string;
93
+ currencies: string;
94
+ customers: string;
95
+ degreeBachelor: string;
96
+ degreeDoctor: string;
97
+ degreeMaster: string;
98
+ degreePreBachelor: string;
99
+ educationHighSchool: string;
100
+ educationHighSchool1: string;
101
+ educationHighSchool2: string;
102
+ educationHighSchool3: string;
103
+ educationMiddleSchool: string;
104
+ educationMiddleSchool1: string;
105
+ educationMiddleSchool2: string;
106
+ educationMiddleSchool3: string;
107
+ educationPrimarySchool: string;
108
+ educationPrimarySchool2: string;
109
+ educationPrimarySchool3: string;
110
+ educationPrimarySchool4: string;
111
+ educationPrimarySchool5: string;
112
+ educationPrimarySchool6: string;
113
+ educationUniversity10: string;
114
+ educationUniversity12: string;
115
+ educationUniversity14: string;
116
+ educationUniversity2: string;
117
+ educationUniversity4: string;
118
+ educationUniversity6: string;
119
+ educationUniversity8: string;
120
+ employees: string;
121
+ idUser: string;
122
+ isLegalPerson: string;
123
+ isOrg: string;
124
+ jobTitle: string;
125
+ latinName: string;
126
+ maritalDivorced: string;
127
+ maritalMarried: string;
128
+ maritalPartnership: string;
129
+ maritalSeparated: string;
130
+ maritalSingle: string;
131
+ maritalWidowed: string;
132
+ offerings: string;
133
+ orders: string;
134
+ personBirthday: string;
135
+ personDegree: string;
136
+ personEducation: string;
137
+ personEthnicity: string;
138
+ personFemale: string;
139
+ personGender: string;
140
+ personMale: string;
141
+ personMaritalStatus: string;
142
+ personName: string;
143
+ personTitle: string;
144
+ personTitleDR: string;
145
+ personTitleMR: string;
146
+ personTitleMRS: string;
147
+ personTitleMS: string;
148
+ personTitleMiss: string;
149
+ personTitleProf: string;
150
+ personHeight: string;
151
+ personWeight: string;
152
+ politicalStatus: string;
153
+ profiles: string;
154
+ products: string;
155
+ purchases: string;
156
+ regions: string;
157
+ reports: string;
158
+ stockIn: string;
159
+ stockOut: string;
160
+ system: string;
161
+ suppliers: string;
162
+ };
163
+ }>;
164
+ /**
165
+ * Get zh-Hant neutral cultrue
166
+ * @returns Full culture
167
+ */
168
+ const zhHant: () => Promise<{
169
+ default: {
170
+ assets: string;
171
+ contacts: string;
172
+ cultures: string;
173
+ currencies: string;
174
+ customers: string;
175
+ degreeBachelor: string;
176
+ degreeDoctor: string;
177
+ degreeMaster: string;
178
+ degreePreBachelor: string;
179
+ educationHighSchool: string;
180
+ educationHighSchool1: string;
181
+ educationHighSchool2: string;
182
+ educationHighSchool3: string;
183
+ educationMiddleSchool: string;
184
+ educationMiddleSchool1: string;
185
+ educationMiddleSchool2: string;
186
+ educationMiddleSchool3: string;
187
+ educationPrimarySchool: string;
188
+ educationPrimarySchool2: string;
189
+ educationPrimarySchool3: string;
190
+ educationPrimarySchool4: string;
191
+ educationPrimarySchool5: string;
192
+ educationPrimarySchool6: string;
193
+ educationUniversity10: string;
194
+ educationUniversity12: string;
195
+ educationUniversity14: string;
196
+ educationUniversity2: string;
197
+ educationUniversity4: string;
198
+ educationUniversity6: string;
199
+ educationUniversity8: string;
200
+ employees: string;
201
+ idUser: string;
202
+ isLegalPerson: string;
203
+ isOrg: string;
204
+ jobTitle: string;
205
+ latinName: string;
206
+ maritalDivorced: string;
207
+ maritalMarried: string;
208
+ maritalPartnership: string;
209
+ maritalSeparated: string;
210
+ maritalSingle: string;
211
+ maritalWidowed: string;
212
+ offerings: string;
213
+ orders: string;
214
+ personBirthday: string;
215
+ personDegree: string;
216
+ personEducation: string;
217
+ personEthnicity: string;
218
+ personFemale: string;
219
+ personGender: string;
220
+ personMale: string;
221
+ personMaritalStatus: string;
222
+ personName: string;
223
+ personTitle: string;
224
+ personTitleDR: string;
225
+ personTitleMR: string;
226
+ personTitleMRS: string;
227
+ personTitleMS: string;
228
+ personTitleMiss: string;
229
+ personTitleProf: string;
230
+ personHeight: string;
231
+ personWeight: string;
232
+ politicalStatus: string;
233
+ profiles: string;
234
+ products: string;
235
+ purchases: string;
236
+ regions: string;
237
+ reports: string;
238
+ stockIn: string;
239
+ stockOut: string;
240
+ system: string;
241
+ suppliers: string;
242
+ };
243
+ }>;
244
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CrmCulture = void 0;
4
+ /**
5
+ * CRM culture
6
+ */
7
+ var CrmCulture;
8
+ (function (CrmCulture) {
9
+ /**
10
+ * Get en neutral culture
11
+ */
12
+ CrmCulture.en = () => import("./en.json");
13
+ /**
14
+ * Get zh-Hans neutral cultrue
15
+ * @returns Full culture
16
+ */
17
+ CrmCulture.zhHans = () => import("./zh-Hans.json");
18
+ /**
19
+ * Get zh-Hant neutral cultrue
20
+ * @returns Full culture
21
+ */
22
+ CrmCulture.zhHant = () => import("./zh-Hant.json");
23
+ })(CrmCulture || (exports.CrmCulture = CrmCulture = {}));
@@ -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
+ }
@@ -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
+ }
@@ -0,0 +1,20 @@
1
+ export * from "./dto/person/AddressItem";
2
+ export * from "./dto/person/CategoryItem";
3
+ export * from "./dto/person/ContactItem";
4
+ export * from "./dto/person/PersonListDto";
5
+ export * from "./dto/person/PersonQueryData";
6
+ export * from "./dto/person/PersonReadDto";
7
+ export * from "./rq/person/PersonListRQ";
8
+ export * from "./rq/person/PersonQueryRQ";
9
+ export * from "./dto/personProfile/PersonProfileKind";
10
+ export * from "./dto/personProfile/PersonProfileListData";
11
+ export * from "./dto/personProfile/PersonProfileQueryData";
12
+ export * from "./dto/personProfile/PersonProfileUpdateReadData";
13
+ export * from "./dto/personProfile/PersonProfileViewData";
14
+ export * from "./rq/personProfile/PersonProfileCreateRQ";
15
+ export * from "./rq/personProfile/PersonProfileListRQ";
16
+ export * from "./rq/personProfile/PersonProfileQueryRQ";
17
+ export * from "./i18n/CrmCulture";
18
+ export * from "./PersonApi";
19
+ export * from "./PersonProfileApi";
20
+ export * from "./CrmApp";
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Person
18
+ __exportStar(require("./dto/person/AddressItem"), exports);
19
+ __exportStar(require("./dto/person/CategoryItem"), exports);
20
+ __exportStar(require("./dto/person/ContactItem"), exports);
21
+ __exportStar(require("./dto/person/PersonListDto"), exports);
22
+ __exportStar(require("./dto/person/PersonQueryData"), exports);
23
+ __exportStar(require("./dto/person/PersonReadDto"), exports);
24
+ __exportStar(require("./rq/person/PersonListRQ"), exports);
25
+ __exportStar(require("./rq/person/PersonQueryRQ"), exports);
26
+ // PersonProfile
27
+ __exportStar(require("./dto/personProfile/PersonProfileKind"), exports);
28
+ __exportStar(require("./dto/personProfile/PersonProfileListData"), exports);
29
+ __exportStar(require("./dto/personProfile/PersonProfileQueryData"), exports);
30
+ __exportStar(require("./dto/personProfile/PersonProfileUpdateReadData"), exports);
31
+ __exportStar(require("./dto/personProfile/PersonProfileViewData"), exports);
32
+ __exportStar(require("./rq/personProfile/PersonProfileCreateRQ"), exports);
33
+ __exportStar(require("./rq/personProfile/PersonProfileListRQ"), exports);
34
+ __exportStar(require("./rq/personProfile/PersonProfileQueryRQ"), exports);
35
+ // i18n
36
+ __exportStar(require("./i18n/CrmCulture"), exports);
37
+ // APIs
38
+ __exportStar(require("./PersonApi"), exports);
39
+ __exportStar(require("./PersonProfileApi"), exports);
40
+ __exportStar(require("./CrmApp"), exports);
@@ -0,0 +1,6 @@
1
+ import { QueryRQ } from "@etsoo/appscript";
2
+ /**
3
+ * Person list request data
4
+ * 成员列表请求数据
5
+ */
6
+ export type PersonListRQ = QueryRQ & {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { PersonListRQ } from "./PersonListRQ";
2
+ /**
3
+ * Person query request data
4
+ * 成员查询请求数据
5
+ */
6
+ export type PersonQueryRQ = PersonListRQ & {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,73 @@
1
+ import { EntityStatus, UserRole } from "@etsoo/appscript";
2
+ import { PersonProfileKind } from "../../dto/personProfile/PersonProfileKind";
3
+ /**
4
+ * Person profile create request data
5
+ * 人员档案创建请求数据
6
+ */
7
+ export type PersonProfileCreateRQ = {
8
+ /**
9
+ * Person id
10
+ * 人员编号
11
+ */
12
+ personId: number;
13
+ /**
14
+ * Other participants
15
+ * 其他参与者
16
+ */
17
+ persons?: number[];
18
+ /**
19
+ * Order / purchase id
20
+ * 订单 / 采购编号
21
+ */
22
+ orderId?: number;
23
+ /**
24
+ * Kind
25
+ * 类型
26
+ */
27
+ kind: PersonProfileKind;
28
+ /**
29
+ * Title
30
+ * 标题
31
+ */
32
+ title: string;
33
+ /**
34
+ * Comment
35
+ * 评论
36
+ */
37
+ comment: string;
38
+ /**
39
+ * Location
40
+ * 位置
41
+ */
42
+ location?: string;
43
+ /**
44
+ * Location id
45
+ * 位置编号
46
+ */
47
+ locationId?: number;
48
+ /**
49
+ * Happen date
50
+ * 发生日期
51
+ */
52
+ happenDate?: string;
53
+ /**
54
+ * Happen date end
55
+ * 发生日期结束
56
+ */
57
+ happenDateEnd?: string;
58
+ /**
59
+ * User role for privacy
60
+ * 控制隐私的用户角色
61
+ */
62
+ userRole?: UserRole;
63
+ /**
64
+ * JSON data
65
+ * JSON 数据
66
+ */
67
+ data?: string;
68
+ /**
69
+ * Status
70
+ * 状况
71
+ */
72
+ status: EntityStatus;
73
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });