@acorex-platform/module-person-core-server 0.0.15 → 2.0.0-next.42

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 (246) hide show
  1. package/contracts/src/contact-assignment.actions.js.map +1 -1
  2. package/contracts/src/contact-assignment.utils.js +3 -2
  3. package/contracts/src/contact-assignment.utils.js.map +1 -1
  4. package/contracts/src/entities/contact-assignment/contact-assignment.entity.js +13 -0
  5. package/contracts/src/entities/contact-assignment/contact-assignment.entity.js.map +1 -1
  6. package/contracts/src/entities/contact-assignment/contact-assignment.types.js.map +1 -1
  7. package/contracts/src/entities/contact-assignment/index.d.ts +0 -1
  8. package/contracts/src/entities/contact-assignment/index.js +0 -1
  9. package/contracts/src/entities/contact-assignment/index.js.map +1 -1
  10. package/contracts/src/entities/contact-role/contact-role.entity.js +44 -40
  11. package/contracts/src/entities/contact-role/contact-role.entity.js.map +1 -1
  12. package/contracts/src/entities/contact-role/contact-role.types.d.ts +7 -1
  13. package/contracts/src/entities/contact-role/contact-role.types.js.map +1 -1
  14. package/contracts/src/entities/contact-role/index.d.ts +0 -1
  15. package/contracts/src/entities/contact-role/index.js +0 -1
  16. package/contracts/src/entities/contact-role/index.js.map +1 -1
  17. package/contracts/src/entities/education-level/education-level.entity.js +12 -0
  18. package/contracts/src/entities/education-level/education-level.entity.js.map +1 -1
  19. package/contracts/src/entities/education-level/education-level.types.js.map +1 -1
  20. package/contracts/src/entities/education-level/index.d.ts +0 -1
  21. package/contracts/src/entities/education-level/index.js +0 -1
  22. package/contracts/src/entities/education-level/index.js.map +1 -1
  23. package/contracts/src/entities/gender/gender.entity.js +12 -0
  24. package/contracts/src/entities/gender/gender.entity.js.map +1 -1
  25. package/contracts/src/entities/gender/gender.types.js.map +1 -1
  26. package/contracts/src/entities/gender/index.d.ts +0 -1
  27. package/contracts/src/entities/gender/index.js +0 -1
  28. package/contracts/src/entities/gender/index.js.map +1 -1
  29. package/contracts/src/entities/index.js.map +1 -1
  30. package/contracts/src/entities/marital-status/index.d.ts +0 -1
  31. package/contracts/src/entities/marital-status/index.js +0 -1
  32. package/contracts/src/entities/marital-status/index.js.map +1 -1
  33. package/contracts/src/entities/marital-status/marital-status.entity.js +12 -0
  34. package/contracts/src/entities/marital-status/marital-status.entity.js.map +1 -1
  35. package/contracts/src/entities/marital-status/marital-status.types.js.map +1 -1
  36. package/contracts/src/entities/person/index.d.ts +0 -1
  37. package/contracts/src/entities/person/index.js +0 -1
  38. package/contracts/src/entities/person/index.js.map +1 -1
  39. package/contracts/src/entities/person/person.entity.js +53 -1
  40. package/contracts/src/entities/person/person.entity.js.map +1 -1
  41. package/contracts/src/entities/person/person.types.d.ts +4 -2
  42. package/contracts/src/entities/person/person.types.js.map +1 -1
  43. package/contracts/src/entities/person-identifier-type/index.d.ts +0 -1
  44. package/contracts/src/entities/person-identifier-type/index.js +0 -1
  45. package/contracts/src/entities/person-identifier-type/index.js.map +1 -1
  46. package/contracts/src/entities/person-identifier-type/person-identifier-type.entity.js +13 -1
  47. package/contracts/src/entities/person-identifier-type/person-identifier-type.entity.js.map +1 -1
  48. package/contracts/src/entities/person-identifier-type/person-identifier-type.types.js.map +1 -1
  49. package/contracts/src/entities/person-relationship/index.d.ts +0 -1
  50. package/contracts/src/entities/person-relationship/index.js +0 -1
  51. package/contracts/src/entities/person-relationship/index.js.map +1 -1
  52. package/contracts/src/entities/person-relationship/person-relationship.entity.js +16 -1
  53. package/contracts/src/entities/person-relationship/person-relationship.entity.js.map +1 -1
  54. package/contracts/src/entities/person-relationship/person-relationship.types.js.map +1 -1
  55. package/contracts/src/entities/person-title/index.d.ts +0 -1
  56. package/contracts/src/entities/person-title/index.js +0 -1
  57. package/contracts/src/entities/person-title/index.js.map +1 -1
  58. package/contracts/src/entities/person-title/person-title.entity.js +13 -0
  59. package/contracts/src/entities/person-title/person-title.entity.js.map +1 -1
  60. package/contracts/src/entities/person-title/person-title.types.js.map +1 -1
  61. package/contracts/src/entities/religion/index.d.ts +0 -1
  62. package/contracts/src/entities/religion/index.js +0 -1
  63. package/contracts/src/entities/religion/index.js.map +1 -1
  64. package/contracts/src/entities/religion/religion.entity.js +12 -0
  65. package/contracts/src/entities/religion/religion.entity.js.map +1 -1
  66. package/contracts/src/entities/religion/religion.types.js.map +1 -1
  67. package/contracts/src/entity-catalog.d.ts +7 -0
  68. package/contracts/src/entity-catalog.js +29 -0
  69. package/contracts/src/entity-catalog.js.map +1 -0
  70. package/contracts/src/entity-entry.contact-assignment.d.ts +1 -0
  71. package/contracts/src/entity-entry.contact-assignment.js +6 -0
  72. package/contracts/src/entity-entry.contact-assignment.js.map +1 -0
  73. package/contracts/src/entity-entry.contact-role.d.ts +1 -0
  74. package/contracts/src/entity-entry.contact-role.js +6 -0
  75. package/contracts/src/entity-entry.contact-role.js.map +1 -0
  76. package/contracts/src/entity-entry.education-level.d.ts +1 -0
  77. package/contracts/src/entity-entry.education-level.js +6 -0
  78. package/contracts/src/entity-entry.education-level.js.map +1 -0
  79. package/contracts/src/entity-entry.gender.d.ts +1 -0
  80. package/contracts/src/entity-entry.gender.js +6 -0
  81. package/contracts/src/entity-entry.gender.js.map +1 -0
  82. package/contracts/src/entity-entry.marital-status.d.ts +1 -0
  83. package/contracts/src/entity-entry.marital-status.js +6 -0
  84. package/contracts/src/entity-entry.marital-status.js.map +1 -0
  85. package/contracts/src/entity-entry.person-identifier-type.d.ts +1 -0
  86. package/contracts/src/entity-entry.person-identifier-type.js +6 -0
  87. package/contracts/src/entity-entry.person-identifier-type.js.map +1 -0
  88. package/contracts/src/entity-entry.person-relationship.d.ts +1 -0
  89. package/contracts/src/entity-entry.person-relationship.js +6 -0
  90. package/contracts/src/entity-entry.person-relationship.js.map +1 -0
  91. package/contracts/src/entity-entry.person-title.d.ts +1 -0
  92. package/contracts/src/entity-entry.person-title.js +6 -0
  93. package/contracts/src/entity-entry.person-title.js.map +1 -0
  94. package/contracts/src/entity-entry.person.d.ts +1 -0
  95. package/contracts/src/entity-entry.person.js +6 -0
  96. package/contracts/src/entity-entry.person.js.map +1 -0
  97. package/contracts/src/entity-entry.religion.d.ts +1 -0
  98. package/contracts/src/entity-entry.religion.js +6 -0
  99. package/contracts/src/entity-entry.religion.js.map +1 -0
  100. package/contracts/src/index.d.ts +2 -0
  101. package/contracts/src/index.js +2 -0
  102. package/contracts/src/index.js.map +1 -1
  103. package/contracts/src/manifest.d.ts +6 -0
  104. package/contracts/src/manifest.js +24 -0
  105. package/contracts/src/manifest.js.map +1 -0
  106. package/contracts/src/menu.keys.js.map +1 -1
  107. package/contracts/src/permission.keys.d.ts +30 -9
  108. package/contracts/src/permission.keys.js +31 -10
  109. package/contracts/src/permission.keys.js.map +1 -1
  110. package/contracts/src/person-full-name.util.d.ts +9 -0
  111. package/contracts/src/person-full-name.util.js +38 -0
  112. package/contracts/src/person-full-name.util.js.map +1 -0
  113. package/contracts/src/person-relationship.actions.js.map +1 -1
  114. package/contracts/src/root-config.js.map +1 -1
  115. package/package.json +10 -11
  116. package/server/src/index.d.ts +2 -0
  117. package/server/src/index.js +8 -0
  118. package/server/src/index.js.map +1 -0
  119. package/server/src/lib/entities/index.d.ts +1 -0
  120. package/server/src/lib/entities/index.js +5 -0
  121. package/server/src/lib/entities/index.js.map +1 -0
  122. package/server/src/lib/entities/person-core.entity-catalog.d.ts +1 -0
  123. package/server/src/lib/entities/person-core.entity-catalog.js +12 -0
  124. package/server/src/lib/entities/person-core.entity-catalog.js.map +1 -0
  125. package/server/src/lib/middlewares/person-full-name.middleware.d.ts +12 -0
  126. package/server/src/lib/middlewares/person-full-name.middleware.js +57 -0
  127. package/server/src/lib/middlewares/person-full-name.middleware.js.map +1 -0
  128. package/server/src/lib/middlewares/person-relationship-mirror.middleware.d.ts +30 -0
  129. package/server/src/lib/middlewares/person-relationship-mirror.middleware.js +249 -0
  130. package/server/src/lib/middlewares/person-relationship-mirror.middleware.js.map +1 -0
  131. package/server/src/lib/person-core-entity-storage.bootstrap.d.ts +12 -0
  132. package/server/src/lib/person-core-entity-storage.bootstrap.js +32 -0
  133. package/server/src/lib/person-core-entity-storage.bootstrap.js.map +1 -0
  134. package/server/src/lib/person-core-server.module.js +43 -0
  135. package/server/src/lib/person-core-server.module.js.map +1 -0
  136. package/src/index.d.ts +0 -5
  137. package/src/index.js +0 -13
  138. package/src/index.js.map +0 -1
  139. package/src/lib/person-core-server.module.js +0 -27
  140. package/src/lib/person-core-server.module.js.map +0 -1
  141. package/src/lib/seed/contact-assignment/contact-assignment.mock.d.ts +0 -8
  142. package/src/lib/seed/contact-assignment/contact-assignment.mock.js +0 -51
  143. package/src/lib/seed/contact-assignment/contact-assignment.mock.js.map +0 -1
  144. package/src/lib/seed/contact-assignment/contact-assignment.seed.d.ts +0 -5
  145. package/src/lib/seed/contact-assignment/contact-assignment.seed.js +0 -32
  146. package/src/lib/seed/contact-assignment/contact-assignment.seed.js.map +0 -1
  147. package/src/lib/seed/contact-assignment/index.d.ts +0 -2
  148. package/src/lib/seed/contact-assignment/index.js +0 -6
  149. package/src/lib/seed/contact-assignment/index.js.map +0 -1
  150. package/src/lib/seed/contact-role/contact-role.mock.d.ts +0 -40
  151. package/src/lib/seed/contact-role/contact-role.mock.js +0 -258
  152. package/src/lib/seed/contact-role/contact-role.mock.js.map +0 -1
  153. package/src/lib/seed/contact-role/contact-role.seed.d.ts +0 -5
  154. package/src/lib/seed/contact-role/contact-role.seed.js +0 -31
  155. package/src/lib/seed/contact-role/contact-role.seed.js.map +0 -1
  156. package/src/lib/seed/contact-role/index.d.ts +0 -2
  157. package/src/lib/seed/contact-role/index.js +0 -6
  158. package/src/lib/seed/contact-role/index.js.map +0 -1
  159. package/src/lib/seed/education-level/education-level.mock.d.ts +0 -14
  160. package/src/lib/seed/education-level/education-level.mock.js +0 -52
  161. package/src/lib/seed/education-level/education-level.mock.js.map +0 -1
  162. package/src/lib/seed/education-level/education-level.seed.d.ts +0 -5
  163. package/src/lib/seed/education-level/education-level.seed.js +0 -31
  164. package/src/lib/seed/education-level/education-level.seed.js.map +0 -1
  165. package/src/lib/seed/education-level/index.d.ts +0 -2
  166. package/src/lib/seed/education-level/index.js +0 -6
  167. package/src/lib/seed/education-level/index.js.map +0 -1
  168. package/src/lib/seed/gender/gender.mock.d.ts +0 -28
  169. package/src/lib/seed/gender/gender.mock.js +0 -40
  170. package/src/lib/seed/gender/gender.mock.js.map +0 -1
  171. package/src/lib/seed/gender/gender.seed.d.ts +0 -5
  172. package/src/lib/seed/gender/gender.seed.js +0 -31
  173. package/src/lib/seed/gender/gender.seed.js.map +0 -1
  174. package/src/lib/seed/gender/index.d.ts +0 -2
  175. package/src/lib/seed/gender/index.js +0 -6
  176. package/src/lib/seed/gender/index.js.map +0 -1
  177. package/src/lib/seed/index.d.ts +0 -28
  178. package/src/lib/seed/index.js +0 -30
  179. package/src/lib/seed/index.js.map +0 -1
  180. package/src/lib/seed/marital-status/index.d.ts +0 -2
  181. package/src/lib/seed/marital-status/index.js +0 -6
  182. package/src/lib/seed/marital-status/index.js.map +0 -1
  183. package/src/lib/seed/marital-status/marital-status.mock.d.ts +0 -33
  184. package/src/lib/seed/marital-status/marital-status.mock.js +0 -46
  185. package/src/lib/seed/marital-status/marital-status.mock.js.map +0 -1
  186. package/src/lib/seed/marital-status/marital-status.seed.d.ts +0 -5
  187. package/src/lib/seed/marital-status/marital-status.seed.js +0 -31
  188. package/src/lib/seed/marital-status/marital-status.seed.js.map +0 -1
  189. package/src/lib/seed/person/index.d.ts +0 -3
  190. package/src/lib/seed/person/index.js +0 -7
  191. package/src/lib/seed/person/index.js.map +0 -1
  192. package/src/lib/seed/person/person-natural-ids.constants.d.ts +0 -76
  193. package/src/lib/seed/person/person-natural-ids.constants.js +0 -82
  194. package/src/lib/seed/person/person-natural-ids.constants.js.map +0 -1
  195. package/src/lib/seed/person/person.mock.d.ts +0 -5
  196. package/src/lib/seed/person/person.mock.js +0 -372
  197. package/src/lib/seed/person/person.mock.js.map +0 -1
  198. package/src/lib/seed/person/person.seed.d.ts +0 -5
  199. package/src/lib/seed/person/person.seed.js +0 -31
  200. package/src/lib/seed/person/person.seed.js.map +0 -1
  201. package/src/lib/seed/person-core-seed.provider.d.ts +0 -4
  202. package/src/lib/seed/person-core-seed.provider.js +0 -18
  203. package/src/lib/seed/person-core-seed.provider.js.map +0 -1
  204. package/src/lib/seed/person-core-seed.tokens.d.ts +0 -1
  205. package/src/lib/seed/person-core-seed.tokens.js +0 -7
  206. package/src/lib/seed/person-core-seed.tokens.js.map +0 -1
  207. package/src/lib/seed/person-core.seed-catalog.d.ts +0 -2
  208. package/src/lib/seed/person-core.seed-catalog.js +0 -31
  209. package/src/lib/seed/person-core.seed-catalog.js.map +0 -1
  210. package/src/lib/seed/person-identifier-type/index.d.ts +0 -2
  211. package/src/lib/seed/person-identifier-type/index.js +0 -6
  212. package/src/lib/seed/person-identifier-type/index.js.map +0 -1
  213. package/src/lib/seed/person-identifier-type/person-identifier-type.mock.d.ts +0 -4
  214. package/src/lib/seed/person-identifier-type/person-identifier-type.mock.js +0 -68
  215. package/src/lib/seed/person-identifier-type/person-identifier-type.mock.js.map +0 -1
  216. package/src/lib/seed/person-identifier-type/person-identifier-type.seed.d.ts +0 -5
  217. package/src/lib/seed/person-identifier-type/person-identifier-type.seed.js +0 -31
  218. package/src/lib/seed/person-identifier-type/person-identifier-type.seed.js.map +0 -1
  219. package/src/lib/seed/person-relationship/index.d.ts +0 -2
  220. package/src/lib/seed/person-relationship/index.js +0 -6
  221. package/src/lib/seed/person-relationship/index.js.map +0 -1
  222. package/src/lib/seed/person-relationship/person-relationship.mock.d.ts +0 -30
  223. package/src/lib/seed/person-relationship/person-relationship.mock.js +0 -156
  224. package/src/lib/seed/person-relationship/person-relationship.mock.js.map +0 -1
  225. package/src/lib/seed/person-relationship/person-relationship.seed.d.ts +0 -5
  226. package/src/lib/seed/person-relationship/person-relationship.seed.js +0 -31
  227. package/src/lib/seed/person-relationship/person-relationship.seed.js.map +0 -1
  228. package/src/lib/seed/person-title/index.d.ts +0 -2
  229. package/src/lib/seed/person-title/index.js +0 -6
  230. package/src/lib/seed/person-title/index.js.map +0 -1
  231. package/src/lib/seed/person-title/person-title.mock.d.ts +0 -43
  232. package/src/lib/seed/person-title/person-title.mock.js +0 -58
  233. package/src/lib/seed/person-title/person-title.mock.js.map +0 -1
  234. package/src/lib/seed/person-title/person-title.seed.d.ts +0 -5
  235. package/src/lib/seed/person-title/person-title.seed.js +0 -31
  236. package/src/lib/seed/person-title/person-title.seed.js.map +0 -1
  237. package/src/lib/seed/religion/index.d.ts +0 -2
  238. package/src/lib/seed/religion/index.js +0 -6
  239. package/src/lib/seed/religion/index.js.map +0 -1
  240. package/src/lib/seed/religion/religion.mock.d.ts +0 -5
  241. package/src/lib/seed/religion/religion.mock.js +0 -48
  242. package/src/lib/seed/religion/religion.mock.js.map +0 -1
  243. package/src/lib/seed/religion/religion.seed.d.ts +0 -5
  244. package/src/lib/seed/religion/religion.seed.js +0 -31
  245. package/src/lib/seed/religion/religion.seed.js.map +0 -1
  246. /package/{src → server/src}/lib/person-core-server.module.d.ts +0 -0
