@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
|
@@ -12,20 +12,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.UserService = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const config_1 = require("@nestjs/config");
|
|
15
|
-
const email_service_1 = require("../../../core/email/services/email.service");
|
|
16
15
|
const system_roles_1 = require("../../../common/constants/system.roles");
|
|
16
|
+
const email_service_1 = require("../../../core/email/services/email.service");
|
|
17
17
|
const security_service_1 = require("../../../core/security/services/security.service");
|
|
18
18
|
const crypto_1 = require("crypto");
|
|
19
|
+
const nestjs_cls_1 = require("nestjs-cls");
|
|
19
20
|
const jsonapi_paginator_1 = require("../../../core/jsonapi/serialisers/jsonapi.paginator");
|
|
20
21
|
const jsonapi_service_1 = require("../../../core/jsonapi/services/jsonapi.service");
|
|
22
|
+
const abstract_service_1 = require("../../../core/neo4j/abstracts/abstract.service");
|
|
21
23
|
const user_1 = require("../../user/entities/user");
|
|
22
24
|
const user_repository_1 = require("../repositories/user.repository");
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
/**
|
|
26
|
+
* User service.
|
|
27
|
+
*
|
|
28
|
+
* Extends `AbstractService` so an application can subclass it and have BOTH the
|
|
29
|
+
* inherited generic methods AND every method declared here serialise with the
|
|
30
|
+
* *extended* model. Model resolution is by subclass polymorphism — a subclass
|
|
31
|
+
* re-declares `descriptor` and `model` as initialised class fields — never by a
|
|
32
|
+
* registry lookup (Nest constructs providers before `onModuleInit`, where models
|
|
33
|
+
* are registered).
|
|
34
|
+
*
|
|
35
|
+
* The three domain methods whose names collide with the abstract's generic CRUD
|
|
36
|
+
* (`create` / `put` / `delete`) are named `createUser` / `putUser` /
|
|
37
|
+
* `deleteUser` so the inherited descriptor-driven CRUD stays reachable.
|
|
38
|
+
*/
|
|
39
|
+
let UserService = class UserService extends abstract_service_1.AbstractService {
|
|
40
|
+
constructor(jsonApiService, userRepository, emailService, configService, clsService) {
|
|
41
|
+
super(jsonApiService, userRepository, clsService, user_1.UserDescriptor.model);
|
|
42
|
+
this.userRepository = userRepository;
|
|
27
43
|
this.emailService = emailService;
|
|
28
44
|
this.configService = configService;
|
|
45
|
+
this.descriptor = user_1.UserDescriptor;
|
|
29
46
|
}
|
|
30
47
|
get appConfig() {
|
|
31
48
|
return this.configService.get("app");
|
|
@@ -41,13 +58,13 @@ let UserService = class UserService {
|
|
|
41
58
|
return roleIds.filter((roleId) => roleId !== system_roles_1.RoleId.Administrator);
|
|
42
59
|
}
|
|
43
60
|
async expectNotExists(params) {
|
|
44
|
-
const user = await this.
|
|
61
|
+
const user = await this.userRepository.findByEmail({ email: params.email });
|
|
45
62
|
if (user)
|
|
46
63
|
throw new common_1.HttpException("A user with the given email already exists", common_1.HttpStatus.CONFLICT);
|
|
47
64
|
}
|
|
48
65
|
async findMany(params) {
|
|
49
66
|
const paginator = new jsonapi_paginator_1.JsonApiPaginator(params.query);
|
|
50
|
-
return this.
|
|
67
|
+
return this.jsonApiService.buildList(this.model, await this.userRepository.findMany({
|
|
51
68
|
term: params.term,
|
|
52
69
|
cursor: paginator.generateCursor(),
|
|
53
70
|
includeDeleted: params.includeDeleted ?? false,
|
|
@@ -55,7 +72,7 @@ let UserService = class UserService {
|
|
|
55
72
|
}
|
|
56
73
|
async findByContentIds(params) {
|
|
57
74
|
const paginator = new jsonapi_paginator_1.JsonApiPaginator(params.query);
|
|
58
|
-
return this.
|
|
75
|
+
return this.jsonApiService.buildList(this.model, await this.userRepository.findManyByContentIds({
|
|
59
76
|
contentIds: params.contentIds,
|
|
60
77
|
includeDeleted: params.includeDeleted ?? false,
|
|
61
78
|
term: params.term,
|
|
@@ -63,7 +80,7 @@ let UserService = class UserService {
|
|
|
63
80
|
}
|
|
64
81
|
async findManyByCompany(params) {
|
|
65
82
|
const paginator = new jsonapi_paginator_1.JsonApiPaginator(params.query);
|
|
66
|
-
return this.
|
|
83
|
+
return this.jsonApiService.buildList(this.model, await this.userRepository.findManyByCompany({
|
|
67
84
|
companyId: params.companyId,
|
|
68
85
|
term: params.term,
|
|
69
86
|
cursor: paginator.generateCursor(),
|
|
@@ -73,7 +90,7 @@ let UserService = class UserService {
|
|
|
73
90
|
}
|
|
74
91
|
async findInRole(params) {
|
|
75
92
|
const paginator = new jsonapi_paginator_1.JsonApiPaginator(params.query);
|
|
76
|
-
return this.
|
|
93
|
+
return this.jsonApiService.buildList(this.model, await this.userRepository.findInRole({
|
|
77
94
|
roleId: params.roleId,
|
|
78
95
|
term: params.term,
|
|
79
96
|
cursor: paginator.generateCursor(),
|
|
@@ -81,22 +98,22 @@ let UserService = class UserService {
|
|
|
81
98
|
}
|
|
82
99
|
async findNotInRole(params) {
|
|
83
100
|
const paginator = new jsonapi_paginator_1.JsonApiPaginator(params.query);
|
|
84
|
-
return this.
|
|
101
|
+
return this.jsonApiService.buildList(this.model, await this.userRepository.findNotInRole({
|
|
85
102
|
roleId: params.roleId,
|
|
86
103
|
term: params.term,
|
|
87
104
|
cursor: paginator.generateCursor(),
|
|
88
105
|
}), paginator);
|
|
89
106
|
}
|
|
90
107
|
async findByUserId(params) {
|
|
91
|
-
return this.
|
|
108
|
+
return this.jsonApiService.buildSingle(this.model, await this.userRepository.findByUserId({ userId: params.userId }));
|
|
92
109
|
}
|
|
93
110
|
async findOneForAdmin(params) {
|
|
94
|
-
return this.
|
|
111
|
+
return this.jsonApiService.buildSingle(this.model, await this.userRepository.findOneForAdmin({ userId: params.userId }));
|
|
95
112
|
}
|
|
96
113
|
async findByUserIdCompanyId(params) {
|
|
97
|
-
return this.
|
|
114
|
+
return this.jsonApiService.buildSingle(this.model, await this.userRepository.findByUserId({ userId: params.userId, companyId: params.companyId }));
|
|
98
115
|
}
|
|
99
|
-
async
|
|
116
|
+
async putUser(params) {
|
|
100
117
|
if (params.data.attributes.password || params.data.attributes.name) {
|
|
101
118
|
if (params.data.attributes.password)
|
|
102
119
|
params.data.attributes.password = await (0, security_service_1.hashPassword)(params.data.attributes.password);
|
|
@@ -105,7 +122,7 @@ let UserService = class UserService {
|
|
|
105
122
|
? this.companyRoleIds(params.data.relationships?.roles?.data?.map((role) => role.id) ?? [])
|
|
106
123
|
: undefined
|
|
107
124
|
: undefined;
|
|
108
|
-
await this.
|
|
125
|
+
await this.userRepository.putUser({
|
|
109
126
|
isAdmin: params.isAdmin,
|
|
110
127
|
userId: params.data.id,
|
|
111
128
|
email: params.data.attributes.email,
|
|
@@ -119,16 +136,16 @@ let UserService = class UserService {
|
|
|
119
136
|
});
|
|
120
137
|
}
|
|
121
138
|
if (params.isCurrentUser)
|
|
122
|
-
return this.
|
|
139
|
+
return this.jsonApiService.buildSingle(this.model, await this.userRepository.findFullUser({ userId: params.data.id }));
|
|
123
140
|
return this.findByUserId({
|
|
124
141
|
userId: params.data.id,
|
|
125
142
|
});
|
|
126
143
|
}
|
|
127
144
|
async findFullUser(params) {
|
|
128
|
-
return this.
|
|
145
|
+
return this.jsonApiService.buildSingle(this.model, await this.userRepository.findFullUser({ userId: params.userId }));
|
|
129
146
|
}
|
|
130
147
|
async reactivate(params) {
|
|
131
|
-
await this.
|
|
148
|
+
await this.userRepository.reactivate({
|
|
132
149
|
userId: params.userId,
|
|
133
150
|
});
|
|
134
151
|
return this.findByUserId({
|
|
@@ -136,7 +153,7 @@ let UserService = class UserService {
|
|
|
136
153
|
});
|
|
137
154
|
}
|
|
138
155
|
async patchAvatar(params) {
|
|
139
|
-
await this.
|
|
156
|
+
await this.userRepository.patchAvatar({
|
|
140
157
|
userId: params.data.id,
|
|
141
158
|
avatar: params.data.attributes.avatar,
|
|
142
159
|
});
|
|
@@ -145,7 +162,7 @@ let UserService = class UserService {
|
|
|
145
162
|
});
|
|
146
163
|
}
|
|
147
164
|
async patchRate(params) {
|
|
148
|
-
await this.
|
|
165
|
+
await this.userRepository.patchRate({
|
|
149
166
|
userId: params.data.id,
|
|
150
167
|
rate: params.data.attributes.rate,
|
|
151
168
|
});
|
|
@@ -154,7 +171,7 @@ let UserService = class UserService {
|
|
|
154
171
|
});
|
|
155
172
|
}
|
|
156
173
|
async sendInvitationEmail(params) {
|
|
157
|
-
const user = await this.
|
|
174
|
+
const user = await this.userRepository.resetCode({ userId: params.userId });
|
|
158
175
|
const link = `${this.appConfig.url}en/invitation/${user.code}`;
|
|
159
176
|
await this.emailService.sendEmail("invitationEmail", {
|
|
160
177
|
to: user.email,
|
|
@@ -165,13 +182,13 @@ let UserService = class UserService {
|
|
|
165
182
|
}, "en");
|
|
166
183
|
}
|
|
167
184
|
async findByEmail(params) {
|
|
168
|
-
return this.
|
|
185
|
+
return this.jsonApiService.buildSingle(this.model, await this.userRepository.findByEmail({ email: params.email }));
|
|
169
186
|
}
|
|
170
|
-
async
|
|
187
|
+
async createUser(params) {
|
|
171
188
|
const password = params.data.attributes.password
|
|
172
189
|
? await (0, security_service_1.hashPassword)(params.data.attributes.password)
|
|
173
190
|
: (0, crypto_1.randomUUID)();
|
|
174
|
-
const user = await this.
|
|
191
|
+
const user = await this.userRepository.createUser({
|
|
175
192
|
userId: params.data.id,
|
|
176
193
|
name: params.data.attributes.name,
|
|
177
194
|
email: params.data.attributes.email,
|
|
@@ -185,7 +202,7 @@ let UserService = class UserService {
|
|
|
185
202
|
// Company-scoped: the CompanyAdministrator role is granted on the membership for the
|
|
186
203
|
// company this user was just created in, never as a global user→role edge.
|
|
187
204
|
if (params.forceCompanyAdmin)
|
|
188
|
-
await this.
|
|
205
|
+
await this.userRepository.makeCompanyAdmin({
|
|
189
206
|
userId: params.data.id,
|
|
190
207
|
companyId: params.data.relationships.company.data.id,
|
|
191
208
|
});
|
|
@@ -206,7 +223,7 @@ let UserService = class UserService {
|
|
|
206
223
|
const password = params.data.attributes.password
|
|
207
224
|
? await (0, security_service_1.hashPassword)(params.data.attributes.password)
|
|
208
225
|
: (0, crypto_1.randomUUID)();
|
|
209
|
-
const user = await this.
|
|
226
|
+
const user = await this.userRepository.createUser({
|
|
210
227
|
userId: params.data.id,
|
|
211
228
|
name: params.data.attributes.name,
|
|
212
229
|
email: params.data.attributes.email,
|
|
@@ -230,15 +247,15 @@ let UserService = class UserService {
|
|
|
230
247
|
companyId: params.companyId,
|
|
231
248
|
});
|
|
232
249
|
}
|
|
233
|
-
async
|
|
234
|
-
await this.
|
|
250
|
+
async deleteUser(params) {
|
|
251
|
+
await this.userRepository.deleteUser({ userId: params.userId });
|
|
235
252
|
}
|
|
236
253
|
async addUserToRole(params) {
|
|
237
|
-
await this.
|
|
254
|
+
await this.userRepository.addUserToRole({ userId: params.userId, roleId: params.roleId });
|
|
238
255
|
return this.findByUserId({ userId: params.userId });
|
|
239
256
|
}
|
|
240
257
|
async removeUserFromRole(params) {
|
|
241
|
-
await this.
|
|
258
|
+
await this.userRepository.removeUserFromRole({
|
|
242
259
|
roleId: params.roleId,
|
|
243
260
|
userId: params.userId,
|
|
244
261
|
});
|
|
@@ -251,6 +268,7 @@ exports.UserService = UserService = __decorate([
|
|
|
251
268
|
__metadata("design:paramtypes", [jsonapi_service_1.JsonApiService,
|
|
252
269
|
user_repository_1.UserRepository,
|
|
253
270
|
email_service_1.EmailService,
|
|
254
|
-
config_1.ConfigService
|
|
271
|
+
config_1.ConfigService,
|
|
272
|
+
nestjs_cls_1.ClsService])
|
|
255
273
|
], UserService);
|
|
256
274
|
//# sourceMappingURL=user.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../src/foundations/user/services/user.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAuE;AACvE,2CAA+C;AAC/C,8EAA0E;AAC1E,yEAAgE;AAChE,uFAAgF;AAIhF,mCAAoC;AAGpC,2FAAuF;AACvF,oFAAgF;AAGhF,mDAAgE;AAChE,qEAAiE;AAG1D,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YACmB,OAAuB,EACvB,EAAkB,EAClB,YAA0B,EAC1B,aAAiD;QAHjD,YAAO,GAAP,OAAO,CAAgB;QACvB,OAAE,GAAF,EAAE,CAAgB;Q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E,CAAC,kBAAkB,CAAC;YAC/B,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IACtD,CAAC;CACF,CAAA;AAxVY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAGiB,gCAAc;QACnB,gCAAc;QACJ,4BAAY;QACX,sBAAa;GALpC,WAAW,CAwVvB"}
|
|
1
|
+
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../src/foundations/user/services/user.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAuE;AACvE,2CAA+C;AAC/C,yEAAgE;AAChE,8EAA0E;AAC1E,uFAAgF;AAIhF,mCAAoC;AACpC,2CAAwC;AAGxC,2FAAuF;AACvF,oFAAgF;AAChF,qFAAiF;AAGjF,mDAAgE;AAChE,qEAAiE;AAEjE;;;;;;;;;;;;;GAaG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,kCAA0D;IAGzF,YACE,cAA8B,EACX,cAA8B,EAC9B,YAA0B,EAC1B,aAAiD,EACpE,UAAsB;QAEtB,KAAK,CAAC,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,qBAAc,CAAC,KAAK,CAAC,CAAC;QALrD,mBAAc,GAAd,cAAc,CAAgB;QAC9B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,kBAAa,GAAb,aAAa,CAAoC;QANnD,eAAU,GAAG,qBAAc,CAAC;IAU/C,CAAC;IAED,IAAY,SAAS;QACnB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAqB,KAAK,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;OAMG;IACK,cAAc,CAAC,OAAiB;QACtC,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,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Aa;QACnC,uBAAU;GARb,WAAW,CA6WvB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Entity } from "../../../common/abstracts/entity";
|
|
2
|
+
/**
|
|
3
|
+
* UserActivity Entity Type
|
|
4
|
+
*
|
|
5
|
+
* `category` and `action` are open strings at the library level: consuming
|
|
6
|
+
* apps keep their own enums (e.g. UserActivityCategory / UserActivityAction)
|
|
7
|
+
* and pass their members straight through — a string union member is always
|
|
8
|
+
* assignable to `string`.
|
|
9
|
+
*/
|
|
10
|
+
export type UserActivity = Entity & {
|
|
11
|
+
category: string;
|
|
12
|
+
action: string;
|
|
13
|
+
entityType?: string;
|
|
14
|
+
entityId?: string;
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* UserActivity Entity Descriptor
|
|
19
|
+
*
|
|
20
|
+
* Single source of truth for the UserActivity entity configuration.
|
|
21
|
+
* Generates mapper, childrenTokens, and DataModelInterface automatically.
|
|
22
|
+
*
|
|
23
|
+
* Records are written by `UserActivityRepository.createActivity()` (a fully custom
|
|
24
|
+
* Cypher write, run from the `UserActivityProcessor` BullMQ worker outside
|
|
25
|
+
* HTTP/CLS context — see the repository) rather than through the inherited
|
|
26
|
+
* descriptor-driven `create()`. The descriptor still owns field typing,
|
|
27
|
+
* JSON:API serialisation, and the semantic layer for the chatbot catalog.
|
|
28
|
+
*
|
|
29
|
+
* NOTE: this descriptor is deliberately NOT registered with the
|
|
30
|
+
* GraphDescriptorRegistry here — graph-catalog registration is an
|
|
31
|
+
* application-level policy decision (see the consuming app's
|
|
32
|
+
* GraphCatalogModule), not a library one.
|
|
33
|
+
*/
|
|
34
|
+
export declare const UserActivityDescriptor: import("../../..").EntityDescriptor<UserActivity, {}>;
|
|
35
|
+
export type UserActivityDescriptorType = typeof UserActivityDescriptor;
|
|
36
|
+
//# sourceMappingURL=user-activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-activity.d.ts","sourceRoot":"","sources":["../../../../src/foundations/user-activity/entities/user-activity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAI1D;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,sBAAsB,uDAsEjC,CAAC;AAGH,MAAM,MAAM,0BAA0B,GAAG,OAAO,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserActivityDescriptor = void 0;
|
|
4
|
+
const define_entity_1 = require("../../../common/helpers/define-entity");
|
|
5
|
+
const user_activity_meta_1 = require("./user-activity.meta");
|
|
6
|
+
/**
|
|
7
|
+
* UserActivity Entity Descriptor
|
|
8
|
+
*
|
|
9
|
+
* Single source of truth for the UserActivity entity configuration.
|
|
10
|
+
* Generates mapper, childrenTokens, and DataModelInterface automatically.
|
|
11
|
+
*
|
|
12
|
+
* Records are written by `UserActivityRepository.createActivity()` (a fully custom
|
|
13
|
+
* Cypher write, run from the `UserActivityProcessor` BullMQ worker outside
|
|
14
|
+
* HTTP/CLS context — see the repository) rather than through the inherited
|
|
15
|
+
* descriptor-driven `create()`. The descriptor still owns field typing,
|
|
16
|
+
* JSON:API serialisation, and the semantic layer for the chatbot catalog.
|
|
17
|
+
*
|
|
18
|
+
* NOTE: this descriptor is deliberately NOT registered with the
|
|
19
|
+
* GraphDescriptorRegistry here — graph-catalog registration is an
|
|
20
|
+
* application-level policy decision (see the consuming app's
|
|
21
|
+
* GraphCatalogModule), not a library one.
|
|
22
|
+
*/
|
|
23
|
+
exports.UserActivityDescriptor = (0, define_entity_1.defineEntity)()({
|
|
24
|
+
...user_activity_meta_1.userActivityMeta,
|
|
25
|
+
description: "A user activity (attività utente) log entry: an audit-trail record of an action a user performed on the platform (e.g. login, create/update/delete an entity, an AI query, a document share), captured for compliance and security review.",
|
|
26
|
+
chat: {
|
|
27
|
+
summary: (d) => `${d.category ?? ""} ${d.action ?? ""}${d.entityType ? ` on ${d.entityType}` : ""}`.trim() || d.id,
|
|
28
|
+
textSearchFields: ["category", "action", "entityType", "entityId"],
|
|
29
|
+
},
|
|
30
|
+
// Field definitions
|
|
31
|
+
fields: {
|
|
32
|
+
category: {
|
|
33
|
+
type: "string",
|
|
34
|
+
required: true,
|
|
35
|
+
description: 'The broad domain of the activity: "AUTH" (login/logout), "ENTITY" (CRUD on a resource), "AI" (an AI/LLM interaction), "COLLABORATION" (sharing, comments), or "DOCUMENT" (document-specific actions).',
|
|
36
|
+
},
|
|
37
|
+
action: {
|
|
38
|
+
type: "string",
|
|
39
|
+
required: true,
|
|
40
|
+
description: 'The specific action performed: "LOGIN", "CREATE", "UPDATE", "DELETE", "QUERY", "COMPLETE", "SHARE", or "IMPORT".',
|
|
41
|
+
},
|
|
42
|
+
entityType: {
|
|
43
|
+
type: "string",
|
|
44
|
+
description: 'The JSON:API resource type the action targeted (e.g. "proceedings", "documents"), when the activity relates to a specific entity.',
|
|
45
|
+
},
|
|
46
|
+
entityId: {
|
|
47
|
+
type: "string",
|
|
48
|
+
description: "The id of the specific entity the action targeted, when applicable.",
|
|
49
|
+
},
|
|
50
|
+
metadata: {
|
|
51
|
+
type: "json",
|
|
52
|
+
description: "Additional structured context captured at record time (e.g. HTTP method and path for coarse-grained interceptor-captured events). Shape varies by category and action.",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
// Computed properties (derived from Neo4j query results)
|
|
56
|
+
computed: {
|
|
57
|
+
// `metadata` is stored on the node as a JSON string (see
|
|
58
|
+
// UserActivityRepository.createActivity()); this reproduces the old
|
|
59
|
+
// mapUserActivity()/safeParseJson() behaviour of parsing it back into an
|
|
60
|
+
// object for JSON:API output.
|
|
61
|
+
metadata: {
|
|
62
|
+
compute: (params) => {
|
|
63
|
+
const raw = params.data?.metadata;
|
|
64
|
+
if (raw === null || raw === undefined)
|
|
65
|
+
return undefined;
|
|
66
|
+
if (typeof raw === "string") {
|
|
67
|
+
try {
|
|
68
|
+
return JSON.parse(raw);
|
|
69
|
+
}
|
|
70
|
+
catch {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return raw;
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
// No relationships are exposed via JSON:API — matches the old
|
|
79
|
+
// UserActivitySerialiser (relationships: {}) and old
|
|
80
|
+
// UserActivityModel.singleChildrenTokens: []. The real Cypher graph has
|
|
81
|
+
// (User)-[:PERFORMED]->(UserActivity)-[:BELONGS_TO]->(Company), but both
|
|
82
|
+
// edges are only ever traversed internally (UserActivityRepository.createActivity()
|
|
83
|
+
// / findByUser()), never surfaced on the wire.
|
|
84
|
+
relationships: {},
|
|
85
|
+
});
|
|
86
|
+
//# sourceMappingURL=user-activity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-activity.js","sourceRoot":"","sources":["../../../../src/foundations/user-activity/entities/user-activity.ts"],"names":[],"mappings":";;;AACA,yEAAqE;AACrE,6DAAwD;AAkBxD;;;;;;;;;;;;;;;;GAgBG;AACU,QAAA,sBAAsB,GAAG,IAAA,4BAAY,GAAgB,CAAC;IACjE,GAAG,qCAAgB;IAEnB,WAAW,EACT,4OAA4O;IAE9O,IAAI,EAAE;QACJ,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,MAAM,I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,8DAA8D;IAC9D,qDAAqD;IACrD,wEAAwE;IACxE,yEAAyE;IACzE,oFAAoF;IACpF,+CAA+C;IAC/C,aAAa,EAAE,EAAE;CAClB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-activity.meta.d.ts","sourceRoot":"","sources":["../../../../src/foundations/user-activity/entities/user-activity.meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAE1E,eAAO,MAAM,gBAAgB,EAAE,QAK9B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userActivityMeta = void 0;
|
|
4
|
+
exports.userActivityMeta = {
|
|
5
|
+
type: "user-activities",
|
|
6
|
+
endpoint: "user-activities",
|
|
7
|
+
nodeName: "userActivity",
|
|
8
|
+
labelName: "UserActivity",
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=user-activity.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-activity.meta.js","sourceRoot":"","sources":["../../../../src/foundations/user-activity/entities/user-activity.meta.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAa;IACxC,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,iBAAiB;IAC3B,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,cAAc;CAC1B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { UserActivityModule } from "./user-activity.module";
|
|
2
|
+
export { UserActivity, UserActivityDescriptor, UserActivityDescriptorType } from "./entities/user-activity";
|
|
3
|
+
export { userActivityMeta } from "./entities/user-activity.meta";
|
|
4
|
+
export { UserActivityRepository } from "./repositories/user-activity.repository";
|
|
5
|
+
export { UserActivityService } from "./services/user-activity.service";
|
|
6
|
+
export { UserActivityProcessor } from "./processors/user-activity.processor";
|
|
7
|
+
export { UserActivityInterceptor } from "./interceptors/user-activity.interceptor";
|
|
8
|
+
export { UserActivityRecordInput } from "./interfaces/user-activity.record.input";
|
|
9
|
+
export { UserActivityModuleConfig, USER_ACTIVITY_CONFIG, USER_ACTIVITY_QUEUE, DEFAULT_USER_ACTIVITY_CONFIG, } from "./interfaces/user-activity.config.interface";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/user-activity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,6CAA6C,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_USER_ACTIVITY_CONFIG = exports.USER_ACTIVITY_QUEUE = exports.USER_ACTIVITY_CONFIG = exports.UserActivityInterceptor = exports.UserActivityProcessor = exports.UserActivityService = exports.UserActivityRepository = exports.userActivityMeta = exports.UserActivityDescriptor = exports.UserActivityModule = void 0;
|
|
4
|
+
var user_activity_module_1 = require("./user-activity.module");
|
|
5
|
+
Object.defineProperty(exports, "UserActivityModule", { enumerable: true, get: function () { return user_activity_module_1.UserActivityModule; } });
|
|
6
|
+
var user_activity_1 = require("./entities/user-activity");
|
|
7
|
+
Object.defineProperty(exports, "UserActivityDescriptor", { enumerable: true, get: function () { return user_activity_1.UserActivityDescriptor; } });
|
|
8
|
+
var user_activity_meta_1 = require("./entities/user-activity.meta");
|
|
9
|
+
Object.defineProperty(exports, "userActivityMeta", { enumerable: true, get: function () { return user_activity_meta_1.userActivityMeta; } });
|
|
10
|
+
var user_activity_repository_1 = require("./repositories/user-activity.repository");
|
|
11
|
+
Object.defineProperty(exports, "UserActivityRepository", { enumerable: true, get: function () { return user_activity_repository_1.UserActivityRepository; } });
|
|
12
|
+
var user_activity_service_1 = require("./services/user-activity.service");
|
|
13
|
+
Object.defineProperty(exports, "UserActivityService", { enumerable: true, get: function () { return user_activity_service_1.UserActivityService; } });
|
|
14
|
+
var user_activity_processor_1 = require("./processors/user-activity.processor");
|
|
15
|
+
Object.defineProperty(exports, "UserActivityProcessor", { enumerable: true, get: function () { return user_activity_processor_1.UserActivityProcessor; } });
|
|
16
|
+
var user_activity_interceptor_1 = require("./interceptors/user-activity.interceptor");
|
|
17
|
+
Object.defineProperty(exports, "UserActivityInterceptor", { enumerable: true, get: function () { return user_activity_interceptor_1.UserActivityInterceptor; } });
|
|
18
|
+
var user_activity_config_interface_1 = require("./interfaces/user-activity.config.interface");
|
|
19
|
+
Object.defineProperty(exports, "USER_ACTIVITY_CONFIG", { enumerable: true, get: function () { return user_activity_config_interface_1.USER_ACTIVITY_CONFIG; } });
|
|
20
|
+
Object.defineProperty(exports, "USER_ACTIVITY_QUEUE", { enumerable: true, get: function () { return user_activity_config_interface_1.USER_ACTIVITY_QUEUE; } });
|
|
21
|
+
Object.defineProperty(exports, "DEFAULT_USER_ACTIVITY_CONFIG", { enumerable: true, get: function () { return user_activity_config_interface_1.DEFAULT_USER_ACTIVITY_CONFIG; } });
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/foundations/user-activity/index.ts"],"names":[],"mappings":";;;AAAA,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAC3B,0DAA4G;AAArF,uHAAA,sBAAsB,OAAA;AAC7C,oEAAiE;AAAxD,sHAAA,gBAAgB,OAAA;AACzB,oFAAiF;AAAxE,kIAAA,sBAAsB,OAAA;AAC/B,0EAAuE;AAA9D,4HAAA,mBAAmB,OAAA;AAC5B,gFAA6E;AAApE,gIAAA,qBAAqB,OAAA;AAC9B,sFAAmF;AAA1E,oIAAA,uBAAuB,OAAA;AAEhC,8FAKqD;AAHnD,sIAAA,oBAAoB,OAAA;AACpB,qIAAA,mBAAmB,OAAA;AACnB,8IAAA,4BAA4B,OAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CallHandler, ExecutionContext, NestInterceptor } from "@nestjs/common";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { AppLoggingService } from "../../../core/logging/services/logging.service";
|
|
4
|
+
import { UserActivityService } from "../services/user-activity.service";
|
|
5
|
+
/**
|
|
6
|
+
* Captures coarse-grained CRUD events for any authenticated request.
|
|
7
|
+
*
|
|
8
|
+
* Registered as a global APP_INTERCEPTOR by `UserActivityModule.forRoot()` ONLY
|
|
9
|
+
* when `interceptorEnabled: true` — it is off by default so the module is inert
|
|
10
|
+
* for apps that do not opt in.
|
|
11
|
+
*
|
|
12
|
+
* Skips:
|
|
13
|
+
* - GET requests (too noisy for the activity log)
|
|
14
|
+
* - Unauthenticated requests
|
|
15
|
+
* - Health / metrics / auth endpoints (login is recorded explicitly by AuthService)
|
|
16
|
+
*
|
|
17
|
+
* Service-level fine-grained events (AI completions, portal share, agreement
|
|
18
|
+
* generation, email-import) are captured by explicit `UserActivityService.record(...)`
|
|
19
|
+
* calls in those services — not by this interceptor.
|
|
20
|
+
*/
|
|
21
|
+
export declare class UserActivityInterceptor implements NestInterceptor {
|
|
22
|
+
private readonly userActivity;
|
|
23
|
+
private readonly logger;
|
|
24
|
+
constructor(userActivity: UserActivityService, logger: AppLoggingService);
|
|
25
|
+
intercept(context: ExecutionContext, next: CallHandler): Observable<unknown>;
|
|
26
|
+
private _record;
|
|
27
|
+
private _inferEntityType;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=user-activity.interceptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-activity.interceptor.d.ts","sourceRoot":"","sources":["../../../../src/foundations/user-activity/interceptors/user-activity.interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAc,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAO,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAkBxE;;;;;;;;;;;;;;;GAeG;AACH,qBACa,uBAAwB,YAAW,eAAe;IAE3D,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,YAAY,EAAE,mBAAmB,EACjC,MAAM,EAAE,iBAAiB;IAG5C,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC,OAAO,CAAC;IAQ5E,OAAO,CAAC,OAAO;IAmCf,OAAO,CAAC,gBAAgB;CAIzB"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UserActivityInterceptor = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const rxjs_1 = require("rxjs");
|
|
15
|
+
const logging_service_1 = require("../../../core/logging/services/logging.service");
|
|
16
|
+
const user_activity_service_1 = require("../services/user-activity.service");
|
|
17
|
+
const SKIPPED_PATH_PREFIXES = ["/health", "/healthcheck", "/metrics", "/auth"];
|
|
18
|
+
/**
|
|
19
|
+
* `category` / `action` are open strings at the library level (see
|
|
20
|
+
* UserActivityRecordInput). These literals are the same values the consuming
|
|
21
|
+
* app's UserActivityCategory / UserActivityAction enums carry.
|
|
22
|
+
*/
|
|
23
|
+
const ENTITY_CATEGORY = "ENTITY";
|
|
24
|
+
const METHOD_TO_ACTION = {
|
|
25
|
+
POST: "CREATE",
|
|
26
|
+
PUT: "UPDATE",
|
|
27
|
+
PATCH: "UPDATE",
|
|
28
|
+
DELETE: "DELETE",
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Captures coarse-grained CRUD events for any authenticated request.
|
|
32
|
+
*
|
|
33
|
+
* Registered as a global APP_INTERCEPTOR by `UserActivityModule.forRoot()` ONLY
|
|
34
|
+
* when `interceptorEnabled: true` — it is off by default so the module is inert
|
|
35
|
+
* for apps that do not opt in.
|
|
36
|
+
*
|
|
37
|
+
* Skips:
|
|
38
|
+
* - GET requests (too noisy for the activity log)
|
|
39
|
+
* - Unauthenticated requests
|
|
40
|
+
* - Health / metrics / auth endpoints (login is recorded explicitly by AuthService)
|
|
41
|
+
*
|
|
42
|
+
* Service-level fine-grained events (AI completions, portal share, agreement
|
|
43
|
+
* generation, email-import) are captured by explicit `UserActivityService.record(...)`
|
|
44
|
+
* calls in those services — not by this interceptor.
|
|
45
|
+
*/
|
|
46
|
+
let UserActivityInterceptor = class UserActivityInterceptor {
|
|
47
|
+
constructor(userActivity, logger) {
|
|
48
|
+
this.userActivity = userActivity;
|
|
49
|
+
this.logger = logger;
|
|
50
|
+
}
|
|
51
|
+
intercept(context, next) {
|
|
52
|
+
return next.handle().pipe((0, rxjs_1.tap)({
|
|
53
|
+
next: () => this._record(context),
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
_record(context) {
|
|
57
|
+
try {
|
|
58
|
+
const http = context.switchToHttp();
|
|
59
|
+
// JWT guard puts the JWT payload on request.user with shape:
|
|
60
|
+
// { userId, companyId, roles, ... } (see JwtAuthGuard.canActivate).
|
|
61
|
+
const request = http.getRequest();
|
|
62
|
+
const userId = request?.user?.userId;
|
|
63
|
+
const companyId = request?.user?.companyId;
|
|
64
|
+
if (!userId || !companyId)
|
|
65
|
+
return;
|
|
66
|
+
const url = (request.url ?? "").split("?")[0];
|
|
67
|
+
if (SKIPPED_PATH_PREFIXES.some((p) => url.startsWith(p)))
|
|
68
|
+
return;
|
|
69
|
+
if (request.method === "OPTIONS")
|
|
70
|
+
return;
|
|
71
|
+
const action = METHOD_TO_ACTION[request.method ?? ""];
|
|
72
|
+
if (!action)
|
|
73
|
+
return;
|
|
74
|
+
void this.userActivity.record({
|
|
75
|
+
userId,
|
|
76
|
+
companyId,
|
|
77
|
+
category: ENTITY_CATEGORY,
|
|
78
|
+
action,
|
|
79
|
+
entityType: this._inferEntityType(url),
|
|
80
|
+
metadata: { method: request.method, path: url },
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
catch (err) {
|
|
84
|
+
this.logger.error(`UserActivityInterceptor failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
_inferEntityType(url) {
|
|
88
|
+
const segments = url.split("/").filter(Boolean);
|
|
89
|
+
return segments[0]?.match(/^[a-z][a-z-]*$/) ? segments[0] : undefined;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
exports.UserActivityInterceptor = UserActivityInterceptor;
|
|
93
|
+
exports.UserActivityInterceptor = UserActivityInterceptor = __decorate([
|
|
94
|
+
(0, common_1.Injectable)(),
|
|
95
|
+
__metadata("design:paramtypes", [user_activity_service_1.UserActivityService,
|
|
96
|
+
logging_service_1.AppLoggingService])
|
|
97
|
+
], UserActivityInterceptor);
|
|
98
|
+
//# sourceMappingURL=user-activity.interceptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-activity.interceptor.js","sourceRoot":"","sources":["../../../../src/foundations/user-activity/interceptors/user-activity.interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4F;AAC5F,+BAAuC;AACvC,oFAAmF;AACnF,6EAAwE;AAExE,MAAM,qBAAqB,GAAG,CAAC,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;AAE/E;;;;GAIG;AACH,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEjC,MAAM,gBAAgB,GAAuC;IAC3D,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,QAAQ;IACb,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AAEI,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YACmB,YAAiC,EACjC,MAAyB;QADzB,iBAAY,GAAZ,YAAY,CAAqB;QACjC,WAAM,GAAN,MAAM,CAAmB;IACzC,CAAC;IAEJ,SAAS,CAAC,OAAyB,EAAE,IAAiB;QACpD,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,IA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