@acorex-platform/module-person-core-server 0.0.18 → 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 -409
  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
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.educationLevelFactory = void 0;
4
+ var education_level_entity_1 = require("./entities/education-level/education-level.entity");
5
+ Object.defineProperty(exports, "educationLevelFactory", { enumerable: true, get: function () { return education_level_entity_1.educationLevelFactory; } });
6
+ //# sourceMappingURL=entity-entry.education-level.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.education-level.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.education-level.ts"],"names":[],"mappings":";;;AAAA,4FAA0F;AAAjF,+HAAA,qBAAqB,OAAA"}
@@ -0,0 +1 @@
1
+ export { genderFactory } from './entities/gender/gender.entity';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.genderFactory = void 0;
4
+ var gender_entity_1 = require("./entities/gender/gender.entity");
5
+ Object.defineProperty(exports, "genderFactory", { enumerable: true, get: function () { return gender_entity_1.genderFactory; } });
6
+ //# sourceMappingURL=entity-entry.gender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.gender.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.gender.ts"],"names":[],"mappings":";;;AAAA,iEAAgE;AAAvD,8GAAA,aAAa,OAAA"}
@@ -0,0 +1 @@
1
+ export { maritalStatusFactory } from './entities/marital-status/marital-status.entity';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.maritalStatusFactory = void 0;
4
+ var marital_status_entity_1 = require("./entities/marital-status/marital-status.entity");
5
+ Object.defineProperty(exports, "maritalStatusFactory", { enumerable: true, get: function () { return marital_status_entity_1.maritalStatusFactory; } });
6
+ //# sourceMappingURL=entity-entry.marital-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.marital-status.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.marital-status.ts"],"names":[],"mappings":";;;AAAA,yFAAuF;AAA9E,6HAAA,oBAAoB,OAAA"}
@@ -0,0 +1 @@
1
+ export { personIdentifierTypeFactory } from './entities/person-identifier-type/person-identifier-type.entity';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.personIdentifierTypeFactory = void 0;
4
+ var person_identifier_type_entity_1 = require("./entities/person-identifier-type/person-identifier-type.entity");
5
+ Object.defineProperty(exports, "personIdentifierTypeFactory", { enumerable: true, get: function () { return person_identifier_type_entity_1.personIdentifierTypeFactory; } });
6
+ //# sourceMappingURL=entity-entry.person-identifier-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.person-identifier-type.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.person-identifier-type.ts"],"names":[],"mappings":";;;AAAA,iHAA8G;AAArG,4IAAA,2BAA2B,OAAA"}
@@ -0,0 +1 @@
1
+ export { personRelationshipFactory } from './entities/person-relationship/person-relationship.entity';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.personRelationshipFactory = void 0;
4
+ var person_relationship_entity_1 = require("./entities/person-relationship/person-relationship.entity");
5
+ Object.defineProperty(exports, "personRelationshipFactory", { enumerable: true, get: function () { return person_relationship_entity_1.personRelationshipFactory; } });
6
+ //# sourceMappingURL=entity-entry.person-relationship.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.person-relationship.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.person-relationship.ts"],"names":[],"mappings":";;;AAAA,wGAAsG;AAA7F,uIAAA,yBAAyB,OAAA"}
@@ -0,0 +1 @@
1
+ export { personTitleFactory } from './entities/person-title/person-title.entity';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.personTitleFactory = void 0;
4
+ var person_title_entity_1 = require("./entities/person-title/person-title.entity");
5
+ Object.defineProperty(exports, "personTitleFactory", { enumerable: true, get: function () { return person_title_entity_1.personTitleFactory; } });
6
+ //# sourceMappingURL=entity-entry.person-title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.person-title.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.person-title.ts"],"names":[],"mappings":";;;AAAA,mFAAiF;AAAxE,yHAAA,kBAAkB,OAAA"}
@@ -0,0 +1 @@
1
+ export { personFactory } from './entities/person/person.entity';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.personFactory = void 0;
4
+ var person_entity_1 = require("./entities/person/person.entity");
5
+ Object.defineProperty(exports, "personFactory", { enumerable: true, get: function () { return person_entity_1.personFactory; } });
6
+ //# sourceMappingURL=entity-entry.person.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.person.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.person.ts"],"names":[],"mappings":";;;AAAA,iEAAgE;AAAvD,8GAAA,aAAa,OAAA"}
@@ -0,0 +1 @@
1
+ export { religionFactory } from './entities/religion/religion.entity';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.religionFactory = void 0;
4
+ var religion_entity_1 = require("./entities/religion/religion.entity");
5
+ Object.defineProperty(exports, "religionFactory", { enumerable: true, get: function () { return religion_entity_1.religionFactory; } });
6
+ //# sourceMappingURL=entity-entry.religion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-entry.religion.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.religion.ts"],"names":[],"mappings":";;;AAAA,uEAAsE;AAA7D,kHAAA,eAAe,OAAA"}
@@ -2,6 +2,8 @@ export * from './menu.keys';
2
2
  export * from './permission.keys';
3
3
  export * from './contact-assignment.actions';
4
4
  export * from './contact-assignment.utils';
5
+ export * from './person-full-name.util';
5
6
  export * from './person-relationship.actions';
