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