@@ -1,258 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.contactRoleMocks = exports.contactRoleIds = void 0;
4
- const seed_1 = require("@acorex-platform/module-common-server/seed");
5
- const M = seed_1.createMultiLanguageString;
6
- // Export contact role IDs for use in other mocks (person, deal-contact-role, etc.)
7
- exports.contactRoleIds = {
8
- customer: seed_1.AXPDataGenerator.uuid(),
9
- vendor: seed_1.AXPDataGenerator.uuid(),
10
- subcontractor: seed_1.AXPDataGenerator.uuid(),
11
- client: seed_1.AXPDataGenerator.uuid(),
12
- employee: seed_1.AXPDataGenerator.uuid(),
13
- partner: seed_1.AXPDataGenerator.uuid(),
14
- supplier: seed_1.AXPDataGenerator.uuid(),
15
- member: seed_1.AXPDataGenerator.uuid(),
16
- other: seed_1.AXPDataGenerator.uuid(),
17
- siteManager: seed_1.AXPDataGenerator.uuid(),
18
- facilityContact: seed_1.AXPDataGenerator.uuid(),
19
- emergencyContact: seed_1.AXPDataGenerator.uuid(),
20
- maintenanceContact: seed_1.AXPDataGenerator.uuid(),
21
- securityContact: seed_1.AXPDataGenerator.uuid(),
22
- receptionist: seed_1.AXPDataGenerator.uuid(),
23
- decisionMaker: seed_1.AXPDataGenerator.uuid(),
24
- influencer: seed_1.AXPDataGenerator.uuid(),
25
- economicBuyer: seed_1.AXPDataGenerator.uuid(),
26
- user: seed_1.AXPDataGenerator.uuid(),
27
- // Party contact roles
28
- primaryContact: seed_1.AXPDataGenerator.uuid(),
29
- accountManager: seed_1.AXPDataGenerator.uuid(),
30
- billingContact: seed_1.AXPDataGenerator.uuid(),
31
- technicalContact: seed_1.AXPDataGenerator.uuid(),
32
- salesContact: seed_1.AXPDataGenerator.uuid(),
33
- // Person-relationship roles (employs, client-of, vendor-of, partner-of)
34
- employs: seed_1.AXPDataGenerator.uuid(),
35
- clientOf: seed_1.AXPDataGenerator.uuid(),
36
- vendorOf: seed_1.AXPDataGenerator.uuid(),
37
- partnerOf: seed_1.AXPDataGenerator.uuid(),
38
- // Family/kinship roles
39
- mother: seed_1.AXPDataGenerator.uuid(),
40
- father: seed_1.AXPDataGenerator.uuid(),
41
- sibling: seed_1.AXPDataGenerator.uuid(),
42
- spouse: seed_1.AXPDataGenerator.uuid(),
43
- child: seed_1.AXPDataGenerator.uuid(),
44
- guardian: seed_1.AXPDataGenerator.uuid(),
45
- };
46
- exports.contactRoleMocks = [
47
- // Person roles
48
- {
49
- id: exports.contactRoleIds.customer,
50
- name: 'customer',
51
- title: M('Customer', 'مشتری'),
52
- description: M('Customer or client relationship', 'رابطه مشتری یا مراجعه‌کننده'),
53
- },
54
- {
55
- id: exports.contactRoleIds.vendor,
56
- name: 'vendor',
57
- title: M('Vendor', 'فروشنده'),
58
- description: M('Vendor or supplier relationship', 'رابطه فروشنده یا تأمین‌کننده'),
59
- },
60
- {
61
- id: exports.contactRoleIds.subcontractor,
62
- name: 'subcontractor',
63
- title: M('Subcontractor', 'پیمانکار فرعی'),
64
- description: M('Subcontractor relationship', 'رابطه پیمانکار فرعی'),
65
- },
66
- {
67
- id: exports.contactRoleIds.client,
68
- name: 'client',
69
- title: M('Client', 'کارفرما'),
70
- description: M('Client relationship', 'رابطه کارفرمایی'),
71
- },
72
- {
73
- id: exports.contactRoleIds.employee,
74
- name: 'employee',
75
- title: M('Employee', 'کارمند'),
76
- description: M('Employee of the organization', 'کارمند سازمان'),
77
- },
78
- {
79
- id: exports.contactRoleIds.partner,
80
- name: 'partner',
81
- title: M('Partner', 'شریک'),
82
- description: M('Business partner relationship', 'رابطه شریک تجاری'),
83
- },
84
- {
85
- id: exports.contactRoleIds.supplier,
86
- name: 'supplier',
87
- title: M('Supplier', 'تأمین‌کننده'),
88
- description: M('Supplier relationship', 'رابطه تأمین‌کننده'),
89
- },
90
- {
91
- id: exports.contactRoleIds.member,
92
- name: 'member',
93
- title: M('Member', 'عضو'),
94
- description: M('Organization or community member', 'عضو سازمان یا جامعه'),
95
- },
96
- {
97
- id: exports.contactRoleIds.other,
98
- name: 'other',
99
- title: M('Other', 'سایر'),
100
- description: M('Other role type', 'نوع نقش دیگر'),
101
- },
102
- // Location contact roles
103
- {
104
- id: exports.contactRoleIds.siteManager,
105
- name: 'site-manager',
106
- title: M('Site Manager', 'مدیر سایت'),
107
- description: M('Primary contact for the location', 'مخاطب اصلی مکان'),
108
- },
109
- {
110
- id: exports.contactRoleIds.facilityContact,
111
- name: 'facility-contact',
112
- title: M('Facility Contact', 'مخاطب تاسیسات'),
113
- description: M('General facility contact', 'مخاطب عمومی تاسیسات'),
114
- },
115
- {
116
- id: exports.contactRoleIds.emergencyContact,
117
- name: 'emergency-contact',
118
- title: M('Emergency Contact', 'تماس اضطراری'),
119
- description: M('Contact for emergency situations (location, business, or family)', 'مخاطب برای شرایط اضطراری (مکان، کسب‌وکار یا خانواده)'),
120
- },
121
- {
122
- id: exports.contactRoleIds.maintenanceContact,
123
- name: 'maintenance-contact',
124
- title: M('Maintenance Contact', 'مخاطب نگهداری'),
125
- description: M('Contact for maintenance and repairs', 'مخاطب تعمیرات و نگهداری'),
126
- },
127
- {
128
- id: exports.contactRoleIds.securityContact,
129
- name: 'security-contact',
130
- title: M('Security Contact', 'مخاطب امنیتی'),
131
- description: M('Security-related contact', 'مخاطب امور امنیتی'),
132
- },
133
- {
134
- id: exports.contactRoleIds.receptionist,
135
- name: 'receptionist',
136
- title: M('Receptionist', 'پذیرش'),
137
- description: M('Front desk or reception contact', 'میز پذیرش'),
138
- },
139
- // Opportunity contact roles
140
- {
141
- id: exports.contactRoleIds.decisionMaker,
142
- name: 'decision-maker',
143
- title: M('Decision Maker', 'تصمیم‌گیرنده'),
144
- description: M('Key decision maker for the opportunity', 'تصمیم‌گیرنده کلیدی فرصت'),
145
- },
146
- {
147
- id: exports.contactRoleIds.influencer,
148
- name: 'influencer',
149
- title: M('Influencer', 'تأثیرگذار'),
150
- description: M('Influences the decision', 'در تصمیم تأثیر دارد'),
151
- },
152
- {
153
- id: exports.contactRoleIds.economicBuyer,
154
- name: 'economic-buyer',
155
- title: M('Economic Buyer', 'خریدار اقتصادی'),
156
- description: M('Controls the budget', 'کنترل‌کننده بودجه'),
157
- },
158
- {
159
- id: exports.contactRoleIds.user,
160
- name: 'user',
161
- title: M('User', 'کاربر'),
162
- description: M('End user of the solution', 'کاربر نهایی راه‌حل'),
163
- },
164
- // Party contact roles
165
- {
166
- id: exports.contactRoleIds.primaryContact,
167
- name: 'primary-contact',
168
- title: M('Primary Contact', 'مخاطب اصلی'),
169
- description: M('Main point of contact for the party', 'نقطه تماس اصلی طرف'),
170
- },
171
- {
172
- id: exports.contactRoleIds.accountManager,
173
- name: 'account-manager',
174
- title: M('Account Manager', 'مدیر حساب'),
175
- description: M('Manages the account relationship', 'مدیریت رابطه حساب'),
176
- },
177
- {
178
- id: exports.contactRoleIds.billingContact,
179
- name: 'billing-contact',
180
- title: M('Billing Contact', 'مخاطب صورتحساب'),
181
- description: M('Contact for billing and invoicing', 'مخاطب صورتحساب و فاکتور'),
182
- },
183
- {
184
- id: exports.contactRoleIds.technicalContact,
185
- name: 'technical-contact',
186
- title: M('Technical Contact', 'مخاطب فنی'),
187
- description: M('Technical contact for the party', 'مخاطب فنی طرف'),
188
- },
189
- {
190
- id: exports.contactRoleIds.salesContact,
191
- name: 'sales-contact',
192
- title: M('Sales Contact', 'مخاطب فروش'),
193
- description: M('Sales contact for the party', 'مخاطب فروش طرف'),
194
- },
195
- // Person-relationship roles (links between two people: employs, client-of, vendor-of, partner-of)
196
- {
197
- id: exports.contactRoleIds.employs,
198
- name: 'employs',
199
- title: M('Employs', 'استخدام‌کننده'),
200
- description: M('One person employs another person', 'یک نفر دیگری را استخدام می‌کند'),
201
- },
202
- {
203
- id: exports.contactRoleIds.clientOf,
204
- name: 'client-of',
205
- title: M('Client Of', 'کارفرمای'),
206
- description: M('Client relationship from one person to another', 'رابطه کارفرمایی بین دو نفر'),
207
- },
208
- {
209
- id: exports.contactRoleIds.vendorOf,
210
- name: 'vendor-of',
211
- title: M('Vendor Of', 'فروشندهٔ'),
212
- description: M('Vendor relationship from one person to another', 'رابطه فروشنده بین دو نفر'),
213
- },
214
- {
215
- id: exports.contactRoleIds.partnerOf,
216
- name: 'partner-of',
217
- title: M('Partner Of', 'شریک'),
218
- description: M('Non-directional partnership between parties', 'شراکت بین طرفین'),
219
- },
220
- // Family/kinship roles
221
- {
222
- id: exports.contactRoleIds.mother,
223
- name: 'mother',
224
- title: M('Mother', 'مادر'),
225
- description: M('Mother or maternal parent', 'مادر'),
226
- },
227
- {
228
- id: exports.contactRoleIds.father,
229
- name: 'father',
230
- title: M('Father', 'پدر'),
231
- description: M('Father or paternal parent', 'پدر'),
232
- },
233
- {
234
- id: exports.contactRoleIds.sibling,
235
- name: 'sibling',
236
- title: M('Sibling', 'خواهر/برادر'),
237
- description: M('Brother or sister', 'هم‌نژاد'),
238
- },
239
- {
240
- id: exports.contactRoleIds.spouse,
241
- name: 'spouse',
242
- title: M('Spouse', 'همسر'),
243
- description: M('Husband or wife', 'زوج'),
244
- },
245
- {
246
- id: exports.contactRoleIds.child,
247
- name: 'child',
248
- title: M('Child', 'فرزند'),
249
- description: M('Son or daughter', 'پسر یا دختر'),
250
- },
251
- {
252
- id: exports.contactRoleIds.guardian,
253
- name: 'guardian',
254
- title: M('Guardian', 'سرپرست'),
255
- description: M('Legal guardian or caregiver', 'سرپرست قانونی یا مراقب'),
256
- },
257
- ];
258
- //# sourceMappingURL=contact-role.mock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contact-role.mock.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/contact-role/contact-role.mock.ts"],"names":[],"mappings":";;;AAAA,qEAAuG;AAMvG,MAAM,CAAC,GAAG,gCAAyB,CAAC;AAEpC,mFAAmF;AACtE,QAAA,cAAc,GAAG;IAC5B,QAAQ,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACjC,MAAM,EAAE,uBAAgB,CAAC,IAAI,EAAE;IAC/B,aAAa,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACtC,MAAM,EAAE,uBAAgB,CAAC,IAAI,EAAE;IAC/B,QAAQ,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACjC,OAAO,EAAE,uBAAgB,CAAC,IAAI,EAAE;IAChC,QAAQ,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACjC,MAAM,EAAE,uBAAgB,CAAC,IAAI,EAAE;IAC/B,KAAK,EAAE,uBAAgB,CAAC,IAAI,EAAE;IAC9B,WAAW,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACpC,eAAe,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACxC,gBAAgB,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACzC,kBAAkB,EAAE,uBAAgB,CAAC,IAAI,EAAE;IAC3C,eAAe,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACxC,YAAY,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACr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
@@ -1,5 +0,0 @@
1
- import { AXPDataSeeder, AXPEntitySeedDefinition, AXPEntitySeedStorage } from '@acorex-platform/module-common-server/seed';
2
- export declare const CONTACT_ROLE_ENTITY_NAME = "PersonCore.ContactRole";
3
- export declare function seedContactRoleData(storage: AXPEntitySeedStorage): Promise<void>;
4
- export declare function createContactRoleDataSeeder(storage: AXPEntitySeedStorage): AXPDataSeeder;
5
- export declare const contactRoleSeedDefinition: AXPEntitySeedDefinition;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.contactRoleSeedDefinition = exports.CONTACT_ROLE_ENTITY_NAME = void 0;
4
- exports.seedContactRoleData = seedContactRoleData;
5
- exports.createContactRoleDataSeeder = createContactRoleDataSeeder;
6
- const tslib_1 = require("tslib");
7
- const seed_1 = require("@acorex-platform/module-common-server/seed");
8
- const contact_role_mock_1 = require("./contact-role.mock");
9
- //#region ---- Constants ----
10
- exports.CONTACT_ROLE_ENTITY_NAME = 'PersonCore.ContactRole';
11
- //#endregion
12
- //#region ---- Pure seed logic ----
13
- function seedContactRoleData(storage) {
14
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
- yield storage.initial(exports.CONTACT_ROLE_ENTITY_NAME, contact_role_mock_1.contactRoleMocks, { uniqueKeys: ['id'] });
16
- });
17
- }
18
- function createContactRoleDataSeeder(storage) {
19
- return {
20
- name: 'ContactRoleDataSeeder',
21
- seed: () => seedContactRoleData(storage),
22
- };
23
- }
24
- exports.contactRoleSeedDefinition = (0, seed_1.defineEntitySeed)({
25
- name: 'ContactRoleDataSeeder',
26
- entityName: exports.CONTACT_ROLE_ENTITY_NAME,
27
- rows: contact_role_mock_1.contactRoleMocks,
28
- seed: seedContactRoleData,
29
- });
30
- //#endregion
31
- //# sourceMappingURL=contact-role.seed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contact-role.seed.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/contact-role/contact-role.seed.ts"],"names":[],"mappings":";;;AAgBA,kDAEC;AAED,kEAKC;;AAzBD,qEAKoD;AACpD,2DAAuD;AAEvD,6BAA6B;AAEhB,QAAA,wBAAwB,GAAG,wBAAwB,CAAC;AAEjE,YAAY;AAEZ,mCAAmC;AAEnC,SAAsB,mBAAmB,CAAC,OAA6B;;QACrE,MAAM,OAAO,CAAC,OAAO,CAAC,gCAAwB,EAAE,oCAAgB,EAAE,EAAE,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC5F,CAAC;CAAA;AAED,SAAgB,2BAA2B,CAAC,OAA6B;IACvE,OAAO;QACL,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC;KACzC,CAAC;AACJ,CAAC;AAEY,QAAA,yBAAyB,GAA4B,IAAA,uBAAgB,EAAC;IACjF,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,gCAAwB;IACpC,IAAI,EAAE,oCAAgB;IACtB,IAAI,EAAE,mBAAmB;CAC1B,CAAC,CAAC;AAEH,YAAY"}
@@ -1,2 +0,0 @@
1
- export * from './contact-role.mock';
2
- export * from './contact-role.seed';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./contact-role.mock"), exports);
5
- tslib_1.__exportStar(require("./contact-role.seed"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/contact-role/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,8DAAoC"}
@@ -1,14 +0,0 @@
1
- export declare const educationLevelIds: {
2
- lessThanHighSchool: string;
3
- highSchool: string;
4
- associates: string;
5
- bachelors: string;
6
- masters: string;
7
- doctorate: string;
8
- vocational: string;
9
- };
10
- export declare const educationLevelMocks: {
11
- id: string;
12
- title: Record<string, string>;
13
- description: Record<string, string>;
14
- }[];
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.educationLevelMocks = exports.educationLevelIds = void 0;
4
- const seed_1 = require("@acorex-platform/module-common-server/seed");
5
- const M = seed_1.createMultiLanguageString;
6
- exports.educationLevelIds = {
7
- lessThanHighSchool: seed_1.AXPDataGenerator.uuid(),
8
- highSchool: seed_1.AXPDataGenerator.uuid(),
9
- associates: seed_1.AXPDataGenerator.uuid(),
10
- bachelors: seed_1.AXPDataGenerator.uuid(),
11
- masters: seed_1.AXPDataGenerator.uuid(),
12
- doctorate: seed_1.AXPDataGenerator.uuid(),
13
- vocational: seed_1.AXPDataGenerator.uuid(),
14
- };
15
- exports.educationLevelMocks = [
16
- {
17
- id: exports.educationLevelIds.lessThanHighSchool,
18
- title: M('Less than high school', 'زیر دیپلم'),
19
- description: M('Education below high school completion', 'تحصیلات زیر پایان دبیرستان'),
20
- },
21
- {
22
- id: exports.educationLevelIds.highSchool,
23
- title: M('High school', 'دبیرستان'),
24
- description: M('High school diploma or equivalent', 'دیپلم دبیرستان یا معادل'),
25
- },
26
- {
27
- id: exports.educationLevelIds.bachelors,
28
- title: M("Bachelor's degree", 'کارشناسی'),
29
- description: M('Undergraduate university degree', 'مدرک کارشناسی دانشگاهی'),
30
- },
31
- {
32
- id: exports.educationLevelIds.masters,
33
- title: M("Master's degree", 'کارشناسی ارشد'),
34
- description: M('Graduate university degree', 'مدرک تحصیلات تکمیلی'),
35
- },
36
- {
37
- id: exports.educationLevelIds.doctorate,
38
- title: M('Doctorate', 'دکتری'),
39
- description: M('Doctoral or professional doctorate degree', 'دکتری تخصصی یا حرفه‌ای'),
40
- },
41
- {
42
- id: exports.educationLevelIds.associates,
43
- title: M('Associate degree', 'کاردانی'),
44
- description: M('Two-year college degree', 'مدرک دو ساله دانشگاهی'),
45
- },
46
- {
47
- id: exports.educationLevelIds.vocational,
48
- title: M('Vocational / Certificate', 'فنی‌حرفه‌ای / گواهینامه'),
49
- description: M('Vocational training or certificate program', 'آموزش فنی یا دوره گواهینامه'),
50
- },
51
- ];
52
- //# sourceMappingURL=education-level.mock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"education-level.mock.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/education-level/education-level.mock.ts"],"names":[],"mappings":";;;AAAA,qEAAuG;AAEvG,MAAM,CAAC,GAAG,gCAAyB,CAAC;AAEvB,QAAA,iBAAiB,GAAG;IAC/B,kBAAkB,EAAE,uBAAgB,CAAC,IAAI,EAAE;IAC3C,UAAU,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACnC,UAAU,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACnC,SAAS,EAAE,uBAAgB,CAAC,IAAI,EAAE;IAClC,OAAO,EAAE,uBAAgB,CAAC,IAAI,EAAE;IAChC,SAAS,EAAE,uBAAgB,CAAC,IAAI,EAAE;IAClC,UAAU,EAAE,uBAAgB,CAAC,IAAI,EAAE;CACpC,CAAC;AAEW,QAAA,mBAAmB,GAAG;IACjC;QACE,EAAE,EAAE,yBAAiB,CAAC,kBAAkB;QACxC,KAAK,EAAE,CAAC,CAAC,uBAAuB,EAAE,WAAW,CAAC;QAC9C,WAAW,EAAE,CAAC,CAAC,wCAAwC,EAAE,4BAA4B,CAAC;KACvF;IACD;QACE,EAAE,EAAE,yBAAiB,CAAC,UAAU;QAChC,KAAK,EAAE,CAAC,CAAC,aAAa,EAAE,UAAU,CAAC;QACnC,WAAW,EAAE,CAAC,CAAC,mCAAmC,EAAE,yBAAyB,CAAC;KAC/E;IACD;QACE,EAAE,EAAE,yBAAiB,CAAC,SAAS;QAC/B,KAAK,EAAE,CAAC,CAAC,mBAAmB,EAAE,UAAU,CAAC;QACzC,WAAW,EAAE,CAAC,CAAC,iCAAiC,EAAE,wBAAwB,CAAC;KAC5E;IACD;QACE,EAAE,EAAE,yBAAiB,CAAC,OAAO;QAC7B,KAAK,EAAE,CAAC,CAAC,iBAAiB,EAAE,eAAe,CAAC;QAC5C,WAAW,EAAE,CAAC,CAAC,4BAA4B,EAAE,qBAAqB,CAAC;KACpE;IACD;QACE,EAAE,EAAE,yBAAiB,CAAC,SAAS;QAC/B,KAAK,EAAE,CAAC,CAAC,WAAW,EAAE,OAAO,CAAC;QAC9B,WAAW,EAAE,CAAC,CAAC,2CAA2C,EAAE,wBAAwB,CAAC;KACtF;IACD;QACE,EAAE,EAAE,yBAAiB,CAAC,UAAU;QAChC,KAAK,EAAE,CAAC,CAAC,kBAAkB,EAAE,SAAS,CAAC;QACvC,WAAW,EAAE,CAAC,CAAC,yBAAyB,EAAE,uBAAuB,CAAC;KACnE;IACD;QACE,EAAE,EAAE,yBAAiB,CAAC,UAAU;QAChC,KAAK,EAAE,CAAC,CAAC,0BAA0B,EAAE,yBAAyB,CAAC;QAC/D,WAAW,EAAE,CAAC,CAAC,4CAA4C,EAAE,6BAA6B,CAAC;KAC5F;CACF,CAAC"}
@@ -1,5 +0,0 @@
1
- import { AXPDataSeeder, AXPEntitySeedDefinition, AXPEntitySeedStorage } from '@acorex-platform/module-common-server/seed';
2
- export declare const EDUCATION_LEVEL_ENTITY_NAME = "PersonCore.EducationLevel";
3
- export declare function seedEducationLevelData(storage: AXPEntitySeedStorage): Promise<void>;
4
- export declare function createEducationLevelDataSeeder(storage: AXPEntitySeedStorage): AXPDataSeeder;
5
- export declare const educationLevelSeedDefinition: AXPEntitySeedDefinition;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.educationLevelSeedDefinition = exports.EDUCATION_LEVEL_ENTITY_NAME = void 0;
4
- exports.seedEducationLevelData = seedEducationLevelData;
5
- exports.createEducationLevelDataSeeder = createEducationLevelDataSeeder;
6
- const tslib_1 = require("tslib");
7
- const seed_1 = require("@acorex-platform/module-common-server/seed");
8
- const education_level_mock_1 = require("./education-level.mock");
9
- //#region ---- Constants ----
10
- exports.EDUCATION_LEVEL_ENTITY_NAME = 'PersonCore.EducationLevel';
11
- //#endregion
12
- //#region ---- Pure seed logic ----
13
- function seedEducationLevelData(storage) {
14
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
- yield storage.initial(exports.EDUCATION_LEVEL_ENTITY_NAME, education_level_mock_1.educationLevelMocks, { uniqueKeys: ['id'] });
16
- });
17
- }
18
- function createEducationLevelDataSeeder(storage) {
19
- return {
20
- name: 'EducationLevelDataSeeder',
21
- seed: () => seedEducationLevelData(storage),
22
- };
23
- }
24
- exports.educationLevelSeedDefinition = (0, seed_1.defineEntitySeed)({
25
- name: 'EducationLevelDataSeeder',
26
- entityName: exports.EDUCATION_LEVEL_ENTITY_NAME,
27
- rows: education_level_mock_1.educationLevelMocks,
28
- seed: seedEducationLevelData,
29
- });
30
- //#endregion
31
- //# sourceMappingURL=education-level.seed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"education-level.seed.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/education-level/education-level.seed.ts"],"names":[],"mappings":";;;AAgBA,wDAEC;AAED,wEAKC;;AAzBD,qEAKoD;AACpD,iEAA6D;AAE7D,6BAA6B;AAEhB,QAAA,2BAA2B,GAAG,2BAA2B,CAAC;AAEvE,YAAY;AAEZ,mCAAmC;AAEnC,SAAsB,sBAAsB,CAAC,OAA6B;;QACxE,MAAM,OAAO,CAAC,OAAO,CAAC,mCAA2B,EAAE,0CAAmB,EAAE,EAAE,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClG,CAAC;CAAA;AAED,SAAgB,8BAA8B,CAAC,OAA6B;IAC1E,OAAO;QACL,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,OAAO,CAAC;KAC5C,CAAC;AACJ,CAAC;AAEY,QAAA,4BAA4B,GAA4B,IAAA,uBAAgB,EAAC;IACpF,IAAI,EAAE,0BAA0B;IAChC,UAAU,EAAE,mCAA2B;IACvC,IAAI,EAAE,0CAAmB;IACzB,IAAI,EAAE,sBAAsB;CAC7B,CAAC,CAAC;AAEH,YAAY"}
@@ -1,2 +0,0 @@
1
- export * from './education-level.mock';
2
- export * from './education-level.seed';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./education-level.mock"), exports);
5
- tslib_1.__exportStar(require("./education-level.seed"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/education-level/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,iEAAuC"}
@@ -1,28 +0,0 @@
1
- export declare const genderIds: {
2
- readonly male: "b3000001-0000-4000-8000-000000000001";
3
- readonly female: "b3000001-0000-4000-8000-000000000002";
4
- readonly nonBinary: "b3000001-0000-4000-8000-000000000003";
5
- readonly other: "b3000001-0000-4000-8000-000000000004";
6
- readonly preferNotToSay: "b3000001-0000-4000-8000-000000000005";
7
- };
8
- export declare const genderMocks: ({
9
- id: "b3000001-0000-4000-8000-000000000001";
10
- title: Record<string, string>;
11
- description: Record<string, string>;
12
- } | {
13
- id: "b3000001-0000-4000-8000-000000000002";
14
- title: Record<string, string>;
15
- description: Record<string, string>;
16
- } | {
17
- id: "b3000001-0000-4000-8000-000000000003";
18
- title: Record<string, string>;
19
- description: Record<string, string>;
20
- } | {
21
- id: "b3000001-0000-4000-8000-000000000004";
22
- title: Record<string, string>;
23
- description: Record<string, string>;
24
- } | {
25
- id: "b3000001-0000-4000-8000-000000000005";
26
- title: Record<string, string>;
27
- description: Record<string, string>;
28
- })[];
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.genderMocks = exports.genderIds = void 0;
4
- const seed_1 = require("@acorex-platform/module-common-server/seed");
5
- const M = seed_1.createMultiLanguageString;
6
- exports.genderIds = {
7
- male: 'b3000001-0000-4000-8000-000000000001',
8
- female: 'b3000001-0000-4000-8000-000000000002',
9
- nonBinary: 'b3000001-0000-4000-8000-000000000003',
10
- other: 'b3000001-0000-4000-8000-000000000004',
11
- preferNotToSay: 'b3000001-0000-4000-8000-000000000005',
12
- };
13
- exports.genderMocks = [
14
- {
15
- id: exports.genderIds.male,
16
- title: M('Male', 'مرد'),
17
- description: M('Male gender identity', 'هویت جنسیتی مرد'),
18
- },
19
- {
20
- id: exports.genderIds.female,
21
- title: M('Female', 'زن'),
22
- description: M('Female gender identity', 'هویت جنسیتی زن'),
23
- },
24
- {
25
- id: exports.genderIds.nonBinary,
26
- title: M('Non-binary', 'غیردودویی'),
27
- description: M('Non-binary gender identity', 'هویت جنسیتی غیردودویی'),
28
- },
29
- {
30
- id: exports.genderIds.other,
31
- title: M('Other', 'سایر'),
32
- description: M('Another gender identity', 'سایر هویت‌های جنسیتی'),
33
- },
34
- {
35
- id: exports.genderIds.preferNotToSay,
36
- title: M('Prefer not to say', 'ترجیح می‌دهم نگویم'),
37
- description: M('Decline to answer', 'عدم تمایل به پاسخ'),
38
- },
39
- ];
40
- //# sourceMappingURL=gender.mock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gender.mock.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/gender/gender.mock.ts"],"names":[],"mappings":";;;AAAA,qEAAqF;AAErF,MAAM,CAAC,GAAG,gCAAyB,CAAC;AAEvB,QAAA,SAAS,GAAG;IACvB,IAAI,EAAE,sCAAsC;IAC5C,MAAM,EAAE,sCAAsC;IAC9C,SAAS,EAAE,sCAAsC;IACjD,KAAK,EAAE,sCAAsC;IAC7C,cAAc,EAAE,sCAAsC;CAC9C,CAAC;AAEE,QAAA,WAAW,GAAG;IACzB;QACE,EAAE,EAAE,iBAAS,CAAC,IAAI;QAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC;QACvB,WAAW,EAAE,CAAC,CAAC,sBAAsB,EAAE,iBAAiB,CAAC;KAC1D;IACD;QACE,EAAE,EAAE,iBAAS,CAAC,MAAM;QACpB,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC;QACxB,WAAW,EAAE,CAAC,CAAC,wBAAwB,EAAE,gBAAgB,CAAC;KAC3D;IACD;QACE,EAAE,EAAE,iBAAS,CAAC,SAAS;QACvB,KAAK,EAAE,CAAC,CAAC,YAAY,EAAE,WAAW,CAAC;QACnC,WAAW,EAAE,CAAC,CAAC,4BAA4B,EAAE,uBAAuB,CAAC;KACtE;IACD;QACE,EAAE,EAAE,iBAAS,CAAC,KAAK;QACnB,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,CAAC,CAAC,yBAAyB,EAAE,sBAAsB,CAAC;KAClE;IACD;QACE,EAAE,EAAE,iBAAS,CAAC,cAAc;QAC5B,KAAK,EAAE,CAAC,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;QACnD,WAAW,EAAE,CAAC,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;KACzD;CACF,CAAC"}
@@ -1,5 +0,0 @@
1
- import { AXPDataSeeder, AXPEntitySeedDefinition, AXPEntitySeedStorage } from '@acorex-platform/module-common-server/seed';
2
- export declare const GENDER_ENTITY_NAME = "PersonCore.Gender";
3
- export declare function seedGenderData(storage: AXPEntitySeedStorage): Promise<void>;
4
- export declare function createGenderDataSeeder(storage: AXPEntitySeedStorage): AXPDataSeeder;
5
- export declare const genderSeedDefinition: AXPEntitySeedDefinition;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.genderSeedDefinition = exports.GENDER_ENTITY_NAME = void 0;
4
- exports.seedGenderData = seedGenderData;
5
- exports.createGenderDataSeeder = createGenderDataSeeder;
6
- const tslib_1 = require("tslib");
7
- const seed_1 = require("@acorex-platform/module-common-server/seed");
8
- const gender_mock_1 = require("./gender.mock");
9
- //#region ---- Constants ----
10
- exports.GENDER_ENTITY_NAME = 'PersonCore.Gender';
11
- //#endregion
12
- //#region ---- Pure seed logic ----
13
- function seedGenderData(storage) {
14
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
- yield storage.initial(exports.GENDER_ENTITY_NAME, gender_mock_1.genderMocks, { uniqueKeys: ['id'] });
16
- });
17
- }
18
- function createGenderDataSeeder(storage) {
19
- return {
20
- name: 'GenderDataSeeder',
21
- seed: () => seedGenderData(storage),
22
- };
23
- }
24
- exports.genderSeedDefinition = (0, seed_1.defineEntitySeed)({
25
- name: 'GenderDataSeeder',
26
- entityName: exports.GENDER_ENTITY_NAME,
27
- rows: gender_mock_1.genderMocks,
28
- seed: seedGenderData,
29
- });
30
- //#endregion
31
- //# sourceMappingURL=gender.seed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gender.seed.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/gender/gender.seed.ts"],"names":[],"mappings":";;;AAgBA,wCAEC;AAED,wDAKC;;AAzBD,qEAKoD;AACpD,+CAA4C;AAE5C,6BAA6B;AAEhB,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;AAEtD,YAAY;AAEZ,mCAAmC;AAEnC,SAAsB,cAAc,CAAC,OAA6B;;QAChE,MAAM,OAAO,CAAC,OAAO,CAAC,0BAAkB,EAAE,yBAAW,EAAE,EAAE,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjF,CAAC;CAAA;AAED,SAAgB,sBAAsB,CAAC,OAA6B;IAClE,OAAO;QACL,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC;KACpC,CAAC;AACJ,CAAC;AAEY,QAAA,oBAAoB,GAA4B,IAAA,uBAAgB,EAAC;IAC5E,IAAI,EAAE,kBAAkB;IACxB,UAAU,EAAE,0BAAkB;IAC9B,IAAI,EAAE,yBAAW;IACjB,IAAI,EAAE,cAAc;CACrB,CAAC,CAAC;AAEH,YAAY"}
@@ -1,2 +0,0 @@
1
- export * from './gender.mock';
2
- export * from './gender.seed';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./gender.mock"), exports);
5
- tslib_1.__exportStar(require("./gender.seed"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/gender/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,wDAA8B"}
@@ -1,28 +0,0 @@
1
- export interface PersonCoreSeedContext {
2
- moduleName: string;
3
- route: string;
4
- }
5
- export declare const personCoreSeedContext: {
6
- moduleName: string;
7
- route: string;
8
- };
9
- export declare const personCoreSeedData: {
10
- module: {
11
- name: string;
12
- title: `@${string}:module.title`;
13
- icon: "fa-light fa-user";
14
- i18n: string;
15
- required: boolean;
16
- };
17
- };
18
- export * from './contact-assignment';
19
- export * from './contact-role';
20
- export * from './education-level';
21
- export * from './gender';
22
- export * from './marital-status';
23
- export * from './person';
24
- export * from './person-core.seed-catalog';
25
- export * from './person-identifier-type';
26
- export * from './person-relationship';
27
- export * from './person-title';
28
- export * from './religion';