@carlonicora/nja-knowledge 0.0.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (937) hide show
  1. package/LICENSE +675 -0
  2. package/README.md +609 -1
  3. package/dist/api/common/blocknote.text.d.ts +10 -0
  4. package/dist/api/common/blocknote.text.d.ts.map +1 -0
  5. package/dist/api/common/blocknote.text.js +28 -0
  6. package/dist/api/common/blocknote.text.js.map +1 -0
  7. package/dist/api/common/content.workflow.d.ts +3 -0
  8. package/dist/api/common/content.workflow.d.ts.map +1 -0
  9. package/dist/api/common/content.workflow.js +16 -0
  10. package/dist/api/common/content.workflow.js.map +1 -0
  11. package/dist/api/common/decorate.d.ts +22 -0
  12. package/dist/api/common/decorate.d.ts.map +1 -0
  13. package/dist/api/common/decorate.js +35 -0
  14. package/dist/api/common/decorate.js.map +1 -0
  15. package/dist/api/common/translation-patch.dto.d.ts +17 -0
  16. package/dist/api/common/translation-patch.dto.d.ts.map +1 -0
  17. package/dist/api/common/translation-patch.dto.js +53 -0
  18. package/dist/api/common/translation-patch.dto.js.map +1 -0
  19. package/dist/api/common/translation.merge.d.ts +24 -0
  20. package/dist/api/common/translation.merge.d.ts.map +1 -0
  21. package/dist/api/common/translation.merge.js +37 -0
  22. package/dist/api/common/translation.merge.js.map +1 -0
  23. package/dist/api/config/knowledge.config.d.ts +12 -0
  24. package/dist/api/config/knowledge.config.d.ts.map +1 -0
  25. package/dist/api/config/knowledge.config.js +3 -0
  26. package/dist/api/config/knowledge.config.js.map +1 -0
  27. package/dist/api/content/article/article.module.d.ts +8 -0
  28. package/dist/api/content/article/article.module.d.ts.map +1 -0
  29. package/dist/api/content/article/article.module.js +53 -0
  30. package/dist/api/content/article/article.module.js.map +1 -0
  31. package/dist/api/content/article/controllers/article.controller.d.ts +36 -0
  32. package/dist/api/content/article/controllers/article.controller.d.ts.map +1 -0
  33. package/dist/api/content/article/controllers/article.controller.js +425 -0
  34. package/dist/api/content/article/controllers/article.controller.js.map +1 -0
  35. package/dist/api/content/article/controllers/article.routes.fixture.d.ts +10 -0
  36. package/dist/api/content/article/controllers/article.routes.fixture.d.ts.map +1 -0
  37. package/dist/api/content/article/controllers/article.routes.fixture.js +35 -0
  38. package/dist/api/content/article/controllers/article.routes.fixture.js.map +1 -0
  39. package/dist/api/content/article/dtos/article.dto.d.ts +11 -0
  40. package/dist/api/content/article/dtos/article.dto.d.ts.map +1 -0
  41. package/dist/api/content/article/dtos/article.dto.js +45 -0
  42. package/dist/api/content/article/dtos/article.dto.js.map +1 -0
  43. package/dist/api/content/article/dtos/article.post.dto.d.ts +29 -0
  44. package/dist/api/content/article/dtos/article.post.dto.d.ts.map +1 -0
  45. package/dist/api/content/article/dtos/article.post.dto.js +124 -0
  46. package/dist/api/content/article/dtos/article.post.dto.js.map +1 -0
  47. package/dist/api/content/article/dtos/article.put.dto.d.ts +29 -0
  48. package/dist/api/content/article/dtos/article.put.dto.d.ts.map +1 -0
  49. package/dist/api/content/article/dtos/article.put.dto.js +124 -0
  50. package/dist/api/content/article/dtos/article.put.dto.js.map +1 -0
  51. package/dist/api/content/article/dtos/article.relationship.dto.d.ts +69 -0
  52. package/dist/api/content/article/dtos/article.relationship.dto.d.ts.map +1 -0
  53. package/dist/api/content/article/dtos/article.relationship.dto.js +141 -0
  54. package/dist/api/content/article/dtos/article.relationship.dto.js.map +1 -0
  55. package/dist/api/content/article/entities/article.d.ts +67 -0
  56. package/dist/api/content/article/entities/article.d.ts.map +1 -0
  57. package/dist/api/content/article/entities/article.js +74 -0
  58. package/dist/api/content/article/entities/article.js.map +1 -0
  59. package/dist/api/content/article/entities/article.meta.d.ts +5 -0
  60. package/dist/api/content/article/entities/article.meta.d.ts.map +1 -0
  61. package/dist/api/content/article/entities/article.meta.js +13 -0
  62. package/dist/api/content/article/entities/article.meta.js.map +1 -0
  63. package/dist/api/content/article/processors/article.processor.d.ts +43 -0
  64. package/dist/api/content/article/processors/article.processor.d.ts.map +1 -0
  65. package/dist/api/content/article/processors/article.processor.js +139 -0
  66. package/dist/api/content/article/processors/article.processor.js.map +1 -0
  67. package/dist/api/content/article/repositories/article.repository.d.ts +118 -0
  68. package/dist/api/content/article/repositories/article.repository.d.ts.map +1 -0
  69. package/dist/api/content/article/repositories/article.repository.js +215 -0
  70. package/dist/api/content/article/repositories/article.repository.js.map +1 -0
  71. package/dist/api/content/article/services/article.service.d.ts +145 -0
  72. package/dist/api/content/article/services/article.service.d.ts.map +1 -0
  73. package/dist/api/content/article/services/article.service.js +263 -0
  74. package/dist/api/content/article/services/article.service.js.map +1 -0
  75. package/dist/api/content/content-extension/content-access-predicates.d.ts +10 -0
  76. package/dist/api/content/content-extension/content-access-predicates.d.ts.map +1 -0
  77. package/dist/api/content/content-extension/content-access-predicates.js +19 -0
  78. package/dist/api/content/content-extension/content-access-predicates.js.map +1 -0
  79. package/dist/api/content/content-extension/content-extension.module.d.ts +9 -0
  80. package/dist/api/content/content-extension/content-extension.module.d.ts.map +1 -0
  81. package/dist/api/content/content-extension/content-extension.module.js +28 -0
  82. package/dist/api/content/content-extension/content-extension.module.js.map +1 -0
  83. package/dist/api/content/content-extension/controllers/content-extension.controller.d.ts +12 -0
  84. package/dist/api/content/content-extension/controllers/content-extension.controller.d.ts.map +1 -0
  85. package/dist/api/content/content-extension/controllers/content-extension.controller.js +76 -0
  86. package/dist/api/content/content-extension/controllers/content-extension.controller.js.map +1 -0
  87. package/dist/api/content/content-extension/controllers/content-extension.routes.fixture.d.ts +10 -0
  88. package/dist/api/content/content-extension/controllers/content-extension.routes.fixture.d.ts.map +1 -0
  89. package/dist/api/content/content-extension/controllers/content-extension.routes.fixture.js +13 -0
  90. package/dist/api/content/content-extension/controllers/content-extension.routes.fixture.js.map +1 -0
  91. package/dist/api/content/content-extension/repositories/content-extension.repository.d.ts +47 -0
  92. package/dist/api/content/content-extension/repositories/content-extension.repository.d.ts.map +1 -0
  93. package/dist/api/content/content-extension/repositories/content-extension.repository.js +124 -0
  94. package/dist/api/content/content-extension/repositories/content-extension.repository.js.map +1 -0
  95. package/dist/api/content/content-extension/services/content-extension.service.d.ts +25 -0
  96. package/dist/api/content/content-extension/services/content-extension.service.d.ts.map +1 -0
  97. package/dist/api/content/content-extension/services/content-extension.service.js +62 -0
  98. package/dist/api/content/content-extension/services/content-extension.service.js.map +1 -0
  99. package/dist/api/content/discussion/controllers/discussion.controller.d.ts +34 -0
  100. package/dist/api/content/discussion/controllers/discussion.controller.d.ts.map +1 -0
  101. package/dist/api/content/discussion/controllers/discussion.controller.js +389 -0
  102. package/dist/api/content/discussion/controllers/discussion.controller.js.map +1 -0
  103. package/dist/api/content/discussion/controllers/discussion.routes.fixture.d.ts +10 -0
  104. package/dist/api/content/discussion/controllers/discussion.routes.fixture.d.ts.map +1 -0
  105. package/dist/api/content/discussion/controllers/discussion.routes.fixture.js +33 -0
  106. package/dist/api/content/discussion/controllers/discussion.routes.fixture.js.map +1 -0
  107. package/dist/api/content/discussion/discussion.module.d.ts +8 -0
  108. package/dist/api/content/discussion/discussion.module.d.ts.map +1 -0
  109. package/dist/api/content/discussion/discussion.module.js +55 -0
  110. package/dist/api/content/discussion/discussion.module.js.map +1 -0
  111. package/dist/api/content/discussion/dtos/discussion.dto.d.ts +11 -0
  112. package/dist/api/content/discussion/dtos/discussion.dto.d.ts.map +1 -0
  113. package/dist/api/content/discussion/dtos/discussion.dto.js +45 -0
  114. package/dist/api/content/discussion/dtos/discussion.dto.js.map +1 -0
  115. package/dist/api/content/discussion/dtos/discussion.post.dto.d.ts +29 -0
  116. package/dist/api/content/discussion/dtos/discussion.post.dto.d.ts.map +1 -0
  117. package/dist/api/content/discussion/dtos/discussion.post.dto.js +124 -0
  118. package/dist/api/content/discussion/dtos/discussion.post.dto.js.map +1 -0
  119. package/dist/api/content/discussion/dtos/discussion.put.dto.d.ts +29 -0
  120. package/dist/api/content/discussion/dtos/discussion.put.dto.d.ts.map +1 -0
  121. package/dist/api/content/discussion/dtos/discussion.put.dto.js +124 -0
  122. package/dist/api/content/discussion/dtos/discussion.put.dto.js.map +1 -0
  123. package/dist/api/content/discussion/dtos/discussion.relationship.dto.d.ts +35 -0
  124. package/dist/api/content/discussion/dtos/discussion.relationship.dto.d.ts.map +1 -0
  125. package/dist/api/content/discussion/dtos/discussion.relationship.dto.js +78 -0
  126. package/dist/api/content/discussion/dtos/discussion.relationship.dto.js.map +1 -0
  127. package/dist/api/content/discussion/entities/discussion.d.ts +68 -0
  128. package/dist/api/content/discussion/entities/discussion.d.ts.map +1 -0
  129. package/dist/api/content/discussion/entities/discussion.js +75 -0
  130. package/dist/api/content/discussion/entities/discussion.js.map +1 -0
  131. package/dist/api/content/discussion/entities/discussion.meta.d.ts +3 -0
  132. package/dist/api/content/discussion/entities/discussion.meta.d.ts.map +1 -0
  133. package/dist/api/content/discussion/entities/discussion.meta.js +10 -0
  134. package/dist/api/content/discussion/entities/discussion.meta.js.map +1 -0
  135. package/dist/api/content/discussion/processors/discussion.processor.d.ts +43 -0
  136. package/dist/api/content/discussion/processors/discussion.processor.d.ts.map +1 -0
  137. package/dist/api/content/discussion/processors/discussion.processor.js +139 -0
  138. package/dist/api/content/discussion/processors/discussion.processor.js.map +1 -0
  139. package/dist/api/content/discussion/repositories/discussion.repository.d.ts +136 -0
  140. package/dist/api/content/discussion/repositories/discussion.repository.d.ts.map +1 -0
  141. package/dist/api/content/discussion/repositories/discussion.repository.js +261 -0
  142. package/dist/api/content/discussion/repositories/discussion.repository.js.map +1 -0
  143. package/dist/api/content/discussion/services/discussion.service.d.ts +162 -0
  144. package/dist/api/content/discussion/services/discussion.service.d.ts.map +1 -0
  145. package/dist/api/content/discussion/services/discussion.service.js +319 -0
  146. package/dist/api/content/discussion/services/discussion.service.js.map +1 -0
  147. package/dist/api/content/discussion-reply/controllers/discussion-reply.controller.d.ts +19 -0
  148. package/dist/api/content/discussion-reply/controllers/discussion-reply.controller.d.ts.map +1 -0
  149. package/dist/api/content/discussion-reply/controllers/discussion-reply.controller.js +144 -0
  150. package/dist/api/content/discussion-reply/controllers/discussion-reply.controller.js.map +1 -0
  151. package/dist/api/content/discussion-reply/controllers/discussion-reply.routes.fixture.d.ts +10 -0
  152. package/dist/api/content/discussion-reply/controllers/discussion-reply.routes.fixture.d.ts.map +1 -0
  153. package/dist/api/content/discussion-reply/controllers/discussion-reply.routes.fixture.js +17 -0
  154. package/dist/api/content/discussion-reply/controllers/discussion-reply.routes.fixture.js.map +1 -0
  155. package/dist/api/content/discussion-reply/discussion-reply.module.d.ts +8 -0
  156. package/dist/api/content/discussion-reply/discussion-reply.module.d.ts.map +1 -0
  157. package/dist/api/content/discussion-reply/discussion-reply.module.js +41 -0
  158. package/dist/api/content/discussion-reply/discussion-reply.module.js.map +1 -0
  159. package/dist/api/content/discussion-reply/dtos/discussion-reply.dto.d.ts +11 -0
  160. package/dist/api/content/discussion-reply/dtos/discussion-reply.dto.d.ts.map +1 -0
  161. package/dist/api/content/discussion-reply/dtos/discussion-reply.dto.js +45 -0
  162. package/dist/api/content/discussion-reply/dtos/discussion-reply.dto.js.map +1 -0
  163. package/dist/api/content/discussion-reply/dtos/discussion-reply.post.dto.d.ts +25 -0
  164. package/dist/api/content/discussion-reply/dtos/discussion-reply.post.dto.d.ts.map +1 -0
  165. package/dist/api/content/discussion-reply/dtos/discussion-reply.post.dto.js +95 -0
  166. package/dist/api/content/discussion-reply/dtos/discussion-reply.post.dto.js.map +1 -0
  167. package/dist/api/content/discussion-reply/dtos/discussion-reply.put.dto.d.ts +25 -0
  168. package/dist/api/content/discussion-reply/dtos/discussion-reply.put.dto.d.ts.map +1 -0
  169. package/dist/api/content/discussion-reply/dtos/discussion-reply.put.dto.js +95 -0
  170. package/dist/api/content/discussion-reply/dtos/discussion-reply.put.dto.js.map +1 -0
  171. package/dist/api/content/discussion-reply/entities/discussion-reply.d.ts +44 -0
  172. package/dist/api/content/discussion-reply/entities/discussion-reply.d.ts.map +1 -0
  173. package/dist/api/content/discussion-reply/entities/discussion-reply.js +45 -0
  174. package/dist/api/content/discussion-reply/entities/discussion-reply.js.map +1 -0
  175. package/dist/api/content/discussion-reply/entities/discussion-reply.meta.d.ts +3 -0
  176. package/dist/api/content/discussion-reply/entities/discussion-reply.meta.d.ts.map +1 -0
  177. package/dist/api/content/discussion-reply/entities/discussion-reply.meta.js +10 -0
  178. package/dist/api/content/discussion-reply/entities/discussion-reply.meta.js.map +1 -0
  179. package/dist/api/content/discussion-reply/repositories/discussion-reply.repository.d.ts +43 -0
  180. package/dist/api/content/discussion-reply/repositories/discussion-reply.repository.d.ts.map +1 -0
  181. package/dist/api/content/discussion-reply/repositories/discussion-reply.repository.js +63 -0
  182. package/dist/api/content/discussion-reply/repositories/discussion-reply.repository.js.map +1 -0
  183. package/dist/api/content/discussion-reply/services/discussion-reply.service.d.ts +55 -0
  184. package/dist/api/content/discussion-reply/services/discussion-reply.service.d.ts.map +1 -0
  185. package/dist/api/content/discussion-reply/services/discussion-reply.service.js +90 -0
  186. package/dist/api/content/discussion-reply/services/discussion-reply.service.js.map +1 -0
  187. package/dist/api/content/document/controllers/document.controller.d.ts +36 -0
  188. package/dist/api/content/document/controllers/document.controller.d.ts.map +1 -0
  189. package/dist/api/content/document/controllers/document.controller.js +425 -0
  190. package/dist/api/content/document/controllers/document.controller.js.map +1 -0
  191. package/dist/api/content/document/controllers/document.routes.fixture.d.ts +10 -0
  192. package/dist/api/content/document/controllers/document.routes.fixture.d.ts.map +1 -0
  193. package/dist/api/content/document/controllers/document.routes.fixture.js +35 -0
  194. package/dist/api/content/document/controllers/document.routes.fixture.js.map +1 -0
  195. package/dist/api/content/document/document.module.d.ts +8 -0
  196. package/dist/api/content/document/document.module.d.ts.map +1 -0
  197. package/dist/api/content/document/document.module.js +54 -0
  198. package/dist/api/content/document/document.module.js.map +1 -0
  199. package/dist/api/content/document/dtos/document.dto.d.ts +11 -0
  200. package/dist/api/content/document/dtos/document.dto.d.ts.map +1 -0
  201. package/dist/api/content/document/dtos/document.dto.js +45 -0
  202. package/dist/api/content/document/dtos/document.dto.js.map +1 -0
  203. package/dist/api/content/document/dtos/document.post.dto.d.ts +29 -0
  204. package/dist/api/content/document/dtos/document.post.dto.d.ts.map +1 -0
  205. package/dist/api/content/document/dtos/document.post.dto.js +124 -0
  206. package/dist/api/content/document/dtos/document.post.dto.js.map +1 -0
  207. package/dist/api/content/document/dtos/document.put.dto.d.ts +29 -0
  208. package/dist/api/content/document/dtos/document.put.dto.d.ts.map +1 -0
  209. package/dist/api/content/document/dtos/document.put.dto.js +124 -0
  210. package/dist/api/content/document/dtos/document.put.dto.js.map +1 -0
  211. package/dist/api/content/document/dtos/document.relationship.dto.d.ts +69 -0
  212. package/dist/api/content/document/dtos/document.relationship.dto.d.ts.map +1 -0
  213. package/dist/api/content/document/dtos/document.relationship.dto.js +141 -0
  214. package/dist/api/content/document/dtos/document.relationship.dto.js.map +1 -0
  215. package/dist/api/content/document/entities/document.d.ts +67 -0
  216. package/dist/api/content/document/entities/document.d.ts.map +1 -0
  217. package/dist/api/content/document/entities/document.js +74 -0
  218. package/dist/api/content/document/entities/document.js.map +1 -0
  219. package/dist/api/content/document/entities/document.meta.d.ts +5 -0
  220. package/dist/api/content/document/entities/document.meta.d.ts.map +1 -0
  221. package/dist/api/content/document/entities/document.meta.js +13 -0
  222. package/dist/api/content/document/entities/document.meta.js.map +1 -0
  223. package/dist/api/content/document/processors/document.processor.d.ts +43 -0
  224. package/dist/api/content/document/processors/document.processor.d.ts.map +1 -0
  225. package/dist/api/content/document/processors/document.processor.js +139 -0
  226. package/dist/api/content/document/processors/document.processor.js.map +1 -0
  227. package/dist/api/content/document/repositories/document.repository.d.ts +118 -0
  228. package/dist/api/content/document/repositories/document.repository.d.ts.map +1 -0
  229. package/dist/api/content/document/repositories/document.repository.js +215 -0
  230. package/dist/api/content/document/repositories/document.repository.js.map +1 -0
  231. package/dist/api/content/document/services/document.service.d.ts +147 -0
  232. package/dist/api/content/document/services/document.service.d.ts.map +1 -0
  233. package/dist/api/content/document/services/document.service.js +280 -0
  234. package/dist/api/content/document/services/document.service.js.map +1 -0
  235. package/dist/api/expertise/access/access.cypher.d.ts +66 -0
  236. package/dist/api/expertise/access/access.cypher.d.ts.map +1 -0
  237. package/dist/api/expertise/access/access.cypher.js +102 -0
  238. package/dist/api/expertise/access/access.cypher.js.map +1 -0
  239. package/dist/api/expertise/access-request/access-request.module.d.ts +10 -0
  240. package/dist/api/expertise/access-request/access-request.module.d.ts.map +1 -0
  241. package/dist/api/expertise/access-request/access-request.module.js +39 -0
  242. package/dist/api/expertise/access-request/access-request.module.js.map +1 -0
  243. package/dist/api/expertise/access-request/controllers/access-request.controller.d.ts +11 -0
  244. package/dist/api/expertise/access-request/controllers/access-request.controller.d.ts.map +1 -0
  245. package/dist/api/expertise/access-request/controllers/access-request.controller.js +51 -0
  246. package/dist/api/expertise/access-request/controllers/access-request.controller.js.map +1 -0
  247. package/dist/api/expertise/access-request/controllers/access-request.routes.fixture.d.ts +6 -0
  248. package/dist/api/expertise/access-request/controllers/access-request.routes.fixture.d.ts.map +1 -0
  249. package/dist/api/expertise/access-request/controllers/access-request.routes.fixture.js +8 -0
  250. package/dist/api/expertise/access-request/controllers/access-request.routes.fixture.js.map +1 -0
  251. package/dist/api/expertise/access-request/entities/access-request.d.ts +21 -0
  252. package/dist/api/expertise/access-request/entities/access-request.d.ts.map +1 -0
  253. package/dist/api/expertise/access-request/entities/access-request.js +21 -0
  254. package/dist/api/expertise/access-request/entities/access-request.js.map +1 -0
  255. package/dist/api/expertise/access-request/entities/access-request.meta.d.ts +3 -0
  256. package/dist/api/expertise/access-request/entities/access-request.meta.d.ts.map +1 -0
  257. package/dist/api/expertise/access-request/entities/access-request.meta.js +10 -0
  258. package/dist/api/expertise/access-request/entities/access-request.meta.js.map +1 -0
  259. package/dist/api/expertise/access-request/repositories/access-request-target.repository.d.ts +112 -0
  260. package/dist/api/expertise/access-request/repositories/access-request-target.repository.d.ts.map +1 -0
  261. package/dist/api/expertise/access-request/repositories/access-request-target.repository.js +72 -0
  262. package/dist/api/expertise/access-request/repositories/access-request-target.repository.js.map +1 -0
  263. package/dist/api/expertise/access-request/repositories/access-request.repository.d.ts +27 -0
  264. package/dist/api/expertise/access-request/repositories/access-request.repository.d.ts.map +1 -0
  265. package/dist/api/expertise/access-request/repositories/access-request.repository.js +91 -0
  266. package/dist/api/expertise/access-request/repositories/access-request.repository.js.map +1 -0
  267. package/dist/api/expertise/access-request/services/access-request.service.d.ts +14 -0
  268. package/dist/api/expertise/access-request/services/access-request.service.d.ts.map +1 -0
  269. package/dist/api/expertise/access-request/services/access-request.service.js +40 -0
  270. package/dist/api/expertise/access-request/services/access-request.service.js.map +1 -0
  271. package/dist/api/expertise/cluster/cluster.module.d.ts +8 -0
  272. package/dist/api/expertise/cluster/cluster.module.d.ts.map +1 -0
  273. package/dist/api/expertise/cluster/cluster.module.js +37 -0
  274. package/dist/api/expertise/cluster/cluster.module.js.map +1 -0
  275. package/dist/api/expertise/cluster/controllers/cluster.controller.d.ts +29 -0
  276. package/dist/api/expertise/cluster/controllers/cluster.controller.d.ts.map +1 -0
  277. package/dist/api/expertise/cluster/controllers/cluster.controller.js +345 -0
  278. package/dist/api/expertise/cluster/controllers/cluster.controller.js.map +1 -0
  279. package/dist/api/expertise/cluster/controllers/cluster.routes.fixture.d.ts +6 -0
  280. package/dist/api/expertise/cluster/controllers/cluster.routes.fixture.d.ts.map +1 -0
  281. package/dist/api/expertise/cluster/controllers/cluster.routes.fixture.js +23 -0
  282. package/dist/api/expertise/cluster/controllers/cluster.routes.fixture.js.map +1 -0
  283. package/dist/api/expertise/cluster/dtos/cluster.dto.d.ts +11 -0
  284. package/dist/api/expertise/cluster/dtos/cluster.dto.d.ts.map +1 -0
  285. package/dist/api/expertise/cluster/dtos/cluster.dto.js +45 -0
  286. package/dist/api/expertise/cluster/dtos/cluster.dto.js.map +1 -0
  287. package/dist/api/expertise/cluster/dtos/cluster.post.dto.d.ts +23 -0
  288. package/dist/api/expertise/cluster/dtos/cluster.post.dto.d.ts.map +1 -0
  289. package/dist/api/expertise/cluster/dtos/cluster.post.dto.js +96 -0
  290. package/dist/api/expertise/cluster/dtos/cluster.post.dto.js.map +1 -0
  291. package/dist/api/expertise/cluster/dtos/cluster.put.dto.d.ts +23 -0
  292. package/dist/api/expertise/cluster/dtos/cluster.put.dto.d.ts.map +1 -0
  293. package/dist/api/expertise/cluster/dtos/cluster.put.dto.js +96 -0
  294. package/dist/api/expertise/cluster/dtos/cluster.put.dto.js.map +1 -0
  295. package/dist/api/expertise/cluster/dtos/cluster.relationship.dto.d.ts +103 -0
  296. package/dist/api/expertise/cluster/dtos/cluster.relationship.dto.d.ts.map +1 -0
  297. package/dist/api/expertise/cluster/dtos/cluster.relationship.dto.js +204 -0
  298. package/dist/api/expertise/cluster/dtos/cluster.relationship.dto.js.map +1 -0
  299. package/dist/api/expertise/cluster/entities/cluster.d.ts +61 -0
  300. package/dist/api/expertise/cluster/entities/cluster.d.ts.map +1 -0
  301. package/dist/api/expertise/cluster/entities/cluster.js +72 -0
  302. package/dist/api/expertise/cluster/entities/cluster.js.map +1 -0
  303. package/dist/api/expertise/cluster/entities/cluster.meta.d.ts +6 -0
  304. package/dist/api/expertise/cluster/entities/cluster.meta.d.ts.map +1 -0
  305. package/dist/api/expertise/cluster/entities/cluster.meta.js +14 -0
  306. package/dist/api/expertise/cluster/entities/cluster.meta.js.map +1 -0
  307. package/dist/api/expertise/cluster/repositories/cluster.repository.d.ts +113 -0
  308. package/dist/api/expertise/cluster/repositories/cluster.repository.d.ts.map +1 -0
  309. package/dist/api/expertise/cluster/repositories/cluster.repository.js +171 -0
  310. package/dist/api/expertise/cluster/repositories/cluster.repository.js.map +1 -0
  311. package/dist/api/expertise/cluster/services/cluster.service.d.ts +105 -0
  312. package/dist/api/expertise/cluster/services/cluster.service.d.ts.map +1 -0
  313. package/dist/api/expertise/cluster/services/cluster.service.js +136 -0
  314. package/dist/api/expertise/cluster/services/cluster.service.js.map +1 -0
  315. package/dist/api/expertise/community-of-expertise/community-of-expertise.module.d.ts +8 -0
  316. package/dist/api/expertise/community-of-expertise/community-of-expertise.module.d.ts.map +1 -0
  317. package/dist/api/expertise/community-of-expertise/community-of-expertise.module.js +44 -0
  318. package/dist/api/expertise/community-of-expertise/community-of-expertise.module.js.map +1 -0
  319. package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.controller.d.ts +30 -0
  320. package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.controller.d.ts.map +1 -0
  321. package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.controller.js +332 -0
  322. package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.controller.js.map +1 -0
  323. package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.routes.fixture.d.ts +6 -0
  324. package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.routes.fixture.d.ts.map +1 -0
  325. package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.routes.fixture.js +26 -0
  326. package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.routes.fixture.js.map +1 -0
  327. package/dist/api/expertise/community-of-expertise/dtos/community-member-role.dto.d.ts +16 -0
  328. package/dist/api/expertise/community-of-expertise/dtos/community-member-role.dto.d.ts.map +1 -0
  329. package/dist/api/expertise/community-of-expertise/dtos/community-member-role.dto.js +49 -0
  330. package/dist/api/expertise/community-of-expertise/dtos/community-member-role.dto.js.map +1 -0
  331. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.dto.d.ts +11 -0
  332. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.dto.d.ts.map +1 -0
  333. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.dto.js +45 -0
  334. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.dto.js.map +1 -0
  335. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.post.dto.d.ts +34 -0
  336. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.post.dto.d.ts.map +1 -0
  337. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.post.dto.js +135 -0
  338. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.post.dto.js.map +1 -0
  339. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.put.dto.d.ts +34 -0
  340. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.put.dto.d.ts.map +1 -0
  341. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.put.dto.js +135 -0
  342. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.put.dto.js.map +1 -0
  343. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.relationship.dto.d.ts +117 -0
  344. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.relationship.dto.d.ts.map +1 -0
  345. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.relationship.dto.js +240 -0
  346. package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.relationship.dto.js.map +1 -0
  347. package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.d.ts +75 -0
  348. package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.d.ts.map +1 -0
  349. package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.js +90 -0
  350. package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.js.map +1 -0
  351. package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.meta.d.ts +6 -0
  352. package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.meta.d.ts.map +1 -0
  353. package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.meta.js +14 -0
  354. package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.meta.js.map +1 -0
  355. package/dist/api/expertise/community-of-expertise/repositories/community-of-expertise.repository.d.ts +122 -0
  356. package/dist/api/expertise/community-of-expertise/repositories/community-of-expertise.repository.d.ts.map +1 -0
  357. package/dist/api/expertise/community-of-expertise/repositories/community-of-expertise.repository.js +184 -0
  358. package/dist/api/expertise/community-of-expertise/repositories/community-of-expertise.repository.js.map +1 -0
  359. package/dist/api/expertise/community-of-expertise/services/community-of-expertise.service.d.ts +107 -0
  360. package/dist/api/expertise/community-of-expertise/services/community-of-expertise.service.d.ts.map +1 -0
  361. package/dist/api/expertise/community-of-expertise/services/community-of-expertise.service.js +179 -0
  362. package/dist/api/expertise/community-of-expertise/services/community-of-expertise.service.js.map +1 -0
  363. package/dist/api/expertise/skill/controllers/skill.controller.d.ts +34 -0
  364. package/dist/api/expertise/skill/controllers/skill.controller.d.ts.map +1 -0
  365. package/dist/api/expertise/skill/controllers/skill.controller.js +357 -0
  366. package/dist/api/expertise/skill/controllers/skill.controller.js.map +1 -0
  367. package/dist/api/expertise/skill/controllers/skill.routes.fixture.d.ts +6 -0
  368. package/dist/api/expertise/skill/controllers/skill.routes.fixture.d.ts.map +1 -0
  369. package/dist/api/expertise/skill/controllers/skill.routes.fixture.js +24 -0
  370. package/dist/api/expertise/skill/controllers/skill.routes.fixture.js.map +1 -0
  371. package/dist/api/expertise/skill/dtos/skill-proficiency.dto.d.ts +14 -0
  372. package/dist/api/expertise/skill/dtos/skill-proficiency.dto.d.ts.map +1 -0
  373. package/dist/api/expertise/skill/dtos/skill-proficiency.dto.js +46 -0
  374. package/dist/api/expertise/skill/dtos/skill-proficiency.dto.js.map +1 -0
  375. package/dist/api/expertise/skill/dtos/skill-user.relationship.dto.d.ts +22 -0
  376. package/dist/api/expertise/skill/dtos/skill-user.relationship.dto.d.ts.map +1 -0
  377. package/dist/api/expertise/skill/dtos/skill-user.relationship.dto.js +54 -0
  378. package/dist/api/expertise/skill/dtos/skill-user.relationship.dto.js.map +1 -0
  379. package/dist/api/expertise/skill/dtos/skill.dto.d.ts +11 -0
  380. package/dist/api/expertise/skill/dtos/skill.dto.d.ts.map +1 -0
  381. package/dist/api/expertise/skill/dtos/skill.dto.js +45 -0
  382. package/dist/api/expertise/skill/dtos/skill.dto.js.map +1 -0
  383. package/dist/api/expertise/skill/dtos/skill.post.dto.d.ts +29 -0
  384. package/dist/api/expertise/skill/dtos/skill.post.dto.d.ts.map +1 -0
  385. package/dist/api/expertise/skill/dtos/skill.post.dto.js +115 -0
  386. package/dist/api/expertise/skill/dtos/skill.post.dto.js.map +1 -0
  387. package/dist/api/expertise/skill/dtos/skill.put.dto.d.ts +29 -0
  388. package/dist/api/expertise/skill/dtos/skill.put.dto.d.ts.map +1 -0
  389. package/dist/api/expertise/skill/dtos/skill.put.dto.js +115 -0
  390. package/dist/api/expertise/skill/dtos/skill.put.dto.js.map +1 -0
  391. package/dist/api/expertise/skill/dtos/skill.relationship.dto.d.ts +88 -0
  392. package/dist/api/expertise/skill/dtos/skill.relationship.dto.d.ts.map +1 -0
  393. package/dist/api/expertise/skill/dtos/skill.relationship.dto.js +182 -0
  394. package/dist/api/expertise/skill/dtos/skill.relationship.dto.js.map +1 -0
  395. package/dist/api/expertise/skill/entities/skill.d.ts +46 -0
  396. package/dist/api/expertise/skill/entities/skill.d.ts.map +1 -0
  397. package/dist/api/expertise/skill/entities/skill.js +49 -0
  398. package/dist/api/expertise/skill/entities/skill.js.map +1 -0
  399. package/dist/api/expertise/skill/entities/skill.meta.d.ts +3 -0
  400. package/dist/api/expertise/skill/entities/skill.meta.d.ts.map +1 -0
  401. package/dist/api/expertise/skill/entities/skill.meta.js +10 -0
  402. package/dist/api/expertise/skill/entities/skill.meta.js.map +1 -0
  403. package/dist/api/expertise/skill/repositories/skill.repository.d.ts +59 -0
  404. package/dist/api/expertise/skill/repositories/skill.repository.d.ts.map +1 -0
  405. package/dist/api/expertise/skill/repositories/skill.repository.js +109 -0
  406. package/dist/api/expertise/skill/repositories/skill.repository.js.map +1 -0
  407. package/dist/api/expertise/skill/services/skill.service.d.ts +95 -0
  408. package/dist/api/expertise/skill/services/skill.service.d.ts.map +1 -0
  409. package/dist/api/expertise/skill/services/skill.service.js +155 -0
  410. package/dist/api/expertise/skill/services/skill.service.js.map +1 -0
  411. package/dist/api/expertise/skill/skill.module.d.ts +8 -0
  412. package/dist/api/expertise/skill/skill.module.d.ts.map +1 -0
  413. package/dist/api/expertise/skill/skill.module.js +37 -0
  414. package/dist/api/expertise/skill/skill.module.js.map +1 -0
  415. package/dist/api/expertise/taxonomy/controllers/taxonomy.controller.d.ts +22 -0
  416. package/dist/api/expertise/taxonomy/controllers/taxonomy.controller.d.ts.map +1 -0
  417. package/dist/api/expertise/taxonomy/controllers/taxonomy.controller.js +190 -0
  418. package/dist/api/expertise/taxonomy/controllers/taxonomy.controller.js.map +1 -0
  419. package/dist/api/expertise/taxonomy/controllers/taxonomy.routes.fixture.d.ts +6 -0
  420. package/dist/api/expertise/taxonomy/controllers/taxonomy.routes.fixture.d.ts.map +1 -0
  421. package/dist/api/expertise/taxonomy/controllers/taxonomy.routes.fixture.js +18 -0
  422. package/dist/api/expertise/taxonomy/controllers/taxonomy.routes.fixture.js.map +1 -0
  423. package/dist/api/expertise/taxonomy/dtos/taxonomy.dto.d.ts +11 -0
  424. package/dist/api/expertise/taxonomy/dtos/taxonomy.dto.d.ts.map +1 -0
  425. package/dist/api/expertise/taxonomy/dtos/taxonomy.dto.js +45 -0
  426. package/dist/api/expertise/taxonomy/dtos/taxonomy.dto.js.map +1 -0
  427. package/dist/api/expertise/taxonomy/dtos/taxonomy.post.dto.d.ts +21 -0
  428. package/dist/api/expertise/taxonomy/dtos/taxonomy.post.dto.d.ts.map +1 -0
  429. package/dist/api/expertise/taxonomy/dtos/taxonomy.post.dto.js +84 -0
  430. package/dist/api/expertise/taxonomy/dtos/taxonomy.post.dto.js.map +1 -0
  431. package/dist/api/expertise/taxonomy/dtos/taxonomy.put.dto.d.ts +21 -0
  432. package/dist/api/expertise/taxonomy/dtos/taxonomy.put.dto.d.ts.map +1 -0
  433. package/dist/api/expertise/taxonomy/dtos/taxonomy.put.dto.js +84 -0
  434. package/dist/api/expertise/taxonomy/dtos/taxonomy.put.dto.js.map +1 -0
  435. package/dist/api/expertise/taxonomy/entities/taxonomy.d.ts +38 -0
  436. package/dist/api/expertise/taxonomy/entities/taxonomy.d.ts.map +1 -0
  437. package/dist/api/expertise/taxonomy/entities/taxonomy.js +43 -0
  438. package/dist/api/expertise/taxonomy/entities/taxonomy.js.map +1 -0
  439. package/dist/api/expertise/taxonomy/entities/taxonomy.meta.d.ts +3 -0
  440. package/dist/api/expertise/taxonomy/entities/taxonomy.meta.d.ts.map +1 -0
  441. package/dist/api/expertise/taxonomy/entities/taxonomy.meta.js +10 -0
  442. package/dist/api/expertise/taxonomy/entities/taxonomy.meta.js.map +1 -0
  443. package/dist/api/expertise/taxonomy/repositories/taxonomy.repository.d.ts +64 -0
  444. package/dist/api/expertise/taxonomy/repositories/taxonomy.repository.d.ts.map +1 -0
  445. package/dist/api/expertise/taxonomy/repositories/taxonomy.repository.js +118 -0
  446. package/dist/api/expertise/taxonomy/repositories/taxonomy.repository.js.map +1 -0
  447. package/dist/api/expertise/taxonomy/services/taxonomy.service.d.ts +53 -0
  448. package/dist/api/expertise/taxonomy/services/taxonomy.service.d.ts.map +1 -0
  449. package/dist/api/expertise/taxonomy/services/taxonomy.service.js +117 -0
  450. package/dist/api/expertise/taxonomy/services/taxonomy.service.js.map +1 -0
  451. package/dist/api/expertise/taxonomy/taxonomy.module.d.ts +8 -0
  452. package/dist/api/expertise/taxonomy/taxonomy.module.d.ts.map +1 -0
  453. package/dist/api/expertise/taxonomy/taxonomy.module.js +37 -0
  454. package/dist/api/expertise/taxonomy/taxonomy.module.js.map +1 -0
  455. package/dist/api/expertise/translations/controllers/expertise-translations.controller.d.ts +14 -0
  456. package/dist/api/expertise/translations/controllers/expertise-translations.controller.d.ts.map +1 -0
  457. package/dist/api/expertise/translations/controllers/expertise-translations.controller.js +87 -0
  458. package/dist/api/expertise/translations/controllers/expertise-translations.controller.js.map +1 -0
  459. package/dist/api/expertise/translations/controllers/expertise-translations.routes.fixture.d.ts +6 -0
  460. package/dist/api/expertise/translations/controllers/expertise-translations.routes.fixture.d.ts.map +1 -0
  461. package/dist/api/expertise/translations/controllers/expertise-translations.routes.fixture.js +9 -0
  462. package/dist/api/expertise/translations/controllers/expertise-translations.routes.fixture.js.map +1 -0
  463. package/dist/api/expertise/translations/repositories/cluster-translations.repository.d.ts +61 -0
  464. package/dist/api/expertise/translations/repositories/cluster-translations.repository.d.ts.map +1 -0
  465. package/dist/api/expertise/translations/repositories/cluster-translations.repository.js +52 -0
  466. package/dist/api/expertise/translations/repositories/cluster-translations.repository.js.map +1 -0
  467. package/dist/api/expertise/translations/repositories/community-of-expertise-translations.repository.d.ts +69 -0
  468. package/dist/api/expertise/translations/repositories/community-of-expertise-translations.repository.d.ts.map +1 -0
  469. package/dist/api/expertise/translations/repositories/community-of-expertise-translations.repository.js +48 -0
  470. package/dist/api/expertise/translations/repositories/community-of-expertise-translations.repository.js.map +1 -0
  471. package/dist/api/expertise/translations/services/cluster-translations.service.d.ts +55 -0
  472. package/dist/api/expertise/translations/services/cluster-translations.service.d.ts.map +1 -0
  473. package/dist/api/expertise/translations/services/cluster-translations.service.js +50 -0
  474. package/dist/api/expertise/translations/services/cluster-translations.service.js.map +1 -0
  475. package/dist/api/expertise/translations/services/community-of-expertise-translations.service.d.ts +67 -0
  476. package/dist/api/expertise/translations/services/community-of-expertise-translations.service.d.ts.map +1 -0
  477. package/dist/api/expertise/translations/services/community-of-expertise-translations.service.js +50 -0
  478. package/dist/api/expertise/translations/services/community-of-expertise-translations.service.js.map +1 -0
  479. package/dist/api/expertise/translations/translations.module.d.ts +11 -0
  480. package/dist/api/expertise/translations/translations.module.d.ts.map +1 -0
  481. package/dist/api/expertise/translations/translations.module.js +39 -0
  482. package/dist/api/expertise/translations/translations.module.js.map +1 -0
  483. package/dist/api/index.d.ts +97 -0
  484. package/dist/api/index.d.ts.map +1 -0
  485. package/dist/api/index.js +184 -0
  486. package/dist/api/index.js.map +1 -0
  487. package/dist/api/knowledge.module.d.ts +10 -0
  488. package/dist/api/knowledge.module.d.ts.map +1 -0
  489. package/dist/api/knowledge.module.js +93 -0
  490. package/dist/api/knowledge.module.js.map +1 -0
  491. package/dist/chunk-EXUPVXK4.mjs +2871 -0
  492. package/dist/chunk-EXUPVXK4.mjs.map +1 -0
  493. package/dist/chunk-HEG4DPMD.js +2876 -0
  494. package/dist/chunk-HEG4DPMD.js.map +1 -0
  495. package/dist/seed/index.d.ts +4 -0
  496. package/dist/seed/index.d.ts.map +1 -0
  497. package/dist/seed/index.js +9 -0
  498. package/dist/seed/index.js.map +1 -0
  499. package/dist/seed/knowledge.module.seed.d.ts +12 -0
  500. package/dist/seed/knowledge.module.seed.d.ts.map +1 -0
  501. package/dist/seed/knowledge.module.seed.js +44 -0
  502. package/dist/seed/knowledge.module.seed.js.map +1 -0
  503. package/dist/shared/content-language.d.ts +10 -0
  504. package/dist/shared/content-language.d.ts.map +1 -0
  505. package/dist/shared/content-language.js +5 -0
  506. package/dist/shared/content-language.js.map +1 -0
  507. package/dist/shared/content-status.d.ts +7 -0
  508. package/dist/shared/content-status.d.ts.map +1 -0
  509. package/dist/shared/content-status.js +5 -0
  510. package/dist/shared/content-status.js.map +1 -0
  511. package/dist/shared/index.d.ts +10 -0
  512. package/dist/shared/index.d.ts.map +1 -0
  513. package/dist/shared/index.js +32 -0
  514. package/dist/shared/index.js.map +1 -0
  515. package/dist/shared/knowledge.endpoints.d.ts +18 -0
  516. package/dist/shared/knowledge.endpoints.d.ts.map +1 -0
  517. package/dist/shared/knowledge.endpoints.js +21 -0
  518. package/dist/shared/knowledge.endpoints.js.map +1 -0
  519. package/dist/shared/knowledge.module.ids.d.ts +11 -0
  520. package/dist/shared/knowledge.module.ids.d.ts.map +1 -0
  521. package/dist/shared/knowledge.module.ids.js +14 -0
  522. package/dist/shared/knowledge.module.ids.js.map +1 -0
  523. package/dist/shared/knowledge.queues.d.ts +16 -0
  524. package/dist/shared/knowledge.queues.d.ts.map +1 -0
  525. package/dist/shared/knowledge.queues.js +17 -0
  526. package/dist/shared/knowledge.queues.js.map +1 -0
  527. package/dist/shared/knowledge.s3.folders.d.ts +5 -0
  528. package/dist/shared/knowledge.s3.folders.d.ts.map +1 -0
  529. package/dist/shared/knowledge.s3.folders.js +8 -0
  530. package/dist/shared/knowledge.s3.folders.js.map +1 -0
  531. package/dist/shared/role-in-community.d.ts +10 -0
  532. package/dist/shared/role-in-community.d.ts.map +1 -0
  533. package/dist/shared/role-in-community.js +15 -0
  534. package/dist/shared/role-in-community.js.map +1 -0
  535. package/dist/shared/schemas/graph-creation-event.schema.d.ts +66 -0
  536. package/dist/shared/schemas/graph-creation-event.schema.d.ts.map +1 -0
  537. package/dist/shared/schemas/graph-creation-event.schema.js +49 -0
  538. package/dist/shared/schemas/graph-creation-event.schema.js.map +1 -0
  539. package/dist/shared/schemas/index.d.ts +2 -0
  540. package/dist/shared/schemas/index.d.ts.map +1 -0
  541. package/dist/shared/schemas/index.js +11 -0
  542. package/dist/shared/schemas/index.js.map +1 -0
  543. package/dist/shared/skill-level.d.ts +8 -0
  544. package/dist/shared/skill-level.d.ts.map +1 -0
  545. package/dist/shared/skill-level.js +10 -0
  546. package/dist/shared/skill-level.js.map +1 -0
  547. package/dist/web/common/components/details/ImageHoverCard.d.ts +10 -0
  548. package/dist/web/common/components/details/ImageHoverCard.d.ts.map +1 -0
  549. package/dist/web/common/components/translations/TranslationsTab.d.ts +16 -0
  550. package/dist/web/common/components/translations/TranslationsTab.d.ts.map +1 -0
  551. package/dist/web/common/data/jsonAttribute.d.ts +49 -0
  552. package/dist/web/common/data/jsonAttribute.d.ts.map +1 -0
  553. package/dist/web/common/hooks/useContentLanguage.d.ts +9 -0
  554. package/dist/web/common/hooks/useContentLanguage.d.ts.map +1 -0
  555. package/dist/web/common/i18n/translationResolver.d.ts +15 -0
  556. package/dist/web/common/i18n/translationResolver.d.ts.map +1 -0
  557. package/dist/web/config/knowledge.modules.d.ts +7 -0
  558. package/dist/web/config/knowledge.modules.d.ts.map +1 -0
  559. package/dist/web/config/knowledge.ui.config.d.ts +26 -0
  560. package/dist/web/config/knowledge.ui.config.d.ts.map +1 -0
  561. package/dist/web/content/article/ArticleModule.d.ts +4 -0
  562. package/dist/web/content/article/ArticleModule.d.ts.map +1 -0
  563. package/dist/web/content/article/components/containers/ArticleContainer.d.ts +2 -0
  564. package/dist/web/content/article/components/containers/ArticleContainer.d.ts.map +1 -0
  565. package/dist/web/content/article/components/containers/ArticleListContainer.d.ts +2 -0
  566. package/dist/web/content/article/components/containers/ArticleListContainer.d.ts.map +1 -0
  567. package/dist/web/content/article/components/details/ArticleContent.d.ts +7 -0
  568. package/dist/web/content/article/components/details/ArticleContent.d.ts.map +1 -0
  569. package/dist/web/content/article/components/forms/ArticleDeleter.d.ts +7 -0
  570. package/dist/web/content/article/components/forms/ArticleDeleter.d.ts.map +1 -0
  571. package/dist/web/content/article/components/forms/ArticleEditor.d.ts +14 -0
  572. package/dist/web/content/article/components/forms/ArticleEditor.d.ts.map +1 -0
  573. package/dist/web/content/article/components/forms/ArticleMultiSelector.d.ts +14 -0
  574. package/dist/web/content/article/components/forms/ArticleMultiSelector.d.ts.map +1 -0
  575. package/dist/web/content/article/components/forms/ArticleSelector.d.ts +12 -0
  576. package/dist/web/content/article/components/forms/ArticleSelector.d.ts.map +1 -0
  577. package/dist/web/content/article/components/lists/ArticleList.d.ts +11 -0
  578. package/dist/web/content/article/components/lists/ArticleList.d.ts.map +1 -0
  579. package/dist/web/content/article/components/screens/ArticleDetailScreen.d.ts +5 -0
  580. package/dist/web/content/article/components/screens/ArticleDetailScreen.d.ts.map +1 -0
  581. package/dist/web/content/article/components/screens/ArticleListScreen.d.ts +2 -0
  582. package/dist/web/content/article/components/screens/ArticleListScreen.d.ts.map +1 -0
  583. package/dist/web/content/article/contexts/ArticleContext.d.ts +16 -0
  584. package/dist/web/content/article/contexts/ArticleContext.d.ts.map +1 -0
  585. package/dist/web/content/article/data/Article.d.ts +58 -0
  586. package/dist/web/content/article/data/Article.d.ts.map +1 -0
  587. package/dist/web/content/article/data/ArticleAliases.d.ts +11 -0
  588. package/dist/web/content/article/data/ArticleAliases.d.ts.map +1 -0
  589. package/dist/web/content/article/data/ArticleFields.d.ts +20 -0
  590. package/dist/web/content/article/data/ArticleFields.d.ts.map +1 -0
  591. package/dist/web/content/article/data/ArticleInterface.d.ts +37 -0
  592. package/dist/web/content/article/data/ArticleInterface.d.ts.map +1 -0
  593. package/dist/web/content/article/data/ArticleService.d.ts +69 -0
  594. package/dist/web/content/article/data/ArticleService.d.ts.map +1 -0
  595. package/dist/web/content/article/hooks/useArticleTableStructure.d.ts +5 -0
  596. package/dist/web/content/article/hooks/useArticleTableStructure.d.ts.map +1 -0
  597. package/dist/web/content/common/components/ContentStatusBadge.d.ts +6 -0
  598. package/dist/web/content/common/components/ContentStatusBadge.d.ts.map +1 -0
  599. package/dist/web/content/common/components/ContentStatusBar.d.ts +18 -0
  600. package/dist/web/content/common/components/ContentStatusBar.d.ts.map +1 -0
  601. package/dist/web/content/common/utils/contentStatus.d.ts +7 -0
  602. package/dist/web/content/common/utils/contentStatus.d.ts.map +1 -0
  603. package/dist/web/content/common/utils/translationMaps.d.ts +24 -0
  604. package/dist/web/content/common/utils/translationMaps.d.ts.map +1 -0
  605. package/dist/web/content/components/forms/ContentFileUpload.d.ts +6 -0
  606. package/dist/web/content/components/forms/ContentFileUpload.d.ts.map +1 -0
  607. package/dist/web/content/discussion/DiscussionModule.d.ts +4 -0
  608. package/dist/web/content/discussion/DiscussionModule.d.ts.map +1 -0
  609. package/dist/web/content/discussion/components/containers/DiscussionContainer.d.ts +2 -0
  610. package/dist/web/content/discussion/components/containers/DiscussionContainer.d.ts.map +1 -0
  611. package/dist/web/content/discussion/components/containers/DiscussionListContainer.d.ts +2 -0
  612. package/dist/web/content/discussion/components/containers/DiscussionListContainer.d.ts.map +1 -0
  613. package/dist/web/content/discussion/components/details/DiscussionContent.d.ts +7 -0
  614. package/dist/web/content/discussion/components/details/DiscussionContent.d.ts.map +1 -0
  615. package/dist/web/content/discussion/components/forms/DiscussionDeleter.d.ts +7 -0
  616. package/dist/web/content/discussion/components/forms/DiscussionDeleter.d.ts.map +1 -0
  617. package/dist/web/content/discussion/components/forms/DiscussionEditor.d.ts +14 -0
  618. package/dist/web/content/discussion/components/forms/DiscussionEditor.d.ts.map +1 -0
  619. package/dist/web/content/discussion/components/forms/DiscussionMultiSelector.d.ts +14 -0
  620. package/dist/web/content/discussion/components/forms/DiscussionMultiSelector.d.ts.map +1 -0
  621. package/dist/web/content/discussion/components/forms/DiscussionSelector.d.ts +12 -0
  622. package/dist/web/content/discussion/components/forms/DiscussionSelector.d.ts.map +1 -0
  623. package/dist/web/content/discussion/components/forms/GenerateArticleButton.d.ts +11 -0
  624. package/dist/web/content/discussion/components/forms/GenerateArticleButton.d.ts.map +1 -0
  625. package/dist/web/content/discussion/components/lists/DiscussionList.d.ts +11 -0
  626. package/dist/web/content/discussion/components/lists/DiscussionList.d.ts.map +1 -0
  627. package/dist/web/content/discussion/components/screens/DiscussionDetailScreen.d.ts +5 -0
  628. package/dist/web/content/discussion/components/screens/DiscussionDetailScreen.d.ts.map +1 -0
  629. package/dist/web/content/discussion/components/screens/DiscussionListScreen.d.ts +2 -0
  630. package/dist/web/content/discussion/components/screens/DiscussionListScreen.d.ts.map +1 -0
  631. package/dist/web/content/discussion/contexts/DiscussionContext.d.ts +16 -0
  632. package/dist/web/content/discussion/contexts/DiscussionContext.d.ts.map +1 -0
  633. package/dist/web/content/discussion/data/Discussion.d.ts +59 -0
  634. package/dist/web/content/discussion/data/Discussion.d.ts.map +1 -0
  635. package/dist/web/content/discussion/data/DiscussionFields.d.ts +20 -0
  636. package/dist/web/content/discussion/data/DiscussionFields.d.ts.map +1 -0
  637. package/dist/web/content/discussion/data/DiscussionInterface.d.ts +38 -0
  638. package/dist/web/content/discussion/data/DiscussionInterface.d.ts.map +1 -0
  639. package/dist/web/content/discussion/data/DiscussionService.d.ts +82 -0
  640. package/dist/web/content/discussion/data/DiscussionService.d.ts.map +1 -0
  641. package/dist/web/content/discussion/hooks/useDiscussionTableStructure.d.ts +5 -0
  642. package/dist/web/content/discussion/hooks/useDiscussionTableStructure.d.ts.map +1 -0
  643. package/dist/web/content/discussion-reply/DiscussionReplyModule.d.ts +4 -0
  644. package/dist/web/content/discussion-reply/DiscussionReplyModule.d.ts.map +1 -0
  645. package/dist/web/content/discussion-reply/components/DiscussionReplies.d.ts +6 -0
  646. package/dist/web/content/discussion-reply/components/DiscussionReplies.d.ts.map +1 -0
  647. package/dist/web/content/discussion-reply/components/DiscussionReplyEditor.d.ts +13 -0
  648. package/dist/web/content/discussion-reply/components/DiscussionReplyEditor.d.ts.map +1 -0
  649. package/dist/web/content/discussion-reply/components/DiscussionReplyItem.d.ts +10 -0
  650. package/dist/web/content/discussion-reply/components/DiscussionReplyItem.d.ts.map +1 -0
  651. package/dist/web/content/discussion-reply/components/ReplyApproveButton.d.ts +14 -0
  652. package/dist/web/content/discussion-reply/components/ReplyApproveButton.d.ts.map +1 -0
  653. package/dist/web/content/discussion-reply/components/containers/DiscussionReplyContainer.d.ts +2 -0
  654. package/dist/web/content/discussion-reply/components/containers/DiscussionReplyContainer.d.ts.map +1 -0
  655. package/dist/web/content/discussion-reply/components/containers/DiscussionReplyListContainer.d.ts +2 -0
  656. package/dist/web/content/discussion-reply/components/containers/DiscussionReplyListContainer.d.ts.map +1 -0
  657. package/dist/web/content/discussion-reply/components/details/DiscussionReplyContent.d.ts +7 -0
  658. package/dist/web/content/discussion-reply/components/details/DiscussionReplyContent.d.ts.map +1 -0
  659. package/dist/web/content/discussion-reply/components/forms/DiscussionReplyDeleter.d.ts +7 -0
  660. package/dist/web/content/discussion-reply/components/forms/DiscussionReplyDeleter.d.ts.map +1 -0
  661. package/dist/web/content/discussion-reply/components/forms/DiscussionReplyEditor.d.ts +14 -0
  662. package/dist/web/content/discussion-reply/components/forms/DiscussionReplyEditor.d.ts.map +1 -0
  663. package/dist/web/content/discussion-reply/components/forms/DiscussionReplyMultiSelector.d.ts +14 -0
  664. package/dist/web/content/discussion-reply/components/forms/DiscussionReplyMultiSelector.d.ts.map +1 -0
  665. package/dist/web/content/discussion-reply/components/forms/DiscussionReplySelector.d.ts +12 -0
  666. package/dist/web/content/discussion-reply/components/forms/DiscussionReplySelector.d.ts.map +1 -0
  667. package/dist/web/content/discussion-reply/components/lists/DiscussionReplyList.d.ts +9 -0
  668. package/dist/web/content/discussion-reply/components/lists/DiscussionReplyList.d.ts.map +1 -0
  669. package/dist/web/content/discussion-reply/components/screens/DiscussionReplyDetailScreen.d.ts +5 -0
  670. package/dist/web/content/discussion-reply/components/screens/DiscussionReplyDetailScreen.d.ts.map +1 -0
  671. package/dist/web/content/discussion-reply/components/screens/DiscussionReplyListScreen.d.ts +2 -0
  672. package/dist/web/content/discussion-reply/components/screens/DiscussionReplyListScreen.d.ts.map +1 -0
  673. package/dist/web/content/discussion-reply/contexts/DiscussionReplyContext.d.ts +16 -0
  674. package/dist/web/content/discussion-reply/contexts/DiscussionReplyContext.d.ts.map +1 -0
  675. package/dist/web/content/discussion-reply/data/DiscussionReply.d.ts +18 -0
  676. package/dist/web/content/discussion-reply/data/DiscussionReply.d.ts.map +1 -0
  677. package/dist/web/content/discussion-reply/data/DiscussionReplyFields.d.ts +10 -0
  678. package/dist/web/content/discussion-reply/data/DiscussionReplyFields.d.ts.map +1 -0
  679. package/dist/web/content/discussion-reply/data/DiscussionReplyInterface.d.ts +21 -0
  680. package/dist/web/content/discussion-reply/data/DiscussionReplyInterface.d.ts.map +1 -0
  681. package/dist/web/content/discussion-reply/data/DiscussionReplyService.d.ts +36 -0
  682. package/dist/web/content/discussion-reply/data/DiscussionReplyService.d.ts.map +1 -0
  683. package/dist/web/content/discussion-reply/hooks/useDiscussionReplyTableStructure.d.ts +5 -0
  684. package/dist/web/content/discussion-reply/hooks/useDiscussionReplyTableStructure.d.ts.map +1 -0
  685. package/dist/web/content/document/DocumentModule.d.ts +4 -0
  686. package/dist/web/content/document/DocumentModule.d.ts.map +1 -0
  687. package/dist/web/content/document/components/containers/DocumentContainer.d.ts +2 -0
  688. package/dist/web/content/document/components/containers/DocumentContainer.d.ts.map +1 -0
  689. package/dist/web/content/document/components/containers/DocumentListContainer.d.ts +2 -0
  690. package/dist/web/content/document/components/containers/DocumentListContainer.d.ts.map +1 -0
  691. package/dist/web/content/document/components/details/DocumentContent.d.ts +7 -0
  692. package/dist/web/content/document/components/details/DocumentContent.d.ts.map +1 -0
  693. package/dist/web/content/document/components/forms/DocumentDeleter.d.ts +7 -0
  694. package/dist/web/content/document/components/forms/DocumentDeleter.d.ts.map +1 -0
  695. package/dist/web/content/document/components/forms/DocumentDownloader.d.ts +11 -0
  696. package/dist/web/content/document/components/forms/DocumentDownloader.d.ts.map +1 -0
  697. package/dist/web/content/document/components/forms/DocumentEditor.d.ts +10 -0
  698. package/dist/web/content/document/components/forms/DocumentEditor.d.ts.map +1 -0
  699. package/dist/web/content/document/components/forms/DocumentMultiSelector.d.ts +14 -0
  700. package/dist/web/content/document/components/forms/DocumentMultiSelector.d.ts.map +1 -0
  701. package/dist/web/content/document/components/forms/DocumentSelector.d.ts +12 -0
  702. package/dist/web/content/document/components/forms/DocumentSelector.d.ts.map +1 -0
  703. package/dist/web/content/document/components/forms/DocumentUploadEditor.d.ts +13 -0
  704. package/dist/web/content/document/components/forms/DocumentUploadEditor.d.ts.map +1 -0
  705. package/dist/web/content/document/components/lists/DocumentList.d.ts +11 -0
  706. package/dist/web/content/document/components/lists/DocumentList.d.ts.map +1 -0
  707. package/dist/web/content/document/components/screens/DocumentDetailScreen.d.ts +5 -0
  708. package/dist/web/content/document/components/screens/DocumentDetailScreen.d.ts.map +1 -0
  709. package/dist/web/content/document/components/screens/DocumentListScreen.d.ts +2 -0
  710. package/dist/web/content/document/components/screens/DocumentListScreen.d.ts.map +1 -0
  711. package/dist/web/content/document/contexts/DocumentContext.d.ts +16 -0
  712. package/dist/web/content/document/contexts/DocumentContext.d.ts.map +1 -0
  713. package/dist/web/content/document/data/Document.d.ts +58 -0
  714. package/dist/web/content/document/data/Document.d.ts.map +1 -0
  715. package/dist/web/content/document/data/DocumentAliases.d.ts +11 -0
  716. package/dist/web/content/document/data/DocumentAliases.d.ts.map +1 -0
  717. package/dist/web/content/document/data/DocumentFields.d.ts +20 -0
  718. package/dist/web/content/document/data/DocumentFields.d.ts.map +1 -0
  719. package/dist/web/content/document/data/DocumentInterface.d.ts +37 -0
  720. package/dist/web/content/document/data/DocumentInterface.d.ts.map +1 -0
  721. package/dist/web/content/document/data/DocumentService.d.ts +69 -0
  722. package/dist/web/content/document/data/DocumentService.d.ts.map +1 -0
  723. package/dist/web/content/document/hooks/useDocumentTableStructure.d.ts +5 -0
  724. package/dist/web/content/document/hooks/useDocumentTableStructure.d.ts.map +1 -0
  725. package/dist/web/content/document/utils/fileExtension.d.ts +2 -0
  726. package/dist/web/content/document/utils/fileExtension.d.ts.map +1 -0
  727. package/dist/web/core.d.ts +49 -0
  728. package/dist/web/core.d.ts.map +1 -0
  729. package/dist/web/core.js +429 -0
  730. package/dist/web/core.js.map +1 -0
  731. package/dist/web/core.mjs +429 -0
  732. package/dist/web/core.mjs.map +1 -0
  733. package/dist/web/expertise/access-request/AccessRequestModule.d.ts +11 -0
  734. package/dist/web/expertise/access-request/AccessRequestModule.d.ts.map +1 -0
  735. package/dist/web/expertise/access-request/components/containers/AccessRequestListContainer.d.ts +2 -0
  736. package/dist/web/expertise/access-request/components/containers/AccessRequestListContainer.d.ts.map +1 -0
  737. package/dist/web/expertise/access-request/components/lists/AccessRequestList.d.ts +4 -0
  738. package/dist/web/expertise/access-request/components/lists/AccessRequestList.d.ts.map +1 -0
  739. package/dist/web/expertise/access-request/components/screens/AccessRequestListScreen.d.ts +2 -0
  740. package/dist/web/expertise/access-request/components/screens/AccessRequestListScreen.d.ts.map +1 -0
  741. package/dist/web/expertise/access-request/data/AccessRequest.d.ts +24 -0
  742. package/dist/web/expertise/access-request/data/AccessRequest.d.ts.map +1 -0
  743. package/dist/web/expertise/access-request/data/AccessRequestInterface.d.ts +16 -0
  744. package/dist/web/expertise/access-request/data/AccessRequestInterface.d.ts.map +1 -0
  745. package/dist/web/expertise/access-request/data/AccessRequestService.d.ts +11 -0
  746. package/dist/web/expertise/access-request/data/AccessRequestService.d.ts.map +1 -0
  747. package/dist/web/expertise/access-request/hooks/useAccessRequestTableStructure.d.ts +12 -0
  748. package/dist/web/expertise/access-request/hooks/useAccessRequestTableStructure.d.ts.map +1 -0
  749. package/dist/web/expertise/cluster/ClusterModule.d.ts +4 -0
  750. package/dist/web/expertise/cluster/ClusterModule.d.ts.map +1 -0
  751. package/dist/web/expertise/cluster/components/containers/ClusterContainer.d.ts +2 -0
  752. package/dist/web/expertise/cluster/components/containers/ClusterContainer.d.ts.map +1 -0
  753. package/dist/web/expertise/cluster/components/containers/ClusterListContainer.d.ts +3 -0
  754. package/dist/web/expertise/cluster/components/containers/ClusterListContainer.d.ts.map +1 -0
  755. package/dist/web/expertise/cluster/components/details/ClusterContent.d.ts +7 -0
  756. package/dist/web/expertise/cluster/components/details/ClusterContent.d.ts.map +1 -0
  757. package/dist/web/expertise/cluster/components/forms/AddUserToClusterDialog.d.ts +14 -0
  758. package/dist/web/expertise/cluster/components/forms/AddUserToClusterDialog.d.ts.map +1 -0
  759. package/dist/web/expertise/cluster/components/forms/ClusterAccessButtons.d.ts +16 -0
  760. package/dist/web/expertise/cluster/components/forms/ClusterAccessButtons.d.ts.map +1 -0
  761. package/dist/web/expertise/cluster/components/forms/ClusterDeleter.d.ts +7 -0
  762. package/dist/web/expertise/cluster/components/forms/ClusterDeleter.d.ts.map +1 -0
  763. package/dist/web/expertise/cluster/components/forms/ClusterEditor.d.ts +14 -0
  764. package/dist/web/expertise/cluster/components/forms/ClusterEditor.d.ts.map +1 -0
  765. package/dist/web/expertise/cluster/components/forms/ClusterMultiSelector.d.ts +14 -0
  766. package/dist/web/expertise/cluster/components/forms/ClusterMultiSelector.d.ts.map +1 -0
  767. package/dist/web/expertise/cluster/components/forms/ClusterParentSelector.d.ts +22 -0
  768. package/dist/web/expertise/cluster/components/forms/ClusterParentSelector.d.ts.map +1 -0
  769. package/dist/web/expertise/cluster/components/forms/ClusterSelector.d.ts +12 -0
  770. package/dist/web/expertise/cluster/components/forms/ClusterSelector.d.ts.map +1 -0
  771. package/dist/web/expertise/cluster/components/lists/ClusterList.d.ts +9 -0
  772. package/dist/web/expertise/cluster/components/lists/ClusterList.d.ts.map +1 -0
  773. package/dist/web/expertise/cluster/components/lists/ClusterMembersList.d.ts +21 -0
  774. package/dist/web/expertise/cluster/components/lists/ClusterMembersList.d.ts.map +1 -0
  775. package/dist/web/expertise/cluster/components/lists/ClusterRequestsList.d.ts +10 -0
  776. package/dist/web/expertise/cluster/components/lists/ClusterRequestsList.d.ts.map +1 -0
  777. package/dist/web/expertise/cluster/contexts/ClusterContext.d.ts +16 -0
  778. package/dist/web/expertise/cluster/contexts/ClusterContext.d.ts.map +1 -0
  779. package/dist/web/expertise/cluster/data/Cluster.d.ts +44 -0
  780. package/dist/web/expertise/cluster/data/Cluster.d.ts.map +1 -0
  781. package/dist/web/expertise/cluster/data/ClusterAliases.d.ts +19 -0
  782. package/dist/web/expertise/cluster/data/ClusterAliases.d.ts.map +1 -0
  783. package/dist/web/expertise/cluster/data/ClusterFields.d.ts +15 -0
  784. package/dist/web/expertise/cluster/data/ClusterFields.d.ts.map +1 -0
  785. package/dist/web/expertise/cluster/data/ClusterInterface.d.ts +24 -0
  786. package/dist/web/expertise/cluster/data/ClusterInterface.d.ts.map +1 -0
  787. package/dist/web/expertise/cluster/data/ClusterService.d.ts +77 -0
  788. package/dist/web/expertise/cluster/data/ClusterService.d.ts.map +1 -0
  789. package/dist/web/expertise/cluster/hooks/useClusterTableStructure.d.ts +5 -0
  790. package/dist/web/expertise/cluster/hooks/useClusterTableStructure.d.ts.map +1 -0
  791. package/dist/web/expertise/common/hooks/useExpertiseUserTableStructure.d.ts +38 -0
  792. package/dist/web/expertise/common/hooks/useExpertiseUserTableStructure.d.ts.map +1 -0
  793. package/dist/web/expertise/common/i18n/resolveBlockNoteField.d.ts +14 -0
  794. package/dist/web/expertise/common/i18n/resolveBlockNoteField.d.ts.map +1 -0
  795. package/dist/web/expertise/community-of-expertise/CommunityOfExpertiseModule.d.ts +4 -0
  796. package/dist/web/expertise/community-of-expertise/CommunityOfExpertiseModule.d.ts.map +1 -0
  797. package/dist/web/expertise/community-of-expertise/components/containers/CommunityOfExpertiseContainer.d.ts +2 -0
  798. package/dist/web/expertise/community-of-expertise/components/containers/CommunityOfExpertiseContainer.d.ts.map +1 -0
  799. package/dist/web/expertise/community-of-expertise/components/containers/CommunityOfExpertiseListContainer.d.ts +3 -0
  800. package/dist/web/expertise/community-of-expertise/components/containers/CommunityOfExpertiseListContainer.d.ts.map +1 -0
  801. package/dist/web/expertise/community-of-expertise/components/details/CommunityOfExpertiseContent.d.ts +7 -0
  802. package/dist/web/expertise/community-of-expertise/components/details/CommunityOfExpertiseContent.d.ts.map +1 -0
  803. package/dist/web/expertise/community-of-expertise/components/forms/AddUserToCommunityDialog.d.ts +15 -0
  804. package/dist/web/expertise/community-of-expertise/components/forms/AddUserToCommunityDialog.d.ts.map +1 -0
  805. package/dist/web/expertise/community-of-expertise/components/forms/CommunityAccessButtons.d.ts +16 -0
  806. package/dist/web/expertise/community-of-expertise/components/forms/CommunityAccessButtons.d.ts.map +1 -0
  807. package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseDeleter.d.ts +7 -0
  808. package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseDeleter.d.ts.map +1 -0
  809. package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseEditor.d.ts +14 -0
  810. package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseEditor.d.ts.map +1 -0
  811. package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseMultiSelector.d.ts +14 -0
  812. package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseMultiSelector.d.ts.map +1 -0
  813. package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseSelector.d.ts +12 -0
  814. package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseSelector.d.ts.map +1 -0
  815. package/dist/web/expertise/community-of-expertise/components/forms/CommunityParentSelector.d.ts +25 -0
  816. package/dist/web/expertise/community-of-expertise/components/forms/CommunityParentSelector.d.ts.map +1 -0
  817. package/dist/web/expertise/community-of-expertise/components/forms/CommunityRoleDropdown.d.ts +13 -0
  818. package/dist/web/expertise/community-of-expertise/components/forms/CommunityRoleDropdown.d.ts.map +1 -0
  819. package/dist/web/expertise/community-of-expertise/components/lists/CommunityMembersList.d.ts +19 -0
  820. package/dist/web/expertise/community-of-expertise/components/lists/CommunityMembersList.d.ts.map +1 -0
  821. package/dist/web/expertise/community-of-expertise/components/lists/CommunityOfExpertiseList.d.ts +9 -0
  822. package/dist/web/expertise/community-of-expertise/components/lists/CommunityOfExpertiseList.d.ts.map +1 -0
  823. package/dist/web/expertise/community-of-expertise/components/lists/CommunityRequestsList.d.ts +10 -0
  824. package/dist/web/expertise/community-of-expertise/components/lists/CommunityRequestsList.d.ts.map +1 -0
  825. package/dist/web/expertise/community-of-expertise/components/screens/CommunityOfExpertiseDetailScreen.d.ts +5 -0
  826. package/dist/web/expertise/community-of-expertise/components/screens/CommunityOfExpertiseDetailScreen.d.ts.map +1 -0
  827. package/dist/web/expertise/community-of-expertise/components/screens/CommunityOfExpertiseListScreen.d.ts +2 -0
  828. package/dist/web/expertise/community-of-expertise/components/screens/CommunityOfExpertiseListScreen.d.ts.map +1 -0
  829. package/dist/web/expertise/community-of-expertise/contexts/CommunityOfExpertiseContext.d.ts +16 -0
  830. package/dist/web/expertise/community-of-expertise/contexts/CommunityOfExpertiseContext.d.ts.map +1 -0
  831. package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertise.d.ts +56 -0
  832. package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertise.d.ts.map +1 -0
  833. package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseAliases.d.ts +19 -0
  834. package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseAliases.d.ts.map +1 -0
  835. package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseFields.d.ts +16 -0
  836. package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseFields.d.ts.map +1 -0
  837. package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseInterface.d.ts +32 -0
  838. package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseInterface.d.ts.map +1 -0
  839. package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseService.d.ts +92 -0
  840. package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseService.d.ts.map +1 -0
  841. package/dist/web/expertise/community-of-expertise/hooks/useCommunityOfExpertiseTableStructure.d.ts +5 -0
  842. package/dist/web/expertise/community-of-expertise/hooks/useCommunityOfExpertiseTableStructure.d.ts.map +1 -0
  843. package/dist/web/expertise/skill/SkillModule.d.ts +4 -0
  844. package/dist/web/expertise/skill/SkillModule.d.ts.map +1 -0
  845. package/dist/web/expertise/skill/components/containers/SkillContainer.d.ts +2 -0
  846. package/dist/web/expertise/skill/components/containers/SkillContainer.d.ts.map +1 -0
  847. package/dist/web/expertise/skill/components/containers/SkillListContainer.d.ts +2 -0
  848. package/dist/web/expertise/skill/components/containers/SkillListContainer.d.ts.map +1 -0
  849. package/dist/web/expertise/skill/components/details/SkillContent.d.ts +8 -0
  850. package/dist/web/expertise/skill/components/details/SkillContent.d.ts.map +1 -0
  851. package/dist/web/expertise/skill/components/forms/AddUserToSkillDialog.d.ts +15 -0
  852. package/dist/web/expertise/skill/components/forms/AddUserToSkillDialog.d.ts.map +1 -0
  853. package/dist/web/expertise/skill/components/forms/ClaimSkillButton.d.ts +9 -0
  854. package/dist/web/expertise/skill/components/forms/ClaimSkillButton.d.ts.map +1 -0
  855. package/dist/web/expertise/skill/components/forms/SkillDeleter.d.ts +7 -0
  856. package/dist/web/expertise/skill/components/forms/SkillDeleter.d.ts.map +1 -0
  857. package/dist/web/expertise/skill/components/forms/SkillEditor.d.ts +14 -0
  858. package/dist/web/expertise/skill/components/forms/SkillEditor.d.ts.map +1 -0
  859. package/dist/web/expertise/skill/components/forms/SkillMultiSelector.d.ts +14 -0
  860. package/dist/web/expertise/skill/components/forms/SkillMultiSelector.d.ts.map +1 -0
  861. package/dist/web/expertise/skill/components/forms/SkillProficiencyDropdown.d.ts +11 -0
  862. package/dist/web/expertise/skill/components/forms/SkillProficiencyDropdown.d.ts.map +1 -0
  863. package/dist/web/expertise/skill/components/forms/SkillSelector.d.ts +12 -0
  864. package/dist/web/expertise/skill/components/forms/SkillSelector.d.ts.map +1 -0
  865. package/dist/web/expertise/skill/components/lists/SkillList.d.ts +7 -0
  866. package/dist/web/expertise/skill/components/lists/SkillList.d.ts.map +1 -0
  867. package/dist/web/expertise/skill/components/screens/SkillDetailScreen.d.ts +5 -0
  868. package/dist/web/expertise/skill/components/screens/SkillDetailScreen.d.ts.map +1 -0
  869. package/dist/web/expertise/skill/components/screens/SkillListScreen.d.ts +2 -0
  870. package/dist/web/expertise/skill/components/screens/SkillListScreen.d.ts.map +1 -0
  871. package/dist/web/expertise/skill/contexts/SkillContext.d.ts +16 -0
  872. package/dist/web/expertise/skill/contexts/SkillContext.d.ts.map +1 -0
  873. package/dist/web/expertise/skill/data/Skill.d.ts +63 -0
  874. package/dist/web/expertise/skill/data/Skill.d.ts.map +1 -0
  875. package/dist/web/expertise/skill/data/SkillFields.d.ts +12 -0
  876. package/dist/web/expertise/skill/data/SkillFields.d.ts.map +1 -0
  877. package/dist/web/expertise/skill/data/SkillInterface.d.ts +26 -0
  878. package/dist/web/expertise/skill/data/SkillInterface.d.ts.map +1 -0
  879. package/dist/web/expertise/skill/data/SkillService.d.ts +64 -0
  880. package/dist/web/expertise/skill/data/SkillService.d.ts.map +1 -0
  881. package/dist/web/expertise/skill/hooks/useSkillTableStructure.d.ts +5 -0
  882. package/dist/web/expertise/skill/hooks/useSkillTableStructure.d.ts.map +1 -0
  883. package/dist/web/expertise/taxonomy/TaxonomyModule.d.ts +4 -0
  884. package/dist/web/expertise/taxonomy/TaxonomyModule.d.ts.map +1 -0
  885. package/dist/web/expertise/taxonomy/components/containers/TaxonomyContainer.d.ts +2 -0
  886. package/dist/web/expertise/taxonomy/components/containers/TaxonomyContainer.d.ts.map +1 -0
  887. package/dist/web/expertise/taxonomy/components/containers/TaxonomyListContainer.d.ts +2 -0
  888. package/dist/web/expertise/taxonomy/components/containers/TaxonomyListContainer.d.ts.map +1 -0
  889. package/dist/web/expertise/taxonomy/components/details/TaxonomyBadge.d.ts +13 -0
  890. package/dist/web/expertise/taxonomy/components/details/TaxonomyBadge.d.ts.map +1 -0
  891. package/dist/web/expertise/taxonomy/components/details/TaxonomyContent.d.ts +7 -0
  892. package/dist/web/expertise/taxonomy/components/details/TaxonomyContent.d.ts.map +1 -0
  893. package/dist/web/expertise/taxonomy/components/forms/TaxonomyDeleter.d.ts +7 -0
  894. package/dist/web/expertise/taxonomy/components/forms/TaxonomyDeleter.d.ts.map +1 -0
  895. package/dist/web/expertise/taxonomy/components/forms/TaxonomyEditor.d.ts +14 -0
  896. package/dist/web/expertise/taxonomy/components/forms/TaxonomyEditor.d.ts.map +1 -0
  897. package/dist/web/expertise/taxonomy/components/forms/TaxonomyMultiSelector.d.ts +14 -0
  898. package/dist/web/expertise/taxonomy/components/forms/TaxonomyMultiSelector.d.ts.map +1 -0
  899. package/dist/web/expertise/taxonomy/components/forms/TaxonomySelector.d.ts +12 -0
  900. package/dist/web/expertise/taxonomy/components/forms/TaxonomySelector.d.ts.map +1 -0
  901. package/dist/web/expertise/taxonomy/components/lists/TaxonomyBadgesList.d.ts +8 -0
  902. package/dist/web/expertise/taxonomy/components/lists/TaxonomyBadgesList.d.ts.map +1 -0
  903. package/dist/web/expertise/taxonomy/components/lists/TaxonomyList.d.ts +11 -0
  904. package/dist/web/expertise/taxonomy/components/lists/TaxonomyList.d.ts.map +1 -0
  905. package/dist/web/expertise/taxonomy/components/screens/TaxonomyDetailScreen.d.ts +5 -0
  906. package/dist/web/expertise/taxonomy/components/screens/TaxonomyDetailScreen.d.ts.map +1 -0
  907. package/dist/web/expertise/taxonomy/components/screens/TaxonomyListScreen.d.ts +2 -0
  908. package/dist/web/expertise/taxonomy/components/screens/TaxonomyListScreen.d.ts.map +1 -0
  909. package/dist/web/expertise/taxonomy/contexts/TaxonomyContext.d.ts +16 -0
  910. package/dist/web/expertise/taxonomy/contexts/TaxonomyContext.d.ts.map +1 -0
  911. package/dist/web/expertise/taxonomy/data/Taxonomy.d.ts +34 -0
  912. package/dist/web/expertise/taxonomy/data/Taxonomy.d.ts.map +1 -0
  913. package/dist/web/expertise/taxonomy/data/TaxonomyAliases.d.ts +7 -0
  914. package/dist/web/expertise/taxonomy/data/TaxonomyAliases.d.ts.map +1 -0
  915. package/dist/web/expertise/taxonomy/data/TaxonomyFields.d.ts +11 -0
  916. package/dist/web/expertise/taxonomy/data/TaxonomyFields.d.ts.map +1 -0
  917. package/dist/web/expertise/taxonomy/data/TaxonomyInterface.d.ts +19 -0
  918. package/dist/web/expertise/taxonomy/data/TaxonomyInterface.d.ts.map +1 -0
  919. package/dist/web/expertise/taxonomy/data/TaxonomyService.d.ts +42 -0
  920. package/dist/web/expertise/taxonomy/data/TaxonomyService.d.ts.map +1 -0
  921. package/dist/web/expertise/taxonomy/hooks/useTaxonomyTableStructure.d.ts +5 -0
  922. package/dist/web/expertise/taxonomy/hooks/useTaxonomyTableStructure.d.ts.map +1 -0
  923. package/dist/web/index.d.ts +62 -0
  924. package/dist/web/index.d.ts.map +1 -0
  925. package/dist/web/index.js +7295 -0
  926. package/dist/web/index.js.map +1 -0
  927. package/dist/web/index.mjs +7293 -0
  928. package/dist/web/index.mjs.map +1 -0
  929. package/dist/web/knowledge.registry.d.ts +21 -0
  930. package/dist/web/knowledge.registry.d.ts.map +1 -0
  931. package/messages/ar.json +675 -0
  932. package/messages/en.json +675 -0
  933. package/messages/es.json +675 -0
  934. package/messages/fr.json +675 -0
  935. package/messages/pt.json +675 -0
  936. package/messages/ru.json +675 -0
  937. package/package.json +226 -3
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/nja-knowledge/nja-knowledge/dist/chunk-HEG4DPMD.js","../node_modules/.pnpm/tsup@9.0.0_@swc+core@1.16.22_@swc+helpers@0.5.23__postcss@8.5.34_typescript@6.0.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js","../src/web/common/data/jsonAttribute.ts","../src/web/content/common/utils/translationMaps.ts","../src/web/content/article/data/Article.ts","../src/web/knowledge.registry.ts","../src/shared/knowledge.endpoints.ts","../src/web/content/article/data/ArticleService.ts","../src/web/content/article/data/ArticleFields.ts","../src/shared/knowledge.module.ids.ts","../src/web/content/discussion/data/Discussion.ts","../src/web/content/discussion/data/DiscussionService.ts","../src/web/content/discussion/data/DiscussionFields.ts","../src/web/content/discussion-reply/data/DiscussionReplyService.ts","../src/web/content/discussion-reply/data/DiscussionReplyFields.ts","../src/web/content/document/data/Document.ts","../src/web/content/document/data/DocumentService.ts","../src/web/content/document/data/DocumentFields.ts","../src/web/expertise/cluster/data/Cluster.ts","../src/web/expertise/cluster/data/ClusterService.ts","../src/web/expertise/cluster/data/ClusterFields.ts","../src/web/expertise/community-of-expertise/data/CommunityOfExpertise.ts","../src/web/expertise/community-of-expertise/data/CommunityOfExpertiseService.ts","../src/web/expertise/community-of-expertise/data/CommunityOfExpertiseFields.ts","../src/web/expertise/taxonomy/data/Taxonomy.ts","../src/web/expertise/taxonomy/data/TaxonomyService.ts","../src/web/expertise/taxonomy/data/TaxonomyFields.ts","../src/web/expertise/skill/data/Skill.ts","../src/web/expertise/skill/data/SkillService.ts","../src/web/expertise/skill/data/SkillFields.ts","../src/web/expertise/access-request/data/AccessRequestInterface.ts","../src/web/expertise/access-request/data/AccessRequestService.ts","../src/web/common/i18n/translationResolver.ts","../src/shared/knowledge.queues.ts","../src/shared/knowledge.s3.folders.ts","../src/shared/content-language.ts","../src/shared/content-status.ts","../src/shared/skill-level.ts","../src/shared/role-in-community.ts","../src/shared/schemas/graph-creation-event.schema.ts"],"names":["ArticleFields","DiscussionFields","DiscussionReplyFields","DocumentFields","ClusterFields","CommunityOfExpertiseFields","TaxonomyFields","SkillFields","HttpMethod"],"mappings":"AAAA,qrBAAI,UAAU,EAAE,MAAM,CAAC,cAAc;AACrC,IAAI,OAAO,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;AACxF;AACA;ACEA,IAAM,iBAAA,kBAAmB,MAAA,CAAA,CAAA,EAAA,GACvB,OAAO,SAAA,IAAa,YAAA,EAChB,IAAI,GAAA,CAAI,CAAA,KAAA,EAAQ,UAAU,CAAA,CAAA;AAM8B;ADPmD;AACA;AEetD;AACG,EAAA;AACxB,EAAA;AAEhC,EAAA;AACmB,IAAA;AACf,EAAA;AAG2E,IAAA;AACnF,EAAA;AACF;AAXgB;AAcqD;AACP,EAAA;AACxB,EAAA;AACA,EAAA;AAEhC,EAAA;AAC2B,IAAA;AACiC,IAAA;AACxD,EAAA;AACC,IAAA;AACT,EAAA;AACF;AAXgB;AA0BkE;AAEhC;AAC0B,EAAA;AAC5E;AAFS;AAKoG;AAC9B,EAAA;AAC5D,EAAA;AAEwC,EAAA;AACH,EAAA;AACT,IAAA;AACZ,IAAA;AACU,IAAA;AACqD,MAAA;AAC9F,IAAA;AACF,EAAA;AACO,EAAA;AACT;AAbgB;AAgBkF;AACnC,EAAA;AAC5C,EAAA;AAEoB,EAAA;AACgE,EAAA;AAC9F,EAAA;AACT;AAPgB;AAUqF;AAC7D,EAAA;AACe,EAAA;AAEiD,IAAA;AACtG,EAAA;AACO,EAAA;AACT;AAPgB;AAUgE;AAChC,EAAA;AACV,EAAA;AAEkB,EAAA;AAC2C,EAAA;AACH,IAAA;AAC9F,EAAA;AACyB,EAAA;AAC3B;AATgB;AAYyE;AACzC,EAAA;AACV,EAAA;AAEE,EAAA;AAC0C,EAAA;AACa,IAAA;AAC7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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/nja-knowledge/nja-knowledge/dist/chunk-HEG4DPMD.js","sourcesContent":[null,"// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () =>\n typeof document === 'undefined'\n ? new URL(`file:${__filename}`).href\n : document.currentScript &&\n document.currentScript.tagName.toUpperCase() === 'SCRIPT'\n ? document.currentScript.src\n : new URL('main.js', document.baseURI).href\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n","/**\n * Defensive readers for the attributes Neo4j stores as JSON STRINGS.\n *\n * Neo4j cannot hold a nested map in a property, so every BlockNote body\n * (`description`, `content`, `abstract`) and every translation map travels the\n * wire as a string and is parsed in `rehydrate` (plan Global Constraints, C9).\n * The generated models did that with a bare `JSON.parse`, which turns any value\n * that is NOT JSON into a thrown `SyntaxError` inside `rehydrate` — i.e. inside\n * `translateResponse`, on the server, where it takes the whole page down with a\n * 500 and no way for the page to recover.\n *\n * That is not hypothetical: the AI pipeline writes a MARKDOWN summary into\n * `abstract` (`{Document,Article,Discussion}Repository.updateAbstract`, fed by\n * `SummariserService.summarise`), so as soon as a document had been processed\n * its detail page — and every list that included it — crashed with\n * `Unexpected token '#', \"## E2E Clu\"... is not valid JSON`.\n *\n * A model must never make a stored value fatal. These helpers keep the parsed\n * value when the string really is JSON, and degrade gracefully when it is not.\n */\n\n/** A BlockNote body: parsed when it is JSON, wrapped as one paragraph when it is plain text. */\nexport function parseBlockNoteAttribute(raw: unknown): any {\n if (raw === undefined || raw === null || raw === \"\") return undefined;\n if (typeof raw !== \"string\") return raw;\n\n try {\n return JSON.parse(raw);\n } catch {\n // Plain text (a Markdown summary, most often). Rendering it as a single\n // paragraph keeps it visible instead of discarding it.\n return [{ type: \"paragraph\", content: [{ type: \"text\", text: raw, styles: {} }] }];\n }\n}\n\n/** A JSON object attribute (the translation maps). `undefined` when the string is not an object. */\nexport function parseObjectAttribute<T>(raw: unknown): T | undefined {\n if (raw === undefined || raw === null || raw === \"\") return undefined;\n if (typeof raw === \"object\") return raw as T;\n if (typeof raw !== \"string\") return undefined;\n\n try {\n const parsed = JSON.parse(raw);\n return parsed && typeof parsed === \"object\" ? (parsed as T) : undefined;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Translation maps.\n *\n * Wire shape (what the API stores and returns):\n * translation = JSON string of { lang: { name?: string, description?: <BlockNote JSON string>, content?: <BlockNote JSON string>, ... } }\n * abstractTranslation = JSON string of { lang: <BlockNote JSON string> }\n * tldrTranslation = JSON string of { lang: string }\n *\n * In-memory shape (what components see): the same maps with every BlockNote\n * value already parsed to a blocks array. The model is the only place that\n * converts (`references/frontend/06-blocknote.md` § \"Model\"); components,\n * the Translations tab and the display resolvers pass blocks through untouched.\n */\nexport const BLOCK_NOTE_TRANSLATION_FIELDS = [\"description\", \"content\", \"abstract\"] as const;\n\nfunction isBlockNoteField(field: string): boolean {\n return (BLOCK_NOTE_TRANSLATION_FIELDS as readonly string[]).includes(field);\n}\n\n/** `translation` attribute → { lang: { field: value } } with BlockNote fields parsed to blocks. */\nexport function parseTranslationAttribute(raw: unknown): Record<string, Record<string, unknown>> | undefined {\n const map = parseObjectAttribute<Record<string, Record<string, unknown>>>(raw);\n if (!map) return undefined;\n\n const parsed: Record<string, Record<string, unknown>> = {};\n for (const [language, fields] of Object.entries(map)) {\n if (!fields || typeof fields !== \"object\") continue;\n parsed[language] = { ...fields };\n for (const field of Object.keys(fields)) {\n if (isBlockNoteField(field)) parsed[language][field] = parseBlockNoteAttribute(fields[field]);\n }\n }\n return parsed;\n}\n\n/** `abstractTranslation` attribute → { lang: blocks }. */\nexport function parseBlockNoteTranslationAttribute(raw: unknown): Record<string, any> | undefined {\n const map = parseObjectAttribute<Record<string, unknown>>(raw);\n if (!map) return undefined;\n\n const parsed: Record<string, any> = {};\n for (const [language, value] of Object.entries(map)) parsed[language] = parseBlockNoteAttribute(value);\n return parsed;\n}\n\n/** One language's edited fields → the wire bag for `PATCH …/translations` (blocks stringified). */\nexport function serialiseTranslationFields(fields: Record<string, unknown>): Record<string, unknown> {\n const out: Record<string, unknown> = {};\n for (const [field, value] of Object.entries(fields)) {\n out[field] =\n isBlockNoteField(field) && value !== undefined && typeof value !== \"string\" ? JSON.stringify(value) : value;\n }\n return out;\n}\n\n/** In-memory `translation` map → wire string (inner blocks stringified, then the map). */\nexport function stringifyTranslationAttribute(map: unknown): string | undefined {\n if (map === undefined || map === null) return undefined;\n if (typeof map === \"string\") return map;\n\n const out: Record<string, Record<string, unknown>> = {};\n for (const [language, fields] of Object.entries(map as Record<string, Record<string, unknown>>)) {\n out[language] = fields && typeof fields === \"object\" ? serialiseTranslationFields(fields) : fields;\n }\n return JSON.stringify(out);\n}\n\n/** In-memory `abstractTranslation` map → wire string. */\nexport function stringifyBlockNoteTranslationAttribute(map: unknown): string | undefined {\n if (map === undefined || map === null) return undefined;\n if (typeof map === \"string\") return map;\n\n const out: Record<string, unknown> = {};\n for (const [language, value] of Object.entries(map as Record<string, unknown>)) {\n out[language] = value !== undefined && typeof value !== \"string\" ? JSON.stringify(value) : value;\n }\n return JSON.stringify(out);\n}\n","import {\n BlockNoteTranslationMap,\n ScalarTranslationMap,\n TranslationMap,\n} from \"../../../common/i18n/translationResolver\";\nimport {\n parseBlockNoteTranslationAttribute,\n parseObjectAttribute,\n parseTranslationAttribute,\n stringifyBlockNoteTranslationAttribute,\n stringifyTranslationAttribute,\n} from \"../../../common/data/jsonAttribute\";\n\n/**\n * The diagram declares `translation`, `abstractTranslation` and `tldrTranslation` as JSON, but\n * Neo4j cannot store nested maps as properties, so they travel the wire as JSON strings (plan\n * Global Constraints). The model parses on the way in and stringifies on the way out — the same\n * contract BlockNote fields use (`references/frontend/06-blocknote.md` § \"Model\"). BlockNote\n * values nested inside the maps are parsed here too, so nothing downstream converts.\n */\nexport function parseTranslationMap(raw: unknown): TranslationMap | undefined {\n return parseTranslationAttribute(raw);\n}\n\nexport function parseBlockNoteTranslationMap(raw: unknown): BlockNoteTranslationMap | undefined {\n return parseBlockNoteTranslationAttribute(raw);\n}\n\nexport function parseScalarTranslationMap(raw: unknown): ScalarTranslationMap | undefined {\n return parseObjectAttribute<ScalarTranslationMap>(raw);\n}\n\nexport function stringifyTranslationMap(value: unknown): string | undefined {\n return stringifyTranslationAttribute(value);\n}\n\nexport function stringifyBlockNoteTranslationMap(value: unknown): string | undefined {\n return stringifyBlockNoteTranslationAttribute(value);\n}\n\nexport function stringifyScalarTranslationMap(value: unknown): string | undefined {\n if (value === undefined || value === null) return undefined;\n if (typeof value === \"string\") return value;\n return JSON.stringify(value);\n}\n\n/**\n * Picks the reader's translated abstract (already a blocks array — the model parsed it) and\n * falls back to the original blocks when the language has no entry.\n */\nexport function resolveBlockNoteTranslation(params: {\n original: any;\n translation: BlockNoteTranslationMap | undefined;\n language: string | undefined;\n}): any {\n const value = params.language ? params.translation?.[params.language] : undefined;\n return Array.isArray(value) && value.length > 0 ? value : params.original;\n}\n","import { parseBlockNoteAttribute, serialiseTranslationFields } from \"../../../common/data/jsonAttribute\";\nimport { ArticleInput, ArticleInterface } from \"./ArticleInterface\";\nimport { CommunityOfExpertiseInterface } from \"../../../expertise/community-of-expertise/data/CommunityOfExpertiseInterface\";\nimport { TaxonomyInterface } from \"../../../expertise/taxonomy/data/TaxonomyInterface\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport {\n BlockNoteTranslationMap,\n ScalarTranslationMap,\n TranslationMap,\n} from \"../../../common/i18n/translationResolver\";\nimport {\n parseBlockNoteTranslationMap,\n parseScalarTranslationMap,\n parseTranslationMap,\n stringifyBlockNoteTranslationMap,\n stringifyScalarTranslationMap,\n stringifyTranslationMap,\n} from \"../../common/utils/translationMaps\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Article extends AbstractApiData implements ArticleInterface {\n private _name?: string;\n private _content?: any;\n private _abstract?: any;\n private _tldr?: string;\n private _aiStatus?: string;\n private _language?: string;\n private _status?: string;\n private _translation?: TranslationMap;\n private _abstractTranslation?: BlockNoteTranslationMap;\n private _tldrTranslation?: ScalarTranslationMap;\n private _communityOfExpertise?: CommunityOfExpertiseInterface;\n private _taxonomies?: TaxonomyInterface[];\n private _author?: UserInterface;\n private _editors?: UserInterface[];\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get content(): any {\n return this._content ?? [];\n }\n\n get abstract(): any {\n return this._abstract ?? [];\n }\n\n get tldr(): string {\n return this._tldr ?? \"\";\n }\n\n get aiStatus(): string {\n return this._aiStatus ?? \"\";\n }\n\n get language(): string {\n return this._language ?? \"\";\n }\n\n get status(): string {\n return this._status ?? \"\";\n }\n\n get translation(): TranslationMap {\n return this._translation ?? {};\n }\n\n get abstractTranslation(): BlockNoteTranslationMap {\n return this._abstractTranslation ?? {};\n }\n\n get tldrTranslation(): ScalarTranslationMap {\n return this._tldrTranslation ?? {};\n }\n\n get communityOfExpertise(): CommunityOfExpertiseInterface {\n if (this._communityOfExpertise === undefined)\n throw new Error(\"JsonApi error: article communityOfExpertise is missing\");\n return this._communityOfExpertise;\n }\n\n get taxonomies(): TaxonomyInterface[] {\n return this._taxonomies ?? [];\n }\n\n // Hand-relaxed: the author is only included when the payload asks for it (list cells do\n // not always), and a throwing getter would take the whole table down with it.\n get author(): UserInterface | undefined {\n return this._author;\n }\n\n get editors(): UserInterface[] {\n return this._editors ?? [];\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._content = parseBlockNoteAttribute(data.jsonApi.attributes.content);\n this._abstract = parseBlockNoteAttribute(data.jsonApi.attributes.abstract);\n this._tldr = data.jsonApi.attributes.tldr;\n this._aiStatus = data.jsonApi.attributes.aiStatus;\n this._language = data.jsonApi.attributes.language;\n this._status = data.jsonApi.attributes.status;\n this._translation = parseTranslationMap(data.jsonApi.attributes.translation);\n this._abstractTranslation = parseBlockNoteTranslationMap(data.jsonApi.attributes.abstractTranslation);\n this._tldrTranslation = parseScalarTranslationMap(data.jsonApi.attributes.tldrTranslation);\n\n this._communityOfExpertise = this._readIncluded(\n data,\n \"communityofexpertise\",\n KnowledgeModules.CommunityOfExpertise,\n ) as CommunityOfExpertiseInterface;\n this._taxonomies = this._readIncluded(data, \"taxonomies\", KnowledgeModules.Taxonomy) as TaxonomyInterface[];\n this._author = this._readIncluded(data, \"author\", Modules.User) as UserInterface;\n this._editors = this._readIncluded(data, \"editors\", Modules.User) as UserInterface[];\n\n return this;\n }\n\n createJsonApi(data: ArticleInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.Article.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.content !== undefined) response.data.attributes.content = JSON.stringify(data.content);\n if (data.abstract !== undefined) response.data.attributes.abstract = JSON.stringify(data.abstract);\n if (data.tldr !== undefined) response.data.attributes.tldr = data.tldr;\n if (data.language !== undefined) response.data.attributes.language = data.language;\n if (data.status !== undefined) response.data.attributes.status = data.status;\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationMap(data.translation);\n if (data.abstractTranslation !== undefined)\n response.data.attributes.abstractTranslation = stringifyBlockNoteTranslationMap(data.abstractTranslation);\n if (data.tldrTranslation !== undefined)\n response.data.attributes.tldrTranslation = stringifyScalarTranslationMap(data.tldrTranslation);\n\n if (data.communityOfExpertiseId) {\n response.data.relationships.communityofexpertise = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.communityOfExpertiseId,\n },\n };\n }\n if (data.taxonomyIds && data.taxonomyIds.length > 0) {\n response.data.relationships.taxonomies = {\n data: data.taxonomyIds.map((id) => ({\n type: KnowledgeModules.Taxonomy.name,\n id,\n })),\n };\n }\n if (data.editorIds && data.editorIds.length > 0) {\n response.data.relationships.editors = {\n data: data.editorIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n\n return response;\n }\n\n /**\n * Body of `PATCH articles/:id/translations` (C4). `_id` on AbstractApiData is protected with\n * no setter, so the id travels as a parameter — the same shape as `createAddPhotoJsonApi`\n * in `references/frontend/01-models.md`.\n */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.Article.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n}\n","import { Modules, type ModuleWithPermissions } from \"@carlonicora/nextjs-jsonapi/core\";\n\n/** The nine registry entries the knowledge screens read. The type and the registration check both derive from it. */\nexport const KNOWLEDGE_MODULE_NAMES = [\n \"AccessRequest\",\n \"Article\",\n \"Cluster\",\n \"CommunityOfExpertise\",\n \"Discussion\",\n \"DiscussionReply\",\n \"Document\",\n \"ExpertiseSkill\",\n \"Taxonomy\",\n] as const;\n\nexport type KnowledgeModuleName = (typeof KNOWLEDGE_MODULE_NAMES)[number];\n\nconst NAMES: ReadonlySet<PropertyKey> = new Set<PropertyKey>(KNOWLEDGE_MODULE_NAMES);\n\n/**\n * The nine knowledge registry entries, typed without the app's `AppModuleDefinitions`\n * augmentation. Each read goes to `Modules`; a name the app did not register fails on\n * first access with an error naming this package.\n */\nexport const KnowledgeModules = new Proxy({} as { readonly [K in KnowledgeModuleName]: ModuleWithPermissions }, {\n get(_target, prop) {\n if (!NAMES.has(prop)) return Reflect.get(Modules, prop);\n\n let module: unknown;\n try {\n module = Reflect.get(Modules, prop);\n } catch (cause) {\n throw new Error(`nja-knowledge: module \"${String(prop)}\" is not registered`, { cause });\n }\n if (!module) throw new Error(`nja-knowledge: module \"${String(prop)}\" is not registered`);\n return module;\n },\n});\n","/**\n * Route segments the API mounts under an entity (`<endpoint>/:id/<segment>`), shared by the API\n * controllers' route paths and the web services' `EndpointCreator` `childEndpoint`, so each\n * string exists in one place.\n */\nexport const KNOWLEDGE_ENDPOINT_SEGMENTS = {\n propose: \"propose\",\n approve: \"approve\",\n reject: \"reject\",\n translations: \"translations\",\n directory: \"directory\",\n accessRequests: \"access-requests\",\n members: \"members\",\n managers: \"managers\",\n replies: \"replies\",\n role: \"role\",\n} as const;\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { ArticleInput, ArticleInterface } from \"./ArticleInterface\";\nimport { Article } from \"./Article\";\nimport { Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class ArticleService extends AbstractService {\n static async findOne(params: { id: string }): Promise<ArticleInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.id });\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n return this.callApi<ArticleInterface>({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ArticleInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Article });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByCommunityOfExpertise(params: {\n communityOfExpertiseId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ArticleInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.communityOfExpertiseId,\n childEndpoint: KnowledgeModules.Article,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByTaxonomy(params: {\n taxonomyId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ArticleInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.taxonomyId,\n childEndpoint: KnowledgeModules.Article,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByAuthor(params: {\n authorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ArticleInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.authorId,\n childEndpoint: KnowledgeModules.Article,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByEditor(params: {\n editorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ArticleInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.editorId,\n childEndpoint: `edited-${KnowledgeModules.Article.name}`,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: ArticleInput): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article }).generate(),\n input: params,\n });\n }\n\n static async update(params: ArticleInput): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<ArticleInput, \"id\">>): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { articleId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.articleId }).generate(),\n });\n }\n\n /**\n * Editorial workflow (C4 / spec §5.2). The API enforces who may act; a caller without the\n * right gets a 403 that the UI surfaces as a toast.\n */\n static async propose(params: { id: string }): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Article,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.propose,\n }).generate(),\n });\n }\n\n static async approve(params: { id: string }): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Article,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.approve,\n }).generate(),\n });\n }\n\n static async reject(params: { id: string }): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Article,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.reject,\n }).generate(),\n });\n }\n\n /** `PATCH articles/:id/translations` — body built by the model, never by hand (C9). */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Article,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Article().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum ArticleFields {\n articleId = \"articleId\",\n\n name = \"name\",\n content = \"content\",\n abstract = \"abstract\",\n tldr = \"tldr\",\n aiStatus = \"aiStatus\",\n language = \"language\",\n status = \"status\",\n translation = \"translation\",\n abstractTranslation = \"abstractTranslation\",\n tldrTranslation = \"tldrTranslation\",\n\n communityOfExpertise = \"communityOfExpertise\",\n taxonomies = \"taxonomies\",\n author = \"author\",\n editors = \"editors\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","export const KNOWLEDGE_MODULE_IDS = {\n Cluster: \"678cdb6d-1b1d-4ef3-afc4-a347894cd1ed\",\n CommunityOfExpertise: \"e76477e3-2867-4fd3-a4ee-e627008bda74\",\n Taxonomy: \"580ecdce-36ea-42ac-9528-1851c35240e9\",\n ExpertiseSkill: \"23d582a6-f124-4aed-bb25-a38d6ef69481\",\n Document: \"f8db20d2-aa60-440f-9370-f4b9e79694fc\",\n Article: \"ef652356-4c38-4f69-ae9a-d3e7474e3e26\",\n Discussion: \"7c61e8b5-f29b-4776-8156-5284ef19ee78\",\n DiscussionReply: \"bdf6a775-c8c9-4836-a24e-1b20412a175e\",\n} as const;\n","import { parseBlockNoteAttribute, serialiseTranslationFields } from \"../../../common/data/jsonAttribute\";\nimport { DiscussionInput, DiscussionInterface } from \"./DiscussionInterface\";\nimport { CommunityOfExpertiseInterface } from \"../../../expertise/community-of-expertise/data/CommunityOfExpertiseInterface\";\nimport { TaxonomyInterface } from \"../../../expertise/taxonomy/data/TaxonomyInterface\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { ArticleInterface } from \"../../article/data/ArticleInterface\";\nimport {\n BlockNoteTranslationMap,\n ScalarTranslationMap,\n TranslationMap,\n} from \"../../../common/i18n/translationResolver\";\nimport {\n parseBlockNoteTranslationMap,\n parseScalarTranslationMap,\n parseTranslationMap,\n stringifyBlockNoteTranslationMap,\n stringifyScalarTranslationMap,\n stringifyTranslationMap,\n} from \"../../common/utils/translationMaps\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Discussion extends AbstractApiData implements DiscussionInterface {\n private _name?: string;\n private _content?: any;\n private _abstract?: any;\n private _tldr?: string;\n private _aiStatus?: string;\n private _language?: string;\n private _status?: string;\n private _translation?: TranslationMap;\n private _abstractTranslation?: BlockNoteTranslationMap;\n private _tldrTranslation?: ScalarTranslationMap;\n private _communityOfExpertise?: CommunityOfExpertiseInterface;\n private _taxonomies?: TaxonomyInterface[];\n private _author?: UserInterface;\n private _article?: ArticleInterface;\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get content(): any {\n return this._content ?? [];\n }\n\n get abstract(): any {\n return this._abstract ?? [];\n }\n\n get tldr(): string {\n return this._tldr ?? \"\";\n }\n\n get aiStatus(): string {\n return this._aiStatus ?? \"\";\n }\n\n get language(): string {\n return this._language ?? \"\";\n }\n\n get status(): string {\n return this._status ?? \"\";\n }\n\n get translation(): TranslationMap {\n return this._translation ?? {};\n }\n\n get abstractTranslation(): BlockNoteTranslationMap {\n return this._abstractTranslation ?? {};\n }\n\n get tldrTranslation(): ScalarTranslationMap {\n return this._tldrTranslation ?? {};\n }\n\n get communityOfExpertise(): CommunityOfExpertiseInterface {\n if (this._communityOfExpertise === undefined)\n throw new Error(\"JsonApi error: discussion communityOfExpertise is missing\");\n return this._communityOfExpertise;\n }\n\n get taxonomies(): TaxonomyInterface[] {\n return this._taxonomies ?? [];\n }\n\n // Hand-relaxed: the author is only included when the payload asks for it (list cells do\n // not always), and a throwing getter would take the whole table down with it.\n get author(): UserInterface | undefined {\n return this._author;\n }\n\n get article(): ArticleInterface | undefined {\n return this._article;\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._content = parseBlockNoteAttribute(data.jsonApi.attributes.content);\n this._abstract = parseBlockNoteAttribute(data.jsonApi.attributes.abstract);\n this._tldr = data.jsonApi.attributes.tldr;\n this._aiStatus = data.jsonApi.attributes.aiStatus;\n this._language = data.jsonApi.attributes.language;\n this._status = data.jsonApi.attributes.status;\n this._translation = parseTranslationMap(data.jsonApi.attributes.translation);\n this._abstractTranslation = parseBlockNoteTranslationMap(data.jsonApi.attributes.abstractTranslation);\n this._tldrTranslation = parseScalarTranslationMap(data.jsonApi.attributes.tldrTranslation);\n\n this._communityOfExpertise = this._readIncluded(\n data,\n \"communityofexpertise\",\n KnowledgeModules.CommunityOfExpertise,\n ) as CommunityOfExpertiseInterface;\n this._taxonomies = this._readIncluded(data, \"taxonomies\", KnowledgeModules.Taxonomy) as TaxonomyInterface[];\n this._author = this._readIncluded(data, \"author\", Modules.User) as UserInterface;\n this._article = this._readIncluded(data, \"article\", KnowledgeModules.Article) as ArticleInterface | undefined;\n\n return this;\n }\n\n createJsonApi(data: DiscussionInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.Discussion.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.content !== undefined) response.data.attributes.content = JSON.stringify(data.content);\n if (data.abstract !== undefined) response.data.attributes.abstract = JSON.stringify(data.abstract);\n if (data.tldr !== undefined) response.data.attributes.tldr = data.tldr;\n if (data.language !== undefined) response.data.attributes.language = data.language;\n if (data.status !== undefined) response.data.attributes.status = data.status;\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationMap(data.translation);\n if (data.abstractTranslation !== undefined)\n response.data.attributes.abstractTranslation = stringifyBlockNoteTranslationMap(data.abstractTranslation);\n if (data.tldrTranslation !== undefined)\n response.data.attributes.tldrTranslation = stringifyScalarTranslationMap(data.tldrTranslation);\n\n if (data.communityOfExpertiseId) {\n response.data.relationships.communityofexpertise = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.communityOfExpertiseId,\n },\n };\n }\n if (data.taxonomyIds && data.taxonomyIds.length > 0) {\n response.data.relationships.taxonomies = {\n data: data.taxonomyIds.map((id) => ({\n type: KnowledgeModules.Taxonomy.name,\n id,\n })),\n };\n }\n if (data.articleId) {\n response.data.relationships.article = {\n data: {\n type: KnowledgeModules.Article.name,\n id: data.articleId,\n },\n };\n }\n\n return response;\n }\n\n /**\n * Body of `PATCH discussions/:id/translations` (C4). `_id` on AbstractApiData is protected with\n * no setter, so the id travels as a parameter — the same shape as `createAddPhotoJsonApi`\n * in `references/frontend/01-models.md`.\n */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.Discussion.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { DiscussionInput, DiscussionInterface } from \"./DiscussionInterface\";\nimport { ArticleInterface } from \"../../article/data/ArticleInterface\";\nimport { Discussion } from \"./Discussion\";\nimport { Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class DiscussionService extends AbstractService {\n static async findOne(params: { id: string }): Promise<DiscussionInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Discussion, id: params.id });\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n return this.callApi<DiscussionInterface>({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Discussion });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByCommunityOfExpertise(params: {\n communityOfExpertiseId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.communityOfExpertiseId,\n childEndpoint: KnowledgeModules.Discussion,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByTaxonomy(params: {\n taxonomyId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.taxonomyId,\n childEndpoint: KnowledgeModules.Discussion,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByAuthor(params: {\n authorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.authorId,\n childEndpoint: KnowledgeModules.Discussion,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByArticle(params: {\n articleId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Article,\n id: params.articleId,\n childEndpoint: KnowledgeModules.Discussion,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: DiscussionInput): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Discussion }).generate(),\n input: params,\n });\n }\n\n static async update(params: DiscussionInput): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Discussion, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<DiscussionInput, \"id\">>): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Discussion, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { discussionId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Discussion, id: params.discussionId }).generate(),\n });\n }\n\n /**\n * Editorial workflow (C4 / spec §5.2). The API enforces who may act; a caller without the\n * right gets a 403 that the UI surfaces as a toast.\n */\n static async propose(params: { id: string }): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.propose,\n }).generate(),\n });\n }\n\n static async approve(params: { id: string }): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.approve,\n }).generate(),\n });\n }\n\n static async reject(params: { id: string }): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.reject,\n }).generate(),\n });\n }\n\n /** `PATCH discussions/:id/translations` — body built by the model, never by hand (C9). */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Discussion().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n\n /**\n * `PATCH discussions/:id/replies/:replyId/approve` (C4). The route carries a trailing verb\n * after the child id, which `EndpointCreator` models as part of `childId`.\n */\n static async approveReply(params: { id: string; replyId: string }): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.replies,\n childId: `${params.replyId}/${KNOWLEDGE_ENDPOINT_SEGMENTS.approve}`,\n }).generate(),\n });\n }\n\n /** `POST discussions/:id/articles` — returns the Article the discussion generated (spec §5.2). */\n static async generateArticle(params: { id: string }): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KnowledgeModules.Article,\n }).generate(),\n });\n }\n}\n","export enum DiscussionFields {\n discussionId = \"discussionId\",\n\n name = \"name\",\n content = \"content\",\n abstract = \"abstract\",\n tldr = \"tldr\",\n aiStatus = \"aiStatus\",\n language = \"language\",\n status = \"status\",\n translation = \"translation\",\n abstractTranslation = \"abstractTranslation\",\n tldrTranslation = \"tldrTranslation\",\n\n communityOfExpertise = \"communityOfExpertise\",\n taxonomies = \"taxonomies\",\n author = \"author\",\n article = \"article\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { DiscussionReplyInput, DiscussionReplyInterface } from \"./DiscussionReplyInterface\";\nimport { Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class DiscussionReplyService extends AbstractService {\n static async findOne(params: { id: string }): Promise<DiscussionReplyInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.DiscussionReply, id: params.id });\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);\n return this.callApi<DiscussionReplyInterface>({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionReplyInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.DiscussionReply });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByDiscussion(params: {\n discussionId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionReplyInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.discussionId,\n childEndpoint: KnowledgeModules.DiscussionReply,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByAuthor(params: {\n authorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionReplyInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.authorId,\n childEndpoint: KnowledgeModules.DiscussionReply,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: DiscussionReplyInput): Promise<DiscussionReplyInterface> {\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.DiscussionReply }).generate(),\n input: params,\n });\n }\n\n static async update(params: DiscussionReplyInput): Promise<DiscussionReplyInterface> {\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.DiscussionReply, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(\n params: { id: string } & Partial<Omit<DiscussionReplyInput, \"id\">>,\n ): Promise<DiscussionReplyInterface> {\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.DiscussionReply, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { discussionReplyId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.DiscussionReply,\n id: params.discussionReplyId,\n }).generate(),\n });\n }\n}\n","export enum DiscussionReplyFields {\n discussionReplyId = \"discussionReplyId\",\n\n content = \"content\",\n translation = \"translation\",\n\n discussion = \"discussion\",\n author = \"author\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import { parseBlockNoteAttribute, serialiseTranslationFields } from \"../../../common/data/jsonAttribute\";\nimport { DocumentInput, DocumentInterface } from \"./DocumentInterface\";\nimport { CommunityOfExpertiseInterface } from \"../../../expertise/community-of-expertise/data/CommunityOfExpertiseInterface\";\nimport { TaxonomyInterface } from \"../../../expertise/taxonomy/data/TaxonomyInterface\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport {\n BlockNoteTranslationMap,\n ScalarTranslationMap,\n TranslationMap,\n} from \"../../../common/i18n/translationResolver\";\nimport {\n parseBlockNoteTranslationMap,\n parseScalarTranslationMap,\n parseTranslationMap,\n stringifyBlockNoteTranslationMap,\n stringifyScalarTranslationMap,\n stringifyTranslationMap,\n} from \"../../common/utils/translationMaps\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Document extends AbstractApiData implements DocumentInterface {\n private _name?: string;\n private _url?: string;\n private _abstract?: any;\n private _tldr?: string;\n private _aiStatus?: string;\n private _language?: string;\n private _status?: string;\n private _translation?: TranslationMap;\n private _abstractTranslation?: BlockNoteTranslationMap;\n private _tldrTranslation?: ScalarTranslationMap;\n private _communityOfExpertise?: CommunityOfExpertiseInterface;\n private _taxonomies?: TaxonomyInterface[];\n private _author?: UserInterface;\n private _editors?: UserInterface[];\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get url(): string {\n return this._url ?? \"\";\n }\n\n get abstract(): any {\n return this._abstract ?? [];\n }\n\n get tldr(): string {\n return this._tldr ?? \"\";\n }\n\n get aiStatus(): string {\n return this._aiStatus ?? \"\";\n }\n\n get language(): string {\n return this._language ?? \"\";\n }\n\n get status(): string {\n return this._status ?? \"\";\n }\n\n get translation(): TranslationMap {\n return this._translation ?? {};\n }\n\n get abstractTranslation(): BlockNoteTranslationMap {\n return this._abstractTranslation ?? {};\n }\n\n get tldrTranslation(): ScalarTranslationMap {\n return this._tldrTranslation ?? {};\n }\n\n get communityOfExpertise(): CommunityOfExpertiseInterface {\n if (this._communityOfExpertise === undefined)\n throw new Error(\"JsonApi error: document communityOfExpertise is missing\");\n return this._communityOfExpertise;\n }\n\n get taxonomies(): TaxonomyInterface[] {\n return this._taxonomies ?? [];\n }\n\n // Hand-relaxed: the author is only included when the payload asks for it (list cells do\n // not always), and a throwing getter would take the whole table down with it.\n get author(): UserInterface | undefined {\n return this._author;\n }\n\n get editors(): UserInterface[] {\n return this._editors ?? [];\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._url = data.jsonApi.attributes.url;\n this._abstract = parseBlockNoteAttribute(data.jsonApi.attributes.abstract);\n this._tldr = data.jsonApi.attributes.tldr;\n this._aiStatus = data.jsonApi.attributes.aiStatus;\n this._language = data.jsonApi.attributes.language;\n this._status = data.jsonApi.attributes.status;\n this._translation = parseTranslationMap(data.jsonApi.attributes.translation);\n this._abstractTranslation = parseBlockNoteTranslationMap(data.jsonApi.attributes.abstractTranslation);\n this._tldrTranslation = parseScalarTranslationMap(data.jsonApi.attributes.tldrTranslation);\n\n this._communityOfExpertise = this._readIncluded(\n data,\n \"communityofexpertise\",\n KnowledgeModules.CommunityOfExpertise,\n ) as CommunityOfExpertiseInterface;\n this._taxonomies = this._readIncluded(data, \"taxonomies\", KnowledgeModules.Taxonomy) as TaxonomyInterface[];\n this._author = this._readIncluded(data, \"author\", Modules.User) as UserInterface;\n this._editors = this._readIncluded(data, \"editors\", Modules.User) as UserInterface[];\n\n return this;\n }\n\n createJsonApi(data: DocumentInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.Document.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.url !== undefined) response.data.attributes.url = data.url;\n if (data.abstract !== undefined) response.data.attributes.abstract = JSON.stringify(data.abstract);\n if (data.tldr !== undefined) response.data.attributes.tldr = data.tldr;\n if (data.language !== undefined) response.data.attributes.language = data.language;\n if (data.status !== undefined) response.data.attributes.status = data.status;\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationMap(data.translation);\n if (data.abstractTranslation !== undefined)\n response.data.attributes.abstractTranslation = stringifyBlockNoteTranslationMap(data.abstractTranslation);\n if (data.tldrTranslation !== undefined)\n response.data.attributes.tldrTranslation = stringifyScalarTranslationMap(data.tldrTranslation);\n\n if (data.communityOfExpertiseId) {\n response.data.relationships.communityofexpertise = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.communityOfExpertiseId,\n },\n };\n }\n if (data.taxonomyIds && data.taxonomyIds.length > 0) {\n response.data.relationships.taxonomies = {\n data: data.taxonomyIds.map((id) => ({\n type: KnowledgeModules.Taxonomy.name,\n id,\n })),\n };\n }\n if (data.editorIds && data.editorIds.length > 0) {\n response.data.relationships.editors = {\n data: data.editorIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n\n return response;\n }\n\n /**\n * Body of `PATCH documents/:id/translations` (C4). `_id` on AbstractApiData is protected with\n * no setter, so the id travels as a parameter — the same shape as `createAddPhotoJsonApi`\n * in `references/frontend/01-models.md`.\n */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.Document.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { DocumentInput, DocumentInterface } from \"./DocumentInterface\";\nimport { Document } from \"./Document\";\nimport { Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class DocumentService extends AbstractService {\n static async findOne(params: { id: string }): Promise<DocumentInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Document, id: params.id });\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n return this.callApi<DocumentInterface>({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DocumentInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Document });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByCommunityOfExpertise(params: {\n communityOfExpertiseId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DocumentInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.communityOfExpertiseId,\n childEndpoint: KnowledgeModules.Document,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByTaxonomy(params: {\n taxonomyId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DocumentInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.taxonomyId,\n childEndpoint: KnowledgeModules.Document,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByAuthor(params: {\n authorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DocumentInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.authorId,\n childEndpoint: KnowledgeModules.Document,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByEditor(params: {\n editorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DocumentInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.editorId,\n childEndpoint: `edited-${KnowledgeModules.Document.name}`,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: DocumentInput): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Document }).generate(),\n input: params,\n });\n }\n\n static async update(params: DocumentInput): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Document, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<DocumentInput, \"id\">>): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Document, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { documentId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Document, id: params.documentId }).generate(),\n });\n }\n\n /**\n * Editorial workflow (C4 / spec §5.2). The API enforces who may act; a caller without the\n * right gets a 403 that the UI surfaces as a toast.\n */\n static async propose(params: { id: string }): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Document,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.propose,\n }).generate(),\n });\n }\n\n static async approve(params: { id: string }): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Document,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.approve,\n }).generate(),\n });\n }\n\n static async reject(params: { id: string }): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Document,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.reject,\n }).generate(),\n });\n }\n\n /** `PATCH documents/:id/translations` — body built by the model, never by hand (C9). */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Document,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Document().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum DocumentFields {\n documentId = \"documentId\",\n\n name = \"name\",\n url = \"url\",\n abstract = \"abstract\",\n tldr = \"tldr\",\n aiStatus = \"aiStatus\",\n language = \"language\",\n status = \"status\",\n translation = \"translation\",\n abstractTranslation = \"abstractTranslation\",\n tldrTranslation = \"tldrTranslation\",\n\n communityOfExpertise = \"communityOfExpertise\",\n taxonomies = \"taxonomies\",\n author = \"author\",\n editors = \"editors\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import {\n parseBlockNoteAttribute,\n parseTranslationAttribute,\n serialiseTranslationFields,\n stringifyTranslationAttribute,\n} from \"../../../common/data/jsonAttribute\";\nimport { TranslationMap } from \"../../../common/i18n/translationResolver\";\nimport { ClusterInput, ClusterInterface } from \"./ClusterInterface\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Cluster extends AbstractApiData implements ClusterInterface {\n private _name?: string;\n private _description?: any;\n private _isGlobal?: boolean;\n private _translation?: TranslationMap;\n private _parent?: ClusterInterface;\n private _members?: UserInterface[];\n private _managers?: UserInterface[];\n private _requesters?: UserInterface[];\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get description(): any {\n return this._description ?? [];\n }\n\n get isGlobal(): boolean {\n return this._isGlobal ?? false;\n }\n\n get translation(): TranslationMap | undefined {\n return this._translation;\n }\n\n get parent(): ClusterInterface | undefined {\n return this._parent;\n }\n\n get members(): UserInterface[] {\n return this._members ?? [];\n }\n\n get managers(): UserInterface[] {\n return this._managers ?? [];\n }\n\n get requesters(): UserInterface[] {\n return this._requesters ?? [];\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);\n this._isGlobal = data.jsonApi.attributes.isGlobal;\n this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);\n\n this._parent = this._readIncluded(data, \"parent\", KnowledgeModules.Cluster) as ClusterInterface | undefined;\n this._members = this._readIncluded(data, \"members\", Modules.User) as UserInterface[];\n this._managers = this._readIncluded(data, \"managers\", Modules.User) as UserInterface[];\n this._requesters = this._readIncluded(data, \"requesters\", Modules.User) as UserInterface[];\n\n return this;\n }\n\n createJsonApi(data: ClusterInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.Cluster.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.description !== undefined) response.data.attributes.description = JSON.stringify(data.description);\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationAttribute(data.translation);\n\n if (data.parentId) {\n response.data.relationships.parent = {\n data: {\n type: KnowledgeModules.Cluster.name,\n id: data.parentId,\n },\n };\n }\n if (data.memberIds && data.memberIds.length > 0) {\n response.data.relationships.members = {\n data: data.memberIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n if (data.managerIds && data.managerIds.length > 0) {\n response.data.relationships.managers = {\n data: data.managerIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n if (data.requesterIds && data.requesterIds.length > 0) {\n response.data.relationships.requesters = {\n data: data.requesterIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n\n return response;\n }\n\n /**\n * `PATCH clusters/:id/translations` body. `_id` on AbstractApiData is protected\n * with no setter, so the id travels as a parameter — same shape as the\n * framework's `createAddPhotoJsonApi`.\n */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.Cluster.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { Cluster } from \"./Cluster\";\nimport { ClusterInput, ClusterInterface } from \"./ClusterInterface\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class ClusterService extends AbstractService {\n static async findOne(params: { id: string }): Promise<ClusterInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Cluster, id: params.id });\n if (KnowledgeModules.Cluster.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Cluster.inclusions.lists.fields);\n if (KnowledgeModules.Cluster.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Cluster.inclusions.lists.types);\n return this.callApi<ClusterInterface>({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ClusterInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Cluster });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Cluster.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Cluster.inclusions.lists.fields);\n if (KnowledgeModules.Cluster.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Cluster.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByParent(params: {\n parentId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ClusterInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.parentId,\n childEndpoint: KnowledgeModules.Cluster,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Cluster.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Cluster.inclusions.lists.fields);\n if (KnowledgeModules.Cluster.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Cluster.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async create(params: ClusterInput): Promise<ClusterInterface> {\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Cluster }).generate(),\n input: params,\n });\n }\n\n static async update(params: ClusterInput): Promise<ClusterInterface> {\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Cluster, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<ClusterInput, \"id\">>): Promise<ClusterInterface> {\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Cluster, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { clusterId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Cluster, id: params.clusterId }).generate(),\n });\n }\n\n /** `GET clusters/directory` — every cluster in the company, access filter off. */\n static async findDirectory(params: { search?: string } = {}): Promise<ClusterInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.directory,\n });\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n /** `POST clusters/:id/access-requests` — the current user asks to join. */\n static async requestAccess(params: { id: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests,\n }).generate(),\n });\n }\n\n /** `DELETE clusters/:id/access-requests/:userId` — manager rejects, or the requester withdraws. */\n static async rejectAccess(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `POST clusters/:id/members/:userId` — manager approves the request. */\n static async approveAccess(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /**\n * `POST clusters/:id/members/:userId` — the same route as `approveAccess`: the API\n * creates PART_OF and drops any pending request, so a manager can add a member\n * directly without a request existing.\n */\n static async addMember(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `DELETE clusters/:id/members/:userId`. */\n static async removeMember(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `POST clusters/:id/managers/:userId`. */\n static async addManager(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `DELETE clusters/:id/managers/:userId`. */\n static async removeManager(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `PATCH clusters/:id/translations` — merges one language into the stored maps. */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<ClusterInterface> {\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Cluster().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum ClusterFields {\n clusterId = \"clusterId\",\n\n name = \"name\",\n description = \"description\",\n isGlobal = \"isGlobal\",\n translation = \"translation\",\n\n parent = \"parent\",\n members = \"members\",\n managers = \"managers\",\n requesters = \"requesters\",\n\n // Row actions column, driven by ContentListTable's `context` (directory rows).\n actions = \"actions\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import {\n parseBlockNoteAttribute,\n parseTranslationAttribute,\n serialiseTranslationFields,\n stringifyTranslationAttribute,\n} from \"../../../common/data/jsonAttribute\";\nimport {\n CommunityMemberMeta,\n CommunityOfExpertiseInput,\n CommunityOfExpertiseInterface,\n} from \"./CommunityOfExpertiseInterface\";\nimport { ClusterInterface } from \"../../cluster/data/ClusterInterface\";\nimport { TranslationMap } from \"../../../common/i18n/translationResolver\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class CommunityOfExpertise extends AbstractApiData implements CommunityOfExpertiseInterface {\n private _name?: string;\n private _description?: any;\n private _image?: string;\n private _translation?: TranslationMap;\n private _cluster?: ClusterInterface;\n private _parent?: CommunityOfExpertiseInterface;\n private _members?: (UserInterface & CommunityMemberMeta)[];\n private _managers?: UserInterface[];\n private _requesters?: UserInterface[];\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get description(): any {\n return this._description ?? [];\n }\n\n get image(): string {\n return this._image ?? \"\";\n }\n\n get translation(): TranslationMap | undefined {\n return this._translation;\n }\n\n get cluster(): ClusterInterface {\n if (this._cluster === undefined) throw new Error(\"JsonApi error: communityOfExpertise cluster is missing\");\n return this._cluster;\n }\n\n get parent(): CommunityOfExpertiseInterface | undefined {\n return this._parent;\n }\n\n get members(): (UserInterface & CommunityMemberMeta)[] {\n return this._members ?? [];\n }\n\n get managers(): UserInterface[] {\n return this._managers ?? [];\n }\n\n get requesters(): UserInterface[] {\n return this._requesters ?? [];\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);\n this._image = data.jsonApi.attributes.image;\n this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);\n\n this._cluster = this._readIncluded(data, \"cluster\", KnowledgeModules.Cluster) as ClusterInterface;\n this._parent = this._readIncluded(data, \"parent\", KnowledgeModules.CommunityOfExpertise) as\n CommunityOfExpertiseInterface | undefined;\n // HAS_EXPERTISE carries `role`, so the members come back through the meta reader.\n this._members = this._readIncludedWithMeta<UserInterface, CommunityMemberMeta>(\n data,\n \"members\",\n Modules.User,\n ) as (UserInterface & CommunityMemberMeta)[];\n this._managers = this._readIncluded(data, \"managers\", Modules.User) as UserInterface[];\n this._requesters = this._readIncluded(data, \"requesters\", Modules.User) as UserInterface[];\n\n return this;\n }\n\n createJsonApi(data: CommunityOfExpertiseInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.description !== undefined) response.data.attributes.description = JSON.stringify(data.description);\n if (data.image !== undefined) response.data.attributes.image = data.image;\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationAttribute(data.translation);\n\n if (data.clusterId) {\n response.data.relationships.cluster = {\n data: {\n type: KnowledgeModules.Cluster.name,\n id: data.clusterId,\n },\n };\n }\n if (data.parentId) {\n response.data.relationships.parent = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.parentId,\n },\n };\n }\n if (data.memberIds && data.memberIds.length > 0) {\n response.data.relationships.members = {\n data: data.memberIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n if (data.managerIds && data.managerIds.length > 0) {\n response.data.relationships.managers = {\n data: data.managerIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n if (data.requesterIds && data.requesterIds.length > 0) {\n response.data.relationships.requesters = {\n data: data.requesterIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n\n return response;\n }\n\n /** `PATCH communities-of-expertise/:id/translations` body. */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n\n /** `PATCH communities-of-expertise/:id/members/:userId/role` body. */\n createRoleJsonApi(params: { id: string; role: string }) {\n return {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: params.id,\n attributes: {\n role: params.role,\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { CommunityOfExpertise } from \"./CommunityOfExpertise\";\nimport { CommunityOfExpertiseInput, CommunityOfExpertiseInterface } from \"./CommunityOfExpertiseInterface\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class CommunityOfExpertiseService extends AbstractService {\n static async findOne(params: { id: string }): Promise<CommunityOfExpertiseInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.CommunityOfExpertise, id: params.id });\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);\n return this.callApi<CommunityOfExpertiseInterface>({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<CommunityOfExpertiseInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.CommunityOfExpertise });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByCluster(params: {\n clusterId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<CommunityOfExpertiseInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.clusterId,\n childEndpoint: KnowledgeModules.CommunityOfExpertise,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByParent(params: {\n parentId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<CommunityOfExpertiseInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.parentId,\n childEndpoint: KnowledgeModules.CommunityOfExpertise,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async create(params: CommunityOfExpertiseInput): Promise<CommunityOfExpertiseInterface> {\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.CommunityOfExpertise }).generate(),\n input: params,\n });\n }\n\n static async update(params: CommunityOfExpertiseInput): Promise<CommunityOfExpertiseInterface> {\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.CommunityOfExpertise, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(\n params: { id: string } & Partial<Omit<CommunityOfExpertiseInput, \"id\">>,\n ): Promise<CommunityOfExpertiseInterface> {\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.CommunityOfExpertise, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { communityOfExpertiseId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.communityOfExpertiseId,\n }).generate(),\n });\n }\n\n /** `GET communities-of-expertise/directory` — every community, access filter off. */\n static async findDirectory(params: { search?: string } = {}): Promise<CommunityOfExpertiseInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.directory,\n });\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n /** `POST communities-of-expertise/:id/access-requests`. */\n static async requestAccess(params: { id: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests,\n }).generate(),\n });\n }\n\n /** `DELETE communities-of-expertise/:id/access-requests/:userId`. */\n static async rejectAccess(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `POST communities-of-expertise/:id/members/:userId` — approves a request, role `member`. */\n static async approveAccess(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `DELETE communities-of-expertise/:id/members/:userId`. */\n static async removeMember(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /**\n * `PATCH communities-of-expertise/:id/members/:userId/role`.\n *\n * `EndpointCreator` stops at `childId`, so the trailing verb rides on it —\n * the endpoint is still built from the module meta, never hardcoded.\n */\n static async updateMemberRole(params: { id: string; userId: string; role: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: `${params.userId}/${KNOWLEDGE_ENDPOINT_SEGMENTS.role}`,\n }).generate(),\n input: new CommunityOfExpertise().createRoleJsonApi({ id: params.id, role: params.role }),\n overridesJsonApiCreation: true,\n });\n }\n\n /** Adds a member and, when the role is not the default, sets it (C4 has no combined route). */\n static async addMember(params: { id: string; userId: string; role: string }): Promise<void> {\n await this.approveAccess({ id: params.id, userId: params.userId });\n await this.updateMemberRole(params);\n }\n\n /** `POST communities-of-expertise/:id/managers/:userId`. */\n static async addManager(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `DELETE communities-of-expertise/:id/managers/:userId`. */\n static async removeManager(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `PATCH communities-of-expertise/:id/translations`. */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<CommunityOfExpertiseInterface> {\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new CommunityOfExpertise().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum CommunityOfExpertiseFields {\n communityOfExpertiseId = \"communityOfExpertiseId\",\n\n name = \"name\",\n description = \"description\",\n image = \"image\",\n translation = \"translation\",\n\n cluster = \"cluster\",\n parent = \"parent\",\n members = \"members\",\n managers = \"managers\",\n requesters = \"requesters\",\n\n // Row actions column, driven by ContentListTable's `context` (directory rows).\n actions = \"actions\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import {\n parseBlockNoteAttribute,\n parseTranslationAttribute,\n serialiseTranslationFields,\n stringifyTranslationAttribute,\n} from \"../../../common/data/jsonAttribute\";\nimport { TranslationMap } from \"../../../common/i18n/translationResolver\";\nimport { TaxonomyInput, TaxonomyInterface } from \"./TaxonomyInterface\";\nimport { CommunityOfExpertiseInterface } from \"../../community-of-expertise/data/CommunityOfExpertiseInterface\";\nimport { AbstractApiData, JsonApiHydratedDataInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Taxonomy extends AbstractApiData implements TaxonomyInterface {\n private _name?: string;\n private _description?: any;\n private _translation?: TranslationMap;\n private _parent?: TaxonomyInterface;\n private _communityOfExpertise?: CommunityOfExpertiseInterface;\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get description(): any {\n return this._description ?? [];\n }\n\n get translation(): TranslationMap | undefined {\n return this._translation;\n }\n\n get parent(): TaxonomyInterface | undefined {\n return this._parent;\n }\n\n get communityOfExpertise(): CommunityOfExpertiseInterface {\n if (this._communityOfExpertise === undefined)\n throw new Error(\"JsonApi error: taxonomy communityOfExpertise is missing\");\n return this._communityOfExpertise;\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);\n this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);\n\n this._parent = this._readIncluded(data, \"parent\", KnowledgeModules.Taxonomy) as TaxonomyInterface | undefined;\n this._communityOfExpertise = this._readIncluded(\n data,\n \"communityofexpertise\",\n KnowledgeModules.CommunityOfExpertise,\n ) as CommunityOfExpertiseInterface;\n\n return this;\n }\n\n createJsonApi(data: TaxonomyInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.Taxonomy.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.description !== undefined) response.data.attributes.description = JSON.stringify(data.description);\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationAttribute(data.translation);\n\n if (data.parentId) {\n response.data.relationships.parent = {\n data: {\n type: KnowledgeModules.Taxonomy.name,\n id: data.parentId,\n },\n };\n }\n if (data.communityOfExpertiseId) {\n response.data.relationships.communityofexpertise = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.communityOfExpertiseId,\n },\n };\n }\n\n return response;\n }\n\n /** `PATCH taxonomies/:id/translations` body. */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.Taxonomy.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { Taxonomy } from \"./Taxonomy\";\nimport { TaxonomyInput, TaxonomyInterface } from \"./TaxonomyInterface\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class TaxonomyService extends AbstractService {\n static async findOne(params: { id: string }): Promise<TaxonomyInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy, id: params.id });\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);\n return this.callApi<TaxonomyInterface>({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<TaxonomyInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByParent(params: {\n parentId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<TaxonomyInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.parentId,\n childEndpoint: KnowledgeModules.Taxonomy,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByCommunityOfExpertise(params: {\n communityOfExpertiseId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<TaxonomyInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.communityOfExpertiseId,\n childEndpoint: KnowledgeModules.Taxonomy,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: TaxonomyInput): Promise<TaxonomyInterface> {\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy }).generate(),\n input: params,\n });\n }\n\n static async update(params: TaxonomyInput): Promise<TaxonomyInterface> {\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<TaxonomyInput, \"id\">>): Promise<TaxonomyInterface> {\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { taxonomyId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy, id: params.taxonomyId }).generate(),\n });\n }\n\n /** `PATCH taxonomies/:id/translations`. */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<TaxonomyInterface> {\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Taxonomy().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum TaxonomyFields {\n taxonomyId = \"taxonomyId\",\n\n name = \"name\",\n description = \"description\",\n translation = \"translation\",\n\n parent = \"parent\",\n communityOfExpertise = \"communityOfExpertise\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import {\n parseBlockNoteAttribute,\n parseTranslationAttribute,\n serialiseTranslationFields,\n stringifyTranslationAttribute,\n} from \"../../../common/data/jsonAttribute\";\nimport { TranslationMap } from \"../../../common/i18n/translationResolver\";\nimport { SkillInput, SkillInterface, SkillUserMeta } from \"./SkillInterface\";\nimport { TaxonomyInterface } from \"../../taxonomy/data/TaxonomyInterface\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Skill extends AbstractApiData implements SkillInterface {\n private _name?: string;\n private _description?: any;\n private _image?: string;\n private _translation?: TranslationMap;\n private _taxonomies?: TaxonomyInterface[];\n private _users?: (UserInterface & SkillUserMeta)[];\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get description(): any {\n return this._description ?? [];\n }\n\n get image(): string {\n return this._image ?? \"\";\n }\n\n get translation(): TranslationMap | undefined {\n return this._translation;\n }\n\n get taxonomies(): TaxonomyInterface[] {\n return this._taxonomies ?? [];\n }\n\n get users(): (UserInterface & SkillUserMeta)[] {\n return this._users ?? [];\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);\n this._image = data.jsonApi.attributes.image;\n this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);\n\n this._taxonomies = this._readIncluded(data, \"taxonomies\", KnowledgeModules.Taxonomy) as TaxonomyInterface[];\n // HAS_SKILL carries `proficiency`, so the users come back through the meta reader.\n this._users = this._readIncludedWithMeta<UserInterface, SkillUserMeta>(\n data,\n \"users\",\n Modules.User,\n ) as (UserInterface & SkillUserMeta)[];\n\n return this;\n }\n\n createJsonApi(data: SkillInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.ExpertiseSkill.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.description !== undefined) response.data.attributes.description = JSON.stringify(data.description);\n if (data.image !== undefined) response.data.attributes.image = data.image;\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationAttribute(data.translation);\n\n if (data.taxonomyIds && data.taxonomyIds.length > 0) {\n response.data.relationships.taxonomies = {\n data: data.taxonomyIds.map((id) => ({\n type: KnowledgeModules.Taxonomy.name,\n id,\n })),\n };\n }\n if (data.userIds && data.userIds.length > 0) {\n response.data.relationships.users = {\n data: data.userIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n\n return response;\n }\n\n /** `PATCH expertise-skills/:id/translations` body. */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.ExpertiseSkill.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n\n /** `POST expertise-skills/:id/users/:userId` body — the proficiency rides on the edge. */\n createClaimJsonApi(params: { userId: string; proficiency: string }) {\n return {\n data: {\n type: Modules.User.name,\n id: params.userId,\n meta: {\n proficiency: params.proficiency,\n },\n },\n };\n }\n\n /** `PATCH expertise-skills/:id/users/:userId/proficiency` body. */\n createProficiencyJsonApi(params: { id: string; proficiency: string }) {\n return {\n data: {\n type: KnowledgeModules.ExpertiseSkill.name,\n id: params.id,\n attributes: {\n proficiency: params.proficiency,\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { Skill } from \"./Skill\";\nimport { SkillInput, SkillInterface } from \"./SkillInterface\";\nimport { Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class SkillService extends AbstractService {\n static async findOne(params: { id: string }): Promise<SkillInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.id });\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);\n return this.callApi<SkillInterface>({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<SkillInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByTaxonomy(params: {\n taxonomyId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<SkillInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.taxonomyId,\n childEndpoint: KnowledgeModules.ExpertiseSkill,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByUser(params: {\n userId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<SkillInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.userId,\n childEndpoint: KnowledgeModules.ExpertiseSkill,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: SkillInput): Promise<SkillInterface> {\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill }).generate(),\n input: params,\n });\n }\n\n static async update(params: SkillInput): Promise<SkillInterface> {\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<SkillInput, \"id\">>): Promise<SkillInterface> {\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { skillId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.skillId }).generate(),\n });\n }\n\n /** `POST expertise-skills/:id/users/:userId` — claims the skill at a proficiency. */\n static async claim(params: { skillId: string; userId: string; proficiency: string }): Promise<void> {\n await this.callApi({\n type: Modules.User,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.ExpertiseSkill,\n id: params.skillId,\n childEndpoint: Modules.User,\n childId: params.userId,\n }).generate(),\n input: new Skill().createClaimJsonApi({ userId: params.userId, proficiency: params.proficiency }),\n overridesJsonApiCreation: true,\n responseType: KnowledgeModules.ExpertiseSkill,\n });\n }\n\n /** `DELETE expertise-skills/:id/users/:userId`. */\n static async removeUser(params: { skillId: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.ExpertiseSkill,\n id: params.skillId,\n childEndpoint: Modules.User,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /**\n * `PATCH expertise-skills/:id/users/:userId/proficiency`.\n *\n * `EndpointCreator` stops at `childId`, so the trailing verb rides on it —\n * the endpoint is still built from the module meta, never hardcoded.\n */\n static async updateProficiency(params: { skillId: string; userId: string; proficiency: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.ExpertiseSkill,\n id: params.skillId,\n childEndpoint: Modules.User,\n childId: `${params.userId}/proficiency`,\n }).generate(),\n input: new Skill().createProficiencyJsonApi({ id: params.skillId, proficiency: params.proficiency }),\n overridesJsonApiCreation: true,\n });\n }\n\n /** `PATCH expertise-skills/:id/translations`. */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<SkillInterface> {\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.ExpertiseSkill,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Skill().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum SkillFields {\n skillId = \"skillId\",\n\n name = \"name\",\n description = \"description\",\n image = \"image\",\n translation = \"translation\",\n\n taxonomies = \"taxonomies\",\n users = \"users\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import { ApiDataInterface } from \"@carlonicora/nextjs-jsonapi/core\";\n\n/** Neo4j label of the node the access was requested on. */\nexport const AccessRequestTarget = {\n cluster: \"Cluster\",\n communityOfExpertise: \"CommunityOfExpertise\",\n} as const;\n\nexport type AccessRequestTarget = (typeof AccessRequestTarget)[keyof typeof AccessRequestTarget];\n\nexport interface AccessRequestInterface extends ApiDataInterface {\n get targetType(): string;\n get targetId(): string;\n get targetName(): string;\n get userId(): string;\n get userName(): string;\n get requestedAt(): Date | undefined;\n}\n","import { AccessRequestInterface } from \"./AccessRequestInterface\";\nimport { AbstractService, EndpointCreator, HttpMethod, NextRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class AccessRequestService extends AbstractService {\n /** `GET access-requests` — every pending request on a cluster or community the user manages. */\n static async findMany(\n params: { search?: string; fetchAll?: boolean; next?: NextRef } = {},\n ): Promise<AccessRequestInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.AccessRequest });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n\n return this.callApi({\n type: KnowledgeModules.AccessRequest,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n}\n","export type TranslationMap = Record<string, Record<string, unknown>>; // { lang: { field: value } }\nexport type ScalarTranslationMap = Record<string, string>; // { lang: value }\nexport type BlockNoteTranslationMap = Record<string, any>; // { lang: blocks[] } — parsed by the model\n\nexport function resolveField<T>(params: {\n original: T;\n translation: TranslationMap | undefined;\n field: string;\n language: string | undefined;\n}): T {\n const v = params.language ? params.translation?.[params.language]?.[params.field] : undefined;\n return v === undefined || v === null || v === \"\" ? params.original : (v as T);\n}\n\nexport function resolveScalar(params: {\n original: string | undefined;\n translation: ScalarTranslationMap | undefined;\n language: string | undefined;\n}): string | undefined {\n const v = params.language ? params.translation?.[params.language] : undefined;\n return v ? v : params.original;\n}\n","// The library routes a content chunk to the queue named after its label in lower case,\n// so these names are fixed by the labels and cannot carry a package prefix.\nexport const KNOWLEDGE_CHUNK_QUEUE_ID = \"chunk\";\nexport const KNOWLEDGE_QUEUE_IDS = { DOCUMENT: \"document\", ARTICLE: \"article\", DISCUSSION: \"discussion\" } as const;\nexport const KNOWLEDGE_JOB_NAMES = {\n process: {\n chunk: \"process_chunk\",\n document: \"process_document\",\n article: \"process_article\",\n discussion: \"process_discussion\",\n },\n} as const;\nexport const KNOWLEDGE_CONTENT_TYPES = [\"Article\", \"Discussion\", \"Document\", \"DiscussionReply\"] as const;\n","export const KNOWLEDGE_S3_FOLDERS = {\n documents: \"documents\",\n communitiesOfExpertise: \"communities-of-expertise\",\n} as const;\n","export const ContentLanguage = { ar: \"ar\", en: \"en\", es: \"es\", fr: \"fr\", pt: \"pt\", ru: \"ru\" } as const;\nexport type ContentLanguage = (typeof ContentLanguage)[keyof typeof ContentLanguage];\n","export const ContentStatus = { cluster: \"cluster\", proposed: \"proposed\", knowledge: \"knowledge\" } as const;\nexport type ContentStatus = (typeof ContentStatus)[keyof typeof ContentStatus];\n","export const SkillLevel = {\n aware: \"aware\",\n skilled: \"skilled\",\n expert: \"expert\",\n master: \"master\",\n} as const;\n\nexport type SkillLevel = (typeof SkillLevel)[keyof typeof SkillLevel];\n","export const RoleInCommunity = {\n sponsor: \"sponsor\",\n leader: \"leader\",\n coreMember: \"core_member\",\n expert: \"expert\",\n member: \"member\",\n} as const;\n\nexport type RoleInCommunity = (typeof RoleInCommunity)[keyof typeof RoleInCommunity];\n\nexport function isAdminRole(role: string | undefined): boolean {\n return role === RoleInCommunity.leader || role === RoleInCommunity.sponsor;\n}\n","import { z } from \"zod\";\n\n/**\n * Schema for AI processing status in graph creation events.\n * Mirrors the framework `AiStatus` enum values used by the content processors.\n */\nexport const AiStatusSchema = z.enum([\"pending\", \"in_progress\", \"summarising\", \"completed\", \"failed\"]);\n\n/**\n * Schema for graph creation types.\n * Represents the different types of content that can be created.\n */\nexport const GraphCreationTypeSchema = z.enum([\"document\", \"article\", \"discussion\"]);\n\n/**\n * Schema for graph creation events.\n * Used for websocket events when creating documents, articles, or discussions.\n */\nexport const GraphCreationEventSchema = z.object({\n type: GraphCreationTypeSchema,\n id: z.string(),\n aiStatus: AiStatusSchema,\n completed: z.number().optional(),\n total: z.number().optional(),\n});\n\n// Type exports\nexport type AiStatus = z.infer<typeof AiStatusSchema>;\nexport type GraphCreationType = z.infer<typeof GraphCreationTypeSchema>;\nexport type GraphCreationEvent = z.infer<typeof GraphCreationEventSchema>;\n\n/**\n * Parse and validate a graph creation event.\n * Throws ZodError if validation fails.\n */\nexport function parseGraphCreationEvent(data: unknown): GraphCreationEvent {\n return GraphCreationEventSchema.parse(data);\n}\n\n/**\n * Safely parse a graph creation event.\n * Returns a result object with success/error instead of throwing.\n */\nexport function safeParseGraphCreationEvent(data: unknown) {\n return GraphCreationEventSchema.safeParse(data);\n}\n\n/**\n * Type guard to check if a value is a valid GraphCreationEvent.\n */\nexport function isGraphCreationEvent(value: unknown): value is GraphCreationEvent {\n return GraphCreationEventSchema.safeParse(value).success;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export { knowledgeModuleSeedQueries, KNOWLEDGE_MODULE_SEED_QUERY } from "./knowledge.module.seed";
2
+ export type { KnowledgeSeedQuery } from "./knowledge.module.seed";
3
+ export { KNOWLEDGE_MODULE_IDS } from "../shared/knowledge.module.ids";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/seed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAClG,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KNOWLEDGE_MODULE_IDS = exports.KNOWLEDGE_MODULE_SEED_QUERY = exports.knowledgeModuleSeedQueries = void 0;
4
+ var knowledge_module_seed_1 = require("./knowledge.module.seed");
5
+ Object.defineProperty(exports, "knowledgeModuleSeedQueries", { enumerable: true, get: function () { return knowledge_module_seed_1.knowledgeModuleSeedQueries; } });
6
+ Object.defineProperty(exports, "KNOWLEDGE_MODULE_SEED_QUERY", { enumerable: true, get: function () { return knowledge_module_seed_1.KNOWLEDGE_MODULE_SEED_QUERY; } });
7
+ var knowledge_module_ids_1 = require("../shared/knowledge.module.ids");
8
+ Object.defineProperty(exports, "KNOWLEDGE_MODULE_IDS", { enumerable: true, get: function () { return knowledge_module_ids_1.KNOWLEDGE_MODULE_IDS; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/seed/index.ts"],"names":[],"mappings":";;;AAAA,iEAAkG;AAAzF,mIAAA,0BAA0B,OAAA;AAAE,oIAAA,2BAA2B,OAAA;AAEhE,uEAAsE;AAA7D,4HAAA,oBAAoB,OAAA"}
@@ -0,0 +1,12 @@
1
+ /** One seed query; structurally a library `MigrationInterface`, so an app spreads it into its `migration` array. */
2
+ export type KnowledgeSeedQuery = {
3
+ query: string;
4
+ queryParams: Record<string, unknown>;
5
+ };
6
+ /** The module seed query (`moduleQuery` of the source app's migration queries), copied verbatim. */
7
+ export declare const KNOWLEDGE_MODULE_SEED_QUERY = "\n MERGE (module:Module {id: $moduleId})\n ON CREATE SET \n module.name=$moduleName, \n module.permissions = $permissions,\n module.createdAt = datetime(), \n module.updatedAt = datetime()\n ON MATCH SET \n module.name = $moduleName,\n module.updatedAt = CASE WHEN module.permissions <> $permissions THEN datetime() ELSE module.updatedAt END,\n module.permissions = CASE WHEN module.permissions <> $permissions THEN $permissions ELSE module.permissions END\n WITH module\n\n MATCH (feature:Feature) WHERE $featureId IS NOT NULL AND feature.id = $featureId\n WITH module, feature\n WHERE feature IS NOT NULL\n MERGE (module)-[:IN_FEATURE]->(feature)\n";
8
+ /** The eight knowledge module nodes, all in the given feature. */
9
+ export declare function knowledgeModuleSeedQueries(params: {
10
+ featureId: string;
11
+ }): KnowledgeSeedQuery[];
12
+ //# sourceMappingURL=knowledge.module.seed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge.module.seed.d.ts","sourceRoot":"","sources":["../../src/seed/knowledge.module.seed.ts"],"names":[],"mappings":"AAEA,oHAAoH;AACpH,MAAM,MAAM,kBAAkB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC;AAEzF,oGAAoG;AACpG,eAAO,MAAM,2BAA2B,wtBAiBvC,CAAC;AAUF,kEAAkE;AAClE,wBAAgB,0BAA0B,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,kBAAkB,EAAE,CAU9F"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KNOWLEDGE_MODULE_SEED_QUERY = void 0;
4
+ exports.knowledgeModuleSeedQueries = knowledgeModuleSeedQueries;
5
+ const knowledge_module_ids_1 = require("../shared/knowledge.module.ids");
6
+ /** The module seed query (`moduleQuery` of the source app's migration queries), copied verbatim. */
7
+ exports.KNOWLEDGE_MODULE_SEED_QUERY = `
8
+ MERGE (module:Module {id: $moduleId})
9
+ ON CREATE SET
10
+ module.name=$moduleName,
11
+ module.permissions = $permissions,
12
+ module.createdAt = datetime(),
13
+ module.updatedAt = datetime()
14
+ ON MATCH SET
15
+ module.name = $moduleName,
16
+ module.updatedAt = CASE WHEN module.permissions <> $permissions THEN datetime() ELSE module.updatedAt END,
17
+ module.permissions = CASE WHEN module.permissions <> $permissions THEN $permissions ELSE module.permissions END
18
+ WITH module
19
+
20
+ MATCH (feature:Feature) WHERE $featureId IS NOT NULL AND feature.id = $featureId
21
+ WITH module, feature
22
+ WHERE feature IS NOT NULL
23
+ MERGE (module)-[:IN_FEATURE]->(feature)
24
+ `;
25
+ /** Full starting permissions (the literal values of the library's `Action` enum); the app's permission file sets the grants. */
26
+ const FULL_PERMISSIONS = JSON.stringify([
27
+ { type: "read", value: true },
28
+ { type: "create", value: true },
29
+ { type: "update", value: true },
30
+ { type: "delete", value: true },
31
+ ]);
32
+ /** The eight knowledge module nodes, all in the given feature. */
33
+ function knowledgeModuleSeedQueries(params) {
34
+ return Object.entries(knowledge_module_ids_1.KNOWLEDGE_MODULE_IDS).map(([moduleName, moduleId]) => ({
35
+ query: exports.KNOWLEDGE_MODULE_SEED_QUERY,
36
+ queryParams: {
37
+ moduleId,
38
+ moduleName,
39
+ featureId: params.featureId,
40
+ permissions: FULL_PERMISSIONS,
41
+ },
42
+ }));
43
+ }
44
+ //# sourceMappingURL=knowledge.module.seed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge.module.seed.js","sourceRoot":"","sources":["../../src/seed/knowledge.module.seed.ts"],"names":[],"mappings":";;;AAkCA,gEAUC;AA5CD,yEAAsE;AAKtE,oGAAoG;AACvF,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;CAiB1C,CAAC;AAEF,gIAAgI;AAChI,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC;IACtC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE;IAC7B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;IAC/B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;IAC/B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;CAChC,CAAC,CAAC;AAEH,kEAAkE;AAClE,SAAgB,0BAA0B,CAAC,MAA6B;IACtE,OAAO,MAAM,CAAC,OAAO,CAAC,2CAAoB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;QAC3E,KAAK,EAAE,mCAA2B;QAClC,WAAW,EAAE;YACX,QAAQ;YACR,UAAU;YACV,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,WAAW,EAAE,gBAAgB;SAC9B;KACF,CAAC,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const ContentLanguage: {
2
+ readonly ar: "ar";
3
+ readonly en: "en";
4
+ readonly es: "es";
5
+ readonly fr: "fr";
6
+ readonly pt: "pt";
7
+ readonly ru: "ru";
8
+ };
9
+ export type ContentLanguage = (typeof ContentLanguage)[keyof typeof ContentLanguage];
10
+ //# sourceMappingURL=content-language.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-language.d.ts","sourceRoot":"","sources":["../../src/shared/content-language.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;CAA0E,CAAC;AACvG,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentLanguage = void 0;
4
+ exports.ContentLanguage = { ar: "ar", en: "en", es: "es", fr: "fr", pt: "pt", ru: "ru" };
5
+ //# sourceMappingURL=content-language.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-language.js","sourceRoot":"","sources":["../../src/shared/content-language.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const ContentStatus: {
2
+ readonly cluster: "cluster";
3
+ readonly proposed: "proposed";
4
+ readonly knowledge: "knowledge";
5
+ };
6
+ export type ContentStatus = (typeof ContentStatus)[keyof typeof ContentStatus];
7
+ //# sourceMappingURL=content-status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-status.d.ts","sourceRoot":"","sources":["../../src/shared/content-status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;CAAgF,CAAC;AAC3G,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentStatus = void 0;
4
+ exports.ContentStatus = { cluster: "cluster", proposed: "proposed", knowledge: "knowledge" };
5
+ //# sourceMappingURL=content-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-status.js","sourceRoot":"","sources":["../../src/shared/content-status.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAW,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from "./knowledge.endpoints";
2
+ export * from "./knowledge.module.ids";
3
+ export * from "./knowledge.queues";
4
+ export * from "./knowledge.s3.folders";
5
+ export { ContentLanguage } from "./content-language";
6
+ export { ContentStatus } from "./content-status";
7
+ export { SkillLevel } from "./skill-level";
8
+ export { RoleInCommunity, isAdminRole } from "./role-in-community";
9
+ export * from "./schemas";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnE,cAAc,WAAW,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.isAdminRole = exports.RoleInCommunity = exports.SkillLevel = exports.ContentStatus = exports.ContentLanguage = void 0;
18
+ __exportStar(require("./knowledge.endpoints"), exports);
19
+ __exportStar(require("./knowledge.module.ids"), exports);
20
+ __exportStar(require("./knowledge.queues"), exports);
21
+ __exportStar(require("./knowledge.s3.folders"), exports);
22
+ var content_language_1 = require("./content-language");
23
+ Object.defineProperty(exports, "ContentLanguage", { enumerable: true, get: function () { return content_language_1.ContentLanguage; } });
24
+ var content_status_1 = require("./content-status");
25
+ Object.defineProperty(exports, "ContentStatus", { enumerable: true, get: function () { return content_status_1.ContentStatus; } });
26
+ var skill_level_1 = require("./skill-level");
27
+ Object.defineProperty(exports, "SkillLevel", { enumerable: true, get: function () { return skill_level_1.SkillLevel; } });
28
+ var role_in_community_1 = require("./role-in-community");
29
+ Object.defineProperty(exports, "RoleInCommunity", { enumerable: true, get: function () { return role_in_community_1.RoleInCommunity; } });
30
+ Object.defineProperty(exports, "isAdminRole", { enumerable: true, get: function () { return role_in_community_1.isAdminRole; } });
31
+ __exportStar(require("./schemas"), exports);
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AACnC,yDAAuC;AACvC,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,yDAAmE;AAA1D,oHAAA,eAAe,OAAA;AAAE,gHAAA,WAAW,OAAA;AACrC,4CAA0B"}