6
7
  export * from './root-config';
8
+ export * from './manifest';
7
9
  export * from './entities';
@@ -6,8 +6,10 @@ tslib_1.__exportStar(require("./menu.keys"), exports);
6
6
  tslib_1.__exportStar(require("./permission.keys"), exports);
7
7
  tslib_1.__exportStar(require("./contact-assignment.actions"), exports);
8
8
  tslib_1.__exportStar(require("./contact-assignment.utils"), exports);
9
+ tslib_1.__exportStar(require("./person-full-name.util"), exports);
9
10
  tslib_1.__exportStar(require("./person-relationship.actions"), exports);
10
11
  tslib_1.__exportStar(require("./root-config"), exports);
12
+ tslib_1.__exportStar(require("./manifest"), exports);
11
13
  //#endregion
12
14
  tslib_1.__exportStar(require("./entities"), exports);
13
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/server/contracts/src/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEpC,sDAA4B;AAC5B,4DAAkC;AAClC,uEAA6C;AAC7C,qEAA2C;AAC3C,wEAA8C;AAE9C,wDAA8B;AAE9B,YAAY;AAEZ,qDAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEpC,sDAA4B;AAC5B,4DAAkC;AAClC,uEAA6C;AAC7C,qEAA2C;AAC3C,kEAAwC;AACxC,wEAA8C;AAE9C,wDAA8B;AAC9B,qDAA2B;AAE3B,YAAY;AAEZ,qDAA2B"}
@@ -0,0 +1,6 @@
1
+ import { AXPModuleManifest } from '@acorex-platform/framework-shared/core';
2
+ /**
3
+ * Person Core Module Manifest.
4
+ * Defines module metadata for shared person/demographic reference data.
5
+ */
6
+ export declare const PersonCoreManifest: AXPModuleManifest;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ //#region ---- Imports ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PersonCoreManifest = void 0;
5
+ const root_config_1 = require("./root-config");
6
+ //#endregion
7
+ //#region ---- Manifest Definition ----
8
+ /**
9
+ * Person Core Module Manifest.
10
+ * Defines module metadata for shared person/demographic reference data.
11
+ */
12
+ exports.PersonCoreManifest = {
13
+ name: root_config_1.RootConfig.module.name,
14
+ version: '1.0.0',
15
+ title: root_config_1.RootConfig.module.title,
16
+ icon: root_config_1.RootConfig.module.icon,
17
+ i18n: root_config_1.RootConfig.config.i18n,
18
+ type: 'platform',
19
+ domain: 'platform',
20
+ dependencies: ['LocationManagement'],
21
+ required: true,
22
+ };
23
+ //#endregion
24
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/manifest.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;AAG/B,+CAA2C;AAE3C,YAAY;AAEZ,2CAA2C;AAE3C;;;GAGG;AACU,QAAA,kBAAkB,GAAsB;IACnD,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,wBAAU,CAAC,MAAM,CAAC,KAAK;IAC9B,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,UAAU;IAClB,YAAY,EAAE,CAAC,oBAAoB,CAAC;IACpC,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"menu.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/server/contracts/src/menu.keys.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACnC,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,qBAAqB;IAC9B,mBAAmB,EAAE,kCAAkC;IACvD,eAAe,EAAE,8BAA8B;IAC/C,OAAO,EAAE,qBAAqB;IAC9B,eAAe,EAAE,8BAA8B;IAC/C,YAAY,EAAE,2BAA2B;IACzC,qBAAqB,EAAE,qCAAqC;IAC5D,SAAS,EAAE,uBAAuB;IAClC,YAAY,EAAE,2BAA2B;CACjC,CAAC"}
1
+ {"version":3,"file":"menu.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/menu.keys.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACnC,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,qBAAqB;IAC9B,mBAAmB,EAAE,kCAAkC;IACvD,eAAe,EAAE,8BAA8B;IAC/C,OAAO,EAAE,qBAAqB;IAC9B,eAAe,EAAE,8BAA8B;IAC/C,YAAY,EAAE,2BAA2B;IACzC,qBAAqB,EAAE,qCAAqC;IAC5D,SAAS,EAAE,uBAAuB;IAClC,YAAY,EAAE,2BAA2B;CACjC,CAAC"}
@@ -1,31 +1,52 @@
1
+ /**
2
+ * People & Organization capabilities used by this module.
3
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
4
+ */
5
+ export declare const AXPPeopleOrganizationPermissionKeys: {
6
+ readonly Access: "PeopleOrganization:Permission:Access";
7
+ readonly ViewOrganization: "PeopleOrganization:Permission:ViewOrganization";
8
+ readonly MaintainOrganization: "PeopleOrganization:Permission:MaintainOrganization";
9
+ readonly MaintainTeams: "PeopleOrganization:Permission:MaintainTeams";
10
+ readonly MaintainEmployees: "PeopleOrganization:Permission:MaintainEmployees";
11
+ readonly ManageEmployeeActions: "PeopleOrganization:Permission:ManageEmployeeActions";
12
+ readonly MaintainPersons: "PeopleOrganization:Permission:MaintainPersons";
13
+ readonly MaintainAttendance: "PeopleOrganization:Permission:MaintainAttendance";
14
+ readonly ManageAttendanceActions: "PeopleOrganization:Permission:ManageAttendanceActions";
15
+ readonly DesignJobs: "PeopleOrganization:Permission:DesignJobs";
16
+ readonly Setup: "PeopleOrganization:Permission:Setup";
17
+ };
18
+ /**
19
+ * @deprecated Prefer {@link AXPPeopleOrganizationPermissionKeys}.
20
+ * Legacy nested shape kept so existing imports compile during migration.
21
+ */
1
22
  export declare const AXMPersonCorePermissionKeys: {
2
23
  readonly PersonCore: {
3
24
  readonly Person: {
4
- readonly Management: "PersonCore:Permission:Person.Management";
25
+ readonly Management: "PeopleOrganization:Permission:MaintainPersons";
5
26
  };
6
27
  readonly EducationLevel: {
7
- readonly Management: "PersonCore:Permission:EducationLevel.Management";
28
+ readonly Management: "PeopleOrganization:Permission:Setup";
8
29
  };
9
30
  readonly Gender: {
10
- readonly Management: "PersonCore:Permission:Gender.Management";
31
+ readonly Management: "PeopleOrganization:Permission:Setup";
11
32
  };
12
33
  readonly MaritalStatus: {
13
- readonly Management: "PersonCore:Permission:MaritalStatus.Management";
34
+ readonly Management: "PeopleOrganization:Permission:Setup";
14
35
  };
15
36
  readonly PersonTitle: {
16
- readonly Management: "PersonCore:Permission:PersonTitle.Management";
37
+ readonly Management: "PeopleOrganization:Permission:Setup";
17
38
  };
18
39
  readonly PersonIdentifierType: {
19
- readonly Management: "PersonCore:Permission:PersonIdentifierType.Management";
40
+ readonly Management: "PeopleOrganization:Permission:Setup";
20
41
  };
21
42
  readonly PersonRelationship: {
22
- readonly Management: "PersonCore:Permission:PersonRelationship.Management";
43
+ readonly Management: "PeopleOrganization:Permission:Setup";
23
44
  };
24
45
  readonly Religion: {
25
- readonly Management: "PersonCore:Permission:Religion.Management";
46
+ readonly Management: "PeopleOrganization:Permission:Setup";
26
47
  };
27
48
  readonly ContactRole: {
28
- readonly Management: "PersonCore:Permission:ContactRole.Management";
49
+ readonly Management: "PeopleOrganization:Permission:Setup";
29
50
  };
30
51
  };
31
52
  };
