@carlonicora/nestjs-neo4jsonapi 1.115.0 → 1.116.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/dist/bootstrap/app.module.factory.d.ts.map +1 -1
- package/dist/bootstrap/app.module.factory.js +1 -0
- package/dist/bootstrap/app.module.factory.js.map +1 -1
- package/dist/bootstrap/bootstrap.options.d.ts +17 -0
- package/dist/bootstrap/bootstrap.options.d.ts.map +1 -1
- package/dist/common/guards/jwt.auth.guard.d.ts +3 -2
- package/dist/common/guards/jwt.auth.guard.d.ts.map +1 -1
- package/dist/common/guards/jwt.auth.guard.js +7 -2
- package/dist/common/guards/jwt.auth.guard.js.map +1 -1
- package/dist/common/interfaces/entity.schema.interface.d.ts +2 -0
- package/dist/common/interfaces/entity.schema.interface.d.ts.map +1 -1
- package/dist/common/tokens.d.ts +64 -0
- package/dist/common/tokens.d.ts.map +1 -1
- package/dist/common/tokens.js +37 -2
- package/dist/common/tokens.js.map +1 -1
- package/dist/config/base.config.d.ts.map +1 -1
- package/dist/config/base.config.js +1 -0
- package/dist/config/base.config.js.map +1 -1
- package/dist/config/enums/queue.id.d.ts +2 -1
- package/dist/config/enums/queue.id.d.ts.map +1 -1
- package/dist/config/enums/queue.id.js +1 -0
- package/dist/config/enums/queue.id.js.map +1 -1
- package/dist/config/interfaces/config.auth.interface.d.ts +7 -0
- package/dist/config/interfaces/config.auth.interface.d.ts.map +1 -1
- package/dist/config/interfaces/config.email.interface.d.ts +6 -0
- package/dist/config/interfaces/config.email.interface.d.ts.map +1 -1
- package/dist/core/email/services/email.service.d.ts +1 -0
- package/dist/core/email/services/email.service.d.ts.map +1 -1
- package/dist/core/email/services/email.service.js +22 -18
- package/dist/core/email/services/email.service.js.map +1 -1
- package/dist/core/llm/services/llm.service.d.ts +9 -1
- package/dist/core/llm/services/llm.service.d.ts.map +1 -1
- package/dist/core/llm/services/llm.service.js +13 -3
- package/dist/core/llm/services/llm.service.js.map +1 -1
- package/dist/core/neo4j/abstracts/abstract.repository.d.ts.map +1 -1
- package/dist/core/neo4j/abstracts/abstract.repository.js +33 -2
- package/dist/core/neo4j/abstracts/abstract.repository.js.map +1 -1
- package/dist/foundations/auth/auth.module.d.ts.map +1 -1
- package/dist/foundations/auth/auth.module.js +9 -10
- package/dist/foundations/auth/auth.module.js.map +1 -1
- package/dist/foundations/auth/controllers/auth.controller.d.ts.map +1 -1
- package/dist/foundations/auth/controllers/auth.controller.js +5 -0
- package/dist/foundations/auth/controllers/auth.controller.js.map +1 -1
- package/dist/foundations/auth/controllers/auth.discord.controller.d.ts.map +1 -1
- package/dist/foundations/auth/controllers/auth.discord.controller.js +6 -3
- package/dist/foundations/auth/controllers/auth.discord.controller.js.map +1 -1
- package/dist/foundations/auth/controllers/auth.google.controller.d.ts.map +1 -1
- package/dist/foundations/auth/controllers/auth.google.controller.js +7 -3
- package/dist/foundations/auth/controllers/auth.google.controller.js.map +1 -1
- package/dist/foundations/auth/entities/auth.code.d.ts +34 -0
- package/dist/foundations/auth/entities/auth.code.d.ts.map +1 -0
- package/dist/foundations/auth/entities/auth.code.js +53 -0
- package/dist/foundations/auth/entities/auth.code.js.map +1 -0
- package/dist/foundations/auth/entities/auth.d.ts +41 -0
- package/dist/foundations/auth/entities/auth.d.ts.map +1 -0
- package/dist/foundations/auth/entities/auth.js +68 -0
- package/dist/foundations/auth/entities/auth.js.map +1 -0
- package/dist/foundations/auth/entities/pending-auth.d.ts +39 -0
- package/dist/foundations/auth/entities/pending-auth.d.ts.map +1 -0
- package/dist/foundations/auth/entities/pending-auth.js +41 -0
- package/dist/foundations/auth/entities/pending-auth.js.map +1 -0
- package/dist/foundations/auth/index.d.ts +13 -0
- package/dist/foundations/auth/index.d.ts.map +1 -1
- package/dist/foundations/auth/index.js +31 -1
- package/dist/foundations/auth/index.js.map +1 -1
- package/dist/foundations/auth/repositories/auth.repository.d.ts +49 -9
- package/dist/foundations/auth/repositories/auth.repository.d.ts.map +1 -1
- package/dist/foundations/auth/repositories/auth.repository.js +115 -63
- package/dist/foundations/auth/repositories/auth.repository.js.map +1 -1
- package/dist/foundations/auth/services/auth.discord.service.d.ts +1 -1
- package/dist/foundations/auth/services/auth.discord.service.d.ts.map +1 -1
- package/dist/foundations/auth/services/auth.discord.service.js +5 -2
- package/dist/foundations/auth/services/auth.discord.service.js.map +1 -1
- package/dist/foundations/auth/services/auth.google.service.d.ts +1 -1
- package/dist/foundations/auth/services/auth.google.service.d.ts.map +1 -1
- package/dist/foundations/auth/services/auth.google.service.js +6 -2
- package/dist/foundations/auth/services/auth.google.service.js.map +1 -1
- package/dist/foundations/auth/services/auth.service.d.ts +42 -7
- package/dist/foundations/auth/services/auth.service.d.ts.map +1 -1
- package/dist/foundations/auth/services/auth.service.js +140 -77
- package/dist/foundations/auth/services/auth.service.js.map +1 -1
- package/dist/foundations/company/entities/company.d.ts +1 -1
- package/dist/foundations/company/entities/company.d.ts.map +1 -1
- package/dist/foundations/company/entities/company.js +15 -1
- package/dist/foundations/company/entities/company.js.map +1 -1
- package/dist/foundations/company/index.d.ts +5 -0
- package/dist/foundations/company/index.d.ts.map +1 -1
- package/dist/foundations/company/index.js +16 -1
- package/dist/foundations/company/index.js.map +1 -1
- package/dist/foundations/company/processors/company.processor.js +1 -1
- package/dist/foundations/company/processors/company.processor.js.map +1 -1
- package/dist/foundations/company/repositories/company.repository.d.ts +65 -9
- package/dist/foundations/company/repositories/company.repository.d.ts.map +1 -1
- package/dist/foundations/company/repositories/company.repository.js +59 -18
- package/dist/foundations/company/repositories/company.repository.js.map +1 -1
- package/dist/foundations/company/services/company.service.d.ts +44 -4
- package/dist/foundations/company/services/company.service.d.ts.map +1 -1
- package/dist/foundations/company/services/company.service.js +33 -7
- package/dist/foundations/company/services/company.service.js.map +1 -1
- package/dist/foundations/content/content.module.d.ts +20 -8
- package/dist/foundations/content/content.module.d.ts.map +1 -1
- package/dist/foundations/content/content.module.js +40 -24
- package/dist/foundations/content/content.module.js.map +1 -1
- package/dist/foundations/content/controllers/content.controller.d.ts +1 -1
- package/dist/foundations/content/controllers/content.controller.d.ts.map +1 -1
- package/dist/foundations/content/controllers/content.controller.js +2 -2
- package/dist/foundations/content/controllers/content.controller.js.map +1 -1
- package/dist/foundations/content/entities/content.d.ts +74 -0
- package/dist/foundations/content/entities/content.d.ts.map +1 -0
- package/dist/foundations/content/entities/content.js +141 -0
- package/dist/foundations/content/entities/content.js.map +1 -0
- package/dist/foundations/content/index.d.ts +2 -4
- package/dist/foundations/content/index.d.ts.map +1 -1
- package/dist/foundations/content/index.js +6 -5
- package/dist/foundations/content/index.js.map +1 -1
- package/dist/foundations/content/interfaces/content.extension.interface.d.ts +126 -0
- package/dist/foundations/content/interfaces/content.extension.interface.d.ts.map +1 -1
- package/dist/foundations/content/interfaces/content.extension.interface.js +7 -1
- package/dist/foundations/content/interfaces/content.extension.interface.js.map +1 -1
- package/dist/foundations/content/repositories/content.repository.d.ts +14 -7
- package/dist/foundations/content/repositories/content.repository.d.ts.map +1 -1
- package/dist/foundations/content/repositories/content.repository.js +18 -16
- package/dist/foundations/content/repositories/content.repository.js.map +1 -1
- package/dist/foundations/content/services/content.cypher.service.d.ts +19 -0
- package/dist/foundations/content/services/content.cypher.service.d.ts.map +1 -1
- package/dist/foundations/content/services/content.cypher.service.js +65 -4
- package/dist/foundations/content/services/content.cypher.service.js.map +1 -1
- package/dist/foundations/content/services/content.service.js +4 -4
- package/dist/foundations/content/services/content.service.js.map +1 -1
- package/dist/foundations/discord-user/services/discord-user.service.js +2 -2
- package/dist/foundations/discord-user/services/discord-user.service.js.map +1 -1
- package/dist/foundations/feature/entities/feature.d.ts +32 -0
- package/dist/foundations/feature/entities/feature.d.ts.map +1 -0
- package/dist/foundations/feature/entities/feature.js +64 -0
- package/dist/foundations/feature/entities/feature.js.map +1 -0
- package/dist/foundations/feature/entities/feature.model.d.ts +1 -3
- package/dist/foundations/feature/entities/feature.model.d.ts.map +1 -1
- package/dist/foundations/feature/entities/feature.model.js +3 -11
- package/dist/foundations/feature/entities/feature.model.js.map +1 -1
- package/dist/foundations/feature/feature.module.d.ts.map +1 -1
- package/dist/foundations/feature/feature.module.js +4 -5
- package/dist/foundations/feature/feature.module.js.map +1 -1
- package/dist/foundations/feature/index.d.ts +12 -0
- package/dist/foundations/feature/index.d.ts.map +1 -1
- package/dist/foundations/feature/index.js +22 -1
- package/dist/foundations/feature/index.js.map +1 -1
- package/dist/foundations/feature/repositories/feature.repository.d.ts +37 -13
- package/dist/foundations/feature/repositories/feature.repository.d.ts.map +1 -1
- package/dist/foundations/feature/repositories/feature.repository.js +41 -35
- package/dist/foundations/feature/repositories/feature.repository.js.map +1 -1
- package/dist/foundations/feature/services/feature.service.d.ts +31 -4
- package/dist/foundations/feature/services/feature.service.d.ts.map +1 -1
- package/dist/foundations/feature/services/feature.service.js +20 -12
- package/dist/foundations/feature/services/feature.service.js.map +1 -1
- package/dist/foundations/foundations.modules.d.ts +6 -0
- package/dist/foundations/foundations.modules.d.ts.map +1 -1
- package/dist/foundations/foundations.modules.js +14 -3
- package/dist/foundations/foundations.modules.js.map +1 -1
- package/dist/foundations/google-user/services/google-user.service.js +2 -2
- package/dist/foundations/google-user/services/google-user.service.js.map +1 -1
- package/dist/foundations/index.d.ts +3 -0
- package/dist/foundations/index.d.ts.map +1 -1
- package/dist/foundations/index.js +3 -0
- package/dist/foundations/index.js.map +1 -1
- package/dist/foundations/membership/entities/membership.d.ts.map +1 -1
- package/dist/foundations/membership/entities/membership.js +4 -0
- package/dist/foundations/membership/entities/membership.js.map +1 -1
- package/dist/foundations/notification/controllers/notification.controller.js +2 -2
- package/dist/foundations/notification/controllers/notification.controller.js.map +1 -1
- package/dist/foundations/notification/entities/notification.d.ts +75 -0
- package/dist/foundations/notification/entities/notification.d.ts.map +1 -0
- package/dist/foundations/notification/entities/notification.js +73 -0
- package/dist/foundations/notification/entities/notification.js.map +1 -0
- package/dist/foundations/notification/index.d.ts +6 -2
- package/dist/foundations/notification/index.d.ts.map +1 -1
- package/dist/foundations/notification/index.js +17 -3
- package/dist/foundations/notification/index.js.map +1 -1
- package/dist/foundations/notification/notification.module.d.ts.map +1 -1
- package/dist/foundations/notification/notification.module.js +3 -4
- package/dist/foundations/notification/notification.module.js.map +1 -1
- package/dist/foundations/notification/repositories/notification.repository.d.ts +125 -8
- package/dist/foundations/notification/repositories/notification.repository.d.ts.map +1 -1
- package/dist/foundations/notification/repositories/notification.repository.js +219 -20
- package/dist/foundations/notification/repositories/notification.repository.js.map +1 -1
- package/dist/foundations/notification/services/notification.service.d.ts +31 -5
- package/dist/foundations/notification/services/notification.service.d.ts.map +1 -1
- package/dist/foundations/notification/services/notification.service.js +26 -9
- package/dist/foundations/notification/services/notification.service.js.map +1 -1
- package/dist/foundations/rbac/dump.d.ts +48 -4
- package/dist/foundations/rbac/dump.d.ts.map +1 -1
- package/dist/foundations/rbac/dump.js +28 -4
- package/dist/foundations/rbac/dump.js.map +1 -1
- package/dist/foundations/rbac/serializer/matrix-to-ts.d.ts +14 -0
- package/dist/foundations/rbac/serializer/matrix-to-ts.d.ts.map +1 -1
- package/dist/foundations/rbac/serializer/matrix-to-ts.js +13 -3
- package/dist/foundations/rbac/serializer/matrix-to-ts.js.map +1 -1
- package/dist/foundations/relevancy/repositories/relevancy.repository.d.ts.map +1 -1
- package/dist/foundations/relevancy/repositories/relevancy.repository.js +13 -1
- package/dist/foundations/relevancy/repositories/relevancy.repository.js.map +1 -1
- package/dist/foundations/role/entities/role.d.ts +1 -1
- package/dist/foundations/role/entities/role.d.ts.map +1 -1
- package/dist/foundations/stripe/index.d.ts +3 -0
- package/dist/foundations/stripe/index.d.ts.map +1 -1
- package/dist/foundations/stripe/index.js +6 -0
- package/dist/foundations/stripe/index.js.map +1 -1
- package/dist/foundations/stripe-price/entities/stripe-price.entity.d.ts +1 -1
- package/dist/foundations/stripe-price/entities/stripe-price.entity.d.ts.map +1 -1
- package/dist/foundations/tokenusage/entities/tokenusage.d.ts +49 -0
- package/dist/foundations/tokenusage/entities/tokenusage.d.ts.map +1 -0
- package/dist/foundations/tokenusage/entities/tokenusage.js +64 -0
- package/dist/foundations/tokenusage/entities/tokenusage.js.map +1 -0
- package/dist/foundations/tokenusage/index.d.ts +2 -2
- package/dist/foundations/tokenusage/index.d.ts.map +1 -1
- package/dist/foundations/tokenusage/index.js +5 -3
- package/dist/foundations/tokenusage/index.js.map +1 -1
- package/dist/foundations/tokenusage/repositories/tokenusage.repository.d.ts +33 -5
- package/dist/foundations/tokenusage/repositories/tokenusage.repository.d.ts.map +1 -1
- package/dist/foundations/tokenusage/repositories/tokenusage.repository.js +40 -14
- package/dist/foundations/tokenusage/repositories/tokenusage.repository.js.map +1 -1
- package/dist/foundations/tokenusage/services/tokenusage.service.d.ts +36 -9
- package/dist/foundations/tokenusage/services/tokenusage.service.d.ts.map +1 -1
- package/dist/foundations/tokenusage/services/tokenusage.service.js +32 -3
- package/dist/foundations/tokenusage/services/tokenusage.service.js.map +1 -1
- package/dist/foundations/tokenusage/tokenusage.module.js +3 -3
- package/dist/foundations/tokenusage/tokenusage.module.js.map +1 -1
- package/dist/foundations/user/controllers/user.controller.js +4 -4
- package/dist/foundations/user/controllers/user.controller.js.map +1 -1
- package/dist/foundations/user/dtos/user.put.dto.d.ts +1 -1
- package/dist/foundations/user/dtos/user.put.dto.d.ts.map +1 -1
- package/dist/foundations/user/dtos/user.put.dto.js +1 -1
- package/dist/foundations/user/dtos/user.put.dto.js.map +1 -1
- package/dist/foundations/user/entities/user.d.ts +4 -0
- package/dist/foundations/user/entities/user.d.ts.map +1 -1
- package/dist/foundations/user/entities/user.js +18 -4
- package/dist/foundations/user/entities/user.js.map +1 -1
- package/dist/foundations/user/index.d.ts +6 -1
- package/dist/foundations/user/index.d.ts.map +1 -1
- package/dist/foundations/user/index.js +13 -1
- package/dist/foundations/user/index.js.map +1 -1
- package/dist/foundations/user/repositories/user.repository.d.ts +56 -11
- package/dist/foundations/user/repositories/user.repository.d.ts.map +1 -1
- package/dist/foundations/user/repositories/user.repository.js +55 -35
- package/dist/foundations/user/repositories/user.repository.js.map +1 -1
- package/dist/foundations/user/services/user.service.d.ts +48 -9
- package/dist/foundations/user/services/user.service.d.ts.map +1 -1
- package/dist/foundations/user/services/user.service.js +50 -32
- package/dist/foundations/user/services/user.service.js.map +1 -1
- package/dist/foundations/user-activity/entities/user-activity.d.ts +36 -0
- package/dist/foundations/user-activity/entities/user-activity.d.ts.map +1 -0
- package/dist/foundations/user-activity/entities/user-activity.js +86 -0
- package/dist/foundations/user-activity/entities/user-activity.js.map +1 -0
- package/dist/foundations/user-activity/entities/user-activity.meta.d.ts +3 -0
- package/dist/foundations/user-activity/entities/user-activity.meta.d.ts.map +1 -0
- package/dist/foundations/user-activity/entities/user-activity.meta.js +10 -0
- package/dist/foundations/user-activity/entities/user-activity.meta.js.map +1 -0
- package/dist/foundations/user-activity/index.d.ts +10 -0
- package/dist/foundations/user-activity/index.d.ts.map +1 -0
- package/dist/foundations/user-activity/index.js +22 -0
- package/dist/foundations/user-activity/index.js.map +1 -0
- package/dist/foundations/user-activity/interceptors/user-activity.interceptor.d.ts +29 -0
- package/dist/foundations/user-activity/interceptors/user-activity.interceptor.d.ts.map +1 -0
- package/dist/foundations/user-activity/interceptors/user-activity.interceptor.js +98 -0
- package/dist/foundations/user-activity/interceptors/user-activity.interceptor.js.map +1 -0
- package/dist/foundations/user-activity/interfaces/user-activity.config.interface.d.ts +67 -0
- package/dist/foundations/user-activity/interfaces/user-activity.config.interface.d.ts.map +1 -0
- package/dist/foundations/user-activity/interfaces/user-activity.config.interface.js +26 -0
- package/dist/foundations/user-activity/interfaces/user-activity.config.interface.js.map +1 -0
- package/dist/foundations/user-activity/interfaces/user-activity.record.input.d.ts +18 -0
- package/dist/foundations/user-activity/interfaces/user-activity.record.input.d.ts.map +1 -0
- package/dist/foundations/{auth/entities/auth.entity.js → user-activity/interfaces/user-activity.record.input.js} +1 -1
- package/dist/foundations/user-activity/interfaces/user-activity.record.input.js.map +1 -0
- package/dist/foundations/user-activity/processors/user-activity.processor.d.ts +25 -0
- package/dist/foundations/user-activity/processors/user-activity.processor.d.ts.map +1 -0
- package/dist/foundations/user-activity/processors/user-activity.processor.js +74 -0
- package/dist/foundations/user-activity/processors/user-activity.processor.js.map +1 -0
- package/dist/foundations/user-activity/repositories/user-activity.repository.d.ts +47 -0
- package/dist/foundations/user-activity/repositories/user-activity.repository.d.ts.map +1 -0
- package/dist/foundations/user-activity/repositories/user-activity.repository.js +124 -0
- package/dist/foundations/user-activity/repositories/user-activity.repository.js.map +1 -0
- package/dist/foundations/user-activity/services/user-activity.service.d.ts +29 -0
- package/dist/foundations/user-activity/services/user-activity.service.d.ts.map +1 -0
- package/dist/foundations/user-activity/services/user-activity.service.js +61 -0
- package/dist/foundations/user-activity/services/user-activity.service.js.map +1 -0
- package/dist/foundations/user-activity/user-activity.module.d.ts +40 -0
- package/dist/foundations/user-activity/user-activity.module.d.ts.map +1 -0
- package/dist/foundations/user-activity/user-activity.module.js +99 -0
- package/dist/foundations/user-activity/user-activity.module.js.map +1 -0
- package/package.json +1 -1
- package/dist/foundations/auth/entities/auth.code.entity.d.ts +0 -7
- package/dist/foundations/auth/entities/auth.code.entity.d.ts.map +0 -1
- package/dist/foundations/auth/entities/auth.code.entity.js +0 -3
- package/dist/foundations/auth/entities/auth.code.entity.js.map +0 -1
- package/dist/foundations/auth/entities/auth.code.map.d.ts +0 -8
- package/dist/foundations/auth/entities/auth.code.map.d.ts.map +0 -1
- package/dist/foundations/auth/entities/auth.code.map.js +0 -13
- package/dist/foundations/auth/entities/auth.code.map.js.map +0 -1
- package/dist/foundations/auth/entities/auth.code.model.d.ts +0 -4
- package/dist/foundations/auth/entities/auth.code.model.d.ts.map +0 -1
- package/dist/foundations/auth/entities/auth.code.model.js +0 -13
- package/dist/foundations/auth/entities/auth.code.model.js.map +0 -1
- package/dist/foundations/auth/entities/auth.entity.d.ts +0 -18
- package/dist/foundations/auth/entities/auth.entity.d.ts.map +0 -1
- package/dist/foundations/auth/entities/auth.entity.js.map +0 -1
- package/dist/foundations/auth/entities/auth.map.d.ts +0 -8
- package/dist/foundations/auth/entities/auth.map.d.ts.map +0 -1
- package/dist/foundations/auth/entities/auth.map.js +0 -14
- package/dist/foundations/auth/entities/auth.map.js.map +0 -1
- package/dist/foundations/auth/entities/auth.model.d.ts +0 -4
- package/dist/foundations/auth/entities/auth.model.d.ts.map +0 -1
- package/dist/foundations/auth/entities/auth.model.js +0 -15
- package/dist/foundations/auth/entities/auth.model.js.map +0 -1
- package/dist/foundations/auth/entities/pending-auth.entity.d.ts +0 -16
- package/dist/foundations/auth/entities/pending-auth.entity.d.ts.map +0 -1
- package/dist/foundations/auth/entities/pending-auth.entity.js +0 -3
- package/dist/foundations/auth/entities/pending-auth.entity.js.map +0 -1
- package/dist/foundations/auth/entities/pending-auth.map.d.ts +0 -6
- package/dist/foundations/auth/entities/pending-auth.map.d.ts.map +0 -1
- package/dist/foundations/auth/entities/pending-auth.map.js +0 -20
- package/dist/foundations/auth/entities/pending-auth.map.js.map +0 -1
- package/dist/foundations/auth/entities/pending-auth.model.d.ts +0 -9
- package/dist/foundations/auth/entities/pending-auth.model.d.ts.map +0 -1
- package/dist/foundations/auth/entities/pending-auth.model.js +0 -19
- package/dist/foundations/auth/entities/pending-auth.model.js.map +0 -1
- package/dist/foundations/auth/serialisers/auth.serialiser.d.ts +0 -13
- package/dist/foundations/auth/serialisers/auth.serialiser.d.ts.map +0 -1
- package/dist/foundations/auth/serialisers/auth.serialiser.js +0 -52
- package/dist/foundations/auth/serialisers/auth.serialiser.js.map +0 -1
- package/dist/foundations/auth/serialisers/pending-auth.serialiser.d.ts +0 -18
- package/dist/foundations/auth/serialisers/pending-auth.serialiser.d.ts.map +0 -1
- package/dist/foundations/auth/serialisers/pending-auth.serialiser.js +0 -49
- package/dist/foundations/auth/serialisers/pending-auth.serialiser.js.map +0 -1
- package/dist/foundations/content/entities/content.entity.d.ts +0 -31
- package/dist/foundations/content/entities/content.entity.d.ts.map +0 -1
- package/dist/foundations/content/entities/content.entity.js +0 -3
- package/dist/foundations/content/entities/content.entity.js.map +0 -1
- package/dist/foundations/content/entities/content.map.d.ts +0 -8
- package/dist/foundations/content/entities/content.map.d.ts.map +0 -1
- package/dist/foundations/content/entities/content.map.js +0 -19
- package/dist/foundations/content/entities/content.map.js.map +0 -1
- package/dist/foundations/content/entities/content.model.d.ts +0 -4
- package/dist/foundations/content/entities/content.model.d.ts.map +0 -1
- package/dist/foundations/content/entities/content.model.js +0 -16
- package/dist/foundations/content/entities/content.model.js.map +0 -1
- package/dist/foundations/content/factories/content.model.factory.d.ts +0 -17
- package/dist/foundations/content/factories/content.model.factory.d.ts.map +0 -1
- package/dist/foundations/content/factories/content.model.factory.js +0 -65
- package/dist/foundations/content/factories/content.model.factory.js.map +0 -1
- package/dist/foundations/content/serialisers/content.serialiser.d.ts +0 -14
- package/dist/foundations/content/serialisers/content.serialiser.d.ts.map +0 -1
- package/dist/foundations/content/serialisers/content.serialiser.js +0 -78
- package/dist/foundations/content/serialisers/content.serialiser.js.map +0 -1
- package/dist/foundations/feature/entities/feature.entity.d.ts +0 -8
- package/dist/foundations/feature/entities/feature.entity.d.ts.map +0 -1
- package/dist/foundations/feature/entities/feature.entity.js +0 -3
- package/dist/foundations/feature/entities/feature.entity.js.map +0 -1
- package/dist/foundations/feature/entities/feature.map.d.ts +0 -8
- package/dist/foundations/feature/entities/feature.map.d.ts.map +0 -1
- package/dist/foundations/feature/entities/feature.map.js +0 -14
- package/dist/foundations/feature/entities/feature.map.js.map +0 -1
- package/dist/foundations/feature/serialisers/feature.serialiser.d.ts +0 -12
- package/dist/foundations/feature/serialisers/feature.serialiser.d.ts.map +0 -1
- package/dist/foundations/feature/serialisers/feature.serialiser.js +0 -45
- package/dist/foundations/feature/serialisers/feature.serialiser.js.map +0 -1
- package/dist/foundations/notification/entities/notification.entity.d.ts +0 -10
- package/dist/foundations/notification/entities/notification.entity.d.ts.map +0 -1
- package/dist/foundations/notification/entities/notification.entity.js +0 -3
- package/dist/foundations/notification/entities/notification.entity.js.map +0 -1
- package/dist/foundations/notification/entities/notification.map.d.ts +0 -8
- package/dist/foundations/notification/entities/notification.map.d.ts.map +0 -1
- package/dist/foundations/notification/entities/notification.map.js +0 -16
- package/dist/foundations/notification/entities/notification.map.js.map +0 -1
- package/dist/foundations/notification/entities/notification.model.d.ts +0 -4
- package/dist/foundations/notification/entities/notification.model.d.ts.map +0 -1
- package/dist/foundations/notification/entities/notification.model.js +0 -15
- package/dist/foundations/notification/entities/notification.model.js.map +0 -1
- package/dist/foundations/notification/interfaces/notification.service.interface.d.ts +0 -4
- package/dist/foundations/notification/interfaces/notification.service.interface.d.ts.map +0 -1
- package/dist/foundations/notification/interfaces/notification.service.interface.js +0 -3
- package/dist/foundations/notification/interfaces/notification.service.interface.js.map +0 -1
- package/dist/foundations/notification/serialisers/notifications.serialiser.d.ts +0 -12
- package/dist/foundations/notification/serialisers/notifications.serialiser.d.ts.map +0 -1
- package/dist/foundations/notification/serialisers/notifications.serialiser.js +0 -47
- package/dist/foundations/notification/serialisers/notifications.serialiser.js.map +0 -1
- package/dist/foundations/tokenusage/entities/tokenusage.entity.d.ts +0 -11
- package/dist/foundations/tokenusage/entities/tokenusage.entity.d.ts.map +0 -1
- package/dist/foundations/tokenusage/entities/tokenusage.entity.js +0 -3
- package/dist/foundations/tokenusage/entities/tokenusage.entity.js.map +0 -1
- package/dist/foundations/tokenusage/entities/tokenusage.map.d.ts +0 -8
- package/dist/foundations/tokenusage/entities/tokenusage.map.d.ts.map +0 -1
- package/dist/foundations/tokenusage/entities/tokenusage.map.js +0 -17
- package/dist/foundations/tokenusage/entities/tokenusage.map.js.map +0 -1
- package/dist/foundations/tokenusage/entities/tokenusage.model.d.ts +0 -4
- package/dist/foundations/tokenusage/entities/tokenusage.model.d.ts.map +0 -1
- package/dist/foundations/tokenusage/entities/tokenusage.model.js +0 -15
- package/dist/foundations/tokenusage/entities/tokenusage.model.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company.service.js","sourceRoot":"","sources":["../../../../src/foundations/company/services/company.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA6C;AAC7C,2CAAiG;AACjG,uCAAyC;AACzC,yDAAgD;AAChD,iFAAkH;AAClH,mCAA+B;AAC/B,2CAAwC;AACxC,6DAAyD;AAEzD,2FAAuF;AACvF,oFAAgF;AAChF,8EAA0E;AAC1E,oFAAgF;AAGhF,4DAA4E;AAC5E,sFAAkF;AAElF,0FAAsF;AACtF,yGAAoH;
|
|
1
|
+
{"version":3,"file":"company.service.js","sourceRoot":"","sources":["../../../../src/foundations/company/services/company.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA6C;AAC7C,2CAAiG;AACjG,uCAAyC;AACzC,yDAAgD;AAChD,iFAAkH;AAClH,mCAA+B;AAC/B,2CAAwC;AACxC,6DAAyD;AAEzD,2FAAuF;AACvF,oFAAgF;AAChF,qFAAiF;AACjF,8EAA0E;AAC1E,oFAAgF;AAGhF,4DAA4E;AAC5E,sFAAkF;AAElF,0FAAsF;AACtF,yGAAoH;AAEpH;;;;;;GAMG;AAEI,IAAM,cAAc,sBAApB,MAAM,cAAe,SAAQ,kCAAgE;IAKlG,YACmB,OAAuB,EACvB,iBAAoC,EACvB,KAA6B,EAC1C,GAAe,EACf,KAAmB,EACnB,cAA8B,EAC9B,SAAoB,EACpB,gBAAkC,EAGnD,eAAyD;QAEzD,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,2BAAiB,CAAC,KAAK,CAAC,CAAC;QAZ/C,YAAO,GAAP,OAAO,CAAgB;QACvB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACN,UAAK,GAAL,KAAK,CAAO;QAC1C,QAAG,GAAH,GAAG,CAAY;QACf,UAAK,GAAL,KAAK,CAAc;QACnB,mBAAc,GAAd,cAAc,CAAgB;QAC9B,cAAS,GAAT,SAAS,CAAW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aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,EAAE;gBAC/D,SAAS,EAAE,IAAI;gBACf,MAAM,EAAE,oBAAoB;aAC7B,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;QAChE,CAAC;IACH,CAAC;IAED,KAAK,CAAC,uDAAuD;QAC3D,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAE5C,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,CAAC;YAC1D,IAAI,CAAC,OAAO;gBAAE,MAAM,IAAI,sBAAa,CAAC,WAAW,EAAE,mBAAU,CAAC,SAAS,CAAC,CAAC;YACzE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;CACF,CAAA;AAnQY,wCAAc;AA8EnB;IADL,IAAA,uBAAO,EAAC,8CAA0B,CAAC;;;;8DAOnC;yBApFU,cAAc;IAD1B,IAAA,mBAAU,GAAE;IASR,WAAA,IAAA,oBAAW,EAAC,kBAAO,CAAC,OAAO,CAAC,CAAA;IAM5B,WAAA,IAAA,iBAAQ,GAAE,CAAA;IACV,WAAA,IAAA,eAAM,EAAC,6DAAwB,CAAC,CAAA;qCATP,gCAAc;QACJ,sCAAiB;QACC,cAAK;QACrC,uBAAU;QACR,4BAAY;QACH,gCAAc;QACnB,gBAAS;QACF,oCAAgB;GAb1C,cAAc,CAmQ1B"}
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import { DynamicModule, OnModuleInit } from "@nestjs/common";
|
|
2
|
+
import { EntityDescriptor, RelationshipDef } from "../../common/interfaces/entity.schema.interface";
|
|
3
|
+
import { Content } from "./entities/content";
|
|
2
4
|
import { ContentExtensionConfig } from "./interfaces/content.extension.interface";
|
|
3
5
|
/**
|
|
4
6
|
* ContentModule - Configurable module for Content management.
|
|
5
7
|
*
|
|
6
|
-
* Supports optional extension via ContentExtensionConfig
|
|
7
|
-
*
|
|
8
|
-
* -
|
|
9
|
-
*
|
|
10
|
-
* -
|
|
11
|
-
* -
|
|
8
|
+
* Supports optional extension via ContentExtensionConfig. The configuration
|
|
9
|
+
* shapes both the entity descriptor and the generated Cypher:
|
|
10
|
+
* - `additionalRelationships` — extra relationships on the descriptor, an
|
|
11
|
+
* OPTIONAL MATCH per relationship, and the related node in the RETURN
|
|
12
|
+
* - `ownerMatchPattern` — the owner edge's relationship types / direction
|
|
13
|
+
* - `requireTldr` — restricts reads to records carrying a non-empty tldr
|
|
14
|
+
* - `metaFields` — extra computed meta keys hydrated by extra OPTIONAL MATCHes
|
|
15
|
+
* - `serialiseAuthor` — whether the `author` relationship exists at all
|
|
16
|
+
*
|
|
17
|
+
* With no configuration the module behaves exactly as it always has.
|
|
18
|
+
*
|
|
19
|
+
* The module is `global: true` so `ContentCypherService` can be handed to
|
|
20
|
+
* RelevancyService from any module. It is nonetheless excludable from the
|
|
21
|
+
* foundations composition by class reference
|
|
22
|
+
* (`FoundationsModule.forRoot({ exclude: [ContentModule] })`).
|
|
12
23
|
*
|
|
13
24
|
* @example
|
|
14
25
|
* ```typescript
|
|
@@ -24,11 +35,12 @@ import { ContentExtensionConfig } from "./interfaces/content.extension.interface
|
|
|
24
35
|
* ```
|
|
25
36
|
*/
|
|
26
37
|
export declare class ContentModule implements OnModuleInit {
|
|
27
|
-
private
|
|
38
|
+
private readonly descriptor;
|
|
39
|
+
constructor(descriptor: EntityDescriptor<Content, Record<string, RelationshipDef>>);
|
|
28
40
|
/**
|
|
29
41
|
* Configure ContentModule with optional extension.
|
|
30
42
|
*
|
|
31
|
-
* @param extension - Optional configuration for
|
|
43
|
+
* @param extension - Optional configuration for the Content descriptor and Cypher
|
|
32
44
|
* @returns DynamicModule configured with extension support
|
|
33
45
|
*/
|
|
34
46
|
static forRoot(extension?: ContentExtensionConfig): DynamicModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.module.d.ts","sourceRoot":"","sources":["../../../src/foundations/content/content.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"content.module.d.ts","sourceRoot":"","sources":["../../../src/foundations/content/content.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAkB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAIpG,OAAO,EAA0B,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EACL,sBAAsB,EAGvB,MAAM,0CAA0C,CAAC;AAKlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBACa,aAAc,YAAW,YAAY;IAG9C,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAGzF;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,sBAAsB,GAAG,aAAa;IA6BjE,YAAY;CAGb"}
|
|
@@ -5,6 +5,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
8
14
|
var ContentModule_1;
|
|
9
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
16
|
exports.ContentModule = void 0;
|
|
@@ -12,22 +18,29 @@ const common_1 = require("@nestjs/common");
|
|
|
12
18
|
const registry_1 = require("../../common/registries/registry");
|
|
13
19
|
const relevancy_module_1 = require("../relevancy/relevancy.module");
|
|
14
20
|
const content_controller_1 = require("./controllers/content.controller");
|
|
15
|
-
const
|
|
16
|
-
const content_model_factory_1 = require("./factories/content.model.factory");
|
|
21
|
+
const content_1 = require("./entities/content");
|
|
17
22
|
const content_extension_interface_1 = require("./interfaces/content.extension.interface");
|
|
18
23
|
const content_repository_1 = require("./repositories/content.repository");
|
|
19
|
-
const content_serialiser_1 = require("./serialisers/content.serialiser");
|
|
20
24
|
const content_cypher_service_1 = require("./services/content.cypher.service");
|
|
21
25
|
const content_service_1 = require("./services/content.service");
|
|
22
26
|
/**
|
|
23
27
|
* ContentModule - Configurable module for Content management.
|
|
24
28
|
*
|
|
25
|
-
* Supports optional extension via ContentExtensionConfig
|
|
26
|
-
*
|
|
27
|
-
* -
|
|
28
|
-
*
|
|
29
|
-
* -
|
|
30
|
-
* -
|
|
29
|
+
* Supports optional extension via ContentExtensionConfig. The configuration
|
|
30
|
+
* shapes both the entity descriptor and the generated Cypher:
|
|
31
|
+
* - `additionalRelationships` — extra relationships on the descriptor, an
|
|
32
|
+
* OPTIONAL MATCH per relationship, and the related node in the RETURN
|
|
33
|
+
* - `ownerMatchPattern` — the owner edge's relationship types / direction
|
|
34
|
+
* - `requireTldr` — restricts reads to records carrying a non-empty tldr
|
|
35
|
+
* - `metaFields` — extra computed meta keys hydrated by extra OPTIONAL MATCHes
|
|
36
|
+
* - `serialiseAuthor` — whether the `author` relationship exists at all
|
|
37
|
+
*
|
|
38
|
+
* With no configuration the module behaves exactly as it always has.
|
|
39
|
+
*
|
|
40
|
+
* The module is `global: true` so `ContentCypherService` can be handed to
|
|
41
|
+
* RelevancyService from any module. It is nonetheless excludable from the
|
|
42
|
+
* foundations composition by class reference
|
|
43
|
+
* (`FoundationsModule.forRoot({ exclude: [ContentModule] })`).
|
|
31
44
|
*
|
|
32
45
|
* @example
|
|
33
46
|
* ```typescript
|
|
@@ -43,14 +56,20 @@ const content_service_1 = require("./services/content.service");
|
|
|
43
56
|
* ```
|
|
44
57
|
*/
|
|
45
58
|
let ContentModule = ContentModule_1 = class ContentModule {
|
|
59
|
+
constructor(descriptor) {
|
|
60
|
+
this.descriptor = descriptor;
|
|
61
|
+
}
|
|
46
62
|
/**
|
|
47
63
|
* Configure ContentModule with optional extension.
|
|
48
64
|
*
|
|
49
|
-
* @param extension - Optional configuration for
|
|
65
|
+
* @param extension - Optional configuration for the Content descriptor and Cypher
|
|
50
66
|
* @returns DynamicModule configured with extension support
|
|
51
67
|
*/
|
|
52
68
|
static forRoot(extension) {
|
|
53
|
-
|
|
69
|
+
// The descriptor is built ONCE here so that the serialiser class provided
|
|
70
|
+
// to the container is the very class carried by the model registered in
|
|
71
|
+
// onModuleInit (JsonApiSerialiserFactory resolves it through ModuleRef).
|
|
72
|
+
const descriptor = (0, content_1.buildContentDescriptor)(extension);
|
|
54
73
|
return {
|
|
55
74
|
module: ContentModule_1,
|
|
56
75
|
global: true, // Make module global so ContentCypherService is available to other modules
|
|
@@ -60,30 +79,27 @@ let ContentModule = ContentModule_1 = class ContentModule {
|
|
|
60
79
|
provide: content_extension_interface_1.CONTENT_EXTENSION_CONFIG,
|
|
61
80
|
useValue: extension,
|
|
62
81
|
},
|
|
63
|
-
|
|
82
|
+
{
|
|
83
|
+
provide: content_extension_interface_1.CONTENT_DESCRIPTOR,
|
|
84
|
+
useValue: descriptor,
|
|
85
|
+
},
|
|
86
|
+
descriptor.model.serialiser,
|
|
64
87
|
content_repository_1.ContentRepository,
|
|
65
88
|
content_service_1.ContentService,
|
|
66
89
|
content_cypher_service_1.ContentCypherService,
|
|
67
90
|
],
|
|
68
|
-
exports: [content_cypher_service_1.ContentCypherService, content_extension_interface_1.CONTENT_EXTENSION_CONFIG],
|
|
91
|
+
exports: [content_cypher_service_1.ContentCypherService, content_extension_interface_1.CONTENT_EXTENSION_CONFIG, content_extension_interface_1.CONTENT_DESCRIPTOR],
|
|
69
92
|
imports: [relevancy_module_1.RelevancyModule],
|
|
70
93
|
};
|
|
71
94
|
}
|
|
72
95
|
onModuleInit() {
|
|
73
|
-
|
|
74
|
-
if (extension?.additionalRelationships?.length) {
|
|
75
|
-
// Register extended model (overwrites base model in registry)
|
|
76
|
-
const extendedModel = (0, content_model_factory_1.createExtendedContentModel)(extension);
|
|
77
|
-
registry_1.modelRegistry.register(extendedModel);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
// Register base model
|
|
81
|
-
registry_1.modelRegistry.register(content_model_1.ContentModel);
|
|
82
|
-
}
|
|
96
|
+
registry_1.modelRegistry.register(this.descriptor.model);
|
|
83
97
|
}
|
|
84
98
|
};
|
|
85
99
|
exports.ContentModule = ContentModule;
|
|
86
100
|
exports.ContentModule = ContentModule = ContentModule_1 = __decorate([
|
|
87
|
-
(0, common_1.Module)({})
|
|
101
|
+
(0, common_1.Module)({}),
|
|
102
|
+
__param(0, (0, common_1.Inject)(content_extension_interface_1.CONTENT_DESCRIPTOR)),
|
|
103
|
+
__metadata("design:paramtypes", [Object])
|
|
88
104
|
], ContentModule);
|
|
89
105
|
//# sourceMappingURL=content.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.module.js","sourceRoot":"","sources":["../../../src/foundations/content/content.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"content.module.js","sourceRoot":"","sources":["../../../src/foundations/content/content.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA6E;AAE7E,+DAAiE;AACjE,oEAAgE;AAChE,yEAAqE;AACrE,gDAAqE;AACrE,0FAIkD;AAClD,0EAAsE;AACtE,8EAAyE;AACzE,gEAA4D;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEI,IAAM,aAAa,qBAAnB,MAAM,aAAa;IACxB,YAEmB,UAAsE;QAAtE,eAAU,GAAV,UAAU,CAA4D;IACtF,CAAC;IAEJ;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,SAAkC;QAC/C,0EAA0E;QAC1E,wEAAwE;QACxE,yEAAyE;QACzE,MAAM,UAAU,GAAG,IAAA,gCAAsB,EAAC,SAAS,CAAC,CAAC;QAErD,OAAO;YACL,MAAM,EAAE,eAAa;YACrB,MAAM,EAAE,IAAI,EAAE,2EAA2E;YACzF,WAAW,EAAE,CAAC,sCAAiB,CAAC;YAChC,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,sDAAwB;oBACjC,QAAQ,EAAE,SAAS;iBACpB;gBACD;oBACE,OAAO,EAAE,gDAAkB;oBAC3B,QAAQ,EAAE,UAAU;iBACrB;gBACD,UAAU,CAAC,KAAK,CAAC,UAAU;gBAC3B,sCAAiB;gBACjB,gCAAc;gBACd,6CAAoB;aACrB;YACD,OAAO,EAAE,CAAC,6CAAoB,EAAE,sDAAwB,EAAE,gDAAkB,CAAC;YAC7E,OAAO,EAAE,CAAC,kCAAe,CAAC;SAC3B,CAAC;IACJ,CAAC;IAED,YAAY;QACV,wBAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;CACF,CAAA;AA5CY,sCAAa;wBAAb,aAAa;IADzB,IAAA,eAAM,EAAC,EAAE,CAAC;IAGN,WAAA,IAAA,eAAM,EAAC,gDAAkB,CAAC,CAAA;;GAFlB,aAAa,CA4CzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FastifyReply } from "fastify";
|
|
2
2
|
import { AuthenticatedRequest } from "../../../common/interfaces/authenticated.request.interface";
|
|
3
|
-
import { Content } from "../../content/entities/content
|
|
3
|
+
import { Content } from "../../content/entities/content";
|
|
4
4
|
import { ContentCypherService } from "../../content/services/content.cypher.service";
|
|
5
5
|
import { ContentService } from "../../content/services/content.service";
|
|
6
6
|
import { RelevancyService } from "../../relevancy/services/relevancy.service";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.controller.d.ts","sourceRoot":"","sources":["../../../../src/foundations/content/controllers/content.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AAClG,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"content.controller.d.ts","sourceRoot":"","sources":["../../../../src/foundations/content/controllers/content.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AAClG,OAAO,EAAE,OAAO,EAAmB,MAAM,gCAAgC,CAAC;AAE1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAG9E,qBAEa,iBAAiB;IAE1B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAFb,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAC3C,aAAa,EAAE,oBAAoB;IAIhD,YAAY,CACT,GAAG,EAAE,oBAAoB,EACzB,KAAK,EAAE,YAAY,EACjB,KAAK,EAAE,GAAG,EACF,MAAM,CAAC,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,OAAO,EACnB,OAAO,CAAC,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,MAAM;IAkBpC,WAAW,CACR,GAAG,EAAE,oBAAoB,EACzB,KAAK,EAAE,YAAY,EACR,OAAO,EAAE,MAAM,EACxB,KAAK,EAAE,GAAG,EACF,MAAM,CAAC,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,OAAO,EACnB,OAAO,CAAC,EAAE,MAAM;IAc9B,YAAY,CACT,GAAG,EAAE,oBAAoB,EACzB,KAAK,EAAE,YAAY,EACP,QAAQ,EAAE,MAAM,EAC1B,KAAK,EAAE,GAAG,EACF,MAAM,CAAC,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,OAAO,EACnB,OAAO,CAAC,EAAE,MAAM;IAc9B,8BAA8B,CAAU,KAAK,EAAE,GAAG,EAAsB,SAAS,EAAE,MAAM;CAQhG"}
|
|
@@ -15,8 +15,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.ContentController = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const jwt_auth_guard_1 = require("../../../common/guards/jwt.auth.guard");
|
|
18
|
+
const content_1 = require("../../content/entities/content");
|
|
18
19
|
const content_meta_1 = require("../../content/entities/content.meta");
|
|
19
|
-
const content_model_1 = require("../../content/entities/content.model");
|
|
20
20
|
const content_cypher_service_1 = require("../../content/services/content.cypher.service");
|
|
21
21
|
const content_service_1 = require("../../content/services/content.service");
|
|
22
22
|
const relevancy_service_1 = require("../../relevancy/services/relevancy.service");
|
|
@@ -64,7 +64,7 @@ let ContentController = class ContentController {
|
|
|
64
64
|
}
|
|
65
65
|
async findContentsRelevantForContent(query, contentId) {
|
|
66
66
|
return await this.relevancyService.findRelevant({
|
|
67
|
-
model:
|
|
67
|
+
model: (0, content_1.getContentModel)(),
|
|
68
68
|
cypherService: this.cypherService,
|
|
69
69
|
id: contentId,
|
|
70
70
|
query: query,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.controller.js","sourceRoot":"","sources":["../../../../src/foundations/content/controllers/content.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoF;AAGpF,0EAAqE;
|
|
1
|
+
{"version":3,"file":"content.controller.js","sourceRoot":"","sources":["../../../../src/foundations/content/controllers/content.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoF;AAGpF,0EAAqE;AAErE,4DAA0E;AAC1E,sEAAkE;AAClE,0FAAqF;AACrF,4EAAwE;AACxE,kFAA8E;AAC9E,6DAAsE;AAI/D,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YACmB,cAA8B,EAC9B,gBAA2C,EAC3C,aAAmC;QAFnC,mBAAc,GAAd,cAAc,CAAgB;QAC9B,qBAAgB,GAAhB,gBAAgB,CAA2B;QAC3C,kBAAa,GAAb,aAAa,CAAsB;IACnD,CAAC;IAGE,AAAN,KAAK,CAAC,YAAY,CACT,GAAyB,EACzB,KAAmB,EACjB,KAAU,EACF,MAAe,EACb,QAAkB,EACnB,OAAgB,EACb,UAAmB;QAExC,IAAI,QAAQ,CAAC;QACb,IAAI,UAAU,EAAE,CAAC;YACf,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACxF,CAAC;aAAM,CAAC;YACN,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;gBACxC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,KAAK;gBACZ,QAAQ,EAAE,QAAQ;gBAClB,OAAO,EAAE,OAAO;aACjB,CAAC,CAAC;QACL,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;IAGK,AAAN,KAAK,CAAC,WAAW,CACR,GAAyB,EACzB,KAAmB,EACR,OAAe,EACxB,KAAU,EACF,MAAe,EACb,QAAkB,EACnB,OAA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74 @@
|
|
|
1
|
+
import { Entity } from "../../../common/abstracts/entity";
|
|
2
|
+
import { DataModelInterface } from "../../../common/interfaces/datamodel.interface";
|
|
3
|
+
import { EntityDescriptor, RelationshipDef } from "../../../common/interfaces/entity.schema.interface";
|
|
4
|
+
import type { User } from "../../user/entities/user";
|
|
5
|
+
import { ContentExtensionConfig } from "../interfaces/content.extension.interface";
|
|
6
|
+
/**
|
|
7
|
+
* Content entity type representing polymorphic content (Article, Document, etc.).
|
|
8
|
+
*
|
|
9
|
+
* The index signature allows extension relationships to be added dynamically
|
|
10
|
+
* when ContentExtensionConfig is provided. APIs can narrow this type using
|
|
11
|
+
* intersection types for better type safety.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* // In API - narrow type for specific extensions
|
|
16
|
+
* type ExtendedContent = Content & {
|
|
17
|
+
* topic: Topic[];
|
|
18
|
+
* expertise: Expertise[];
|
|
19
|
+
* };
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export type Content = Entity & {
|
|
23
|
+
name: string;
|
|
24
|
+
contentType: string;
|
|
25
|
+
abstract?: string;
|
|
26
|
+
tldr?: string;
|
|
27
|
+
aiStatus?: string;
|
|
28
|
+
relevance?: number;
|
|
29
|
+
owner: User;
|
|
30
|
+
author: User;
|
|
31
|
+
/** Index signature for extension relationships added via ContentExtensionConfig */
|
|
32
|
+
[relationshipName: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Builds the Content entity descriptor, optionally shaped by a
|
|
36
|
+
* {@link ContentExtensionConfig}.
|
|
37
|
+
*
|
|
38
|
+
* With NO config the descriptor is the exact wire contract of the legacy
|
|
39
|
+
* `ContentSerialiser`/`ContentModel` pair it replaces:
|
|
40
|
+
* - attributes: `name`, `abstract`, `tldr`
|
|
41
|
+
* - meta: `aiStatus`, `contentType`, `relevance`
|
|
42
|
+
* - relationships: `owner`, `author`
|
|
43
|
+
*
|
|
44
|
+
* Config effects:
|
|
45
|
+
* - `serialiseAuthor: false` removes the `author` relationship
|
|
46
|
+
* - `metaFields` adds one computed meta entry per entry, read from the Cypher
|
|
47
|
+
* RETURN alias produced by {@link ContentCypherService}
|
|
48
|
+
* - `additionalRelationships` adds one relationship per entry, keyed by the
|
|
49
|
+
* related model's `nodeName` (the key the Cypher RETURN alias
|
|
50
|
+
* `content_<nodeName>` maps onto)
|
|
51
|
+
*
|
|
52
|
+
* @param config - Optional Content extension configuration
|
|
53
|
+
*/
|
|
54
|
+
export declare function buildContentDescriptor(config?: ContentExtensionConfig): EntityDescriptor<Content, Record<string, RelationshipDef>>;
|
|
55
|
+
/**
|
|
56
|
+
* Content Entity Descriptor (no extension config).
|
|
57
|
+
*
|
|
58
|
+
* This is the descriptor to register in a graph catalog and to import from
|
|
59
|
+
* consuming apps. The descriptor actually used for serialisation at runtime is
|
|
60
|
+
* built by `ContentModule.forRoot()` from the module's configuration and
|
|
61
|
+
* published through `modelRegistry` — read it with {@link getContentModel}.
|
|
62
|
+
*/
|
|
63
|
+
export declare const ContentDescriptor: EntityDescriptor<Content, Record<string, RelationshipDef>>;
|
|
64
|
+
export type ContentDescriptorType = typeof ContentDescriptor;
|
|
65
|
+
/**
|
|
66
|
+
* Get the Content model from the registry.
|
|
67
|
+
*
|
|
68
|
+
* `ContentModule.forRoot()` registers the CONFIGURED model (extension
|
|
69
|
+
* relationships, config-driven meta fields, optional author), so every read
|
|
70
|
+
* path must resolve the model through the registry rather than capturing
|
|
71
|
+
* {@link ContentDescriptor}.model at import time.
|
|
72
|
+
*/
|
|
73
|
+
export declare function getContentModel(): DataModelInterface<Content>;
|
|
74
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../src/foundations/content/entities/content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAG1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EACL,gBAAgB,EAEhB,eAAe,EAChB,MAAM,oDAAoD,CAAC;AAE5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAGnF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,IAAI,CAAC;IACZ,MAAM,EAAE,IAAI,CAAC;IAEb,mFAAmF;IACnF,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC;CACrC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,CAAC,EAAE,sBAAsB,GAC9B,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAoG5D;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,4DAA2B,CAAC;AAG1D,MAAM,MAAM,qBAAqB,GAAG,OAAO,iBAAiB,CAAC;AAE7D;;;;;;;GAOG;AACH,wBAAgB,eAAe,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAM7D"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentDescriptor = void 0;
|
|
4
|
+
exports.buildContentDescriptor = buildContentDescriptor;
|
|
5
|
+
exports.getContentModel = getContentModel;
|
|
6
|
+
const ai_status_1 = require("../../../common/enums/ai.status");
|
|
7
|
+
const define_entity_1 = require("../../../common/helpers/define-entity");
|
|
8
|
+
const registry_1 = require("../../../common/registries/registry");
|
|
9
|
+
const user_meta_1 = require("../../user/entities/user.meta");
|
|
10
|
+
const content_meta_1 = require("./content.meta");
|
|
11
|
+
/**
|
|
12
|
+
* Builds the Content entity descriptor, optionally shaped by a
|
|
13
|
+
* {@link ContentExtensionConfig}.
|
|
14
|
+
*
|
|
15
|
+
* With NO config the descriptor is the exact wire contract of the legacy
|
|
16
|
+
* `ContentSerialiser`/`ContentModel` pair it replaces:
|
|
17
|
+
* - attributes: `name`, `abstract`, `tldr`
|
|
18
|
+
* - meta: `aiStatus`, `contentType`, `relevance`
|
|
19
|
+
* - relationships: `owner`, `author`
|
|
20
|
+
*
|
|
21
|
+
* Config effects:
|
|
22
|
+
* - `serialiseAuthor: false` removes the `author` relationship
|
|
23
|
+
* - `metaFields` adds one computed meta entry per entry, read from the Cypher
|
|
24
|
+
* RETURN alias produced by {@link ContentCypherService}
|
|
25
|
+
* - `additionalRelationships` adds one relationship per entry, keyed by the
|
|
26
|
+
* related model's `nodeName` (the key the Cypher RETURN alias
|
|
27
|
+
* `content_<nodeName>` maps onto)
|
|
28
|
+
*
|
|
29
|
+
* @param config - Optional Content extension configuration
|
|
30
|
+
*/
|
|
31
|
+
function buildContentDescriptor(config) {
|
|
32
|
+
const relationships = {
|
|
33
|
+
owner: {
|
|
34
|
+
model: user_meta_1.ownerMeta,
|
|
35
|
+
direction: "in",
|
|
36
|
+
relationship: "PUBLISHED",
|
|
37
|
+
cardinality: "one",
|
|
38
|
+
dtoKey: "owner",
|
|
39
|
+
description: "The user who published/owns the underlying record.",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
// Default true — the package wire has always carried `author`. Apps whose
|
|
43
|
+
// content has no distinct author (a360ai) switch it off via config.
|
|
44
|
+
if (config?.serialiseAuthor !== false) {
|
|
45
|
+
relationships.author = {
|
|
46
|
+
model: user_meta_1.authorMeta,
|
|
47
|
+
direction: "in",
|
|
48
|
+
relationship: "PUBLISHED",
|
|
49
|
+
cardinality: "one",
|
|
50
|
+
dtoKey: "author",
|
|
51
|
+
description: "The user who authored the underlying record.",
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
for (const relationship of config?.additionalRelationships ?? []) {
|
|
55
|
+
relationships[relationship.model.nodeName] = {
|
|
56
|
+
model: relationship.model,
|
|
57
|
+
direction: relationship.direction,
|
|
58
|
+
relationship: relationship.relationship,
|
|
59
|
+
cardinality: relationship.cardinality,
|
|
60
|
+
...(relationship.dtoKey ? { dtoKey: relationship.dtoKey } : {}),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
const computed = {
|
|
64
|
+
// Content carries no "contentType" property of its own — it is derived from
|
|
65
|
+
// the underlying node's Neo4j label at read time (old mapper: `params.data.labels[0]`).
|
|
66
|
+
contentType: {
|
|
67
|
+
compute: (params) => params.data?.labels?.[0],
|
|
68
|
+
meta: true,
|
|
69
|
+
description: 'The underlying Neo4j label of the record (e.g. "Article", "Document") — identifies which platform entity this content view represents.',
|
|
70
|
+
},
|
|
71
|
+
relevance: {
|
|
72
|
+
compute: (params) => (params.record.has("totalScore") ? Number(params.record.get("totalScore")) : 0),
|
|
73
|
+
meta: true,
|
|
74
|
+
description: "Relevance score computed against a reference entity by the relevancy engine. 0 outside a relevance query.",
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
for (const metaField of config?.metaFields ?? []) {
|
|
78
|
+
computed[metaField.key] = {
|
|
79
|
+
compute: (params) => params.record.has(metaField.key) ? (params.record.get(metaField.key) ?? undefined) : undefined,
|
|
80
|
+
meta: true,
|
|
81
|
+
description: metaField.description,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
return (0, define_entity_1.defineEntity)()({
|
|
85
|
+
...content_meta_1.contentMeta,
|
|
86
|
+
isCompanyScoped: true,
|
|
87
|
+
description: "A generic, read-only view over any AI-summarised platform record. Used for cross-type search, listing by owner, and relevance ranking against another entity — Content is never created or updated directly.",
|
|
88
|
+
chat: {
|
|
89
|
+
summary: (d) => d.name ?? d.id,
|
|
90
|
+
textSearchFields: ["name", "abstract", "tldr"],
|
|
91
|
+
},
|
|
92
|
+
fields: {
|
|
93
|
+
name: {
|
|
94
|
+
type: "string",
|
|
95
|
+
required: true,
|
|
96
|
+
description: "The title of the underlying record (document name, article title, etc.).",
|
|
97
|
+
},
|
|
98
|
+
abstract: {
|
|
99
|
+
type: "string",
|
|
100
|
+
description: "A short AI-generated abstract of the underlying record's content.",
|
|
101
|
+
},
|
|
102
|
+
tldr: {
|
|
103
|
+
type: "string",
|
|
104
|
+
description: "The AI-generated too-long-didn't-read summary of the underlying record.",
|
|
105
|
+
},
|
|
106
|
+
aiStatus: {
|
|
107
|
+
type: "string",
|
|
108
|
+
default: ai_status_1.AiStatus.Pending,
|
|
109
|
+
meta: true,
|
|
110
|
+
description: "The AI processing status of the underlying record (e.g. pending, in_progress, completed, failed).",
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
computed,
|
|
114
|
+
relationships,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Content Entity Descriptor (no extension config).
|
|
119
|
+
*
|
|
120
|
+
* This is the descriptor to register in a graph catalog and to import from
|
|
121
|
+
* consuming apps. The descriptor actually used for serialisation at runtime is
|
|
122
|
+
* built by `ContentModule.forRoot()` from the module's configuration and
|
|
123
|
+
* published through `modelRegistry` — read it with {@link getContentModel}.
|
|
124
|
+
*/
|
|
125
|
+
exports.ContentDescriptor = buildContentDescriptor();
|
|
126
|
+
/**
|
|
127
|
+
* Get the Content model from the registry.
|
|
128
|
+
*
|
|
129
|
+
* `ContentModule.forRoot()` registers the CONFIGURED model (extension
|
|
130
|
+
* relationships, config-driven meta fields, optional author), so every read
|
|
131
|
+
* path must resolve the model through the registry rather than capturing
|
|
132
|
+
* {@link ContentDescriptor}.model at import time.
|
|
133
|
+
*/
|
|
134
|
+
function getContentModel() {
|
|
135
|
+
const model = registry_1.modelRegistry.get(content_meta_1.contentMeta.nodeName);
|
|
136
|
+
if (!model) {
|
|
137
|
+
throw new Error(`ContentModel not found in registry for nodeName: ${content_meta_1.contentMeta.nodeName}`);
|
|
138
|
+
}
|
|
139
|
+
return model;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../../../src/foundations/content/entities/content.ts"],"names":[],"mappings":";;;AAmEA,wDAsGC;AAuBD,0CAMC;AArMD,+DAA2D;AAC3D,yEAAqE;AAOrE,kEAAoE;AAEpE,6DAAsE;AAEtE,iDAA6C;AAkC7C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,sBAAsB,CACpC,MAA+B;IAE/B,MAAM,aAAa,GAAoC;QACrD,KAAK,EAAE;YACL,KAAK,EAAE,qBAAS;YAChB,SAAS,EAAE,IAAI;YACf,YAAY,EAAE,WAAW;YACzB,WAAW,EAAE,KAAK;YAClB,MAAM,EAAE,OAAO;YACf,WAAW,EAAE,oDAAoD;SAClE;KACF,CAAC;IAEF,0EAA0E;IAC1E,oEAAoE;IACpE,IAAI,MAAM,EAAE,eAAe,KAAK,KAAK,EAAE,CAAC;QACtC,aAAa,CAAC,MAAM,GAAG;YACrB,KAAK,EAAE,sBAAU;YACjB,SAAS,EAAE,IAAI;YACf,YAAY,EAAE,WAAW;YACzB,WAAW,EAAE,KAAK;YAClB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,8CAA8C;SAC5D,CAAC;IACJ,CAAC;IAED,KAAK,MAAM,YAAY,IAAI,MAAM,EAAE,uBAAuB,IAAI,EAAE,EAAE,CAAC;QACjE,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG;YAC3C,KAAK,EAAE,YAAY,CAAC,KAAK;YACzB,SAAS,EAAE,YAAY,CAAC,SAAS;YACjC,YAAY,EAAE,YAAY,CAAC,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E,IAAI;QAErB,WAAW,EACT,8MAA8M;QAEhN,IAAI,EAAE;YACJ,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE;YAC9B,gBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC;SAC/C;QAED,MAAM,EAAE;YACN,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,0EAA0E;aACxF;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mEAAmE;aACjF;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yEAAyE;aACvF;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,oBAAQ,CAAC,OAAO;gBACzB,IAAI,EAAE,IAAI;gBACV,WAAW,EACT,mGAAmG;aACtG;SACF;QAED,QAAQ;QAER,aAAa;KACd,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;GAOG;AACU,QAAA,iBAAiB,GAAG,sBAAsB,EAAE,CAAC;AAK1D;;;;;;;GAOG;AACH,SAAgB,eAAe;IAC7B,MAAM,KAAK,GAAG,wBAAa,CAAC,GAAG,CAAC,0BAAW,CAAC,QAAQ,CAAC,CAAC;IACtD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,oDAAoD,0BAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC9F,CAAC;IACD,OAAO,KAAoC,CAAC;AAC9C,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export { ContentModule } from "./content.module";
|
|
2
|
-
export { Content } from "./entities/content
|
|
2
|
+
export { buildContentDescriptor, Content, ContentDescriptor, ContentDescriptorType, getContentModel, } from "./entities/content";
|
|
3
3
|
export { contentMeta } from "./entities/content.meta";
|
|
4
|
-
export {
|
|
5
|
-
export { createExtendedContentModel } from "./factories/content.model.factory";
|
|
6
|
-
export { ContentExtensionConfig, ContentRelationshipExtension, CONTENT_EXTENSION_CONFIG, } from "./interfaces/content.extension.interface";
|
|
4
|
+
export { ContentExtensionConfig, ContentMetaFieldExtension, ContentOwnerMatchPattern, ContentRelationshipExtension, CONTENT_DESCRIPTOR, CONTENT_EXTENSION_CONFIG, } from "./interfaces/content.extension.interface";
|
|
7
5
|
export { ContentRepository } from "./repositories/content.repository";
|
|
8
6
|
export { ContentCypherService } from "./services/content.cypher.service";
|
|
9
7
|
export { ContentService } from "./services/content.service";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/content/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/content/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACL,sBAAsB,EACtB,OAAO,EACP,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContentService = exports.ContentCypherService = exports.ContentRepository = exports.CONTENT_EXTENSION_CONFIG = exports.
|
|
3
|
+
exports.ContentService = exports.ContentCypherService = exports.ContentRepository = exports.CONTENT_EXTENSION_CONFIG = exports.CONTENT_DESCRIPTOR = exports.contentMeta = exports.getContentModel = exports.ContentDescriptor = exports.buildContentDescriptor = exports.ContentModule = void 0;
|
|
4
4
|
var content_module_1 = require("./content.module");
|
|
5
5
|
Object.defineProperty(exports, "ContentModule", { enumerable: true, get: function () { return content_module_1.ContentModule; } });
|
|
6
|
+
var content_1 = require("./entities/content");
|
|
7
|
+
Object.defineProperty(exports, "buildContentDescriptor", { enumerable: true, get: function () { return content_1.buildContentDescriptor; } });
|
|
8
|
+
Object.defineProperty(exports, "ContentDescriptor", { enumerable: true, get: function () { return content_1.ContentDescriptor; } });
|
|
9
|
+
Object.defineProperty(exports, "getContentModel", { enumerable: true, get: function () { return content_1.getContentModel; } });
|
|
6
10
|
var content_meta_1 = require("./entities/content.meta");
|
|
7
11
|
Object.defineProperty(exports, "contentMeta", { enumerable: true, get: function () { return content_meta_1.contentMeta; } });
|
|
8
|
-
var content_model_1 = require("./entities/content.model");
|
|
9
|
-
Object.defineProperty(exports, "ContentModel", { enumerable: true, get: function () { return content_model_1.ContentModel; } });
|
|
10
|
-
var content_model_factory_1 = require("./factories/content.model.factory");
|
|
11
|
-
Object.defineProperty(exports, "createExtendedContentModel", { enumerable: true, get: function () { return content_model_factory_1.createExtendedContentModel; } });
|
|
12
12
|
var content_extension_interface_1 = require("./interfaces/content.extension.interface");
|
|
13
|
+
Object.defineProperty(exports, "CONTENT_DESCRIPTOR", { enumerable: true, get: function () { return content_extension_interface_1.CONTENT_DESCRIPTOR; } });
|
|
13
14
|
Object.defineProperty(exports, "CONTENT_EXTENSION_CONFIG", { enumerable: true, get: function () { return content_extension_interface_1.CONTENT_EXTENSION_CONFIG; } });
|
|
14
15
|
var content_repository_1 = require("./repositories/content.repository");
|
|
15
16
|
Object.defineProperty(exports, "ContentRepository", { enumerable: true, get: function () { return content_repository_1.ContentRepository; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/foundations/content/index.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/foundations/content/index.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,8CAM4B;AAL1B,iHAAA,sBAAsB,OAAA;AAEtB,4GAAA,iBAAiB,OAAA;AAEjB,0GAAA,eAAe,OAAA;AAEjB,wDAAsD;AAA7C,2GAAA,WAAW,OAAA;AACpB,wFAOkD;AAFhD,iIAAA,kBAAkB,OAAA;AAClB,uIAAA,wBAAwB,OAAA;AAE1B,wEAAsE;AAA7D,uHAAA,iBAAiB,OAAA;AAC1B,4EAAyE;AAAhE,8HAAA,oBAAoB,OAAA;AAC7B,8DAA4D;AAAnD,iHAAA,cAAc,OAAA"}
|