@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
|
@@ -0,0 +1,99 @@
|
|
|
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 UserActivityModule_1;
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.UserActivityModule = void 0;
|
|
11
|
+
const bullmq_1 = require("@nestjs/bullmq");
|
|
12
|
+
const common_1 = require("@nestjs/common");
|
|
13
|
+
const core_1 = require("@nestjs/core");
|
|
14
|
+
const conditional_service_decorator_1 = require("../../common/decorators/conditional-service.decorator");
|
|
15
|
+
const registry_1 = require("../../common/registries/registry");
|
|
16
|
+
const user_activity_1 = require("./entities/user-activity");
|
|
17
|
+
const user_activity_interceptor_1 = require("./interceptors/user-activity.interceptor");
|
|
18
|
+
const user_activity_config_interface_1 = require("./interfaces/user-activity.config.interface");
|
|
19
|
+
const user_activity_processor_1 = require("./processors/user-activity.processor");
|
|
20
|
+
const user_activity_repository_1 = require("./repositories/user-activity.repository");
|
|
21
|
+
const user_activity_service_1 = require("./services/user-activity.service");
|
|
22
|
+
/**
|
|
23
|
+
* UserActivityModule — append-only audit trail of user actions.
|
|
24
|
+
*
|
|
25
|
+
* Writes `(User)-[:PERFORMED]->(UserActivity)-[:BELONGS_TO]->(Company)` through a
|
|
26
|
+
* BullMQ worker, so recording never blocks (or breaks) the caller's request path.
|
|
27
|
+
* The module exposes NO HTTP routes: activities are produced by explicit
|
|
28
|
+
* `UserActivityService.record()` calls and — optionally — by a global interceptor.
|
|
29
|
+
*
|
|
30
|
+
* Defaults are deliberately inert: with `forRoot()` and no config, no
|
|
31
|
+
* APP_INTERCEPTOR is registered and nothing is recorded unless the app calls
|
|
32
|
+
* `record()` itself.
|
|
33
|
+
*
|
|
34
|
+
* The descriptor is NOT registered with the GraphDescriptorRegistry here —
|
|
35
|
+
* graph-catalog registration is an application-level policy decision.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```typescript
|
|
39
|
+
* // Inert (library default): producer available, no global interceptor
|
|
40
|
+
* UserActivityModule.forRoot()
|
|
41
|
+
*
|
|
42
|
+
* // Fully enabled, with app-owned queue/job identifiers
|
|
43
|
+
* UserActivityModule.forRoot({
|
|
44
|
+
* queueId: QueueId.USER_ACTIVITY,
|
|
45
|
+
* jobName: JobName.userActivity.Record,
|
|
46
|
+
* interceptorEnabled: true,
|
|
47
|
+
* })
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
let UserActivityModule = UserActivityModule_1 = class UserActivityModule {
|
|
51
|
+
/**
|
|
52
|
+
* Configure the UserActivityModule.
|
|
53
|
+
*
|
|
54
|
+
* @param config - Optional configuration merged over DEFAULT_USER_ACTIVITY_CONFIG
|
|
55
|
+
*/
|
|
56
|
+
static forRoot(config) {
|
|
57
|
+
const mergedConfig = { ...user_activity_config_interface_1.DEFAULT_USER_ACTIVITY_CONFIG, ...config };
|
|
58
|
+
const providers = [
|
|
59
|
+
{ provide: user_activity_config_interface_1.USER_ACTIVITY_CONFIG, useValue: mergedConfig },
|
|
60
|
+
// `@InjectQueue()` needs a compile-time name; the configured queue token
|
|
61
|
+
// is aliased onto a stable token the service can inject instead.
|
|
62
|
+
{ provide: user_activity_config_interface_1.USER_ACTIVITY_QUEUE, useExisting: (0, bullmq_1.getQueueToken)(mergedConfig.queueId) },
|
|
63
|
+
user_activity_1.UserActivityDescriptor.model.serialiser,
|
|
64
|
+
user_activity_repository_1.UserActivityRepository,
|
|
65
|
+
user_activity_service_1.UserActivityService,
|
|
66
|
+
(0, conditional_service_decorator_1.createWorkerProvider)(user_activity_processor_1.UserActivityProcessor),
|
|
67
|
+
];
|
|
68
|
+
// Global HTTP interceptor is opt-in ONLY: without `interceptorEnabled` the
|
|
69
|
+
// APP_INTERCEPTOR provider is never added, so consuming apps that do not ask
|
|
70
|
+
// for it see no behaviour change at all.
|
|
71
|
+
if (mergedConfig.interceptorEnabled) {
|
|
72
|
+
providers.push({
|
|
73
|
+
provide: core_1.APP_INTERCEPTOR,
|
|
74
|
+
useClass: user_activity_interceptor_1.UserActivityInterceptor,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
module: UserActivityModule_1,
|
|
79
|
+
// Global so `UserActivityService` reaches feature modules without each of
|
|
80
|
+
// them importing (and thereby re-instantiating) this dynamic module: a
|
|
81
|
+
// bare `UserActivityModule` import resolves to the empty `@Module({})`
|
|
82
|
+
// shell, and re-calling `forRoot()` per consumer would register a second
|
|
83
|
+
// worker provider and a duplicate APP_INTERCEPTOR. Mirrors the
|
|
84
|
+
// `ContentModule.forRoot` precedent (content.module.ts:69).
|
|
85
|
+
global: true,
|
|
86
|
+
imports: [bullmq_1.BullModule.registerQueue({ name: mergedConfig.queueId })],
|
|
87
|
+
providers,
|
|
88
|
+
exports: [user_activity_service_1.UserActivityService, user_activity_repository_1.UserActivityRepository, user_activity_config_interface_1.USER_ACTIVITY_CONFIG],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
onModuleInit() {
|
|
92
|
+
registry_1.modelRegistry.register(user_activity_1.UserActivityDescriptor.model);
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
exports.UserActivityModule = UserActivityModule;
|
|
96
|
+
exports.UserActivityModule = UserActivityModule = UserActivityModule_1 = __decorate([
|
|
97
|
+
(0, common_1.Module)({})
|
|
98
|
+
], UserActivityModule);
|
|
99
|
+
//# sourceMappingURL=user-activity.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-activity.module.js","sourceRoot":"","sources":["../../../src/foundations/user-activity/user-activity.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA2D;AAC3D,2CAA+E;AAC/E,uCAA+C;AAC/C,yGAA6F;AAC7F,+DAAiE;AACjE,4DAAkE;AAClE,wFAAmF;AACnF,gGAKqD;AACrD,kFAA6E;AAC7E,sFAAiF;AACjF,4EAAuE;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEI,IAAM,kBAAkB,0BAAxB,MAAM,kBAAkB;IAC7B;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,MAAiC;QAC9C,MAAM,YAAY,GAAuC,EAAE,GAAG,6DAA4B,EAAE,GAAG,MAAM,EAAE,CAAC;QAExG,MAAM,SAAS,GAAe;YAC5B,EAAE,OAAO,EAAE,qDAAoB,EAAE,QAAQ,EAAE,YAAY,EAAE;YACzD,yEAAyE;YACzE,iEAAiE;YACjE,EAAE,OAAO,EAAE,oDAAmB,EAAE,WAAW,EAAE,IAAA,sBAAa,EAAC,YAAY,CAAC,OAAO,CAAC,EAAE;YAClF,sCAAsB,CAAC,KAAK,CAAC,UAAU;YACvC,iDAAsB;YACtB,2CAAmB;YACnB,IAAA,oDAAoB,EAAC,+CAAqB,CAAC;SAC5C,CAAC;QAEF,2EAA2E;QAC3E,6EAA6E;QAC7E,yCAAyC;QACzC,IAAI,YAAY,CAAC,kBAAkB,EAAE,CAAC;YACpC,SAAS,CAAC,IAAI,CAAC;gBACb,OAAO,EAAE,sBAAe;gBACxB,QAAQ,EAAE,mDAAuB;aAClC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,MAAM,EAAE,oBAAkB;YAC1B,0EAA0E;YAC1E,uEAAuE;YACvE,uEAAuE;YACvE,yEAAyE;YACzE,+DAA+D;YAC/D,4DAA4D;YAC5D,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,CAAC,mBAAU,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,OAAO,EAAE,CAAC,CAAC;YACnE,SAAS;YACT,OAAO,EAAE,CAAC,2CAAmB,EAAE,iDAAsB,EAAE,qDAAoB,CAAC;SAC7E,CAAC;IACJ,CAAC;IAED,YAAY;QACV,wBAAa,CAAC,QAAQ,CAAC,sCAAsB,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;CACF,CAAA;AAhDY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,kBAAkB,CAgD9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carlonicora/nestjs-neo4jsonapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.116.0",
|
|
4
4
|
"description": "NestJS foundation package with JSON:API, Neo4j, Redis, LangChain agents, and common utilities",
|
|
5
5
|
"author": "Carlo Nicora",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.code.entity.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.code.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAEvD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG;IAC9B,UAAU,EAAE,IAAI,CAAC;IAEjB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.code.entity.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.code.entity.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { EntityFactory } from "../../../core/neo4j/factories/entity.factory";
|
|
2
|
-
import { AuthCode } from "../../auth/entities/auth.code.entity";
|
|
3
|
-
export declare const mapAuthCode: (params: {
|
|
4
|
-
data: any;
|
|
5
|
-
record: any;
|
|
6
|
-
entityFactory: EntityFactory;
|
|
7
|
-
}) => AuthCode;
|
|
8
|
-
//# sourceMappingURL=auth.code.map.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.code.map.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.code.map.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAEhE,eAAO,MAAM,WAAW,GAAI,QAAQ;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,MAAM,EAAE,GAAG,CAAC;IAAC,aAAa,EAAE,aAAa,CAAA;CAAE,KAAG,QAM9F,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapAuthCode = void 0;
|
|
4
|
-
const entity_1 = require("../../../common/abstracts/entity");
|
|
5
|
-
const mapAuthCode = (params) => {
|
|
6
|
-
return {
|
|
7
|
-
...(0, entity_1.mapEntity)({ record: params.data }),
|
|
8
|
-
expiration: params.data.expiration ? new Date(params.data.expiration) : undefined,
|
|
9
|
-
auth: undefined,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.mapAuthCode = mapAuthCode;
|
|
13
|
-
//# sourceMappingURL=auth.code.map.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.code.map.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.code.map.ts"],"names":[],"mappings":";;;AAAA,6DAA6D;AAItD,MAAM,WAAW,GAAG,CAAC,MAAgE,EAAY,EAAE;IACxG,OAAO;QACL,GAAG,IAAA,kBAAS,EAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;QACrC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS;QACjF,IAAI,EAAE,SAAS;KAChB,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.code.model.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.code.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAKhE,eAAO,MAAM,aAAa,EAAE,kBAAkB,CAAC,QAAQ,CAKtD,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthCodeModel = void 0;
|
|
4
|
-
const auth_code_map_1 = require("../../auth/entities/auth.code.map");
|
|
5
|
-
const auth_code_meta_1 = require("../../auth/entities/auth.code.meta");
|
|
6
|
-
const auth_meta_1 = require("../../auth/entities/auth.meta");
|
|
7
|
-
exports.AuthCodeModel = {
|
|
8
|
-
...auth_code_meta_1.authCodeMeta,
|
|
9
|
-
entity: undefined,
|
|
10
|
-
mapper: auth_code_map_1.mapAuthCode,
|
|
11
|
-
singleChildrenTokens: [auth_meta_1.authMeta.nodeName],
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=auth.code.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.code.model.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.code.model.ts"],"names":[],"mappings":";;;AAEA,qEAAgE;AAChE,uEAAkE;AAClE,6DAAyD;AAE5C,QAAA,aAAa,GAAiC;IACzD,GAAG,6BAAY;IACf,MAAM,EAAE,SAAgC;IACxC,MAAM,EAAE,2BAAW;IACnB,oBAAoB,EAAE,CAAC,oBAAQ,CAAC,QAAQ,CAAC;CAC1C,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Entity } from "../../../common/abstracts/entity";
|
|
2
|
-
import { User } from "../../user/entities/user";
|
|
3
|
-
export type Auth = Entity & {
|
|
4
|
-
token: string;
|
|
5
|
-
expiration: Date;
|
|
6
|
-
user?: User;
|
|
7
|
-
/**
|
|
8
|
-
* Transient, output-only login-flow fields — never stored on the Auth node.
|
|
9
|
-
*
|
|
10
|
-
* When a user belongs to more than one company the credentials check succeeds but
|
|
11
|
-
* no session is created yet: the response carries `requiresCompanySelection: true`
|
|
12
|
-
* plus a short-lived `selectionToken` scoped to company selection, and the client
|
|
13
|
-
* exchanges it for a full company-scoped token once a company has been chosen.
|
|
14
|
-
*/
|
|
15
|
-
requiresCompanySelection?: boolean;
|
|
16
|
-
selectionToken?: string;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=auth.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.entity.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,IAAI,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;;;;;;OAOG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.entity.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.entity.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { EntityFactory } from "../../../core/neo4j/factories/entity.factory";
|
|
2
|
-
import { Auth } from "../../auth/entities/auth.entity";
|
|
3
|
-
export declare const mapAuth: (params: {
|
|
4
|
-
data: any;
|
|
5
|
-
record: any;
|
|
6
|
-
entityFactory: EntityFactory;
|
|
7
|
-
}) => Auth;
|
|
8
|
-
//# sourceMappingURL=auth.map.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.map.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.map.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAEvD,eAAO,MAAM,OAAO,GAAI,QAAQ;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,MAAM,EAAE,GAAG,CAAC;IAAC,aAAa,EAAE,aAAa,CAAA;CAAE,KAAG,IAO1F,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapAuth = void 0;
|
|
4
|
-
const entity_1 = require("../../../common/abstracts/entity");
|
|
5
|
-
const mapAuth = (params) => {
|
|
6
|
-
return {
|
|
7
|
-
...(0, entity_1.mapEntity)({ record: params.data }),
|
|
8
|
-
token: params.data.token,
|
|
9
|
-
expiration: params.data.expiration ? new Date(params.data.expiration) : undefined,
|
|
10
|
-
user: undefined,
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
exports.mapAuth = mapAuth;
|
|
14
|
-
//# sourceMappingURL=auth.map.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.map.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.map.ts"],"names":[],"mappings":";;;AAAA,6DAA6D;AAItD,MAAM,OAAO,GAAG,CAAC,MAAgE,EAAQ,EAAE;IAChG,OAAO;QACL,GAAG,IAAA,kBAAS,EAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;QACrC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK;QACxB,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS;QACjF,IAAI,EAAE,SAAS;KAChB,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,OAAO,WAOlB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.model.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAMvD,eAAO,MAAM,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAM9C,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthModel = void 0;
|
|
4
|
-
const auth_map_1 = require("../../auth/entities/auth.map");
|
|
5
|
-
const auth_meta_1 = require("../../auth/entities/auth.meta");
|
|
6
|
-
const auth_serialiser_1 = require("../../auth/serialisers/auth.serialiser");
|
|
7
|
-
const user_meta_1 = require("../../user/entities/user.meta");
|
|
8
|
-
exports.AuthModel = {
|
|
9
|
-
...auth_meta_1.authMeta,
|
|
10
|
-
entity: undefined,
|
|
11
|
-
mapper: auth_map_1.mapAuth,
|
|
12
|
-
serialiser: auth_serialiser_1.AuthSerialiser,
|
|
13
|
-
singleChildrenTokens: [user_meta_1.userMeta.nodeName],
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=auth.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.model.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/auth.model.ts"],"names":[],"mappings":";;;AAEA,2DAAuD;AACvD,6DAAyD;AACzD,4EAAwE;AACxE,6DAAyD;AAE5C,QAAA,SAAS,GAA6B;IACjD,GAAG,oBAAQ;IACX,MAAM,EAAE,SAA4B;IACpC,MAAM,EAAE,kBAAO;IACf,UAAU,EAAE,gCAAc;IAC1B,oBAAoB,EAAE,CAAC,oBAAQ,CAAC,QAAQ,CAAC;CAC1C,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Entity } from "../../../common/abstracts/entity";
|
|
2
|
-
/**
|
|
3
|
-
* PendingAuth entity represents the response when a user with 2FA enabled
|
|
4
|
-
* successfully authenticates with password but still needs to complete 2FA.
|
|
5
|
-
*/
|
|
6
|
-
export interface PendingAuth extends Entity {
|
|
7
|
-
/** The pending JWT token (limited access until 2FA completed) */
|
|
8
|
-
token: string;
|
|
9
|
-
/** When the pending session expires */
|
|
10
|
-
expiration: Date;
|
|
11
|
-
/** Available 2FA methods for this user */
|
|
12
|
-
availableMethods: string[];
|
|
13
|
-
/** The user's preferred 2FA method */
|
|
14
|
-
preferredMethod?: string;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=pending-auth.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pending-auth.entity.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/pending-auth.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE1D;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,MAAM;IAGzC,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;IAEd,uCAAuC;IACvC,UAAU,EAAE,IAAI,CAAC;IAEjB,0CAA0C;IAC1C,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAE3B,sCAAsC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pending-auth.entity.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/pending-auth.entity.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pending-auth.map.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/pending-auth.map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAYrD"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapPendingAuth = mapPendingAuth;
|
|
4
|
-
/**
|
|
5
|
-
* Map raw data to PendingAuth entity.
|
|
6
|
-
*/
|
|
7
|
-
function mapPendingAuth(data) {
|
|
8
|
-
const now = new Date();
|
|
9
|
-
return {
|
|
10
|
-
id: data.id ?? data.pendingId, // Use pendingId as id for JSON:API
|
|
11
|
-
type: "two-factor-challenge",
|
|
12
|
-
createdAt: data.createdAt ?? now,
|
|
13
|
-
updatedAt: data.updatedAt ?? now,
|
|
14
|
-
token: data.token,
|
|
15
|
-
expiration: data.expiration instanceof Date ? data.expiration : new Date(data.expiration),
|
|
16
|
-
availableMethods: data.availableMethods ?? [],
|
|
17
|
-
preferredMethod: data.preferredMethod,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=pending-auth.map.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pending-auth.map.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/pending-auth.map.ts"],"names":[],"mappings":";;AAKA,wCAYC;AAfD;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAS;IACtC,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;IACvB,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,SAAS,EAAE,mCAAmC;QAClE,IAAI,EAAE,sBAAsB;QAC5B,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,GAAG;QAChC,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,GAAG;QAChC,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,UAAU,EAAE,IAAI,CAAC,UAAU,YAAY,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;QACzF,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,IAAI,EAAE;QAC7C,eAAe,EAAE,IAAI,CAAC,eAAe;KACtC,CAAC;AACJ,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DataModelInterface } from "../../../common/interfaces/datamodel.interface";
|
|
2
|
-
import { PendingAuth } from "./pending-auth.entity";
|
|
3
|
-
/**
|
|
4
|
-
* Model for PendingAuth - represents a 2FA pending authentication response.
|
|
5
|
-
* Returned when a user with 2FA enabled successfully validates their password
|
|
6
|
-
* but still needs to complete 2FA verification.
|
|
7
|
-
*/
|
|
8
|
-
export declare const PendingAuthModel: DataModelInterface<PendingAuth>;
|
|
9
|
-
//# sourceMappingURL=pending-auth.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pending-auth.model.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/pending-auth.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKpD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,kBAAkB,CAAC,WAAW,CAM5D,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PendingAuthModel = void 0;
|
|
4
|
-
const pending_auth_map_1 = require("./pending-auth.map");
|
|
5
|
-
const pending_auth_meta_1 = require("./pending-auth.meta");
|
|
6
|
-
const pending_auth_serialiser_1 = require("../serialisers/pending-auth.serialiser");
|
|
7
|
-
/**
|
|
8
|
-
* Model for PendingAuth - represents a 2FA pending authentication response.
|
|
9
|
-
* Returned when a user with 2FA enabled successfully validates their password
|
|
10
|
-
* but still needs to complete 2FA verification.
|
|
11
|
-
*/
|
|
12
|
-
exports.PendingAuthModel = {
|
|
13
|
-
...pending_auth_meta_1.pendingAuthMeta,
|
|
14
|
-
entity: undefined,
|
|
15
|
-
mapper: pending_auth_map_1.mapPendingAuth,
|
|
16
|
-
serialiser: pending_auth_serialiser_1.PendingAuthSerialiser,
|
|
17
|
-
singleChildrenTokens: [],
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=pending-auth.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pending-auth.model.js","sourceRoot":"","sources":["../../../../src/foundations/auth/entities/pending-auth.model.ts"],"names":[],"mappings":";;;AAEA,yDAAoD;AACpD,2DAAsD;AACtD,oFAA+E;AAE/E;;;;GAIG;AACU,QAAA,gBAAgB,GAAoC;IAC/D,GAAG,mCAAe;IAClB,MAAM,EAAE,SAAmC;IAC3C,MAAM,EAAE,iCAAc;IACtB,UAAU,EAAE,+CAAqB;IACjC,oBAAoB,EAAE,EAAE;CACzB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ConfigService } from "@nestjs/config";
|
|
2
|
-
import { BaseConfigInterface } from "../../../config/interfaces";
|
|
3
|
-
import { AbstractJsonApiSerialiser } from "../../../core/jsonapi/abstracts/abstract.jsonapi.serialiser";
|
|
4
|
-
import { JsonApiSerialiserFactory } from "../../../core/jsonapi/factories/jsonapi.serialiser.factory";
|
|
5
|
-
import { JsonApiDataInterface } from "../../../core/jsonapi/interfaces/jsonapi.data.interface";
|
|
6
|
-
import { JsonApiServiceInterface } from "../../../core/jsonapi/interfaces/jsonapi.service.interface";
|
|
7
|
-
export declare class AuthSerialiser extends AbstractJsonApiSerialiser implements JsonApiServiceInterface {
|
|
8
|
-
constructor(serialiserFactory: JsonApiSerialiserFactory, configService: ConfigService<BaseConfigInterface>);
|
|
9
|
-
get type(): string;
|
|
10
|
-
get endpoint(): string;
|
|
11
|
-
create(): JsonApiDataInterface;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=auth.serialiser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.serialiser.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/serialisers/auth.serialiser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AACxG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AAIrG,qBACa,cAAe,SAAQ,yBAA0B,YAAW,uBAAuB;gBAClF,iBAAiB,EAAE,wBAAwB,EAAE,aAAa,EAAE,aAAa,CAAC,mBAAmB,CAAC;IAI1G,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,MAAM,IAAI,oBAAoB;CAmB/B"}
|
|
@@ -1,52 +0,0 @@
|
|
|
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.AuthSerialiser = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const config_1 = require("@nestjs/config");
|
|
15
|
-
const abstract_jsonapi_serialiser_1 = require("../../../core/jsonapi/abstracts/abstract.jsonapi.serialiser");
|
|
16
|
-
const jsonapi_serialiser_factory_1 = require("../../../core/jsonapi/factories/jsonapi.serialiser.factory");
|
|
17
|
-
const auth_meta_1 = require("../../auth/entities/auth.meta");
|
|
18
|
-
const user_1 = require("../../user/entities/user");
|
|
19
|
-
let AuthSerialiser = class AuthSerialiser extends abstract_jsonapi_serialiser_1.AbstractJsonApiSerialiser {
|
|
20
|
-
constructor(serialiserFactory, configService) {
|
|
21
|
-
super(serialiserFactory, configService);
|
|
22
|
-
}
|
|
23
|
-
get type() {
|
|
24
|
-
return auth_meta_1.authMeta.endpoint;
|
|
25
|
-
}
|
|
26
|
-
get endpoint() {
|
|
27
|
-
return `${auth_meta_1.authMeta.endpoint}/refreshtoken`;
|
|
28
|
-
}
|
|
29
|
-
create() {
|
|
30
|
-
this.attributes = {
|
|
31
|
-
token: "token",
|
|
32
|
-
refreshToken: "refreshToken",
|
|
33
|
-
expiration: "expiration",
|
|
34
|
-
// Transient login-flow attributes: present only on the company-selection
|
|
35
|
-
// response, undefined (and therefore omitted from the JSON body) otherwise.
|
|
36
|
-
requiresCompanySelection: "requiresCompanySelection",
|
|
37
|
-
selectionToken: "selectionToken",
|
|
38
|
-
};
|
|
39
|
-
this.relationships = {
|
|
40
|
-
user: {
|
|
41
|
-
data: this.serialiserFactory.create(user_1.UserDescriptor.model),
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
return super.create();
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
exports.AuthSerialiser = AuthSerialiser;
|
|
48
|
-
exports.AuthSerialiser = AuthSerialiser = __decorate([
|
|
49
|
-
(0, common_1.Injectable)(),
|
|
50
|
-
__metadata("design:paramtypes", [jsonapi_serialiser_factory_1.JsonApiSerialiserFactory, config_1.ConfigService])
|
|
51
|
-
], AuthSerialiser);
|
|
52
|
-
//# sourceMappingURL=auth.serialiser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.serialiser.js","sourceRoot":"","sources":["../../../../src/foundations/auth/serialisers/auth.serialiser.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAE/C,6GAAwG;AACxG,2GAAsG;AAGtG,6DAAyD;AACzD,mDAA0D;AAGnD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,uDAAyB;IAC3D,YAAY,iBAA2C,EAAE,aAAiD;QACxG,KAAK,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;IAC1C,CAAC;IAED,IAAI,IAAI;QACN,OAAO,oBAAQ,CAAC,QAAQ,CAAC;IAC3B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,GAAG,oBAAQ,CAAC,QAAQ,eAAe,CAAC;IAC7C,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,UAAU,GAAG;YAChB,KAAK,EAAE,OAAO;YACd,YAAY,EAAE,cAAc;YAC5B,UAAU,EAAE,YAAY;YACxB,yEAAyE;YACzE,4EAA4E;YAC5E,wBAAwB,EAAE,0BAA0B;YACpD,cAAc,EAAE,gBAAgB;SACjC,CAAC;QAEF,IAAI,CAAC,aAAa,GAAG;YACnB,IAAI,EAAE;gBACJ,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,qBAAc,CAAC,KAAK,CAAC;aAC1D;SACF,CAAC;QAEF,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;IACxB,CAAC;CACF,CAAA;AAhCY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAEoB,qDAAwB,EAAiB,sBAAa;GAD1E,cAAc,CAgC1B"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ConfigService } from "@nestjs/config";
|
|
2
|
-
import { BaseConfigInterface } from "../../../config/interfaces";
|
|
3
|
-
import { AbstractJsonApiSerialiser } from "../../../core/jsonapi/abstracts/abstract.jsonapi.serialiser";
|
|
4
|
-
import { JsonApiSerialiserFactory } from "../../../core/jsonapi/factories/jsonapi.serialiser.factory";
|
|
5
|
-
import { JsonApiDataInterface } from "../../../core/jsonapi/interfaces/jsonapi.data.interface";
|
|
6
|
-
import { JsonApiServiceInterface } from "../../../core/jsonapi/interfaces/jsonapi.service.interface";
|
|
7
|
-
/**
|
|
8
|
-
* Serialiser for PendingAuth responses.
|
|
9
|
-
* Used when a user with 2FA enabled successfully authenticates
|
|
10
|
-
* with password and needs to complete 2FA verification.
|
|
11
|
-
*/
|
|
12
|
-
export declare class PendingAuthSerialiser extends AbstractJsonApiSerialiser implements JsonApiServiceInterface {
|
|
13
|
-
constructor(serialiserFactory: JsonApiSerialiserFactory, configService: ConfigService<BaseConfigInterface>);
|
|
14
|
-
get type(): string;
|
|
15
|
-
get endpoint(): string;
|
|
16
|
-
create(): JsonApiDataInterface;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=pending-auth.serialiser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pending-auth.serialiser.d.ts","sourceRoot":"","sources":["../../../../src/foundations/auth/serialisers/pending-auth.serialiser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AACxG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AAGrG;;;;GAIG;AACH,qBACa,qBAAsB,SAAQ,yBAA0B,YAAW,uBAAuB;gBACzF,iBAAiB,EAAE,wBAAwB,EAAE,aAAa,EAAE,aAAa,CAAC,mBAAmB,CAAC;IAI1G,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,MAAM,IAAI,oBAAoB;CAY/B"}
|
|
@@ -1,49 +0,0 @@
|
|
|
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.PendingAuthSerialiser = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const config_1 = require("@nestjs/config");
|
|
15
|
-
const abstract_jsonapi_serialiser_1 = require("../../../core/jsonapi/abstracts/abstract.jsonapi.serialiser");
|
|
16
|
-
const jsonapi_serialiser_factory_1 = require("../../../core/jsonapi/factories/jsonapi.serialiser.factory");
|
|
17
|
-
const pending_auth_meta_1 = require("../../auth/entities/pending-auth.meta");
|
|
18
|
-
/**
|
|
19
|
-
* Serialiser for PendingAuth responses.
|
|
20
|
-
* Used when a user with 2FA enabled successfully authenticates
|
|
21
|
-
* with password and needs to complete 2FA verification.
|
|
22
|
-
*/
|
|
23
|
-
let PendingAuthSerialiser = class PendingAuthSerialiser extends abstract_jsonapi_serialiser_1.AbstractJsonApiSerialiser {
|
|
24
|
-
constructor(serialiserFactory, configService) {
|
|
25
|
-
super(serialiserFactory, configService);
|
|
26
|
-
}
|
|
27
|
-
get type() {
|
|
28
|
-
return pending_auth_meta_1.pendingAuthMeta.endpoint;
|
|
29
|
-
}
|
|
30
|
-
get endpoint() {
|
|
31
|
-
return `auth/two-factor/challenge`;
|
|
32
|
-
}
|
|
33
|
-
create() {
|
|
34
|
-
this.attributes = {
|
|
35
|
-
pendingToken: "token",
|
|
36
|
-
expiresAt: "expiration",
|
|
37
|
-
availableMethods: "availableMethods",
|
|
38
|
-
preferredMethod: "preferredMethod",
|
|
39
|
-
};
|
|
40
|
-
// No relationships needed for pending auth
|
|
41
|
-
return super.create();
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.PendingAuthSerialiser = PendingAuthSerialiser;
|
|
45
|
-
exports.PendingAuthSerialiser = PendingAuthSerialiser = __decorate([
|
|
46
|
-
(0, common_1.Injectable)(),
|
|
47
|
-
__metadata("design:paramtypes", [jsonapi_serialiser_factory_1.JsonApiSerialiserFactory, config_1.ConfigService])
|
|
48
|
-
], PendingAuthSerialiser);
|
|
49
|
-
//# sourceMappingURL=pending-auth.serialiser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pending-auth.serialiser.js","sourceRoot":"","sources":["../../../../src/foundations/auth/serialisers/pending-auth.serialiser.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAE/C,6GAAwG;AACxG,2GAAsG;AAGtG,6EAAwE;AAExE;;;;GAIG;AAEI,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,uDAAyB;IAClE,YAAY,iBAA2C,EAAE,aAAiD;QACxG,KAAK,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;IAC1C,CAAC;IAED,IAAI,IAAI;QACN,OAAO,mCAAe,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,2BAA2B,CAAC;IACrC,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,UAAU,GAAG;YAChB,YAAY,EAAE,OAAO;YACrB,SAAS,EAAE,YAAY;YACvB,gBAAgB,EAAE,kBAAkB;YACpC,eAAe,EAAE,iBAAiB;SACnC,CAAC;QAEF,2CAA2C;QAE3C,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;IACxB,CAAC;CACF,CAAA;AAzBY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;qCAEoB,qDAAwB,EAAiB,sBAAa;GAD1E,qBAAqB,CAyBjC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Entity } from "../../../common/abstracts/entity";
|
|
2
|
-
import { User } from "../../user/entities/user";
|
|
3
|
-
/**
|
|
4
|
-
* Content entity type representing polymorphic content (Article, Document, etc.).
|
|
5
|
-
*
|
|
6
|
-
* The index signature allows extension relationships to be added dynamically
|
|
7
|
-
* when ContentExtensionConfig is provided. APIs can narrow this type using
|
|
8
|
-
* intersection types for better type safety.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* // In API - narrow type for specific extensions
|
|
13
|
-
* type ExtendedContent = Content & {
|
|
14
|
-
* topic: Topic[];
|
|
15
|
-
* expertise: Expertise[];
|
|
16
|
-
* };
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export type Content = Entity & {
|
|
20
|
-
name: string;
|
|
21
|
-
contentType: string;
|
|
22
|
-
abstract?: string;
|
|
23
|
-
tldr?: string;
|
|
24
|
-
aiStatus?: string;
|
|
25
|
-
relevance?: number;
|
|
26
|
-
owner: User;
|
|
27
|
-
author: User;
|
|
28
|
-
/** Index signature for extension relationships added via ContentExtensionConfig */
|
|
29
|
-
[relationshipName: string]: unknown;
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=content.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content.entity.d.ts","sourceRoot":"","sources":["../../../../src/foundations/content/entities/content.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD;;;;;;;;;;;;;;;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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content.entity.js","sourceRoot":"","sources":["../../../../src/foundations/content/entities/content.entity.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { EntityFactory } from "../../../core/neo4j/factories/entity.factory";
|
|
2
|
-
import { Content } from "../../content/entities/content.entity";
|
|
3
|
-
export declare const mapContent: (params: {
|
|
4
|
-
data: any;
|
|
5
|
-
record: any;
|
|
6
|
-
entityFactory: EntityFactory;
|
|
7
|
-
}) => Content;
|
|
8
|
-
//# sourceMappingURL=content.map.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content.map.d.ts","sourceRoot":"","sources":["../../../../src/foundations/content/entities/content.map.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,eAAO,MAAM,UAAU,GAAI,QAAQ;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,MAAM,EAAE,GAAG,CAAC;IAAC,aAAa,EAAE,aAAa,CAAA;CAAE,KAAG,OAc7F,CAAC"}
|