@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,123 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.religionFactory = religionFactory;
4
+ const tslib_1 = require("tslib");
5
+ const core_1 = require("@acorex-platform/framework-shared/core");
6
+ const entity_1 = require("@acorex-platform/framework-shared/entity");
7
+ //#region ---- Imports ----
8
+ const root_config_1 = require("../../root-config");
9
+ //#endregion
10
+ //#region ---- Entity Factory ----
11
+ function religionFactory() {
12
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
13
+ const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
14
+ const propertyLayouts = [
15
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
16
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
17
+ ];
18
+ const entityDef = {
19
+ module: root_config_1.RootConfig.module.name,
20
+ name: root_config_1.RootConfig.entities.religion.name,
21
+ title: root_config_1.RootConfig.entities.religion.title,
22
+ icon: root_config_1.RootConfig.entities.religion.icon,
23
+ formats: {
24
+ individual: root_config_1.RootConfig.entities.religion.title,
25
+ plural: root_config_1.RootConfig.entities.religion.titlePlural,
26
+ searchResult: {
27
+ title: '{{ title }}',
28
+ description: root_config_1.RootConfig.module.title,
29
+ },
30
+ },
31
+ plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }],
32
+ groups: [
33
+ {
34
+ id: 'basic-info',
35
+ title: '@person-core:religions.entities.religion.groups.basic-info',
36
+ },
37
+ ],
38
+ properties: [
39
+ {
40
+ name: 'id',
41
+ title: '@general:terms.common.id',
42
+ groupId: 'basic-info',
43
+ schema: {
44
+ dataType: 'uuid',
45
+ visible: false,
46
+ readonly: true,
47
+ unique: { enabled: true },
48
+ },
49
+ },
50
+ {
51
+ name: 'title',
52
+ title: '@general:terms.common.title',
53
+ groupId: 'basic-info',
54
+ options: {
55
+ sort: { enabled: true },
56
+ filter: {
57
+ advance: { enabled: true },
58
+ inline: { enabled: true },
59
+ },
60
+ },
61
+ schema: {
62
+ dataType: 'string',
63
+ interface: {
64
+ type: core_1.AXPWidgetsList.Editors.TextBox,
65
+ options: {
66
+ placeholder: '@person-core:religions.entities.religion.fields.title.placeholder',
67
+ },
68
+ },
69
+ },
70
+ validations: [{ rule: 'required' }],
71
+ },
72
+ {
73
+ name: 'description',
74
+ title: '@general:terms.common.description',
75
+ groupId: 'basic-info',
76
+ schema: {
77
+ dataType: 'string',
78
+ interface: {
79
+ type: core_1.AXPWidgetsList.Editors.LargeTextBox,
80
+ options: {
81
+ rows: 3,
82
+ placeholder: '@person-core:religions.entities.religion.fields.description.placeholder',
83
+ },
84
+ },
85
+ },
86
+ },
87
+ ],
88
+ columns: [
89
+ { name: 'title', options: { width: '220px', order: 1 } },
90
+ { name: 'description', options: { width: '280px', order: 2 } },
91
+ ],
92
+ interfaces: {
93
+ master: {
94
+ create: {
95
+ sections,
96
+ properties: propertyLayouts,
97
+ },
98
+ update: {
99
+ sections,
100
+ properties: propertyLayouts,
101
+ },
102
+ single: {
103
+ title: '{{ title }}',
104
+ sections,
105
+ properties: propertyLayouts,
106
+ actions: [...(0, entity_1.entityMasterRecordActions)()],
107
+ },
108
+ list: {
109
+ actions: [...(0, entity_1.entityMasterCrudActions)()],
110
+ views: [
111
+ (0, entity_1.createAllQueryView)({
112
+ sorts: [{ name: 'title', dir: 'asc' }],
113
+ }),
114
+ ],
115
+ },
116
+ },
117
+ },
118
+ };
119
+ return entityDef;
120
+ });
121
+ }
122
+ //#endregion
123
+ //# sourceMappingURL=religion.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"religion.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/contracts/src/entities/religion/religion.entity.ts"],"names":[],"mappings":";;AASA,0CA+GC;;AAxHD,iEAAwE;AACxE,qEAA6I;AAC7I,+BAA+B;AAC/B,mDAA+C;AAE/C,YAAY;AAEZ,sCAAsC;AAEtC,SAAsB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EAAE,EAAE;gBACxD,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;aAC/D;YACD,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,MAAM,EAAE;wBACN,QAAQ;wBACR,UAAU,EAAE,eAAe;qBAC5B;oBACD,MAAM,EAAE;wBACN,QAAQ;wBACR,UAAU,EAAE,eAAe;qBAC5B;oBACD,MAAM,EAAE;wBACN,KAAK,EAAE,aAAa;wBACpB,QAAQ;wBACR,UAAU,EAAE,eAAe;wBAC3B,OAAO,EAAE,CAAC,GAAG,IAAA,kCAAyB,GAAE,CAAC;qBAC1C;oBACD,IAAI,EAAE;wBACJ,OAAO,EAAE,CAAC,GAAG,IAAA,gCAAuB,GAAE,CAAC;wBACvC,KAAK,EAAE;4BACL,IAAA,2BAAkB,EAAC;gCACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;6BACvC,CAAC;yBACH;qBACF;iBACF;aACF;SACF,CAAC;QAEF,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA;AAED,YAAY"}
@@ -0,0 +1,6 @@
1
+ import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';
2
+ export interface AXMPersonCoreReligionEntityModel {
3
+ id: string;
4
+ title: AXPMultiLanguageString;
5
+ description?: AXPMultiLanguageString | null;
6
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //#endregion
4
+ //# sourceMappingURL=religion.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"religion.types.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/contracts/src/entities/religion/religion.types.ts"],"names":[],"mappings":";;AASA,YAAY"}
@@ -0,0 +1,7 @@
1
+ export * from './menu.keys';
2
+ export * from './permission.keys';
3
+ export * from './contact-assignment.actions';
4
+ export * from './contact-assignment.utils';
5
+ export * from './person-relationship.actions';
6
+ export * from './root-config';
7
+ export * from './entities';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ //#region ---- Contracts barrel ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./menu.keys"), exports);
6
+ tslib_1.__exportStar(require("./permission.keys"), exports);
7
+ tslib_1.__exportStar(require("./contact-assignment.actions"), exports);
8
+ tslib_1.__exportStar(require("./contact-assignment.utils"), exports);
9
+ tslib_1.__exportStar(require("./person-relationship.actions"), exports);
10
+ tslib_1.__exportStar(require("./root-config"), exports);
11
+ //#endregion
12
+ tslib_1.__exportStar(require("./entities"), exports);
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"}
@@ -0,0 +1,12 @@
1
+ export declare const AXMPersonCoreMenuKeys: {
2
+ readonly Root: "person-core";
3
+ readonly Persons: "person-core.persons";
4
+ readonly PersonRelationships: "person-core.person-relationships";
5
+ readonly EducationLevels: "person-core.education-levels";
6
+ readonly Genders: "person-core.genders";
7
+ readonly MaritalStatuses: "person-core.marital-statuses";
8
+ readonly PersonTitles: "person-core.person-titles";
9
+ readonly PersonIdentifierTypes: "person-core.person-identifier-types";
10
+ readonly Religions: "person-core.religions";
11
+ readonly ContactRoles: "person-core.contact-roles";
12
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AXMPersonCoreMenuKeys = void 0;
4
+ exports.AXMPersonCoreMenuKeys = {
5
+ Root: 'person-core',
6
+ Persons: 'person-core.persons',
7
+ PersonRelationships: 'person-core.person-relationships',
8
+ EducationLevels: 'person-core.education-levels',
9
+ Genders: 'person-core.genders',
10
+ MaritalStatuses: 'person-core.marital-statuses',
11
+ PersonTitles: 'person-core.person-titles',
12
+ PersonIdentifierTypes: 'person-core.person-identifier-types',
13
+ Religions: 'person-core.religions',
14
+ ContactRoles: 'person-core.contact-roles',
15
+ };
16
+ //# sourceMappingURL=menu.keys.js.map
@@ -0,0 +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"}
@@ -0,0 +1,31 @@
1
+ export declare const AXMPersonCorePermissionKeys: {
2
+ readonly PersonCore: {
3
+ readonly Person: {
4
+ readonly Management: "PersonCore:Permission:Person.Management";
5
+ };
6
+ readonly EducationLevel: {
7
+ readonly Management: "PersonCore:Permission:EducationLevel.Management";
8
+ };
9
+ readonly Gender: {
10
+ readonly Management: "PersonCore:Permission:Gender.Management";
11
+ };
12
+ readonly MaritalStatus: {
13
+ readonly Management: "PersonCore:Permission:MaritalStatus.Management";
14
+ };
15
+ readonly PersonTitle: {
16
+ readonly Management: "PersonCore:Permission:PersonTitle.Management";
17
+ };
18
+ readonly PersonIdentifierType: {
19
+ readonly Management: "PersonCore:Permission:PersonIdentifierType.Management";
20
+ };
21
+ readonly PersonRelationship: {
22
+ readonly Management: "PersonCore:Permission:PersonRelationship.Management";
23
+ };
24
+ readonly Religion: {
25
+ readonly Management: "PersonCore:Permission:Religion.Management";
26
+ };
27
+ readonly ContactRole: {
28
+ readonly Management: "PersonCore:Permission:ContactRole.Management";
29
+ };
30
+ };
31
+ };
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AXMPersonCorePermissionKeys = void 0;
4
+ exports.AXMPersonCorePermissionKeys = {
5
+ PersonCore: {
6
+ Person: {
7
+ Management: 'PersonCore:Permission:Person.Management',
8
+ },
9
+ EducationLevel: {
10
+ Management: 'PersonCore:Permission:EducationLevel.Management',
11
+ },
12
+ Gender: {
13
+ Management: 'PersonCore:Permission:Gender.Management',
14
+ },
15
+ MaritalStatus: {
16
+ Management: 'PersonCore:Permission:MaritalStatus.Management',
17
+ },
18
+ PersonTitle: {
19
+ Management: 'PersonCore:Permission:PersonTitle.Management',
20
+ },
21
+ PersonIdentifierType: {
22
+ Management: 'PersonCore:Permission:PersonIdentifierType.Management',
23
+ },
24
+ PersonRelationship: {
25
+ Management: 'PersonCore:Permission:PersonRelationship.Management',
26
+ },
27
+ Religion: {
28
+ Management: 'PersonCore:Permission:Religion.Management',
29
+ },
30
+ ContactRole: {
31
+ Management: 'PersonCore:Permission:ContactRole.Management',
32
+ },
33
+ },
34
+ };
35
+ //# sourceMappingURL=permission.keys.js.map
@@ -0,0 +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"}
@@ -0,0 +1,10 @@
1
+ import { AXPEntityAction } from '@acorex-platform/framework-shared/entity';
2
+ /**
3
+ * Create action with submenu for Person Relationship entity (master list).
4
+ */
5
+ export declare function personRelationshipMasterCreateAction(): AXPEntityAction;
6
+ /**
7
+ * Create action with submenu for Person Relationship when shown as related entity (e.g. in Person details).
8
+ * Injects fromPersonId from parent context.
9
+ */
10
+ export declare function personRelationshipDetailsCreateActions(parentId: string): AXPEntityAction[];
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.personRelationshipMasterCreateAction = personRelationshipMasterCreateAction;
4
+ exports.personRelationshipDetailsCreateActions = personRelationshipDetailsCreateActions;
5
+ const core_1 = require("@acorex-platform/framework-shared/core");
6
+ const entity_1 = require("@acorex-platform/framework-shared/entity");
7
+ const root_config_1 = require("./root-config");
8
+ //#region ---- Person relationship actions ----
9
+ const CREATE_WITH_EXISTING = `${root_config_1.RootConfig.module.name}.PersonRelationship:CreateWithExistingPerson`;
10
+ const CREATE_WITH_NEW = `${root_config_1.RootConfig.module.name}.PersonRelationship:CreateWithNewPerson`;
11
+ const fromPersonIdOptions = (parentId) => ({
12
+ process: {
13
+ redirect: false,
14
+ canCreateNewOne: true,
15
+ data: {
16
+ [parentId]: '{{context.eval("id")}}',
17
+ },
18
+ },
19
+ });
20
+ /**
21
+ * Create action with submenu for Person Relationship entity (master list).
22
+ */
23
+ function personRelationshipMasterCreateAction() {
24
+ return {
25
+ name: 'Create',
26
+ title: '@general:actions.create.title',
27
+ command: { name: `${root_config_1.RootConfig.module.name}.PersonRelationship:Create` },
28
+ icon: 'fa-light fa-plus',
29
+ priority: 'primary',
30
+ type: core_1.AXPSystemActionType.Create,
31
+ scope: entity_1.AXPEntityCommandScope.TypeLevel,
32
+ items: [
33
+ {
34
+ name: 'CreateWithExistingPerson',
35
+ title: '@person-core:person-relationships.actions.choose-existing-person.title',
36
+ command: { name: CREATE_WITH_EXISTING },
37
+ icon: 'fa-light fa-user-magnifying-glass',
38
+ priority: 'primary',
39
+ type: core_1.AXPSystemActionType.Create,
40
+ scope: entity_1.AXPEntityCommandScope.TypeLevel,
41
+ },
42
+ {
43
+ name: 'CreateWithNewPerson',
44
+ title: '@person-core:person-relationships.actions.create-new-person.title',
45
+ command: { name: CREATE_WITH_NEW },
46
+ icon: 'fa-light fa-user-plus',
47
+ priority: 'primary',
48
+ type: core_1.AXPSystemActionType.Create,
49
+ scope: entity_1.AXPEntityCommandScope.TypeLevel,
50
+ },
51
+ ],
52
+ };
53
+ }
54
+ /**
55
+ * Create action with submenu for Person Relationship when shown as related entity (e.g. in Person details).
56
+ * Injects fromPersonId from parent context.
57
+ */
58
+ function personRelationshipDetailsCreateActions(parentId) {
59
+ const createAction = Object.assign(Object.assign({}, personRelationshipMasterCreateAction()), { items: [
60
+ {
61
+ name: 'CreateWithExistingPerson',
62
+ title: '@person-core:person-relationships.actions.choose-existing-person.title',
63
+ command: {
64
+ name: CREATE_WITH_EXISTING,
65
+ options: fromPersonIdOptions(parentId),
66
+ },
67
+ icon: 'fa-light fa-user-magnifying-glass',
68
+ priority: 'primary',
69
+ type: core_1.AXPSystemActionType.Create,
70
+ scope: entity_1.AXPEntityCommandScope.TypeLevel,
71
+ },
72
+ {
73
+ name: 'CreateWithNewPerson',
74
+ title: '@person-core:person-relationships.actions.create-new-person.title',
75
+ command: {
76
+ name: CREATE_WITH_NEW,
77
+ options: fromPersonIdOptions(parentId),
78
+ },
79
+ icon: 'fa-light fa-user-plus',
80
+ priority: 'primary',
81
+ type: core_1.AXPSystemActionType.Create,
82
+ scope: entity_1.AXPEntityCommandScope.TypeLevel,
83
+ },
84
+ ] });
85
+ return [createAction, (0, entity_1.entityDetailsEditAction)(), (0, entity_1.entityOverrideDetailsViewAction)()];
86
+ }
87
+ //#endregion
88
+ //# sourceMappingURL=person-relationship.actions.js.map
@@ -0,0 +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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 readonly config: {
3
+ i18n: string;
4
+ module: string;
5
+ };
6
+ readonly module: {
7
+ readonly name: string;
8
+ readonly title: `@${string}:module.title`;
9
+ readonly icon: "fa-light fa-user";
10
+ };
11
+ readonly entities: {
12
+ readonly person: {
13
+ readonly name: "Person";
14
+ readonly title: `@${string}:persons.entities.person.title`;
15
+ readonly titlePlural: `@${string}:persons.entities.person.plural`;
16
+ readonly icon: "fa-light fa-user";
17
+ };
18
+ readonly educationLevel: {
19
+ readonly name: "EducationLevel";
20
+ readonly title: `@${string}:education-levels.entities.education-level.title`;
21
+ readonly titlePlural: `@${string}:education-levels.entities.education-level.plural`;
22
+ readonly icon: "fa-light fa-graduation-cap";
23
+ };
24
+ readonly gender: {
25
+ readonly name: "Gender";
26
+ readonly title: `@${string}:genders.entities.gender.title`;
27
+ readonly titlePlural: `@${string}:genders.entities.gender.plural`;
28
+ readonly icon: "fa-light fa-venus-mars";
29
+ };
30
+ readonly maritalStatus: {
31
+ readonly name: "MaritalStatus";
32
+ readonly title: `@${string}:marital-statuses.entities.marital-status.title`;
33
+ readonly titlePlural: `@${string}:marital-statuses.entities.marital-status.plural`;
34
+ readonly icon: "fa-light fa-ring";
35
+ };
36
+ readonly personTitle: {
37
+ readonly name: "PersonTitle";
38
+ readonly title: `@${string}:person-titles.entities.person-title.title`;
39
+ readonly titlePlural: `@${string}:person-titles.entities.person-title.plural`;
40
+ readonly icon: "fa-light fa-user-tie";
41
+ };
42
+ readonly personIdentifierType: {
43
+ readonly name: "PersonIdentifierType";
44
+ readonly title: `@${string}:person-identifier-types.entities.person-identifier-type.title`;
45
+ readonly titlePlural: `@${string}:person-identifier-types.entities.person-identifier-type.plural`;
46
+ readonly icon: "fa-light fa-id-card";
47
+ };
48
+ readonly religion: {
49
+ readonly name: "Religion";
50
+ readonly title: `@${string}:religions.entities.religion.title`;
51
+ readonly titlePlural: `@${string}:religions.entities.religion.plural`;
52
+ readonly icon: "fa-light fa-place-of-worship";
53
+ };
54
+ readonly contactRole: {
55
+ readonly name: "ContactRole";
56
+ readonly title: `@${string}:contact-roles.entities.contact-role.title`;
57
+ readonly titlePlural: `@${string}:contact-roles.entities.contact-role.plural`;
58
+ readonly icon: "fa-light fa-user-tag";
59
+ };
60
+ readonly personRelationship: {
61
+ readonly name: "PersonRelationship";
62
+ readonly title: `@${string}:person-relationships.entities.person-relationship.title`;
63
+ readonly titlePlural: `@${string}:person-relationships.entities.person-relationship.plural`;
64
+ readonly icon: "fa-light fa-link";
65
+ };
66
+ readonly contactAssignment: {
67
+ readonly name: "ContactAssignment";
68
+ readonly title: `@${string}:contact-assignments.entities.contact-assignment.title`;
69
+ readonly titlePlural: `@${string}:contact-assignments.entities.contact-assignment.plural`;
70
+ readonly icon: "fa-light fa-address-book";
71
+ };
72
+ };
73
+ };
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RootConfig = void 0;
4
+ const config = {
5
+ i18n: 'person-core',
6
+ module: 'PersonCore',
7
+ };
8
+ exports.RootConfig = {
9
+ config,
10
+ module: {
11
+ name: config.module,
12
+ title: `@${config.i18n}:module.title`,
13
+ icon: 'fa-light fa-user',
14
+ },
15
+ entities: {
16
+ person: {
17
+ name: 'Person',
18
+ title: `@${config.i18n}:persons.entities.person.title`,
19
+ titlePlural: `@${config.i18n}:persons.entities.person.plural`,
20
+ icon: 'fa-light fa-user',
21
+ },
22
+ educationLevel: {
23
+ name: 'EducationLevel',
24
+ title: `@${config.i18n}:education-levels.entities.education-level.title`,
25
+ titlePlural: `@${config.i18n}:education-levels.entities.education-level.plural`,
26
+ icon: 'fa-light fa-graduation-cap',
27
+ },
28
+ gender: {
29
+ name: 'Gender',
30
+ title: `@${config.i18n}:genders.entities.gender.title`,
31
+ titlePlural: `@${config.i18n}:genders.entities.gender.plural`,
32
+ icon: 'fa-light fa-venus-mars',
33
+ },
34
+ maritalStatus: {
35
+ name: 'MaritalStatus',
36
+ title: `@${config.i18n}:marital-statuses.entities.marital-status.title`,
37
+ titlePlural: `@${config.i18n}:marital-statuses.entities.marital-status.plural`,
38
+ icon: 'fa-light fa-ring',
39
+ },
40
+ personTitle: {
41
+ name: 'PersonTitle',
42
+ title: `@${config.i18n}:person-titles.entities.person-title.title`,
43
+ titlePlural: `@${config.i18n}:person-titles.entities.person-title.plural`,
44
+ icon: 'fa-light fa-user-tie',
45
+ },
46
+ personIdentifierType: {
47
+ name: 'PersonIdentifierType',
48
+ title: `@${config.i18n}:person-identifier-types.entities.person-identifier-type.title`,
49
+ titlePlural: `@${config.i18n}:person-identifier-types.entities.person-identifier-type.plural`,
50
+ icon: 'fa-light fa-id-card',
51
+ },
52
+ religion: {
53
+ name: 'Religion',
54
+ title: `@${config.i18n}:religions.entities.religion.title`,
55
+ titlePlural: `@${config.i18n}:religions.entities.religion.plural`,
56
+ icon: 'fa-light fa-place-of-worship',
57
+ },
58
+ contactRole: {
59
+ name: 'ContactRole',
60
+ title: `@${config.i18n}:contact-roles.entities.contact-role.title`,
61
+ titlePlural: `@${config.i18n}:contact-roles.entities.contact-role.plural`,
62
+ icon: 'fa-light fa-user-tag',
63
+ },
64
+ personRelationship: {
65
+ name: 'PersonRelationship',
66
+ title: `@${config.i18n}:person-relationships.entities.person-relationship.title`,
67
+ titlePlural: `@${config.i18n}:person-relationships.entities.person-relationship.plural`,
68
+ icon: 'fa-light fa-link',
69
+ },
70
+ contactAssignment: {
71
+ name: 'ContactAssignment',
72
+ title: `@${config.i18n}:contact-assignments.entities.contact-assignment.title`,
73
+ titlePlural: `@${config.i18n}:contact-assignments.entities.contact-assignment.plural`,
74
+ icon: 'fa-light fa-address-book',
75
+ },
76
+ },
77
+ };
78
+ //# sourceMappingURL=root-config.js.map
@@ -0,0 +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,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E;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 ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@acorex-platform/module-person-core-server",
3
+ "version": "0.0.15",
4
+ "type": "commonjs",
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
7
+ "peerDependencies": {
8
+ "@nestjs/common": "^11.0.0",
9
+ "@acorex-platform/module-common-server": "0.0.15"
10
+ },
11
+ "exports": {
12
+ "./package.json": "./package.json",
13
+ ".": {
14
+ "types": "./src/index.d.ts",
15
+ "default": "./src/index.js"
16
+ },
17
+ "./contracts": {
18
+ "types": "./contracts/src/index.d.ts",
19
+ "default": "./contracts/src/index.js"
20
+ },
21
+ "./seed": {
22
+ "types": "./src/lib/seed/index.d.ts",
23
+ "default": "./src/lib/seed/index.js"
24
+ }
25
+ }
26
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export * from './lib/person-core-server.module';
2
+ export { personcoreSeedCatalog } from './lib/seed/person-core.seed-catalog';
3
+ export { PERSON_CORE_MODULE_SEED } from './lib/seed/person-core-seed.tokens';
4
+ export { PersonCoreSeedCatalogProvider } from './lib/seed/person-core-seed.provider';
5
+ export * from './lib/seed';
package/src/index.js ADDED
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PersonCoreSeedCatalogProvider = exports.PERSON_CORE_MODULE_SEED = exports.personcoreSeedCatalog = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./lib/person-core-server.module"), exports);
6
+ var person_core_seed_catalog_1 = require("./lib/seed/person-core.seed-catalog");
7
+ Object.defineProperty(exports, "personcoreSeedCatalog", { enumerable: true, get: function () { return person_core_seed_catalog_1.personcoreSeedCatalog; } });
8
+ var person_core_seed_tokens_1 = require("./lib/seed/person-core-seed.tokens");
9
+ Object.defineProperty(exports, "PERSON_CORE_MODULE_SEED", { enumerable: true, get: function () { return person_core_seed_tokens_1.PERSON_CORE_MODULE_SEED; } });
10
+ var person_core_seed_provider_1 = require("./lib/seed/person-core-seed.provider");
11
+ Object.defineProperty(exports, "PersonCoreSeedCatalogProvider", { enumerable: true, get: function () { return person_core_seed_provider_1.PersonCoreSeedCatalogProvider; } });
12
+ tslib_1.__exportStar(require("./lib/seed"), exports);
13
+ //# 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,gFAA4E;AAAnE,iIAAA,qBAAqB,OAAA;AAC9B,8EAA6E;AAApE,kIAAA,uBAAuB,OAAA;AAChC,kFAAqF;AAA5E,0IAAA,6BAA6B,OAAA;AACtC,qDAA2B"}
@@ -0,0 +1,2 @@
1
+ export declare class PersonCoreServerModule {
2
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PersonCoreServerModule = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const common_1 = require("@nestjs/common");
6
+ const person_core_seed_catalog_1 = require("./seed/person-core.seed-catalog");
7
+ const person_core_seed_tokens_1 = require("./seed/person-core-seed.tokens");
8
+ const person_core_seed_provider_1 = require("./seed/person-core-seed.provider");
9
+ let PersonCoreServerModule = class PersonCoreServerModule {
10
+ };
11
+ exports.PersonCoreServerModule = PersonCoreServerModule;
12
+ exports.PersonCoreServerModule = PersonCoreServerModule = tslib_1.__decorate([
13
+ (0, common_1.Module)({
14
+ providers: [
15
+ person_core_seed_provider_1.PersonCoreSeedCatalogProvider,
16
+ {
17
+ provide: person_core_seed_tokens_1.PERSON_CORE_MODULE_SEED,
18
+ useValue: person_core_seed_catalog_1.personcoreSeedCatalog,
19
+ },
20
+ ],
21
+ exports: [
22
+ person_core_seed_tokens_1.PERSON_CORE_MODULE_SEED,
23
+ person_core_seed_provider_1.PersonCoreSeedCatalogProvider
24
+ ],
25
+ })
26
+ ], PersonCoreServerModule);
27
+ //# sourceMappingURL=person-core-server.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-core-server.module.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/server/src/lib/person-core-server.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,8EAAwE;AACxE,4EAAyE;AACzE,gFAAiF;AAe1E,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAAG,CAAA;AAAzB,wDAAsB;iCAAtB,sBAAsB;IAblC,IAAA,eAAM,EAAC;QACN,SAAS,EAAE;YACT,yDAA6B;YAC7B;gBACE,OAAO,EAAE,iDAAuB;gBAChC,QAAQ,EAAE,gDAAqB;aAChC;SACF;QAED,OAAO,EAAE;YACP,iDAAuB;YACvB,yDAA6B;SAAC;KACjC,CAAC;GACW,sBAAsB,CAAG"}
@@ -0,0 +1,8 @@
1
+ import { AXMPersonCoreContactAssignmentEntityModel } from '@acorex-platform/module-person-core-contracts';
2
+ export interface AXMPersonCoreContactAssignmentMockModel extends AXMPersonCoreContactAssignmentEntityModel {
3
+ }
4
+ export declare const CONTACT_ASSIGNMENTS_MOCK: AXMPersonCoreContactAssignmentMockModel[];
5
+ export declare const contactAssignmentIds: {
6
+ techSolutionsPrimary: string;
7
+ techSolutionsAccountManager: string;
8
+ };