@carlonicora/nestjs-neo4jsonapi 1.115.1 → 1.117.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.admin.guard.d.ts +3 -2
- package/dist/common/guards/jwt.auth.admin.guard.d.ts.map +1 -1
- package/dist/common/guards/jwt.auth.admin.guard.js +19 -4
- package/dist/common/guards/jwt.auth.admin.guard.js.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 +68 -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 +9 -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/base.config.interface.d.ts +2 -0
- package/dist/config/interfaces/base.config.interface.d.ts.map +1 -1
- package/dist/config/interfaces/config.ai.interface.d.ts +8 -0
- package/dist/config/interfaces/config.ai.interface.d.ts.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.credits.interface.d.ts +24 -0
- package/dist/config/interfaces/config.credits.interface.d.ts.map +1 -0
- package/dist/{foundations/auth/entities/auth.entity.js → config/interfaces/config.credits.interface.js} +1 -1
- package/dist/config/interfaces/config.credits.interface.js.map +1 -0
- 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/config/interfaces/index.d.ts +1 -0
- package/dist/config/interfaces/index.d.ts.map +1 -1
- package/dist/config/interfaces/index.js +1 -0
- package/dist/config/interfaces/index.js.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 +10 -7
- package/dist/core/email/services/email.service.js.map +1 -1
- package/dist/core/llm/services/embedder.service.d.ts +36 -2
- package/dist/core/llm/services/embedder.service.d.ts.map +1 -1
- package/dist/core/llm/services/embedder.service.js +87 -7
- package/dist/core/llm/services/embedder.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/dtos/company.post.dto.d.ts +3 -3
- package/dist/foundations/company/dtos/company.post.dto.d.ts.map +1 -1
- package/dist/foundations/company/dtos/company.post.dto.js +3 -3
- package/dist/foundations/company/dtos/company.post.dto.js.map +1 -1
- package/dist/foundations/company/dtos/company.put.dto.d.ts +3 -3
- package/dist/foundations/company/dtos/company.put.dto.d.ts.map +1 -1
- package/dist/foundations/company/dtos/company.put.dto.js +3 -3
- package/dist/foundations/company/dtos/company.put.dto.js.map +1 -1
- package/dist/foundations/company/entities/company.d.ts +4 -4
- package/dist/foundations/company/entities/company.d.ts.map +1 -1
- package/dist/foundations/company/entities/company.js +18 -4
- 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 +96 -33
- package/dist/foundations/company/repositories/company.repository.d.ts.map +1 -1
- package/dist/foundations/company/repositories/company.repository.js +125 -95
- package/dist/foundations/company/repositories/company.repository.js.map +1 -1
- package/dist/foundations/company/services/company.service.d.ts +52 -13
- package/dist/foundations/company/services/company.service.d.ts.map +1 -1
- package/dist/foundations/company/services/company.service.js +62 -39
- 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/referral/services/referral.service.js +4 -4
- package/dist/foundations/referral/services/referral.service.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/stripe-subscription/services/token-allocation.service.d.ts +1 -1
- package/dist/foundations/stripe-subscription/services/token-allocation.service.js +10 -10
- package/dist/foundations/stripe-subscription/services/token-allocation.service.js.map +1 -1
- package/dist/foundations/stripe-trial/services/trial.service.js +2 -2
- package/dist/foundations/stripe-trial/services/trial.service.js.map +1 -1
- package/dist/foundations/stripe-webhook/processors/stripe-webhook.processor.js +2 -2
- package/dist/foundations/stripe-webhook/processors/stripe-webhook.processor.js.map +1 -1
- package/dist/foundations/tokenusage/entities/tokenusage.d.ts +50 -0
- package/dist/foundations/tokenusage/entities/tokenusage.d.ts.map +1 -0
- package/dist/foundations/tokenusage/entities/tokenusage.js +68 -0
- package/dist/foundations/tokenusage/entities/tokenusage.js.map +1 -0
- package/dist/foundations/tokenusage/enums/tokenusage.type.d.ts +2 -1
- package/dist/foundations/tokenusage/enums/tokenusage.type.d.ts.map +1 -1
- package/dist/foundations/tokenusage/enums/tokenusage.type.js +1 -0
- package/dist/foundations/tokenusage/enums/tokenusage.type.js.map +1 -1
- package/dist/foundations/tokenusage/events/tokenusage.events.d.ts +2 -0
- package/dist/foundations/tokenusage/events/tokenusage.events.d.ts.map +1 -1
- package/dist/foundations/tokenusage/index.d.ts +3 -3
- 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 +90 -5
- package/dist/foundations/tokenusage/repositories/tokenusage.repository.d.ts.map +1 -1
- package/dist/foundations/tokenusage/repositories/tokenusage.repository.js +165 -14
- package/dist/foundations/tokenusage/repositories/tokenusage.repository.js.map +1 -1
- package/dist/foundations/tokenusage/services/tokenusage.service.d.ts +73 -10
- package/dist/foundations/tokenusage/services/tokenusage.service.d.ts.map +1 -1
- package/dist/foundations/tokenusage/services/tokenusage.service.js +88 -8
- 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/pending-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 +2 -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.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
|
@@ -24,14 +24,23 @@ const nestjs_cls_1 = require("nestjs-cls");
|
|
|
24
24
|
const queue_id_1 = require("../../../config/enums/queue.id");
|
|
25
25
|
const jsonapi_paginator_1 = require("../../../core/jsonapi/serialisers/jsonapi.paginator");
|
|
26
26
|
const jsonapi_service_1 = require("../../../core/jsonapi/services/jsonapi.service");
|
|
27
|
+
const abstract_service_1 = require("../../../core/neo4j/abstracts/abstract.service");
|
|
27
28
|
const neo4j_service_1 = require("../../../core/neo4j/services/neo4j.service");
|
|
28
29
|
const version_service_1 = require("../../../core/version/services/version.service");
|
|
29
30
|
const company_1 = require("../../company/entities/company");
|
|
30
31
|
const company_repository_1 = require("../../company/repositories/company.repository");
|
|
31
32
|
const websocket_service_1 = require("../../../core/websocket/services/websocket.service");
|
|
32
33
|
const company_deletion_handler_interface_1 = require("../interfaces/company-deletion-handler.interface");
|
|
33
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Company service.
|
|
36
|
+
*
|
|
37
|
+
* Extends `AbstractService` so a consuming application can subclass it (see
|
|
38
|
+
* `ExtendedCompanyService`) and inherit both the generic descriptor-driven CRUD
|
|
39
|
+
* and every domain method declared here.
|
|
40
|
+
*/
|
|
41
|
+
let CompanyService = CompanyService_1 = class CompanyService extends abstract_service_1.AbstractService {
|
|
34
42
|
constructor(builder, companyRepository, queue, cls, neo4j, versionService, moduleRef, webSocketService, deletionHandler) {
|
|
43
|
+
super(builder, companyRepository, cls, company_1.CompanyDescriptor.model);
|
|
35
44
|
this.builder = builder;
|
|
36
45
|
this.companyRepository = companyRepository;
|
|
37
46
|
this.queue = queue;
|
|
@@ -41,6 +50,7 @@ let CompanyService = CompanyService_1 = class CompanyService {
|
|
|
41
50
|
this.moduleRef = moduleRef;
|
|
42
51
|
this.webSocketService = webSocketService;
|
|
43
52
|
this.deletionHandler = deletionHandler;
|
|
53
|
+
this.descriptor = company_1.CompanyDescriptor;
|
|
44
54
|
this.logger = new common_1.Logger(CompanyService_1.name);
|
|
45
55
|
}
|
|
46
56
|
async validate(params) {
|
|
@@ -50,61 +60,66 @@ let CompanyService = CompanyService_1 = class CompanyService {
|
|
|
50
60
|
if (!company)
|
|
51
61
|
throw new common_1.HttpException("Company not found", common_1.HttpStatus.UNAUTHORIZED);
|
|
52
62
|
}
|
|
53
|
-
async
|
|
63
|
+
async validateCompanyCredits(params) {
|
|
54
64
|
const company = await this.companyRepository.findByCompanyId({
|
|
55
65
|
companyId: params.companyId,
|
|
56
66
|
});
|
|
57
|
-
if ((!company.
|
|
58
|
-
(!company.
|
|
59
|
-
throw new common_1.HttpException("
|
|
67
|
+
if ((!company.availableMonthlyCredits || company.availableMonthlyCredits <= 0) &&
|
|
68
|
+
(!company.availableExtraCredits || company.availableExtraCredits <= 0))
|
|
69
|
+
throw new common_1.HttpException("NO_CREDITS", common_1.HttpStatus.PAYMENT_REQUIRED);
|
|
60
70
|
}
|
|
61
|
-
async
|
|
71
|
+
async hasAvailableCredits(params) {
|
|
62
72
|
const company = await this.companyRepository.findByCompanyId({ companyId: params.companyId });
|
|
63
|
-
return ((company.
|
|
64
|
-
(company.
|
|
73
|
+
return ((company.availableMonthlyCredits && company.availableMonthlyCredits > 0) ||
|
|
74
|
+
(company.availableExtraCredits && company.availableExtraCredits > 0));
|
|
65
75
|
}
|
|
66
|
-
async
|
|
67
|
-
const balances = await this.companyRepository.
|
|
68
|
-
input: params.inputTokens,
|
|
69
|
-
output: params.outputTokens,
|
|
70
|
-
});
|
|
76
|
+
async useCredits(params) {
|
|
77
|
+
const balances = await this.companyRepository.useCredits({ credits: params.credits });
|
|
71
78
|
// Nothing consumed — no balance change worth broadcasting.
|
|
72
79
|
if (!balances)
|
|
73
80
|
return;
|
|
74
81
|
// Broadcast the new balances to all company users. Consumers patch these in
|
|
75
|
-
// directly; they must never need to refetch the user to read a
|
|
82
|
+
// directly; they must never need to refetch the user to read a credit count.
|
|
76
83
|
const companyId = this.cls.get("companyId");
|
|
77
84
|
if (companyId) {
|
|
78
|
-
await this.webSocketService.sendMessageToCompany(companyId, "company:
|
|
79
|
-
type: "company:
|
|
85
|
+
await this.webSocketService.sendMessageToCompany(companyId, "company:credits_updated", {
|
|
86
|
+
type: "company:credits_updated",
|
|
80
87
|
companyId,
|
|
81
|
-
|
|
82
|
-
|
|
88
|
+
availableMonthlyCredits: balances.availableMonthlyCredits,
|
|
89
|
+
availableExtraCredits: balances.availableExtraCredits,
|
|
83
90
|
});
|
|
84
91
|
}
|
|
85
92
|
}
|
|
86
93
|
/**
|
|
87
|
-
* Reacts to LLM
|
|
88
|
-
*
|
|
89
|
-
* module never imports CompanyModule. Best-effort: must never throw
|
|
90
|
-
* the emitter (the LLM call that triggered it must not break).
|
|
94
|
+
* Reacts to LLM usage recorded by TokenUsageService and decrements the
|
|
95
|
+
* company's running credit balance. Decoupled via the event bus so the
|
|
96
|
+
* tokenusage module never imports CompanyModule. Best-effort: must never throw
|
|
97
|
+
* back into the emitter (the LLM call that triggered it must not break).
|
|
91
98
|
*/
|
|
92
99
|
async handleTokenUsageRecorded(payload) {
|
|
93
100
|
try {
|
|
94
|
-
await this.
|
|
101
|
+
await this.useCredits({ credits: payload.credits });
|
|
95
102
|
}
|
|
96
103
|
catch (error) {
|
|
97
|
-
this.logger.warn(`Failed to deduct company
|
|
104
|
+
this.logger.warn(`Failed to deduct company credits: ${error instanceof Error ? error.message : String(error)}`);
|
|
98
105
|
}
|
|
99
106
|
}
|
|
100
|
-
|
|
101
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Create a company from a DTO.
|
|
109
|
+
*
|
|
110
|
+
* RENAMED from `create` to `createCompanyFromDTO` (TS2416): the inherited
|
|
111
|
+
* `AbstractService.create()` takes descriptor-driven params and returns
|
|
112
|
+
* `Promise<JsonApiDataInterface>`, so this DTO-shaped creator cannot override it.
|
|
113
|
+
* The name mirrors the shipped a360ai reference implementation.
|
|
114
|
+
*/
|
|
115
|
+
async createCompanyFromDTO(params) {
|
|
116
|
+
return this.companyRepository.createCompanyNode({
|
|
102
117
|
companyId: params.data.id,
|
|
103
118
|
name: params.data.attributes.name,
|
|
104
119
|
configurations: params.data.attributes.configurations,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
120
|
+
monthlyCredits: params.data.attributes.monthlyCredits,
|
|
121
|
+
availableMonthlyCredits: params.data.attributes.availableMonthlyCredits,
|
|
122
|
+
availableExtraCredits: params.data.attributes.availableExtraCredits,
|
|
108
123
|
featureIds: params.data.relationships?.features?.data.map((feature) => feature.id),
|
|
109
124
|
legal_address: params.data.attributes.legal_address,
|
|
110
125
|
street_number: params.data.attributes.street_number,
|
|
@@ -119,13 +134,13 @@ let CompanyService = CompanyService_1 = class CompanyService {
|
|
|
119
134
|
});
|
|
120
135
|
}
|
|
121
136
|
async createForController(params) {
|
|
122
|
-
await this.companyRepository.
|
|
137
|
+
await this.companyRepository.createCompanyNode({
|
|
123
138
|
companyId: params.data.id,
|
|
124
139
|
name: params.data.attributes.name,
|
|
125
140
|
configurations: params.data.attributes.configurations,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
141
|
+
monthlyCredits: params.data.attributes.monthlyCredits,
|
|
142
|
+
availableMonthlyCredits: params.data.attributes.availableMonthlyCredits,
|
|
143
|
+
availableExtraCredits: params.data.attributes.availableExtraCredits,
|
|
129
144
|
featureIds: params.data.relationships?.features?.data.map((feature) => feature.id),
|
|
130
145
|
moduleIds: params.data.relationships?.modules?.data.map((module) => module.id),
|
|
131
146
|
legal_address: params.data.attributes.legal_address,
|
|
@@ -147,9 +162,9 @@ let CompanyService = CompanyService_1 = class CompanyService {
|
|
|
147
162
|
name: params.data.attributes.name,
|
|
148
163
|
configurations: params.data.attributes.configurations,
|
|
149
164
|
logo: params.data.attributes.logo,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
165
|
+
monthlyCredits: params.data.attributes.monthlyCredits,
|
|
166
|
+
availableMonthlyCredits: params.data.attributes.availableMonthlyCredits,
|
|
167
|
+
availableExtraCredits: params.data.attributes.availableExtraCredits,
|
|
153
168
|
featureIds: params.data.relationships?.features?.data.map((feature) => feature.id),
|
|
154
169
|
moduleIds: params.data.relationships?.modules?.data.map((module) => module.id),
|
|
155
170
|
legal_address: params.data.attributes.legal_address,
|
|
@@ -182,14 +197,22 @@ let CompanyService = CompanyService_1 = class CompanyService {
|
|
|
182
197
|
async findRaw(params) {
|
|
183
198
|
return this.companyRepository.findByCompanyId({ companyId: params.companyId });
|
|
184
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Queue-based async deletion. KEPT under the name `delete` (overriding
|
|
202
|
+
* `AbstractService.delete()`) because it has real extra logic — it queues a BullMQ
|
|
203
|
+
* job instead of deleting synchronously. The param was renamed from `companyId` to
|
|
204
|
+
* `id` to match `AbstractService.delete()`'s exact `{ id: string }` shape (required
|
|
205
|
+
* to satisfy `extends AbstractService`); this mirrors the shipped a360ai reference
|
|
206
|
+
* implementation.
|
|
207
|
+
*/
|
|
185
208
|
async delete(params) {
|
|
186
209
|
const queueElement = {
|
|
187
|
-
companyId: params.
|
|
210
|
+
companyId: params.id,
|
|
188
211
|
};
|
|
189
212
|
await this.queue.add("deleteCompany", queueElement);
|
|
190
213
|
}
|
|
191
214
|
async deleteFullCompany(params) {
|
|
192
|
-
await this.companyRepository.delete({
|
|
215
|
+
await this.companyRepository.delete({ id: params.companyId });
|
|
193
216
|
}
|
|
194
217
|
/**
|
|
195
218
|
* Synchronous immediate company deletion.
|
|
@@ -212,7 +235,7 @@ let CompanyService = CompanyService_1 = class CompanyService {
|
|
|
212
235
|
});
|
|
213
236
|
}
|
|
214
237
|
else {
|
|
215
|
-
await this.companyRepository.delete({
|
|
238
|
+
await this.companyRepository.delete({ id: params.companyId });
|
|
216
239
|
}
|
|
217
240
|
}
|
|
218
241
|
async setDefaultCompanyRequestConfigurationForContactRequests() {
|
|
@@ -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;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CAAiB;QACC,cAAK;QACrC,uBAAU;QACR,4BAAY;QACH,gCAAc;QACnB,gBAAS;QACF,oCAAgB;GAb1C,cAAc,CAgQ1B"}
|
|
@@ -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,Q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GAAE,CAAA;IAAc,WAAA,IAAA,cAAK,EAAC,WAAW,CAAC,CAAA;;;;uEAO5E;4BAlFU,iBAAiB;IAF7B,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,mBAAU,GAAE;qCAGwB,gCAAc;QACZ,oCAAgB;QACnB,6CAAoB;GAJ3C,iBAAiB,CAmF7B"}
|
|
@@ -0,0 +1,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"}
|