@acorex-platform/module-person-core-server 0.0.15

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 (226) hide show
  1. package/contracts/src/contact-assignment.actions.d.ts +10 -0
  2. package/contracts/src/contact-assignment.actions.js +80 -0
  3. package/contracts/src/contact-assignment.actions.js.map +1 -0
  4. package/contracts/src/contact-assignment.utils.d.ts +14 -0
  5. package/contracts/src/contact-assignment.utils.js +47 -0
  6. package/contracts/src/contact-assignment.utils.js.map +1 -0
  7. package/contracts/src/entities/contact-assignment/contact-assignment.entity.d.ts +2 -0
  8. package/contracts/src/entities/contact-assignment/contact-assignment.entity.js +155 -0
  9. package/contracts/src/entities/contact-assignment/contact-assignment.entity.js.map +1 -0
  10. package/contracts/src/entities/contact-assignment/contact-assignment.types.d.ts +21 -0
  11. package/contracts/src/entities/contact-assignment/contact-assignment.types.js +4 -0
  12. package/contracts/src/entities/contact-assignment/contact-assignment.types.js.map +1 -0
  13. package/contracts/src/entities/contact-assignment/index.d.ts +2 -0
  14. package/contracts/src/entities/contact-assignment/index.js +6 -0
  15. package/contracts/src/entities/contact-assignment/index.js.map +1 -0
  16. package/contracts/src/entities/contact-role/contact-role.entity.d.ts +2 -0
  17. package/contracts/src/entities/contact-role/contact-role.entity.js +150 -0
  18. package/contracts/src/entities/contact-role/contact-role.entity.js.map +1 -0
  19. package/contracts/src/entities/contact-role/contact-role.types.d.ts +7 -0
  20. package/contracts/src/entities/contact-role/contact-role.types.js +4 -0
  21. package/contracts/src/entities/contact-role/contact-role.types.js.map +1 -0
  22. package/contracts/src/entities/contact-role/index.d.ts +2 -0
  23. package/contracts/src/entities/contact-role/index.js +6 -0
  24. package/contracts/src/entities/contact-role/index.js.map +1 -0
  25. package/contracts/src/entities/education-level/education-level.entity.d.ts +2 -0
  26. package/contracts/src/entities/education-level/education-level.entity.js +123 -0
  27. package/contracts/src/entities/education-level/education-level.entity.js.map +1 -0
  28. package/contracts/src/entities/education-level/education-level.types.d.ts +6 -0
  29. package/contracts/src/entities/education-level/education-level.types.js +4 -0
  30. package/contracts/src/entities/education-level/education-level.types.js.map +1 -0
  31. package/contracts/src/entities/education-level/index.d.ts +2 -0
  32. package/contracts/src/entities/education-level/index.js +6 -0
  33. package/contracts/src/entities/education-level/index.js.map +1 -0
  34. package/contracts/src/entities/gender/gender.entity.d.ts +2 -0
  35. package/contracts/src/entities/gender/gender.entity.js +123 -0
  36. package/contracts/src/entities/gender/gender.entity.js.map +1 -0
  37. package/contracts/src/entities/gender/gender.types.d.ts +6 -0
  38. package/contracts/src/entities/gender/gender.types.js +4 -0
  39. package/contracts/src/entities/gender/gender.types.js.map +1 -0
  40. package/contracts/src/entities/gender/index.d.ts +2 -0
  41. package/contracts/src/entities/gender/index.js +6 -0
  42. package/contracts/src/entities/gender/index.js.map +1 -0
  43. package/contracts/src/entities/index.d.ts +10 -0
  44. package/contracts/src/entities/index.js +14 -0
  45. package/contracts/src/entities/index.js.map +1 -0
  46. package/contracts/src/entities/marital-status/index.d.ts +2 -0
  47. package/contracts/src/entities/marital-status/index.js +6 -0
  48. package/contracts/src/entities/marital-status/index.js.map +1 -0
  49. package/contracts/src/entities/marital-status/marital-status.entity.d.ts +2 -0
  50. package/contracts/src/entities/marital-status/marital-status.entity.js +123 -0
  51. package/contracts/src/entities/marital-status/marital-status.entity.js.map +1 -0
  52. package/contracts/src/entities/marital-status/marital-status.types.d.ts +6 -0
  53. package/contracts/src/entities/marital-status/marital-status.types.js +4 -0
  54. package/contracts/src/entities/marital-status/marital-status.types.js.map +1 -0
  55. package/contracts/src/entities/person/index.d.ts +2 -0
  56. package/contracts/src/entities/person/index.js +6 -0
  57. package/contracts/src/entities/person/index.js.map +1 -0
  58. package/contracts/src/entities/person/person.entity.d.ts +2 -0
  59. package/contracts/src/entities/person/person.entity.js +456 -0
  60. package/contracts/src/entities/person/person.entity.js.map +1 -0
  61. package/contracts/src/entities/person/person.types.d.ts +40 -0
  62. package/contracts/src/entities/person/person.types.js +3 -0
  63. package/contracts/src/entities/person/person.types.js.map +1 -0
  64. package/contracts/src/entities/person-identifier-type/index.d.ts +2 -0
  65. package/contracts/src/entities/person-identifier-type/index.js +6 -0
  66. package/contracts/src/entities/person-identifier-type/index.js.map +1 -0
  67. package/contracts/src/entities/person-identifier-type/person-identifier-type.entity.d.ts +2 -0
  68. package/contracts/src/entities/person-identifier-type/person-identifier-type.entity.js +193 -0
  69. package/contracts/src/entities/person-identifier-type/person-identifier-type.entity.js.map +1 -0
  70. package/contracts/src/entities/person-identifier-type/person-identifier-type.types.d.ts +11 -0
  71. package/contracts/src/entities/person-identifier-type/person-identifier-type.types.js +4 -0
  72. package/contracts/src/entities/person-identifier-type/person-identifier-type.types.js.map +1 -0
  73. package/contracts/src/entities/person-relationship/index.d.ts +2 -0
  74. package/contracts/src/entities/person-relationship/index.js +6 -0
  75. package/contracts/src/entities/person-relationship/index.js.map +1 -0
  76. package/contracts/src/entities/person-relationship/person-relationship.entity.d.ts +2 -0
  77. package/contracts/src/entities/person-relationship/person-relationship.entity.js +155 -0
  78. package/contracts/src/entities/person-relationship/person-relationship.entity.js.map +1 -0
  79. package/contracts/src/entities/person-relationship/person-relationship.types.d.ts +10 -0
  80. package/contracts/src/entities/person-relationship/person-relationship.types.js +3 -0
  81. package/contracts/src/entities/person-relationship/person-relationship.types.js.map +1 -0
  82. package/contracts/src/entities/person-title/index.d.ts +2 -0
  83. package/contracts/src/entities/person-title/index.js +6 -0
  84. package/contracts/src/entities/person-title/index.js.map +1 -0
  85. package/contracts/src/entities/person-title/person-title.entity.d.ts +2 -0
  86. package/contracts/src/entities/person-title/person-title.entity.js +123 -0
  87. package/contracts/src/entities/person-title/person-title.entity.js.map +1 -0
  88. package/contracts/src/entities/person-title/person-title.types.d.ts +6 -0
  89. package/contracts/src/entities/person-title/person-title.types.js +4 -0
  90. package/contracts/src/entities/person-title/person-title.types.js.map +1 -0
  91. package/contracts/src/entities/religion/index.d.ts +2 -0
  92. package/contracts/src/entities/religion/index.js +6 -0
  93. package/contracts/src/entities/religion/index.js.map +1 -0
  94. package/contracts/src/entities/religion/religion.entity.d.ts +2 -0
  95. package/contracts/src/entities/religion/religion.entity.js +123 -0
  96. package/contracts/src/entities/religion/religion.entity.js.map +1 -0
  97. package/contracts/src/entities/religion/religion.types.d.ts +6 -0
  98. package/contracts/src/entities/religion/religion.types.js +4 -0
  99. package/contracts/src/entities/religion/religion.types.js.map +1 -0
  100. package/contracts/src/index.d.ts +7 -0
  101. package/contracts/src/index.js +13 -0
  102. package/contracts/src/index.js.map +1 -0
  103. package/contracts/src/menu.keys.d.ts +12 -0
  104. package/contracts/src/menu.keys.js +16 -0
  105. package/contracts/src/menu.keys.js.map +1 -0
  106. package/contracts/src/permission.keys.d.ts +31 -0
  107. package/contracts/src/permission.keys.js +35 -0
  108. package/contracts/src/permission.keys.js.map +1 -0
  109. package/contracts/src/person-relationship.actions.d.ts +10 -0
  110. package/contracts/src/person-relationship.actions.js +88 -0
  111. package/contracts/src/person-relationship.actions.js.map +1 -0
  112. package/contracts/src/root-config.d.ts +73 -0
  113. package/contracts/src/root-config.js +78 -0
  114. package/contracts/src/root-config.js.map +1 -0
  115. package/package.json +26 -0
  116. package/src/index.d.ts +5 -0
  117. package/src/index.js +13 -0
  118. package/src/index.js.map +1 -0
  119. package/src/lib/person-core-server.module.d.ts +2 -0
  120. package/src/lib/person-core-server.module.js +27 -0
  121. package/src/lib/person-core-server.module.js.map +1 -0
  122. package/src/lib/seed/contact-assignment/contact-assignment.mock.d.ts +8 -0
  123. package/src/lib/seed/contact-assignment/contact-assignment.mock.js +51 -0
  124. package/src/lib/seed/contact-assignment/contact-assignment.mock.js.map +1 -0
  125. package/src/lib/seed/contact-assignment/contact-assignment.seed.d.ts +5 -0
  126. package/src/lib/seed/contact-assignment/contact-assignment.seed.js +32 -0
  127. package/src/lib/seed/contact-assignment/contact-assignment.seed.js.map +1 -0
  128. package/src/lib/seed/contact-assignment/index.d.ts +2 -0
  129. package/src/lib/seed/contact-assignment/index.js +6 -0
  130. package/src/lib/seed/contact-assignment/index.js.map +1 -0
  131. package/src/lib/seed/contact-role/contact-role.mock.d.ts +40 -0
  132. package/src/lib/seed/contact-role/contact-role.mock.js +258 -0
  133. package/src/lib/seed/contact-role/contact-role.mock.js.map +1 -0
  134. package/src/lib/seed/contact-role/contact-role.seed.d.ts +5 -0
  135. package/src/lib/seed/contact-role/contact-role.seed.js +31 -0
  136. package/src/lib/seed/contact-role/contact-role.seed.js.map +1 -0
  137. package/src/lib/seed/contact-role/index.d.ts +2 -0
  138. package/src/lib/seed/contact-role/index.js +6 -0
  139. package/src/lib/seed/contact-role/index.js.map +1 -0
  140. package/src/lib/seed/education-level/education-level.mock.d.ts +14 -0
  141. package/src/lib/seed/education-level/education-level.mock.js +52 -0
  142. package/src/lib/seed/education-level/education-level.mock.js.map +1 -0
  143. package/src/lib/seed/education-level/education-level.seed.d.ts +5 -0
  144. package/src/lib/seed/education-level/education-level.seed.js +31 -0
  145. package/src/lib/seed/education-level/education-level.seed.js.map +1 -0
  146. package/src/lib/seed/education-level/index.d.ts +2 -0
  147. package/src/lib/seed/education-level/index.js +6 -0
  148. package/src/lib/seed/education-level/index.js.map +1 -0
  149. package/src/lib/seed/gender/gender.mock.d.ts +28 -0
  150. package/src/lib/seed/gender/gender.mock.js +40 -0
  151. package/src/lib/seed/gender/gender.mock.js.map +1 -0
  152. package/src/lib/seed/gender/gender.seed.d.ts +5 -0
  153. package/src/lib/seed/gender/gender.seed.js +31 -0
  154. package/src/lib/seed/gender/gender.seed.js.map +1 -0
  155. package/src/lib/seed/gender/index.d.ts +2 -0
  156. package/src/lib/seed/gender/index.js +6 -0
  157. package/src/lib/seed/gender/index.js.map +1 -0
  158. package/src/lib/seed/index.d.ts +28 -0
  159. package/src/lib/seed/index.js +30 -0
  160. package/src/lib/seed/index.js.map +1 -0
  161. package/src/lib/seed/marital-status/index.d.ts +2 -0
  162. package/src/lib/seed/marital-status/index.js +6 -0
  163. package/src/lib/seed/marital-status/index.js.map +1 -0
  164. package/src/lib/seed/marital-status/marital-status.mock.d.ts +33 -0
  165. package/src/lib/seed/marital-status/marital-status.mock.js +46 -0
  166. package/src/lib/seed/marital-status/marital-status.mock.js.map +1 -0
  167. package/src/lib/seed/marital-status/marital-status.seed.d.ts +5 -0
  168. package/src/lib/seed/marital-status/marital-status.seed.js +31 -0
  169. package/src/lib/seed/marital-status/marital-status.seed.js.map +1 -0
  170. package/src/lib/seed/person/index.d.ts +3 -0
  171. package/src/lib/seed/person/index.js +7 -0
  172. package/src/lib/seed/person/index.js.map +1 -0
  173. package/src/lib/seed/person/person-natural-ids.constants.d.ts +76 -0
  174. package/src/lib/seed/person/person-natural-ids.constants.js +82 -0
  175. package/src/lib/seed/person/person-natural-ids.constants.js.map +1 -0
  176. package/src/lib/seed/person/person.mock.d.ts +5 -0
  177. package/src/lib/seed/person/person.mock.js +372 -0
  178. package/src/lib/seed/person/person.mock.js.map +1 -0
  179. package/src/lib/seed/person/person.seed.d.ts +5 -0
  180. package/src/lib/seed/person/person.seed.js +31 -0
  181. package/src/lib/seed/person/person.seed.js.map +1 -0
  182. package/src/lib/seed/person-core-seed.provider.d.ts +4 -0
  183. package/src/lib/seed/person-core-seed.provider.js +18 -0
  184. package/src/lib/seed/person-core-seed.provider.js.map +1 -0
  185. package/src/lib/seed/person-core-seed.tokens.d.ts +1 -0
  186. package/src/lib/seed/person-core-seed.tokens.js +7 -0
  187. package/src/lib/seed/person-core-seed.tokens.js.map +1 -0
  188. package/src/lib/seed/person-core.seed-catalog.d.ts +2 -0
  189. package/src/lib/seed/person-core.seed-catalog.js +31 -0
  190. package/src/lib/seed/person-core.seed-catalog.js.map +1 -0
  191. package/src/lib/seed/person-identifier-type/index.d.ts +2 -0
  192. package/src/lib/seed/person-identifier-type/index.js +6 -0
  193. package/src/lib/seed/person-identifier-type/index.js.map +1 -0
  194. package/src/lib/seed/person-identifier-type/person-identifier-type.mock.d.ts +4 -0
  195. package/src/lib/seed/person-identifier-type/person-identifier-type.mock.js +68 -0
  196. package/src/lib/seed/person-identifier-type/person-identifier-type.mock.js.map +1 -0
  197. package/src/lib/seed/person-identifier-type/person-identifier-type.seed.d.ts +5 -0
  198. package/src/lib/seed/person-identifier-type/person-identifier-type.seed.js +31 -0
  199. package/src/lib/seed/person-identifier-type/person-identifier-type.seed.js.map +1 -0
  200. package/src/lib/seed/person-relationship/index.d.ts +2 -0
  201. package/src/lib/seed/person-relationship/index.js +6 -0
  202. package/src/lib/seed/person-relationship/index.js.map +1 -0
  203. package/src/lib/seed/person-relationship/person-relationship.mock.d.ts +30 -0
  204. package/src/lib/seed/person-relationship/person-relationship.mock.js +156 -0
  205. package/src/lib/seed/person-relationship/person-relationship.mock.js.map +1 -0
  206. package/src/lib/seed/person-relationship/person-relationship.seed.d.ts +5 -0
  207. package/src/lib/seed/person-relationship/person-relationship.seed.js +31 -0
  208. package/src/lib/seed/person-relationship/person-relationship.seed.js.map +1 -0
  209. package/src/lib/seed/person-title/index.d.ts +2 -0
  210. package/src/lib/seed/person-title/index.js +6 -0
  211. package/src/lib/seed/person-title/index.js.map +1 -0
  212. package/src/lib/seed/person-title/person-title.mock.d.ts +43 -0
  213. package/src/lib/seed/person-title/person-title.mock.js +58 -0
  214. package/src/lib/seed/person-title/person-title.mock.js.map +1 -0
  215. package/src/lib/seed/person-title/person-title.seed.d.ts +5 -0
  216. package/src/lib/seed/person-title/person-title.seed.js +31 -0
  217. package/src/lib/seed/person-title/person-title.seed.js.map +1 -0
  218. package/src/lib/seed/religion/index.d.ts +2 -0
  219. package/src/lib/seed/religion/index.js +6 -0
  220. package/src/lib/seed/religion/index.js.map +1 -0
  221. package/src/lib/seed/religion/religion.mock.d.ts +5 -0
  222. package/src/lib/seed/religion/religion.mock.js +48 -0
  223. package/src/lib/seed/religion/religion.mock.js.map +1 -0
  224. package/src/lib/seed/religion/religion.seed.d.ts +5 -0
  225. package/src/lib/seed/religion/religion.seed.js +31 -0
  226. package/src/lib/seed/religion/religion.seed.js.map +1 -0
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var _a, _b;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.contactAssignmentIds = exports.CONTACT_ASSIGNMENTS_MOCK = void 0;
5
+ const seed_1 = require("@acorex-platform/module-common-server/seed");
6
+ const module_business_core_server_1 = require("@acorex-platform/module-business-core-server");
7
+ const contact_role_mock_1 = require("../contact-role/contact-role.mock");
8
+ const person_mock_1 = require("../person/person.mock");
9
+ const M = seed_1.createMultiLanguageString;
10
+ const CONTACT_ASSIGNMENT_ROLES = [
11
+ contact_role_mock_1.contactRoleIds.primaryContact,
12
+ contact_role_mock_1.contactRoleIds.accountManager,
13
+ contact_role_mock_1.contactRoleIds.billingContact,
14
+ contact_role_mock_1.contactRoleIds.technicalContact,
15
+ contact_role_mock_1.contactRoleIds.salesContact,
16
+ ];
17
+ const getRoleTitle = (roleId) => { var _a, _b; return (_b = (_a = contact_role_mock_1.contactRoleMocks.find((r) => r.id === roleId)) === null || _a === void 0 ? void 0 : _a.title) !== null && _b !== void 0 ? _b : M('Other', 'سایر'); };
18
+ const naturalPersonIds = Object.values(person_mock_1.personNaturalIds);
19
+ const createContactAssignmentMock = () => {
20
+ const mock = [];
21
+ const partiesToUse = module_business_core_server_1.PARTIES_MOCK.slice(0, 5);
22
+ const personsToUse = person_mock_1.personMock.filter((p) => naturalPersonIds.includes(p.id)).slice(0, 10);
23
+ partiesToUse.forEach((party, partyIndex) => {
24
+ const personsForParty = personsToUse.slice(partyIndex * 2, (partyIndex + 1) * 2 + 1);
25
+ personsForParty.forEach((person, personIndex) => {
26
+ var _a;
27
+ const roleId = (_a = CONTACT_ASSIGNMENT_ROLES[personIndex % CONTACT_ASSIGNMENT_ROLES.length]) !== null && _a !== void 0 ? _a : contact_role_mock_1.contactRoleIds.primaryContact;
28
+ mock.push({
29
+ id: seed_1.AXPDataGenerator.uuid(),
30
+ partyId: party.id,
31
+ personId: person.id,
32
+ roleId,
33
+ party: { id: party.id, title: party.title },
34
+ person: {
35
+ id: person.id,
36
+ fullName: person.fullName,
37
+ phones: person.phones,
38
+ emails: person.emails,
39
+ },
40
+ role: { id: roleId, title: getRoleTitle(roleId) },
41
+ });
42
+ });
43
+ });
44
+ return mock;
45
+ };
46
+ exports.CONTACT_ASSIGNMENTS_MOCK = createContactAssignmentMock();
47
+ exports.contactAssignmentIds = {
48
+ techSolutionsPrimary: (_a = exports.CONTACT_ASSIGNMENTS_MOCK[0]) === null || _a === void 0 ? void 0 : _a.id,
49
+ techSolutionsAccountManager: (_b = exports.CONTACT_ASSIGNMENTS_MOCK[1]) === null || _b === void 0 ? void 0 : _b.id,
50
+ };
51
+ //# sourceMappingURL=contact-assignment.mock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact-assignment.mock.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/contact-assignment/contact-assignment.mock.ts"],"names":[],"mappings":";;;;AACA,qEAAuG;AAIvG,8FAA4E;AAC5E,yEAAqF;AACrF,uDAAqE;AAIrE,MAAM,CAAC,GAAG,gCAAyB,CAAC;AAEpC,MAAM,wBAAwB,GAAG;IAC/B,kCAAc,CAAC,cAAc;IAC7B,kCAAc,CAAC,cAAc;IAC7B,kCAAc,CAAC,cAAc;IAC7B,kCAAc,CAAC,gBAAgB;IAC/B,kCAAc,CAAC,YAAY;CAC5B,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,MAAc,EAA0B,EAAE,eAC9D,OAAA,MAAA,MAAA,oCAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,0CAAE,KAAK,mCAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA,EAAA,CAAC;AAE7E,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,8BAAgB,CAAa,CAAC;AAErE,MAAM,2BAA2B,GAAG,GAA8C,EAAE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AC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEW,QAAA,wBAAwB,GAAG,2BAA2B,EAAE,CAAC;AAEzD,QAAA,oBAAoB,GAAG;IAClC,oBAAoB,EAAE,MAAA,gCAAwB,CAAC,CAAC,CAAC,0CAAE,EAAE;IACrD,2BAA2B,EAAE,MAAA,gCAAwB,CAAC,CAAC,CAAC,0CAAE,EAAE;CAC7D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { AXPDataSeeder, AXPEntitySeedDefinition, AXPEntitySeedStorage } from '@acorex-platform/module-common-server/seed';
2
+ export declare const CONTACT_ASSIGNMENT_ENTITY_NAME: string;
3
+ export declare function seedContactAssignmentData(storage: AXPEntitySeedStorage): Promise<void>;
4
+ export declare function createContactAssignmentDataSeeder(storage: AXPEntitySeedStorage): AXPDataSeeder;
5
+ export declare const contactAssignmentSeedDefinition: AXPEntitySeedDefinition;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.contactAssignmentSeedDefinition = exports.CONTACT_ASSIGNMENT_ENTITY_NAME = void 0;
4
+ exports.seedContactAssignmentData = seedContactAssignmentData;
5
+ exports.createContactAssignmentDataSeeder = createContactAssignmentDataSeeder;
6
+ const tslib_1 = require("tslib");
7
+ const seed_1 = require("@acorex-platform/module-common-server/seed");
8
+ const module_person_core_contracts_1 = require("@acorex-platform/module-person-core-contracts");
9
+ const contact_assignment_mock_1 = require("./contact-assignment.mock");
10
+ //#region ---- Constants ----
11
+ exports.CONTACT_ASSIGNMENT_ENTITY_NAME = `${module_person_core_contracts_1.RootConfig.module.name}.${module_person_core_contracts_1.RootConfig.entities.contactAssignment.name}`;
12
+ //#endregion
13
+ //#region ---- Pure seed logic ----
14
+ function seedContactAssignmentData(storage) {
15
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
+ yield storage.initial(exports.CONTACT_ASSIGNMENT_ENTITY_NAME, contact_assignment_mock_1.CONTACT_ASSIGNMENTS_MOCK, { uniqueKeys: ['id'] });
17
+ });
18
+ }
19
+ function createContactAssignmentDataSeeder(storage) {
20
+ return {
21
+ name: 'ContactAssignmentDataSeeder',
22
+ seed: () => seedContactAssignmentData(storage),
23
+ };
24
+ }
25
+ exports.contactAssignmentSeedDefinition = (0, seed_1.defineEntitySeed)({
26
+ name: 'ContactAssignmentDataSeeder',
27
+ entityName: exports.CONTACT_ASSIGNMENT_ENTITY_NAME,
28
+ rows: contact_assignment_mock_1.CONTACT_ASSIGNMENTS_MOCK,
29
+ seed: seedContactAssignmentData,
30
+ });
31
+ //#endregion
32
+ //# sourceMappingURL=contact-assignment.seed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact-assignment.seed.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/contact-assignment/contact-assignment.seed.ts"],"names":[],"mappings":";;;AAkBA,8DAEC;AAED,8EAKC;;AA3BD,qEAKoD;AACpD,gGAA2E;AAE3E,uEAAqE;AAErE,6BAA6B;AAEhB,QAAA,8BAA8B,GAAG,GAAG,yCAAU,CAAC,MAAM,CAAC,IAAI,IAAI,yCAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;AAExH,YAAY;AAEZ,mCAAmC;AAEnC,SAAsB,yBAAyB,CAAC,OAA6B;;QAC3E,MAAM,OAAO,CAAC,OAAO,CAAC,sCAA8B,EAAE,kDAAwB,EAAE,EAAE,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1G,CAAC;CAAA;AAED,SAAgB,iCAAiC,CAAC,OAA6B;IAC7E,OAAO;QACL,IAAI,EAAE,6BAA6B;QACnC,IAAI,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,OAAO,CAAC;KAC/C,CAAC;AACJ,CAAC;AAEY,QAAA,+BAA+B,GAA4B,IAAA,uBAAgB,EAAC;IACvF,IAAI,EAAE,6BAA6B;IACnC,UAAU,EAAE,sCAA8B;IAC1C,IAAI,EAAE,kDAAwB;IAC9B,IAAI,EAAE,yBAAyB;CAChC,CAAC,CAAC;AAEH,YAAY"}
@@ -0,0 +1,2 @@
1
+ export * from './contact-assignment.mock';
2
+ export * from './contact-assignment.seed';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./contact-assignment.mock"), exports);
5
+ tslib_1.__exportStar(require("./contact-assignment.seed"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/seed/contact-assignment/index.ts"],"names":[],"mappings":";;;AAAA,oEAA0C;AAC1C,oEAA0C"}
@@ -0,0 +1,40 @@
1
+ import { AXMPersonCoreContactRoleEntityModel } from '@acorex-platform/module-person-core-contracts';
2
+ type ContactRoleMockDto = AXMPersonCoreContactRoleEntityModel;
3
+ export declare const contactRoleIds: {
4
+ readonly customer: string;
5
+ readonly vendor: string;
6
+ readonly subcontractor: string;
7
+ readonly client: string;
8
+ readonly employee: string;
9
+ readonly partner: string;
10
+ readonly supplier: string;
11
+ readonly member: string;
12
+ readonly other: string;
13
+ readonly siteManager: string;
14
+ readonly facilityContact: string;
15
+ readonly emergencyContact: string;
16
+ readonly maintenanceContact: string;
17
+ readonly securityContact: string;
18
+ readonly receptionist: string;
19
+ readonly decisionMaker: string;
20
+ readonly influencer: string;
21
+ readonly economicBuyer: string;
22
+ readonly user: string;
23
+ readonly primaryContact: string;
24
+ readonly accountManager: string;
25
+ readonly billingContact: string;
26
+ readonly technicalContact: string;
27
+ readonly salesContact: string;
28
+ readonly employs: string;
29
+ readonly clientOf: string;
30
+ readonly vendorOf: string;
31
+ readonly partnerOf: string;
32
+ readonly mother: string;
33
+ readonly father: string;
34
+ readonly sibling: string;
35
+ readonly spouse: string;
36
+ readonly child: string;
37
+ readonly guardian: string;
38
+ };
39
+ export declare const contactRoleMocks: ContactRoleMockDto[];
40
+ export {};
@@ -0,0 +1,258 @@
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
@@ -0,0 +1 @@
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;IACrC,aAAa,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACtC,UAAU,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACnC,aAAa,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACtC,IAAI,EAAE,uBAAgB,CAAC,IAAI,EAAE;IAC7B,sBAAsB;IACtB,cAAc,EAAE,uBAAgB,CAAC,IAAI,EAAE;IACvC,cAAc,EAAE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AE,CAAC,CAAC,2BAA2B,EAAE,MAAM,CAAC;KACpD;IACD;QACE,EAAE,EAAE,sBAAc,CAAC,MAAM;QACzB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC;QACzB,WAAW,EAAE,CAAC,CAAC,2BAA2B,EAAE,KAAK,CAAC;KACnD;IACD;QACE,EAAE,EAAE,sBAAc,CAAC,OAAO;QAC1B,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,CAAC,CAAC,SAAS,EAAE,aAAa,CAAC;QAClC,WAAW,EAAE,CAAC,CAAC,mBAAmB,EAAE,SAAS,CAAC;KAC/C;IACD;QACE,EAAE,EAAE,sBAAc,CAAC,MAAM;QACzB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC;QAC1B,WAAW,EAAE,CAAC,CAAC,iBAAiB,EAAE,KAAK,CAAC;KACzC;IACD;QACE,EAAE,EAAE,sBAAc,CAAC,KAAK;QACxB,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC;QAC1B,WAAW,EAAE,CAAC,CAAC,iBAAiB,EAAE,aAAa,CAAC;KACjD;IACD;QACE,EAAE,EAAE,sBAAc,CAAC,QAAQ;QAC3B,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC;QAC9B,WAAW,EAAE,CAAC,CAAC,6BAA6B,EAAE,wBAAwB,CAAC;KACxE;CACF,CAAC"}
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,31 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export * from './contact-role.mock';
2
+ export * from './contact-role.seed';
@@ -0,0 +1,6 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,14 @@
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
+ }[];
@@ -0,0 +1,52 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,31 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export * from './education-level.mock';
2
+ export * from './education-level.seed';
@@ -0,0 +1,6 @@
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
@@ -0,0 +1 @@
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"}