@@ -1,34 +1,55 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AXMPersonCorePermissionKeys = void 0;
3
+ exports.AXMPersonCorePermissionKeys = exports.AXPPeopleOrganizationPermissionKeys = void 0;
4
+ /**
5
+ * People & Organization capabilities used by this module.
6
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
7
+ */
8
+ exports.AXPPeopleOrganizationPermissionKeys = {
9
+ Access: 'PeopleOrganization:Permission:Access',
10
+ ViewOrganization: 'PeopleOrganization:Permission:ViewOrganization',
11
+ MaintainOrganization: 'PeopleOrganization:Permission:MaintainOrganization',
12
+ MaintainTeams: 'PeopleOrganization:Permission:MaintainTeams',
13
+ MaintainEmployees: 'PeopleOrganization:Permission:MaintainEmployees',
14
+ ManageEmployeeActions: 'PeopleOrganization:Permission:ManageEmployeeActions',
15
+ MaintainPersons: 'PeopleOrganization:Permission:MaintainPersons',
16
+ MaintainAttendance: 'PeopleOrganization:Permission:MaintainAttendance',
17
+ ManageAttendanceActions: 'PeopleOrganization:Permission:ManageAttendanceActions',
18
+ DesignJobs: 'PeopleOrganization:Permission:DesignJobs',
19
+ Setup: 'PeopleOrganization:Permission:Setup',
20
+ };
21
+ /**
22
+ * @deprecated Prefer {@link AXPPeopleOrganizationPermissionKeys}.
23
+ * Legacy nested shape kept so existing imports compile during migration.
24
+ */
4
25
  exports.AXMPersonCorePermissionKeys = {
5
26
  PersonCore: {
6
27
  Person: {
7
- Management: 'PersonCore:Permission:Person.Management',
28
+ Management: exports.AXPPeopleOrganizationPermissionKeys.MaintainPersons,
8
29
  },
9
30
  EducationLevel: {
10
- Management: 'PersonCore:Permission:EducationLevel.Management',
31
+ Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
11
32
  },
12
33
  Gender: {
13
- Management: 'PersonCore:Permission:Gender.Management',
34
+ Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
14
35
  },
15
36
  MaritalStatus: {
16
- Management: 'PersonCore:Permission:MaritalStatus.Management',
37
+ Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
17
38
  },
18
39
  PersonTitle: {
19
- Management: 'PersonCore:Permission:PersonTitle.Management',
40
+ Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
20
41
  },
21
42
  PersonIdentifierType: {
22
- Management: 'PersonCore:Permission:PersonIdentifierType.Management',
43
+ Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
23
44
  },
24
45
  PersonRelationship: {
25
- Management: 'PersonCore:Permission:PersonRelationship.Management',
46
+ Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
26
47
  },
27
48
  Religion: {
28
- Management: 'PersonCore:Permission:Religion.Management',
49
+ Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
29
50
  },
30
51
  ContactRole: {
31
- Management: 'PersonCore:Permission:ContactRole.Management',
52
+ Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
32
53
  },
33
54
  },
34
55
  };
