@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,2871 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ // src/web/common/data/jsonAttribute.ts
5
+ function parseBlockNoteAttribute(raw) {
6
+ if (raw === void 0 || raw === null || raw === "") return void 0;
7
+ if (typeof raw !== "string") return raw;
8
+ try {
9
+ return JSON.parse(raw);
10
+ } catch {
11
+ return [{ type: "paragraph", content: [{ type: "text", text: raw, styles: {} }] }];
12
+ }
13
+ }
14
+ __name(parseBlockNoteAttribute, "parseBlockNoteAttribute");
15
+ function parseObjectAttribute(raw) {
16
+ if (raw === void 0 || raw === null || raw === "") return void 0;
17
+ if (typeof raw === "object") return raw;
18
+ if (typeof raw !== "string") return void 0;
19
+ try {
20
+ const parsed = JSON.parse(raw);
21
+ return parsed && typeof parsed === "object" ? parsed : void 0;
22
+ } catch {
23
+ return void 0;
24
+ }
25
+ }
26
+ __name(parseObjectAttribute, "parseObjectAttribute");
27
+ var BLOCK_NOTE_TRANSLATION_FIELDS = ["description", "content", "abstract"];
28
+ function isBlockNoteField(field) {
29
+ return BLOCK_NOTE_TRANSLATION_FIELDS.includes(field);
30
+ }
31
+ __name(isBlockNoteField, "isBlockNoteField");
32
+ function parseTranslationAttribute(raw) {
33
+ const map = parseObjectAttribute(raw);
34
+ if (!map) return void 0;
35
+ const parsed = {};
36
+ for (const [language, fields] of Object.entries(map)) {
37
+ if (!fields || typeof fields !== "object") continue;
38
+ parsed[language] = { ...fields };
39
+ for (const field of Object.keys(fields)) {
40
+ if (isBlockNoteField(field)) parsed[language][field] = parseBlockNoteAttribute(fields[field]);
41
+ }
42
+ }
43
+ return parsed;
44
+ }
45
+ __name(parseTranslationAttribute, "parseTranslationAttribute");
46
+ function parseBlockNoteTranslationAttribute(raw) {
47
+ const map = parseObjectAttribute(raw);
48
+ if (!map) return void 0;
49
+ const parsed = {};
50
+ for (const [language, value] of Object.entries(map)) parsed[language] = parseBlockNoteAttribute(value);
51
+ return parsed;
52
+ }
53
+ __name(parseBlockNoteTranslationAttribute, "parseBlockNoteTranslationAttribute");
54
+ function serialiseTranslationFields(fields) {
55
+ const out = {};
56
+ for (const [field, value] of Object.entries(fields)) {
57
+ out[field] = isBlockNoteField(field) && value !== void 0 && typeof value !== "string" ? JSON.stringify(value) : value;
58
+ }
59
+ return out;
60
+ }
61
+ __name(serialiseTranslationFields, "serialiseTranslationFields");
62
+ function stringifyTranslationAttribute(map) {
63
+ if (map === void 0 || map === null) return void 0;
64
+ if (typeof map === "string") return map;
65
+ const out = {};
66
+ for (const [language, fields] of Object.entries(map)) {
67
+ out[language] = fields && typeof fields === "object" ? serialiseTranslationFields(fields) : fields;
68
+ }
69
+ return JSON.stringify(out);
70
+ }
71
+ __name(stringifyTranslationAttribute, "stringifyTranslationAttribute");
72
+ function stringifyBlockNoteTranslationAttribute(map) {
73
+ if (map === void 0 || map === null) return void 0;
74
+ if (typeof map === "string") return map;
75
+ const out = {};
76
+ for (const [language, value] of Object.entries(map)) {
77
+ out[language] = value !== void 0 && typeof value !== "string" ? JSON.stringify(value) : value;
78
+ }
79
+ return JSON.stringify(out);
80
+ }
81
+ __name(stringifyBlockNoteTranslationAttribute, "stringifyBlockNoteTranslationAttribute");
82
+
83
+ // src/web/content/common/utils/translationMaps.ts
84
+ function parseTranslationMap(raw) {
85
+ return parseTranslationAttribute(raw);
86
+ }
87
+ __name(parseTranslationMap, "parseTranslationMap");
88
+ function parseBlockNoteTranslationMap(raw) {
89
+ return parseBlockNoteTranslationAttribute(raw);
90
+ }
91
+ __name(parseBlockNoteTranslationMap, "parseBlockNoteTranslationMap");
92
+ function parseScalarTranslationMap(raw) {
93
+ return parseObjectAttribute(raw);
94
+ }
95
+ __name(parseScalarTranslationMap, "parseScalarTranslationMap");
96
+ function stringifyTranslationMap(value) {
97
+ return stringifyTranslationAttribute(value);
98
+ }
99
+ __name(stringifyTranslationMap, "stringifyTranslationMap");
100
+ function stringifyBlockNoteTranslationMap(value) {
101
+ return stringifyBlockNoteTranslationAttribute(value);
102
+ }
103
+ __name(stringifyBlockNoteTranslationMap, "stringifyBlockNoteTranslationMap");
104
+ function stringifyScalarTranslationMap(value) {
105
+ if (value === void 0 || value === null) return void 0;
106
+ if (typeof value === "string") return value;
107
+ return JSON.stringify(value);
108
+ }
109
+ __name(stringifyScalarTranslationMap, "stringifyScalarTranslationMap");
110
+ function resolveBlockNoteTranslation(params) {
111
+ const value = params.language ? params.translation?.[params.language] : void 0;
112
+ return Array.isArray(value) && value.length > 0 ? value : params.original;
113
+ }
114
+ __name(resolveBlockNoteTranslation, "resolveBlockNoteTranslation");
115
+
116
+ // src/web/content/article/data/Article.ts
117
+ import { AbstractApiData, Modules as Modules2 } from "@carlonicora/nextjs-jsonapi/core";
118
+
119
+ // src/web/knowledge.registry.ts
120
+ import { Modules } from "@carlonicora/nextjs-jsonapi/core";
121
+ var KNOWLEDGE_MODULE_NAMES = [
122
+ "AccessRequest",
123
+ "Article",
124
+ "Cluster",
125
+ "CommunityOfExpertise",
126
+ "Discussion",
127
+ "DiscussionReply",
128
+ "Document",
129
+ "ExpertiseSkill",
130
+ "Taxonomy"
131
+ ];
132
+ var NAMES = new Set(KNOWLEDGE_MODULE_NAMES);
133
+ var KnowledgeModules = new Proxy({}, {
134
+ get(_target, prop) {
135
+ if (!NAMES.has(prop)) return Reflect.get(Modules, prop);
136
+ let module;
137
+ try {
138
+ module = Reflect.get(Modules, prop);
139
+ } catch (cause) {
140
+ throw new Error(`nja-knowledge: module "${String(prop)}" is not registered`, { cause });
141
+ }
142
+ if (!module) throw new Error(`nja-knowledge: module "${String(prop)}" is not registered`);
143
+ return module;
144
+ }
145
+ });
146
+
147
+ // src/web/content/article/data/Article.ts
148
+ var Article = class extends AbstractApiData {
149
+ static {
150
+ __name(this, "Article");
151
+ }
152
+ _name;
153
+ _content;
154
+ _abstract;
155
+ _tldr;
156
+ _aiStatus;
157
+ _language;
158
+ _status;
159
+ _translation;
160
+ _abstractTranslation;
161
+ _tldrTranslation;
162
+ _communityOfExpertise;
163
+ _taxonomies;
164
+ _author;
165
+ _editors;
166
+ get name() {
167
+ return this._name ?? "";
168
+ }
169
+ get content() {
170
+ return this._content ?? [];
171
+ }
172
+ get abstract() {
173
+ return this._abstract ?? [];
174
+ }
175
+ get tldr() {
176
+ return this._tldr ?? "";
177
+ }
178
+ get aiStatus() {
179
+ return this._aiStatus ?? "";
180
+ }
181
+ get language() {
182
+ return this._language ?? "";
183
+ }
184
+ get status() {
185
+ return this._status ?? "";
186
+ }
187
+ get translation() {
188
+ return this._translation ?? {};
189
+ }
190
+ get abstractTranslation() {
191
+ return this._abstractTranslation ?? {};
192
+ }
193
+ get tldrTranslation() {
194
+ return this._tldrTranslation ?? {};
195
+ }
196
+ get communityOfExpertise() {
197
+ if (this._communityOfExpertise === void 0)
198
+ throw new Error("JsonApi error: article communityOfExpertise is missing");
199
+ return this._communityOfExpertise;
200
+ }
201
+ get taxonomies() {
202
+ return this._taxonomies ?? [];
203
+ }
204
+ // Hand-relaxed: the author is only included when the payload asks for it (list cells do
205
+ // not always), and a throwing getter would take the whole table down with it.
206
+ get author() {
207
+ return this._author;
208
+ }
209
+ get editors() {
210
+ return this._editors ?? [];
211
+ }
212
+ rehydrate(data) {
213
+ super.rehydrate(data);
214
+ this._name = data.jsonApi.attributes.name;
215
+ this._content = parseBlockNoteAttribute(data.jsonApi.attributes.content);
216
+ this._abstract = parseBlockNoteAttribute(data.jsonApi.attributes.abstract);
217
+ this._tldr = data.jsonApi.attributes.tldr;
218
+ this._aiStatus = data.jsonApi.attributes.aiStatus;
219
+ this._language = data.jsonApi.attributes.language;
220
+ this._status = data.jsonApi.attributes.status;
221
+ this._translation = parseTranslationMap(data.jsonApi.attributes.translation);
222
+ this._abstractTranslation = parseBlockNoteTranslationMap(data.jsonApi.attributes.abstractTranslation);
223
+ this._tldrTranslation = parseScalarTranslationMap(data.jsonApi.attributes.tldrTranslation);
224
+ this._communityOfExpertise = this._readIncluded(
225
+ data,
226
+ "communityofexpertise",
227
+ KnowledgeModules.CommunityOfExpertise
228
+ );
229
+ this._taxonomies = this._readIncluded(data, "taxonomies", KnowledgeModules.Taxonomy);
230
+ this._author = this._readIncluded(data, "author", Modules2.User);
231
+ this._editors = this._readIncluded(data, "editors", Modules2.User);
232
+ return this;
233
+ }
234
+ createJsonApi(data) {
235
+ const response = {
236
+ data: {
237
+ type: KnowledgeModules.Article.name,
238
+ id: data.id,
239
+ attributes: {},
240
+ meta: {},
241
+ relationships: {}
242
+ },
243
+ included: []
244
+ };
245
+ if (data.name !== void 0) response.data.attributes.name = data.name;
246
+ if (data.content !== void 0) response.data.attributes.content = JSON.stringify(data.content);
247
+ if (data.abstract !== void 0) response.data.attributes.abstract = JSON.stringify(data.abstract);
248
+ if (data.tldr !== void 0) response.data.attributes.tldr = data.tldr;
249
+ if (data.language !== void 0) response.data.attributes.language = data.language;
250
+ if (data.status !== void 0) response.data.attributes.status = data.status;
251
+ if (data.translation !== void 0)
252
+ response.data.attributes.translation = stringifyTranslationMap(data.translation);
253
+ if (data.abstractTranslation !== void 0)
254
+ response.data.attributes.abstractTranslation = stringifyBlockNoteTranslationMap(data.abstractTranslation);
255
+ if (data.tldrTranslation !== void 0)
256
+ response.data.attributes.tldrTranslation = stringifyScalarTranslationMap(data.tldrTranslation);
257
+ if (data.communityOfExpertiseId) {
258
+ response.data.relationships.communityofexpertise = {
259
+ data: {
260
+ type: KnowledgeModules.CommunityOfExpertise.name,
261
+ id: data.communityOfExpertiseId
262
+ }
263
+ };
264
+ }
265
+ if (data.taxonomyIds && data.taxonomyIds.length > 0) {
266
+ response.data.relationships.taxonomies = {
267
+ data: data.taxonomyIds.map((id) => ({
268
+ type: KnowledgeModules.Taxonomy.name,
269
+ id
270
+ }))
271
+ };
272
+ }
273
+ if (data.editorIds && data.editorIds.length > 0) {
274
+ response.data.relationships.editors = {
275
+ data: data.editorIds.map((id) => ({
276
+ type: Modules2.User.name,
277
+ id
278
+ }))
279
+ };
280
+ }
281
+ return response;
282
+ }
283
+ /**
284
+ * Body of `PATCH articles/:id/translations` (C4). `_id` on AbstractApiData is protected with
285
+ * no setter, so the id travels as a parameter — the same shape as `createAddPhotoJsonApi`
286
+ * in `references/frontend/01-models.md`.
287
+ */
288
+ createTranslationJsonApi(params) {
289
+ return {
290
+ data: {
291
+ type: KnowledgeModules.Article.name,
292
+ id: params.id,
293
+ attributes: {
294
+ language: params.language,
295
+ fields: serialiseTranslationFields(params.fields)
296
+ }
297
+ }
298
+ };
299
+ }
300
+ };
301
+
302
+ // src/shared/knowledge.endpoints.ts
303
+ var KNOWLEDGE_ENDPOINT_SEGMENTS = {
304
+ propose: "propose",
305
+ approve: "approve",
306
+ reject: "reject",
307
+ translations: "translations",
308
+ directory: "directory",
309
+ accessRequests: "access-requests",
310
+ members: "members",
311
+ managers: "managers",
312
+ replies: "replies",
313
+ role: "role"
314
+ };
315
+
316
+ // src/web/content/article/data/ArticleService.ts
317
+ import { AbstractService, HttpMethod } from "@carlonicora/nextjs-jsonapi/core";
318
+ import { EndpointCreator } from "@carlonicora/nextjs-jsonapi/core";
319
+ import { Modules as Modules3 } from "@carlonicora/nextjs-jsonapi/core";
320
+ var ArticleService = class extends AbstractService {
321
+ static {
322
+ __name(this, "ArticleService");
323
+ }
324
+ static async findOne(params) {
325
+ const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.id });
326
+ if (KnowledgeModules.Article.inclusions?.lists?.fields)
327
+ endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);
328
+ if (KnowledgeModules.Article.inclusions?.lists?.types)
329
+ endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);
330
+ return this.callApi({
331
+ type: KnowledgeModules.Article,
332
+ method: HttpMethod.GET,
333
+ endpoint: endpoint.generate()
334
+ });
335
+ }
336
+ static async findMany(params) {
337
+ const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Article });
338
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
339
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
340
+ if (KnowledgeModules.Article.inclusions?.lists?.fields)
341
+ endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);
342
+ if (KnowledgeModules.Article.inclusions?.lists?.types)
343
+ endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);
344
+ return this.callApi({
345
+ type: KnowledgeModules.Article,
346
+ method: HttpMethod.GET,
347
+ endpoint: endpoint.generate(),
348
+ next: params.next
349
+ });
350
+ }
351
+ static async findManyByCommunityOfExpertise(params) {
352
+ const endpoint = new EndpointCreator({
353
+ endpoint: KnowledgeModules.CommunityOfExpertise,
354
+ id: params.communityOfExpertiseId,
355
+ childEndpoint: KnowledgeModules.Article
356
+ });
357
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
358
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
359
+ if (KnowledgeModules.Article.inclusions?.lists?.fields)
360
+ endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);
361
+ if (KnowledgeModules.Article.inclusions?.lists?.types)
362
+ endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);
363
+ return this.callApi({
364
+ type: KnowledgeModules.Article,
365
+ method: HttpMethod.GET,
366
+ endpoint: endpoint.generate(),
367
+ next: params.next
368
+ });
369
+ }
370
+ static async findManyByTaxonomy(params) {
371
+ const endpoint = new EndpointCreator({
372
+ endpoint: KnowledgeModules.Taxonomy,
373
+ id: params.taxonomyId,
374
+ childEndpoint: KnowledgeModules.Article
375
+ });
376
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
377
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
378
+ if (KnowledgeModules.Article.inclusions?.lists?.fields)
379
+ endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);
380
+ if (KnowledgeModules.Article.inclusions?.lists?.types)
381
+ endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);
382
+ return this.callApi({
383
+ type: KnowledgeModules.Article,
384
+ method: HttpMethod.GET,
385
+ endpoint: endpoint.generate(),
386
+ next: params.next
387
+ });
388
+ }
389
+ static async findManyByAuthor(params) {
390
+ const endpoint = new EndpointCreator({
391
+ endpoint: Modules3.User,
392
+ id: params.authorId,
393
+ childEndpoint: KnowledgeModules.Article
394
+ });
395
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
396
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
397
+ if (KnowledgeModules.Article.inclusions?.lists?.fields)
398
+ endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);
399
+ if (KnowledgeModules.Article.inclusions?.lists?.types)
400
+ endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);
401
+ return this.callApi({
402
+ type: KnowledgeModules.Article,
403
+ method: HttpMethod.GET,
404
+ endpoint: endpoint.generate(),
405
+ next: params.next
406
+ });
407
+ }
408
+ static async findManyByEditor(params) {
409
+ const endpoint = new EndpointCreator({
410
+ endpoint: Modules3.User,
411
+ id: params.editorId,
412
+ childEndpoint: `edited-${KnowledgeModules.Article.name}`
413
+ });
414
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
415
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
416
+ if (KnowledgeModules.Article.inclusions?.lists?.fields)
417
+ endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);
418
+ if (KnowledgeModules.Article.inclusions?.lists?.types)
419
+ endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);
420
+ return this.callApi({
421
+ type: KnowledgeModules.Article,
422
+ method: HttpMethod.GET,
423
+ endpoint: endpoint.generate(),
424
+ next: params.next
425
+ });
426
+ }
427
+ static async create(params) {
428
+ return this.callApi({
429
+ type: KnowledgeModules.Article,
430
+ method: HttpMethod.POST,
431
+ endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article }).generate(),
432
+ input: params
433
+ });
434
+ }
435
+ static async update(params) {
436
+ return this.callApi({
437
+ type: KnowledgeModules.Article,
438
+ method: HttpMethod.PUT,
439
+ endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.id }).generate(),
440
+ input: params
441
+ });
442
+ }
443
+ static async patch(params) {
444
+ return this.callApi({
445
+ type: KnowledgeModules.Article,
446
+ method: HttpMethod.PATCH,
447
+ endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.id }).generate(),
448
+ input: params
449
+ });
450
+ }
451
+ static async delete(params) {
452
+ await this.callApi({
453
+ type: KnowledgeModules.Article,
454
+ method: HttpMethod.DELETE,
455
+ endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.articleId }).generate()
456
+ });
457
+ }
458
+ /**
459
+ * Editorial workflow (C4 / spec §5.2). The API enforces who may act; a caller without the
460
+ * right gets a 403 that the UI surfaces as a toast.
461
+ */
462
+ static async propose(params) {
463
+ return this.callApi({
464
+ type: KnowledgeModules.Article,
465
+ method: HttpMethod.POST,
466
+ endpoint: new EndpointCreator({
467
+ endpoint: KnowledgeModules.Article,
468
+ id: params.id,
469
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.propose
470
+ }).generate()
471
+ });
472
+ }
473
+ static async approve(params) {
474
+ return this.callApi({
475
+ type: KnowledgeModules.Article,
476
+ method: HttpMethod.POST,
477
+ endpoint: new EndpointCreator({
478
+ endpoint: KnowledgeModules.Article,
479
+ id: params.id,
480
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.approve
481
+ }).generate()
482
+ });
483
+ }
484
+ static async reject(params) {
485
+ return this.callApi({
486
+ type: KnowledgeModules.Article,
487
+ method: HttpMethod.POST,
488
+ endpoint: new EndpointCreator({
489
+ endpoint: KnowledgeModules.Article,
490
+ id: params.id,
491
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.reject
492
+ }).generate()
493
+ });
494
+ }
495
+ /** `PATCH articles/:id/translations` — body built by the model, never by hand (C9). */
496
+ static async patchTranslations(params) {
497
+ return this.callApi({
498
+ type: KnowledgeModules.Article,
499
+ method: HttpMethod.PATCH,
500
+ endpoint: new EndpointCreator({
501
+ endpoint: KnowledgeModules.Article,
502
+ id: params.id,
503
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations
504
+ }).generate(),
505
+ input: new Article().createTranslationJsonApi(params),
506
+ overridesJsonApiCreation: true
507
+ });
508
+ }
509
+ };
510
+
511
+ // src/web/content/article/data/ArticleFields.ts
512
+ var ArticleFields = /* @__PURE__ */ ((ArticleFields2) => {
513
+ ArticleFields2["articleId"] = "articleId";
514
+ ArticleFields2["name"] = "name";
515
+ ArticleFields2["content"] = "content";
516
+ ArticleFields2["abstract"] = "abstract";
517
+ ArticleFields2["tldr"] = "tldr";
518
+ ArticleFields2["aiStatus"] = "aiStatus";
519
+ ArticleFields2["language"] = "language";
520
+ ArticleFields2["status"] = "status";
521
+ ArticleFields2["translation"] = "translation";
522
+ ArticleFields2["abstractTranslation"] = "abstractTranslation";
523
+ ArticleFields2["tldrTranslation"] = "tldrTranslation";
524
+ ArticleFields2["communityOfExpertise"] = "communityOfExpertise";
525
+ ArticleFields2["taxonomies"] = "taxonomies";
526
+ ArticleFields2["author"] = "author";
527
+ ArticleFields2["editors"] = "editors";
528
+ ArticleFields2["createdAt"] = "createdAt";
529
+ ArticleFields2["updatedAt"] = "updatedAt";
530
+ return ArticleFields2;
531
+ })(ArticleFields || {});
532
+
533
+ // src/shared/knowledge.module.ids.ts
534
+ var KNOWLEDGE_MODULE_IDS = {
535
+ Cluster: "678cdb6d-1b1d-4ef3-afc4-a347894cd1ed",
536
+ CommunityOfExpertise: "e76477e3-2867-4fd3-a4ee-e627008bda74",
537
+ Taxonomy: "580ecdce-36ea-42ac-9528-1851c35240e9",
538
+ ExpertiseSkill: "23d582a6-f124-4aed-bb25-a38d6ef69481",
539
+ Document: "f8db20d2-aa60-440f-9370-f4b9e79694fc",
540
+ Article: "ef652356-4c38-4f69-ae9a-d3e7474e3e26",
541
+ Discussion: "7c61e8b5-f29b-4776-8156-5284ef19ee78",
542
+ DiscussionReply: "bdf6a775-c8c9-4836-a24e-1b20412a175e"
543
+ };
544
+
545
+ // src/web/content/discussion/data/Discussion.ts
546
+ import { AbstractApiData as AbstractApiData2, Modules as Modules4 } from "@carlonicora/nextjs-jsonapi/core";
547
+ var Discussion = class extends AbstractApiData2 {
548
+ static {
549
+ __name(this, "Discussion");
550
+ }
551
+ _name;
552
+ _content;
553
+ _abstract;
554
+ _tldr;
555
+ _aiStatus;
556
+ _language;
557
+ _status;
558
+ _translation;
559
+ _abstractTranslation;
560
+ _tldrTranslation;
561
+ _communityOfExpertise;
562
+ _taxonomies;
563
+ _author;
564
+ _article;
565
+ get name() {
566
+ return this._name ?? "";
567
+ }
568
+ get content() {
569
+ return this._content ?? [];
570
+ }
571
+ get abstract() {
572
+ return this._abstract ?? [];
573
+ }
574
+ get tldr() {
575
+ return this._tldr ?? "";
576
+ }
577
+ get aiStatus() {
578
+ return this._aiStatus ?? "";
579
+ }
580
+ get language() {
581
+ return this._language ?? "";
582
+ }
583
+ get status() {
584
+ return this._status ?? "";
585
+ }
586
+ get translation() {
587
+ return this._translation ?? {};
588
+ }
589
+ get abstractTranslation() {
590
+ return this._abstractTranslation ?? {};
591
+ }
592
+ get tldrTranslation() {
593
+ return this._tldrTranslation ?? {};
594
+ }
595
+ get communityOfExpertise() {
596
+ if (this._communityOfExpertise === void 0)
597
+ throw new Error("JsonApi error: discussion communityOfExpertise is missing");
598
+ return this._communityOfExpertise;
599
+ }
600
+ get taxonomies() {
601
+ return this._taxonomies ?? [];
602
+ }
603
+ // Hand-relaxed: the author is only included when the payload asks for it (list cells do
604
+ // not always), and a throwing getter would take the whole table down with it.
605
+ get author() {
606
+ return this._author;
607
+ }
608
+ get article() {
609
+ return this._article;
610
+ }
611
+ rehydrate(data) {
612
+ super.rehydrate(data);
613
+ this._name = data.jsonApi.attributes.name;
614
+ this._content = parseBlockNoteAttribute(data.jsonApi.attributes.content);
615
+ this._abstract = parseBlockNoteAttribute(data.jsonApi.attributes.abstract);
616
+ this._tldr = data.jsonApi.attributes.tldr;
617
+ this._aiStatus = data.jsonApi.attributes.aiStatus;
618
+ this._language = data.jsonApi.attributes.language;
619
+ this._status = data.jsonApi.attributes.status;
620
+ this._translation = parseTranslationMap(data.jsonApi.attributes.translation);
621
+ this._abstractTranslation = parseBlockNoteTranslationMap(data.jsonApi.attributes.abstractTranslation);
622
+ this._tldrTranslation = parseScalarTranslationMap(data.jsonApi.attributes.tldrTranslation);
623
+ this._communityOfExpertise = this._readIncluded(
624
+ data,
625
+ "communityofexpertise",
626
+ KnowledgeModules.CommunityOfExpertise
627
+ );
628
+ this._taxonomies = this._readIncluded(data, "taxonomies", KnowledgeModules.Taxonomy);
629
+ this._author = this._readIncluded(data, "author", Modules4.User);
630
+ this._article = this._readIncluded(data, "article", KnowledgeModules.Article);
631
+ return this;
632
+ }
633
+ createJsonApi(data) {
634
+ const response = {
635
+ data: {
636
+ type: KnowledgeModules.Discussion.name,
637
+ id: data.id,
638
+ attributes: {},
639
+ meta: {},
640
+ relationships: {}
641
+ },
642
+ included: []
643
+ };
644
+ if (data.name !== void 0) response.data.attributes.name = data.name;
645
+ if (data.content !== void 0) response.data.attributes.content = JSON.stringify(data.content);
646
+ if (data.abstract !== void 0) response.data.attributes.abstract = JSON.stringify(data.abstract);
647
+ if (data.tldr !== void 0) response.data.attributes.tldr = data.tldr;
648
+ if (data.language !== void 0) response.data.attributes.language = data.language;
649
+ if (data.status !== void 0) response.data.attributes.status = data.status;
650
+ if (data.translation !== void 0)
651
+ response.data.attributes.translation = stringifyTranslationMap(data.translation);
652
+ if (data.abstractTranslation !== void 0)
653
+ response.data.attributes.abstractTranslation = stringifyBlockNoteTranslationMap(data.abstractTranslation);
654
+ if (data.tldrTranslation !== void 0)
655
+ response.data.attributes.tldrTranslation = stringifyScalarTranslationMap(data.tldrTranslation);
656
+ if (data.communityOfExpertiseId) {
657
+ response.data.relationships.communityofexpertise = {
658
+ data: {
659
+ type: KnowledgeModules.CommunityOfExpertise.name,
660
+ id: data.communityOfExpertiseId
661
+ }
662
+ };
663
+ }
664
+ if (data.taxonomyIds && data.taxonomyIds.length > 0) {
665
+ response.data.relationships.taxonomies = {
666
+ data: data.taxonomyIds.map((id) => ({
667
+ type: KnowledgeModules.Taxonomy.name,
668
+ id
669
+ }))
670
+ };
671
+ }
672
+ if (data.articleId) {
673
+ response.data.relationships.article = {
674
+ data: {
675
+ type: KnowledgeModules.Article.name,
676
+ id: data.articleId
677
+ }
678
+ };
679
+ }
680
+ return response;
681
+ }
682
+ /**
683
+ * Body of `PATCH discussions/:id/translations` (C4). `_id` on AbstractApiData is protected with
684
+ * no setter, so the id travels as a parameter — the same shape as `createAddPhotoJsonApi`
685
+ * in `references/frontend/01-models.md`.
686
+ */
687
+ createTranslationJsonApi(params) {
688
+ return {
689
+ data: {
690
+ type: KnowledgeModules.Discussion.name,
691
+ id: params.id,
692
+ attributes: {
693
+ language: params.language,
694
+ fields: serialiseTranslationFields(params.fields)
695
+ }
696
+ }
697
+ };
698
+ }
699
+ };
700
+
701
+ // src/web/content/discussion/data/DiscussionService.ts
702
+ import { AbstractService as AbstractService2, HttpMethod as HttpMethod2 } from "@carlonicora/nextjs-jsonapi/core";
703
+ import { EndpointCreator as EndpointCreator2 } from "@carlonicora/nextjs-jsonapi/core";
704
+ import { Modules as Modules5 } from "@carlonicora/nextjs-jsonapi/core";
705
+ var DiscussionService = class extends AbstractService2 {
706
+ static {
707
+ __name(this, "DiscussionService");
708
+ }
709
+ static async findOne(params) {
710
+ const endpoint = new EndpointCreator2({ endpoint: KnowledgeModules.Discussion, id: params.id });
711
+ if (KnowledgeModules.Discussion.inclusions?.lists?.fields)
712
+ endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);
713
+ if (KnowledgeModules.Discussion.inclusions?.lists?.types)
714
+ endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);
715
+ return this.callApi({
716
+ type: KnowledgeModules.Discussion,
717
+ method: HttpMethod2.GET,
718
+ endpoint: endpoint.generate()
719
+ });
720
+ }
721
+ static async findMany(params) {
722
+ const endpoint = new EndpointCreator2({ endpoint: KnowledgeModules.Discussion });
723
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
724
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
725
+ if (KnowledgeModules.Discussion.inclusions?.lists?.fields)
726
+ endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);
727
+ if (KnowledgeModules.Discussion.inclusions?.lists?.types)
728
+ endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);
729
+ return this.callApi({
730
+ type: KnowledgeModules.Discussion,
731
+ method: HttpMethod2.GET,
732
+ endpoint: endpoint.generate(),
733
+ next: params.next
734
+ });
735
+ }
736
+ static async findManyByCommunityOfExpertise(params) {
737
+ const endpoint = new EndpointCreator2({
738
+ endpoint: KnowledgeModules.CommunityOfExpertise,
739
+ id: params.communityOfExpertiseId,
740
+ childEndpoint: KnowledgeModules.Discussion
741
+ });
742
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
743
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
744
+ if (KnowledgeModules.Discussion.inclusions?.lists?.fields)
745
+ endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);
746
+ if (KnowledgeModules.Discussion.inclusions?.lists?.types)
747
+ endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);
748
+ return this.callApi({
749
+ type: KnowledgeModules.Discussion,
750
+ method: HttpMethod2.GET,
751
+ endpoint: endpoint.generate(),
752
+ next: params.next
753
+ });
754
+ }
755
+ static async findManyByTaxonomy(params) {
756
+ const endpoint = new EndpointCreator2({
757
+ endpoint: KnowledgeModules.Taxonomy,
758
+ id: params.taxonomyId,
759
+ childEndpoint: KnowledgeModules.Discussion
760
+ });
761
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
762
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
763
+ if (KnowledgeModules.Discussion.inclusions?.lists?.fields)
764
+ endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);
765
+ if (KnowledgeModules.Discussion.inclusions?.lists?.types)
766
+ endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);
767
+ return this.callApi({
768
+ type: KnowledgeModules.Discussion,
769
+ method: HttpMethod2.GET,
770
+ endpoint: endpoint.generate(),
771
+ next: params.next
772
+ });
773
+ }
774
+ static async findManyByAuthor(params) {
775
+ const endpoint = new EndpointCreator2({
776
+ endpoint: Modules5.User,
777
+ id: params.authorId,
778
+ childEndpoint: KnowledgeModules.Discussion
779
+ });
780
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
781
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
782
+ if (KnowledgeModules.Discussion.inclusions?.lists?.fields)
783
+ endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);
784
+ if (KnowledgeModules.Discussion.inclusions?.lists?.types)
785
+ endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);
786
+ return this.callApi({
787
+ type: KnowledgeModules.Discussion,
788
+ method: HttpMethod2.GET,
789
+ endpoint: endpoint.generate(),
790
+ next: params.next
791
+ });
792
+ }
793
+ static async findManyByArticle(params) {
794
+ const endpoint = new EndpointCreator2({
795
+ endpoint: KnowledgeModules.Article,
796
+ id: params.articleId,
797
+ childEndpoint: KnowledgeModules.Discussion
798
+ });
799
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
800
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
801
+ if (KnowledgeModules.Discussion.inclusions?.lists?.fields)
802
+ endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);
803
+ if (KnowledgeModules.Discussion.inclusions?.lists?.types)
804
+ endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);
805
+ return this.callApi({
806
+ type: KnowledgeModules.Discussion,
807
+ method: HttpMethod2.GET,
808
+ endpoint: endpoint.generate(),
809
+ next: params.next
810
+ });
811
+ }
812
+ static async create(params) {
813
+ return this.callApi({
814
+ type: KnowledgeModules.Discussion,
815
+ method: HttpMethod2.POST,
816
+ endpoint: new EndpointCreator2({ endpoint: KnowledgeModules.Discussion }).generate(),
817
+ input: params
818
+ });
819
+ }
820
+ static async update(params) {
821
+ return this.callApi({
822
+ type: KnowledgeModules.Discussion,
823
+ method: HttpMethod2.PUT,
824
+ endpoint: new EndpointCreator2({ endpoint: KnowledgeModules.Discussion, id: params.id }).generate(),
825
+ input: params
826
+ });
827
+ }
828
+ static async patch(params) {
829
+ return this.callApi({
830
+ type: KnowledgeModules.Discussion,
831
+ method: HttpMethod2.PATCH,
832
+ endpoint: new EndpointCreator2({ endpoint: KnowledgeModules.Discussion, id: params.id }).generate(),
833
+ input: params
834
+ });
835
+ }
836
+ static async delete(params) {
837
+ await this.callApi({
838
+ type: KnowledgeModules.Discussion,
839
+ method: HttpMethod2.DELETE,
840
+ endpoint: new EndpointCreator2({ endpoint: KnowledgeModules.Discussion, id: params.discussionId }).generate()
841
+ });
842
+ }
843
+ /**
844
+ * Editorial workflow (C4 / spec §5.2). The API enforces who may act; a caller without the
845
+ * right gets a 403 that the UI surfaces as a toast.
846
+ */
847
+ static async propose(params) {
848
+ return this.callApi({
849
+ type: KnowledgeModules.Discussion,
850
+ method: HttpMethod2.POST,
851
+ endpoint: new EndpointCreator2({
852
+ endpoint: KnowledgeModules.Discussion,
853
+ id: params.id,
854
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.propose
855
+ }).generate()
856
+ });
857
+ }
858
+ static async approve(params) {
859
+ return this.callApi({
860
+ type: KnowledgeModules.Discussion,
861
+ method: HttpMethod2.POST,
862
+ endpoint: new EndpointCreator2({
863
+ endpoint: KnowledgeModules.Discussion,
864
+ id: params.id,
865
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.approve
866
+ }).generate()
867
+ });
868
+ }
869
+ static async reject(params) {
870
+ return this.callApi({
871
+ type: KnowledgeModules.Discussion,
872
+ method: HttpMethod2.POST,
873
+ endpoint: new EndpointCreator2({
874
+ endpoint: KnowledgeModules.Discussion,
875
+ id: params.id,
876
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.reject
877
+ }).generate()
878
+ });
879
+ }
880
+ /** `PATCH discussions/:id/translations` — body built by the model, never by hand (C9). */
881
+ static async patchTranslations(params) {
882
+ return this.callApi({
883
+ type: KnowledgeModules.Discussion,
884
+ method: HttpMethod2.PATCH,
885
+ endpoint: new EndpointCreator2({
886
+ endpoint: KnowledgeModules.Discussion,
887
+ id: params.id,
888
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations
889
+ }).generate(),
890
+ input: new Discussion().createTranslationJsonApi(params),
891
+ overridesJsonApiCreation: true
892
+ });
893
+ }
894
+ /**
895
+ * `PATCH discussions/:id/replies/:replyId/approve` (C4). The route carries a trailing verb
896
+ * after the child id, which `EndpointCreator` models as part of `childId`.
897
+ */
898
+ static async approveReply(params) {
899
+ return this.callApi({
900
+ type: KnowledgeModules.Discussion,
901
+ method: HttpMethod2.PATCH,
902
+ endpoint: new EndpointCreator2({
903
+ endpoint: KnowledgeModules.Discussion,
904
+ id: params.id,
905
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.replies,
906
+ childId: `${params.replyId}/${KNOWLEDGE_ENDPOINT_SEGMENTS.approve}`
907
+ }).generate()
908
+ });
909
+ }
910
+ /** `POST discussions/:id/articles` — returns the Article the discussion generated (spec §5.2). */
911
+ static async generateArticle(params) {
912
+ return this.callApi({
913
+ type: KnowledgeModules.Article,
914
+ method: HttpMethod2.POST,
915
+ endpoint: new EndpointCreator2({
916
+ endpoint: KnowledgeModules.Discussion,
917
+ id: params.id,
918
+ childEndpoint: KnowledgeModules.Article
919
+ }).generate()
920
+ });
921
+ }
922
+ };
923
+
924
+ // src/web/content/discussion/data/DiscussionFields.ts
925
+ var DiscussionFields = /* @__PURE__ */ ((DiscussionFields2) => {
926
+ DiscussionFields2["discussionId"] = "discussionId";
927
+ DiscussionFields2["name"] = "name";
928
+ DiscussionFields2["content"] = "content";
929
+ DiscussionFields2["abstract"] = "abstract";
930
+ DiscussionFields2["tldr"] = "tldr";
931
+ DiscussionFields2["aiStatus"] = "aiStatus";
932
+ DiscussionFields2["language"] = "language";
933
+ DiscussionFields2["status"] = "status";
934
+ DiscussionFields2["translation"] = "translation";
935
+ DiscussionFields2["abstractTranslation"] = "abstractTranslation";
936
+ DiscussionFields2["tldrTranslation"] = "tldrTranslation";
937
+ DiscussionFields2["communityOfExpertise"] = "communityOfExpertise";
938
+ DiscussionFields2["taxonomies"] = "taxonomies";
939
+ DiscussionFields2["author"] = "author";
940
+ DiscussionFields2["article"] = "article";
941
+ DiscussionFields2["createdAt"] = "createdAt";
942
+ DiscussionFields2["updatedAt"] = "updatedAt";
943
+ return DiscussionFields2;
944
+ })(DiscussionFields || {});
945
+
946
+ // src/web/content/discussion-reply/data/DiscussionReplyService.ts
947
+ import { AbstractService as AbstractService3, HttpMethod as HttpMethod3 } from "@carlonicora/nextjs-jsonapi/core";
948
+ import { EndpointCreator as EndpointCreator3 } from "@carlonicora/nextjs-jsonapi/core";
949
+ import { Modules as Modules6 } from "@carlonicora/nextjs-jsonapi/core";
950
+ var DiscussionReplyService = class extends AbstractService3 {
951
+ static {
952
+ __name(this, "DiscussionReplyService");
953
+ }
954
+ static async findOne(params) {
955
+ const endpoint = new EndpointCreator3({ endpoint: KnowledgeModules.DiscussionReply, id: params.id });
956
+ if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)
957
+ endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);
958
+ if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)
959
+ endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);
960
+ return this.callApi({
961
+ type: KnowledgeModules.DiscussionReply,
962
+ method: HttpMethod3.GET,
963
+ endpoint: endpoint.generate()
964
+ });
965
+ }
966
+ static async findMany(params) {
967
+ const endpoint = new EndpointCreator3({ endpoint: KnowledgeModules.DiscussionReply });
968
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
969
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
970
+ if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)
971
+ endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);
972
+ if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)
973
+ endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);
974
+ return this.callApi({
975
+ type: KnowledgeModules.DiscussionReply,
976
+ method: HttpMethod3.GET,
977
+ endpoint: endpoint.generate(),
978
+ next: params.next
979
+ });
980
+ }
981
+ static async findManyByDiscussion(params) {
982
+ const endpoint = new EndpointCreator3({
983
+ endpoint: KnowledgeModules.Discussion,
984
+ id: params.discussionId,
985
+ childEndpoint: KnowledgeModules.DiscussionReply
986
+ });
987
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
988
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
989
+ if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)
990
+ endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);
991
+ if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)
992
+ endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);
993
+ return this.callApi({
994
+ type: KnowledgeModules.DiscussionReply,
995
+ method: HttpMethod3.GET,
996
+ endpoint: endpoint.generate(),
997
+ next: params.next
998
+ });
999
+ }
1000
+ static async findManyByAuthor(params) {
1001
+ const endpoint = new EndpointCreator3({
1002
+ endpoint: Modules6.User,
1003
+ id: params.authorId,
1004
+ childEndpoint: KnowledgeModules.DiscussionReply
1005
+ });
1006
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1007
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1008
+ if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)
1009
+ endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);
1010
+ if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)
1011
+ endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);
1012
+ return this.callApi({
1013
+ type: KnowledgeModules.DiscussionReply,
1014
+ method: HttpMethod3.GET,
1015
+ endpoint: endpoint.generate(),
1016
+ next: params.next
1017
+ });
1018
+ }
1019
+ static async create(params) {
1020
+ return this.callApi({
1021
+ type: KnowledgeModules.DiscussionReply,
1022
+ method: HttpMethod3.POST,
1023
+ endpoint: new EndpointCreator3({ endpoint: KnowledgeModules.DiscussionReply }).generate(),
1024
+ input: params
1025
+ });
1026
+ }
1027
+ static async update(params) {
1028
+ return this.callApi({
1029
+ type: KnowledgeModules.DiscussionReply,
1030
+ method: HttpMethod3.PUT,
1031
+ endpoint: new EndpointCreator3({ endpoint: KnowledgeModules.DiscussionReply, id: params.id }).generate(),
1032
+ input: params
1033
+ });
1034
+ }
1035
+ static async patch(params) {
1036
+ return this.callApi({
1037
+ type: KnowledgeModules.DiscussionReply,
1038
+ method: HttpMethod3.PATCH,
1039
+ endpoint: new EndpointCreator3({ endpoint: KnowledgeModules.DiscussionReply, id: params.id }).generate(),
1040
+ input: params
1041
+ });
1042
+ }
1043
+ static async delete(params) {
1044
+ await this.callApi({
1045
+ type: KnowledgeModules.DiscussionReply,
1046
+ method: HttpMethod3.DELETE,
1047
+ endpoint: new EndpointCreator3({
1048
+ endpoint: KnowledgeModules.DiscussionReply,
1049
+ id: params.discussionReplyId
1050
+ }).generate()
1051
+ });
1052
+ }
1053
+ };
1054
+
1055
+ // src/web/content/discussion-reply/data/DiscussionReplyFields.ts
1056
+ var DiscussionReplyFields = /* @__PURE__ */ ((DiscussionReplyFields2) => {
1057
+ DiscussionReplyFields2["discussionReplyId"] = "discussionReplyId";
1058
+ DiscussionReplyFields2["content"] = "content";
1059
+ DiscussionReplyFields2["translation"] = "translation";
1060
+ DiscussionReplyFields2["discussion"] = "discussion";
1061
+ DiscussionReplyFields2["author"] = "author";
1062
+ DiscussionReplyFields2["createdAt"] = "createdAt";
1063
+ DiscussionReplyFields2["updatedAt"] = "updatedAt";
1064
+ return DiscussionReplyFields2;
1065
+ })(DiscussionReplyFields || {});
1066
+
1067
+ // src/web/content/document/data/Document.ts
1068
+ import { AbstractApiData as AbstractApiData3, Modules as Modules7 } from "@carlonicora/nextjs-jsonapi/core";
1069
+ var Document = class extends AbstractApiData3 {
1070
+ static {
1071
+ __name(this, "Document");
1072
+ }
1073
+ _name;
1074
+ _url;
1075
+ _abstract;
1076
+ _tldr;
1077
+ _aiStatus;
1078
+ _language;
1079
+ _status;
1080
+ _translation;
1081
+ _abstractTranslation;
1082
+ _tldrTranslation;
1083
+ _communityOfExpertise;
1084
+ _taxonomies;
1085
+ _author;
1086
+ _editors;
1087
+ get name() {
1088
+ return this._name ?? "";
1089
+ }
1090
+ get url() {
1091
+ return this._url ?? "";
1092
+ }
1093
+ get abstract() {
1094
+ return this._abstract ?? [];
1095
+ }
1096
+ get tldr() {
1097
+ return this._tldr ?? "";
1098
+ }
1099
+ get aiStatus() {
1100
+ return this._aiStatus ?? "";
1101
+ }
1102
+ get language() {
1103
+ return this._language ?? "";
1104
+ }
1105
+ get status() {
1106
+ return this._status ?? "";
1107
+ }
1108
+ get translation() {
1109
+ return this._translation ?? {};
1110
+ }
1111
+ get abstractTranslation() {
1112
+ return this._abstractTranslation ?? {};
1113
+ }
1114
+ get tldrTranslation() {
1115
+ return this._tldrTranslation ?? {};
1116
+ }
1117
+ get communityOfExpertise() {
1118
+ if (this._communityOfExpertise === void 0)
1119
+ throw new Error("JsonApi error: document communityOfExpertise is missing");
1120
+ return this._communityOfExpertise;
1121
+ }
1122
+ get taxonomies() {
1123
+ return this._taxonomies ?? [];
1124
+ }
1125
+ // Hand-relaxed: the author is only included when the payload asks for it (list cells do
1126
+ // not always), and a throwing getter would take the whole table down with it.
1127
+ get author() {
1128
+ return this._author;
1129
+ }
1130
+ get editors() {
1131
+ return this._editors ?? [];
1132
+ }
1133
+ rehydrate(data) {
1134
+ super.rehydrate(data);
1135
+ this._name = data.jsonApi.attributes.name;
1136
+ this._url = data.jsonApi.attributes.url;
1137
+ this._abstract = parseBlockNoteAttribute(data.jsonApi.attributes.abstract);
1138
+ this._tldr = data.jsonApi.attributes.tldr;
1139
+ this._aiStatus = data.jsonApi.attributes.aiStatus;
1140
+ this._language = data.jsonApi.attributes.language;
1141
+ this._status = data.jsonApi.attributes.status;
1142
+ this._translation = parseTranslationMap(data.jsonApi.attributes.translation);
1143
+ this._abstractTranslation = parseBlockNoteTranslationMap(data.jsonApi.attributes.abstractTranslation);
1144
+ this._tldrTranslation = parseScalarTranslationMap(data.jsonApi.attributes.tldrTranslation);
1145
+ this._communityOfExpertise = this._readIncluded(
1146
+ data,
1147
+ "communityofexpertise",
1148
+ KnowledgeModules.CommunityOfExpertise
1149
+ );
1150
+ this._taxonomies = this._readIncluded(data, "taxonomies", KnowledgeModules.Taxonomy);
1151
+ this._author = this._readIncluded(data, "author", Modules7.User);
1152
+ this._editors = this._readIncluded(data, "editors", Modules7.User);
1153
+ return this;
1154
+ }
1155
+ createJsonApi(data) {
1156
+ const response = {
1157
+ data: {
1158
+ type: KnowledgeModules.Document.name,
1159
+ id: data.id,
1160
+ attributes: {},
1161
+ meta: {},
1162
+ relationships: {}
1163
+ },
1164
+ included: []
1165
+ };
1166
+ if (data.name !== void 0) response.data.attributes.name = data.name;
1167
+ if (data.url !== void 0) response.data.attributes.url = data.url;
1168
+ if (data.abstract !== void 0) response.data.attributes.abstract = JSON.stringify(data.abstract);
1169
+ if (data.tldr !== void 0) response.data.attributes.tldr = data.tldr;
1170
+ if (data.language !== void 0) response.data.attributes.language = data.language;
1171
+ if (data.status !== void 0) response.data.attributes.status = data.status;
1172
+ if (data.translation !== void 0)
1173
+ response.data.attributes.translation = stringifyTranslationMap(data.translation);
1174
+ if (data.abstractTranslation !== void 0)
1175
+ response.data.attributes.abstractTranslation = stringifyBlockNoteTranslationMap(data.abstractTranslation);
1176
+ if (data.tldrTranslation !== void 0)
1177
+ response.data.attributes.tldrTranslation = stringifyScalarTranslationMap(data.tldrTranslation);
1178
+ if (data.communityOfExpertiseId) {
1179
+ response.data.relationships.communityofexpertise = {
1180
+ data: {
1181
+ type: KnowledgeModules.CommunityOfExpertise.name,
1182
+ id: data.communityOfExpertiseId
1183
+ }
1184
+ };
1185
+ }
1186
+ if (data.taxonomyIds && data.taxonomyIds.length > 0) {
1187
+ response.data.relationships.taxonomies = {
1188
+ data: data.taxonomyIds.map((id) => ({
1189
+ type: KnowledgeModules.Taxonomy.name,
1190
+ id
1191
+ }))
1192
+ };
1193
+ }
1194
+ if (data.editorIds && data.editorIds.length > 0) {
1195
+ response.data.relationships.editors = {
1196
+ data: data.editorIds.map((id) => ({
1197
+ type: Modules7.User.name,
1198
+ id
1199
+ }))
1200
+ };
1201
+ }
1202
+ return response;
1203
+ }
1204
+ /**
1205
+ * Body of `PATCH documents/:id/translations` (C4). `_id` on AbstractApiData is protected with
1206
+ * no setter, so the id travels as a parameter — the same shape as `createAddPhotoJsonApi`
1207
+ * in `references/frontend/01-models.md`.
1208
+ */
1209
+ createTranslationJsonApi(params) {
1210
+ return {
1211
+ data: {
1212
+ type: KnowledgeModules.Document.name,
1213
+ id: params.id,
1214
+ attributes: {
1215
+ language: params.language,
1216
+ fields: serialiseTranslationFields(params.fields)
1217
+ }
1218
+ }
1219
+ };
1220
+ }
1221
+ };
1222
+
1223
+ // src/web/content/document/data/DocumentService.ts
1224
+ import { AbstractService as AbstractService4, HttpMethod as HttpMethod4 } from "@carlonicora/nextjs-jsonapi/core";
1225
+ import { EndpointCreator as EndpointCreator4 } from "@carlonicora/nextjs-jsonapi/core";
1226
+ import { Modules as Modules8 } from "@carlonicora/nextjs-jsonapi/core";
1227
+ var DocumentService = class extends AbstractService4 {
1228
+ static {
1229
+ __name(this, "DocumentService");
1230
+ }
1231
+ static async findOne(params) {
1232
+ const endpoint = new EndpointCreator4({ endpoint: KnowledgeModules.Document, id: params.id });
1233
+ if (KnowledgeModules.Document.inclusions?.lists?.fields)
1234
+ endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);
1235
+ if (KnowledgeModules.Document.inclusions?.lists?.types)
1236
+ endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);
1237
+ return this.callApi({
1238
+ type: KnowledgeModules.Document,
1239
+ method: HttpMethod4.GET,
1240
+ endpoint: endpoint.generate()
1241
+ });
1242
+ }
1243
+ static async findMany(params) {
1244
+ const endpoint = new EndpointCreator4({ endpoint: KnowledgeModules.Document });
1245
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1246
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1247
+ if (KnowledgeModules.Document.inclusions?.lists?.fields)
1248
+ endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);
1249
+ if (KnowledgeModules.Document.inclusions?.lists?.types)
1250
+ endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);
1251
+ return this.callApi({
1252
+ type: KnowledgeModules.Document,
1253
+ method: HttpMethod4.GET,
1254
+ endpoint: endpoint.generate(),
1255
+ next: params.next
1256
+ });
1257
+ }
1258
+ static async findManyByCommunityOfExpertise(params) {
1259
+ const endpoint = new EndpointCreator4({
1260
+ endpoint: KnowledgeModules.CommunityOfExpertise,
1261
+ id: params.communityOfExpertiseId,
1262
+ childEndpoint: KnowledgeModules.Document
1263
+ });
1264
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1265
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1266
+ if (KnowledgeModules.Document.inclusions?.lists?.fields)
1267
+ endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);
1268
+ if (KnowledgeModules.Document.inclusions?.lists?.types)
1269
+ endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);
1270
+ return this.callApi({
1271
+ type: KnowledgeModules.Document,
1272
+ method: HttpMethod4.GET,
1273
+ endpoint: endpoint.generate(),
1274
+ next: params.next
1275
+ });
1276
+ }
1277
+ static async findManyByTaxonomy(params) {
1278
+ const endpoint = new EndpointCreator4({
1279
+ endpoint: KnowledgeModules.Taxonomy,
1280
+ id: params.taxonomyId,
1281
+ childEndpoint: KnowledgeModules.Document
1282
+ });
1283
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1284
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1285
+ if (KnowledgeModules.Document.inclusions?.lists?.fields)
1286
+ endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);
1287
+ if (KnowledgeModules.Document.inclusions?.lists?.types)
1288
+ endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);
1289
+ return this.callApi({
1290
+ type: KnowledgeModules.Document,
1291
+ method: HttpMethod4.GET,
1292
+ endpoint: endpoint.generate(),
1293
+ next: params.next
1294
+ });
1295
+ }
1296
+ static async findManyByAuthor(params) {
1297
+ const endpoint = new EndpointCreator4({
1298
+ endpoint: Modules8.User,
1299
+ id: params.authorId,
1300
+ childEndpoint: KnowledgeModules.Document
1301
+ });
1302
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1303
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1304
+ if (KnowledgeModules.Document.inclusions?.lists?.fields)
1305
+ endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);
1306
+ if (KnowledgeModules.Document.inclusions?.lists?.types)
1307
+ endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);
1308
+ return this.callApi({
1309
+ type: KnowledgeModules.Document,
1310
+ method: HttpMethod4.GET,
1311
+ endpoint: endpoint.generate(),
1312
+ next: params.next
1313
+ });
1314
+ }
1315
+ static async findManyByEditor(params) {
1316
+ const endpoint = new EndpointCreator4({
1317
+ endpoint: Modules8.User,
1318
+ id: params.editorId,
1319
+ childEndpoint: `edited-${KnowledgeModules.Document.name}`
1320
+ });
1321
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1322
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1323
+ if (KnowledgeModules.Document.inclusions?.lists?.fields)
1324
+ endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);
1325
+ if (KnowledgeModules.Document.inclusions?.lists?.types)
1326
+ endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);
1327
+ return this.callApi({
1328
+ type: KnowledgeModules.Document,
1329
+ method: HttpMethod4.GET,
1330
+ endpoint: endpoint.generate(),
1331
+ next: params.next
1332
+ });
1333
+ }
1334
+ static async create(params) {
1335
+ return this.callApi({
1336
+ type: KnowledgeModules.Document,
1337
+ method: HttpMethod4.POST,
1338
+ endpoint: new EndpointCreator4({ endpoint: KnowledgeModules.Document }).generate(),
1339
+ input: params
1340
+ });
1341
+ }
1342
+ static async update(params) {
1343
+ return this.callApi({
1344
+ type: KnowledgeModules.Document,
1345
+ method: HttpMethod4.PUT,
1346
+ endpoint: new EndpointCreator4({ endpoint: KnowledgeModules.Document, id: params.id }).generate(),
1347
+ input: params
1348
+ });
1349
+ }
1350
+ static async patch(params) {
1351
+ return this.callApi({
1352
+ type: KnowledgeModules.Document,
1353
+ method: HttpMethod4.PATCH,
1354
+ endpoint: new EndpointCreator4({ endpoint: KnowledgeModules.Document, id: params.id }).generate(),
1355
+ input: params
1356
+ });
1357
+ }
1358
+ static async delete(params) {
1359
+ await this.callApi({
1360
+ type: KnowledgeModules.Document,
1361
+ method: HttpMethod4.DELETE,
1362
+ endpoint: new EndpointCreator4({ endpoint: KnowledgeModules.Document, id: params.documentId }).generate()
1363
+ });
1364
+ }
1365
+ /**
1366
+ * Editorial workflow (C4 / spec §5.2). The API enforces who may act; a caller without the
1367
+ * right gets a 403 that the UI surfaces as a toast.
1368
+ */
1369
+ static async propose(params) {
1370
+ return this.callApi({
1371
+ type: KnowledgeModules.Document,
1372
+ method: HttpMethod4.POST,
1373
+ endpoint: new EndpointCreator4({
1374
+ endpoint: KnowledgeModules.Document,
1375
+ id: params.id,
1376
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.propose
1377
+ }).generate()
1378
+ });
1379
+ }
1380
+ static async approve(params) {
1381
+ return this.callApi({
1382
+ type: KnowledgeModules.Document,
1383
+ method: HttpMethod4.POST,
1384
+ endpoint: new EndpointCreator4({
1385
+ endpoint: KnowledgeModules.Document,
1386
+ id: params.id,
1387
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.approve
1388
+ }).generate()
1389
+ });
1390
+ }
1391
+ static async reject(params) {
1392
+ return this.callApi({
1393
+ type: KnowledgeModules.Document,
1394
+ method: HttpMethod4.POST,
1395
+ endpoint: new EndpointCreator4({
1396
+ endpoint: KnowledgeModules.Document,
1397
+ id: params.id,
1398
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.reject
1399
+ }).generate()
1400
+ });
1401
+ }
1402
+ /** `PATCH documents/:id/translations` — body built by the model, never by hand (C9). */
1403
+ static async patchTranslations(params) {
1404
+ return this.callApi({
1405
+ type: KnowledgeModules.Document,
1406
+ method: HttpMethod4.PATCH,
1407
+ endpoint: new EndpointCreator4({
1408
+ endpoint: KnowledgeModules.Document,
1409
+ id: params.id,
1410
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations
1411
+ }).generate(),
1412
+ input: new Document().createTranslationJsonApi(params),
1413
+ overridesJsonApiCreation: true
1414
+ });
1415
+ }
1416
+ };
1417
+
1418
+ // src/web/content/document/data/DocumentFields.ts
1419
+ var DocumentFields = /* @__PURE__ */ ((DocumentFields2) => {
1420
+ DocumentFields2["documentId"] = "documentId";
1421
+ DocumentFields2["name"] = "name";
1422
+ DocumentFields2["url"] = "url";
1423
+ DocumentFields2["abstract"] = "abstract";
1424
+ DocumentFields2["tldr"] = "tldr";
1425
+ DocumentFields2["aiStatus"] = "aiStatus";
1426
+ DocumentFields2["language"] = "language";
1427
+ DocumentFields2["status"] = "status";
1428
+ DocumentFields2["translation"] = "translation";
1429
+ DocumentFields2["abstractTranslation"] = "abstractTranslation";
1430
+ DocumentFields2["tldrTranslation"] = "tldrTranslation";
1431
+ DocumentFields2["communityOfExpertise"] = "communityOfExpertise";
1432
+ DocumentFields2["taxonomies"] = "taxonomies";
1433
+ DocumentFields2["author"] = "author";
1434
+ DocumentFields2["editors"] = "editors";
1435
+ DocumentFields2["createdAt"] = "createdAt";
1436
+ DocumentFields2["updatedAt"] = "updatedAt";
1437
+ return DocumentFields2;
1438
+ })(DocumentFields || {});
1439
+
1440
+ // src/web/expertise/cluster/data/Cluster.ts
1441
+ import { AbstractApiData as AbstractApiData4, Modules as Modules9 } from "@carlonicora/nextjs-jsonapi/core";
1442
+ var Cluster = class extends AbstractApiData4 {
1443
+ static {
1444
+ __name(this, "Cluster");
1445
+ }
1446
+ _name;
1447
+ _description;
1448
+ _isGlobal;
1449
+ _translation;
1450
+ _parent;
1451
+ _members;
1452
+ _managers;
1453
+ _requesters;
1454
+ get name() {
1455
+ return this._name ?? "";
1456
+ }
1457
+ get description() {
1458
+ return this._description ?? [];
1459
+ }
1460
+ get isGlobal() {
1461
+ return this._isGlobal ?? false;
1462
+ }
1463
+ get translation() {
1464
+ return this._translation;
1465
+ }
1466
+ get parent() {
1467
+ return this._parent;
1468
+ }
1469
+ get members() {
1470
+ return this._members ?? [];
1471
+ }
1472
+ get managers() {
1473
+ return this._managers ?? [];
1474
+ }
1475
+ get requesters() {
1476
+ return this._requesters ?? [];
1477
+ }
1478
+ rehydrate(data) {
1479
+ super.rehydrate(data);
1480
+ this._name = data.jsonApi.attributes.name;
1481
+ this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);
1482
+ this._isGlobal = data.jsonApi.attributes.isGlobal;
1483
+ this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);
1484
+ this._parent = this._readIncluded(data, "parent", KnowledgeModules.Cluster);
1485
+ this._members = this._readIncluded(data, "members", Modules9.User);
1486
+ this._managers = this._readIncluded(data, "managers", Modules9.User);
1487
+ this._requesters = this._readIncluded(data, "requesters", Modules9.User);
1488
+ return this;
1489
+ }
1490
+ createJsonApi(data) {
1491
+ const response = {
1492
+ data: {
1493
+ type: KnowledgeModules.Cluster.name,
1494
+ id: data.id,
1495
+ attributes: {},
1496
+ meta: {},
1497
+ relationships: {}
1498
+ },
1499
+ included: []
1500
+ };
1501
+ if (data.name !== void 0) response.data.attributes.name = data.name;
1502
+ if (data.description !== void 0) response.data.attributes.description = JSON.stringify(data.description);
1503
+ if (data.translation !== void 0)
1504
+ response.data.attributes.translation = stringifyTranslationAttribute(data.translation);
1505
+ if (data.parentId) {
1506
+ response.data.relationships.parent = {
1507
+ data: {
1508
+ type: KnowledgeModules.Cluster.name,
1509
+ id: data.parentId
1510
+ }
1511
+ };
1512
+ }
1513
+ if (data.memberIds && data.memberIds.length > 0) {
1514
+ response.data.relationships.members = {
1515
+ data: data.memberIds.map((id) => ({
1516
+ type: Modules9.User.name,
1517
+ id
1518
+ }))
1519
+ };
1520
+ }
1521
+ if (data.managerIds && data.managerIds.length > 0) {
1522
+ response.data.relationships.managers = {
1523
+ data: data.managerIds.map((id) => ({
1524
+ type: Modules9.User.name,
1525
+ id
1526
+ }))
1527
+ };
1528
+ }
1529
+ if (data.requesterIds && data.requesterIds.length > 0) {
1530
+ response.data.relationships.requesters = {
1531
+ data: data.requesterIds.map((id) => ({
1532
+ type: Modules9.User.name,
1533
+ id
1534
+ }))
1535
+ };
1536
+ }
1537
+ return response;
1538
+ }
1539
+ /**
1540
+ * `PATCH clusters/:id/translations` body. `_id` on AbstractApiData is protected
1541
+ * with no setter, so the id travels as a parameter — same shape as the
1542
+ * framework's `createAddPhotoJsonApi`.
1543
+ */
1544
+ createTranslationJsonApi(params) {
1545
+ return {
1546
+ data: {
1547
+ type: KnowledgeModules.Cluster.name,
1548
+ id: params.id,
1549
+ attributes: {
1550
+ language: params.language,
1551
+ fields: serialiseTranslationFields(params.fields)
1552
+ }
1553
+ }
1554
+ };
1555
+ }
1556
+ };
1557
+
1558
+ // src/web/expertise/cluster/data/ClusterService.ts
1559
+ import { AbstractService as AbstractService5, HttpMethod as HttpMethod5 } from "@carlonicora/nextjs-jsonapi/core";
1560
+ import { EndpointCreator as EndpointCreator5 } from "@carlonicora/nextjs-jsonapi/core";
1561
+ var ClusterService = class extends AbstractService5 {
1562
+ static {
1563
+ __name(this, "ClusterService");
1564
+ }
1565
+ static async findOne(params) {
1566
+ const endpoint = new EndpointCreator5({ endpoint: KnowledgeModules.Cluster, id: params.id });
1567
+ if (KnowledgeModules.Cluster.inclusions?.lists?.fields)
1568
+ endpoint.limitToFields(KnowledgeModules.Cluster.inclusions.lists.fields);
1569
+ if (KnowledgeModules.Cluster.inclusions?.lists?.types)
1570
+ endpoint.limitToType(KnowledgeModules.Cluster.inclusions.lists.types);
1571
+ return this.callApi({
1572
+ type: KnowledgeModules.Cluster,
1573
+ method: HttpMethod5.GET,
1574
+ endpoint: endpoint.generate()
1575
+ });
1576
+ }
1577
+ static async findMany(params) {
1578
+ const endpoint = new EndpointCreator5({ endpoint: KnowledgeModules.Cluster });
1579
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1580
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1581
+ if (KnowledgeModules.Cluster.inclusions?.lists?.fields)
1582
+ endpoint.limitToFields(KnowledgeModules.Cluster.inclusions.lists.fields);
1583
+ if (KnowledgeModules.Cluster.inclusions?.lists?.types)
1584
+ endpoint.limitToType(KnowledgeModules.Cluster.inclusions.lists.types);
1585
+ return this.callApi({
1586
+ type: KnowledgeModules.Cluster,
1587
+ method: HttpMethod5.GET,
1588
+ endpoint: endpoint.generate(),
1589
+ next: params.next
1590
+ });
1591
+ }
1592
+ static async findManyByParent(params) {
1593
+ const endpoint = new EndpointCreator5({
1594
+ endpoint: KnowledgeModules.Cluster,
1595
+ id: params.parentId,
1596
+ childEndpoint: KnowledgeModules.Cluster
1597
+ });
1598
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1599
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1600
+ if (KnowledgeModules.Cluster.inclusions?.lists?.fields)
1601
+ endpoint.limitToFields(KnowledgeModules.Cluster.inclusions.lists.fields);
1602
+ if (KnowledgeModules.Cluster.inclusions?.lists?.types)
1603
+ endpoint.limitToType(KnowledgeModules.Cluster.inclusions.lists.types);
1604
+ return this.callApi({
1605
+ type: KnowledgeModules.Cluster,
1606
+ method: HttpMethod5.GET,
1607
+ endpoint: endpoint.generate(),
1608
+ next: params.next
1609
+ });
1610
+ }
1611
+ static async create(params) {
1612
+ return this.callApi({
1613
+ type: KnowledgeModules.Cluster,
1614
+ method: HttpMethod5.POST,
1615
+ endpoint: new EndpointCreator5({ endpoint: KnowledgeModules.Cluster }).generate(),
1616
+ input: params
1617
+ });
1618
+ }
1619
+ static async update(params) {
1620
+ return this.callApi({
1621
+ type: KnowledgeModules.Cluster,
1622
+ method: HttpMethod5.PUT,
1623
+ endpoint: new EndpointCreator5({ endpoint: KnowledgeModules.Cluster, id: params.id }).generate(),
1624
+ input: params
1625
+ });
1626
+ }
1627
+ static async patch(params) {
1628
+ return this.callApi({
1629
+ type: KnowledgeModules.Cluster,
1630
+ method: HttpMethod5.PATCH,
1631
+ endpoint: new EndpointCreator5({ endpoint: KnowledgeModules.Cluster, id: params.id }).generate(),
1632
+ input: params
1633
+ });
1634
+ }
1635
+ static async delete(params) {
1636
+ await this.callApi({
1637
+ type: KnowledgeModules.Cluster,
1638
+ method: HttpMethod5.DELETE,
1639
+ endpoint: new EndpointCreator5({ endpoint: KnowledgeModules.Cluster, id: params.clusterId }).generate()
1640
+ });
1641
+ }
1642
+ /** `GET clusters/directory` — every cluster in the company, access filter off. */
1643
+ static async findDirectory(params = {}) {
1644
+ const endpoint = new EndpointCreator5({
1645
+ endpoint: KnowledgeModules.Cluster,
1646
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.directory
1647
+ });
1648
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1649
+ return this.callApi({
1650
+ type: KnowledgeModules.Cluster,
1651
+ method: HttpMethod5.GET,
1652
+ endpoint: endpoint.generate()
1653
+ });
1654
+ }
1655
+ /** `POST clusters/:id/access-requests` — the current user asks to join. */
1656
+ static async requestAccess(params) {
1657
+ await this.callApi({
1658
+ type: KnowledgeModules.Cluster,
1659
+ method: HttpMethod5.POST,
1660
+ endpoint: new EndpointCreator5({
1661
+ endpoint: KnowledgeModules.Cluster,
1662
+ id: params.id,
1663
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests
1664
+ }).generate()
1665
+ });
1666
+ }
1667
+ /** `DELETE clusters/:id/access-requests/:userId` — manager rejects, or the requester withdraws. */
1668
+ static async rejectAccess(params) {
1669
+ await this.callApi({
1670
+ type: KnowledgeModules.Cluster,
1671
+ method: HttpMethod5.DELETE,
1672
+ endpoint: new EndpointCreator5({
1673
+ endpoint: KnowledgeModules.Cluster,
1674
+ id: params.id,
1675
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests,
1676
+ childId: params.userId
1677
+ }).generate()
1678
+ });
1679
+ }
1680
+ /** `POST clusters/:id/members/:userId` — manager approves the request. */
1681
+ static async approveAccess(params) {
1682
+ await this.callApi({
1683
+ type: KnowledgeModules.Cluster,
1684
+ method: HttpMethod5.POST,
1685
+ endpoint: new EndpointCreator5({
1686
+ endpoint: KnowledgeModules.Cluster,
1687
+ id: params.id,
1688
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,
1689
+ childId: params.userId
1690
+ }).generate()
1691
+ });
1692
+ }
1693
+ /**
1694
+ * `POST clusters/:id/members/:userId` — the same route as `approveAccess`: the API
1695
+ * creates PART_OF and drops any pending request, so a manager can add a member
1696
+ * directly without a request existing.
1697
+ */
1698
+ static async addMember(params) {
1699
+ await this.callApi({
1700
+ type: KnowledgeModules.Cluster,
1701
+ method: HttpMethod5.POST,
1702
+ endpoint: new EndpointCreator5({
1703
+ endpoint: KnowledgeModules.Cluster,
1704
+ id: params.id,
1705
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,
1706
+ childId: params.userId
1707
+ }).generate()
1708
+ });
1709
+ }
1710
+ /** `DELETE clusters/:id/members/:userId`. */
1711
+ static async removeMember(params) {
1712
+ await this.callApi({
1713
+ type: KnowledgeModules.Cluster,
1714
+ method: HttpMethod5.DELETE,
1715
+ endpoint: new EndpointCreator5({
1716
+ endpoint: KnowledgeModules.Cluster,
1717
+ id: params.id,
1718
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,
1719
+ childId: params.userId
1720
+ }).generate()
1721
+ });
1722
+ }
1723
+ /** `POST clusters/:id/managers/:userId`. */
1724
+ static async addManager(params) {
1725
+ await this.callApi({
1726
+ type: KnowledgeModules.Cluster,
1727
+ method: HttpMethod5.POST,
1728
+ endpoint: new EndpointCreator5({
1729
+ endpoint: KnowledgeModules.Cluster,
1730
+ id: params.id,
1731
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,
1732
+ childId: params.userId
1733
+ }).generate()
1734
+ });
1735
+ }
1736
+ /** `DELETE clusters/:id/managers/:userId`. */
1737
+ static async removeManager(params) {
1738
+ await this.callApi({
1739
+ type: KnowledgeModules.Cluster,
1740
+ method: HttpMethod5.DELETE,
1741
+ endpoint: new EndpointCreator5({
1742
+ endpoint: KnowledgeModules.Cluster,
1743
+ id: params.id,
1744
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,
1745
+ childId: params.userId
1746
+ }).generate()
1747
+ });
1748
+ }
1749
+ /** `PATCH clusters/:id/translations` — merges one language into the stored maps. */
1750
+ static async patchTranslations(params) {
1751
+ return this.callApi({
1752
+ type: KnowledgeModules.Cluster,
1753
+ method: HttpMethod5.PATCH,
1754
+ endpoint: new EndpointCreator5({
1755
+ endpoint: KnowledgeModules.Cluster,
1756
+ id: params.id,
1757
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations
1758
+ }).generate(),
1759
+ input: new Cluster().createTranslationJsonApi(params),
1760
+ overridesJsonApiCreation: true
1761
+ });
1762
+ }
1763
+ };
1764
+
1765
+ // src/web/expertise/cluster/data/ClusterFields.ts
1766
+ var ClusterFields = /* @__PURE__ */ ((ClusterFields2) => {
1767
+ ClusterFields2["clusterId"] = "clusterId";
1768
+ ClusterFields2["name"] = "name";
1769
+ ClusterFields2["description"] = "description";
1770
+ ClusterFields2["isGlobal"] = "isGlobal";
1771
+ ClusterFields2["translation"] = "translation";
1772
+ ClusterFields2["parent"] = "parent";
1773
+ ClusterFields2["members"] = "members";
1774
+ ClusterFields2["managers"] = "managers";
1775
+ ClusterFields2["requesters"] = "requesters";
1776
+ ClusterFields2["actions"] = "actions";
1777
+ ClusterFields2["createdAt"] = "createdAt";
1778
+ ClusterFields2["updatedAt"] = "updatedAt";
1779
+ return ClusterFields2;
1780
+ })(ClusterFields || {});
1781
+
1782
+ // src/web/expertise/community-of-expertise/data/CommunityOfExpertise.ts
1783
+ import { AbstractApiData as AbstractApiData5, Modules as Modules10 } from "@carlonicora/nextjs-jsonapi/core";
1784
+ var CommunityOfExpertise = class extends AbstractApiData5 {
1785
+ static {
1786
+ __name(this, "CommunityOfExpertise");
1787
+ }
1788
+ _name;
1789
+ _description;
1790
+ _image;
1791
+ _translation;
1792
+ _cluster;
1793
+ _parent;
1794
+ _members;
1795
+ _managers;
1796
+ _requesters;
1797
+ get name() {
1798
+ return this._name ?? "";
1799
+ }
1800
+ get description() {
1801
+ return this._description ?? [];
1802
+ }
1803
+ get image() {
1804
+ return this._image ?? "";
1805
+ }
1806
+ get translation() {
1807
+ return this._translation;
1808
+ }
1809
+ get cluster() {
1810
+ if (this._cluster === void 0) throw new Error("JsonApi error: communityOfExpertise cluster is missing");
1811
+ return this._cluster;
1812
+ }
1813
+ get parent() {
1814
+ return this._parent;
1815
+ }
1816
+ get members() {
1817
+ return this._members ?? [];
1818
+ }
1819
+ get managers() {
1820
+ return this._managers ?? [];
1821
+ }
1822
+ get requesters() {
1823
+ return this._requesters ?? [];
1824
+ }
1825
+ rehydrate(data) {
1826
+ super.rehydrate(data);
1827
+ this._name = data.jsonApi.attributes.name;
1828
+ this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);
1829
+ this._image = data.jsonApi.attributes.image;
1830
+ this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);
1831
+ this._cluster = this._readIncluded(data, "cluster", KnowledgeModules.Cluster);
1832
+ this._parent = this._readIncluded(data, "parent", KnowledgeModules.CommunityOfExpertise);
1833
+ this._members = this._readIncludedWithMeta(
1834
+ data,
1835
+ "members",
1836
+ Modules10.User
1837
+ );
1838
+ this._managers = this._readIncluded(data, "managers", Modules10.User);
1839
+ this._requesters = this._readIncluded(data, "requesters", Modules10.User);
1840
+ return this;
1841
+ }
1842
+ createJsonApi(data) {
1843
+ const response = {
1844
+ data: {
1845
+ type: KnowledgeModules.CommunityOfExpertise.name,
1846
+ id: data.id,
1847
+ attributes: {},
1848
+ meta: {},
1849
+ relationships: {}
1850
+ },
1851
+ included: []
1852
+ };
1853
+ if (data.name !== void 0) response.data.attributes.name = data.name;
1854
+ if (data.description !== void 0) response.data.attributes.description = JSON.stringify(data.description);
1855
+ if (data.image !== void 0) response.data.attributes.image = data.image;
1856
+ if (data.translation !== void 0)
1857
+ response.data.attributes.translation = stringifyTranslationAttribute(data.translation);
1858
+ if (data.clusterId) {
1859
+ response.data.relationships.cluster = {
1860
+ data: {
1861
+ type: KnowledgeModules.Cluster.name,
1862
+ id: data.clusterId
1863
+ }
1864
+ };
1865
+ }
1866
+ if (data.parentId) {
1867
+ response.data.relationships.parent = {
1868
+ data: {
1869
+ type: KnowledgeModules.CommunityOfExpertise.name,
1870
+ id: data.parentId
1871
+ }
1872
+ };
1873
+ }
1874
+ if (data.memberIds && data.memberIds.length > 0) {
1875
+ response.data.relationships.members = {
1876
+ data: data.memberIds.map((id) => ({
1877
+ type: Modules10.User.name,
1878
+ id
1879
+ }))
1880
+ };
1881
+ }
1882
+ if (data.managerIds && data.managerIds.length > 0) {
1883
+ response.data.relationships.managers = {
1884
+ data: data.managerIds.map((id) => ({
1885
+ type: Modules10.User.name,
1886
+ id
1887
+ }))
1888
+ };
1889
+ }
1890
+ if (data.requesterIds && data.requesterIds.length > 0) {
1891
+ response.data.relationships.requesters = {
1892
+ data: data.requesterIds.map((id) => ({
1893
+ type: Modules10.User.name,
1894
+ id
1895
+ }))
1896
+ };
1897
+ }
1898
+ return response;
1899
+ }
1900
+ /** `PATCH communities-of-expertise/:id/translations` body. */
1901
+ createTranslationJsonApi(params) {
1902
+ return {
1903
+ data: {
1904
+ type: KnowledgeModules.CommunityOfExpertise.name,
1905
+ id: params.id,
1906
+ attributes: {
1907
+ language: params.language,
1908
+ fields: serialiseTranslationFields(params.fields)
1909
+ }
1910
+ }
1911
+ };
1912
+ }
1913
+ /** `PATCH communities-of-expertise/:id/members/:userId/role` body. */
1914
+ createRoleJsonApi(params) {
1915
+ return {
1916
+ data: {
1917
+ type: KnowledgeModules.CommunityOfExpertise.name,
1918
+ id: params.id,
1919
+ attributes: {
1920
+ role: params.role
1921
+ }
1922
+ }
1923
+ };
1924
+ }
1925
+ };
1926
+
1927
+ // src/web/expertise/community-of-expertise/data/CommunityOfExpertiseService.ts
1928
+ import { AbstractService as AbstractService6, HttpMethod as HttpMethod6 } from "@carlonicora/nextjs-jsonapi/core";
1929
+ import { EndpointCreator as EndpointCreator6 } from "@carlonicora/nextjs-jsonapi/core";
1930
+ var CommunityOfExpertiseService = class extends AbstractService6 {
1931
+ static {
1932
+ __name(this, "CommunityOfExpertiseService");
1933
+ }
1934
+ static async findOne(params) {
1935
+ const endpoint = new EndpointCreator6({ endpoint: KnowledgeModules.CommunityOfExpertise, id: params.id });
1936
+ if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)
1937
+ endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);
1938
+ if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)
1939
+ endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);
1940
+ return this.callApi({
1941
+ type: KnowledgeModules.CommunityOfExpertise,
1942
+ method: HttpMethod6.GET,
1943
+ endpoint: endpoint.generate()
1944
+ });
1945
+ }
1946
+ static async findMany(params) {
1947
+ const endpoint = new EndpointCreator6({ endpoint: KnowledgeModules.CommunityOfExpertise });
1948
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1949
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1950
+ if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)
1951
+ endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);
1952
+ if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)
1953
+ endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);
1954
+ return this.callApi({
1955
+ type: KnowledgeModules.CommunityOfExpertise,
1956
+ method: HttpMethod6.GET,
1957
+ endpoint: endpoint.generate(),
1958
+ next: params.next
1959
+ });
1960
+ }
1961
+ static async findManyByCluster(params) {
1962
+ const endpoint = new EndpointCreator6({
1963
+ endpoint: KnowledgeModules.Cluster,
1964
+ id: params.clusterId,
1965
+ childEndpoint: KnowledgeModules.CommunityOfExpertise
1966
+ });
1967
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1968
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1969
+ if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)
1970
+ endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);
1971
+ if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)
1972
+ endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);
1973
+ return this.callApi({
1974
+ type: KnowledgeModules.CommunityOfExpertise,
1975
+ method: HttpMethod6.GET,
1976
+ endpoint: endpoint.generate(),
1977
+ next: params.next
1978
+ });
1979
+ }
1980
+ static async findManyByParent(params) {
1981
+ const endpoint = new EndpointCreator6({
1982
+ endpoint: KnowledgeModules.CommunityOfExpertise,
1983
+ id: params.parentId,
1984
+ childEndpoint: KnowledgeModules.CommunityOfExpertise
1985
+ });
1986
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
1987
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
1988
+ if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)
1989
+ endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);
1990
+ if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)
1991
+ endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);
1992
+ return this.callApi({
1993
+ type: KnowledgeModules.CommunityOfExpertise,
1994
+ method: HttpMethod6.GET,
1995
+ endpoint: endpoint.generate(),
1996
+ next: params.next
1997
+ });
1998
+ }
1999
+ static async create(params) {
2000
+ return this.callApi({
2001
+ type: KnowledgeModules.CommunityOfExpertise,
2002
+ method: HttpMethod6.POST,
2003
+ endpoint: new EndpointCreator6({ endpoint: KnowledgeModules.CommunityOfExpertise }).generate(),
2004
+ input: params
2005
+ });
2006
+ }
2007
+ static async update(params) {
2008
+ return this.callApi({
2009
+ type: KnowledgeModules.CommunityOfExpertise,
2010
+ method: HttpMethod6.PUT,
2011
+ endpoint: new EndpointCreator6({ endpoint: KnowledgeModules.CommunityOfExpertise, id: params.id }).generate(),
2012
+ input: params
2013
+ });
2014
+ }
2015
+ static async patch(params) {
2016
+ return this.callApi({
2017
+ type: KnowledgeModules.CommunityOfExpertise,
2018
+ method: HttpMethod6.PATCH,
2019
+ endpoint: new EndpointCreator6({ endpoint: KnowledgeModules.CommunityOfExpertise, id: params.id }).generate(),
2020
+ input: params
2021
+ });
2022
+ }
2023
+ static async delete(params) {
2024
+ await this.callApi({
2025
+ type: KnowledgeModules.CommunityOfExpertise,
2026
+ method: HttpMethod6.DELETE,
2027
+ endpoint: new EndpointCreator6({
2028
+ endpoint: KnowledgeModules.CommunityOfExpertise,
2029
+ id: params.communityOfExpertiseId
2030
+ }).generate()
2031
+ });
2032
+ }
2033
+ /** `GET communities-of-expertise/directory` — every community, access filter off. */
2034
+ static async findDirectory(params = {}) {
2035
+ const endpoint = new EndpointCreator6({
2036
+ endpoint: KnowledgeModules.CommunityOfExpertise,
2037
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.directory
2038
+ });
2039
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
2040
+ return this.callApi({
2041
+ type: KnowledgeModules.CommunityOfExpertise,
2042
+ method: HttpMethod6.GET,
2043
+ endpoint: endpoint.generate()
2044
+ });
2045
+ }
2046
+ /** `POST communities-of-expertise/:id/access-requests`. */
2047
+ static async requestAccess(params) {
2048
+ await this.callApi({
2049
+ type: KnowledgeModules.CommunityOfExpertise,
2050
+ method: HttpMethod6.POST,
2051
+ endpoint: new EndpointCreator6({
2052
+ endpoint: KnowledgeModules.CommunityOfExpertise,
2053
+ id: params.id,
2054
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests
2055
+ }).generate()
2056
+ });
2057
+ }
2058
+ /** `DELETE communities-of-expertise/:id/access-requests/:userId`. */
2059
+ static async rejectAccess(params) {
2060
+ await this.callApi({
2061
+ type: KnowledgeModules.CommunityOfExpertise,
2062
+ method: HttpMethod6.DELETE,
2063
+ endpoint: new EndpointCreator6({
2064
+ endpoint: KnowledgeModules.CommunityOfExpertise,
2065
+ id: params.id,
2066
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests,
2067
+ childId: params.userId
2068
+ }).generate()
2069
+ });
2070
+ }
2071
+ /** `POST communities-of-expertise/:id/members/:userId` — approves a request, role `member`. */
2072
+ static async approveAccess(params) {
2073
+ await this.callApi({
2074
+ type: KnowledgeModules.CommunityOfExpertise,
2075
+ method: HttpMethod6.POST,
2076
+ endpoint: new EndpointCreator6({
2077
+ endpoint: KnowledgeModules.CommunityOfExpertise,
2078
+ id: params.id,
2079
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,
2080
+ childId: params.userId
2081
+ }).generate()
2082
+ });
2083
+ }
2084
+ /** `DELETE communities-of-expertise/:id/members/:userId`. */
2085
+ static async removeMember(params) {
2086
+ await this.callApi({
2087
+ type: KnowledgeModules.CommunityOfExpertise,
2088
+ method: HttpMethod6.DELETE,
2089
+ endpoint: new EndpointCreator6({
2090
+ endpoint: KnowledgeModules.CommunityOfExpertise,
2091
+ id: params.id,
2092
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,
2093
+ childId: params.userId
2094
+ }).generate()
2095
+ });
2096
+ }
2097
+ /**
2098
+ * `PATCH communities-of-expertise/:id/members/:userId/role`.
2099
+ *
2100
+ * `EndpointCreator` stops at `childId`, so the trailing verb rides on it —
2101
+ * the endpoint is still built from the module meta, never hardcoded.
2102
+ */
2103
+ static async updateMemberRole(params) {
2104
+ await this.callApi({
2105
+ type: KnowledgeModules.CommunityOfExpertise,
2106
+ method: HttpMethod6.PATCH,
2107
+ endpoint: new EndpointCreator6({
2108
+ endpoint: KnowledgeModules.CommunityOfExpertise,
2109
+ id: params.id,
2110
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,
2111
+ childId: `${params.userId}/${KNOWLEDGE_ENDPOINT_SEGMENTS.role}`
2112
+ }).generate(),
2113
+ input: new CommunityOfExpertise().createRoleJsonApi({ id: params.id, role: params.role }),
2114
+ overridesJsonApiCreation: true
2115
+ });
2116
+ }
2117
+ /** Adds a member and, when the role is not the default, sets it (C4 has no combined route). */
2118
+ static async addMember(params) {
2119
+ await this.approveAccess({ id: params.id, userId: params.userId });
2120
+ await this.updateMemberRole(params);
2121
+ }
2122
+ /** `POST communities-of-expertise/:id/managers/:userId`. */
2123
+ static async addManager(params) {
2124
+ await this.callApi({
2125
+ type: KnowledgeModules.CommunityOfExpertise,
2126
+ method: HttpMethod6.POST,
2127
+ endpoint: new EndpointCreator6({
2128
+ endpoint: KnowledgeModules.CommunityOfExpertise,
2129
+ id: params.id,
2130
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,
2131
+ childId: params.userId
2132
+ }).generate()
2133
+ });
2134
+ }
2135
+ /** `DELETE communities-of-expertise/:id/managers/:userId`. */
2136
+ static async removeManager(params) {
2137
+ await this.callApi({
2138
+ type: KnowledgeModules.CommunityOfExpertise,
2139
+ method: HttpMethod6.DELETE,
2140
+ endpoint: new EndpointCreator6({
2141
+ endpoint: KnowledgeModules.CommunityOfExpertise,
2142
+ id: params.id,
2143
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,
2144
+ childId: params.userId
2145
+ }).generate()
2146
+ });
2147
+ }
2148
+ /** `PATCH communities-of-expertise/:id/translations`. */
2149
+ static async patchTranslations(params) {
2150
+ return this.callApi({
2151
+ type: KnowledgeModules.CommunityOfExpertise,
2152
+ method: HttpMethod6.PATCH,
2153
+ endpoint: new EndpointCreator6({
2154
+ endpoint: KnowledgeModules.CommunityOfExpertise,
2155
+ id: params.id,
2156
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations
2157
+ }).generate(),
2158
+ input: new CommunityOfExpertise().createTranslationJsonApi(params),
2159
+ overridesJsonApiCreation: true
2160
+ });
2161
+ }
2162
+ };
2163
+
2164
+ // src/web/expertise/community-of-expertise/data/CommunityOfExpertiseFields.ts
2165
+ var CommunityOfExpertiseFields = /* @__PURE__ */ ((CommunityOfExpertiseFields2) => {
2166
+ CommunityOfExpertiseFields2["communityOfExpertiseId"] = "communityOfExpertiseId";
2167
+ CommunityOfExpertiseFields2["name"] = "name";
2168
+ CommunityOfExpertiseFields2["description"] = "description";
2169
+ CommunityOfExpertiseFields2["image"] = "image";
2170
+ CommunityOfExpertiseFields2["translation"] = "translation";
2171
+ CommunityOfExpertiseFields2["cluster"] = "cluster";
2172
+ CommunityOfExpertiseFields2["parent"] = "parent";
2173
+ CommunityOfExpertiseFields2["members"] = "members";
2174
+ CommunityOfExpertiseFields2["managers"] = "managers";
2175
+ CommunityOfExpertiseFields2["requesters"] = "requesters";
2176
+ CommunityOfExpertiseFields2["actions"] = "actions";
2177
+ CommunityOfExpertiseFields2["createdAt"] = "createdAt";
2178
+ CommunityOfExpertiseFields2["updatedAt"] = "updatedAt";
2179
+ return CommunityOfExpertiseFields2;
2180
+ })(CommunityOfExpertiseFields || {});
2181
+
2182
+ // src/web/expertise/taxonomy/data/Taxonomy.ts
2183
+ import { AbstractApiData as AbstractApiData6 } from "@carlonicora/nextjs-jsonapi/core";
2184
+ var Taxonomy = class extends AbstractApiData6 {
2185
+ static {
2186
+ __name(this, "Taxonomy");
2187
+ }
2188
+ _name;
2189
+ _description;
2190
+ _translation;
2191
+ _parent;
2192
+ _communityOfExpertise;
2193
+ get name() {
2194
+ return this._name ?? "";
2195
+ }
2196
+ get description() {
2197
+ return this._description ?? [];
2198
+ }
2199
+ get translation() {
2200
+ return this._translation;
2201
+ }
2202
+ get parent() {
2203
+ return this._parent;
2204
+ }
2205
+ get communityOfExpertise() {
2206
+ if (this._communityOfExpertise === void 0)
2207
+ throw new Error("JsonApi error: taxonomy communityOfExpertise is missing");
2208
+ return this._communityOfExpertise;
2209
+ }
2210
+ rehydrate(data) {
2211
+ super.rehydrate(data);
2212
+ this._name = data.jsonApi.attributes.name;
2213
+ this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);
2214
+ this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);
2215
+ this._parent = this._readIncluded(data, "parent", KnowledgeModules.Taxonomy);
2216
+ this._communityOfExpertise = this._readIncluded(
2217
+ data,
2218
+ "communityofexpertise",
2219
+ KnowledgeModules.CommunityOfExpertise
2220
+ );
2221
+ return this;
2222
+ }
2223
+ createJsonApi(data) {
2224
+ const response = {
2225
+ data: {
2226
+ type: KnowledgeModules.Taxonomy.name,
2227
+ id: data.id,
2228
+ attributes: {},
2229
+ meta: {},
2230
+ relationships: {}
2231
+ },
2232
+ included: []
2233
+ };
2234
+ if (data.name !== void 0) response.data.attributes.name = data.name;
2235
+ if (data.description !== void 0) response.data.attributes.description = JSON.stringify(data.description);
2236
+ if (data.translation !== void 0)
2237
+ response.data.attributes.translation = stringifyTranslationAttribute(data.translation);
2238
+ if (data.parentId) {
2239
+ response.data.relationships.parent = {
2240
+ data: {
2241
+ type: KnowledgeModules.Taxonomy.name,
2242
+ id: data.parentId
2243
+ }
2244
+ };
2245
+ }
2246
+ if (data.communityOfExpertiseId) {
2247
+ response.data.relationships.communityofexpertise = {
2248
+ data: {
2249
+ type: KnowledgeModules.CommunityOfExpertise.name,
2250
+ id: data.communityOfExpertiseId
2251
+ }
2252
+ };
2253
+ }
2254
+ return response;
2255
+ }
2256
+ /** `PATCH taxonomies/:id/translations` body. */
2257
+ createTranslationJsonApi(params) {
2258
+ return {
2259
+ data: {
2260
+ type: KnowledgeModules.Taxonomy.name,
2261
+ id: params.id,
2262
+ attributes: {
2263
+ language: params.language,
2264
+ fields: serialiseTranslationFields(params.fields)
2265
+ }
2266
+ }
2267
+ };
2268
+ }
2269
+ };
2270
+
2271
+ // src/web/expertise/taxonomy/data/TaxonomyService.ts
2272
+ import { AbstractService as AbstractService7, HttpMethod as HttpMethod7 } from "@carlonicora/nextjs-jsonapi/core";
2273
+ import { EndpointCreator as EndpointCreator7 } from "@carlonicora/nextjs-jsonapi/core";
2274
+ var TaxonomyService = class extends AbstractService7 {
2275
+ static {
2276
+ __name(this, "TaxonomyService");
2277
+ }
2278
+ static async findOne(params) {
2279
+ const endpoint = new EndpointCreator7({ endpoint: KnowledgeModules.Taxonomy, id: params.id });
2280
+ if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)
2281
+ endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);
2282
+ if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)
2283
+ endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);
2284
+ return this.callApi({
2285
+ type: KnowledgeModules.Taxonomy,
2286
+ method: HttpMethod7.GET,
2287
+ endpoint: endpoint.generate()
2288
+ });
2289
+ }
2290
+ static async findMany(params) {
2291
+ const endpoint = new EndpointCreator7({ endpoint: KnowledgeModules.Taxonomy });
2292
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
2293
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
2294
+ if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)
2295
+ endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);
2296
+ if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)
2297
+ endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);
2298
+ return this.callApi({
2299
+ type: KnowledgeModules.Taxonomy,
2300
+ method: HttpMethod7.GET,
2301
+ endpoint: endpoint.generate(),
2302
+ next: params.next
2303
+ });
2304
+ }
2305
+ static async findManyByParent(params) {
2306
+ const endpoint = new EndpointCreator7({
2307
+ endpoint: KnowledgeModules.Taxonomy,
2308
+ id: params.parentId,
2309
+ childEndpoint: KnowledgeModules.Taxonomy
2310
+ });
2311
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
2312
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
2313
+ if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)
2314
+ endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);
2315
+ if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)
2316
+ endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);
2317
+ return this.callApi({
2318
+ type: KnowledgeModules.Taxonomy,
2319
+ method: HttpMethod7.GET,
2320
+ endpoint: endpoint.generate(),
2321
+ next: params.next
2322
+ });
2323
+ }
2324
+ static async findManyByCommunityOfExpertise(params) {
2325
+ const endpoint = new EndpointCreator7({
2326
+ endpoint: KnowledgeModules.CommunityOfExpertise,
2327
+ id: params.communityOfExpertiseId,
2328
+ childEndpoint: KnowledgeModules.Taxonomy
2329
+ });
2330
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
2331
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
2332
+ if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)
2333
+ endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);
2334
+ if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)
2335
+ endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);
2336
+ return this.callApi({
2337
+ type: KnowledgeModules.Taxonomy,
2338
+ method: HttpMethod7.GET,
2339
+ endpoint: endpoint.generate(),
2340
+ next: params.next
2341
+ });
2342
+ }
2343
+ static async create(params) {
2344
+ return this.callApi({
2345
+ type: KnowledgeModules.Taxonomy,
2346
+ method: HttpMethod7.POST,
2347
+ endpoint: new EndpointCreator7({ endpoint: KnowledgeModules.Taxonomy }).generate(),
2348
+ input: params
2349
+ });
2350
+ }
2351
+ static async update(params) {
2352
+ return this.callApi({
2353
+ type: KnowledgeModules.Taxonomy,
2354
+ method: HttpMethod7.PUT,
2355
+ endpoint: new EndpointCreator7({ endpoint: KnowledgeModules.Taxonomy, id: params.id }).generate(),
2356
+ input: params
2357
+ });
2358
+ }
2359
+ static async patch(params) {
2360
+ return this.callApi({
2361
+ type: KnowledgeModules.Taxonomy,
2362
+ method: HttpMethod7.PATCH,
2363
+ endpoint: new EndpointCreator7({ endpoint: KnowledgeModules.Taxonomy, id: params.id }).generate(),
2364
+ input: params
2365
+ });
2366
+ }
2367
+ static async delete(params) {
2368
+ await this.callApi({
2369
+ type: KnowledgeModules.Taxonomy,
2370
+ method: HttpMethod7.DELETE,
2371
+ endpoint: new EndpointCreator7({ endpoint: KnowledgeModules.Taxonomy, id: params.taxonomyId }).generate()
2372
+ });
2373
+ }
2374
+ /** `PATCH taxonomies/:id/translations`. */
2375
+ static async patchTranslations(params) {
2376
+ return this.callApi({
2377
+ type: KnowledgeModules.Taxonomy,
2378
+ method: HttpMethod7.PATCH,
2379
+ endpoint: new EndpointCreator7({
2380
+ endpoint: KnowledgeModules.Taxonomy,
2381
+ id: params.id,
2382
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations
2383
+ }).generate(),
2384
+ input: new Taxonomy().createTranslationJsonApi(params),
2385
+ overridesJsonApiCreation: true
2386
+ });
2387
+ }
2388
+ };
2389
+
2390
+ // src/web/expertise/taxonomy/data/TaxonomyFields.ts
2391
+ var TaxonomyFields = /* @__PURE__ */ ((TaxonomyFields2) => {
2392
+ TaxonomyFields2["taxonomyId"] = "taxonomyId";
2393
+ TaxonomyFields2["name"] = "name";
2394
+ TaxonomyFields2["description"] = "description";
2395
+ TaxonomyFields2["translation"] = "translation";
2396
+ TaxonomyFields2["parent"] = "parent";
2397
+ TaxonomyFields2["communityOfExpertise"] = "communityOfExpertise";
2398
+ TaxonomyFields2["createdAt"] = "createdAt";
2399
+ TaxonomyFields2["updatedAt"] = "updatedAt";
2400
+ return TaxonomyFields2;
2401
+ })(TaxonomyFields || {});
2402
+
2403
+ // src/web/expertise/skill/data/Skill.ts
2404
+ import { AbstractApiData as AbstractApiData7, Modules as Modules11 } from "@carlonicora/nextjs-jsonapi/core";
2405
+ var Skill = class extends AbstractApiData7 {
2406
+ static {
2407
+ __name(this, "Skill");
2408
+ }
2409
+ _name;
2410
+ _description;
2411
+ _image;
2412
+ _translation;
2413
+ _taxonomies;
2414
+ _users;
2415
+ get name() {
2416
+ return this._name ?? "";
2417
+ }
2418
+ get description() {
2419
+ return this._description ?? [];
2420
+ }
2421
+ get image() {
2422
+ return this._image ?? "";
2423
+ }
2424
+ get translation() {
2425
+ return this._translation;
2426
+ }
2427
+ get taxonomies() {
2428
+ return this._taxonomies ?? [];
2429
+ }
2430
+ get users() {
2431
+ return this._users ?? [];
2432
+ }
2433
+ rehydrate(data) {
2434
+ super.rehydrate(data);
2435
+ this._name = data.jsonApi.attributes.name;
2436
+ this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);
2437
+ this._image = data.jsonApi.attributes.image;
2438
+ this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);
2439
+ this._taxonomies = this._readIncluded(data, "taxonomies", KnowledgeModules.Taxonomy);
2440
+ this._users = this._readIncludedWithMeta(
2441
+ data,
2442
+ "users",
2443
+ Modules11.User
2444
+ );
2445
+ return this;
2446
+ }
2447
+ createJsonApi(data) {
2448
+ const response = {
2449
+ data: {
2450
+ type: KnowledgeModules.ExpertiseSkill.name,
2451
+ id: data.id,
2452
+ attributes: {},
2453
+ meta: {},
2454
+ relationships: {}
2455
+ },
2456
+ included: []
2457
+ };
2458
+ if (data.name !== void 0) response.data.attributes.name = data.name;
2459
+ if (data.description !== void 0) response.data.attributes.description = JSON.stringify(data.description);
2460
+ if (data.image !== void 0) response.data.attributes.image = data.image;
2461
+ if (data.translation !== void 0)
2462
+ response.data.attributes.translation = stringifyTranslationAttribute(data.translation);
2463
+ if (data.taxonomyIds && data.taxonomyIds.length > 0) {
2464
+ response.data.relationships.taxonomies = {
2465
+ data: data.taxonomyIds.map((id) => ({
2466
+ type: KnowledgeModules.Taxonomy.name,
2467
+ id
2468
+ }))
2469
+ };
2470
+ }
2471
+ if (data.userIds && data.userIds.length > 0) {
2472
+ response.data.relationships.users = {
2473
+ data: data.userIds.map((id) => ({
2474
+ type: Modules11.User.name,
2475
+ id
2476
+ }))
2477
+ };
2478
+ }
2479
+ return response;
2480
+ }
2481
+ /** `PATCH expertise-skills/:id/translations` body. */
2482
+ createTranslationJsonApi(params) {
2483
+ return {
2484
+ data: {
2485
+ type: KnowledgeModules.ExpertiseSkill.name,
2486
+ id: params.id,
2487
+ attributes: {
2488
+ language: params.language,
2489
+ fields: serialiseTranslationFields(params.fields)
2490
+ }
2491
+ }
2492
+ };
2493
+ }
2494
+ /** `POST expertise-skills/:id/users/:userId` body — the proficiency rides on the edge. */
2495
+ createClaimJsonApi(params) {
2496
+ return {
2497
+ data: {
2498
+ type: Modules11.User.name,
2499
+ id: params.userId,
2500
+ meta: {
2501
+ proficiency: params.proficiency
2502
+ }
2503
+ }
2504
+ };
2505
+ }
2506
+ /** `PATCH expertise-skills/:id/users/:userId/proficiency` body. */
2507
+ createProficiencyJsonApi(params) {
2508
+ return {
2509
+ data: {
2510
+ type: KnowledgeModules.ExpertiseSkill.name,
2511
+ id: params.id,
2512
+ attributes: {
2513
+ proficiency: params.proficiency
2514
+ }
2515
+ }
2516
+ };
2517
+ }
2518
+ };
2519
+
2520
+ // src/web/expertise/skill/data/SkillService.ts
2521
+ import { AbstractService as AbstractService8, HttpMethod as HttpMethod8 } from "@carlonicora/nextjs-jsonapi/core";
2522
+ import { EndpointCreator as EndpointCreator8 } from "@carlonicora/nextjs-jsonapi/core";
2523
+ import { Modules as Modules12 } from "@carlonicora/nextjs-jsonapi/core";
2524
+ var SkillService = class extends AbstractService8 {
2525
+ static {
2526
+ __name(this, "SkillService");
2527
+ }
2528
+ static async findOne(params) {
2529
+ const endpoint = new EndpointCreator8({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.id });
2530
+ if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)
2531
+ endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);
2532
+ if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)
2533
+ endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);
2534
+ return this.callApi({
2535
+ type: KnowledgeModules.ExpertiseSkill,
2536
+ method: HttpMethod8.GET,
2537
+ endpoint: endpoint.generate()
2538
+ });
2539
+ }
2540
+ static async findMany(params) {
2541
+ const endpoint = new EndpointCreator8({ endpoint: KnowledgeModules.ExpertiseSkill });
2542
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
2543
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
2544
+ if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)
2545
+ endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);
2546
+ if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)
2547
+ endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);
2548
+ return this.callApi({
2549
+ type: KnowledgeModules.ExpertiseSkill,
2550
+ method: HttpMethod8.GET,
2551
+ endpoint: endpoint.generate(),
2552
+ next: params.next
2553
+ });
2554
+ }
2555
+ static async findManyByTaxonomy(params) {
2556
+ const endpoint = new EndpointCreator8({
2557
+ endpoint: KnowledgeModules.Taxonomy,
2558
+ id: params.taxonomyId,
2559
+ childEndpoint: KnowledgeModules.ExpertiseSkill
2560
+ });
2561
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
2562
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
2563
+ if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)
2564
+ endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);
2565
+ if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)
2566
+ endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);
2567
+ return this.callApi({
2568
+ type: KnowledgeModules.ExpertiseSkill,
2569
+ method: HttpMethod8.GET,
2570
+ endpoint: endpoint.generate(),
2571
+ next: params.next
2572
+ });
2573
+ }
2574
+ static async findManyByUser(params) {
2575
+ const endpoint = new EndpointCreator8({
2576
+ endpoint: Modules12.User,
2577
+ id: params.userId,
2578
+ childEndpoint: KnowledgeModules.ExpertiseSkill
2579
+ });
2580
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
2581
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
2582
+ if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)
2583
+ endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);
2584
+ if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)
2585
+ endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);
2586
+ return this.callApi({
2587
+ type: KnowledgeModules.ExpertiseSkill,
2588
+ method: HttpMethod8.GET,
2589
+ endpoint: endpoint.generate(),
2590
+ next: params.next
2591
+ });
2592
+ }
2593
+ static async create(params) {
2594
+ return this.callApi({
2595
+ type: KnowledgeModules.ExpertiseSkill,
2596
+ method: HttpMethod8.POST,
2597
+ endpoint: new EndpointCreator8({ endpoint: KnowledgeModules.ExpertiseSkill }).generate(),
2598
+ input: params
2599
+ });
2600
+ }
2601
+ static async update(params) {
2602
+ return this.callApi({
2603
+ type: KnowledgeModules.ExpertiseSkill,
2604
+ method: HttpMethod8.PUT,
2605
+ endpoint: new EndpointCreator8({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.id }).generate(),
2606
+ input: params
2607
+ });
2608
+ }
2609
+ static async patch(params) {
2610
+ return this.callApi({
2611
+ type: KnowledgeModules.ExpertiseSkill,
2612
+ method: HttpMethod8.PATCH,
2613
+ endpoint: new EndpointCreator8({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.id }).generate(),
2614
+ input: params
2615
+ });
2616
+ }
2617
+ static async delete(params) {
2618
+ await this.callApi({
2619
+ type: KnowledgeModules.ExpertiseSkill,
2620
+ method: HttpMethod8.DELETE,
2621
+ endpoint: new EndpointCreator8({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.skillId }).generate()
2622
+ });
2623
+ }
2624
+ /** `POST expertise-skills/:id/users/:userId` — claims the skill at a proficiency. */
2625
+ static async claim(params) {
2626
+ await this.callApi({
2627
+ type: Modules12.User,
2628
+ method: HttpMethod8.POST,
2629
+ endpoint: new EndpointCreator8({
2630
+ endpoint: KnowledgeModules.ExpertiseSkill,
2631
+ id: params.skillId,
2632
+ childEndpoint: Modules12.User,
2633
+ childId: params.userId
2634
+ }).generate(),
2635
+ input: new Skill().createClaimJsonApi({ userId: params.userId, proficiency: params.proficiency }),
2636
+ overridesJsonApiCreation: true,
2637
+ responseType: KnowledgeModules.ExpertiseSkill
2638
+ });
2639
+ }
2640
+ /** `DELETE expertise-skills/:id/users/:userId`. */
2641
+ static async removeUser(params) {
2642
+ await this.callApi({
2643
+ type: KnowledgeModules.ExpertiseSkill,
2644
+ method: HttpMethod8.DELETE,
2645
+ endpoint: new EndpointCreator8({
2646
+ endpoint: KnowledgeModules.ExpertiseSkill,
2647
+ id: params.skillId,
2648
+ childEndpoint: Modules12.User,
2649
+ childId: params.userId
2650
+ }).generate()
2651
+ });
2652
+ }
2653
+ /**
2654
+ * `PATCH expertise-skills/:id/users/:userId/proficiency`.
2655
+ *
2656
+ * `EndpointCreator` stops at `childId`, so the trailing verb rides on it —
2657
+ * the endpoint is still built from the module meta, never hardcoded.
2658
+ */
2659
+ static async updateProficiency(params) {
2660
+ await this.callApi({
2661
+ type: KnowledgeModules.ExpertiseSkill,
2662
+ method: HttpMethod8.PATCH,
2663
+ endpoint: new EndpointCreator8({
2664
+ endpoint: KnowledgeModules.ExpertiseSkill,
2665
+ id: params.skillId,
2666
+ childEndpoint: Modules12.User,
2667
+ childId: `${params.userId}/proficiency`
2668
+ }).generate(),
2669
+ input: new Skill().createProficiencyJsonApi({ id: params.skillId, proficiency: params.proficiency }),
2670
+ overridesJsonApiCreation: true
2671
+ });
2672
+ }
2673
+ /** `PATCH expertise-skills/:id/translations`. */
2674
+ static async patchTranslations(params) {
2675
+ return this.callApi({
2676
+ type: KnowledgeModules.ExpertiseSkill,
2677
+ method: HttpMethod8.PATCH,
2678
+ endpoint: new EndpointCreator8({
2679
+ endpoint: KnowledgeModules.ExpertiseSkill,
2680
+ id: params.id,
2681
+ childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations
2682
+ }).generate(),
2683
+ input: new Skill().createTranslationJsonApi(params),
2684
+ overridesJsonApiCreation: true
2685
+ });
2686
+ }
2687
+ };
2688
+
2689
+ // src/web/expertise/skill/data/SkillFields.ts
2690
+ var SkillFields = /* @__PURE__ */ ((SkillFields2) => {
2691
+ SkillFields2["skillId"] = "skillId";
2692
+ SkillFields2["name"] = "name";
2693
+ SkillFields2["description"] = "description";
2694
+ SkillFields2["image"] = "image";
2695
+ SkillFields2["translation"] = "translation";
2696
+ SkillFields2["taxonomies"] = "taxonomies";
2697
+ SkillFields2["users"] = "users";
2698
+ SkillFields2["createdAt"] = "createdAt";
2699
+ SkillFields2["updatedAt"] = "updatedAt";
2700
+ return SkillFields2;
2701
+ })(SkillFields || {});
2702
+
2703
+ // src/web/expertise/access-request/data/AccessRequestInterface.ts
2704
+ var AccessRequestTarget = {
2705
+ cluster: "Cluster",
2706
+ communityOfExpertise: "CommunityOfExpertise"
2707
+ };
2708
+
2709
+ // src/web/expertise/access-request/data/AccessRequestService.ts
2710
+ import { AbstractService as AbstractService9, EndpointCreator as EndpointCreator9, HttpMethod as HttpMethod9 } from "@carlonicora/nextjs-jsonapi/core";
2711
+ var AccessRequestService = class extends AbstractService9 {
2712
+ static {
2713
+ __name(this, "AccessRequestService");
2714
+ }
2715
+ /** `GET access-requests` — every pending request on a cluster or community the user manages. */
2716
+ static async findMany(params = {}) {
2717
+ const endpoint = new EndpointCreator9({ endpoint: KnowledgeModules.AccessRequest });
2718
+ if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
2719
+ if (params.search) endpoint.addAdditionalParam("search", params.search);
2720
+ return this.callApi({
2721
+ type: KnowledgeModules.AccessRequest,
2722
+ method: HttpMethod9.GET,
2723
+ endpoint: endpoint.generate(),
2724
+ next: params.next
2725
+ });
2726
+ }
2727
+ };
2728
+
2729
+ // src/web/common/i18n/translationResolver.ts
2730
+ function resolveField(params) {
2731
+ const v = params.language ? params.translation?.[params.language]?.[params.field] : void 0;
2732
+ return v === void 0 || v === null || v === "" ? params.original : v;
2733
+ }
2734
+ __name(resolveField, "resolveField");
2735
+ function resolveScalar(params) {
2736
+ const v = params.language ? params.translation?.[params.language] : void 0;
2737
+ return v ? v : params.original;
2738
+ }
2739
+ __name(resolveScalar, "resolveScalar");
2740
+
2741
+ // src/shared/knowledge.queues.ts
2742
+ var KNOWLEDGE_CHUNK_QUEUE_ID = "chunk";
2743
+ var KNOWLEDGE_QUEUE_IDS = { DOCUMENT: "document", ARTICLE: "article", DISCUSSION: "discussion" };
2744
+ var KNOWLEDGE_JOB_NAMES = {
2745
+ process: {
2746
+ chunk: "process_chunk",
2747
+ document: "process_document",
2748
+ article: "process_article",
2749
+ discussion: "process_discussion"
2750
+ }
2751
+ };
2752
+ var KNOWLEDGE_CONTENT_TYPES = ["Article", "Discussion", "Document", "DiscussionReply"];
2753
+
2754
+ // src/shared/knowledge.s3.folders.ts
2755
+ var KNOWLEDGE_S3_FOLDERS = {
2756
+ documents: "documents",
2757
+ communitiesOfExpertise: "communities-of-expertise"
2758
+ };
2759
+
2760
+ // src/shared/content-language.ts
2761
+ var ContentLanguage = { ar: "ar", en: "en", es: "es", fr: "fr", pt: "pt", ru: "ru" };
2762
+
2763
+ // src/shared/content-status.ts
2764
+ var ContentStatus = { cluster: "cluster", proposed: "proposed", knowledge: "knowledge" };
2765
+
2766
+ // src/shared/skill-level.ts
2767
+ var SkillLevel = {
2768
+ aware: "aware",
2769
+ skilled: "skilled",
2770
+ expert: "expert",
2771
+ master: "master"
2772
+ };
2773
+
2774
+ // src/shared/role-in-community.ts
2775
+ var RoleInCommunity = {
2776
+ sponsor: "sponsor",
2777
+ leader: "leader",
2778
+ coreMember: "core_member",
2779
+ expert: "expert",
2780
+ member: "member"
2781
+ };
2782
+ function isAdminRole(role) {
2783
+ return role === RoleInCommunity.leader || role === RoleInCommunity.sponsor;
2784
+ }
2785
+ __name(isAdminRole, "isAdminRole");
2786
+
2787
+ // src/shared/schemas/graph-creation-event.schema.ts
2788
+ import { z } from "zod";
2789
+ var AiStatusSchema = z.enum(["pending", "in_progress", "summarising", "completed", "failed"]);
2790
+ var GraphCreationTypeSchema = z.enum(["document", "article", "discussion"]);
2791
+ var GraphCreationEventSchema = z.object({
2792
+ type: GraphCreationTypeSchema,
2793
+ id: z.string(),
2794
+ aiStatus: AiStatusSchema,
2795
+ completed: z.number().optional(),
2796
+ total: z.number().optional()
2797
+ });
2798
+ function parseGraphCreationEvent(data) {
2799
+ return GraphCreationEventSchema.parse(data);
2800
+ }
2801
+ __name(parseGraphCreationEvent, "parseGraphCreationEvent");
2802
+ function safeParseGraphCreationEvent(data) {
2803
+ return GraphCreationEventSchema.safeParse(data);
2804
+ }
2805
+ __name(safeParseGraphCreationEvent, "safeParseGraphCreationEvent");
2806
+ function isGraphCreationEvent(value) {
2807
+ return GraphCreationEventSchema.safeParse(value).success;
2808
+ }
2809
+ __name(isGraphCreationEvent, "isGraphCreationEvent");
2810
+
2811
+ export {
2812
+ __name,
2813
+ parseBlockNoteAttribute,
2814
+ parseObjectAttribute,
2815
+ BLOCK_NOTE_TRANSLATION_FIELDS,
2816
+ parseTranslationAttribute,
2817
+ parseBlockNoteTranslationAttribute,
2818
+ serialiseTranslationFields,
2819
+ stringifyTranslationAttribute,
2820
+ stringifyBlockNoteTranslationAttribute,
2821
+ parseTranslationMap,
2822
+ stringifyTranslationMap,
2823
+ resolveBlockNoteTranslation,
2824
+ KnowledgeModules,
2825
+ Article,
2826
+ KNOWLEDGE_ENDPOINT_SEGMENTS,
2827
+ ArticleService,
2828
+ ArticleFields,
2829
+ KNOWLEDGE_MODULE_IDS,
2830
+ Discussion,
2831
+ DiscussionService,
2832
+ DiscussionFields,
2833
+ DiscussionReplyService,
2834
+ DiscussionReplyFields,
2835
+ Document,
2836
+ DocumentService,
2837
+ DocumentFields,
2838
+ Cluster,
2839
+ ClusterService,
2840
+ ClusterFields,
2841
+ CommunityOfExpertise,
2842
+ CommunityOfExpertiseService,
2843
+ CommunityOfExpertiseFields,
2844
+ Taxonomy,
2845
+ TaxonomyService,
2846
+ TaxonomyFields,
2847
+ Skill,
2848
+ SkillService,
2849
+ SkillFields,
2850
+ AccessRequestTarget,
2851
+ AccessRequestService,
2852
+ resolveField,
2853
+ resolveScalar,
2854
+ KNOWLEDGE_CHUNK_QUEUE_ID,
2855
+ KNOWLEDGE_QUEUE_IDS,
2856
+ KNOWLEDGE_JOB_NAMES,
2857
+ KNOWLEDGE_CONTENT_TYPES,
2858
+ KNOWLEDGE_S3_FOLDERS,
2859
+ ContentLanguage,
2860
+ ContentStatus,
2861
+ SkillLevel,
2862
+ RoleInCommunity,
2863
+ isAdminRole,
2864
+ AiStatusSchema,
2865
+ GraphCreationTypeSchema,
2866
+ GraphCreationEventSchema,
2867
+ parseGraphCreationEvent,
2868
+ safeParseGraphCreationEvent,
2869
+ isGraphCreationEvent
2870
+ };
2871
+ //# sourceMappingURL=chunk-EXUPVXK4.mjs.map