@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.
- package/LICENSE +675 -0
- package/README.md +609 -1
- package/dist/api/common/blocknote.text.d.ts +10 -0
- package/dist/api/common/blocknote.text.d.ts.map +1 -0
- package/dist/api/common/blocknote.text.js +28 -0
- package/dist/api/common/blocknote.text.js.map +1 -0
- package/dist/api/common/content.workflow.d.ts +3 -0
- package/dist/api/common/content.workflow.d.ts.map +1 -0
- package/dist/api/common/content.workflow.js +16 -0
- package/dist/api/common/content.workflow.js.map +1 -0
- package/dist/api/common/decorate.d.ts +22 -0
- package/dist/api/common/decorate.d.ts.map +1 -0
- package/dist/api/common/decorate.js +35 -0
- package/dist/api/common/decorate.js.map +1 -0
- package/dist/api/common/translation-patch.dto.d.ts +17 -0
- package/dist/api/common/translation-patch.dto.d.ts.map +1 -0
- package/dist/api/common/translation-patch.dto.js +53 -0
- package/dist/api/common/translation-patch.dto.js.map +1 -0
- package/dist/api/common/translation.merge.d.ts +24 -0
- package/dist/api/common/translation.merge.d.ts.map +1 -0
- package/dist/api/common/translation.merge.js +37 -0
- package/dist/api/common/translation.merge.js.map +1 -0
- package/dist/api/config/knowledge.config.d.ts +12 -0
- package/dist/api/config/knowledge.config.d.ts.map +1 -0
- package/dist/api/config/knowledge.config.js +3 -0
- package/dist/api/config/knowledge.config.js.map +1 -0
- package/dist/api/content/article/article.module.d.ts +8 -0
- package/dist/api/content/article/article.module.d.ts.map +1 -0
- package/dist/api/content/article/article.module.js +53 -0
- package/dist/api/content/article/article.module.js.map +1 -0
- package/dist/api/content/article/controllers/article.controller.d.ts +36 -0
- package/dist/api/content/article/controllers/article.controller.d.ts.map +1 -0
- package/dist/api/content/article/controllers/article.controller.js +425 -0
- package/dist/api/content/article/controllers/article.controller.js.map +1 -0
- package/dist/api/content/article/controllers/article.routes.fixture.d.ts +10 -0
- package/dist/api/content/article/controllers/article.routes.fixture.d.ts.map +1 -0
- package/dist/api/content/article/controllers/article.routes.fixture.js +35 -0
- package/dist/api/content/article/controllers/article.routes.fixture.js.map +1 -0
- package/dist/api/content/article/dtos/article.dto.d.ts +11 -0
- package/dist/api/content/article/dtos/article.dto.d.ts.map +1 -0
- package/dist/api/content/article/dtos/article.dto.js +45 -0
- package/dist/api/content/article/dtos/article.dto.js.map +1 -0
- package/dist/api/content/article/dtos/article.post.dto.d.ts +29 -0
- package/dist/api/content/article/dtos/article.post.dto.d.ts.map +1 -0
- package/dist/api/content/article/dtos/article.post.dto.js +124 -0
- package/dist/api/content/article/dtos/article.post.dto.js.map +1 -0
- package/dist/api/content/article/dtos/article.put.dto.d.ts +29 -0
- package/dist/api/content/article/dtos/article.put.dto.d.ts.map +1 -0
- package/dist/api/content/article/dtos/article.put.dto.js +124 -0
- package/dist/api/content/article/dtos/article.put.dto.js.map +1 -0
- package/dist/api/content/article/dtos/article.relationship.dto.d.ts +69 -0
- package/dist/api/content/article/dtos/article.relationship.dto.d.ts.map +1 -0
- package/dist/api/content/article/dtos/article.relationship.dto.js +141 -0
- package/dist/api/content/article/dtos/article.relationship.dto.js.map +1 -0
- package/dist/api/content/article/entities/article.d.ts +67 -0
- package/dist/api/content/article/entities/article.d.ts.map +1 -0
- package/dist/api/content/article/entities/article.js +74 -0
- package/dist/api/content/article/entities/article.js.map +1 -0
- package/dist/api/content/article/entities/article.meta.d.ts +5 -0
- package/dist/api/content/article/entities/article.meta.d.ts.map +1 -0
- package/dist/api/content/article/entities/article.meta.js +13 -0
- package/dist/api/content/article/entities/article.meta.js.map +1 -0
- package/dist/api/content/article/processors/article.processor.d.ts +43 -0
- package/dist/api/content/article/processors/article.processor.d.ts.map +1 -0
- package/dist/api/content/article/processors/article.processor.js +139 -0
- package/dist/api/content/article/processors/article.processor.js.map +1 -0
- package/dist/api/content/article/repositories/article.repository.d.ts +118 -0
- package/dist/api/content/article/repositories/article.repository.d.ts.map +1 -0
- package/dist/api/content/article/repositories/article.repository.js +215 -0
- package/dist/api/content/article/repositories/article.repository.js.map +1 -0
- package/dist/api/content/article/services/article.service.d.ts +145 -0
- package/dist/api/content/article/services/article.service.d.ts.map +1 -0
- package/dist/api/content/article/services/article.service.js +263 -0
- package/dist/api/content/article/services/article.service.js.map +1 -0
- package/dist/api/content/content-extension/content-access-predicates.d.ts +10 -0
- package/dist/api/content/content-extension/content-access-predicates.d.ts.map +1 -0
- package/dist/api/content/content-extension/content-access-predicates.js +19 -0
- package/dist/api/content/content-extension/content-access-predicates.js.map +1 -0
- package/dist/api/content/content-extension/content-extension.module.d.ts +9 -0
- package/dist/api/content/content-extension/content-extension.module.d.ts.map +1 -0
- package/dist/api/content/content-extension/content-extension.module.js +28 -0
- package/dist/api/content/content-extension/content-extension.module.js.map +1 -0
- package/dist/api/content/content-extension/controllers/content-extension.controller.d.ts +12 -0
- package/dist/api/content/content-extension/controllers/content-extension.controller.d.ts.map +1 -0
- package/dist/api/content/content-extension/controllers/content-extension.controller.js +76 -0
- package/dist/api/content/content-extension/controllers/content-extension.controller.js.map +1 -0
- package/dist/api/content/content-extension/controllers/content-extension.routes.fixture.d.ts +10 -0
- package/dist/api/content/content-extension/controllers/content-extension.routes.fixture.d.ts.map +1 -0
- package/dist/api/content/content-extension/controllers/content-extension.routes.fixture.js +13 -0
- package/dist/api/content/content-extension/controllers/content-extension.routes.fixture.js.map +1 -0
- package/dist/api/content/content-extension/repositories/content-extension.repository.d.ts +47 -0
- package/dist/api/content/content-extension/repositories/content-extension.repository.d.ts.map +1 -0
- package/dist/api/content/content-extension/repositories/content-extension.repository.js +124 -0
- package/dist/api/content/content-extension/repositories/content-extension.repository.js.map +1 -0
- package/dist/api/content/content-extension/services/content-extension.service.d.ts +25 -0
- package/dist/api/content/content-extension/services/content-extension.service.d.ts.map +1 -0
- package/dist/api/content/content-extension/services/content-extension.service.js +62 -0
- package/dist/api/content/content-extension/services/content-extension.service.js.map +1 -0
- package/dist/api/content/discussion/controllers/discussion.controller.d.ts +34 -0
- package/dist/api/content/discussion/controllers/discussion.controller.d.ts.map +1 -0
- package/dist/api/content/discussion/controllers/discussion.controller.js +389 -0
- package/dist/api/content/discussion/controllers/discussion.controller.js.map +1 -0
- package/dist/api/content/discussion/controllers/discussion.routes.fixture.d.ts +10 -0
- package/dist/api/content/discussion/controllers/discussion.routes.fixture.d.ts.map +1 -0
- package/dist/api/content/discussion/controllers/discussion.routes.fixture.js +33 -0
- package/dist/api/content/discussion/controllers/discussion.routes.fixture.js.map +1 -0
- package/dist/api/content/discussion/discussion.module.d.ts +8 -0
- package/dist/api/content/discussion/discussion.module.d.ts.map +1 -0
- package/dist/api/content/discussion/discussion.module.js +55 -0
- package/dist/api/content/discussion/discussion.module.js.map +1 -0
- package/dist/api/content/discussion/dtos/discussion.dto.d.ts +11 -0
- package/dist/api/content/discussion/dtos/discussion.dto.d.ts.map +1 -0
- package/dist/api/content/discussion/dtos/discussion.dto.js +45 -0
- package/dist/api/content/discussion/dtos/discussion.dto.js.map +1 -0
- package/dist/api/content/discussion/dtos/discussion.post.dto.d.ts +29 -0
- package/dist/api/content/discussion/dtos/discussion.post.dto.d.ts.map +1 -0
- package/dist/api/content/discussion/dtos/discussion.post.dto.js +124 -0
- package/dist/api/content/discussion/dtos/discussion.post.dto.js.map +1 -0
- package/dist/api/content/discussion/dtos/discussion.put.dto.d.ts +29 -0
- package/dist/api/content/discussion/dtos/discussion.put.dto.d.ts.map +1 -0
- package/dist/api/content/discussion/dtos/discussion.put.dto.js +124 -0
- package/dist/api/content/discussion/dtos/discussion.put.dto.js.map +1 -0
- package/dist/api/content/discussion/dtos/discussion.relationship.dto.d.ts +35 -0
- package/dist/api/content/discussion/dtos/discussion.relationship.dto.d.ts.map +1 -0
- package/dist/api/content/discussion/dtos/discussion.relationship.dto.js +78 -0
- package/dist/api/content/discussion/dtos/discussion.relationship.dto.js.map +1 -0
- package/dist/api/content/discussion/entities/discussion.d.ts +68 -0
- package/dist/api/content/discussion/entities/discussion.d.ts.map +1 -0
- package/dist/api/content/discussion/entities/discussion.js +75 -0
- package/dist/api/content/discussion/entities/discussion.js.map +1 -0
- package/dist/api/content/discussion/entities/discussion.meta.d.ts +3 -0
- package/dist/api/content/discussion/entities/discussion.meta.d.ts.map +1 -0
- package/dist/api/content/discussion/entities/discussion.meta.js +10 -0
- package/dist/api/content/discussion/entities/discussion.meta.js.map +1 -0
- package/dist/api/content/discussion/processors/discussion.processor.d.ts +43 -0
- package/dist/api/content/discussion/processors/discussion.processor.d.ts.map +1 -0
- package/dist/api/content/discussion/processors/discussion.processor.js +139 -0
- package/dist/api/content/discussion/processors/discussion.processor.js.map +1 -0
- package/dist/api/content/discussion/repositories/discussion.repository.d.ts +136 -0
- package/dist/api/content/discussion/repositories/discussion.repository.d.ts.map +1 -0
- package/dist/api/content/discussion/repositories/discussion.repository.js +261 -0
- package/dist/api/content/discussion/repositories/discussion.repository.js.map +1 -0
- package/dist/api/content/discussion/services/discussion.service.d.ts +162 -0
- package/dist/api/content/discussion/services/discussion.service.d.ts.map +1 -0
- package/dist/api/content/discussion/services/discussion.service.js +319 -0
- package/dist/api/content/discussion/services/discussion.service.js.map +1 -0
- package/dist/api/content/discussion-reply/controllers/discussion-reply.controller.d.ts +19 -0
- package/dist/api/content/discussion-reply/controllers/discussion-reply.controller.d.ts.map +1 -0
- package/dist/api/content/discussion-reply/controllers/discussion-reply.controller.js +144 -0
- package/dist/api/content/discussion-reply/controllers/discussion-reply.controller.js.map +1 -0
- package/dist/api/content/discussion-reply/controllers/discussion-reply.routes.fixture.d.ts +10 -0
- package/dist/api/content/discussion-reply/controllers/discussion-reply.routes.fixture.d.ts.map +1 -0
- package/dist/api/content/discussion-reply/controllers/discussion-reply.routes.fixture.js +17 -0
- package/dist/api/content/discussion-reply/controllers/discussion-reply.routes.fixture.js.map +1 -0
- package/dist/api/content/discussion-reply/discussion-reply.module.d.ts +8 -0
- package/dist/api/content/discussion-reply/discussion-reply.module.d.ts.map +1 -0
- package/dist/api/content/discussion-reply/discussion-reply.module.js +41 -0
- package/dist/api/content/discussion-reply/discussion-reply.module.js.map +1 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.dto.d.ts +11 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.dto.d.ts.map +1 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.dto.js +45 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.dto.js.map +1 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.post.dto.d.ts +25 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.post.dto.d.ts.map +1 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.post.dto.js +95 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.post.dto.js.map +1 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.put.dto.d.ts +25 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.put.dto.d.ts.map +1 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.put.dto.js +95 -0
- package/dist/api/content/discussion-reply/dtos/discussion-reply.put.dto.js.map +1 -0
- package/dist/api/content/discussion-reply/entities/discussion-reply.d.ts +44 -0
- package/dist/api/content/discussion-reply/entities/discussion-reply.d.ts.map +1 -0
- package/dist/api/content/discussion-reply/entities/discussion-reply.js +45 -0
- package/dist/api/content/discussion-reply/entities/discussion-reply.js.map +1 -0
- package/dist/api/content/discussion-reply/entities/discussion-reply.meta.d.ts +3 -0
- package/dist/api/content/discussion-reply/entities/discussion-reply.meta.d.ts.map +1 -0
- package/dist/api/content/discussion-reply/entities/discussion-reply.meta.js +10 -0
- package/dist/api/content/discussion-reply/entities/discussion-reply.meta.js.map +1 -0
- package/dist/api/content/discussion-reply/repositories/discussion-reply.repository.d.ts +43 -0
- package/dist/api/content/discussion-reply/repositories/discussion-reply.repository.d.ts.map +1 -0
- package/dist/api/content/discussion-reply/repositories/discussion-reply.repository.js +63 -0
- package/dist/api/content/discussion-reply/repositories/discussion-reply.repository.js.map +1 -0
- package/dist/api/content/discussion-reply/services/discussion-reply.service.d.ts +55 -0
- package/dist/api/content/discussion-reply/services/discussion-reply.service.d.ts.map +1 -0
- package/dist/api/content/discussion-reply/services/discussion-reply.service.js +90 -0
- package/dist/api/content/discussion-reply/services/discussion-reply.service.js.map +1 -0
- package/dist/api/content/document/controllers/document.controller.d.ts +36 -0
- package/dist/api/content/document/controllers/document.controller.d.ts.map +1 -0
- package/dist/api/content/document/controllers/document.controller.js +425 -0
- package/dist/api/content/document/controllers/document.controller.js.map +1 -0
- package/dist/api/content/document/controllers/document.routes.fixture.d.ts +10 -0
- package/dist/api/content/document/controllers/document.routes.fixture.d.ts.map +1 -0
- package/dist/api/content/document/controllers/document.routes.fixture.js +35 -0
- package/dist/api/content/document/controllers/document.routes.fixture.js.map +1 -0
- package/dist/api/content/document/document.module.d.ts +8 -0
- package/dist/api/content/document/document.module.d.ts.map +1 -0
- package/dist/api/content/document/document.module.js +54 -0
- package/dist/api/content/document/document.module.js.map +1 -0
- package/dist/api/content/document/dtos/document.dto.d.ts +11 -0
- package/dist/api/content/document/dtos/document.dto.d.ts.map +1 -0
- package/dist/api/content/document/dtos/document.dto.js +45 -0
- package/dist/api/content/document/dtos/document.dto.js.map +1 -0
- package/dist/api/content/document/dtos/document.post.dto.d.ts +29 -0
- package/dist/api/content/document/dtos/document.post.dto.d.ts.map +1 -0
- package/dist/api/content/document/dtos/document.post.dto.js +124 -0
- package/dist/api/content/document/dtos/document.post.dto.js.map +1 -0
- package/dist/api/content/document/dtos/document.put.dto.d.ts +29 -0
- package/dist/api/content/document/dtos/document.put.dto.d.ts.map +1 -0
- package/dist/api/content/document/dtos/document.put.dto.js +124 -0
- package/dist/api/content/document/dtos/document.put.dto.js.map +1 -0
- package/dist/api/content/document/dtos/document.relationship.dto.d.ts +69 -0
- package/dist/api/content/document/dtos/document.relationship.dto.d.ts.map +1 -0
- package/dist/api/content/document/dtos/document.relationship.dto.js +141 -0
- package/dist/api/content/document/dtos/document.relationship.dto.js.map +1 -0
- package/dist/api/content/document/entities/document.d.ts +67 -0
- package/dist/api/content/document/entities/document.d.ts.map +1 -0
- package/dist/api/content/document/entities/document.js +74 -0
- package/dist/api/content/document/entities/document.js.map +1 -0
- package/dist/api/content/document/entities/document.meta.d.ts +5 -0
- package/dist/api/content/document/entities/document.meta.d.ts.map +1 -0
- package/dist/api/content/document/entities/document.meta.js +13 -0
- package/dist/api/content/document/entities/document.meta.js.map +1 -0
- package/dist/api/content/document/processors/document.processor.d.ts +43 -0
- package/dist/api/content/document/processors/document.processor.d.ts.map +1 -0
- package/dist/api/content/document/processors/document.processor.js +139 -0
- package/dist/api/content/document/processors/document.processor.js.map +1 -0
- package/dist/api/content/document/repositories/document.repository.d.ts +118 -0
- package/dist/api/content/document/repositories/document.repository.d.ts.map +1 -0
- package/dist/api/content/document/repositories/document.repository.js +215 -0
- package/dist/api/content/document/repositories/document.repository.js.map +1 -0
- package/dist/api/content/document/services/document.service.d.ts +147 -0
- package/dist/api/content/document/services/document.service.d.ts.map +1 -0
- package/dist/api/content/document/services/document.service.js +280 -0
- package/dist/api/content/document/services/document.service.js.map +1 -0
- package/dist/api/expertise/access/access.cypher.d.ts +66 -0
- package/dist/api/expertise/access/access.cypher.d.ts.map +1 -0
- package/dist/api/expertise/access/access.cypher.js +102 -0
- package/dist/api/expertise/access/access.cypher.js.map +1 -0
- package/dist/api/expertise/access-request/access-request.module.d.ts +10 -0
- package/dist/api/expertise/access-request/access-request.module.d.ts.map +1 -0
- package/dist/api/expertise/access-request/access-request.module.js +39 -0
- package/dist/api/expertise/access-request/access-request.module.js.map +1 -0
- package/dist/api/expertise/access-request/controllers/access-request.controller.d.ts +11 -0
- package/dist/api/expertise/access-request/controllers/access-request.controller.d.ts.map +1 -0
- package/dist/api/expertise/access-request/controllers/access-request.controller.js +51 -0
- package/dist/api/expertise/access-request/controllers/access-request.controller.js.map +1 -0
- package/dist/api/expertise/access-request/controllers/access-request.routes.fixture.d.ts +6 -0
- package/dist/api/expertise/access-request/controllers/access-request.routes.fixture.d.ts.map +1 -0
- package/dist/api/expertise/access-request/controllers/access-request.routes.fixture.js +8 -0
- package/dist/api/expertise/access-request/controllers/access-request.routes.fixture.js.map +1 -0
- package/dist/api/expertise/access-request/entities/access-request.d.ts +21 -0
- package/dist/api/expertise/access-request/entities/access-request.d.ts.map +1 -0
- package/dist/api/expertise/access-request/entities/access-request.js +21 -0
- package/dist/api/expertise/access-request/entities/access-request.js.map +1 -0
- package/dist/api/expertise/access-request/entities/access-request.meta.d.ts +3 -0
- package/dist/api/expertise/access-request/entities/access-request.meta.d.ts.map +1 -0
- package/dist/api/expertise/access-request/entities/access-request.meta.js +10 -0
- package/dist/api/expertise/access-request/entities/access-request.meta.js.map +1 -0
- package/dist/api/expertise/access-request/repositories/access-request-target.repository.d.ts +112 -0
- package/dist/api/expertise/access-request/repositories/access-request-target.repository.d.ts.map +1 -0
- package/dist/api/expertise/access-request/repositories/access-request-target.repository.js +72 -0
- package/dist/api/expertise/access-request/repositories/access-request-target.repository.js.map +1 -0
- package/dist/api/expertise/access-request/repositories/access-request.repository.d.ts +27 -0
- package/dist/api/expertise/access-request/repositories/access-request.repository.d.ts.map +1 -0
- package/dist/api/expertise/access-request/repositories/access-request.repository.js +91 -0
- package/dist/api/expertise/access-request/repositories/access-request.repository.js.map +1 -0
- package/dist/api/expertise/access-request/services/access-request.service.d.ts +14 -0
- package/dist/api/expertise/access-request/services/access-request.service.d.ts.map +1 -0
- package/dist/api/expertise/access-request/services/access-request.service.js +40 -0
- package/dist/api/expertise/access-request/services/access-request.service.js.map +1 -0
- package/dist/api/expertise/cluster/cluster.module.d.ts +8 -0
- package/dist/api/expertise/cluster/cluster.module.d.ts.map +1 -0
- package/dist/api/expertise/cluster/cluster.module.js +37 -0
- package/dist/api/expertise/cluster/cluster.module.js.map +1 -0
- package/dist/api/expertise/cluster/controllers/cluster.controller.d.ts +29 -0
- package/dist/api/expertise/cluster/controllers/cluster.controller.d.ts.map +1 -0
- package/dist/api/expertise/cluster/controllers/cluster.controller.js +345 -0
- package/dist/api/expertise/cluster/controllers/cluster.controller.js.map +1 -0
- package/dist/api/expertise/cluster/controllers/cluster.routes.fixture.d.ts +6 -0
- package/dist/api/expertise/cluster/controllers/cluster.routes.fixture.d.ts.map +1 -0
- package/dist/api/expertise/cluster/controllers/cluster.routes.fixture.js +23 -0
- package/dist/api/expertise/cluster/controllers/cluster.routes.fixture.js.map +1 -0
- package/dist/api/expertise/cluster/dtos/cluster.dto.d.ts +11 -0
- package/dist/api/expertise/cluster/dtos/cluster.dto.d.ts.map +1 -0
- package/dist/api/expertise/cluster/dtos/cluster.dto.js +45 -0
- package/dist/api/expertise/cluster/dtos/cluster.dto.js.map +1 -0
- package/dist/api/expertise/cluster/dtos/cluster.post.dto.d.ts +23 -0
- package/dist/api/expertise/cluster/dtos/cluster.post.dto.d.ts.map +1 -0
- package/dist/api/expertise/cluster/dtos/cluster.post.dto.js +96 -0
- package/dist/api/expertise/cluster/dtos/cluster.post.dto.js.map +1 -0
- package/dist/api/expertise/cluster/dtos/cluster.put.dto.d.ts +23 -0
- package/dist/api/expertise/cluster/dtos/cluster.put.dto.d.ts.map +1 -0
- package/dist/api/expertise/cluster/dtos/cluster.put.dto.js +96 -0
- package/dist/api/expertise/cluster/dtos/cluster.put.dto.js.map +1 -0
- package/dist/api/expertise/cluster/dtos/cluster.relationship.dto.d.ts +103 -0
- package/dist/api/expertise/cluster/dtos/cluster.relationship.dto.d.ts.map +1 -0
- package/dist/api/expertise/cluster/dtos/cluster.relationship.dto.js +204 -0
- package/dist/api/expertise/cluster/dtos/cluster.relationship.dto.js.map +1 -0
- package/dist/api/expertise/cluster/entities/cluster.d.ts +61 -0
- package/dist/api/expertise/cluster/entities/cluster.d.ts.map +1 -0
- package/dist/api/expertise/cluster/entities/cluster.js +72 -0
- package/dist/api/expertise/cluster/entities/cluster.js.map +1 -0
- package/dist/api/expertise/cluster/entities/cluster.meta.d.ts +6 -0
- package/dist/api/expertise/cluster/entities/cluster.meta.d.ts.map +1 -0
- package/dist/api/expertise/cluster/entities/cluster.meta.js +14 -0
- package/dist/api/expertise/cluster/entities/cluster.meta.js.map +1 -0
- package/dist/api/expertise/cluster/repositories/cluster.repository.d.ts +113 -0
- package/dist/api/expertise/cluster/repositories/cluster.repository.d.ts.map +1 -0
- package/dist/api/expertise/cluster/repositories/cluster.repository.js +171 -0
- package/dist/api/expertise/cluster/repositories/cluster.repository.js.map +1 -0
- package/dist/api/expertise/cluster/services/cluster.service.d.ts +105 -0
- package/dist/api/expertise/cluster/services/cluster.service.d.ts.map +1 -0
- package/dist/api/expertise/cluster/services/cluster.service.js +136 -0
- package/dist/api/expertise/cluster/services/cluster.service.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/community-of-expertise.module.d.ts +8 -0
- package/dist/api/expertise/community-of-expertise/community-of-expertise.module.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/community-of-expertise.module.js +44 -0
- package/dist/api/expertise/community-of-expertise/community-of-expertise.module.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.controller.d.ts +30 -0
- package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.controller.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.controller.js +332 -0
- package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.controller.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.routes.fixture.d.ts +6 -0
- package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.routes.fixture.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.routes.fixture.js +26 -0
- package/dist/api/expertise/community-of-expertise/controllers/community-of-expertise.routes.fixture.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-member-role.dto.d.ts +16 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-member-role.dto.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-member-role.dto.js +49 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-member-role.dto.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.dto.d.ts +11 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.dto.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.dto.js +45 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.dto.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.post.dto.d.ts +34 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.post.dto.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.post.dto.js +135 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.post.dto.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.put.dto.d.ts +34 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.put.dto.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.put.dto.js +135 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.put.dto.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.relationship.dto.d.ts +117 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.relationship.dto.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.relationship.dto.js +240 -0
- package/dist/api/expertise/community-of-expertise/dtos/community-of-expertise.relationship.dto.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.d.ts +75 -0
- package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.js +90 -0
- package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.meta.d.ts +6 -0
- package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.meta.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.meta.js +14 -0
- package/dist/api/expertise/community-of-expertise/entities/community-of-expertise.meta.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/repositories/community-of-expertise.repository.d.ts +122 -0
- package/dist/api/expertise/community-of-expertise/repositories/community-of-expertise.repository.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/repositories/community-of-expertise.repository.js +184 -0
- package/dist/api/expertise/community-of-expertise/repositories/community-of-expertise.repository.js.map +1 -0
- package/dist/api/expertise/community-of-expertise/services/community-of-expertise.service.d.ts +107 -0
- package/dist/api/expertise/community-of-expertise/services/community-of-expertise.service.d.ts.map +1 -0
- package/dist/api/expertise/community-of-expertise/services/community-of-expertise.service.js +179 -0
- package/dist/api/expertise/community-of-expertise/services/community-of-expertise.service.js.map +1 -0
- package/dist/api/expertise/skill/controllers/skill.controller.d.ts +34 -0
- package/dist/api/expertise/skill/controllers/skill.controller.d.ts.map +1 -0
- package/dist/api/expertise/skill/controllers/skill.controller.js +357 -0
- package/dist/api/expertise/skill/controllers/skill.controller.js.map +1 -0
- package/dist/api/expertise/skill/controllers/skill.routes.fixture.d.ts +6 -0
- package/dist/api/expertise/skill/controllers/skill.routes.fixture.d.ts.map +1 -0
- package/dist/api/expertise/skill/controllers/skill.routes.fixture.js +24 -0
- package/dist/api/expertise/skill/controllers/skill.routes.fixture.js.map +1 -0
- package/dist/api/expertise/skill/dtos/skill-proficiency.dto.d.ts +14 -0
- package/dist/api/expertise/skill/dtos/skill-proficiency.dto.d.ts.map +1 -0
- package/dist/api/expertise/skill/dtos/skill-proficiency.dto.js +46 -0
- package/dist/api/expertise/skill/dtos/skill-proficiency.dto.js.map +1 -0
- package/dist/api/expertise/skill/dtos/skill-user.relationship.dto.d.ts +22 -0
- package/dist/api/expertise/skill/dtos/skill-user.relationship.dto.d.ts.map +1 -0
- package/dist/api/expertise/skill/dtos/skill-user.relationship.dto.js +54 -0
- package/dist/api/expertise/skill/dtos/skill-user.relationship.dto.js.map +1 -0
- package/dist/api/expertise/skill/dtos/skill.dto.d.ts +11 -0
- package/dist/api/expertise/skill/dtos/skill.dto.d.ts.map +1 -0
- package/dist/api/expertise/skill/dtos/skill.dto.js +45 -0
- package/dist/api/expertise/skill/dtos/skill.dto.js.map +1 -0
- package/dist/api/expertise/skill/dtos/skill.post.dto.d.ts +29 -0
- package/dist/api/expertise/skill/dtos/skill.post.dto.d.ts.map +1 -0
- package/dist/api/expertise/skill/dtos/skill.post.dto.js +115 -0
- package/dist/api/expertise/skill/dtos/skill.post.dto.js.map +1 -0
- package/dist/api/expertise/skill/dtos/skill.put.dto.d.ts +29 -0
- package/dist/api/expertise/skill/dtos/skill.put.dto.d.ts.map +1 -0
- package/dist/api/expertise/skill/dtos/skill.put.dto.js +115 -0
- package/dist/api/expertise/skill/dtos/skill.put.dto.js.map +1 -0
- package/dist/api/expertise/skill/dtos/skill.relationship.dto.d.ts +88 -0
- package/dist/api/expertise/skill/dtos/skill.relationship.dto.d.ts.map +1 -0
- package/dist/api/expertise/skill/dtos/skill.relationship.dto.js +182 -0
- package/dist/api/expertise/skill/dtos/skill.relationship.dto.js.map +1 -0
- package/dist/api/expertise/skill/entities/skill.d.ts +46 -0
- package/dist/api/expertise/skill/entities/skill.d.ts.map +1 -0
- package/dist/api/expertise/skill/entities/skill.js +49 -0
- package/dist/api/expertise/skill/entities/skill.js.map +1 -0
- package/dist/api/expertise/skill/entities/skill.meta.d.ts +3 -0
- package/dist/api/expertise/skill/entities/skill.meta.d.ts.map +1 -0
- package/dist/api/expertise/skill/entities/skill.meta.js +10 -0
- package/dist/api/expertise/skill/entities/skill.meta.js.map +1 -0
- package/dist/api/expertise/skill/repositories/skill.repository.d.ts +59 -0
- package/dist/api/expertise/skill/repositories/skill.repository.d.ts.map +1 -0
- package/dist/api/expertise/skill/repositories/skill.repository.js +109 -0
- package/dist/api/expertise/skill/repositories/skill.repository.js.map +1 -0
- package/dist/api/expertise/skill/services/skill.service.d.ts +95 -0
- package/dist/api/expertise/skill/services/skill.service.d.ts.map +1 -0
- package/dist/api/expertise/skill/services/skill.service.js +155 -0
- package/dist/api/expertise/skill/services/skill.service.js.map +1 -0
- package/dist/api/expertise/skill/skill.module.d.ts +8 -0
- package/dist/api/expertise/skill/skill.module.d.ts.map +1 -0
- package/dist/api/expertise/skill/skill.module.js +37 -0
- package/dist/api/expertise/skill/skill.module.js.map +1 -0
- package/dist/api/expertise/taxonomy/controllers/taxonomy.controller.d.ts +22 -0
- package/dist/api/expertise/taxonomy/controllers/taxonomy.controller.d.ts.map +1 -0
- package/dist/api/expertise/taxonomy/controllers/taxonomy.controller.js +190 -0
- package/dist/api/expertise/taxonomy/controllers/taxonomy.controller.js.map +1 -0
- package/dist/api/expertise/taxonomy/controllers/taxonomy.routes.fixture.d.ts +6 -0
- package/dist/api/expertise/taxonomy/controllers/taxonomy.routes.fixture.d.ts.map +1 -0
- package/dist/api/expertise/taxonomy/controllers/taxonomy.routes.fixture.js +18 -0
- package/dist/api/expertise/taxonomy/controllers/taxonomy.routes.fixture.js.map +1 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.dto.d.ts +11 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.dto.d.ts.map +1 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.dto.js +45 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.dto.js.map +1 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.post.dto.d.ts +21 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.post.dto.d.ts.map +1 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.post.dto.js +84 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.post.dto.js.map +1 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.put.dto.d.ts +21 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.put.dto.d.ts.map +1 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.put.dto.js +84 -0
- package/dist/api/expertise/taxonomy/dtos/taxonomy.put.dto.js.map +1 -0
- package/dist/api/expertise/taxonomy/entities/taxonomy.d.ts +38 -0
- package/dist/api/expertise/taxonomy/entities/taxonomy.d.ts.map +1 -0
- package/dist/api/expertise/taxonomy/entities/taxonomy.js +43 -0
- package/dist/api/expertise/taxonomy/entities/taxonomy.js.map +1 -0
- package/dist/api/expertise/taxonomy/entities/taxonomy.meta.d.ts +3 -0
- package/dist/api/expertise/taxonomy/entities/taxonomy.meta.d.ts.map +1 -0
- package/dist/api/expertise/taxonomy/entities/taxonomy.meta.js +10 -0
- package/dist/api/expertise/taxonomy/entities/taxonomy.meta.js.map +1 -0
- package/dist/api/expertise/taxonomy/repositories/taxonomy.repository.d.ts +64 -0
- package/dist/api/expertise/taxonomy/repositories/taxonomy.repository.d.ts.map +1 -0
- package/dist/api/expertise/taxonomy/repositories/taxonomy.repository.js +118 -0
- package/dist/api/expertise/taxonomy/repositories/taxonomy.repository.js.map +1 -0
- package/dist/api/expertise/taxonomy/services/taxonomy.service.d.ts +53 -0
- package/dist/api/expertise/taxonomy/services/taxonomy.service.d.ts.map +1 -0
- package/dist/api/expertise/taxonomy/services/taxonomy.service.js +117 -0
- package/dist/api/expertise/taxonomy/services/taxonomy.service.js.map +1 -0
- package/dist/api/expertise/taxonomy/taxonomy.module.d.ts +8 -0
- package/dist/api/expertise/taxonomy/taxonomy.module.d.ts.map +1 -0
- package/dist/api/expertise/taxonomy/taxonomy.module.js +37 -0
- package/dist/api/expertise/taxonomy/taxonomy.module.js.map +1 -0
- package/dist/api/expertise/translations/controllers/expertise-translations.controller.d.ts +14 -0
- package/dist/api/expertise/translations/controllers/expertise-translations.controller.d.ts.map +1 -0
- package/dist/api/expertise/translations/controllers/expertise-translations.controller.js +87 -0
- package/dist/api/expertise/translations/controllers/expertise-translations.controller.js.map +1 -0
- package/dist/api/expertise/translations/controllers/expertise-translations.routes.fixture.d.ts +6 -0
- package/dist/api/expertise/translations/controllers/expertise-translations.routes.fixture.d.ts.map +1 -0
- package/dist/api/expertise/translations/controllers/expertise-translations.routes.fixture.js +9 -0
- package/dist/api/expertise/translations/controllers/expertise-translations.routes.fixture.js.map +1 -0
- package/dist/api/expertise/translations/repositories/cluster-translations.repository.d.ts +61 -0
- package/dist/api/expertise/translations/repositories/cluster-translations.repository.d.ts.map +1 -0
- package/dist/api/expertise/translations/repositories/cluster-translations.repository.js +52 -0
- package/dist/api/expertise/translations/repositories/cluster-translations.repository.js.map +1 -0
- package/dist/api/expertise/translations/repositories/community-of-expertise-translations.repository.d.ts +69 -0
- package/dist/api/expertise/translations/repositories/community-of-expertise-translations.repository.d.ts.map +1 -0
- package/dist/api/expertise/translations/repositories/community-of-expertise-translations.repository.js +48 -0
- package/dist/api/expertise/translations/repositories/community-of-expertise-translations.repository.js.map +1 -0
- package/dist/api/expertise/translations/services/cluster-translations.service.d.ts +55 -0
- package/dist/api/expertise/translations/services/cluster-translations.service.d.ts.map +1 -0
- package/dist/api/expertise/translations/services/cluster-translations.service.js +50 -0
- package/dist/api/expertise/translations/services/cluster-translations.service.js.map +1 -0
- package/dist/api/expertise/translations/services/community-of-expertise-translations.service.d.ts +67 -0
- package/dist/api/expertise/translations/services/community-of-expertise-translations.service.d.ts.map +1 -0
- package/dist/api/expertise/translations/services/community-of-expertise-translations.service.js +50 -0
- package/dist/api/expertise/translations/services/community-of-expertise-translations.service.js.map +1 -0
- package/dist/api/expertise/translations/translations.module.d.ts +11 -0
- package/dist/api/expertise/translations/translations.module.d.ts.map +1 -0
- package/dist/api/expertise/translations/translations.module.js +39 -0
- package/dist/api/expertise/translations/translations.module.js.map +1 -0
- package/dist/api/index.d.ts +97 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +184 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/knowledge.module.d.ts +10 -0
- package/dist/api/knowledge.module.d.ts.map +1 -0
- package/dist/api/knowledge.module.js +93 -0
- package/dist/api/knowledge.module.js.map +1 -0
- package/dist/chunk-EXUPVXK4.mjs +2871 -0
- package/dist/chunk-EXUPVXK4.mjs.map +1 -0
- package/dist/chunk-HEG4DPMD.js +2876 -0
- package/dist/chunk-HEG4DPMD.js.map +1 -0
- package/dist/seed/index.d.ts +4 -0
- package/dist/seed/index.d.ts.map +1 -0
- package/dist/seed/index.js +9 -0
- package/dist/seed/index.js.map +1 -0
- package/dist/seed/knowledge.module.seed.d.ts +12 -0
- package/dist/seed/knowledge.module.seed.d.ts.map +1 -0
- package/dist/seed/knowledge.module.seed.js +44 -0
- package/dist/seed/knowledge.module.seed.js.map +1 -0
- package/dist/shared/content-language.d.ts +10 -0
- package/dist/shared/content-language.d.ts.map +1 -0
- package/dist/shared/content-language.js +5 -0
- package/dist/shared/content-language.js.map +1 -0
- package/dist/shared/content-status.d.ts +7 -0
- package/dist/shared/content-status.d.ts.map +1 -0
- package/dist/shared/content-status.js +5 -0
- package/dist/shared/content-status.js.map +1 -0
- package/dist/shared/index.d.ts +10 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +32 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/knowledge.endpoints.d.ts +18 -0
- package/dist/shared/knowledge.endpoints.d.ts.map +1 -0
- package/dist/shared/knowledge.endpoints.js +21 -0
- package/dist/shared/knowledge.endpoints.js.map +1 -0
- package/dist/shared/knowledge.module.ids.d.ts +11 -0
- package/dist/shared/knowledge.module.ids.d.ts.map +1 -0
- package/dist/shared/knowledge.module.ids.js +14 -0
- package/dist/shared/knowledge.module.ids.js.map +1 -0
- package/dist/shared/knowledge.queues.d.ts +16 -0
- package/dist/shared/knowledge.queues.d.ts.map +1 -0
- package/dist/shared/knowledge.queues.js +17 -0
- package/dist/shared/knowledge.queues.js.map +1 -0
- package/dist/shared/knowledge.s3.folders.d.ts +5 -0
- package/dist/shared/knowledge.s3.folders.d.ts.map +1 -0
- package/dist/shared/knowledge.s3.folders.js +8 -0
- package/dist/shared/knowledge.s3.folders.js.map +1 -0
- package/dist/shared/role-in-community.d.ts +10 -0
- package/dist/shared/role-in-community.d.ts.map +1 -0
- package/dist/shared/role-in-community.js +15 -0
- package/dist/shared/role-in-community.js.map +1 -0
- package/dist/shared/schemas/graph-creation-event.schema.d.ts +66 -0
- package/dist/shared/schemas/graph-creation-event.schema.d.ts.map +1 -0
- package/dist/shared/schemas/graph-creation-event.schema.js +49 -0
- package/dist/shared/schemas/graph-creation-event.schema.js.map +1 -0
- package/dist/shared/schemas/index.d.ts +2 -0
- package/dist/shared/schemas/index.d.ts.map +1 -0
- package/dist/shared/schemas/index.js +11 -0
- package/dist/shared/schemas/index.js.map +1 -0
- package/dist/shared/skill-level.d.ts +8 -0
- package/dist/shared/skill-level.d.ts.map +1 -0
- package/dist/shared/skill-level.js +10 -0
- package/dist/shared/skill-level.js.map +1 -0
- package/dist/web/common/components/details/ImageHoverCard.d.ts +10 -0
- package/dist/web/common/components/details/ImageHoverCard.d.ts.map +1 -0
- package/dist/web/common/components/translations/TranslationsTab.d.ts +16 -0
- package/dist/web/common/components/translations/TranslationsTab.d.ts.map +1 -0
- package/dist/web/common/data/jsonAttribute.d.ts +49 -0
- package/dist/web/common/data/jsonAttribute.d.ts.map +1 -0
- package/dist/web/common/hooks/useContentLanguage.d.ts +9 -0
- package/dist/web/common/hooks/useContentLanguage.d.ts.map +1 -0
- package/dist/web/common/i18n/translationResolver.d.ts +15 -0
- package/dist/web/common/i18n/translationResolver.d.ts.map +1 -0
- package/dist/web/config/knowledge.modules.d.ts +7 -0
- package/dist/web/config/knowledge.modules.d.ts.map +1 -0
- package/dist/web/config/knowledge.ui.config.d.ts +26 -0
- package/dist/web/config/knowledge.ui.config.d.ts.map +1 -0
- package/dist/web/content/article/ArticleModule.d.ts +4 -0
- package/dist/web/content/article/ArticleModule.d.ts.map +1 -0
- package/dist/web/content/article/components/containers/ArticleContainer.d.ts +2 -0
- package/dist/web/content/article/components/containers/ArticleContainer.d.ts.map +1 -0
- package/dist/web/content/article/components/containers/ArticleListContainer.d.ts +2 -0
- package/dist/web/content/article/components/containers/ArticleListContainer.d.ts.map +1 -0
- package/dist/web/content/article/components/details/ArticleContent.d.ts +7 -0
- package/dist/web/content/article/components/details/ArticleContent.d.ts.map +1 -0
- package/dist/web/content/article/components/forms/ArticleDeleter.d.ts +7 -0
- package/dist/web/content/article/components/forms/ArticleDeleter.d.ts.map +1 -0
- package/dist/web/content/article/components/forms/ArticleEditor.d.ts +14 -0
- package/dist/web/content/article/components/forms/ArticleEditor.d.ts.map +1 -0
- package/dist/web/content/article/components/forms/ArticleMultiSelector.d.ts +14 -0
- package/dist/web/content/article/components/forms/ArticleMultiSelector.d.ts.map +1 -0
- package/dist/web/content/article/components/forms/ArticleSelector.d.ts +12 -0
- package/dist/web/content/article/components/forms/ArticleSelector.d.ts.map +1 -0
- package/dist/web/content/article/components/lists/ArticleList.d.ts +11 -0
- package/dist/web/content/article/components/lists/ArticleList.d.ts.map +1 -0
- package/dist/web/content/article/components/screens/ArticleDetailScreen.d.ts +5 -0
- package/dist/web/content/article/components/screens/ArticleDetailScreen.d.ts.map +1 -0
- package/dist/web/content/article/components/screens/ArticleListScreen.d.ts +2 -0
- package/dist/web/content/article/components/screens/ArticleListScreen.d.ts.map +1 -0
- package/dist/web/content/article/contexts/ArticleContext.d.ts +16 -0
- package/dist/web/content/article/contexts/ArticleContext.d.ts.map +1 -0
- package/dist/web/content/article/data/Article.d.ts +58 -0
- package/dist/web/content/article/data/Article.d.ts.map +1 -0
- package/dist/web/content/article/data/ArticleAliases.d.ts +11 -0
- package/dist/web/content/article/data/ArticleAliases.d.ts.map +1 -0
- package/dist/web/content/article/data/ArticleFields.d.ts +20 -0
- package/dist/web/content/article/data/ArticleFields.d.ts.map +1 -0
- package/dist/web/content/article/data/ArticleInterface.d.ts +37 -0
- package/dist/web/content/article/data/ArticleInterface.d.ts.map +1 -0
- package/dist/web/content/article/data/ArticleService.d.ts +69 -0
- package/dist/web/content/article/data/ArticleService.d.ts.map +1 -0
- package/dist/web/content/article/hooks/useArticleTableStructure.d.ts +5 -0
- package/dist/web/content/article/hooks/useArticleTableStructure.d.ts.map +1 -0
- package/dist/web/content/common/components/ContentStatusBadge.d.ts +6 -0
- package/dist/web/content/common/components/ContentStatusBadge.d.ts.map +1 -0
- package/dist/web/content/common/components/ContentStatusBar.d.ts +18 -0
- package/dist/web/content/common/components/ContentStatusBar.d.ts.map +1 -0
- package/dist/web/content/common/utils/contentStatus.d.ts +7 -0
- package/dist/web/content/common/utils/contentStatus.d.ts.map +1 -0
- package/dist/web/content/common/utils/translationMaps.d.ts +24 -0
- package/dist/web/content/common/utils/translationMaps.d.ts.map +1 -0
- package/dist/web/content/components/forms/ContentFileUpload.d.ts +6 -0
- package/dist/web/content/components/forms/ContentFileUpload.d.ts.map +1 -0
- package/dist/web/content/discussion/DiscussionModule.d.ts +4 -0
- package/dist/web/content/discussion/DiscussionModule.d.ts.map +1 -0
- package/dist/web/content/discussion/components/containers/DiscussionContainer.d.ts +2 -0
- package/dist/web/content/discussion/components/containers/DiscussionContainer.d.ts.map +1 -0
- package/dist/web/content/discussion/components/containers/DiscussionListContainer.d.ts +2 -0
- package/dist/web/content/discussion/components/containers/DiscussionListContainer.d.ts.map +1 -0
- package/dist/web/content/discussion/components/details/DiscussionContent.d.ts +7 -0
- package/dist/web/content/discussion/components/details/DiscussionContent.d.ts.map +1 -0
- package/dist/web/content/discussion/components/forms/DiscussionDeleter.d.ts +7 -0
- package/dist/web/content/discussion/components/forms/DiscussionDeleter.d.ts.map +1 -0
- package/dist/web/content/discussion/components/forms/DiscussionEditor.d.ts +14 -0
- package/dist/web/content/discussion/components/forms/DiscussionEditor.d.ts.map +1 -0
- package/dist/web/content/discussion/components/forms/DiscussionMultiSelector.d.ts +14 -0
- package/dist/web/content/discussion/components/forms/DiscussionMultiSelector.d.ts.map +1 -0
- package/dist/web/content/discussion/components/forms/DiscussionSelector.d.ts +12 -0
- package/dist/web/content/discussion/components/forms/DiscussionSelector.d.ts.map +1 -0
- package/dist/web/content/discussion/components/forms/GenerateArticleButton.d.ts +11 -0
- package/dist/web/content/discussion/components/forms/GenerateArticleButton.d.ts.map +1 -0
- package/dist/web/content/discussion/components/lists/DiscussionList.d.ts +11 -0
- package/dist/web/content/discussion/components/lists/DiscussionList.d.ts.map +1 -0
- package/dist/web/content/discussion/components/screens/DiscussionDetailScreen.d.ts +5 -0
- package/dist/web/content/discussion/components/screens/DiscussionDetailScreen.d.ts.map +1 -0
- package/dist/web/content/discussion/components/screens/DiscussionListScreen.d.ts +2 -0
- package/dist/web/content/discussion/components/screens/DiscussionListScreen.d.ts.map +1 -0
- package/dist/web/content/discussion/contexts/DiscussionContext.d.ts +16 -0
- package/dist/web/content/discussion/contexts/DiscussionContext.d.ts.map +1 -0
- package/dist/web/content/discussion/data/Discussion.d.ts +59 -0
- package/dist/web/content/discussion/data/Discussion.d.ts.map +1 -0
- package/dist/web/content/discussion/data/DiscussionFields.d.ts +20 -0
- package/dist/web/content/discussion/data/DiscussionFields.d.ts.map +1 -0
- package/dist/web/content/discussion/data/DiscussionInterface.d.ts +38 -0
- package/dist/web/content/discussion/data/DiscussionInterface.d.ts.map +1 -0
- package/dist/web/content/discussion/data/DiscussionService.d.ts +82 -0
- package/dist/web/content/discussion/data/DiscussionService.d.ts.map +1 -0
- package/dist/web/content/discussion/hooks/useDiscussionTableStructure.d.ts +5 -0
- package/dist/web/content/discussion/hooks/useDiscussionTableStructure.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/DiscussionReplyModule.d.ts +4 -0
- package/dist/web/content/discussion-reply/DiscussionReplyModule.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/DiscussionReplies.d.ts +6 -0
- package/dist/web/content/discussion-reply/components/DiscussionReplies.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/DiscussionReplyEditor.d.ts +13 -0
- package/dist/web/content/discussion-reply/components/DiscussionReplyEditor.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/DiscussionReplyItem.d.ts +10 -0
- package/dist/web/content/discussion-reply/components/DiscussionReplyItem.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/ReplyApproveButton.d.ts +14 -0
- package/dist/web/content/discussion-reply/components/ReplyApproveButton.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/containers/DiscussionReplyContainer.d.ts +2 -0
- package/dist/web/content/discussion-reply/components/containers/DiscussionReplyContainer.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/containers/DiscussionReplyListContainer.d.ts +2 -0
- package/dist/web/content/discussion-reply/components/containers/DiscussionReplyListContainer.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/details/DiscussionReplyContent.d.ts +7 -0
- package/dist/web/content/discussion-reply/components/details/DiscussionReplyContent.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/forms/DiscussionReplyDeleter.d.ts +7 -0
- package/dist/web/content/discussion-reply/components/forms/DiscussionReplyDeleter.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/forms/DiscussionReplyEditor.d.ts +14 -0
- package/dist/web/content/discussion-reply/components/forms/DiscussionReplyEditor.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/forms/DiscussionReplyMultiSelector.d.ts +14 -0
- package/dist/web/content/discussion-reply/components/forms/DiscussionReplyMultiSelector.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/forms/DiscussionReplySelector.d.ts +12 -0
- package/dist/web/content/discussion-reply/components/forms/DiscussionReplySelector.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/lists/DiscussionReplyList.d.ts +9 -0
- package/dist/web/content/discussion-reply/components/lists/DiscussionReplyList.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/screens/DiscussionReplyDetailScreen.d.ts +5 -0
- package/dist/web/content/discussion-reply/components/screens/DiscussionReplyDetailScreen.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/components/screens/DiscussionReplyListScreen.d.ts +2 -0
- package/dist/web/content/discussion-reply/components/screens/DiscussionReplyListScreen.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/contexts/DiscussionReplyContext.d.ts +16 -0
- package/dist/web/content/discussion-reply/contexts/DiscussionReplyContext.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/data/DiscussionReply.d.ts +18 -0
- package/dist/web/content/discussion-reply/data/DiscussionReply.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/data/DiscussionReplyFields.d.ts +10 -0
- package/dist/web/content/discussion-reply/data/DiscussionReplyFields.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/data/DiscussionReplyInterface.d.ts +21 -0
- package/dist/web/content/discussion-reply/data/DiscussionReplyInterface.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/data/DiscussionReplyService.d.ts +36 -0
- package/dist/web/content/discussion-reply/data/DiscussionReplyService.d.ts.map +1 -0
- package/dist/web/content/discussion-reply/hooks/useDiscussionReplyTableStructure.d.ts +5 -0
- package/dist/web/content/discussion-reply/hooks/useDiscussionReplyTableStructure.d.ts.map +1 -0
- package/dist/web/content/document/DocumentModule.d.ts +4 -0
- package/dist/web/content/document/DocumentModule.d.ts.map +1 -0
- package/dist/web/content/document/components/containers/DocumentContainer.d.ts +2 -0
- package/dist/web/content/document/components/containers/DocumentContainer.d.ts.map +1 -0
- package/dist/web/content/document/components/containers/DocumentListContainer.d.ts +2 -0
- package/dist/web/content/document/components/containers/DocumentListContainer.d.ts.map +1 -0
- package/dist/web/content/document/components/details/DocumentContent.d.ts +7 -0
- package/dist/web/content/document/components/details/DocumentContent.d.ts.map +1 -0
- package/dist/web/content/document/components/forms/DocumentDeleter.d.ts +7 -0
- package/dist/web/content/document/components/forms/DocumentDeleter.d.ts.map +1 -0
- package/dist/web/content/document/components/forms/DocumentDownloader.d.ts +11 -0
- package/dist/web/content/document/components/forms/DocumentDownloader.d.ts.map +1 -0
- package/dist/web/content/document/components/forms/DocumentEditor.d.ts +10 -0
- package/dist/web/content/document/components/forms/DocumentEditor.d.ts.map +1 -0
- package/dist/web/content/document/components/forms/DocumentMultiSelector.d.ts +14 -0
- package/dist/web/content/document/components/forms/DocumentMultiSelector.d.ts.map +1 -0
- package/dist/web/content/document/components/forms/DocumentSelector.d.ts +12 -0
- package/dist/web/content/document/components/forms/DocumentSelector.d.ts.map +1 -0
- package/dist/web/content/document/components/forms/DocumentUploadEditor.d.ts +13 -0
- package/dist/web/content/document/components/forms/DocumentUploadEditor.d.ts.map +1 -0
- package/dist/web/content/document/components/lists/DocumentList.d.ts +11 -0
- package/dist/web/content/document/components/lists/DocumentList.d.ts.map +1 -0
- package/dist/web/content/document/components/screens/DocumentDetailScreen.d.ts +5 -0
- package/dist/web/content/document/components/screens/DocumentDetailScreen.d.ts.map +1 -0
- package/dist/web/content/document/components/screens/DocumentListScreen.d.ts +2 -0
- package/dist/web/content/document/components/screens/DocumentListScreen.d.ts.map +1 -0
- package/dist/web/content/document/contexts/DocumentContext.d.ts +16 -0
- package/dist/web/content/document/contexts/DocumentContext.d.ts.map +1 -0
- package/dist/web/content/document/data/Document.d.ts +58 -0
- package/dist/web/content/document/data/Document.d.ts.map +1 -0
- package/dist/web/content/document/data/DocumentAliases.d.ts +11 -0
- package/dist/web/content/document/data/DocumentAliases.d.ts.map +1 -0
- package/dist/web/content/document/data/DocumentFields.d.ts +20 -0
- package/dist/web/content/document/data/DocumentFields.d.ts.map +1 -0
- package/dist/web/content/document/data/DocumentInterface.d.ts +37 -0
- package/dist/web/content/document/data/DocumentInterface.d.ts.map +1 -0
- package/dist/web/content/document/data/DocumentService.d.ts +69 -0
- package/dist/web/content/document/data/DocumentService.d.ts.map +1 -0
- package/dist/web/content/document/hooks/useDocumentTableStructure.d.ts +5 -0
- package/dist/web/content/document/hooks/useDocumentTableStructure.d.ts.map +1 -0
- package/dist/web/content/document/utils/fileExtension.d.ts +2 -0
- package/dist/web/content/document/utils/fileExtension.d.ts.map +1 -0
- package/dist/web/core.d.ts +49 -0
- package/dist/web/core.d.ts.map +1 -0
- package/dist/web/core.js +429 -0
- package/dist/web/core.js.map +1 -0
- package/dist/web/core.mjs +429 -0
- package/dist/web/core.mjs.map +1 -0
- package/dist/web/expertise/access-request/AccessRequestModule.d.ts +11 -0
- package/dist/web/expertise/access-request/AccessRequestModule.d.ts.map +1 -0
- package/dist/web/expertise/access-request/components/containers/AccessRequestListContainer.d.ts +2 -0
- package/dist/web/expertise/access-request/components/containers/AccessRequestListContainer.d.ts.map +1 -0
- package/dist/web/expertise/access-request/components/lists/AccessRequestList.d.ts +4 -0
- package/dist/web/expertise/access-request/components/lists/AccessRequestList.d.ts.map +1 -0
- package/dist/web/expertise/access-request/components/screens/AccessRequestListScreen.d.ts +2 -0
- package/dist/web/expertise/access-request/components/screens/AccessRequestListScreen.d.ts.map +1 -0
- package/dist/web/expertise/access-request/data/AccessRequest.d.ts +24 -0
- package/dist/web/expertise/access-request/data/AccessRequest.d.ts.map +1 -0
- package/dist/web/expertise/access-request/data/AccessRequestInterface.d.ts +16 -0
- package/dist/web/expertise/access-request/data/AccessRequestInterface.d.ts.map +1 -0
- package/dist/web/expertise/access-request/data/AccessRequestService.d.ts +11 -0
- package/dist/web/expertise/access-request/data/AccessRequestService.d.ts.map +1 -0
- package/dist/web/expertise/access-request/hooks/useAccessRequestTableStructure.d.ts +12 -0
- package/dist/web/expertise/access-request/hooks/useAccessRequestTableStructure.d.ts.map +1 -0
- package/dist/web/expertise/cluster/ClusterModule.d.ts +4 -0
- package/dist/web/expertise/cluster/ClusterModule.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/containers/ClusterContainer.d.ts +2 -0
- package/dist/web/expertise/cluster/components/containers/ClusterContainer.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/containers/ClusterListContainer.d.ts +3 -0
- package/dist/web/expertise/cluster/components/containers/ClusterListContainer.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/details/ClusterContent.d.ts +7 -0
- package/dist/web/expertise/cluster/components/details/ClusterContent.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/forms/AddUserToClusterDialog.d.ts +14 -0
- package/dist/web/expertise/cluster/components/forms/AddUserToClusterDialog.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/forms/ClusterAccessButtons.d.ts +16 -0
- package/dist/web/expertise/cluster/components/forms/ClusterAccessButtons.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/forms/ClusterDeleter.d.ts +7 -0
- package/dist/web/expertise/cluster/components/forms/ClusterDeleter.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/forms/ClusterEditor.d.ts +14 -0
- package/dist/web/expertise/cluster/components/forms/ClusterEditor.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/forms/ClusterMultiSelector.d.ts +14 -0
- package/dist/web/expertise/cluster/components/forms/ClusterMultiSelector.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/forms/ClusterParentSelector.d.ts +22 -0
- package/dist/web/expertise/cluster/components/forms/ClusterParentSelector.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/forms/ClusterSelector.d.ts +12 -0
- package/dist/web/expertise/cluster/components/forms/ClusterSelector.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/lists/ClusterList.d.ts +9 -0
- package/dist/web/expertise/cluster/components/lists/ClusterList.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/lists/ClusterMembersList.d.ts +21 -0
- package/dist/web/expertise/cluster/components/lists/ClusterMembersList.d.ts.map +1 -0
- package/dist/web/expertise/cluster/components/lists/ClusterRequestsList.d.ts +10 -0
- package/dist/web/expertise/cluster/components/lists/ClusterRequestsList.d.ts.map +1 -0
- package/dist/web/expertise/cluster/contexts/ClusterContext.d.ts +16 -0
- package/dist/web/expertise/cluster/contexts/ClusterContext.d.ts.map +1 -0
- package/dist/web/expertise/cluster/data/Cluster.d.ts +44 -0
- package/dist/web/expertise/cluster/data/Cluster.d.ts.map +1 -0
- package/dist/web/expertise/cluster/data/ClusterAliases.d.ts +19 -0
- package/dist/web/expertise/cluster/data/ClusterAliases.d.ts.map +1 -0
- package/dist/web/expertise/cluster/data/ClusterFields.d.ts +15 -0
- package/dist/web/expertise/cluster/data/ClusterFields.d.ts.map +1 -0
- package/dist/web/expertise/cluster/data/ClusterInterface.d.ts +24 -0
- package/dist/web/expertise/cluster/data/ClusterInterface.d.ts.map +1 -0
- package/dist/web/expertise/cluster/data/ClusterService.d.ts +77 -0
- package/dist/web/expertise/cluster/data/ClusterService.d.ts.map +1 -0
- package/dist/web/expertise/cluster/hooks/useClusterTableStructure.d.ts +5 -0
- package/dist/web/expertise/cluster/hooks/useClusterTableStructure.d.ts.map +1 -0
- package/dist/web/expertise/common/hooks/useExpertiseUserTableStructure.d.ts +38 -0
- package/dist/web/expertise/common/hooks/useExpertiseUserTableStructure.d.ts.map +1 -0
- package/dist/web/expertise/common/i18n/resolveBlockNoteField.d.ts +14 -0
- package/dist/web/expertise/common/i18n/resolveBlockNoteField.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/CommunityOfExpertiseModule.d.ts +4 -0
- package/dist/web/expertise/community-of-expertise/CommunityOfExpertiseModule.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/containers/CommunityOfExpertiseContainer.d.ts +2 -0
- package/dist/web/expertise/community-of-expertise/components/containers/CommunityOfExpertiseContainer.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/containers/CommunityOfExpertiseListContainer.d.ts +3 -0
- package/dist/web/expertise/community-of-expertise/components/containers/CommunityOfExpertiseListContainer.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/details/CommunityOfExpertiseContent.d.ts +7 -0
- package/dist/web/expertise/community-of-expertise/components/details/CommunityOfExpertiseContent.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/forms/AddUserToCommunityDialog.d.ts +15 -0
- package/dist/web/expertise/community-of-expertise/components/forms/AddUserToCommunityDialog.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityAccessButtons.d.ts +16 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityAccessButtons.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseDeleter.d.ts +7 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseDeleter.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseEditor.d.ts +14 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseEditor.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseMultiSelector.d.ts +14 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseMultiSelector.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseSelector.d.ts +12 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityOfExpertiseSelector.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityParentSelector.d.ts +25 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityParentSelector.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityRoleDropdown.d.ts +13 -0
- package/dist/web/expertise/community-of-expertise/components/forms/CommunityRoleDropdown.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/lists/CommunityMembersList.d.ts +19 -0
- package/dist/web/expertise/community-of-expertise/components/lists/CommunityMembersList.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/lists/CommunityOfExpertiseList.d.ts +9 -0
- package/dist/web/expertise/community-of-expertise/components/lists/CommunityOfExpertiseList.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/lists/CommunityRequestsList.d.ts +10 -0
- package/dist/web/expertise/community-of-expertise/components/lists/CommunityRequestsList.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/screens/CommunityOfExpertiseDetailScreen.d.ts +5 -0
- package/dist/web/expertise/community-of-expertise/components/screens/CommunityOfExpertiseDetailScreen.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/components/screens/CommunityOfExpertiseListScreen.d.ts +2 -0
- package/dist/web/expertise/community-of-expertise/components/screens/CommunityOfExpertiseListScreen.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/contexts/CommunityOfExpertiseContext.d.ts +16 -0
- package/dist/web/expertise/community-of-expertise/contexts/CommunityOfExpertiseContext.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertise.d.ts +56 -0
- package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertise.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseAliases.d.ts +19 -0
- package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseAliases.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseFields.d.ts +16 -0
- package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseFields.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseInterface.d.ts +32 -0
- package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseInterface.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseService.d.ts +92 -0
- package/dist/web/expertise/community-of-expertise/data/CommunityOfExpertiseService.d.ts.map +1 -0
- package/dist/web/expertise/community-of-expertise/hooks/useCommunityOfExpertiseTableStructure.d.ts +5 -0
- package/dist/web/expertise/community-of-expertise/hooks/useCommunityOfExpertiseTableStructure.d.ts.map +1 -0
- package/dist/web/expertise/skill/SkillModule.d.ts +4 -0
- package/dist/web/expertise/skill/SkillModule.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/containers/SkillContainer.d.ts +2 -0
- package/dist/web/expertise/skill/components/containers/SkillContainer.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/containers/SkillListContainer.d.ts +2 -0
- package/dist/web/expertise/skill/components/containers/SkillListContainer.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/details/SkillContent.d.ts +8 -0
- package/dist/web/expertise/skill/components/details/SkillContent.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/forms/AddUserToSkillDialog.d.ts +15 -0
- package/dist/web/expertise/skill/components/forms/AddUserToSkillDialog.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/forms/ClaimSkillButton.d.ts +9 -0
- package/dist/web/expertise/skill/components/forms/ClaimSkillButton.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/forms/SkillDeleter.d.ts +7 -0
- package/dist/web/expertise/skill/components/forms/SkillDeleter.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/forms/SkillEditor.d.ts +14 -0
- package/dist/web/expertise/skill/components/forms/SkillEditor.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/forms/SkillMultiSelector.d.ts +14 -0
- package/dist/web/expertise/skill/components/forms/SkillMultiSelector.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/forms/SkillProficiencyDropdown.d.ts +11 -0
- package/dist/web/expertise/skill/components/forms/SkillProficiencyDropdown.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/forms/SkillSelector.d.ts +12 -0
- package/dist/web/expertise/skill/components/forms/SkillSelector.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/lists/SkillList.d.ts +7 -0
- package/dist/web/expertise/skill/components/lists/SkillList.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/screens/SkillDetailScreen.d.ts +5 -0
- package/dist/web/expertise/skill/components/screens/SkillDetailScreen.d.ts.map +1 -0
- package/dist/web/expertise/skill/components/screens/SkillListScreen.d.ts +2 -0
- package/dist/web/expertise/skill/components/screens/SkillListScreen.d.ts.map +1 -0
- package/dist/web/expertise/skill/contexts/SkillContext.d.ts +16 -0
- package/dist/web/expertise/skill/contexts/SkillContext.d.ts.map +1 -0
- package/dist/web/expertise/skill/data/Skill.d.ts +63 -0
- package/dist/web/expertise/skill/data/Skill.d.ts.map +1 -0
- package/dist/web/expertise/skill/data/SkillFields.d.ts +12 -0
- package/dist/web/expertise/skill/data/SkillFields.d.ts.map +1 -0
- package/dist/web/expertise/skill/data/SkillInterface.d.ts +26 -0
- package/dist/web/expertise/skill/data/SkillInterface.d.ts.map +1 -0
- package/dist/web/expertise/skill/data/SkillService.d.ts +64 -0
- package/dist/web/expertise/skill/data/SkillService.d.ts.map +1 -0
- package/dist/web/expertise/skill/hooks/useSkillTableStructure.d.ts +5 -0
- package/dist/web/expertise/skill/hooks/useSkillTableStructure.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/TaxonomyModule.d.ts +4 -0
- package/dist/web/expertise/taxonomy/TaxonomyModule.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/containers/TaxonomyContainer.d.ts +2 -0
- package/dist/web/expertise/taxonomy/components/containers/TaxonomyContainer.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/containers/TaxonomyListContainer.d.ts +2 -0
- package/dist/web/expertise/taxonomy/components/containers/TaxonomyListContainer.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/details/TaxonomyBadge.d.ts +13 -0
- package/dist/web/expertise/taxonomy/components/details/TaxonomyBadge.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/details/TaxonomyContent.d.ts +7 -0
- package/dist/web/expertise/taxonomy/components/details/TaxonomyContent.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/forms/TaxonomyDeleter.d.ts +7 -0
- package/dist/web/expertise/taxonomy/components/forms/TaxonomyDeleter.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/forms/TaxonomyEditor.d.ts +14 -0
- package/dist/web/expertise/taxonomy/components/forms/TaxonomyEditor.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/forms/TaxonomyMultiSelector.d.ts +14 -0
- package/dist/web/expertise/taxonomy/components/forms/TaxonomyMultiSelector.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/forms/TaxonomySelector.d.ts +12 -0
- package/dist/web/expertise/taxonomy/components/forms/TaxonomySelector.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/lists/TaxonomyBadgesList.d.ts +8 -0
- package/dist/web/expertise/taxonomy/components/lists/TaxonomyBadgesList.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/lists/TaxonomyList.d.ts +11 -0
- package/dist/web/expertise/taxonomy/components/lists/TaxonomyList.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/screens/TaxonomyDetailScreen.d.ts +5 -0
- package/dist/web/expertise/taxonomy/components/screens/TaxonomyDetailScreen.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/components/screens/TaxonomyListScreen.d.ts +2 -0
- package/dist/web/expertise/taxonomy/components/screens/TaxonomyListScreen.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/contexts/TaxonomyContext.d.ts +16 -0
- package/dist/web/expertise/taxonomy/contexts/TaxonomyContext.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/data/Taxonomy.d.ts +34 -0
- package/dist/web/expertise/taxonomy/data/Taxonomy.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/data/TaxonomyAliases.d.ts +7 -0
- package/dist/web/expertise/taxonomy/data/TaxonomyAliases.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/data/TaxonomyFields.d.ts +11 -0
- package/dist/web/expertise/taxonomy/data/TaxonomyFields.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/data/TaxonomyInterface.d.ts +19 -0
- package/dist/web/expertise/taxonomy/data/TaxonomyInterface.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/data/TaxonomyService.d.ts +42 -0
- package/dist/web/expertise/taxonomy/data/TaxonomyService.d.ts.map +1 -0
- package/dist/web/expertise/taxonomy/hooks/useTaxonomyTableStructure.d.ts +5 -0
- package/dist/web/expertise/taxonomy/hooks/useTaxonomyTableStructure.d.ts.map +1 -0
- package/dist/web/index.d.ts +62 -0
- package/dist/web/index.d.ts.map +1 -0
- package/dist/web/index.js +7295 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/index.mjs +7293 -0
- package/dist/web/index.mjs.map +1 -0
- package/dist/web/knowledge.registry.d.ts +21 -0
- package/dist/web/knowledge.registry.d.ts.map +1 -0
- package/messages/ar.json +675 -0
- package/messages/en.json +675 -0
- package/messages/es.json +675 -0
- package/messages/fr.json +675 -0
- package/messages/pt.json +675 -0
- package/messages/ru.json +675 -0
- package/package.json +226 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/web/common/data/jsonAttribute.ts","../src/web/content/common/utils/translationMaps.ts","../src/web/content/article/data/Article.ts","../src/web/knowledge.registry.ts","../src/shared/knowledge.endpoints.ts","../src/web/content/article/data/ArticleService.ts","../src/web/content/article/data/ArticleFields.ts","../src/shared/knowledge.module.ids.ts","../src/web/content/discussion/data/Discussion.ts","../src/web/content/discussion/data/DiscussionService.ts","../src/web/content/discussion/data/DiscussionFields.ts","../src/web/content/discussion-reply/data/DiscussionReplyService.ts","../src/web/content/discussion-reply/data/DiscussionReplyFields.ts","../src/web/content/document/data/Document.ts","../src/web/content/document/data/DocumentService.ts","../src/web/content/document/data/DocumentFields.ts","../src/web/expertise/cluster/data/Cluster.ts","../src/web/expertise/cluster/data/ClusterService.ts","../src/web/expertise/cluster/data/ClusterFields.ts","../src/web/expertise/community-of-expertise/data/CommunityOfExpertise.ts","../src/web/expertise/community-of-expertise/data/CommunityOfExpertiseService.ts","../src/web/expertise/community-of-expertise/data/CommunityOfExpertiseFields.ts","../src/web/expertise/taxonomy/data/Taxonomy.ts","../src/web/expertise/taxonomy/data/TaxonomyService.ts","../src/web/expertise/taxonomy/data/TaxonomyFields.ts","../src/web/expertise/skill/data/Skill.ts","../src/web/expertise/skill/data/SkillService.ts","../src/web/expertise/skill/data/SkillFields.ts","../src/web/expertise/access-request/data/AccessRequestInterface.ts","../src/web/expertise/access-request/data/AccessRequestService.ts","../src/web/common/i18n/translationResolver.ts","../src/shared/knowledge.queues.ts","../src/shared/knowledge.s3.folders.ts","../src/shared/content-language.ts","../src/shared/content-status.ts","../src/shared/skill-level.ts","../src/shared/role-in-community.ts","../src/shared/schemas/graph-creation-event.schema.ts"],"sourcesContent":["/**\n * Defensive readers for the attributes Neo4j stores as JSON STRINGS.\n *\n * Neo4j cannot hold a nested map in a property, so every BlockNote body\n * (`description`, `content`, `abstract`) and every translation map travels the\n * wire as a string and is parsed in `rehydrate` (plan Global Constraints, C9).\n * The generated models did that with a bare `JSON.parse`, which turns any value\n * that is NOT JSON into a thrown `SyntaxError` inside `rehydrate` — i.e. inside\n * `translateResponse`, on the server, where it takes the whole page down with a\n * 500 and no way for the page to recover.\n *\n * That is not hypothetical: the AI pipeline writes a MARKDOWN summary into\n * `abstract` (`{Document,Article,Discussion}Repository.updateAbstract`, fed by\n * `SummariserService.summarise`), so as soon as a document had been processed\n * its detail page — and every list that included it — crashed with\n * `Unexpected token '#', \"## E2E Clu\"... is not valid JSON`.\n *\n * A model must never make a stored value fatal. These helpers keep the parsed\n * value when the string really is JSON, and degrade gracefully when it is not.\n */\n\n/** A BlockNote body: parsed when it is JSON, wrapped as one paragraph when it is plain text. */\nexport function parseBlockNoteAttribute(raw: unknown): any {\n if (raw === undefined || raw === null || raw === \"\") return undefined;\n if (typeof raw !== \"string\") return raw;\n\n try {\n return JSON.parse(raw);\n } catch {\n // Plain text (a Markdown summary, most often). Rendering it as a single\n // paragraph keeps it visible instead of discarding it.\n return [{ type: \"paragraph\", content: [{ type: \"text\", text: raw, styles: {} }] }];\n }\n}\n\n/** A JSON object attribute (the translation maps). `undefined` when the string is not an object. */\nexport function parseObjectAttribute<T>(raw: unknown): T | undefined {\n if (raw === undefined || raw === null || raw === \"\") return undefined;\n if (typeof raw === \"object\") return raw as T;\n if (typeof raw !== \"string\") return undefined;\n\n try {\n const parsed = JSON.parse(raw);\n return parsed && typeof parsed === \"object\" ? (parsed as T) : undefined;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Translation maps.\n *\n * Wire shape (what the API stores and returns):\n * translation = JSON string of { lang: { name?: string, description?: <BlockNote JSON string>, content?: <BlockNote JSON string>, ... } }\n * abstractTranslation = JSON string of { lang: <BlockNote JSON string> }\n * tldrTranslation = JSON string of { lang: string }\n *\n * In-memory shape (what components see): the same maps with every BlockNote\n * value already parsed to a blocks array. The model is the only place that\n * converts (`references/frontend/06-blocknote.md` § \"Model\"); components,\n * the Translations tab and the display resolvers pass blocks through untouched.\n */\nexport const BLOCK_NOTE_TRANSLATION_FIELDS = [\"description\", \"content\", \"abstract\"] as const;\n\nfunction isBlockNoteField(field: string): boolean {\n return (BLOCK_NOTE_TRANSLATION_FIELDS as readonly string[]).includes(field);\n}\n\n/** `translation` attribute → { lang: { field: value } } with BlockNote fields parsed to blocks. */\nexport function parseTranslationAttribute(raw: unknown): Record<string, Record<string, unknown>> | undefined {\n const map = parseObjectAttribute<Record<string, Record<string, unknown>>>(raw);\n if (!map) return undefined;\n\n const parsed: Record<string, Record<string, unknown>> = {};\n for (const [language, fields] of Object.entries(map)) {\n if (!fields || typeof fields !== \"object\") continue;\n parsed[language] = { ...fields };\n for (const field of Object.keys(fields)) {\n if (isBlockNoteField(field)) parsed[language][field] = parseBlockNoteAttribute(fields[field]);\n }\n }\n return parsed;\n}\n\n/** `abstractTranslation` attribute → { lang: blocks }. */\nexport function parseBlockNoteTranslationAttribute(raw: unknown): Record<string, any> | undefined {\n const map = parseObjectAttribute<Record<string, unknown>>(raw);\n if (!map) return undefined;\n\n const parsed: Record<string, any> = {};\n for (const [language, value] of Object.entries(map)) parsed[language] = parseBlockNoteAttribute(value);\n return parsed;\n}\n\n/** One language's edited fields → the wire bag for `PATCH …/translations` (blocks stringified). */\nexport function serialiseTranslationFields(fields: Record<string, unknown>): Record<string, unknown> {\n const out: Record<string, unknown> = {};\n for (const [field, value] of Object.entries(fields)) {\n out[field] =\n isBlockNoteField(field) && value !== undefined && typeof value !== \"string\" ? JSON.stringify(value) : value;\n }\n return out;\n}\n\n/** In-memory `translation` map → wire string (inner blocks stringified, then the map). */\nexport function stringifyTranslationAttribute(map: unknown): string | undefined {\n if (map === undefined || map === null) return undefined;\n if (typeof map === \"string\") return map;\n\n const out: Record<string, Record<string, unknown>> = {};\n for (const [language, fields] of Object.entries(map as Record<string, Record<string, unknown>>)) {\n out[language] = fields && typeof fields === \"object\" ? serialiseTranslationFields(fields) : fields;\n }\n return JSON.stringify(out);\n}\n\n/** In-memory `abstractTranslation` map → wire string. */\nexport function stringifyBlockNoteTranslationAttribute(map: unknown): string | undefined {\n if (map === undefined || map === null) return undefined;\n if (typeof map === \"string\") return map;\n\n const out: Record<string, unknown> = {};\n for (const [language, value] of Object.entries(map as Record<string, unknown>)) {\n out[language] = value !== undefined && typeof value !== \"string\" ? JSON.stringify(value) : value;\n }\n return JSON.stringify(out);\n}\n","import {\n BlockNoteTranslationMap,\n ScalarTranslationMap,\n TranslationMap,\n} from \"../../../common/i18n/translationResolver\";\nimport {\n parseBlockNoteTranslationAttribute,\n parseObjectAttribute,\n parseTranslationAttribute,\n stringifyBlockNoteTranslationAttribute,\n stringifyTranslationAttribute,\n} from \"../../../common/data/jsonAttribute\";\n\n/**\n * The diagram declares `translation`, `abstractTranslation` and `tldrTranslation` as JSON, but\n * Neo4j cannot store nested maps as properties, so they travel the wire as JSON strings (plan\n * Global Constraints). The model parses on the way in and stringifies on the way out — the same\n * contract BlockNote fields use (`references/frontend/06-blocknote.md` § \"Model\"). BlockNote\n * values nested inside the maps are parsed here too, so nothing downstream converts.\n */\nexport function parseTranslationMap(raw: unknown): TranslationMap | undefined {\n return parseTranslationAttribute(raw);\n}\n\nexport function parseBlockNoteTranslationMap(raw: unknown): BlockNoteTranslationMap | undefined {\n return parseBlockNoteTranslationAttribute(raw);\n}\n\nexport function parseScalarTranslationMap(raw: unknown): ScalarTranslationMap | undefined {\n return parseObjectAttribute<ScalarTranslationMap>(raw);\n}\n\nexport function stringifyTranslationMap(value: unknown): string | undefined {\n return stringifyTranslationAttribute(value);\n}\n\nexport function stringifyBlockNoteTranslationMap(value: unknown): string | undefined {\n return stringifyBlockNoteTranslationAttribute(value);\n}\n\nexport function stringifyScalarTranslationMap(value: unknown): string | undefined {\n if (value === undefined || value === null) return undefined;\n if (typeof value === \"string\") return value;\n return JSON.stringify(value);\n}\n\n/**\n * Picks the reader's translated abstract (already a blocks array — the model parsed it) and\n * falls back to the original blocks when the language has no entry.\n */\nexport function resolveBlockNoteTranslation(params: {\n original: any;\n translation: BlockNoteTranslationMap | undefined;\n language: string | undefined;\n}): any {\n const value = params.language ? params.translation?.[params.language] : undefined;\n return Array.isArray(value) && value.length > 0 ? value : params.original;\n}\n","import { parseBlockNoteAttribute, serialiseTranslationFields } from \"../../../common/data/jsonAttribute\";\nimport { ArticleInput, ArticleInterface } from \"./ArticleInterface\";\nimport { CommunityOfExpertiseInterface } from \"../../../expertise/community-of-expertise/data/CommunityOfExpertiseInterface\";\nimport { TaxonomyInterface } from \"../../../expertise/taxonomy/data/TaxonomyInterface\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport {\n BlockNoteTranslationMap,\n ScalarTranslationMap,\n TranslationMap,\n} from \"../../../common/i18n/translationResolver\";\nimport {\n parseBlockNoteTranslationMap,\n parseScalarTranslationMap,\n parseTranslationMap,\n stringifyBlockNoteTranslationMap,\n stringifyScalarTranslationMap,\n stringifyTranslationMap,\n} from \"../../common/utils/translationMaps\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Article extends AbstractApiData implements ArticleInterface {\n private _name?: string;\n private _content?: any;\n private _abstract?: any;\n private _tldr?: string;\n private _aiStatus?: string;\n private _language?: string;\n private _status?: string;\n private _translation?: TranslationMap;\n private _abstractTranslation?: BlockNoteTranslationMap;\n private _tldrTranslation?: ScalarTranslationMap;\n private _communityOfExpertise?: CommunityOfExpertiseInterface;\n private _taxonomies?: TaxonomyInterface[];\n private _author?: UserInterface;\n private _editors?: UserInterface[];\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get content(): any {\n return this._content ?? [];\n }\n\n get abstract(): any {\n return this._abstract ?? [];\n }\n\n get tldr(): string {\n return this._tldr ?? \"\";\n }\n\n get aiStatus(): string {\n return this._aiStatus ?? \"\";\n }\n\n get language(): string {\n return this._language ?? \"\";\n }\n\n get status(): string {\n return this._status ?? \"\";\n }\n\n get translation(): TranslationMap {\n return this._translation ?? {};\n }\n\n get abstractTranslation(): BlockNoteTranslationMap {\n return this._abstractTranslation ?? {};\n }\n\n get tldrTranslation(): ScalarTranslationMap {\n return this._tldrTranslation ?? {};\n }\n\n get communityOfExpertise(): CommunityOfExpertiseInterface {\n if (this._communityOfExpertise === undefined)\n throw new Error(\"JsonApi error: article communityOfExpertise is missing\");\n return this._communityOfExpertise;\n }\n\n get taxonomies(): TaxonomyInterface[] {\n return this._taxonomies ?? [];\n }\n\n // Hand-relaxed: the author is only included when the payload asks for it (list cells do\n // not always), and a throwing getter would take the whole table down with it.\n get author(): UserInterface | undefined {\n return this._author;\n }\n\n get editors(): UserInterface[] {\n return this._editors ?? [];\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._content = parseBlockNoteAttribute(data.jsonApi.attributes.content);\n this._abstract = parseBlockNoteAttribute(data.jsonApi.attributes.abstract);\n this._tldr = data.jsonApi.attributes.tldr;\n this._aiStatus = data.jsonApi.attributes.aiStatus;\n this._language = data.jsonApi.attributes.language;\n this._status = data.jsonApi.attributes.status;\n this._translation = parseTranslationMap(data.jsonApi.attributes.translation);\n this._abstractTranslation = parseBlockNoteTranslationMap(data.jsonApi.attributes.abstractTranslation);\n this._tldrTranslation = parseScalarTranslationMap(data.jsonApi.attributes.tldrTranslation);\n\n this._communityOfExpertise = this._readIncluded(\n data,\n \"communityofexpertise\",\n KnowledgeModules.CommunityOfExpertise,\n ) as CommunityOfExpertiseInterface;\n this._taxonomies = this._readIncluded(data, \"taxonomies\", KnowledgeModules.Taxonomy) as TaxonomyInterface[];\n this._author = this._readIncluded(data, \"author\", Modules.User) as UserInterface;\n this._editors = this._readIncluded(data, \"editors\", Modules.User) as UserInterface[];\n\n return this;\n }\n\n createJsonApi(data: ArticleInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.Article.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.content !== undefined) response.data.attributes.content = JSON.stringify(data.content);\n if (data.abstract !== undefined) response.data.attributes.abstract = JSON.stringify(data.abstract);\n if (data.tldr !== undefined) response.data.attributes.tldr = data.tldr;\n if (data.language !== undefined) response.data.attributes.language = data.language;\n if (data.status !== undefined) response.data.attributes.status = data.status;\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationMap(data.translation);\n if (data.abstractTranslation !== undefined)\n response.data.attributes.abstractTranslation = stringifyBlockNoteTranslationMap(data.abstractTranslation);\n if (data.tldrTranslation !== undefined)\n response.data.attributes.tldrTranslation = stringifyScalarTranslationMap(data.tldrTranslation);\n\n if (data.communityOfExpertiseId) {\n response.data.relationships.communityofexpertise = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.communityOfExpertiseId,\n },\n };\n }\n if (data.taxonomyIds && data.taxonomyIds.length > 0) {\n response.data.relationships.taxonomies = {\n data: data.taxonomyIds.map((id) => ({\n type: KnowledgeModules.Taxonomy.name,\n id,\n })),\n };\n }\n if (data.editorIds && data.editorIds.length > 0) {\n response.data.relationships.editors = {\n data: data.editorIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n\n return response;\n }\n\n /**\n * Body of `PATCH articles/:id/translations` (C4). `_id` on AbstractApiData is protected with\n * no setter, so the id travels as a parameter — the same shape as `createAddPhotoJsonApi`\n * in `references/frontend/01-models.md`.\n */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.Article.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n}\n","import { Modules, type ModuleWithPermissions } from \"@carlonicora/nextjs-jsonapi/core\";\n\n/** The nine registry entries the knowledge screens read. The type and the registration check both derive from it. */\nexport const KNOWLEDGE_MODULE_NAMES = [\n \"AccessRequest\",\n \"Article\",\n \"Cluster\",\n \"CommunityOfExpertise\",\n \"Discussion\",\n \"DiscussionReply\",\n \"Document\",\n \"ExpertiseSkill\",\n \"Taxonomy\",\n] as const;\n\nexport type KnowledgeModuleName = (typeof KNOWLEDGE_MODULE_NAMES)[number];\n\nconst NAMES: ReadonlySet<PropertyKey> = new Set<PropertyKey>(KNOWLEDGE_MODULE_NAMES);\n\n/**\n * The nine knowledge registry entries, typed without the app's `AppModuleDefinitions`\n * augmentation. Each read goes to `Modules`; a name the app did not register fails on\n * first access with an error naming this package.\n */\nexport const KnowledgeModules = new Proxy({} as { readonly [K in KnowledgeModuleName]: ModuleWithPermissions }, {\n get(_target, prop) {\n if (!NAMES.has(prop)) return Reflect.get(Modules, prop);\n\n let module: unknown;\n try {\n module = Reflect.get(Modules, prop);\n } catch (cause) {\n throw new Error(`nja-knowledge: module \"${String(prop)}\" is not registered`, { cause });\n }\n if (!module) throw new Error(`nja-knowledge: module \"${String(prop)}\" is not registered`);\n return module;\n },\n});\n","/**\n * Route segments the API mounts under an entity (`<endpoint>/:id/<segment>`), shared by the API\n * controllers' route paths and the web services' `EndpointCreator` `childEndpoint`, so each\n * string exists in one place.\n */\nexport const KNOWLEDGE_ENDPOINT_SEGMENTS = {\n propose: \"propose\",\n approve: \"approve\",\n reject: \"reject\",\n translations: \"translations\",\n directory: \"directory\",\n accessRequests: \"access-requests\",\n members: \"members\",\n managers: \"managers\",\n replies: \"replies\",\n role: \"role\",\n} as const;\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { ArticleInput, ArticleInterface } from \"./ArticleInterface\";\nimport { Article } from \"./Article\";\nimport { Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class ArticleService extends AbstractService {\n static async findOne(params: { id: string }): Promise<ArticleInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.id });\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n return this.callApi<ArticleInterface>({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ArticleInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Article });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByCommunityOfExpertise(params: {\n communityOfExpertiseId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ArticleInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.communityOfExpertiseId,\n childEndpoint: KnowledgeModules.Article,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByTaxonomy(params: {\n taxonomyId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ArticleInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.taxonomyId,\n childEndpoint: KnowledgeModules.Article,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByAuthor(params: {\n authorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ArticleInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.authorId,\n childEndpoint: KnowledgeModules.Article,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByEditor(params: {\n editorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ArticleInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.editorId,\n childEndpoint: `edited-${KnowledgeModules.Article.name}`,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Article.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Article.inclusions.lists.fields);\n if (KnowledgeModules.Article.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Article.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: ArticleInput): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article }).generate(),\n input: params,\n });\n }\n\n static async update(params: ArticleInput): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<ArticleInput, \"id\">>): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { articleId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Article, id: params.articleId }).generate(),\n });\n }\n\n /**\n * Editorial workflow (C4 / spec §5.2). The API enforces who may act; a caller without the\n * right gets a 403 that the UI surfaces as a toast.\n */\n static async propose(params: { id: string }): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Article,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.propose,\n }).generate(),\n });\n }\n\n static async approve(params: { id: string }): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Article,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.approve,\n }).generate(),\n });\n }\n\n static async reject(params: { id: string }): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Article,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.reject,\n }).generate(),\n });\n }\n\n /** `PATCH articles/:id/translations` — body built by the model, never by hand (C9). */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Article,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Article().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum ArticleFields {\n articleId = \"articleId\",\n\n name = \"name\",\n content = \"content\",\n abstract = \"abstract\",\n tldr = \"tldr\",\n aiStatus = \"aiStatus\",\n language = \"language\",\n status = \"status\",\n translation = \"translation\",\n abstractTranslation = \"abstractTranslation\",\n tldrTranslation = \"tldrTranslation\",\n\n communityOfExpertise = \"communityOfExpertise\",\n taxonomies = \"taxonomies\",\n author = \"author\",\n editors = \"editors\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","export const KNOWLEDGE_MODULE_IDS = {\n Cluster: \"678cdb6d-1b1d-4ef3-afc4-a347894cd1ed\",\n CommunityOfExpertise: \"e76477e3-2867-4fd3-a4ee-e627008bda74\",\n Taxonomy: \"580ecdce-36ea-42ac-9528-1851c35240e9\",\n ExpertiseSkill: \"23d582a6-f124-4aed-bb25-a38d6ef69481\",\n Document: \"f8db20d2-aa60-440f-9370-f4b9e79694fc\",\n Article: \"ef652356-4c38-4f69-ae9a-d3e7474e3e26\",\n Discussion: \"7c61e8b5-f29b-4776-8156-5284ef19ee78\",\n DiscussionReply: \"bdf6a775-c8c9-4836-a24e-1b20412a175e\",\n} as const;\n","import { parseBlockNoteAttribute, serialiseTranslationFields } from \"../../../common/data/jsonAttribute\";\nimport { DiscussionInput, DiscussionInterface } from \"./DiscussionInterface\";\nimport { CommunityOfExpertiseInterface } from \"../../../expertise/community-of-expertise/data/CommunityOfExpertiseInterface\";\nimport { TaxonomyInterface } from \"../../../expertise/taxonomy/data/TaxonomyInterface\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { ArticleInterface } from \"../../article/data/ArticleInterface\";\nimport {\n BlockNoteTranslationMap,\n ScalarTranslationMap,\n TranslationMap,\n} from \"../../../common/i18n/translationResolver\";\nimport {\n parseBlockNoteTranslationMap,\n parseScalarTranslationMap,\n parseTranslationMap,\n stringifyBlockNoteTranslationMap,\n stringifyScalarTranslationMap,\n stringifyTranslationMap,\n} from \"../../common/utils/translationMaps\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Discussion extends AbstractApiData implements DiscussionInterface {\n private _name?: string;\n private _content?: any;\n private _abstract?: any;\n private _tldr?: string;\n private _aiStatus?: string;\n private _language?: string;\n private _status?: string;\n private _translation?: TranslationMap;\n private _abstractTranslation?: BlockNoteTranslationMap;\n private _tldrTranslation?: ScalarTranslationMap;\n private _communityOfExpertise?: CommunityOfExpertiseInterface;\n private _taxonomies?: TaxonomyInterface[];\n private _author?: UserInterface;\n private _article?: ArticleInterface;\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get content(): any {\n return this._content ?? [];\n }\n\n get abstract(): any {\n return this._abstract ?? [];\n }\n\n get tldr(): string {\n return this._tldr ?? \"\";\n }\n\n get aiStatus(): string {\n return this._aiStatus ?? \"\";\n }\n\n get language(): string {\n return this._language ?? \"\";\n }\n\n get status(): string {\n return this._status ?? \"\";\n }\n\n get translation(): TranslationMap {\n return this._translation ?? {};\n }\n\n get abstractTranslation(): BlockNoteTranslationMap {\n return this._abstractTranslation ?? {};\n }\n\n get tldrTranslation(): ScalarTranslationMap {\n return this._tldrTranslation ?? {};\n }\n\n get communityOfExpertise(): CommunityOfExpertiseInterface {\n if (this._communityOfExpertise === undefined)\n throw new Error(\"JsonApi error: discussion communityOfExpertise is missing\");\n return this._communityOfExpertise;\n }\n\n get taxonomies(): TaxonomyInterface[] {\n return this._taxonomies ?? [];\n }\n\n // Hand-relaxed: the author is only included when the payload asks for it (list cells do\n // not always), and a throwing getter would take the whole table down with it.\n get author(): UserInterface | undefined {\n return this._author;\n }\n\n get article(): ArticleInterface | undefined {\n return this._article;\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._content = parseBlockNoteAttribute(data.jsonApi.attributes.content);\n this._abstract = parseBlockNoteAttribute(data.jsonApi.attributes.abstract);\n this._tldr = data.jsonApi.attributes.tldr;\n this._aiStatus = data.jsonApi.attributes.aiStatus;\n this._language = data.jsonApi.attributes.language;\n this._status = data.jsonApi.attributes.status;\n this._translation = parseTranslationMap(data.jsonApi.attributes.translation);\n this._abstractTranslation = parseBlockNoteTranslationMap(data.jsonApi.attributes.abstractTranslation);\n this._tldrTranslation = parseScalarTranslationMap(data.jsonApi.attributes.tldrTranslation);\n\n this._communityOfExpertise = this._readIncluded(\n data,\n \"communityofexpertise\",\n KnowledgeModules.CommunityOfExpertise,\n ) as CommunityOfExpertiseInterface;\n this._taxonomies = this._readIncluded(data, \"taxonomies\", KnowledgeModules.Taxonomy) as TaxonomyInterface[];\n this._author = this._readIncluded(data, \"author\", Modules.User) as UserInterface;\n this._article = this._readIncluded(data, \"article\", KnowledgeModules.Article) as ArticleInterface | undefined;\n\n return this;\n }\n\n createJsonApi(data: DiscussionInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.Discussion.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.content !== undefined) response.data.attributes.content = JSON.stringify(data.content);\n if (data.abstract !== undefined) response.data.attributes.abstract = JSON.stringify(data.abstract);\n if (data.tldr !== undefined) response.data.attributes.tldr = data.tldr;\n if (data.language !== undefined) response.data.attributes.language = data.language;\n if (data.status !== undefined) response.data.attributes.status = data.status;\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationMap(data.translation);\n if (data.abstractTranslation !== undefined)\n response.data.attributes.abstractTranslation = stringifyBlockNoteTranslationMap(data.abstractTranslation);\n if (data.tldrTranslation !== undefined)\n response.data.attributes.tldrTranslation = stringifyScalarTranslationMap(data.tldrTranslation);\n\n if (data.communityOfExpertiseId) {\n response.data.relationships.communityofexpertise = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.communityOfExpertiseId,\n },\n };\n }\n if (data.taxonomyIds && data.taxonomyIds.length > 0) {\n response.data.relationships.taxonomies = {\n data: data.taxonomyIds.map((id) => ({\n type: KnowledgeModules.Taxonomy.name,\n id,\n })),\n };\n }\n if (data.articleId) {\n response.data.relationships.article = {\n data: {\n type: KnowledgeModules.Article.name,\n id: data.articleId,\n },\n };\n }\n\n return response;\n }\n\n /**\n * Body of `PATCH discussions/:id/translations` (C4). `_id` on AbstractApiData is protected with\n * no setter, so the id travels as a parameter — the same shape as `createAddPhotoJsonApi`\n * in `references/frontend/01-models.md`.\n */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.Discussion.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { DiscussionInput, DiscussionInterface } from \"./DiscussionInterface\";\nimport { ArticleInterface } from \"../../article/data/ArticleInterface\";\nimport { Discussion } from \"./Discussion\";\nimport { Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class DiscussionService extends AbstractService {\n static async findOne(params: { id: string }): Promise<DiscussionInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Discussion, id: params.id });\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n return this.callApi<DiscussionInterface>({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Discussion });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByCommunityOfExpertise(params: {\n communityOfExpertiseId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.communityOfExpertiseId,\n childEndpoint: KnowledgeModules.Discussion,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByTaxonomy(params: {\n taxonomyId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.taxonomyId,\n childEndpoint: KnowledgeModules.Discussion,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByAuthor(params: {\n authorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.authorId,\n childEndpoint: KnowledgeModules.Discussion,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByArticle(params: {\n articleId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Article,\n id: params.articleId,\n childEndpoint: KnowledgeModules.Discussion,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Discussion.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Discussion.inclusions.lists.fields);\n if (KnowledgeModules.Discussion.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Discussion.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: DiscussionInput): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Discussion }).generate(),\n input: params,\n });\n }\n\n static async update(params: DiscussionInput): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Discussion, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<DiscussionInput, \"id\">>): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Discussion, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { discussionId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Discussion, id: params.discussionId }).generate(),\n });\n }\n\n /**\n * Editorial workflow (C4 / spec §5.2). The API enforces who may act; a caller without the\n * right gets a 403 that the UI surfaces as a toast.\n */\n static async propose(params: { id: string }): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.propose,\n }).generate(),\n });\n }\n\n static async approve(params: { id: string }): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.approve,\n }).generate(),\n });\n }\n\n static async reject(params: { id: string }): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.reject,\n }).generate(),\n });\n }\n\n /** `PATCH discussions/:id/translations` — body built by the model, never by hand (C9). */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Discussion().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n\n /**\n * `PATCH discussions/:id/replies/:replyId/approve` (C4). The route carries a trailing verb\n * after the child id, which `EndpointCreator` models as part of `childId`.\n */\n static async approveReply(params: { id: string; replyId: string }): Promise<DiscussionInterface> {\n return this.callApi({\n type: KnowledgeModules.Discussion,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.replies,\n childId: `${params.replyId}/${KNOWLEDGE_ENDPOINT_SEGMENTS.approve}`,\n }).generate(),\n });\n }\n\n /** `POST discussions/:id/articles` — returns the Article the discussion generated (spec §5.2). */\n static async generateArticle(params: { id: string }): Promise<ArticleInterface> {\n return this.callApi({\n type: KnowledgeModules.Article,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.id,\n childEndpoint: KnowledgeModules.Article,\n }).generate(),\n });\n }\n}\n","export enum DiscussionFields {\n discussionId = \"discussionId\",\n\n name = \"name\",\n content = \"content\",\n abstract = \"abstract\",\n tldr = \"tldr\",\n aiStatus = \"aiStatus\",\n language = \"language\",\n status = \"status\",\n translation = \"translation\",\n abstractTranslation = \"abstractTranslation\",\n tldrTranslation = \"tldrTranslation\",\n\n communityOfExpertise = \"communityOfExpertise\",\n taxonomies = \"taxonomies\",\n author = \"author\",\n article = \"article\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { DiscussionReplyInput, DiscussionReplyInterface } from \"./DiscussionReplyInterface\";\nimport { Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class DiscussionReplyService extends AbstractService {\n static async findOne(params: { id: string }): Promise<DiscussionReplyInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.DiscussionReply, id: params.id });\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);\n return this.callApi<DiscussionReplyInterface>({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionReplyInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.DiscussionReply });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByDiscussion(params: {\n discussionId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionReplyInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Discussion,\n id: params.discussionId,\n childEndpoint: KnowledgeModules.DiscussionReply,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByAuthor(params: {\n authorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DiscussionReplyInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.authorId,\n childEndpoint: KnowledgeModules.DiscussionReply,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.DiscussionReply.inclusions.lists.fields);\n if (KnowledgeModules.DiscussionReply.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.DiscussionReply.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: DiscussionReplyInput): Promise<DiscussionReplyInterface> {\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.DiscussionReply }).generate(),\n input: params,\n });\n }\n\n static async update(params: DiscussionReplyInput): Promise<DiscussionReplyInterface> {\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.DiscussionReply, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(\n params: { id: string } & Partial<Omit<DiscussionReplyInput, \"id\">>,\n ): Promise<DiscussionReplyInterface> {\n return this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.DiscussionReply, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { discussionReplyId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.DiscussionReply,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.DiscussionReply,\n id: params.discussionReplyId,\n }).generate(),\n });\n }\n}\n","export enum DiscussionReplyFields {\n discussionReplyId = \"discussionReplyId\",\n\n content = \"content\",\n translation = \"translation\",\n\n discussion = \"discussion\",\n author = \"author\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import { parseBlockNoteAttribute, serialiseTranslationFields } from \"../../../common/data/jsonAttribute\";\nimport { DocumentInput, DocumentInterface } from \"./DocumentInterface\";\nimport { CommunityOfExpertiseInterface } from \"../../../expertise/community-of-expertise/data/CommunityOfExpertiseInterface\";\nimport { TaxonomyInterface } from \"../../../expertise/taxonomy/data/TaxonomyInterface\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport {\n BlockNoteTranslationMap,\n ScalarTranslationMap,\n TranslationMap,\n} from \"../../../common/i18n/translationResolver\";\nimport {\n parseBlockNoteTranslationMap,\n parseScalarTranslationMap,\n parseTranslationMap,\n stringifyBlockNoteTranslationMap,\n stringifyScalarTranslationMap,\n stringifyTranslationMap,\n} from \"../../common/utils/translationMaps\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Document extends AbstractApiData implements DocumentInterface {\n private _name?: string;\n private _url?: string;\n private _abstract?: any;\n private _tldr?: string;\n private _aiStatus?: string;\n private _language?: string;\n private _status?: string;\n private _translation?: TranslationMap;\n private _abstractTranslation?: BlockNoteTranslationMap;\n private _tldrTranslation?: ScalarTranslationMap;\n private _communityOfExpertise?: CommunityOfExpertiseInterface;\n private _taxonomies?: TaxonomyInterface[];\n private _author?: UserInterface;\n private _editors?: UserInterface[];\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get url(): string {\n return this._url ?? \"\";\n }\n\n get abstract(): any {\n return this._abstract ?? [];\n }\n\n get tldr(): string {\n return this._tldr ?? \"\";\n }\n\n get aiStatus(): string {\n return this._aiStatus ?? \"\";\n }\n\n get language(): string {\n return this._language ?? \"\";\n }\n\n get status(): string {\n return this._status ?? \"\";\n }\n\n get translation(): TranslationMap {\n return this._translation ?? {};\n }\n\n get abstractTranslation(): BlockNoteTranslationMap {\n return this._abstractTranslation ?? {};\n }\n\n get tldrTranslation(): ScalarTranslationMap {\n return this._tldrTranslation ?? {};\n }\n\n get communityOfExpertise(): CommunityOfExpertiseInterface {\n if (this._communityOfExpertise === undefined)\n throw new Error(\"JsonApi error: document communityOfExpertise is missing\");\n return this._communityOfExpertise;\n }\n\n get taxonomies(): TaxonomyInterface[] {\n return this._taxonomies ?? [];\n }\n\n // Hand-relaxed: the author is only included when the payload asks for it (list cells do\n // not always), and a throwing getter would take the whole table down with it.\n get author(): UserInterface | undefined {\n return this._author;\n }\n\n get editors(): UserInterface[] {\n return this._editors ?? [];\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._url = data.jsonApi.attributes.url;\n this._abstract = parseBlockNoteAttribute(data.jsonApi.attributes.abstract);\n this._tldr = data.jsonApi.attributes.tldr;\n this._aiStatus = data.jsonApi.attributes.aiStatus;\n this._language = data.jsonApi.attributes.language;\n this._status = data.jsonApi.attributes.status;\n this._translation = parseTranslationMap(data.jsonApi.attributes.translation);\n this._abstractTranslation = parseBlockNoteTranslationMap(data.jsonApi.attributes.abstractTranslation);\n this._tldrTranslation = parseScalarTranslationMap(data.jsonApi.attributes.tldrTranslation);\n\n this._communityOfExpertise = this._readIncluded(\n data,\n \"communityofexpertise\",\n KnowledgeModules.CommunityOfExpertise,\n ) as CommunityOfExpertiseInterface;\n this._taxonomies = this._readIncluded(data, \"taxonomies\", KnowledgeModules.Taxonomy) as TaxonomyInterface[];\n this._author = this._readIncluded(data, \"author\", Modules.User) as UserInterface;\n this._editors = this._readIncluded(data, \"editors\", Modules.User) as UserInterface[];\n\n return this;\n }\n\n createJsonApi(data: DocumentInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.Document.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.url !== undefined) response.data.attributes.url = data.url;\n if (data.abstract !== undefined) response.data.attributes.abstract = JSON.stringify(data.abstract);\n if (data.tldr !== undefined) response.data.attributes.tldr = data.tldr;\n if (data.language !== undefined) response.data.attributes.language = data.language;\n if (data.status !== undefined) response.data.attributes.status = data.status;\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationMap(data.translation);\n if (data.abstractTranslation !== undefined)\n response.data.attributes.abstractTranslation = stringifyBlockNoteTranslationMap(data.abstractTranslation);\n if (data.tldrTranslation !== undefined)\n response.data.attributes.tldrTranslation = stringifyScalarTranslationMap(data.tldrTranslation);\n\n if (data.communityOfExpertiseId) {\n response.data.relationships.communityofexpertise = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.communityOfExpertiseId,\n },\n };\n }\n if (data.taxonomyIds && data.taxonomyIds.length > 0) {\n response.data.relationships.taxonomies = {\n data: data.taxonomyIds.map((id) => ({\n type: KnowledgeModules.Taxonomy.name,\n id,\n })),\n };\n }\n if (data.editorIds && data.editorIds.length > 0) {\n response.data.relationships.editors = {\n data: data.editorIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n\n return response;\n }\n\n /**\n * Body of `PATCH documents/:id/translations` (C4). `_id` on AbstractApiData is protected with\n * no setter, so the id travels as a parameter — the same shape as `createAddPhotoJsonApi`\n * in `references/frontend/01-models.md`.\n */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.Document.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { DocumentInput, DocumentInterface } from \"./DocumentInterface\";\nimport { Document } from \"./Document\";\nimport { Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class DocumentService extends AbstractService {\n static async findOne(params: { id: string }): Promise<DocumentInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Document, id: params.id });\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n return this.callApi<DocumentInterface>({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DocumentInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Document });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByCommunityOfExpertise(params: {\n communityOfExpertiseId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DocumentInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.communityOfExpertiseId,\n childEndpoint: KnowledgeModules.Document,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByTaxonomy(params: {\n taxonomyId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DocumentInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.taxonomyId,\n childEndpoint: KnowledgeModules.Document,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByAuthor(params: {\n authorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DocumentInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.authorId,\n childEndpoint: KnowledgeModules.Document,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByEditor(params: {\n editorId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<DocumentInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.editorId,\n childEndpoint: `edited-${KnowledgeModules.Document.name}`,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Document.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Document.inclusions.lists.fields);\n if (KnowledgeModules.Document.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Document.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: DocumentInput): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Document }).generate(),\n input: params,\n });\n }\n\n static async update(params: DocumentInput): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Document, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<DocumentInput, \"id\">>): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Document, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { documentId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Document, id: params.documentId }).generate(),\n });\n }\n\n /**\n * Editorial workflow (C4 / spec §5.2). The API enforces who may act; a caller without the\n * right gets a 403 that the UI surfaces as a toast.\n */\n static async propose(params: { id: string }): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Document,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.propose,\n }).generate(),\n });\n }\n\n static async approve(params: { id: string }): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Document,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.approve,\n }).generate(),\n });\n }\n\n static async reject(params: { id: string }): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Document,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.reject,\n }).generate(),\n });\n }\n\n /** `PATCH documents/:id/translations` — body built by the model, never by hand (C9). */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<DocumentInterface> {\n return this.callApi({\n type: KnowledgeModules.Document,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Document,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Document().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum DocumentFields {\n documentId = \"documentId\",\n\n name = \"name\",\n url = \"url\",\n abstract = \"abstract\",\n tldr = \"tldr\",\n aiStatus = \"aiStatus\",\n language = \"language\",\n status = \"status\",\n translation = \"translation\",\n abstractTranslation = \"abstractTranslation\",\n tldrTranslation = \"tldrTranslation\",\n\n communityOfExpertise = \"communityOfExpertise\",\n taxonomies = \"taxonomies\",\n author = \"author\",\n editors = \"editors\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import {\n parseBlockNoteAttribute,\n parseTranslationAttribute,\n serialiseTranslationFields,\n stringifyTranslationAttribute,\n} from \"../../../common/data/jsonAttribute\";\nimport { TranslationMap } from \"../../../common/i18n/translationResolver\";\nimport { ClusterInput, ClusterInterface } from \"./ClusterInterface\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Cluster extends AbstractApiData implements ClusterInterface {\n private _name?: string;\n private _description?: any;\n private _isGlobal?: boolean;\n private _translation?: TranslationMap;\n private _parent?: ClusterInterface;\n private _members?: UserInterface[];\n private _managers?: UserInterface[];\n private _requesters?: UserInterface[];\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get description(): any {\n return this._description ?? [];\n }\n\n get isGlobal(): boolean {\n return this._isGlobal ?? false;\n }\n\n get translation(): TranslationMap | undefined {\n return this._translation;\n }\n\n get parent(): ClusterInterface | undefined {\n return this._parent;\n }\n\n get members(): UserInterface[] {\n return this._members ?? [];\n }\n\n get managers(): UserInterface[] {\n return this._managers ?? [];\n }\n\n get requesters(): UserInterface[] {\n return this._requesters ?? [];\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);\n this._isGlobal = data.jsonApi.attributes.isGlobal;\n this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);\n\n this._parent = this._readIncluded(data, \"parent\", KnowledgeModules.Cluster) as ClusterInterface | undefined;\n this._members = this._readIncluded(data, \"members\", Modules.User) as UserInterface[];\n this._managers = this._readIncluded(data, \"managers\", Modules.User) as UserInterface[];\n this._requesters = this._readIncluded(data, \"requesters\", Modules.User) as UserInterface[];\n\n return this;\n }\n\n createJsonApi(data: ClusterInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.Cluster.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.description !== undefined) response.data.attributes.description = JSON.stringify(data.description);\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationAttribute(data.translation);\n\n if (data.parentId) {\n response.data.relationships.parent = {\n data: {\n type: KnowledgeModules.Cluster.name,\n id: data.parentId,\n },\n };\n }\n if (data.memberIds && data.memberIds.length > 0) {\n response.data.relationships.members = {\n data: data.memberIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n if (data.managerIds && data.managerIds.length > 0) {\n response.data.relationships.managers = {\n data: data.managerIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n if (data.requesterIds && data.requesterIds.length > 0) {\n response.data.relationships.requesters = {\n data: data.requesterIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n\n return response;\n }\n\n /**\n * `PATCH clusters/:id/translations` body. `_id` on AbstractApiData is protected\n * with no setter, so the id travels as a parameter — same shape as the\n * framework's `createAddPhotoJsonApi`.\n */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.Cluster.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { Cluster } from \"./Cluster\";\nimport { ClusterInput, ClusterInterface } from \"./ClusterInterface\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class ClusterService extends AbstractService {\n static async findOne(params: { id: string }): Promise<ClusterInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Cluster, id: params.id });\n if (KnowledgeModules.Cluster.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Cluster.inclusions.lists.fields);\n if (KnowledgeModules.Cluster.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Cluster.inclusions.lists.types);\n return this.callApi<ClusterInterface>({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ClusterInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Cluster });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Cluster.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Cluster.inclusions.lists.fields);\n if (KnowledgeModules.Cluster.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Cluster.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByParent(params: {\n parentId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<ClusterInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.parentId,\n childEndpoint: KnowledgeModules.Cluster,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Cluster.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Cluster.inclusions.lists.fields);\n if (KnowledgeModules.Cluster.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Cluster.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async create(params: ClusterInput): Promise<ClusterInterface> {\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Cluster }).generate(),\n input: params,\n });\n }\n\n static async update(params: ClusterInput): Promise<ClusterInterface> {\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Cluster, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<ClusterInput, \"id\">>): Promise<ClusterInterface> {\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Cluster, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { clusterId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Cluster, id: params.clusterId }).generate(),\n });\n }\n\n /** `GET clusters/directory` — every cluster in the company, access filter off. */\n static async findDirectory(params: { search?: string } = {}): Promise<ClusterInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.directory,\n });\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n /** `POST clusters/:id/access-requests` — the current user asks to join. */\n static async requestAccess(params: { id: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests,\n }).generate(),\n });\n }\n\n /** `DELETE clusters/:id/access-requests/:userId` — manager rejects, or the requester withdraws. */\n static async rejectAccess(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `POST clusters/:id/members/:userId` — manager approves the request. */\n static async approveAccess(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /**\n * `POST clusters/:id/members/:userId` — the same route as `approveAccess`: the API\n * creates PART_OF and drops any pending request, so a manager can add a member\n * directly without a request existing.\n */\n static async addMember(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `DELETE clusters/:id/members/:userId`. */\n static async removeMember(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `POST clusters/:id/managers/:userId`. */\n static async addManager(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `DELETE clusters/:id/managers/:userId`. */\n static async removeManager(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `PATCH clusters/:id/translations` — merges one language into the stored maps. */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<ClusterInterface> {\n return this.callApi({\n type: KnowledgeModules.Cluster,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Cluster().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum ClusterFields {\n clusterId = \"clusterId\",\n\n name = \"name\",\n description = \"description\",\n isGlobal = \"isGlobal\",\n translation = \"translation\",\n\n parent = \"parent\",\n members = \"members\",\n managers = \"managers\",\n requesters = \"requesters\",\n\n // Row actions column, driven by ContentListTable's `context` (directory rows).\n actions = \"actions\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import {\n parseBlockNoteAttribute,\n parseTranslationAttribute,\n serialiseTranslationFields,\n stringifyTranslationAttribute,\n} from \"../../../common/data/jsonAttribute\";\nimport {\n CommunityMemberMeta,\n CommunityOfExpertiseInput,\n CommunityOfExpertiseInterface,\n} from \"./CommunityOfExpertiseInterface\";\nimport { ClusterInterface } from \"../../cluster/data/ClusterInterface\";\nimport { TranslationMap } from \"../../../common/i18n/translationResolver\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class CommunityOfExpertise extends AbstractApiData implements CommunityOfExpertiseInterface {\n private _name?: string;\n private _description?: any;\n private _image?: string;\n private _translation?: TranslationMap;\n private _cluster?: ClusterInterface;\n private _parent?: CommunityOfExpertiseInterface;\n private _members?: (UserInterface & CommunityMemberMeta)[];\n private _managers?: UserInterface[];\n private _requesters?: UserInterface[];\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get description(): any {\n return this._description ?? [];\n }\n\n get image(): string {\n return this._image ?? \"\";\n }\n\n get translation(): TranslationMap | undefined {\n return this._translation;\n }\n\n get cluster(): ClusterInterface {\n if (this._cluster === undefined) throw new Error(\"JsonApi error: communityOfExpertise cluster is missing\");\n return this._cluster;\n }\n\n get parent(): CommunityOfExpertiseInterface | undefined {\n return this._parent;\n }\n\n get members(): (UserInterface & CommunityMemberMeta)[] {\n return this._members ?? [];\n }\n\n get managers(): UserInterface[] {\n return this._managers ?? [];\n }\n\n get requesters(): UserInterface[] {\n return this._requesters ?? [];\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);\n this._image = data.jsonApi.attributes.image;\n this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);\n\n this._cluster = this._readIncluded(data, \"cluster\", KnowledgeModules.Cluster) as ClusterInterface;\n this._parent = this._readIncluded(data, \"parent\", KnowledgeModules.CommunityOfExpertise) as\n CommunityOfExpertiseInterface | undefined;\n // HAS_EXPERTISE carries `role`, so the members come back through the meta reader.\n this._members = this._readIncludedWithMeta<UserInterface, CommunityMemberMeta>(\n data,\n \"members\",\n Modules.User,\n ) as (UserInterface & CommunityMemberMeta)[];\n this._managers = this._readIncluded(data, \"managers\", Modules.User) as UserInterface[];\n this._requesters = this._readIncluded(data, \"requesters\", Modules.User) as UserInterface[];\n\n return this;\n }\n\n createJsonApi(data: CommunityOfExpertiseInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.description !== undefined) response.data.attributes.description = JSON.stringify(data.description);\n if (data.image !== undefined) response.data.attributes.image = data.image;\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationAttribute(data.translation);\n\n if (data.clusterId) {\n response.data.relationships.cluster = {\n data: {\n type: KnowledgeModules.Cluster.name,\n id: data.clusterId,\n },\n };\n }\n if (data.parentId) {\n response.data.relationships.parent = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.parentId,\n },\n };\n }\n if (data.memberIds && data.memberIds.length > 0) {\n response.data.relationships.members = {\n data: data.memberIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n if (data.managerIds && data.managerIds.length > 0) {\n response.data.relationships.managers = {\n data: data.managerIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n if (data.requesterIds && data.requesterIds.length > 0) {\n response.data.relationships.requesters = {\n data: data.requesterIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n\n return response;\n }\n\n /** `PATCH communities-of-expertise/:id/translations` body. */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n\n /** `PATCH communities-of-expertise/:id/members/:userId/role` body. */\n createRoleJsonApi(params: { id: string; role: string }) {\n return {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: params.id,\n attributes: {\n role: params.role,\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { CommunityOfExpertise } from \"./CommunityOfExpertise\";\nimport { CommunityOfExpertiseInput, CommunityOfExpertiseInterface } from \"./CommunityOfExpertiseInterface\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class CommunityOfExpertiseService extends AbstractService {\n static async findOne(params: { id: string }): Promise<CommunityOfExpertiseInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.CommunityOfExpertise, id: params.id });\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);\n return this.callApi<CommunityOfExpertiseInterface>({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<CommunityOfExpertiseInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.CommunityOfExpertise });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByCluster(params: {\n clusterId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<CommunityOfExpertiseInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Cluster,\n id: params.clusterId,\n childEndpoint: KnowledgeModules.CommunityOfExpertise,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByParent(params: {\n parentId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<CommunityOfExpertiseInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.parentId,\n childEndpoint: KnowledgeModules.CommunityOfExpertise,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.CommunityOfExpertise.inclusions.lists.fields);\n if (KnowledgeModules.CommunityOfExpertise.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.CommunityOfExpertise.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async create(params: CommunityOfExpertiseInput): Promise<CommunityOfExpertiseInterface> {\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.CommunityOfExpertise }).generate(),\n input: params,\n });\n }\n\n static async update(params: CommunityOfExpertiseInput): Promise<CommunityOfExpertiseInterface> {\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.CommunityOfExpertise, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(\n params: { id: string } & Partial<Omit<CommunityOfExpertiseInput, \"id\">>,\n ): Promise<CommunityOfExpertiseInterface> {\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.CommunityOfExpertise, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { communityOfExpertiseId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.communityOfExpertiseId,\n }).generate(),\n });\n }\n\n /** `GET communities-of-expertise/directory` — every community, access filter off. */\n static async findDirectory(params: { search?: string } = {}): Promise<CommunityOfExpertiseInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.directory,\n });\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n /** `POST communities-of-expertise/:id/access-requests`. */\n static async requestAccess(params: { id: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests,\n }).generate(),\n });\n }\n\n /** `DELETE communities-of-expertise/:id/access-requests/:userId`. */\n static async rejectAccess(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.accessRequests,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `POST communities-of-expertise/:id/members/:userId` — approves a request, role `member`. */\n static async approveAccess(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `DELETE communities-of-expertise/:id/members/:userId`. */\n static async removeMember(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /**\n * `PATCH communities-of-expertise/:id/members/:userId/role`.\n *\n * `EndpointCreator` stops at `childId`, so the trailing verb rides on it —\n * the endpoint is still built from the module meta, never hardcoded.\n */\n static async updateMemberRole(params: { id: string; userId: string; role: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.members,\n childId: `${params.userId}/${KNOWLEDGE_ENDPOINT_SEGMENTS.role}`,\n }).generate(),\n input: new CommunityOfExpertise().createRoleJsonApi({ id: params.id, role: params.role }),\n overridesJsonApiCreation: true,\n });\n }\n\n /** Adds a member and, when the role is not the default, sets it (C4 has no combined route). */\n static async addMember(params: { id: string; userId: string; role: string }): Promise<void> {\n await this.approveAccess({ id: params.id, userId: params.userId });\n await this.updateMemberRole(params);\n }\n\n /** `POST communities-of-expertise/:id/managers/:userId`. */\n static async addManager(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `DELETE communities-of-expertise/:id/managers/:userId`. */\n static async removeManager(params: { id: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.managers,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /** `PATCH communities-of-expertise/:id/translations`. */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<CommunityOfExpertiseInterface> {\n return this.callApi({\n type: KnowledgeModules.CommunityOfExpertise,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new CommunityOfExpertise().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum CommunityOfExpertiseFields {\n communityOfExpertiseId = \"communityOfExpertiseId\",\n\n name = \"name\",\n description = \"description\",\n image = \"image\",\n translation = \"translation\",\n\n cluster = \"cluster\",\n parent = \"parent\",\n members = \"members\",\n managers = \"managers\",\n requesters = \"requesters\",\n\n // Row actions column, driven by ContentListTable's `context` (directory rows).\n actions = \"actions\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import {\n parseBlockNoteAttribute,\n parseTranslationAttribute,\n serialiseTranslationFields,\n stringifyTranslationAttribute,\n} from \"../../../common/data/jsonAttribute\";\nimport { TranslationMap } from \"../../../common/i18n/translationResolver\";\nimport { TaxonomyInput, TaxonomyInterface } from \"./TaxonomyInterface\";\nimport { CommunityOfExpertiseInterface } from \"../../community-of-expertise/data/CommunityOfExpertiseInterface\";\nimport { AbstractApiData, JsonApiHydratedDataInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Taxonomy extends AbstractApiData implements TaxonomyInterface {\n private _name?: string;\n private _description?: any;\n private _translation?: TranslationMap;\n private _parent?: TaxonomyInterface;\n private _communityOfExpertise?: CommunityOfExpertiseInterface;\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get description(): any {\n return this._description ?? [];\n }\n\n get translation(): TranslationMap | undefined {\n return this._translation;\n }\n\n get parent(): TaxonomyInterface | undefined {\n return this._parent;\n }\n\n get communityOfExpertise(): CommunityOfExpertiseInterface {\n if (this._communityOfExpertise === undefined)\n throw new Error(\"JsonApi error: taxonomy communityOfExpertise is missing\");\n return this._communityOfExpertise;\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);\n this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);\n\n this._parent = this._readIncluded(data, \"parent\", KnowledgeModules.Taxonomy) as TaxonomyInterface | undefined;\n this._communityOfExpertise = this._readIncluded(\n data,\n \"communityofexpertise\",\n KnowledgeModules.CommunityOfExpertise,\n ) as CommunityOfExpertiseInterface;\n\n return this;\n }\n\n createJsonApi(data: TaxonomyInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.Taxonomy.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.description !== undefined) response.data.attributes.description = JSON.stringify(data.description);\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationAttribute(data.translation);\n\n if (data.parentId) {\n response.data.relationships.parent = {\n data: {\n type: KnowledgeModules.Taxonomy.name,\n id: data.parentId,\n },\n };\n }\n if (data.communityOfExpertiseId) {\n response.data.relationships.communityofexpertise = {\n data: {\n type: KnowledgeModules.CommunityOfExpertise.name,\n id: data.communityOfExpertiseId,\n },\n };\n }\n\n return response;\n }\n\n /** `PATCH taxonomies/:id/translations` body. */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.Taxonomy.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { Taxonomy } from \"./Taxonomy\";\nimport { TaxonomyInput, TaxonomyInterface } from \"./TaxonomyInterface\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class TaxonomyService extends AbstractService {\n static async findOne(params: { id: string }): Promise<TaxonomyInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy, id: params.id });\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);\n return this.callApi<TaxonomyInterface>({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<TaxonomyInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByParent(params: {\n parentId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<TaxonomyInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.parentId,\n childEndpoint: KnowledgeModules.Taxonomy,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByCommunityOfExpertise(params: {\n communityOfExpertiseId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<TaxonomyInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.CommunityOfExpertise,\n id: params.communityOfExpertiseId,\n childEndpoint: KnowledgeModules.Taxonomy,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.Taxonomy.inclusions.lists.fields);\n if (KnowledgeModules.Taxonomy.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.Taxonomy.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: TaxonomyInput): Promise<TaxonomyInterface> {\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy }).generate(),\n input: params,\n });\n }\n\n static async update(params: TaxonomyInput): Promise<TaxonomyInterface> {\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<TaxonomyInput, \"id\">>): Promise<TaxonomyInterface> {\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { taxonomyId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.Taxonomy, id: params.taxonomyId }).generate(),\n });\n }\n\n /** `PATCH taxonomies/:id/translations`. */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<TaxonomyInterface> {\n return this.callApi({\n type: KnowledgeModules.Taxonomy,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Taxonomy().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum TaxonomyFields {\n taxonomyId = \"taxonomyId\",\n\n name = \"name\",\n description = \"description\",\n translation = \"translation\",\n\n parent = \"parent\",\n communityOfExpertise = \"communityOfExpertise\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import {\n parseBlockNoteAttribute,\n parseTranslationAttribute,\n serialiseTranslationFields,\n stringifyTranslationAttribute,\n} from \"../../../common/data/jsonAttribute\";\nimport { TranslationMap } from \"../../../common/i18n/translationResolver\";\nimport { SkillInput, SkillInterface, SkillUserMeta } from \"./SkillInterface\";\nimport { TaxonomyInterface } from \"../../taxonomy/data/TaxonomyInterface\";\nimport { UserInterface } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { AbstractApiData, JsonApiHydratedDataInterface, Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class Skill extends AbstractApiData implements SkillInterface {\n private _name?: string;\n private _description?: any;\n private _image?: string;\n private _translation?: TranslationMap;\n private _taxonomies?: TaxonomyInterface[];\n private _users?: (UserInterface & SkillUserMeta)[];\n\n get name(): string {\n return this._name ?? \"\";\n }\n\n get description(): any {\n return this._description ?? [];\n }\n\n get image(): string {\n return this._image ?? \"\";\n }\n\n get translation(): TranslationMap | undefined {\n return this._translation;\n }\n\n get taxonomies(): TaxonomyInterface[] {\n return this._taxonomies ?? [];\n }\n\n get users(): (UserInterface & SkillUserMeta)[] {\n return this._users ?? [];\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n super.rehydrate(data);\n\n this._name = data.jsonApi.attributes.name;\n this._description = parseBlockNoteAttribute(data.jsonApi.attributes.description);\n this._image = data.jsonApi.attributes.image;\n this._translation = parseTranslationAttribute(data.jsonApi.attributes.translation);\n\n this._taxonomies = this._readIncluded(data, \"taxonomies\", KnowledgeModules.Taxonomy) as TaxonomyInterface[];\n // HAS_SKILL carries `proficiency`, so the users come back through the meta reader.\n this._users = this._readIncludedWithMeta<UserInterface, SkillUserMeta>(\n data,\n \"users\",\n Modules.User,\n ) as (UserInterface & SkillUserMeta)[];\n\n return this;\n }\n\n createJsonApi(data: SkillInput) {\n const response: any = {\n data: {\n type: KnowledgeModules.ExpertiseSkill.name,\n id: data.id,\n attributes: {},\n meta: {},\n relationships: {},\n },\n included: [],\n };\n\n if (data.name !== undefined) response.data.attributes.name = data.name;\n if (data.description !== undefined) response.data.attributes.description = JSON.stringify(data.description);\n if (data.image !== undefined) response.data.attributes.image = data.image;\n if (data.translation !== undefined)\n response.data.attributes.translation = stringifyTranslationAttribute(data.translation);\n\n if (data.taxonomyIds && data.taxonomyIds.length > 0) {\n response.data.relationships.taxonomies = {\n data: data.taxonomyIds.map((id) => ({\n type: KnowledgeModules.Taxonomy.name,\n id,\n })),\n };\n }\n if (data.userIds && data.userIds.length > 0) {\n response.data.relationships.users = {\n data: data.userIds.map((id) => ({\n type: Modules.User.name,\n id,\n })),\n };\n }\n\n return response;\n }\n\n /** `PATCH expertise-skills/:id/translations` body. */\n createTranslationJsonApi(params: { id: string; language: string; fields: Record<string, unknown> }) {\n return {\n data: {\n type: KnowledgeModules.ExpertiseSkill.name,\n id: params.id,\n attributes: {\n language: params.language,\n fields: serialiseTranslationFields(params.fields),\n },\n },\n };\n }\n\n /** `POST expertise-skills/:id/users/:userId` body — the proficiency rides on the edge. */\n createClaimJsonApi(params: { userId: string; proficiency: string }) {\n return {\n data: {\n type: Modules.User.name,\n id: params.userId,\n meta: {\n proficiency: params.proficiency,\n },\n },\n };\n }\n\n /** `PATCH expertise-skills/:id/users/:userId/proficiency` body. */\n createProficiencyJsonApi(params: { id: string; proficiency: string }) {\n return {\n data: {\n type: KnowledgeModules.ExpertiseSkill.name,\n id: params.id,\n attributes: {\n proficiency: params.proficiency,\n },\n },\n };\n }\n}\n","import { KNOWLEDGE_ENDPOINT_SEGMENTS } from \"../../../../shared/knowledge.endpoints\";\nimport { AbstractService, HttpMethod, NextRef, PreviousRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { EndpointCreator } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { Skill } from \"./Skill\";\nimport { SkillInput, SkillInterface } from \"./SkillInterface\";\nimport { Modules } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class SkillService extends AbstractService {\n static async findOne(params: { id: string }): Promise<SkillInterface> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.id });\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);\n return this.callApi<SkillInterface>({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async findMany(params: {\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<SkillInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByTaxonomy(params: {\n taxonomyId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<SkillInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: KnowledgeModules.Taxonomy,\n id: params.taxonomyId,\n childEndpoint: KnowledgeModules.ExpertiseSkill,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n\n static async findManyByUser(params: {\n userId: string;\n search?: string;\n fetchAll?: boolean;\n next?: NextRef;\n prev?: PreviousRef;\n }): Promise<SkillInterface[]> {\n const endpoint = new EndpointCreator({\n endpoint: Modules.User,\n id: params.userId,\n childEndpoint: KnowledgeModules.ExpertiseSkill,\n });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.fields)\n endpoint.limitToFields(KnowledgeModules.ExpertiseSkill.inclusions.lists.fields);\n if (KnowledgeModules.ExpertiseSkill.inclusions?.lists?.types)\n endpoint.limitToType(KnowledgeModules.ExpertiseSkill.inclusions.lists.types);\n\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n static async create(params: SkillInput): Promise<SkillInterface> {\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill }).generate(),\n input: params,\n });\n }\n\n static async update(params: SkillInput): Promise<SkillInterface> {\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.PUT,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async patch(params: { id: string } & Partial<Omit<SkillInput, \"id\">>): Promise<SkillInterface> {\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.id }).generate(),\n input: params,\n });\n }\n\n static async delete(params: { skillId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({ endpoint: KnowledgeModules.ExpertiseSkill, id: params.skillId }).generate(),\n });\n }\n\n /** `POST expertise-skills/:id/users/:userId` — claims the skill at a proficiency. */\n static async claim(params: { skillId: string; userId: string; proficiency: string }): Promise<void> {\n await this.callApi({\n type: Modules.User,\n method: HttpMethod.POST,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.ExpertiseSkill,\n id: params.skillId,\n childEndpoint: Modules.User,\n childId: params.userId,\n }).generate(),\n input: new Skill().createClaimJsonApi({ userId: params.userId, proficiency: params.proficiency }),\n overridesJsonApiCreation: true,\n responseType: KnowledgeModules.ExpertiseSkill,\n });\n }\n\n /** `DELETE expertise-skills/:id/users/:userId`. */\n static async removeUser(params: { skillId: string; userId: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.DELETE,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.ExpertiseSkill,\n id: params.skillId,\n childEndpoint: Modules.User,\n childId: params.userId,\n }).generate(),\n });\n }\n\n /**\n * `PATCH expertise-skills/:id/users/:userId/proficiency`.\n *\n * `EndpointCreator` stops at `childId`, so the trailing verb rides on it —\n * the endpoint is still built from the module meta, never hardcoded.\n */\n static async updateProficiency(params: { skillId: string; userId: string; proficiency: string }): Promise<void> {\n await this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.ExpertiseSkill,\n id: params.skillId,\n childEndpoint: Modules.User,\n childId: `${params.userId}/proficiency`,\n }).generate(),\n input: new Skill().createProficiencyJsonApi({ id: params.skillId, proficiency: params.proficiency }),\n overridesJsonApiCreation: true,\n });\n }\n\n /** `PATCH expertise-skills/:id/translations`. */\n static async patchTranslations(params: {\n id: string;\n language: string;\n fields: Record<string, unknown>;\n }): Promise<SkillInterface> {\n return this.callApi({\n type: KnowledgeModules.ExpertiseSkill,\n method: HttpMethod.PATCH,\n endpoint: new EndpointCreator({\n endpoint: KnowledgeModules.ExpertiseSkill,\n id: params.id,\n childEndpoint: KNOWLEDGE_ENDPOINT_SEGMENTS.translations,\n }).generate(),\n input: new Skill().createTranslationJsonApi(params),\n overridesJsonApiCreation: true,\n });\n }\n}\n","export enum SkillFields {\n skillId = \"skillId\",\n\n name = \"name\",\n description = \"description\",\n image = \"image\",\n translation = \"translation\",\n\n taxonomies = \"taxonomies\",\n users = \"users\",\n\n createdAt = \"createdAt\",\n updatedAt = \"updatedAt\",\n}\n","import { ApiDataInterface } from \"@carlonicora/nextjs-jsonapi/core\";\n\n/** Neo4j label of the node the access was requested on. */\nexport const AccessRequestTarget = {\n cluster: \"Cluster\",\n communityOfExpertise: \"CommunityOfExpertise\",\n} as const;\n\nexport type AccessRequestTarget = (typeof AccessRequestTarget)[keyof typeof AccessRequestTarget];\n\nexport interface AccessRequestInterface extends ApiDataInterface {\n get targetType(): string;\n get targetId(): string;\n get targetName(): string;\n get userId(): string;\n get userName(): string;\n get requestedAt(): Date | undefined;\n}\n","import { AccessRequestInterface } from \"./AccessRequestInterface\";\nimport { AbstractService, EndpointCreator, HttpMethod, NextRef } from \"@carlonicora/nextjs-jsonapi/core\";\nimport { KnowledgeModules } from \"../../../knowledge.registry\";\n\nexport class AccessRequestService extends AbstractService {\n /** `GET access-requests` — every pending request on a cluster or community the user manages. */\n static async findMany(\n params: { search?: string; fetchAll?: boolean; next?: NextRef } = {},\n ): Promise<AccessRequestInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: KnowledgeModules.AccessRequest });\n\n if (params.fetchAll) endpoint.addAdditionalParam(\"fetchAll\", \"true\");\n if (params.search) endpoint.addAdditionalParam(\"search\", params.search);\n\n return this.callApi({\n type: KnowledgeModules.AccessRequest,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n next: params.next,\n });\n }\n}\n","export type TranslationMap = Record<string, Record<string, unknown>>; // { lang: { field: value } }\nexport type ScalarTranslationMap = Record<string, string>; // { lang: value }\nexport type BlockNoteTranslationMap = Record<string, any>; // { lang: blocks[] } — parsed by the model\n\nexport function resolveField<T>(params: {\n original: T;\n translation: TranslationMap | undefined;\n field: string;\n language: string | undefined;\n}): T {\n const v = params.language ? params.translation?.[params.language]?.[params.field] : undefined;\n return v === undefined || v === null || v === \"\" ? params.original : (v as T);\n}\n\nexport function resolveScalar(params: {\n original: string | undefined;\n translation: ScalarTranslationMap | undefined;\n language: string | undefined;\n}): string | undefined {\n const v = params.language ? params.translation?.[params.language] : undefined;\n return v ? v : params.original;\n}\n","// The library routes a content chunk to the queue named after its label in lower case,\n// so these names are fixed by the labels and cannot carry a package prefix.\nexport const KNOWLEDGE_CHUNK_QUEUE_ID = \"chunk\";\nexport const KNOWLEDGE_QUEUE_IDS = { DOCUMENT: \"document\", ARTICLE: \"article\", DISCUSSION: \"discussion\" } as const;\nexport const KNOWLEDGE_JOB_NAMES = {\n process: {\n chunk: \"process_chunk\",\n document: \"process_document\",\n article: \"process_article\",\n discussion: \"process_discussion\",\n },\n} as const;\nexport const KNOWLEDGE_CONTENT_TYPES = [\"Article\", \"Discussion\", \"Document\", \"DiscussionReply\"] as const;\n","export const KNOWLEDGE_S3_FOLDERS = {\n documents: \"documents\",\n communitiesOfExpertise: \"communities-of-expertise\",\n} as const;\n","export const ContentLanguage = { ar: \"ar\", en: \"en\", es: \"es\", fr: \"fr\", pt: \"pt\", ru: \"ru\" } as const;\nexport type ContentLanguage = (typeof ContentLanguage)[keyof typeof ContentLanguage];\n","export const ContentStatus = { cluster: \"cluster\", proposed: \"proposed\", knowledge: \"knowledge\" } as const;\nexport type ContentStatus = (typeof ContentStatus)[keyof typeof ContentStatus];\n","export const SkillLevel = {\n aware: \"aware\",\n skilled: \"skilled\",\n expert: \"expert\",\n master: \"master\",\n} as const;\n\nexport type SkillLevel = (typeof SkillLevel)[keyof typeof SkillLevel];\n","export const RoleInCommunity = {\n sponsor: \"sponsor\",\n leader: \"leader\",\n coreMember: \"core_member\",\n expert: \"expert\",\n member: \"member\",\n} as const;\n\nexport type RoleInCommunity = (typeof RoleInCommunity)[keyof typeof RoleInCommunity];\n\nexport function isAdminRole(role: string | undefined): boolean {\n return role === RoleInCommunity.leader || role === RoleInCommunity.sponsor;\n}\n","import { z } from \"zod\";\n\n/**\n * Schema for AI processing status in graph creation events.\n * Mirrors the framework `AiStatus` enum values used by the content processors.\n */\nexport const AiStatusSchema = z.enum([\"pending\", \"in_progress\", \"summarising\", \"completed\", \"failed\"]);\n\n/**\n * Schema for graph creation types.\n * Represents the different types of content that can be created.\n */\nexport const GraphCreationTypeSchema = z.enum([\"document\", \"article\", \"discussion\"]);\n\n/**\n * Schema for graph creation events.\n * Used for websocket events when creating documents, articles, or discussions.\n */\nexport const GraphCreationEventSchema = z.object({\n type: GraphCreationTypeSchema,\n id: z.string(),\n aiStatus: AiStatusSchema,\n completed: z.number().optional(),\n total: z.number().optional(),\n});\n\n// Type exports\nexport type AiStatus = z.infer<typeof AiStatusSchema>;\nexport type GraphCreationType = z.infer<typeof GraphCreationTypeSchema>;\nexport type GraphCreationEvent = z.infer<typeof GraphCreationEventSchema>;\n\n/**\n * Parse and validate a graph creation event.\n * Throws ZodError if validation fails.\n */\nexport function parseGraphCreationEvent(data: unknown): GraphCreationEvent {\n return GraphCreationEventSchema.parse(data);\n}\n\n/**\n * Safely parse a graph creation event.\n * Returns a result object with success/error instead of throwing.\n */\nexport function safeParseGraphCreationEvent(data: unknown) {\n return GraphCreationEventSchema.safeParse(data);\n}\n\n/**\n * Type guard to check if a value is a valid GraphCreationEvent.\n */\nexport function isGraphCreationEvent(value: unknown): value is GraphCreationEvent {\n return GraphCreationEventSchema.safeParse(value).success;\n}\n"],"mappings":";;;;AAsBO,SAAS,wBAAwB,KAAmB;AACzD,MAAI,QAAQ,UAAa,QAAQ,QAAQ,QAAQ,GAAI,QAAO;AAC5D,MAAI,OAAO,QAAQ,SAAU,QAAO;AAEpC,MAAI;AACF,WAAO,KAAK,MAAM,GAAG;AAAA,EACvB,QAAQ;AAGN,WAAO,CAAC,EAAE,MAAM,aAAa,SAAS,CAAC,EAAE,MAAM,QAAQ,MAAM,KAAK,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;AAAA,EACnF;AACF;A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aAAa,QAAQ,CAAC;AAM9F,IAAM,0BAA0B,EAAE,KAAK,CAAC,YAAY,WAAW,YAAY,CAAC;AAM5E,IAAM,2BAA2B,EAAE,OAAO;AAAA,EAC/C,MAAM;AAAA,EACN,IAAI,EAAE,OAAO;AAAA,EACb,UAAU;AAAA,EACV,WAAW,EAAE,OAAO,EAAE,SAAS;AAAA,EAC/B,OAAO,EAAE,OAAO,EAAE,SAAS;AAC7B,CAAC;AAWM,SAAS,wBAAwB,MAAmC;AACzE,SAAO,yBAAyB,MAAM,IAAI;AAC5C;AAFgB;AAQT,SAAS,4BAA4B,MAAe;AACzD,SAAO,yBAAyB,UAAU,IAAI;AAChD;AAFgB;AAOT,SAAS,qBAAqB,OAA6C;AAChF,SAAO,yBAAyB,UAAU,KAAK,EAAE;AACnD;AAFgB;","names":["Modules","Modules","Modules","Modules","ArticleFields","AbstractApiData","Modules","AbstractApiData","Modules","AbstractService","HttpMethod","EndpointCreator","Modules","AbstractService","EndpointCreator","HttpMethod","Modules","DiscussionFields","AbstractService","HttpMethod","EndpointCreator","Modules","AbstractService","EndpointCreator","HttpMethod","Modules","DiscussionReplyFields","AbstractApiData","Modules","AbstractApiData","Modules","AbstractService","HttpMethod","EndpointCreator","Modules","AbstractService","EndpointCreator","HttpMethod","Modules","DocumentFields","AbstractApiData","Modules","AbstractApiData","Modules","AbstractService","HttpMethod","EndpointCreator","AbstractService","EndpointCreator","HttpMethod","ClusterFields","AbstractApiData","Modules","AbstractApiData","Modules","AbstractService","HttpMethod","EndpointCreator","AbstractService","EndpointCreator","HttpMethod","CommunityOfExpertiseFields","AbstractApiData","AbstractApiData","AbstractService","HttpMethod","EndpointCreator","AbstractService","EndpointCreator","HttpMethod","TaxonomyFields","AbstractApiData","Modules","AbstractApiData","Modules","AbstractService","HttpMethod","EndpointCreator","Modules","AbstractService","EndpointCreator","HttpMethod","Modules","SkillFields","AbstractService","EndpointCreator","HttpMethod","AbstractService","EndpointCreator","HttpMethod"]}
|