@@ -1 +1 @@
1
- {"version":3,"file":"permission.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/server/contracts/src/permission.keys.ts"],"names":[],"mappings":";;;AAAa,QAAA,2BAA2B,GAAG;IACzC,UAAU,EAAE;QACV,MAAM,EAAE;YACN,UAAU,EAAE,yCAAyC;SACtD;QACD,cAAc,EAAE;YACd,UAAU,EAAE,iDAAiD;SAC9D;QACD,MAAM,EAAE;YACN,UAAU,EAAE,yCAAyC;SACtD;QACD,aAAa,EAAE;YACb,UAAU,EAAE,gDAAgD;SAC7D;QACD,WAAW,EAAE;YACX,UAAU,EAAE,8CAA8C;SAC3D;QACD,oBAAoB,EAAE;YACpB,UAAU,EAAE,uDAAuD;SACpE;QACD,kBAAkB,EAAE;YAClB,UAAU,EAAE,qDAAqD;SAClE;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,2CAA2C;SACxD;QACD,WAAW,EAAE;YACX,UAAU,EAAE,8CAA8C;SAC3D;KACF;CACO,CAAC"}
1
+ {"version":3,"file":"permission.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/permission.keys.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,mCAAmC,GAAG;IACjD,MAAM,EAAE,sCAAsC;IAC9C,gBAAgB,EAAE,gDAAgD;IAClE,oBAAoB,EAAE,oDAAoD;IAC1E,aAAa,EAAE,6CAA6C;IAC5D,iBAAiB,EAAE,iDAAiD;IACpE,qBAAqB,EAAE,qDAAqD;IAC5E,eAAe,EAAE,+CAA+C;IAChE,kBAAkB,EAAE,kDAAkD;IACtE,uBAAuB,EAAE,uDAAuD;IAChF,UAAU,EAAE,0CAA0C;IACtD,KAAK,EAAE,qCAAqC;CACpC,CAAC;AAEX;;;GAGG;AACU,QAAA,2BAA2B,GAAG;IACzC,UAAU,EAAE;QACV,MAAM,EAAE;YACN,UAAU,EAAE,2CAAmC,CAAC,eAAe;SAChE;QACD,cAAc,EAAE;YACd,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,MAAM,EAAE;YACN,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,aAAa,EAAE;YACb,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,WAAW,EAAE;YACX,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,oBAAoB,EAAE;YACpB,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,kBAAkB,EAAE;YAClB,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,WAAW,EAAE;YACX,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;KACF;CACO,CAAC"}
@@ -0,0 +1,9 @@
1
+ /** Stored person name: firstName + " " + lastName. */
2
+ export declare function composePersonFullName(firstName: unknown, lastName: unknown): string;
3
+ /**
4
+ * Person write body. Create payloads sometimes nest fields under `data`
5
+ * while the runtime envelope keeps `entity` beside them.
6
+ */
7
+ export declare function resolvePersonWriteTarget(data: Record<string, unknown>): Record<string, unknown>;
8
+ /** Sets `fullName` from first and last name already on the payload, filling gaps from `existing`. */
9
+ export declare function stampPersonFullName(data: Record<string, unknown>, existing?: Record<string, unknown> | null): void;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ //#region ----- Helpers -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.composePersonFullName = composePersonFullName;
5
+ exports.resolvePersonWriteTarget = resolvePersonWriteTarget;
6
+ exports.stampPersonFullName = stampPersonFullName;
7
+ /** Stored person name: firstName + " " + lastName. */
8
+ function composePersonFullName(firstName, lastName) {
9
+ const first = typeof firstName === 'string' ? firstName.trim() : '';
10
+ const last = typeof lastName === 'string' ? lastName.trim() : '';
11
+ return `${first} ${last}`.trim();
12
+ }
13
+ /**
14
+ * Person write body. Create payloads sometimes nest fields under `data`
15
+ * while the runtime envelope keeps `entity` beside them.
16
+ */
17
+ function resolvePersonWriteTarget(data) {
18
+ const nested = data['data'];
19
+ if (nested != null &&
20
+ typeof nested === 'object' &&
21
+ !Array.isArray(nested) &&
22
+ !('firstName' in data) &&
23
+ !('lastName' in data)) {
24
+ return nested;
25
+ }
26
+ return data;
27
+ }
28
+ /** Sets `fullName` from first and last name already on the payload, filling gaps from `existing`. */
29
+ function stampPersonFullName(data, existing) {
30
+ const target = resolvePersonWriteTarget(data);
31
+ const hasFirst = 'firstName' in target;
32
+ const hasLast = 'lastName' in target;
33
+ const firstName = hasFirst ? target['firstName'] : existing === null || existing === void 0 ? void 0 : existing['firstName'];
34
+ const lastName = hasLast ? target['lastName'] : existing === null || existing === void 0 ? void 0 : existing['lastName'];
35
+ target['fullName'] = composePersonFullName(firstName, lastName);
36
+ }
37
+ //#endregion
38
+ //# sourceMappingURL=person-full-name.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-full-name.util.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/person-full-name.util.ts"],"names":[],"mappings":";AAAA,6BAA6B;;AAG7B,sDAIC;AAMD,4DAYC;AAGD,kDAUC;AApCD,sDAAsD;AACtD,SAAgB,qBAAqB,CAAC,SAAkB,EAAE,QAAiB;IACzE,MAAM,KAAK,GAAG,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACpE,MAAM,IAAI,GAAG,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACjE,OAAO,GAAG,KAAK,IAAI,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;AACnC,CAAC;AAED;;;GAGG;AACH,SAAgB,wBAAwB,CAAC,IAA6B;IACpE,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5B,IACE,MAAM,IAAI,IAAI;QACd,OAAO,MAAM,KAAK,QAAQ;QAC1B,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QACtB,CAAC,CAAC,WAAW,IAAI,IAAI,CAAC;QACtB,CAAC,CAAC,UAAU,IAAI,IAAI,CAAC,EACrB,CAAC;QACD,OAAO,MAAiC,CAAC;IAC3C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,qGAAqG;AACrG,SAAgB,mBAAmB,CACjC,IAA6B,EAC7B,QAAyC;IAEzC,MAAM,MAAM,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,QAAQ,GAAG,WAAW,IAAI,MAAM,CAAC;IACvC,MAAM,OAAO,GAAG,UAAU,IAAI,MAAM,CAAC;IACrC,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,WAAW,CAAC,CAAC;IAC3E,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,UAAU,CAAC,CAAC;IACvE,MAAM,CAAC,UAAU,CAAC,GAAG,qBAAqB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AAClE,CAAC;AAED,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"person-relationship.actions.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/server/contracts/src/person-relationship.actions.ts"],"names":[],"mappings":";;AAuBA,oFA8BC;AAMD,wFAgCC;AA3FD,iEAA6E;AAC7E,qEAA4J;AAE5J,+CAA2C;AAE3C,+CAA+C;AAE/C,MAAM,oBAAoB,GAAG,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,8CAA8C,CAAC;AACrG,MAAM,eAAe,GAAG,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,yCAAyC,CAAC;AAE3F,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,CAAC;IACjD,OAAO,EAAE;QACP,QAAQ,EAAE,KAAK;QACf,eAAe,EAAE,IAAI;QACrB,IAAI,EAAE;YACJ,CAAC,QAAQ,CAAC,EAAE,wBAAwB;SACrC;KACF;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,SAAgB,oCAAoC;IAClD,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,+BAA+B;QACtC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,4BAA4B,EAAE;QACxE,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;QAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;QACtC,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,0BAA0B;gBAChC,KAAK,EAAE,wEAAwE;gBAC/E,OAAO,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;gBACvC,IAAI,EAAE,mCAAmC;gBACzC,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;YACD;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,mEAAmE;gBAC1E,OAAO,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;gBAClC,IAAI,EAAE,uBAAuB;gBAC7B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;SACF;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,sCAAsC,CAAC,QAAgB;IACrE,MAAM,YAAY,mCACb,oCAAoC,EAAE,KACzC,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,0BAA0B;gBAChC,KAAK,EAAE,wEAAwE;gBAC/E,OAAO,EAAE;oBACP,IAAI,EAAE,oBAAoB;oBAC1B,OAAO,EAAE,mBAAmB,CAAC,QAAQ,CAAC;iBACvC;gBACD,IAAI,EAAE,mCAAmC;gBACzC,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;YACD;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,mEAAmE;gBAC1E,OAAO,EAAE;oBACP,IAAI,EAAE,eAAe;oBACrB,OAAO,EAAE,mBAAmB,CAAC,QAAQ,CAAC;iBACvC;gBACD,IAAI,EAAE,uBAAuB;gBAC7B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;SACF,GACF,CAAC;IAEF,OAAO,CAAC,YAAY,EAAE,IAAA,gCAAuB,GAAE,EAAE,IAAA,wCAA+B,GAAE,CAAC,CAAC;AACtF,CAAC;AAED,YAAY"}
1
+ {"version":3,"file":"person-relationship.actions.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/person-relationship.actions.ts"],"names":[],"mappings":";;AAuBA,oFA8BC;AAMD,wFAgCC;AA3FD,iEAA6E;AAC7E,qEAA4J;AAE5J,+CAA2C;AAE3C,+CAA+C;AAE/C,MAAM,oBAAoB,GAAG,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,8CAA8C,CAAC;AACrG,MAAM,eAAe,GAAG,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,yCAAyC,CAAC;AAE3F,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,CAAC;IACjD,OAAO,EAAE;QACP,QAAQ,EAAE,KAAK;QACf,eAAe,EAAE,IAAI;QACrB,IAAI,EAAE;YACJ,CAAC,QAAQ,CAAC,EAAE,wBAAwB;SACrC;KACF;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,SAAgB,oCAAoC;IAClD,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,+BAA+B;QACtC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,4BAA4B,EAAE;QACxE,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;QAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;QACtC,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,0BAA0B;gBAChC,KAAK,EAAE,wEAAwE;gBAC/E,OAAO,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;gBACvC,IAAI,EAAE,mCAAmC;gBACzC,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;YACD;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,mEAAmE;gBAC1E,OAAO,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;gBAClC,IAAI,EAAE,uBAAuB;gBAC7B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;SACF;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,sCAAsC,CAAC,QAAgB;IACrE,MAAM,YAAY,mCACb,oCAAoC,EAAE,KACzC,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,0BAA0B;gBAChC,KAAK,EAAE,wEAAwE;gBAC/E,OAAO,EAAE;oBACP,IAAI,EAAE,oBAAoB;oBAC1B,OAAO,EAAE,mBAAmB,CAAC,QAAQ,CAAC;iBACvC;gBACD,IAAI,EAAE,mCAAmC;gBACzC,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;YACD;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,mEAAmE;gBAC1E,OAAO,EAAE;oBACP,IAAI,EAAE,eAAe;oBACrB,OAAO,EAAE,mBAAmB,CAAC,QAAQ,CAAC;iBACvC;gBACD,IAAI,EAAE,uBAAuB;gBAC7B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;SACF,GACF,CAAC;IAEF,OAAO,CAAC,YAAY,EAAE,IAAA,gCAAuB,GAAE,EAAE,IAAA,wCAA+B,GAAE,CAAC,CAAC;AACtF,CAAC;AAED,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"root-config.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/server/contracts/src/root-config.ts"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,YAAY;CACrB,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,MAAM;IACN,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,eAAe;QACrC,IAAI,EAAE,kBAAkB;KACzB;IACD,QAAQ,EAAE;QACR,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,gCAAgC;YACtD,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,iCAAiC;YAC7D,IAAI,EAAE,kBAAkB;SACzB;QACD,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,kDAAkD;YACxE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,mDAAmD;YAC/E,IAAI,EAAE,4BAA4B;SACnC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,gCAAgC;YACtD,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,iCAAiC;YAC7D,IAAI,EAAE,wBAAwB;SAC/B;QACD,aAAa,EAAE;YACb,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,iDAAiD;YACvE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,kDAAkD;YAC9E,IAAI,EAAE,kBAAkB;SACzB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,4CAA4C;YAClE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,6CAA6C;YACzE,IAAI,EAAE,sBAAsB;SAC7B;QACD,oBAAoB,EAAE;YACpB,IAAI,EAAE,sBAAsB;YAC5B,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,gEAAgE;YACtF,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,iEAAiE;YAC7F,IAAI,EAAE,qBAAqB;SAC5B;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,oCAAoC;YAC1D,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,qCAAqC;YACjE,IAAI,EAAE,8BAA8B;SACrC;QACD,WAAW,EAAE;YACX,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,4CAA4C;YAClE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,6CAA6C;YACzE,IAAI,EAAE,sBAAsB;SAC7B;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,0DAA0D;YAChF,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,2DAA2D;YACvF,IAAI,EAAE,kBAAkB;SACzB;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,wDAAwD;YAC9E,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,yDAAyD;YACrF,IAAI,EAAE,0BAA0B;SACjC;KACF;CACO,CAAC"}
1
+ {"version":3,"file":"root-config.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/root-config.ts"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,YAAY;CACrB,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,MAAM;IACN,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,eAAe;QACrC,IAAI,EAAE,kBAAkB;KACzB;IACD,QAAQ,EAAE;QACR,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,gCAAgC;YACtD,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,iCAAiC;YAC7D,IAAI,EAAE,kBAAkB;SACzB;QACD,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,kDAAkD;YACxE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,mDAAmD;YAC/E,IAAI,EAAE,4BAA4B;SACnC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,gCAAgC;YACtD,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,iCAAiC;YAC7D,IAAI,EAAE,wBAAwB;SAC/B;QACD,aAAa,EAAE;YACb,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,iDAAiD;YACvE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,kDAAkD;YAC9E,IAAI,EAAE,kBAAkB;SACzB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,4CAA4C;YAClE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,6CAA6C;YACzE,IAAI,EAAE,sBAAsB;SAC7B;QACD,oBAAoB,EAAE;YACpB,IAAI,EAAE,sBAAsB;YAC5B,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,gEAAgE;YACtF,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,iEAAiE;YAC7F,IAAI,EAAE,qBAAqB;SAC5B;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,oCAAoC;YAC1D,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,qCAAqC;YACjE,IAAI,EAAE,8BAA8B;SACrC;QACD,WAAW,EAAE;YACX,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,4CAA4C;YAClE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,6CAA6C;YACzE,IAAI,EAAE,sBAAsB;SAC7B;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,0DAA0D;YAChF,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,2DAA2D;YACvF,IAAI,EAAE,kBAAkB;SACzB;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,wDAAwD;YAC9E,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,yDAAyD;YACrF,IAAI,EAAE,0BAA0B;SACjC;KACF;CACO,CAAC"}
package/package.json CHANGED
@@ -1,26 +1,25 @@
1
1
  {
2
2
  "name": "@acorex-platform/module-person-core-server",
3
- "version": "0.0.18",
3
+ "version": "2.0.0-next.42",
4
4
  "type": "commonjs",
5
- "main": "./src/index.js",
6
- "types": "./src/index.d.ts",
5
+ "main": "./server/src/index.js",
6
+ "types": "./server/src/index.d.ts",
7
7
  "peerDependencies": {
8
- "@nestjs/common": "^11.0.0",
9
- "@acorex-platform/module-common-server": "0.0.18"
8
+ "@acorex-platform/framework-server": "2.0.0-next.42",
9
+ "@acorex-platform/module-common-server": "2.0.0-next.42",
10
+ "@acorex-platform/module-location-management-client": "2.0.0-next.42",
11
+ "@acorex-platform/module-person-core-client": "2.0.0-next.42",
12
+ "@nestjs/common": "^11.0.0"
10
13
  },
11
14
  "exports": {
12
15
  "./package.json": "./package.json",
13
16
  ".": {
14
- "types": "./src/index.d.ts",
15
- "default": "./src/index.js"
17
+ "types": "./server/src/index.d.ts",
18
+ "default": "./server/src/index.js"
16
19
  },
17
20
  "./contracts": {
18
21
  "types": "./contracts/src/index.d.ts",
19
22
  "default": "./contracts/src/index.js"
20
- },
21
- "./seed": {
22
- "types": "./src/lib/seed/index.d.ts",
23
- "default": "./src/lib/seed/index.js"
24
23
  }
25
24
  }
26
25
  }
@@ -0,0 +1,2 @@
1
+ export * from './lib/person-core-server.module';
2
+ export { personCoreEntityCatalog } from './lib/entities';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.personCoreEntityCatalog = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./lib/person-core-server.module"), exports);
6
+ var entities_1 = require("./lib/entities");
7
+ Object.defineProperty(exports, "personCoreEntityCatalog", { enumerable: true, get: function () { return entities_1.personCoreEntityCatalog; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/server/src/index.ts"],"names":[],"mappings":";;;;AAAA,0EAAgD;AAChD,2CAAyD;AAAhD,mHAAA,uBAAuB,OAAA"}
@@ -0,0 +1 @@
1
+ export * from './person-core.entity-catalog';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./person-core.entity-catalog"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/entities/index.ts"],"names":[],"mappings":";;;AAAA,uEAA6C"}
@@ -0,0 +1 @@
1
+ export declare const personCoreEntityCatalog: import("@acorex-platform/framework-server/domain/seed").AXPDomainEntityCatalog;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.personCoreEntityCatalog = void 0;
4
+ const seed_1 = require("@acorex-platform/framework-server/domain/seed");
5
+ const entity_catalog_1 = require("../../../../contracts/src/entity-catalog");
6
+ //#region ---- person-core entity catalog ----
7
+ exports.personCoreEntityCatalog = (0, seed_1.defineEntityCatalog)({
8
+ moduleName: 'person-core',
9
+ factories: Object.values(entity_catalog_1.personCoreLocalEntityCatalog.loaders),
10
+ });
11
+ //#endregion
12
+ //# sourceMappingURL=person-core.entity-catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-core.entity-catalog.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/entities/person-core.entity-catalog.ts"],"names":[],"mappings":";;;AAAA,wEAAoF;AACpF,6EAAwF;AAExF,8CAA8C;AAEjC,QAAA,uBAAuB,GAAG,IAAA,0BAAmB,EAAC;IACzD,UAAU,EAAE,aAAa;IACzB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,6CAA4B,CAAC,OAAO,CAAC;CAC/D,CAAC,CAAC;AAEH,YAAY"}
@@ -0,0 +1,12 @@
1
+ import { type AXPEntityOp, type EntityStorageContext, type EntityStorageMiddleware } from '@acorex-platform/framework-server/core';
2
+ /**
3
+ * Persists Person.fullName as firstName + " " + lastName on create and when a name changes.
4
+ */
5
+ export declare class PersonFullNameMiddleware implements EntityStorageMiddleware {
6
+ readonly target: {
7
+ entity: string;
8
+ ops: AXPEntityOp[];
9
+ order: number;
10
+ };
11
+ execute(ctx: EntityStorageContext, next: () => Promise<void>): Promise<void>;
12
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ //#region ----- Imports -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PersonFullNameMiddleware = void 0;
5
+ const tslib_1 = require("tslib");
6
+ const common_1 = require("@nestjs/common");
7
+ const module_person_core_contracts_1 = require("@acorex-platform/module-person-core-client/contracts");
8
+ //#endregion
9
+ //#region ----- Constants -----
10
+ const PERSON_ENTITY = `${module_person_core_contracts_1.RootConfig.module.name}.${module_person_core_contracts_1.RootConfig.entities.person.name}`;
11
+ //#endregion
12
+ //#region ----- Person full name middleware -----
13
+ /**
14
+ * Persists Person.fullName as firstName + " " + lastName on create and when a name changes.
15
+ */
16
+ let PersonFullNameMiddleware = class PersonFullNameMiddleware {
17
+ constructor() {
18
+ this.target = {
19
+ entity: PERSON_ENTITY,
20
+ ops: ['create', 'update', 'upsertOne'],
21
+ order: 80,
22
+ };
23
+ }
24
+ execute(ctx, next) {
25
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
26
+ const data = ctx.data;
27
+ if (data && typeof data === 'object' && !Array.isArray(data)) {
28
+ const record = data;
29
+ const target = (0, module_person_core_contracts_1.resolvePersonWriteTarget)(record);
30
+ const creating = ctx.op === 'create' || ctx.op === 'upsertOne';
31
+ const renaming = 'firstName' in target || 'lastName' in target;
32
+ if (creating || renaming) {
33
+ let existing = null;
34
+ if (!creating && ctx.id != null && ctx.id !== '' && (!('firstName' in target) || !('lastName' in target))) {
35
+ try {
36
+ const row = yield ctx.backend.getOne(ctx.entityName, String(ctx.id));
37
+ if (row && typeof row === 'object') {
38
+ existing = row;
39
+ }
40
+ }
41
+ catch (_a) {
42
+ existing = null;
43
+ }
44
+ }
45
+ (0, module_person_core_contracts_1.stampPersonFullName)(record, existing);
46
+ }
47
+ }
48
+ yield next();
49
+ });
50
+ }
51
+ };
52
+ exports.PersonFullNameMiddleware = PersonFullNameMiddleware;
53
+ exports.PersonFullNameMiddleware = PersonFullNameMiddleware = tslib_1.__decorate([
54
+ (0, common_1.Injectable)()
55
+ ], PersonFullNameMiddleware);
56
+ //#endregion
57
+ //# sourceMappingURL=person-full-name.middleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-full-name.middleware.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/middlewares/person-full-name.middleware.ts"],"names":[],"mappings":";AAAA,6BAA6B;;;;AAO7B,2CAA4C;AAE5C,gGAA0H;AAE1H,YAAY;AAEZ,+BAA+B;AAE/B,MAAM,aAAa,GAAG,GAAG,yCAAU,CAAC,MAAM,CAAC,IAAI,IAAI,yCAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAErF,YAAY;AAEZ,iDAAiD;AAEjD;;GAEG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAA9B;QACI,WAAM,GAAG;YAChB,MAAM,EAAE,aAAa;YACrB,GAAG,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAkB;YACvD,KAAK,EAAE,EAAE;SACV,CAAC;IA4BJ,CAAC;IA1BO,OAAO,CAAC,GAAyB,EAAE,IAAyB;;YAChE,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;YACtB,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC7D,MAAM,MAAM,GAAG,IAA+B,CAAC;gBAC/C,MAAM,MAAM,GAAG,IAAA,uDAAwB,EAAC,MAAM,CAAC,CAAC;gBAChD,MAAM,QAAQ,GAAG,GAAG,CAAC,EAAE,KAAK,QAAQ,IAAI,GAAG,CAAC,EAAE,KAAK,WAAW,CAAC;gBAC/D,MAAM,QAAQ,GAAG,WAAW,IAAI,MAAM,IAAI,UAAU,IAAI,MAAM,CAAC;gBAE/D,IAAI,QAAQ,IAAI,QAAQ,EAAE,CAAC;oBACzB,IAAI,QAAQ,GAAmC,IAAI,CAAC;oBACpD,IAAI,CAAC,QAAQ,IAAI,GAAG,CAAC,EAAE,IAAI,IAAI,IAAI,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,WAAW,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC;wBAC1G,IAAI,CAAC;4BACH,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;4BACrE,IAAI,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;gCACnC,QAAQ,GAAG,GAA8B,CAAC;4BAC5C,CAAC;wBACH,CAAC;wBAAC,WAAM,CAAC;4BACP,QAAQ,GAAG,IAAI,CAAC;wBAClB,CAAC;oBACH,CAAC;oBACD,IAAA,kDAAmB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;gBACxC,CAAC;YACH,CAAC;YAED,MAAM,IAAI,EAAE,CAAC;QACf,CAAC;KAAA;CACF,CAAA;AAjCY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;GACA,wBAAwB,CAiCpC;AAED,YAAY"}
@@ -0,0 +1,30 @@
1
+ import { type AXPEntityOp, type EntityStorageContext, type EntityStorageMiddleware, EntityStorageMiddlewareService } from '@acorex-platform/framework-server/core';
2
+ /**
3
+ * Keeps PersonRelationship edges bidirectional:
4
+ * after create/update of A→B (type T), ensures B→A exists with T.inverseTypeId;
5
+ * after delete, removes the matching reverse edge.
6
+ *
7
+ * Recursion is prevented with an in-flight edge-key set (nested insertOne/deleteOne
8
+ * create fresh locals, so a locals flag cannot span the nested call).
9
+ */
10
+ export declare class PersonRelationshipMirrorMiddleware implements EntityStorageMiddleware {
11
+ private readonly entityStorage;
12
+ private readonly logger;
13
+ private readonly inFlightMirrorKeys;
14
+ readonly target: {
15
+ entity: string;
16
+ ops: AXPEntityOp[];
17
+ order: number;
18
+ };
19
+ constructor(entityStorage: EntityStorageMiddlewareService);
20
+ execute(ctx: EntityStorageContext, next: () => Promise<void>): Promise<void>;
21
+ private ensureMirror;
22
+ private removeMirror;
23
+ private resolveInverseTypeId;
24
+ private findEdge;
25
+ private loadRow;
26
+ private loadRowById;
27
+ private readCreatedRow;
28
+ private edgeKey;
29
+ private asId;
30
+ }