@carlonicora/nestjs-neo4jsonapi 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +675 -0
- package/README.md +1139 -0
- package/dist/agents/agents.modules.d.ts +8 -0
- package/dist/agents/agents.modules.d.ts.map +1 -0
- package/dist/agents/agents.modules.js +29 -0
- package/dist/agents/agents.modules.js.map +1 -0
- package/dist/agents/contextualiser/contexts/citations.context.d.ts +13 -0
- package/dist/agents/contextualiser/contexts/citations.context.d.ts.map +1 -0
- package/dist/agents/contextualiser/contexts/citations.context.js +9 -0
- package/dist/agents/contextualiser/contexts/citations.context.js.map +1 -0
- package/dist/agents/contextualiser/contexts/contextualiser.context.d.ts +174 -0
- package/dist/agents/contextualiser/contexts/contextualiser.context.d.ts.map +1 -0
- package/dist/agents/contextualiser/contexts/contextualiser.context.js +203 -0
- package/dist/agents/contextualiser/contexts/contextualiser.context.js.map +1 -0
- package/dist/agents/contextualiser/contexts/history.context.d.ts +14 -0
- package/dist/agents/contextualiser/contexts/history.context.d.ts.map +1 -0
- package/dist/agents/contextualiser/contexts/history.context.js +9 -0
- package/dist/agents/contextualiser/contexts/history.context.js.map +1 -0
- package/dist/agents/contextualiser/contexts/limit.context.d.ts +2 -0
- package/dist/agents/contextualiser/contexts/limit.context.d.ts.map +1 -0
- package/dist/agents/contextualiser/contexts/limit.context.js +6 -0
- package/dist/agents/contextualiser/contexts/limit.context.js.map +1 -0
- package/dist/agents/contextualiser/contexts/notebook.context.d.ts +18 -0
- package/dist/agents/contextualiser/contexts/notebook.context.d.ts.map +1 -0
- package/dist/agents/contextualiser/contexts/notebook.context.js +10 -0
- package/dist/agents/contextualiser/contexts/notebook.context.js.map +1 -0
- package/dist/agents/contextualiser/contexts/prompt.context.d.ts +13 -0
- package/dist/agents/contextualiser/contexts/prompt.context.d.ts.map +1 -0
- package/dist/agents/contextualiser/contexts/prompt.context.js +9 -0
- package/dist/agents/contextualiser/contexts/prompt.context.js.map +1 -0
- package/dist/agents/contextualiser/contexts/request.context.d.ts +13 -0
- package/dist/agents/contextualiser/contexts/request.context.d.ts.map +1 -0
- package/dist/agents/contextualiser/contexts/request.context.js +9 -0
- package/dist/agents/contextualiser/contexts/request.context.js.map +1 -0
- package/dist/agents/contextualiser/contextualiser.module.d.ts +3 -0
- package/dist/agents/contextualiser/contextualiser.module.d.ts.map +1 -0
- package/dist/agents/contextualiser/contextualiser.module.js +44 -0
- package/dist/agents/contextualiser/contextualiser.module.js.map +1 -0
- package/dist/agents/contextualiser/factories/contextualiser.context.factory.d.ts +22 -0
- package/dist/agents/contextualiser/factories/contextualiser.context.factory.d.ts.map +1 -0
- package/dist/agents/contextualiser/factories/contextualiser.context.factory.js +77 -0
- package/dist/agents/contextualiser/factories/contextualiser.context.factory.js.map +1 -0
- package/dist/agents/contextualiser/interfaces/contextualiser.response.interface.d.ts +26 -0
- package/dist/agents/contextualiser/interfaces/contextualiser.response.interface.d.ts.map +1 -0
- package/dist/agents/contextualiser/interfaces/contextualiser.response.interface.js +3 -0
- package/dist/agents/contextualiser/interfaces/contextualiser.response.interface.js.map +1 -0
- package/dist/agents/contextualiser/nodes/atomicfacts.node.service.d.ts +25 -0
- package/dist/agents/contextualiser/nodes/atomicfacts.node.service.d.ts.map +1 -0
- package/dist/agents/contextualiser/nodes/atomicfacts.node.service.js +196 -0
- package/dist/agents/contextualiser/nodes/atomicfacts.node.service.js.map +1 -0
- package/dist/agents/contextualiser/nodes/chunk.node.service.d.ts +21 -0
- package/dist/agents/contextualiser/nodes/chunk.node.service.d.ts.map +1 -0
- package/dist/agents/contextualiser/nodes/chunk.node.service.js +229 -0
- package/dist/agents/contextualiser/nodes/chunk.node.service.js.map +1 -0
- package/dist/agents/contextualiser/nodes/chunk.vector.node.service.d.ts +21 -0
- package/dist/agents/contextualiser/nodes/chunk.vector.node.service.d.ts.map +1 -0
- package/dist/agents/contextualiser/nodes/chunk.vector.node.service.js +166 -0
- package/dist/agents/contextualiser/nodes/chunk.vector.node.service.js.map +1 -0
- package/dist/agents/contextualiser/nodes/keyconcepts.node.service.d.ts +22 -0
- package/dist/agents/contextualiser/nodes/keyconcepts.node.service.d.ts.map +1 -0
- package/dist/agents/contextualiser/nodes/keyconcepts.node.service.js +184 -0
- package/dist/agents/contextualiser/nodes/keyconcepts.node.service.js.map +1 -0
- package/dist/agents/contextualiser/nodes/question.refiner.node.service.d.ts +19 -0
- package/dist/agents/contextualiser/nodes/question.refiner.node.service.d.ts.map +1 -0
- package/dist/agents/contextualiser/nodes/question.refiner.node.service.js +125 -0
- package/dist/agents/contextualiser/nodes/question.refiner.node.service.js.map +1 -0
- package/dist/agents/contextualiser/nodes/rational.node.service.d.ts +19 -0
- package/dist/agents/contextualiser/nodes/rational.node.service.d.ts.map +1 -0
- package/dist/agents/contextualiser/nodes/rational.node.service.js +104 -0
- package/dist/agents/contextualiser/nodes/rational.node.service.js.map +1 -0
- package/dist/agents/contextualiser/services/contextualiser.service.d.ts +32 -0
- package/dist/agents/contextualiser/services/contextualiser.service.d.ts.map +1 -0
- package/dist/agents/contextualiser/services/contextualiser.service.js +193 -0
- package/dist/agents/contextualiser/services/contextualiser.service.js.map +1 -0
- package/dist/agents/graph.creator/graph.creator.module.d.ts +3 -0
- package/dist/agents/graph.creator/graph.creator.module.d.ts.map +1 -0
- package/dist/agents/graph.creator/graph.creator.module.js +24 -0
- package/dist/agents/graph.creator/graph.creator.module.js.map +1 -0
- package/dist/agents/graph.creator/interfaces/chunk.analysis.interface.d.ts +14 -0
- package/dist/agents/graph.creator/interfaces/chunk.analysis.interface.d.ts.map +1 -0
- package/dist/agents/graph.creator/interfaces/chunk.analysis.interface.js +3 -0
- package/dist/agents/graph.creator/interfaces/chunk.analysis.interface.js.map +1 -0
- package/dist/agents/graph.creator/services/graph.creator.service.d.ts +17 -0
- package/dist/agents/graph.creator/services/graph.creator.service.d.ts.map +1 -0
- package/dist/agents/graph.creator/services/graph.creator.service.js +450 -0
- package/dist/agents/graph.creator/services/graph.creator.service.js.map +1 -0
- package/dist/agents/index.d.ts +15 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +45 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/prompts/index.d.ts +10 -0
- package/dist/agents/prompts/index.d.ts.map +1 -0
- package/dist/agents/prompts/index.js +29 -0
- package/dist/agents/prompts/index.js.map +1 -0
- package/dist/agents/prompts/prompt.interfaces.d.ts +128 -0
- package/dist/agents/prompts/prompt.interfaces.d.ts.map +1 -0
- package/dist/agents/prompts/prompt.interfaces.js +12 -0
- package/dist/agents/prompts/prompt.interfaces.js.map +1 -0
- package/dist/agents/prompts/prompt.tokens.d.ts +16 -0
- package/dist/agents/prompts/prompt.tokens.d.ts.map +1 -0
- package/dist/agents/prompts/prompt.tokens.js +23 -0
- package/dist/agents/prompts/prompt.tokens.js.map +1 -0
- package/dist/agents/responder/contexts/responder.answer.context.d.ts +28 -0
- package/dist/agents/responder/contexts/responder.answer.context.d.ts.map +1 -0
- package/dist/agents/responder/contexts/responder.answer.context.js +12 -0
- package/dist/agents/responder/contexts/responder.answer.context.js.map +1 -0
- package/dist/agents/responder/contexts/responder.context.d.ts +468 -0
- package/dist/agents/responder/contexts/responder.context.d.ts.map +1 -0
- package/dist/agents/responder/contexts/responder.context.js +32 -0
- package/dist/agents/responder/contexts/responder.context.js.map +1 -0
- package/dist/agents/responder/factories/responder.context.factory.d.ts +18 -0
- package/dist/agents/responder/factories/responder.context.factory.d.ts.map +1 -0
- package/dist/agents/responder/factories/responder.context.factory.js +50 -0
- package/dist/agents/responder/factories/responder.context.factory.js.map +1 -0
- package/dist/agents/responder/interfaces/responder.response.interface.d.ts +21 -0
- package/dist/agents/responder/interfaces/responder.response.interface.d.ts.map +1 -0
- package/dist/agents/responder/interfaces/responder.response.interface.js +3 -0
- package/dist/agents/responder/interfaces/responder.response.interface.js.map +1 -0
- package/dist/agents/responder/nodes/responder.answer.node.service.d.ts +16 -0
- package/dist/agents/responder/nodes/responder.answer.node.service.d.ts.map +1 -0
- package/dist/agents/responder/nodes/responder.answer.node.service.js +367 -0
- package/dist/agents/responder/nodes/responder.answer.node.service.js.map +1 -0
- package/dist/agents/responder/responder.module.d.ts +3 -0
- package/dist/agents/responder/responder.module.d.ts.map +1 -0
- package/dist/agents/responder/responder.module.js +28 -0
- package/dist/agents/responder/responder.module.js.map +1 -0
- package/dist/agents/responder/services/responder.service.d.ts +21 -0
- package/dist/agents/responder/services/responder.service.d.ts.map +1 -0
- package/dist/agents/responder/services/responder.service.js +87 -0
- package/dist/agents/responder/services/responder.service.js.map +1 -0
- package/dist/agents/summariser/services/summariser.service.d.ts +24 -0
- package/dist/agents/summariser/services/summariser.service.d.ts.map +1 -0
- package/dist/agents/summariser/services/summariser.service.js +105 -0
- package/dist/agents/summariser/services/summariser.service.js.map +1 -0
- package/dist/agents/summariser/summariser.module.d.ts +3 -0
- package/dist/agents/summariser/summariser.module.d.ts.map +1 -0
- package/dist/agents/summariser/summariser.module.js +23 -0
- package/dist/agents/summariser/summariser.module.js.map +1 -0
- package/dist/bootstrap/app.module.factory.d.ts +21 -0
- package/dist/bootstrap/app.module.factory.d.ts.map +1 -0
- package/dist/bootstrap/app.module.factory.js +156 -0
- package/dist/bootstrap/app.module.factory.js.map +1 -0
- package/dist/bootstrap/bootstrap.d.ts +31 -0
- package/dist/bootstrap/bootstrap.d.ts.map +1 -0
- package/dist/bootstrap/bootstrap.js +174 -0
- package/dist/bootstrap/bootstrap.js.map +1 -0
- package/dist/bootstrap/bootstrap.options.d.ts +40 -0
- package/dist/bootstrap/bootstrap.options.d.ts.map +1 -0
- package/dist/bootstrap/bootstrap.options.js +3 -0
- package/dist/bootstrap/bootstrap.options.js.map +1 -0
- package/dist/bootstrap/defaults.d.ts +33 -0
- package/dist/bootstrap/defaults.d.ts.map +1 -0
- package/dist/bootstrap/defaults.js +71 -0
- package/dist/bootstrap/defaults.js.map +1 -0
- package/dist/bootstrap/index.d.ts +47 -0
- package/dist/bootstrap/index.d.ts.map +1 -0
- package/dist/bootstrap/index.js +57 -0
- package/dist/bootstrap/index.js.map +1 -0
- package/dist/common/abstracts/abstract.company.configuration.d.ts +40 -0
- package/dist/common/abstracts/abstract.company.configuration.d.ts.map +1 -0
- package/dist/common/abstracts/abstract.company.configuration.js +44 -0
- package/dist/common/abstracts/abstract.company.configuration.js.map +1 -0
- package/dist/common/abstracts/entity.d.ts +13 -0
- package/dist/common/abstracts/entity.d.ts.map +1 -0
- package/dist/common/abstracts/entity.js +21 -0
- package/dist/common/abstracts/entity.js.map +1 -0
- package/dist/common/abstracts/index.d.ts +2 -0
- package/dist/common/abstracts/index.d.ts.map +1 -0
- package/dist/common/abstracts/index.js +18 -0
- package/dist/common/abstracts/index.js.map +1 -0
- package/dist/common/constants/system.roles.d.ts +18 -0
- package/dist/common/constants/system.roles.d.ts.map +1 -0
- package/dist/common/constants/system.roles.js +19 -0
- package/dist/common/constants/system.roles.js.map +1 -0
- package/dist/common/contexts/index.d.ts +2 -0
- package/dist/common/contexts/index.d.ts.map +1 -0
- package/dist/common/contexts/index.js +18 -0
- package/dist/common/contexts/index.js.map +1 -0
- package/dist/common/contexts/tokenusage.context.d.ts +13 -0
- package/dist/common/contexts/tokenusage.context.d.ts.map +1 -0
- package/dist/common/contexts/tokenusage.context.js +9 -0
- package/dist/common/contexts/tokenusage.context.js.map +1 -0
- package/dist/common/decorators/conditional-service.decorator.d.ts +50 -0
- package/dist/common/decorators/conditional-service.decorator.d.ts.map +1 -0
- package/dist/common/decorators/conditional-service.decorator.js +87 -0
- package/dist/common/decorators/conditional-service.decorator.js.map +1 -0
- package/dist/common/decorators/index.d.ts +6 -0
- package/dist/common/decorators/index.d.ts.map +1 -0
- package/dist/common/decorators/index.js +22 -0
- package/dist/common/decorators/index.js.map +1 -0
- package/dist/common/decorators/module.decorator.d.ts +6 -0
- package/dist/common/decorators/module.decorator.d.ts.map +1 -0
- package/dist/common/decorators/module.decorator.js +7 -0
- package/dist/common/decorators/module.decorator.js.map +1 -0
- package/dist/common/decorators/rate-limit.decorator.d.ts +6 -0
- package/dist/common/decorators/rate-limit.decorator.d.ts.map +1 -0
- package/dist/common/decorators/rate-limit.decorator.js +15 -0
- package/dist/common/decorators/rate-limit.decorator.js.map +1 -0
- package/dist/common/decorators/roles.decorator.d.ts +2 -0
- package/dist/common/decorators/roles.decorator.d.ts.map +1 -0
- package/dist/common/decorators/roles.decorator.js +7 -0
- package/dist/common/decorators/roles.decorator.js.map +1 -0
- package/dist/common/decorators/tool.decorator.d.ts +29 -0
- package/dist/common/decorators/tool.decorator.d.ts.map +1 -0
- package/dist/common/decorators/tool.decorator.js +38 -0
- package/dist/common/decorators/tool.decorator.js.map +1 -0
- package/dist/common/enums/action.d.ts +7 -0
- package/dist/common/enums/action.d.ts.map +1 -0
- package/dist/common/enums/action.js +11 -0
- package/dist/common/enums/action.js.map +1 -0
- package/dist/common/enums/agentmessage.type.d.ts +6 -0
- package/dist/common/enums/agentmessage.type.d.ts.map +1 -0
- package/dist/common/enums/agentmessage.type.js +10 -0
- package/dist/common/enums/agentmessage.type.js.map +1 -0
- package/dist/common/enums/ai.status.d.ts +8 -0
- package/dist/common/enums/ai.status.d.ts.map +1 -0
- package/dist/common/enums/ai.status.js +12 -0
- package/dist/common/enums/ai.status.js.map +1 -0
- package/dist/common/enums/index.d.ts +4 -0
- package/dist/common/enums/index.d.ts.map +1 -0
- package/dist/common/enums/index.js +20 -0
- package/dist/common/enums/index.js.map +1 -0
- package/dist/common/filters/http-exception.filter.d.ts +17 -0
- package/dist/common/filters/http-exception.filter.d.ts.map +1 -0
- package/dist/common/filters/http-exception.filter.js +92 -0
- package/dist/common/filters/http-exception.filter.js.map +1 -0
- package/dist/common/filters/index.d.ts +2 -0
- package/dist/common/filters/index.d.ts.map +1 -0
- package/dist/common/filters/index.js +18 -0
- package/dist/common/filters/index.js.map +1 -0
- package/dist/common/guards/index.d.ts +4 -0
- package/dist/common/guards/index.d.ts.map +1 -0
- package/dist/common/guards/index.js +20 -0
- package/dist/common/guards/index.js.map +1 -0
- package/dist/common/guards/jwt.auth.admin.guard.d.ts +18 -0
- package/dist/common/guards/jwt.auth.admin.guard.d.ts.map +1 -0
- package/dist/common/guards/jwt.auth.admin.guard.js +78 -0
- package/dist/common/guards/jwt.auth.admin.guard.js.map +1 -0
- package/dist/common/guards/jwt.auth.guard.d.ts +18 -0
- package/dist/common/guards/jwt.auth.guard.d.ts.map +1 -0
- package/dist/common/guards/jwt.auth.guard.js +81 -0
- package/dist/common/guards/jwt.auth.guard.js.map +1 -0
- package/dist/common/guards/jwt.auth.optional.guard.d.ts +16 -0
- package/dist/common/guards/jwt.auth.optional.guard.d.ts.map +1 -0
- package/dist/common/guards/jwt.auth.optional.guard.js +78 -0
- package/dist/common/guards/jwt.auth.optional.guard.js.map +1 -0
- package/dist/common/helpers/define-entity.d.ts +50 -0
- package/dist/common/helpers/define-entity.d.ts.map +1 -0
- package/dist/common/helpers/define-entity.js +196 -0
- package/dist/common/helpers/define-entity.js.map +1 -0
- package/dist/common/helpers/index.d.ts +2 -0
- package/dist/common/helpers/index.d.ts.map +1 -0
- package/dist/common/helpers/index.js +18 -0
- package/dist/common/helpers/index.js.map +1 -0
- package/dist/common/index.d.ts +21 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +51 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/interfaces/agents/graph.creator.interface.d.ts +17 -0
- package/dist/common/interfaces/agents/graph.creator.interface.d.ts.map +1 -0
- package/dist/common/interfaces/agents/graph.creator.interface.js +3 -0
- package/dist/common/interfaces/agents/graph.creator.interface.js.map +1 -0
- package/dist/common/interfaces/authenticated.request.interface.d.ts +14 -0
- package/dist/common/interfaces/authenticated.request.interface.d.ts.map +1 -0
- package/dist/common/interfaces/authenticated.request.interface.js +3 -0
- package/dist/common/interfaces/authenticated.request.interface.js.map +1 -0
- package/dist/common/interfaces/datamodel.interface.d.ts +25 -0
- package/dist/common/interfaces/datamodel.interface.d.ts.map +1 -0
- package/dist/common/interfaces/datamodel.interface.js +7 -0
- package/dist/common/interfaces/datamodel.interface.js.map +1 -0
- package/dist/common/interfaces/entity.descriptor.interface.d.ts +34 -0
- package/dist/common/interfaces/entity.descriptor.interface.d.ts.map +1 -0
- package/dist/common/interfaces/entity.descriptor.interface.js +6 -0
- package/dist/common/interfaces/entity.descriptor.interface.js.map +1 -0
- package/dist/common/interfaces/entity.schema.interface.d.ts +154 -0
- package/dist/common/interfaces/entity.schema.interface.d.ts.map +1 -0
- package/dist/common/interfaces/entity.schema.interface.js +3 -0
- package/dist/common/interfaces/entity.schema.interface.js.map +1 -0
- package/dist/common/interfaces/index.d.ts +8 -0
- package/dist/common/interfaces/index.d.ts.map +1 -0
- package/dist/common/interfaces/index.js +24 -0
- package/dist/common/interfaces/index.js.map +1 -0
- package/dist/common/interfaces/langchain.usage.interface.d.ts +21 -0
- package/dist/common/interfaces/langchain.usage.interface.d.ts.map +1 -0
- package/dist/common/interfaces/langchain.usage.interface.js +3 -0
- package/dist/common/interfaces/langchain.usage.interface.js.map +1 -0
- package/dist/common/interfaces/message.interface.d.ts +6 -0
- package/dist/common/interfaces/message.interface.d.ts.map +1 -0
- package/dist/common/interfaces/message.interface.js +3 -0
- package/dist/common/interfaces/message.interface.js.map +1 -0
- package/dist/common/interfaces/token.usage.interface.d.ts +5 -0
- package/dist/common/interfaces/token.usage.interface.d.ts.map +1 -0
- package/dist/common/interfaces/token.usage.interface.js +3 -0
- package/dist/common/interfaces/token.usage.interface.js.map +1 -0
- package/dist/common/registries/index.d.ts +2 -0
- package/dist/common/registries/index.d.ts.map +1 -0
- package/dist/common/registries/index.js +18 -0
- package/dist/common/registries/index.js.map +1 -0
- package/dist/common/registries/registry.d.ts +23 -0
- package/dist/common/registries/registry.d.ts.map +1 -0
- package/dist/common/registries/registry.js +55 -0
- package/dist/common/registries/registry.js.map +1 -0
- package/dist/common/repositories/ai.source.query.d.ts +13 -0
- package/dist/common/repositories/ai.source.query.d.ts.map +1 -0
- package/dist/common/repositories/ai.source.query.js +23 -0
- package/dist/common/repositories/ai.source.query.js.map +1 -0
- package/dist/common/repositories/index.d.ts +2 -0
- package/dist/common/repositories/index.d.ts.map +1 -0
- package/dist/common/repositories/index.js +18 -0
- package/dist/common/repositories/index.js.map +1 -0
- package/dist/common/strategies/index.d.ts +2 -0
- package/dist/common/strategies/index.d.ts.map +1 -0
- package/dist/common/strategies/index.js +18 -0
- package/dist/common/strategies/index.js.map +1 -0
- package/dist/common/strategies/jwt.strategy.d.ts +14 -0
- package/dist/common/strategies/jwt.strategy.d.ts.map +1 -0
- package/dist/common/strategies/jwt.strategy.js +43 -0
- package/dist/common/strategies/jwt.strategy.js.map +1 -0
- package/dist/common/tokens.d.ts +14 -0
- package/dist/common/tokens.d.ts.map +1 -0
- package/dist/common/tokens.js +11 -0
- package/dist/common/tokens.js.map +1 -0
- package/dist/common/types/data.limits.d.ts +2 -0
- package/dist/common/types/data.limits.d.ts.map +1 -0
- package/dist/common/types/data.limits.js +3 -0
- package/dist/common/types/data.limits.js.map +1 -0
- package/dist/common/types/index.d.ts +3 -0
- package/dist/common/types/index.d.ts.map +1 -0
- package/dist/common/types/index.js +19 -0
- package/dist/common/types/index.js.map +1 -0
- package/dist/common/types/reducers.d.ts +13 -0
- package/dist/common/types/reducers.d.ts.map +1 -0
- package/dist/common/types/reducers.js +19 -0
- package/dist/common/types/reducers.js.map +1 -0
- package/dist/config/base.config.d.ts +90 -0
- package/dist/config/base.config.d.ts.map +1 -0
- package/dist/config/base.config.js +209 -0
- package/dist/config/base.config.js.map +1 -0
- package/dist/config/company.configurations.d.ts +19 -0
- package/dist/config/company.configurations.d.ts.map +1 -0
- package/dist/config/company.configurations.js +23 -0
- package/dist/config/company.configurations.js.map +1 -0
- package/dist/config/enums/content.types.d.ts +6 -0
- package/dist/config/enums/content.types.d.ts.map +1 -0
- package/dist/config/enums/content.types.js +9 -0
- package/dist/config/enums/content.types.js.map +1 -0
- package/dist/config/enums/index.d.ts +3 -0
- package/dist/config/enums/index.d.ts.map +1 -0
- package/dist/config/enums/index.js +19 -0
- package/dist/config/enums/index.js.map +1 -0
- package/dist/config/enums/job.name.d.ts +9 -0
- package/dist/config/enums/job.name.d.ts.map +1 -0
- package/dist/config/enums/job.name.js +12 -0
- package/dist/config/enums/job.name.js.map +1 -0
- package/dist/config/enums/queue.id.d.ts +9 -0
- package/dist/config/enums/queue.id.d.ts.map +1 -0
- package/dist/config/enums/queue.id.js +13 -0
- package/dist/config/enums/queue.id.js.map +1 -0
- package/dist/config/index.d.ts +10 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +30 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/interfaces/base.config.interface.d.ts +45 -0
- package/dist/config/interfaces/base.config.interface.d.ts.map +1 -0
- package/dist/config/interfaces/base.config.interface.js +3 -0
- package/dist/config/interfaces/base.config.interface.js.map +1 -0
- package/dist/config/interfaces/config.ai.interface.d.ts +31 -0
- package/dist/config/interfaces/config.ai.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.ai.interface.js +3 -0
- package/dist/config/interfaces/config.ai.interface.js.map +1 -0
- package/dist/config/interfaces/config.api.interface.d.ts +6 -0
- package/dist/config/interfaces/config.api.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.api.interface.js +3 -0
- package/dist/config/interfaces/config.api.interface.js.map +1 -0
- package/dist/config/interfaces/config.app.interface.d.ts +4 -0
- package/dist/config/interfaces/config.app.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.app.interface.js +3 -0
- package/dist/config/interfaces/config.app.interface.js.map +1 -0
- package/dist/config/interfaces/config.cache.interface.d.ts +6 -0
- package/dist/config/interfaces/config.cache.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.cache.interface.js +3 -0
- package/dist/config/interfaces/config.cache.interface.js.map +1 -0
- package/dist/config/interfaces/config.chunk.queues.interface.d.ts +16 -0
- package/dist/config/interfaces/config.chunk.queues.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.chunk.queues.interface.js +3 -0
- package/dist/config/interfaces/config.chunk.queues.interface.js.map +1 -0
- package/dist/config/interfaces/config.content.types.interface.d.ts +8 -0
- package/dist/config/interfaces/config.content.types.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.content.types.interface.js +3 -0
- package/dist/config/interfaces/config.content.types.interface.js.map +1 -0
- package/dist/config/interfaces/config.cors.interface.d.ts +12 -0
- package/dist/config/interfaces/config.cors.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.cors.interface.js +3 -0
- package/dist/config/interfaces/config.cors.interface.js.map +1 -0
- package/dist/config/interfaces/config.email.interface.d.ts +11 -0
- package/dist/config/interfaces/config.email.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.email.interface.js +3 -0
- package/dist/config/interfaces/config.email.interface.js.map +1 -0
- package/dist/config/interfaces/config.encryption.interface.d.ts +4 -0
- package/dist/config/interfaces/config.encryption.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.encryption.interface.js +3 -0
- package/dist/config/interfaces/config.encryption.interface.js.map +1 -0
- package/dist/config/interfaces/config.environment.interface.d.ts +4 -0
- package/dist/config/interfaces/config.environment.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.environment.interface.js +3 -0
- package/dist/config/interfaces/config.environment.interface.js.map +1 -0
- package/dist/config/interfaces/config.interface.d.ts +8 -0
- package/dist/config/interfaces/config.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.interface.js +3 -0
- package/dist/config/interfaces/config.interface.js.map +1 -0
- package/dist/config/interfaces/config.job.names.interface.d.ts +20 -0
- package/dist/config/interfaces/config.job.names.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.job.names.interface.js +3 -0
- package/dist/config/interfaces/config.job.names.interface.js.map +1 -0
- package/dist/config/interfaces/config.jwt.interface.d.ts +5 -0
- package/dist/config/interfaces/config.jwt.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.jwt.interface.js +3 -0
- package/dist/config/interfaces/config.jwt.interface.js.map +1 -0
- package/dist/config/interfaces/config.logging.interface.d.ts +16 -0
- package/dist/config/interfaces/config.logging.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.logging.interface.js +3 -0
- package/dist/config/interfaces/config.logging.interface.js.map +1 -0
- package/dist/config/interfaces/config.neo4j.interface.d.ts +7 -0
- package/dist/config/interfaces/config.neo4j.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.neo4j.interface.js +3 -0
- package/dist/config/interfaces/config.neo4j.interface.js.map +1 -0
- package/dist/config/interfaces/config.prompts.interface.d.ts +18 -0
- package/dist/config/interfaces/config.prompts.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.prompts.interface.js +3 -0
- package/dist/config/interfaces/config.prompts.interface.js.map +1 -0
- package/dist/config/interfaces/config.ratelimit.interface.d.ts +7 -0
- package/dist/config/interfaces/config.ratelimit.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.ratelimit.interface.js +3 -0
- package/dist/config/interfaces/config.ratelimit.interface.js.map +1 -0
- package/dist/config/interfaces/config.redis.interface.d.ts +8 -0
- package/dist/config/interfaces/config.redis.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.redis.interface.js +3 -0
- package/dist/config/interfaces/config.redis.interface.js.map +1 -0
- package/dist/config/interfaces/config.s3.interface.d.ts +9 -0
- package/dist/config/interfaces/config.s3.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.s3.interface.js +3 -0
- package/dist/config/interfaces/config.s3.interface.js.map +1 -0
- package/dist/config/interfaces/config.stripe.interface.d.ts +9 -0
- package/dist/config/interfaces/config.stripe.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.stripe.interface.js +3 -0
- package/dist/config/interfaces/config.stripe.interface.js.map +1 -0
- package/dist/config/interfaces/config.tempo.interface.d.ts +7 -0
- package/dist/config/interfaces/config.tempo.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.tempo.interface.js +3 -0
- package/dist/config/interfaces/config.tempo.interface.js.map +1 -0
- package/dist/config/interfaces/config.vapid.interface.d.ts +6 -0
- package/dist/config/interfaces/config.vapid.interface.d.ts.map +1 -0
- package/dist/config/interfaces/config.vapid.interface.js +3 -0
- package/dist/config/interfaces/config.vapid.interface.js.map +1 -0
- package/dist/config/interfaces/index.d.ts +27 -0
- package/dist/config/interfaces/index.d.ts.map +1 -0
- package/dist/config/interfaces/index.js +43 -0
- package/dist/config/interfaces/index.js.map +1 -0
- package/dist/config/tokens.d.ts +12 -0
- package/dist/config/tokens.d.ts.map +1 -0
- package/dist/config/tokens.js +16 -0
- package/dist/config/tokens.js.map +1 -0
- package/dist/core/appmode/app.mode.module.d.ts +6 -0
- package/dist/core/appmode/app.mode.module.d.ts.map +1 -0
- package/dist/core/appmode/app.mode.module.js +47 -0
- package/dist/core/appmode/app.mode.module.js.map +1 -0
- package/dist/core/appmode/constants/app.mode.constant.d.ts +2 -0
- package/dist/core/appmode/constants/app.mode.constant.d.ts.map +1 -0
- package/dist/core/appmode/constants/app.mode.constant.js +8 -0
- package/dist/core/appmode/constants/app.mode.constant.js.map +1 -0
- package/dist/core/appmode/index.d.ts +8 -0
- package/dist/core/appmode/index.d.ts.map +1 -0
- package/dist/core/appmode/index.js +24 -0
- package/dist/core/appmode/index.js.map +1 -0
- package/dist/core/blocknote/blocknote.module.d.ts +22 -0
- package/dist/core/blocknote/blocknote.module.d.ts.map +1 -0
- package/dist/core/blocknote/blocknote.module.js +40 -0
- package/dist/core/blocknote/blocknote.module.js.map +1 -0
- package/dist/core/blocknote/index.d.ts +3 -0
- package/dist/core/blocknote/index.d.ts.map +1 -0
- package/dist/core/blocknote/index.js +19 -0
- package/dist/core/blocknote/index.js.map +1 -0
- package/dist/core/blocknote/services/blocknote.service.d.ts +53 -0
- package/dist/core/blocknote/services/blocknote.service.d.ts.map +1 -0
- package/dist/core/blocknote/services/blocknote.service.js +337 -0
- package/dist/core/blocknote/services/blocknote.service.js.map +1 -0
- package/dist/core/cache/cache.module.d.ts +3 -0
- package/dist/core/cache/cache.module.d.ts.map +1 -0
- package/dist/core/cache/cache.module.js +22 -0
- package/dist/core/cache/cache.module.js.map +1 -0
- package/dist/core/cache/index.d.ts +9 -0
- package/dist/core/cache/index.d.ts.map +1 -0
- package/dist/core/cache/index.js +25 -0
- package/dist/core/cache/index.js.map +1 -0
- package/dist/core/cache/interceptors/cache.interceptor.d.ts +16 -0
- package/dist/core/cache/interceptors/cache.interceptor.d.ts.map +1 -0
- package/dist/core/cache/interceptors/cache.interceptor.js +87 -0
- package/dist/core/cache/interceptors/cache.interceptor.js.map +1 -0
- package/dist/core/cache/services/cache.service.d.ts +36 -0
- package/dist/core/cache/services/cache.service.d.ts.map +1 -0
- package/dist/core/cache/services/cache.service.js +256 -0
- package/dist/core/cache/services/cache.service.js.map +1 -0
- package/dist/core/core.module.d.ts +36 -0
- package/dist/core/core.module.d.ts.map +1 -0
- package/dist/core/core.module.js +149 -0
- package/dist/core/core.module.js.map +1 -0
- package/dist/core/cors/cors.module.d.ts +12 -0
- package/dist/core/cors/cors.module.d.ts.map +1 -0
- package/dist/core/cors/cors.module.js +48 -0
- package/dist/core/cors/cors.module.js.map +1 -0
- package/dist/core/cors/index.d.ts +9 -0
- package/dist/core/cors/index.d.ts.map +1 -0
- package/dist/core/cors/index.js +27 -0
- package/dist/core/cors/index.js.map +1 -0
- package/dist/core/cors/services/cors.service.d.ts +17 -0
- package/dist/core/cors/services/cors.service.d.ts.map +1 -0
- package/dist/core/cors/services/cors.service.js +115 -0
- package/dist/core/cors/services/cors.service.js.map +1 -0
- package/dist/core/debug/debug.module.d.ts +26 -0
- package/dist/core/debug/debug.module.d.ts.map +1 -0
- package/dist/core/debug/debug.module.js +45 -0
- package/dist/core/debug/debug.module.js.map +1 -0
- package/dist/core/debug/index.d.ts +3 -0
- package/dist/core/debug/index.d.ts.map +1 -0
- package/dist/core/debug/index.js +19 -0
- package/dist/core/debug/index.js.map +1 -0
- package/dist/core/debug/services/debug.logger.service.d.ts +138 -0
- package/dist/core/debug/services/debug.logger.service.d.ts.map +1 -0
- package/dist/core/debug/services/debug.logger.service.js +350 -0
- package/dist/core/debug/services/debug.logger.service.js.map +1 -0
- package/dist/core/email/email.module.d.ts +12 -0
- package/dist/core/email/email.module.d.ts.map +1 -0
- package/dist/core/email/email.module.js +48 -0
- package/dist/core/email/email.module.js.map +1 -0
- package/dist/core/email/index.d.ts +9 -0
- package/dist/core/email/index.d.ts.map +1 -0
- package/dist/core/email/index.js +27 -0
- package/dist/core/email/index.js.map +1 -0
- package/dist/core/email/services/email.service.d.ts +18 -0
- package/dist/core/email/services/email.service.d.ts.map +1 -0
- package/dist/core/email/services/email.service.js +217 -0
- package/dist/core/email/services/email.service.js.map +1 -0
- package/dist/core/index.d.ts +31 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +52 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/jsonapi/abstracts/abstract.jsonapi.serialiser.d.ts +26 -0
- package/dist/core/jsonapi/abstracts/abstract.jsonapi.serialiser.d.ts.map +1 -0
- package/dist/core/jsonapi/abstracts/abstract.jsonapi.serialiser.js +78 -0
- package/dist/core/jsonapi/abstracts/abstract.jsonapi.serialiser.js.map +1 -0
- package/dist/core/jsonapi/factories/dynamic.relationship.factory.d.ts +7 -0
- package/dist/core/jsonapi/factories/dynamic.relationship.factory.d.ts.map +1 -0
- package/dist/core/jsonapi/factories/dynamic.relationship.factory.js +61 -0
- package/dist/core/jsonapi/factories/dynamic.relationship.factory.js.map +1 -0
- package/dist/core/jsonapi/factories/jsonapi.serialiser.factory.d.ts +10 -0
- package/dist/core/jsonapi/factories/jsonapi.serialiser.factory.d.ts.map +1 -0
- package/dist/core/jsonapi/factories/jsonapi.serialiser.factory.js +43 -0
- package/dist/core/jsonapi/factories/jsonapi.serialiser.factory.js.map +1 -0
- package/dist/core/jsonapi/index.d.ts +20 -0
- package/dist/core/jsonapi/index.d.ts.map +1 -0
- package/dist/core/jsonapi/index.js +46 -0
- package/dist/core/jsonapi/index.js.map +1 -0
- package/dist/core/jsonapi/interfaces/jsonapi.cursor.interface.d.ts +5 -0
- package/dist/core/jsonapi/interfaces/jsonapi.cursor.interface.d.ts.map +1 -0
- package/dist/core/jsonapi/interfaces/jsonapi.cursor.interface.js +3 -0
- package/dist/core/jsonapi/interfaces/jsonapi.cursor.interface.js.map +1 -0
- package/dist/core/jsonapi/interfaces/jsonapi.data.interface.d.ts +31 -0
- package/dist/core/jsonapi/interfaces/jsonapi.data.interface.d.ts.map +1 -0
- package/dist/core/jsonapi/interfaces/jsonapi.data.interface.js +3 -0
- package/dist/core/jsonapi/interfaces/jsonapi.data.interface.js.map +1 -0
- package/dist/core/jsonapi/interfaces/jsonapi.pagination.interface.d.ts +8 -0
- package/dist/core/jsonapi/interfaces/jsonapi.pagination.interface.d.ts.map +1 -0
- package/dist/core/jsonapi/interfaces/jsonapi.pagination.interface.js +3 -0
- package/dist/core/jsonapi/interfaces/jsonapi.pagination.interface.js.map +1 -0
- package/dist/core/jsonapi/interfaces/jsonapi.relationship.builder.interface.d.ts +5 -0
- package/dist/core/jsonapi/interfaces/jsonapi.relationship.builder.interface.d.ts.map +1 -0
- package/dist/core/jsonapi/interfaces/jsonapi.relationship.builder.interface.js +3 -0
- package/dist/core/jsonapi/interfaces/jsonapi.relationship.builder.interface.js.map +1 -0
- package/dist/core/jsonapi/interfaces/jsonapi.service.interface.d.ts +8 -0
- package/dist/core/jsonapi/interfaces/jsonapi.service.interface.d.ts.map +1 -0
- package/dist/core/jsonapi/interfaces/jsonapi.service.interface.js +3 -0
- package/dist/core/jsonapi/interfaces/jsonapi.service.interface.js.map +1 -0
- package/dist/core/jsonapi/jsonapi.module.d.ts +12 -0
- package/dist/core/jsonapi/jsonapi.module.d.ts.map +1 -0
- package/dist/core/jsonapi/jsonapi.module.js +50 -0
- package/dist/core/jsonapi/jsonapi.module.js.map +1 -0
- package/dist/core/jsonapi/serialisers/descriptor.based.serialiser.d.ts +28 -0
- package/dist/core/jsonapi/serialisers/descriptor.based.serialiser.d.ts.map +1 -0
- package/dist/core/jsonapi/serialisers/descriptor.based.serialiser.js +121 -0
- package/dist/core/jsonapi/serialisers/descriptor.based.serialiser.js.map +1 -0
- package/dist/core/jsonapi/serialisers/jsonapi.paginator.d.ts +29 -0
- package/dist/core/jsonapi/serialisers/jsonapi.paginator.d.ts.map +1 -0
- package/dist/core/jsonapi/serialisers/jsonapi.paginator.js +183 -0
- package/dist/core/jsonapi/serialisers/jsonapi.paginator.js.map +1 -0
- package/dist/core/jsonapi/services/jsonapi.service.d.ts +26 -0
- package/dist/core/jsonapi/services/jsonapi.service.d.ts.map +1 -0
- package/dist/core/jsonapi/services/jsonapi.service.js +277 -0
- package/dist/core/jsonapi/services/jsonapi.service.js.map +1 -0
- package/dist/core/jsonapi/types/JsonApiIncludedFields.d.ts +5 -0
- package/dist/core/jsonapi/types/JsonApiIncludedFields.d.ts.map +1 -0
- package/dist/core/jsonapi/types/JsonApiIncludedFields.js +3 -0
- package/dist/core/jsonapi/types/JsonApiIncludedFields.js.map +1 -0
- package/dist/core/llm/abstracts/abstract.tools.d.ts +62 -0
- package/dist/core/llm/abstracts/abstract.tools.d.ts.map +1 -0
- package/dist/core/llm/abstracts/abstract.tools.js +69 -0
- package/dist/core/llm/abstracts/abstract.tools.js.map +1 -0
- package/dist/core/llm/index.d.ts +8 -0
- package/dist/core/llm/index.d.ts.map +1 -0
- package/dist/core/llm/index.js +24 -0
- package/dist/core/llm/index.js.map +1 -0
- package/dist/core/llm/llm.module.d.ts +16 -0
- package/dist/core/llm/llm.module.d.ts.map +1 -0
- package/dist/core/llm/llm.module.js +39 -0
- package/dist/core/llm/llm.module.js.map +1 -0
- package/dist/core/llm/services/embedder.service.d.ts +10 -0
- package/dist/core/llm/services/embedder.service.d.ts.map +1 -0
- package/dist/core/llm/services/embedder.service.js +31 -0
- package/dist/core/llm/services/embedder.service.js.map +1 -0
- package/dist/core/llm/services/llm.service.d.ts +196 -0
- package/dist/core/llm/services/llm.service.d.ts.map +1 -0
- package/dist/core/llm/services/llm.service.js +457 -0
- package/dist/core/llm/services/llm.service.js.map +1 -0
- package/dist/core/llm/services/model.service.d.ts +60 -0
- package/dist/core/llm/services/model.service.d.ts.map +1 -0
- package/dist/core/llm/services/model.service.js +215 -0
- package/dist/core/llm/services/model.service.js.map +1 -0
- package/dist/core/llm/services/vision.llm.service.d.ts +47 -0
- package/dist/core/llm/services/vision.llm.service.d.ts.map +1 -0
- package/dist/core/llm/services/vision.llm.service.js +105 -0
- package/dist/core/llm/services/vision.llm.service.js.map +1 -0
- package/dist/core/llm/types/llm.atomicfact.d.ts +6 -0
- package/dist/core/llm/types/llm.atomicfact.d.ts.map +1 -0
- package/dist/core/llm/types/llm.atomicfact.js +3 -0
- package/dist/core/llm/types/llm.atomicfact.js.map +1 -0
- package/dist/core/llm/types/llm.chunk.d.ts +8 -0
- package/dist/core/llm/types/llm.chunk.d.ts.map +1 -0
- package/dist/core/llm/types/llm.chunk.js +3 -0
- package/dist/core/llm/types/llm.chunk.js.map +1 -0
- package/dist/core/llm/types/llm.keyconcept.d.ts +4 -0
- package/dist/core/llm/types/llm.keyconcept.d.ts.map +1 -0
- package/dist/core/llm/types/llm.keyconcept.js +3 -0
- package/dist/core/llm/types/llm.keyconcept.js.map +1 -0
- package/dist/core/llm/types/llm.keyconcept.relationship.d.ts +8 -0
- package/dist/core/llm/types/llm.keyconcept.relationship.d.ts.map +1 -0
- package/dist/core/llm/types/llm.keyconcept.relationship.js +3 -0
- package/dist/core/llm/types/llm.keyconcept.relationship.js.map +1 -0
- package/dist/core/llm/utils/schema.utils.d.ts +89 -0
- package/dist/core/llm/utils/schema.utils.d.ts.map +1 -0
- package/dist/core/llm/utils/schema.utils.js +155 -0
- package/dist/core/llm/utils/schema.utils.js.map +1 -0
- package/dist/core/llm/utils/tools.utils.d.ts +56 -0
- package/dist/core/llm/utils/tools.utils.d.ts.map +1 -0
- package/dist/core/llm/utils/tools.utils.js +74 -0
- package/dist/core/llm/utils/tools.utils.js.map +1 -0
- package/dist/core/logging/index.d.ts +11 -0
- package/dist/core/logging/index.d.ts.map +1 -0
- package/dist/core/logging/index.js +30 -0
- package/dist/core/logging/index.js.map +1 -0
- package/dist/core/logging/interceptors/logging.interceptor.d.ts +12 -0
- package/dist/core/logging/interceptors/logging.interceptor.d.ts.map +1 -0
- package/dist/core/logging/interceptors/logging.interceptor.js +82 -0
- package/dist/core/logging/interceptors/logging.interceptor.js.map +1 -0
- package/dist/core/logging/interfaces/logging.interface.d.ts +35 -0
- package/dist/core/logging/interfaces/logging.interface.d.ts.map +1 -0
- package/dist/core/logging/interfaces/logging.interface.js +3 -0
- package/dist/core/logging/interfaces/logging.interface.js.map +1 -0
- package/dist/core/logging/logging.module.d.ts +3 -0
- package/dist/core/logging/logging.module.d.ts.map +1 -0
- package/dist/core/logging/logging.module.js +23 -0
- package/dist/core/logging/logging.module.js.map +1 -0
- package/dist/core/logging/services/logging.service.d.ts +32 -0
- package/dist/core/logging/services/logging.service.d.ts.map +1 -0
- package/dist/core/logging/services/logging.service.js +373 -0
- package/dist/core/logging/services/logging.service.js.map +1 -0
- package/dist/core/migrator/index.d.ts +4 -0
- package/dist/core/migrator/index.d.ts.map +1 -0
- package/dist/core/migrator/index.js +20 -0
- package/dist/core/migrator/index.js.map +1 -0
- package/dist/core/migrator/interfaces/migration.interface.d.ts +5 -0
- package/dist/core/migrator/interfaces/migration.interface.d.ts.map +1 -0
- package/dist/core/migrator/interfaces/migration.interface.js +3 -0
- package/dist/core/migrator/interfaces/migration.interface.js.map +1 -0
- package/dist/core/migrator/migrator.module.d.ts +27 -0
- package/dist/core/migrator/migrator.module.d.ts.map +1 -0
- package/dist/core/migrator/migrator.module.js +46 -0
- package/dist/core/migrator/migrator.module.js.map +1 -0
- package/dist/core/migrator/services/migrator.service.d.ts +40 -0
- package/dist/core/migrator/services/migrator.service.d.ts.map +1 -0
- package/dist/core/migrator/services/migrator.service.js +195 -0
- package/dist/core/migrator/services/migrator.service.js.map +1 -0
- package/dist/core/neo4j/abstracts/abstract.repository.d.ts +133 -0
- package/dist/core/neo4j/abstracts/abstract.repository.d.ts.map +1 -0
- package/dist/core/neo4j/abstracts/abstract.repository.js +509 -0
- package/dist/core/neo4j/abstracts/abstract.repository.js.map +1 -0
- package/dist/core/neo4j/abstracts/abstract.service.d.ts +166 -0
- package/dist/core/neo4j/abstracts/abstract.service.d.ts.map +1 -0
- package/dist/core/neo4j/abstracts/abstract.service.js +223 -0
- package/dist/core/neo4j/abstracts/abstract.service.js.map +1 -0
- package/dist/core/neo4j/abstracts/index.d.ts +3 -0
- package/dist/core/neo4j/abstracts/index.d.ts.map +1 -0
- package/dist/core/neo4j/abstracts/index.js +19 -0
- package/dist/core/neo4j/abstracts/index.js.map +1 -0
- package/dist/core/neo4j/factories/entity.factory.d.ts +17 -0
- package/dist/core/neo4j/factories/entity.factory.d.ts.map +1 -0
- package/dist/core/neo4j/factories/entity.factory.js +401 -0
- package/dist/core/neo4j/factories/entity.factory.js.map +1 -0
- package/dist/core/neo4j/index.d.ts +16 -0
- package/dist/core/neo4j/index.d.ts.map +1 -0
- package/dist/core/neo4j/index.js +41 -0
- package/dist/core/neo4j/index.js.map +1 -0
- package/dist/core/neo4j/neo4j.module.d.ts +3 -0
- package/dist/core/neo4j/neo4j.module.d.ts.map +1 -0
- package/dist/core/neo4j/neo4j.module.js +24 -0
- package/dist/core/neo4j/neo4j.module.js.map +1 -0
- package/dist/core/neo4j/queries/order.by.d.ts +11 -0
- package/dist/core/neo4j/queries/order.by.d.ts.map +1 -0
- package/dist/core/neo4j/queries/order.by.js +36 -0
- package/dist/core/neo4j/queries/order.by.js.map +1 -0
- package/dist/core/neo4j/queries/update.relationship.d.ts +15 -0
- package/dist/core/neo4j/queries/update.relationship.d.ts.map +1 -0
- package/dist/core/neo4j/queries/update.relationship.js +57 -0
- package/dist/core/neo4j/queries/update.relationship.js.map +1 -0
- package/dist/core/neo4j/services/cypher.service.d.ts +21 -0
- package/dist/core/neo4j/services/cypher.service.d.ts.map +1 -0
- package/dist/core/neo4j/services/cypher.service.js +49 -0
- package/dist/core/neo4j/services/cypher.service.js.map +1 -0
- package/dist/core/neo4j/services/neo4j.service.d.ts +59 -0
- package/dist/core/neo4j/services/neo4j.service.d.ts.map +1 -0
- package/dist/core/neo4j/services/neo4j.service.js +266 -0
- package/dist/core/neo4j/services/neo4j.service.js.map +1 -0
- package/dist/core/neo4j/services/token-resolver.service.d.ts +35 -0
- package/dist/core/neo4j/services/token-resolver.service.d.ts.map +1 -0
- package/dist/core/neo4j/services/token-resolver.service.js +100 -0
- package/dist/core/neo4j/services/token-resolver.service.js.map +1 -0
- package/dist/core/queue/index.d.ts +7 -0
- package/dist/core/queue/index.d.ts.map +1 -0
- package/dist/core/queue/index.js +24 -0
- package/dist/core/queue/index.js.map +1 -0
- package/dist/core/queue/queue.module.d.ts +19 -0
- package/dist/core/queue/queue.module.d.ts.map +1 -0
- package/dist/core/queue/queue.module.js +109 -0
- package/dist/core/queue/queue.module.js.map +1 -0
- package/dist/core/redis/index.d.ts +9 -0
- package/dist/core/redis/index.d.ts.map +1 -0
- package/dist/core/redis/index.js +25 -0
- package/dist/core/redis/index.js.map +1 -0
- package/dist/core/redis/redis.module.d.ts +3 -0
- package/dist/core/redis/redis.module.d.ts.map +1 -0
- package/dist/core/redis/redis.module.js +22 -0
- package/dist/core/redis/redis.module.js.map +1 -0
- package/dist/core/redis/services/redis.client.storage.service.d.ts +31 -0
- package/dist/core/redis/services/redis.client.storage.service.d.ts.map +1 -0
- package/dist/core/redis/services/redis.client.storage.service.js +162 -0
- package/dist/core/redis/services/redis.client.storage.service.js.map +1 -0
- package/dist/core/redis/services/redis.messaging.service.d.ts +28 -0
- package/dist/core/redis/services/redis.messaging.service.d.ts.map +1 -0
- package/dist/core/redis/services/redis.messaging.service.js +120 -0
- package/dist/core/redis/services/redis.messaging.service.js.map +1 -0
- package/dist/core/security/index.d.ts +8 -0
- package/dist/core/security/index.d.ts.map +1 -0
- package/dist/core/security/index.js +24 -0
- package/dist/core/security/index.js.map +1 -0
- package/dist/core/security/security.module.d.ts +3 -0
- package/dist/core/security/security.module.d.ts.map +1 -0
- package/dist/core/security/security.module.js +26 -0
- package/dist/core/security/security.module.js.map +1 -0
- package/dist/core/security/services/security.service.d.ts +30 -0
- package/dist/core/security/services/security.service.d.ts.map +1 -0
- package/dist/core/security/services/security.service.js +109 -0
- package/dist/core/security/services/security.service.js.map +1 -0
- package/dist/core/stripe/errors/stripe.errors.d.ts +9 -0
- package/dist/core/stripe/errors/stripe.errors.d.ts.map +1 -0
- package/dist/core/stripe/errors/stripe.errors.js +54 -0
- package/dist/core/stripe/errors/stripe.errors.js.map +1 -0
- package/dist/core/stripe/index.d.ts +12 -0
- package/dist/core/stripe/index.d.ts.map +1 -0
- package/dist/core/stripe/index.js +28 -0
- package/dist/core/stripe/index.js.map +1 -0
- package/dist/core/stripe/services/stripe.customer.service.d.ts +25 -0
- package/dist/core/stripe/services/stripe.customer.service.d.ts.map +1 -0
- package/dist/core/stripe/services/stripe.customer.service.js +124 -0
- package/dist/core/stripe/services/stripe.customer.service.js.map +1 -0
- package/dist/core/stripe/services/stripe.invoice.service.d.ts +20 -0
- package/dist/core/stripe/services/stripe.invoice.service.d.ts.map +1 -0
- package/dist/core/stripe/services/stripe.invoice.service.js +102 -0
- package/dist/core/stripe/services/stripe.invoice.service.js.map +1 -0
- package/dist/core/stripe/services/stripe.payment.service.d.ts +25 -0
- package/dist/core/stripe/services/stripe.payment.service.d.ts.map +1 -0
- package/dist/core/stripe/services/stripe.payment.service.js +111 -0
- package/dist/core/stripe/services/stripe.payment.service.js.map +1 -0
- package/dist/core/stripe/services/stripe.portal.service.d.ts +8 -0
- package/dist/core/stripe/services/stripe.portal.service.d.ts.map +1 -0
- package/dist/core/stripe/services/stripe.portal.service.js +44 -0
- package/dist/core/stripe/services/stripe.portal.service.js.map +1 -0
- package/dist/core/stripe/services/stripe.product.service.d.ts +46 -0
- package/dist/core/stripe/services/stripe.product.service.d.ts.map +1 -0
- package/dist/core/stripe/services/stripe.product.service.js +161 -0
- package/dist/core/stripe/services/stripe.product.service.js.map +1 -0
- package/dist/core/stripe/services/stripe.service.d.ts +36 -0
- package/dist/core/stripe/services/stripe.service.d.ts.map +1 -0
- package/dist/core/stripe/services/stripe.service.js +89 -0
- package/dist/core/stripe/services/stripe.service.js.map +1 -0
- package/dist/core/stripe/services/stripe.subscription.service.d.ts +26 -0
- package/dist/core/stripe/services/stripe.subscription.service.d.ts.map +1 -0
- package/dist/core/stripe/services/stripe.subscription.service.js +166 -0
- package/dist/core/stripe/services/stripe.subscription.service.js.map +1 -0
- package/dist/core/stripe/services/stripe.usage.service.d.ts +35 -0
- package/dist/core/stripe/services/stripe.usage.service.d.ts.map +1 -0
- package/dist/core/stripe/services/stripe.usage.service.js +100 -0
- package/dist/core/stripe/services/stripe.usage.service.js.map +1 -0
- package/dist/core/stripe/services/stripe.webhook.service.d.ts +24 -0
- package/dist/core/stripe/services/stripe.webhook.service.d.ts.map +1 -0
- package/dist/core/stripe/services/stripe.webhook.service.js +63 -0
- package/dist/core/stripe/services/stripe.webhook.service.js.map +1 -0
- package/dist/core/stripe/stripe.module.d.ts +21 -0
- package/dist/core/stripe/stripe.module.d.ts.map +1 -0
- package/dist/core/stripe/stripe.module.js +66 -0
- package/dist/core/stripe/stripe.module.js.map +1 -0
- package/dist/core/tracing/index.d.ts +12 -0
- package/dist/core/tracing/index.d.ts.map +1 -0
- package/dist/core/tracing/index.js +33 -0
- package/dist/core/tracing/index.js.map +1 -0
- package/dist/core/tracing/interceptors/tracing.interceptor.d.ts +9 -0
- package/dist/core/tracing/interceptors/tracing.interceptor.d.ts.map +1 -0
- package/dist/core/tracing/interceptors/tracing.interceptor.js +119 -0
- package/dist/core/tracing/interceptors/tracing.interceptor.js.map +1 -0
- package/dist/core/tracing/interfaces/tracing.interface.d.ts +14 -0
- package/dist/core/tracing/interfaces/tracing.interface.d.ts.map +1 -0
- package/dist/core/tracing/interfaces/tracing.interface.js +3 -0
- package/dist/core/tracing/interfaces/tracing.interface.js.map +1 -0
- package/dist/core/tracing/services/tracing.service.d.ts +74 -0
- package/dist/core/tracing/services/tracing.service.d.ts.map +1 -0
- package/dist/core/tracing/services/tracing.service.js +262 -0
- package/dist/core/tracing/services/tracing.service.js.map +1 -0
- package/dist/core/tracing/tracing.module.d.ts +12 -0
- package/dist/core/tracing/tracing.module.d.ts.map +1 -0
- package/dist/core/tracing/tracing.module.js +46 -0
- package/dist/core/tracing/tracing.module.js.map +1 -0
- package/dist/core/tracing/tracing.setup.d.ts +17 -0
- package/dist/core/tracing/tracing.setup.d.ts.map +1 -0
- package/dist/core/tracing/tracing.setup.js +94 -0
- package/dist/core/tracing/tracing.setup.js.map +1 -0
- package/dist/core/version/index.d.ts +3 -0
- package/dist/core/version/index.d.ts.map +1 -0
- package/dist/core/version/index.js +19 -0
- package/dist/core/version/index.js.map +1 -0
- package/dist/core/version/services/version.service.d.ts +6 -0
- package/dist/core/version/services/version.service.d.ts.map +1 -0
- package/dist/core/version/services/version.service.js +27 -0
- package/dist/core/version/services/version.service.js.map +1 -0
- package/dist/core/version/version.module.d.ts +5 -0
- package/dist/core/version/version.module.d.ts.map +1 -0
- package/dist/core/version/version.module.js +27 -0
- package/dist/core/version/version.module.js.map +1 -0
- package/dist/core/websocket/gateways/event.gateway.d.ts +41 -0
- package/dist/core/websocket/gateways/event.gateway.d.ts.map +1 -0
- package/dist/core/websocket/gateways/event.gateway.js +164 -0
- package/dist/core/websocket/gateways/event.gateway.js.map +1 -0
- package/dist/core/websocket/guards/ws.jwt.auth.guard.d.ts +13 -0
- package/dist/core/websocket/guards/ws.jwt.auth.guard.d.ts.map +1 -0
- package/dist/core/websocket/guards/ws.jwt.auth.guard.js +62 -0
- package/dist/core/websocket/guards/ws.jwt.auth.guard.js.map +1 -0
- package/dist/core/websocket/index.d.ts +4 -0
- package/dist/core/websocket/index.d.ts.map +1 -0
- package/dist/core/websocket/index.js +20 -0
- package/dist/core/websocket/index.js.map +1 -0
- package/dist/core/websocket/services/presence.service.d.ts +59 -0
- package/dist/core/websocket/services/presence.service.d.ts.map +1 -0
- package/dist/core/websocket/services/presence.service.js +255 -0
- package/dist/core/websocket/services/presence.service.js.map +1 -0
- package/dist/core/websocket/services/websocket.service.d.ts +45 -0
- package/dist/core/websocket/services/websocket.service.d.ts.map +1 -0
- package/dist/core/websocket/services/websocket.service.js +169 -0
- package/dist/core/websocket/services/websocket.service.js.map +1 -0
- package/dist/core/websocket/websocket.module.d.ts +25 -0
- package/dist/core/websocket/websocket.module.d.ts.map +1 -0
- package/dist/core/websocket/websocket.module.js +57 -0
- package/dist/core/websocket/websocket.module.js.map +1 -0
- package/dist/foundations/atomicfact/atomicfact.module.d.ts +5 -0
- package/dist/foundations/atomicfact/atomicfact.module.d.ts.map +1 -0
- package/dist/foundations/atomicfact/atomicfact.module.js +29 -0
- package/dist/foundations/atomicfact/atomicfact.module.js.map +1 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.entity.d.ts +7 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.entity.d.ts.map +1 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.entity.js +3 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.entity.js.map +1 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.map.d.ts +8 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.map.d.ts.map +1 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.map.js +13 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.map.js.map +1 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.meta.d.ts +3 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.meta.d.ts.map +1 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.meta.js +10 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.meta.js.map +1 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.model.d.ts +4 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.model.d.ts.map +1 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.model.js +13 -0
- package/dist/foundations/atomicfact/entities/atomic.fact.model.js.map +1 -0
- package/dist/foundations/atomicfact/index.d.ts +4 -0
- package/dist/foundations/atomicfact/index.d.ts.map +1 -0
- package/dist/foundations/atomicfact/index.js +8 -0
- package/dist/foundations/atomicfact/index.js.map +1 -0
- package/dist/foundations/atomicfact/repositories/atomicfact.repository.d.ts +32 -0
- package/dist/foundations/atomicfact/repositories/atomicfact.repository.d.ts.map +1 -0
- package/dist/foundations/atomicfact/repositories/atomicfact.repository.js +111 -0
- package/dist/foundations/atomicfact/repositories/atomicfact.repository.js.map +1 -0
- package/dist/foundations/atomicfact/services/atomicfact.service.d.ts +14 -0
- package/dist/foundations/atomicfact/services/atomicfact.service.d.ts.map +1 -0
- package/dist/foundations/atomicfact/services/atomicfact.service.js +47 -0
- package/dist/foundations/atomicfact/services/atomicfact.service.js.map +1 -0
- package/dist/foundations/audit/audit.module.d.ts +5 -0
- package/dist/foundations/audit/audit.module.d.ts.map +1 -0
- package/dist/foundations/audit/audit.module.js +33 -0
- package/dist/foundations/audit/audit.module.js.map +1 -0
- package/dist/foundations/audit/controllers/audit.controller.d.ts +9 -0
- package/dist/foundations/audit/controllers/audit.controller.d.ts.map +1 -0
- package/dist/foundations/audit/controllers/audit.controller.js +47 -0
- package/dist/foundations/audit/controllers/audit.controller.js.map +1 -0
- package/dist/foundations/audit/entities/audit.entity.d.ts +8 -0
- package/dist/foundations/audit/entities/audit.entity.d.ts.map +1 -0
- package/dist/foundations/audit/entities/audit.entity.js +3 -0
- package/dist/foundations/audit/entities/audit.entity.js.map +1 -0
- package/dist/foundations/audit/entities/audit.map.d.ts +8 -0
- package/dist/foundations/audit/entities/audit.map.d.ts.map +1 -0
- package/dist/foundations/audit/entities/audit.map.js +15 -0
- package/dist/foundations/audit/entities/audit.map.js.map +1 -0
- package/dist/foundations/audit/entities/audit.meta.d.ts +3 -0
- package/dist/foundations/audit/entities/audit.meta.d.ts.map +1 -0
- package/dist/foundations/audit/entities/audit.meta.js +10 -0
- package/dist/foundations/audit/entities/audit.meta.js.map +1 -0
- package/dist/foundations/audit/entities/audit.model.d.ts +4 -0
- package/dist/foundations/audit/entities/audit.model.d.ts.map +1 -0
- package/dist/foundations/audit/entities/audit.model.js +17 -0
- package/dist/foundations/audit/entities/audit.model.js.map +1 -0
- package/dist/foundations/audit/index.d.ts +7 -0
- package/dist/foundations/audit/index.d.ts.map +1 -0
- package/dist/foundations/audit/index.js +14 -0
- package/dist/foundations/audit/index.js.map +1 -0
- package/dist/foundations/audit/repositories/audit.repository.d.ts +20 -0
- package/dist/foundations/audit/repositories/audit.repository.d.ts.map +1 -0
- package/dist/foundations/audit/repositories/audit.repository.js +72 -0
- package/dist/foundations/audit/repositories/audit.repository.js.map +1 -0
- package/dist/foundations/audit/serialisers/audit.serialiser.d.ts +14 -0
- package/dist/foundations/audit/serialisers/audit.serialiser.d.ts.map +1 -0
- package/dist/foundations/audit/serialisers/audit.serialiser.js +52 -0
- package/dist/foundations/audit/serialisers/audit.serialiser.js.map +1 -0
- package/dist/foundations/audit/services/audit.service.d.ts +18 -0
- package/dist/foundations/audit/services/audit.service.d.ts.map +1 -0
- package/dist/foundations/audit/services/audit.service.js +54 -0
- package/dist/foundations/audit/services/audit.service.js.map +1 -0
- package/dist/foundations/auth/auth.module.d.ts +5 -0
- package/dist/foundations/auth/auth.module.d.ts.map +1 -0
- package/dist/foundations/auth/auth.module.js +36 -0
- package/dist/foundations/auth/auth.module.js.map +1 -0
- package/dist/foundations/auth/controllers/auth.controller.d.ts +20 -0
- package/dist/foundations/auth/controllers/auth.controller.d.ts.map +1 -0
- package/dist/foundations/auth/controllers/auth.controller.js +148 -0
- package/dist/foundations/auth/controllers/auth.controller.js.map +1 -0
- package/dist/foundations/auth/dtos/auth.post.forgot.dto.d.ts +11 -0
- package/dist/foundations/auth/dtos/auth.post.forgot.dto.d.ts.map +1 -0
- package/dist/foundations/auth/dtos/auth.post.forgot.dto.js +46 -0
- package/dist/foundations/auth/dtos/auth.post.forgot.dto.js.map +1 -0
- package/dist/foundations/auth/dtos/auth.post.login.dto.d.ts +12 -0
- package/dist/foundations/auth/dtos/auth.post.login.dto.d.ts.map +1 -0
- package/dist/foundations/auth/dtos/auth.post.login.dto.js +53 -0
- package/dist/foundations/auth/dtos/auth.post.login.dto.js.map +1 -0
- package/dist/foundations/auth/dtos/auth.post.register.dto.d.ts +14 -0
- package/dist/foundations/auth/dtos/auth.post.register.dto.d.ts.map +1 -0
- package/dist/foundations/auth/dtos/auth.post.register.dto.js +60 -0
- package/dist/foundations/auth/dtos/auth.post.register.dto.js.map +1 -0
- package/dist/foundations/auth/dtos/auth.post.resetpassword.dto.d.ts +11 -0
- package/dist/foundations/auth/dtos/auth.post.resetpassword.dto.d.ts.map +1 -0
- package/dist/foundations/auth/dtos/auth.post.resetpassword.dto.js +46 -0
- package/dist/foundations/auth/dtos/auth.post.resetpassword.dto.js.map +1 -0
- package/dist/foundations/auth/entities/auth.code.entity.d.ts +7 -0
- package/dist/foundations/auth/entities/auth.code.entity.d.ts.map +1 -0
- package/dist/foundations/auth/entities/auth.code.entity.js +3 -0
- package/dist/foundations/auth/entities/auth.code.entity.js.map +1 -0
- package/dist/foundations/auth/entities/auth.code.map.d.ts +8 -0
- package/dist/foundations/auth/entities/auth.code.map.d.ts.map +1 -0
- package/dist/foundations/auth/entities/auth.code.map.js +13 -0
- package/dist/foundations/auth/entities/auth.code.map.js.map +1 -0
- package/dist/foundations/auth/entities/auth.code.meta.d.ts +3 -0
- package/dist/foundations/auth/entities/auth.code.meta.d.ts.map +1 -0
- package/dist/foundations/auth/entities/auth.code.meta.js +10 -0
- package/dist/foundations/auth/entities/auth.code.meta.js.map +1 -0
- package/dist/foundations/auth/entities/auth.code.model.d.ts +4 -0
- package/dist/foundations/auth/entities/auth.code.model.d.ts.map +1 -0
- package/dist/foundations/auth/entities/auth.code.model.js +13 -0
- package/dist/foundations/auth/entities/auth.code.model.js.map +1 -0
- package/dist/foundations/auth/entities/auth.entity.d.ts +8 -0
- package/dist/foundations/auth/entities/auth.entity.d.ts.map +1 -0
- package/dist/foundations/auth/entities/auth.entity.js +3 -0
- package/dist/foundations/auth/entities/auth.entity.js.map +1 -0
- package/dist/foundations/auth/entities/auth.map.d.ts +8 -0
- package/dist/foundations/auth/entities/auth.map.d.ts.map +1 -0
- package/dist/foundations/auth/entities/auth.map.js +14 -0
- package/dist/foundations/auth/entities/auth.map.js.map +1 -0
- package/dist/foundations/auth/entities/auth.meta.d.ts +3 -0
- package/dist/foundations/auth/entities/auth.meta.d.ts.map +1 -0
- package/dist/foundations/auth/entities/auth.meta.js +10 -0
- package/dist/foundations/auth/entities/auth.meta.js.map +1 -0
- package/dist/foundations/auth/entities/auth.model.d.ts +4 -0
- package/dist/foundations/auth/entities/auth.model.d.ts.map +1 -0
- package/dist/foundations/auth/entities/auth.model.js +15 -0
- package/dist/foundations/auth/entities/auth.model.js.map +1 -0
- package/dist/foundations/auth/index.d.ts +2 -0
- package/dist/foundations/auth/index.d.ts.map +1 -0
- package/dist/foundations/auth/index.js +6 -0
- package/dist/foundations/auth/index.js.map +1 -0
- package/dist/foundations/auth/repositories/auth.repository.d.ts +75 -0
- package/dist/foundations/auth/repositories/auth.repository.d.ts.map +1 -0
- package/dist/foundations/auth/repositories/auth.repository.js +581 -0
- package/dist/foundations/auth/repositories/auth.repository.js.map +1 -0
- package/dist/foundations/auth/serialisers/auth.serialiser.d.ts +13 -0
- package/dist/foundations/auth/serialisers/auth.serialiser.d.ts.map +1 -0
- package/dist/foundations/auth/serialisers/auth.serialiser.js +48 -0
- package/dist/foundations/auth/serialisers/auth.serialiser.js.map +1 -0
- package/dist/foundations/auth/services/auth.service.d.ts +67 -0
- package/dist/foundations/auth/services/auth.service.d.ts.map +1 -0
- package/dist/foundations/auth/services/auth.service.js +260 -0
- package/dist/foundations/auth/services/auth.service.js.map +1 -0
- package/dist/foundations/chunk/chunk.module.d.ts +12 -0
- package/dist/foundations/chunk/chunk.module.d.ts.map +1 -0
- package/dist/foundations/chunk/chunk.module.js +46 -0
- package/dist/foundations/chunk/chunk.module.js.map +1 -0
- package/dist/foundations/chunk/controllers/chunk.controller.d.ts +7 -0
- package/dist/foundations/chunk/controllers/chunk.controller.d.ts.map +1 -0
- package/dist/foundations/chunk/controllers/chunk.controller.js +41 -0
- package/dist/foundations/chunk/controllers/chunk.controller.js.map +1 -0
- package/dist/foundations/chunk/entities/chunk.entity.d.ts +12 -0
- package/dist/foundations/chunk/entities/chunk.entity.d.ts.map +1 -0
- package/dist/foundations/chunk/entities/chunk.entity.js +3 -0
- package/dist/foundations/chunk/entities/chunk.entity.js.map +1 -0
- package/dist/foundations/chunk/entities/chunk.map.d.ts +8 -0
- package/dist/foundations/chunk/entities/chunk.map.d.ts.map +1 -0
- package/dist/foundations/chunk/entities/chunk.map.js +31 -0
- package/dist/foundations/chunk/entities/chunk.map.js.map +1 -0
- package/dist/foundations/chunk/entities/chunk.meta.d.ts +3 -0
- package/dist/foundations/chunk/entities/chunk.meta.d.ts.map +1 -0
- package/dist/foundations/chunk/entities/chunk.meta.js +10 -0
- package/dist/foundations/chunk/entities/chunk.meta.js.map +1 -0
- package/dist/foundations/chunk/entities/chunk.model.d.ts +4 -0
- package/dist/foundations/chunk/entities/chunk.model.d.ts.map +1 -0
- package/dist/foundations/chunk/entities/chunk.model.js +13 -0
- package/dist/foundations/chunk/entities/chunk.model.js.map +1 -0
- package/dist/foundations/chunk/index.d.ts +7 -0
- package/dist/foundations/chunk/index.d.ts.map +1 -0
- package/dist/foundations/chunk/index.js +14 -0
- package/dist/foundations/chunk/index.js.map +1 -0
- package/dist/foundations/chunk/processors/chunk.processor.d.ts +21 -0
- package/dist/foundations/chunk/processors/chunk.processor.d.ts.map +1 -0
- package/dist/foundations/chunk/processors/chunk.processor.js +83 -0
- package/dist/foundations/chunk/processors/chunk.processor.js.map +1 -0
- package/dist/foundations/chunk/repositories/chunk.repository.d.ts +69 -0
- package/dist/foundations/chunk/repositories/chunk.repository.d.ts.map +1 -0
- package/dist/foundations/chunk/repositories/chunk.repository.js +259 -0
- package/dist/foundations/chunk/repositories/chunk.repository.js.map +1 -0
- package/dist/foundations/chunk/serialisers/chunk.serialiser.d.ts +14 -0
- package/dist/foundations/chunk/serialisers/chunk.serialiser.d.ts.map +1 -0
- package/dist/foundations/chunk/serialisers/chunk.serialiser.js +54 -0
- package/dist/foundations/chunk/serialisers/chunk.serialiser.js.map +1 -0
- package/dist/foundations/chunk/services/chunk.service.d.ts +61 -0
- package/dist/foundations/chunk/services/chunk.service.d.ts.map +1 -0
- package/dist/foundations/chunk/services/chunk.service.js +282 -0
- package/dist/foundations/chunk/services/chunk.service.js.map +1 -0
- package/dist/foundations/chunker/chunker.module.d.ts +3 -0
- package/dist/foundations/chunker/chunker.module.d.ts.map +1 -0
- package/dist/foundations/chunker/chunker.module.js +38 -0
- package/dist/foundations/chunker/chunker.module.js.map +1 -0
- package/dist/foundations/chunker/constants/file.types.d.ts +3 -0
- package/dist/foundations/chunker/constants/file.types.d.ts.map +1 -0
- package/dist/foundations/chunker/constants/file.types.js +9 -0
- package/dist/foundations/chunker/constants/file.types.js.map +1 -0
- package/dist/foundations/chunker/index.d.ts +4 -0
- package/dist/foundations/chunker/index.d.ts.map +1 -0
- package/dist/foundations/chunker/index.js +20 -0
- package/dist/foundations/chunker/index.js.map +1 -0
- package/dist/foundations/chunker/loaders/json.loader.d.ts +23 -0
- package/dist/foundations/chunker/loaders/json.loader.d.ts.map +1 -0
- package/dist/foundations/chunker/loaders/json.loader.js +113 -0
- package/dist/foundations/chunker/loaders/json.loader.js.map +1 -0
- package/dist/foundations/chunker/loaders/text.loader.d.ts +12 -0
- package/dist/foundations/chunker/loaders/text.loader.d.ts.map +1 -0
- package/dist/foundations/chunker/loaders/text.loader.js +56 -0
- package/dist/foundations/chunker/loaders/text.loader.js.map +1 -0
- package/dist/foundations/chunker/services/chunker.service.d.ts +36 -0
- package/dist/foundations/chunker/services/chunker.service.d.ts.map +1 -0
- package/dist/foundations/chunker/services/chunker.service.js +371 -0
- package/dist/foundations/chunker/services/chunker.service.js.map +1 -0
- package/dist/foundations/chunker/services/types/docx.service.d.ts +26 -0
- package/dist/foundations/chunker/services/types/docx.service.d.ts.map +1 -0
- package/dist/foundations/chunker/services/types/docx.service.js +501 -0
- package/dist/foundations/chunker/services/types/docx.service.js.map +1 -0
- package/dist/foundations/chunker/services/types/imageextractor.service.d.ts +16 -0
- package/dist/foundations/chunker/services/types/imageextractor.service.d.ts.map +1 -0
- package/dist/foundations/chunker/services/types/imageextractor.service.js +196 -0
- package/dist/foundations/chunker/services/types/imageextractor.service.js.map +1 -0
- package/dist/foundations/chunker/services/types/pdf/extractors/layout.extractor.d.ts +14 -0
- package/dist/foundations/chunker/services/types/pdf/extractors/layout.extractor.d.ts.map +1 -0
- package/dist/foundations/chunker/services/types/pdf/extractors/layout.extractor.js +198 -0
- package/dist/foundations/chunker/services/types/pdf/extractors/layout.extractor.js.map +1 -0
- package/dist/foundations/chunker/services/types/pdf/extractors/table.extractor.d.ts +27 -0
- package/dist/foundations/chunker/services/types/pdf/extractors/table.extractor.d.ts.map +1 -0
- package/dist/foundations/chunker/services/types/pdf/extractors/table.extractor.js +396 -0
- package/dist/foundations/chunker/services/types/pdf/extractors/table.extractor.js.map +1 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-content.interface.d.ts +89 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-content.interface.d.ts.map +1 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-content.interface.js +3 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-content.interface.js.map +1 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-element.interface.d.ts +95 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-element.interface.d.ts.map +1 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-element.interface.js +3 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-element.interface.js.map +1 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-layout.interface.d.ts +86 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-layout.interface.d.ts.map +1 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-layout.interface.js +3 -0
- package/dist/foundations/chunker/services/types/pdf/interfaces/pdf-layout.interface.js.map +1 -0
- package/dist/foundations/chunker/services/types/pdf.service.d.ts +64 -0
- package/dist/foundations/chunker/services/types/pdf.service.d.ts.map +1 -0
- package/dist/foundations/chunker/services/types/pdf.service.js +1329 -0
- package/dist/foundations/chunker/services/types/pdf.service.js.map +1 -0
- package/dist/foundations/chunker/services/types/pptx.service.d.ts +11 -0
- package/dist/foundations/chunker/services/types/pptx.service.d.ts.map +1 -0
- package/dist/foundations/chunker/services/types/pptx.service.js +161 -0
- package/dist/foundations/chunker/services/types/pptx.service.js.map +1 -0
- package/dist/foundations/chunker/services/types/semanticsplitter.service.d.ts +40 -0
- package/dist/foundations/chunker/services/types/semanticsplitter.service.d.ts.map +1 -0
- package/dist/foundations/chunker/services/types/semanticsplitter.service.js +634 -0
- package/dist/foundations/chunker/services/types/semanticsplitter.service.js.map +1 -0
- package/dist/foundations/chunker/services/types/xlsx.service.d.ts +22 -0
- package/dist/foundations/chunker/services/types/xlsx.service.d.ts.map +1 -0
- package/dist/foundations/chunker/services/types/xlsx.service.js +284 -0
- package/dist/foundations/chunker/services/types/xlsx.service.js.map +1 -0
- package/dist/foundations/chunker/utils/file.downloader.d.ts +9 -0
- package/dist/foundations/chunker/utils/file.downloader.d.ts.map +1 -0
- package/dist/foundations/chunker/utils/file.downloader.js +58 -0
- package/dist/foundations/chunker/utils/file.downloader.js.map +1 -0
- package/dist/foundations/company/company.module.d.ts +5 -0
- package/dist/foundations/company/company.module.d.ts.map +1 -0
- package/dist/foundations/company/company.module.js +37 -0
- package/dist/foundations/company/company.module.js.map +1 -0
- package/dist/foundations/company/controllers/company.controller.d.ts +21 -0
- package/dist/foundations/company/controllers/company.controller.d.ts.map +1 -0
- package/dist/foundations/company/controllers/company.controller.js +164 -0
- package/dist/foundations/company/controllers/company.controller.js.map +1 -0
- package/dist/foundations/company/dtos/company.configurations.put.dto.d.ts +13 -0
- package/dist/foundations/company/dtos/company.configurations.put.dto.d.ts.map +1 -0
- package/dist/foundations/company/dtos/company.configurations.put.dto.js +54 -0
- package/dist/foundations/company/dtos/company.configurations.put.dto.js.map +1 -0
- package/dist/foundations/company/dtos/company.dto.d.ts +11 -0
- package/dist/foundations/company/dtos/company.dto.d.ts.map +1 -0
- package/dist/foundations/company/dtos/company.dto.js +45 -0
- package/dist/foundations/company/dtos/company.dto.js.map +1 -0
- package/dist/foundations/company/dtos/company.license.put.dto.d.ts +14 -0
- package/dist/foundations/company/dtos/company.license.put.dto.d.ts.map +1 -0
- package/dist/foundations/company/dtos/company.license.put.dto.js +59 -0
- package/dist/foundations/company/dtos/company.license.put.dto.js.map +1 -0
- package/dist/foundations/company/dtos/company.post.dto.d.ts +22 -0
- package/dist/foundations/company/dtos/company.post.dto.d.ts.map +1 -0
- package/dist/foundations/company/dtos/company.post.dto.js +87 -0
- package/dist/foundations/company/dtos/company.post.dto.js.map +1 -0
- package/dist/foundations/company/dtos/company.put.dto.d.ts +23 -0
- package/dist/foundations/company/dtos/company.put.dto.d.ts.map +1 -0
- package/dist/foundations/company/dtos/company.put.dto.js +92 -0
- package/dist/foundations/company/dtos/company.put.dto.js.map +1 -0
- package/dist/foundations/company/entities/company.entity.d.ts +17 -0
- package/dist/foundations/company/entities/company.entity.d.ts.map +1 -0
- package/dist/foundations/company/entities/company.entity.js +3 -0
- package/dist/foundations/company/entities/company.entity.js.map +1 -0
- package/dist/foundations/company/entities/company.map.d.ts +8 -0
- package/dist/foundations/company/entities/company.map.d.ts.map +1 -0
- package/dist/foundations/company/entities/company.map.js +22 -0
- package/dist/foundations/company/entities/company.map.js.map +1 -0
- package/dist/foundations/company/entities/company.meta.d.ts +3 -0
- package/dist/foundations/company/entities/company.meta.d.ts.map +1 -0
- package/dist/foundations/company/entities/company.meta.js +10 -0
- package/dist/foundations/company/entities/company.meta.js.map +1 -0
- package/dist/foundations/company/entities/company.model.d.ts +4 -0
- package/dist/foundations/company/entities/company.model.d.ts.map +1 -0
- package/dist/foundations/company/entities/company.model.js +17 -0
- package/dist/foundations/company/entities/company.model.js.map +1 -0
- package/dist/foundations/company/index.d.ts +7 -0
- package/dist/foundations/company/index.d.ts.map +1 -0
- package/dist/foundations/company/index.js +14 -0
- package/dist/foundations/company/index.js.map +1 -0
- package/dist/foundations/company/processors/company.processor.d.ts +23 -0
- package/dist/foundations/company/processors/company.processor.d.ts.map +1 -0
- package/dist/foundations/company/processors/company.processor.js +79 -0
- package/dist/foundations/company/processors/company.processor.js.map +1 -0
- package/dist/foundations/company/repositories/company.repository.d.ts +61 -0
- package/dist/foundations/company/repositories/company.repository.d.ts.map +1 -0
- package/dist/foundations/company/repositories/company.repository.js +295 -0
- package/dist/foundations/company/repositories/company.repository.js.map +1 -0
- package/dist/foundations/company/serialisers/company.serialiser.d.ts +14 -0
- package/dist/foundations/company/serialisers/company.serialiser.d.ts.map +1 -0
- package/dist/foundations/company/serialisers/company.serialiser.js +66 -0
- package/dist/foundations/company/serialisers/company.serialiser.js.map +1 -0
- package/dist/foundations/company/services/company.service.d.ts +65 -0
- package/dist/foundations/company/services/company.service.d.ts.map +1 -0
- package/dist/foundations/company/services/company.service.js +210 -0
- package/dist/foundations/company/services/company.service.js.map +1 -0
- package/dist/foundations/content/content.module.d.ts +5 -0
- package/dist/foundations/content/content.module.d.ts.map +1 -0
- package/dist/foundations/content/content.module.js +33 -0
- package/dist/foundations/content/content.module.js.map +1 -0
- package/dist/foundations/content/controllers/content.controller.d.ts +17 -0
- package/dist/foundations/content/controllers/content.controller.d.ts.map +1 -0
- package/dist/foundations/content/controllers/content.controller.js +129 -0
- package/dist/foundations/content/controllers/content.controller.js.map +1 -0
- package/dist/foundations/content/dtos/content.dto.d.ts +11 -0
- package/dist/foundations/content/dtos/content.dto.d.ts.map +1 -0
- package/dist/foundations/content/dtos/content.dto.js +45 -0
- package/dist/foundations/content/dtos/content.dto.js.map +1 -0
- package/dist/foundations/content/entities/content.entity.d.ts +13 -0
- package/dist/foundations/content/entities/content.entity.d.ts.map +1 -0
- package/dist/foundations/content/entities/content.entity.js +3 -0
- package/dist/foundations/content/entities/content.entity.js.map +1 -0
- package/dist/foundations/content/entities/content.map.d.ts +8 -0
- package/dist/foundations/content/entities/content.map.d.ts.map +1 -0
- package/dist/foundations/content/entities/content.map.js +19 -0
- package/dist/foundations/content/entities/content.map.js.map +1 -0
- package/dist/foundations/content/entities/content.meta.d.ts +3 -0
- package/dist/foundations/content/entities/content.meta.d.ts.map +1 -0
- package/dist/foundations/content/entities/content.meta.js +10 -0
- package/dist/foundations/content/entities/content.meta.js.map +1 -0
- package/dist/foundations/content/entities/content.model.d.ts +4 -0
- package/dist/foundations/content/entities/content.model.d.ts.map +1 -0
- package/dist/foundations/content/entities/content.model.js +16 -0
- package/dist/foundations/content/entities/content.model.js.map +1 -0
- package/dist/foundations/content/index.d.ts +8 -0
- package/dist/foundations/content/index.d.ts.map +1 -0
- package/dist/foundations/content/index.js +16 -0
- package/dist/foundations/content/index.js.map +1 -0
- package/dist/foundations/content/repositories/content.repository.d.ts +33 -0
- package/dist/foundations/content/repositories/content.repository.d.ts.map +1 -0
- package/dist/foundations/content/repositories/content.repository.js +100 -0
- package/dist/foundations/content/repositories/content.repository.js.map +1 -0
- package/dist/foundations/content/serialisers/content.serialiser.d.ts +12 -0
- package/dist/foundations/content/serialisers/content.serialiser.d.ts.map +1 -0
- package/dist/foundations/content/serialisers/content.serialiser.js +53 -0
- package/dist/foundations/content/serialisers/content.serialiser.js.map +1 -0
- package/dist/foundations/content/services/content.cypher.service.d.ts +20 -0
- package/dist/foundations/content/services/content.cypher.service.d.ts.map +1 -0
- package/dist/foundations/content/services/content.cypher.service.js +65 -0
- package/dist/foundations/content/services/content.cypher.service.js.map +1 -0
- package/dist/foundations/content/services/content.service.d.ts +25 -0
- package/dist/foundations/content/services/content.service.d.ts.map +1 -0
- package/dist/foundations/content/services/content.service.js +54 -0
- package/dist/foundations/content/services/content.service.js.map +1 -0
- package/dist/foundations/feature/controllers/feature.controller.d.ts +7 -0
- package/dist/foundations/feature/controllers/feature.controller.d.ts.map +1 -0
- package/dist/foundations/feature/controllers/feature.controller.js +47 -0
- package/dist/foundations/feature/controllers/feature.controller.js.map +1 -0
- package/dist/foundations/feature/dtos/feature.dto.d.ts +11 -0
- package/dist/foundations/feature/dtos/feature.dto.d.ts.map +1 -0
- package/dist/foundations/feature/dtos/feature.dto.js +45 -0
- package/dist/foundations/feature/dtos/feature.dto.js.map +1 -0
- package/dist/foundations/feature/entities/feature.entity.d.ts +8 -0
- package/dist/foundations/feature/entities/feature.entity.d.ts.map +1 -0
- package/dist/foundations/feature/entities/feature.entity.js +3 -0
- package/dist/foundations/feature/entities/feature.entity.js.map +1 -0
- package/dist/foundations/feature/entities/feature.map.d.ts +8 -0
- package/dist/foundations/feature/entities/feature.map.d.ts.map +1 -0
- package/dist/foundations/feature/entities/feature.map.js +14 -0
- package/dist/foundations/feature/entities/feature.map.js.map +1 -0
- package/dist/foundations/feature/entities/feature.meta.d.ts +3 -0
- package/dist/foundations/feature/entities/feature.meta.d.ts.map +1 -0
- package/dist/foundations/feature/entities/feature.meta.js +10 -0
- package/dist/foundations/feature/entities/feature.meta.js.map +1 -0
- package/dist/foundations/feature/entities/feature.model.d.ts +4 -0
- package/dist/foundations/feature/entities/feature.model.d.ts.map +1 -0
- package/dist/foundations/feature/entities/feature.model.js +15 -0
- package/dist/foundations/feature/entities/feature.model.js.map +1 -0
- package/dist/foundations/feature/feature.module.d.ts +5 -0
- package/dist/foundations/feature/feature.module.d.ts.map +1 -0
- package/dist/foundations/feature/feature.module.js +30 -0
- package/dist/foundations/feature/feature.module.js.map +1 -0
- package/dist/foundations/feature/index.d.ts +2 -0
- package/dist/foundations/feature/index.d.ts.map +1 -0
- package/dist/foundations/feature/index.js +6 -0
- package/dist/foundations/feature/index.js.map +1 -0
- package/dist/foundations/feature/repositories/feature.repository.d.ts +19 -0
- package/dist/foundations/feature/repositories/feature.repository.d.ts.map +1 -0
- package/dist/foundations/feature/repositories/feature.repository.js +64 -0
- package/dist/foundations/feature/repositories/feature.repository.js.map +1 -0
- package/dist/foundations/feature/serialisers/feature.serialiser.d.ts +12 -0
- package/dist/foundations/feature/serialisers/feature.serialiser.d.ts.map +1 -0
- package/dist/foundations/feature/serialisers/feature.serialiser.js +45 -0
- package/dist/foundations/feature/serialisers/feature.serialiser.js.map +1 -0
- package/dist/foundations/feature/services/feature.service.d.ts +16 -0
- package/dist/foundations/feature/services/feature.service.d.ts.map +1 -0
- package/dist/foundations/feature/services/feature.service.js +42 -0
- package/dist/foundations/feature/services/feature.service.js.map +1 -0
- package/dist/foundations/foundations.modules.d.ts +28 -0
- package/dist/foundations/foundations.modules.d.ts.map +1 -0
- package/dist/foundations/foundations.modules.js +85 -0
- package/dist/foundations/foundations.modules.js.map +1 -0
- package/dist/foundations/index.d.ts +22 -0
- package/dist/foundations/index.d.ts.map +1 -0
- package/dist/foundations/index.js +40 -0
- package/dist/foundations/index.js.map +1 -0
- package/dist/foundations/keyconcept/entities/key.concept.entity.d.ts +8 -0
- package/dist/foundations/keyconcept/entities/key.concept.entity.d.ts.map +1 -0
- package/dist/foundations/keyconcept/entities/key.concept.entity.js +3 -0
- package/dist/foundations/keyconcept/entities/key.concept.entity.js.map +1 -0
- package/dist/foundations/keyconcept/entities/key.concept.map.d.ts +8 -0
- package/dist/foundations/keyconcept/entities/key.concept.map.d.ts.map +1 -0
- package/dist/foundations/keyconcept/entities/key.concept.map.js +14 -0
- package/dist/foundations/keyconcept/entities/key.concept.map.js.map +1 -0
- package/dist/foundations/keyconcept/entities/key.concept.meta.d.ts +3 -0
- package/dist/foundations/keyconcept/entities/key.concept.meta.d.ts.map +1 -0
- package/dist/foundations/keyconcept/entities/key.concept.meta.js +10 -0
- package/dist/foundations/keyconcept/entities/key.concept.meta.js.map +1 -0
- package/dist/foundations/keyconcept/entities/key.concept.model.d.ts +4 -0
- package/dist/foundations/keyconcept/entities/key.concept.model.d.ts.map +1 -0
- package/dist/foundations/keyconcept/entities/key.concept.model.js +14 -0
- package/dist/foundations/keyconcept/entities/key.concept.model.js.map +1 -0
- package/dist/foundations/keyconcept/index.d.ts +4 -0
- package/dist/foundations/keyconcept/index.d.ts.map +1 -0
- package/dist/foundations/keyconcept/index.js +8 -0
- package/dist/foundations/keyconcept/index.js.map +1 -0
- package/dist/foundations/keyconcept/keyconcept.module.d.ts +5 -0
- package/dist/foundations/keyconcept/keyconcept.module.d.ts.map +1 -0
- package/dist/foundations/keyconcept/keyconcept.module.js +29 -0
- package/dist/foundations/keyconcept/keyconcept.module.js.map +1 -0
- package/dist/foundations/keyconcept/repositories/keyconcept.repository.d.ts +54 -0
- package/dist/foundations/keyconcept/repositories/keyconcept.repository.d.ts.map +1 -0
- package/dist/foundations/keyconcept/repositories/keyconcept.repository.js +290 -0
- package/dist/foundations/keyconcept/repositories/keyconcept.repository.js.map +1 -0
- package/dist/foundations/keyconcept/services/keyconcept.service.d.ts +26 -0
- package/dist/foundations/keyconcept/services/keyconcept.service.d.ts.map +1 -0
- package/dist/foundations/keyconcept/services/keyconcept.service.js +68 -0
- package/dist/foundations/keyconcept/services/keyconcept.service.js.map +1 -0
- package/dist/foundations/module/dtos/module.dto.d.ts +11 -0
- package/dist/foundations/module/dtos/module.dto.d.ts.map +1 -0
- package/dist/foundations/module/dtos/module.dto.js +45 -0
- package/dist/foundations/module/dtos/module.dto.js.map +1 -0
- package/dist/foundations/module/entities/module.entity.d.ts +12 -0
- package/dist/foundations/module/entities/module.entity.d.ts.map +1 -0
- package/dist/foundations/module/entities/module.entity.js +3 -0
- package/dist/foundations/module/entities/module.entity.js.map +1 -0
- package/dist/foundations/module/entities/module.map.d.ts +8 -0
- package/dist/foundations/module/entities/module.map.d.ts.map +1 -0
- package/dist/foundations/module/entities/module.map.js +19 -0
- package/dist/foundations/module/entities/module.map.js.map +1 -0
- package/dist/foundations/module/entities/module.meta.d.ts +3 -0
- package/dist/foundations/module/entities/module.meta.d.ts.map +1 -0
- package/dist/foundations/module/entities/module.meta.js +10 -0
- package/dist/foundations/module/entities/module.meta.js.map +1 -0
- package/dist/foundations/module/entities/module.model.d.ts +4 -0
- package/dist/foundations/module/entities/module.model.d.ts.map +1 -0
- package/dist/foundations/module/entities/module.model.js +13 -0
- package/dist/foundations/module/entities/module.model.js.map +1 -0
- package/dist/foundations/module/enums/module.id.d.ts +11 -0
- package/dist/foundations/module/enums/module.id.d.ts.map +1 -0
- package/dist/foundations/module/enums/module.id.js +57 -0
- package/dist/foundations/module/enums/module.id.js.map +1 -0
- package/dist/foundations/module/index.d.ts +6 -0
- package/dist/foundations/module/index.d.ts.map +1 -0
- package/dist/foundations/module/index.js +12 -0
- package/dist/foundations/module/index.js.map +1 -0
- package/dist/foundations/module/module.module.d.ts +5 -0
- package/dist/foundations/module/module.module.d.ts.map +1 -0
- package/dist/foundations/module/module.module.js +29 -0
- package/dist/foundations/module/module.module.js.map +1 -0
- package/dist/foundations/module/repositories/module.repository.d.ts +10 -0
- package/dist/foundations/module/repositories/module.repository.d.ts.map +1 -0
- package/dist/foundations/module/repositories/module.repository.js +33 -0
- package/dist/foundations/module/repositories/module.repository.js.map +1 -0
- package/dist/foundations/module/serialisers/module.serialiser.d.ts +12 -0
- package/dist/foundations/module/serialisers/module.serialiser.d.ts.map +1 -0
- package/dist/foundations/module/serialisers/module.serialiser.js +46 -0
- package/dist/foundations/module/serialisers/module.serialiser.js.map +1 -0
- package/dist/foundations/notification/controllers/notification.controller.d.ts +11 -0
- package/dist/foundations/notification/controllers/notification.controller.d.ts.map +1 -0
- package/dist/foundations/notification/controllers/notification.controller.js +86 -0
- package/dist/foundations/notification/controllers/notification.controller.js.map +1 -0
- package/dist/foundations/notification/dtos/notification.patch.dto.d.ts +15 -0
- package/dist/foundations/notification/dtos/notification.patch.dto.d.ts.map +1 -0
- package/dist/foundations/notification/dtos/notification.patch.dto.js +59 -0
- package/dist/foundations/notification/dtos/notification.patch.dto.js.map +1 -0
- package/dist/foundations/notification/entities/notification.entity.d.ts +8 -0
- package/dist/foundations/notification/entities/notification.entity.d.ts.map +1 -0
- package/dist/foundations/notification/entities/notification.entity.js +3 -0
- package/dist/foundations/notification/entities/notification.entity.js.map +1 -0
- package/dist/foundations/notification/entities/notification.map.d.ts +8 -0
- package/dist/foundations/notification/entities/notification.map.d.ts.map +1 -0
- package/dist/foundations/notification/entities/notification.map.js +14 -0
- package/dist/foundations/notification/entities/notification.map.js.map +1 -0
- package/dist/foundations/notification/entities/notification.meta.d.ts +3 -0
- package/dist/foundations/notification/entities/notification.meta.d.ts.map +1 -0
- package/dist/foundations/notification/entities/notification.meta.js +10 -0
- package/dist/foundations/notification/entities/notification.meta.js.map +1 -0
- package/dist/foundations/notification/entities/notification.model.d.ts +4 -0
- package/dist/foundations/notification/entities/notification.model.d.ts.map +1 -0
- package/dist/foundations/notification/entities/notification.model.js +15 -0
- package/dist/foundations/notification/entities/notification.model.js.map +1 -0
- package/dist/foundations/notification/index.d.ts +2 -0
- package/dist/foundations/notification/index.d.ts.map +1 -0
- package/dist/foundations/notification/index.js +6 -0
- package/dist/foundations/notification/index.js.map +1 -0
- package/dist/foundations/notification/interfaces/notification.service.interface.d.ts +4 -0
- package/dist/foundations/notification/interfaces/notification.service.interface.d.ts.map +1 -0
- package/dist/foundations/notification/interfaces/notification.service.interface.js +3 -0
- package/dist/foundations/notification/interfaces/notification.service.interface.js.map +1 -0
- package/dist/foundations/notification/notification.module.d.ts +5 -0
- package/dist/foundations/notification/notification.module.d.ts.map +1 -0
- package/dist/foundations/notification/notification.module.js +31 -0
- package/dist/foundations/notification/notification.module.js.map +1 -0
- package/dist/foundations/notification/repositories/notification.repository.d.ts +31 -0
- package/dist/foundations/notification/repositories/notification.repository.d.ts.map +1 -0
- package/dist/foundations/notification/repositories/notification.repository.js +154 -0
- package/dist/foundations/notification/repositories/notification.repository.js.map +1 -0
- package/dist/foundations/notification/serialisers/notifications.serialiser.d.ts +12 -0
- package/dist/foundations/notification/serialisers/notifications.serialiser.d.ts.map +1 -0
- package/dist/foundations/notification/serialisers/notifications.serialiser.js +45 -0
- package/dist/foundations/notification/serialisers/notifications.serialiser.js.map +1 -0
- package/dist/foundations/notification/services/notification.service.d.ts +24 -0
- package/dist/foundations/notification/services/notification.service.d.ts.map +1 -0
- package/dist/foundations/notification/services/notification.service.js +47 -0
- package/dist/foundations/notification/services/notification.service.js.map +1 -0
- package/dist/foundations/push/controllers/push.controller.d.ts +8 -0
- package/dist/foundations/push/controllers/push.controller.d.ts.map +1 -0
- package/dist/foundations/push/controllers/push.controller.js +41 -0
- package/dist/foundations/push/controllers/push.controller.js.map +1 -0
- package/dist/foundations/push/dtos/subscription.push.dto.d.ts +8 -0
- package/dist/foundations/push/dtos/subscription.push.dto.d.ts.map +1 -0
- package/dist/foundations/push/dtos/subscription.push.dto.js +3 -0
- package/dist/foundations/push/dtos/subscription.push.dto.js.map +1 -0
- package/dist/foundations/push/entities/push.entity.d.ts +9 -0
- package/dist/foundations/push/entities/push.entity.d.ts.map +1 -0
- package/dist/foundations/push/entities/push.entity.js +3 -0
- package/dist/foundations/push/entities/push.entity.js.map +1 -0
- package/dist/foundations/push/entities/push.map.d.ts +8 -0
- package/dist/foundations/push/entities/push.map.d.ts.map +1 -0
- package/dist/foundations/push/entities/push.map.js +21 -0
- package/dist/foundations/push/entities/push.map.js.map +1 -0
- package/dist/foundations/push/entities/push.meta.d.ts +3 -0
- package/dist/foundations/push/entities/push.meta.d.ts.map +1 -0
- package/dist/foundations/push/entities/push.meta.js +10 -0
- package/dist/foundations/push/entities/push.meta.js.map +1 -0
- package/dist/foundations/push/entities/push.model.d.ts +4 -0
- package/dist/foundations/push/entities/push.model.d.ts.map +1 -0
- package/dist/foundations/push/entities/push.model.js +11 -0
- package/dist/foundations/push/entities/push.model.js.map +1 -0
- package/dist/foundations/push/index.d.ts +2 -0
- package/dist/foundations/push/index.d.ts.map +1 -0
- package/dist/foundations/push/index.js +6 -0
- package/dist/foundations/push/index.js.map +1 -0
- package/dist/foundations/push/push.module.d.ts +5 -0
- package/dist/foundations/push/push.module.d.ts.map +1 -0
- package/dist/foundations/push/push.module.js +30 -0
- package/dist/foundations/push/push.module.js.map +1 -0
- package/dist/foundations/push/repositories/push.repository.d.ts +18 -0
- package/dist/foundations/push/repositories/push.repository.d.ts.map +1 -0
- package/dist/foundations/push/repositories/push.repository.js +75 -0
- package/dist/foundations/push/repositories/push.repository.js.map +1 -0
- package/dist/foundations/push/services/push.service.d.ts +21 -0
- package/dist/foundations/push/services/push.service.d.ts.map +1 -0
- package/dist/foundations/push/services/push.service.js +97 -0
- package/dist/foundations/push/services/push.service.js.map +1 -0
- package/dist/foundations/relevancy/index.d.ts +5 -0
- package/dist/foundations/relevancy/index.d.ts.map +1 -0
- package/dist/foundations/relevancy/index.js +8 -0
- package/dist/foundations/relevancy/index.js.map +1 -0
- package/dist/foundations/relevancy/interfaces/relevance.repository.interface.d.ts +17 -0
- package/dist/foundations/relevancy/interfaces/relevance.repository.interface.d.ts.map +1 -0
- package/dist/foundations/relevancy/interfaces/relevance.repository.interface.js +3 -0
- package/dist/foundations/relevancy/interfaces/relevance.repository.interface.js.map +1 -0
- package/dist/foundations/relevancy/interfaces/relevance.service.interface.d.ts +17 -0
- package/dist/foundations/relevancy/interfaces/relevance.service.interface.d.ts.map +1 -0
- package/dist/foundations/relevancy/interfaces/relevance.service.interface.js +3 -0
- package/dist/foundations/relevancy/interfaces/relevance.service.interface.js.map +1 -0
- package/dist/foundations/relevancy/queries/relevance.d.ts +13 -0
- package/dist/foundations/relevancy/queries/relevance.d.ts.map +1 -0
- package/dist/foundations/relevancy/queries/relevance.js +134 -0
- package/dist/foundations/relevancy/queries/relevance.js.map +1 -0
- package/dist/foundations/relevancy/relevancy.module.d.ts +3 -0
- package/dist/foundations/relevancy/relevancy.module.d.ts.map +1 -0
- package/dist/foundations/relevancy/relevancy.module.js +23 -0
- package/dist/foundations/relevancy/relevancy.module.js.map +1 -0
- package/dist/foundations/relevancy/repositories/relevancy.repository.d.ts +31 -0
- package/dist/foundations/relevancy/repositories/relevancy.repository.d.ts.map +1 -0
- package/dist/foundations/relevancy/repositories/relevancy.repository.js +94 -0
- package/dist/foundations/relevancy/repositories/relevancy.repository.js.map +1 -0
- package/dist/foundations/relevancy/services/relevancy.service.d.ts +29 -0
- package/dist/foundations/relevancy/services/relevancy.service.d.ts.map +1 -0
- package/dist/foundations/relevancy/services/relevancy.service.js +66 -0
- package/dist/foundations/relevancy/services/relevancy.service.js.map +1 -0
- package/dist/foundations/role/controllers/role.controller.d.ts +12 -0
- package/dist/foundations/role/controllers/role.controller.d.ts.map +1 -0
- package/dist/foundations/role/controllers/role.controller.js +104 -0
- package/dist/foundations/role/controllers/role.controller.js.map +1 -0
- package/dist/foundations/role/controllers/role.user.controller.d.ts +9 -0
- package/dist/foundations/role/controllers/role.user.controller.d.ts.map +1 -0
- package/dist/foundations/role/controllers/role.user.controller.js +59 -0
- package/dist/foundations/role/controllers/role.user.controller.js.map +1 -0
- package/dist/foundations/role/dtos/role.dto.d.ts +11 -0
- package/dist/foundations/role/dtos/role.dto.d.ts.map +1 -0
- package/dist/foundations/role/dtos/role.dto.js +45 -0
- package/dist/foundations/role/dtos/role.dto.js.map +1 -0
- package/dist/foundations/role/dtos/role.post.dto.d.ts +15 -0
- package/dist/foundations/role/dtos/role.post.dto.d.ts.map +1 -0
- package/dist/foundations/role/dtos/role.post.dto.js +59 -0
- package/dist/foundations/role/dtos/role.post.dto.js.map +1 -0
- package/dist/foundations/role/entities/role.entity.d.ts +9 -0
- package/dist/foundations/role/entities/role.entity.d.ts.map +1 -0
- package/dist/foundations/role/entities/role.entity.js +3 -0
- package/dist/foundations/role/entities/role.entity.js.map +1 -0
- package/dist/foundations/role/entities/role.map.d.ts +8 -0
- package/dist/foundations/role/entities/role.map.d.ts.map +1 -0
- package/dist/foundations/role/entities/role.map.js +15 -0
- package/dist/foundations/role/entities/role.map.js.map +1 -0
- package/dist/foundations/role/entities/role.meta.d.ts +3 -0
- package/dist/foundations/role/entities/role.meta.d.ts.map +1 -0
- package/dist/foundations/role/entities/role.meta.js +10 -0
- package/dist/foundations/role/entities/role.meta.js.map +1 -0
- package/dist/foundations/role/entities/role.model.d.ts +4 -0
- package/dist/foundations/role/entities/role.model.d.ts.map +1 -0
- package/dist/foundations/role/entities/role.model.js +15 -0
- package/dist/foundations/role/entities/role.model.js.map +1 -0
- package/dist/foundations/role/index.d.ts +3 -0
- package/dist/foundations/role/index.d.ts.map +1 -0
- package/dist/foundations/role/index.js +8 -0
- package/dist/foundations/role/index.js.map +1 -0
- package/dist/foundations/role/repositories/role.repository.d.ts +47 -0
- package/dist/foundations/role/repositories/role.repository.d.ts.map +1 -0
- package/dist/foundations/role/repositories/role.repository.js +175 -0
- package/dist/foundations/role/repositories/role.repository.js.map +1 -0
- package/dist/foundations/role/role.module.d.ts +5 -0
- package/dist/foundations/role/role.module.d.ts.map +1 -0
- package/dist/foundations/role/role.module.js +32 -0
- package/dist/foundations/role/role.module.js.map +1 -0
- package/dist/foundations/role/serialisers/role.serialiser.d.ts +12 -0
- package/dist/foundations/role/serialisers/role.serialiser.d.ts.map +1 -0
- package/dist/foundations/role/serialisers/role.serialiser.js +46 -0
- package/dist/foundations/role/serialisers/role.serialiser.js.map +1 -0
- package/dist/foundations/role/services/role.service.d.ts +39 -0
- package/dist/foundations/role/services/role.service.d.ts.map +1 -0
- package/dist/foundations/role/services/role.service.js +88 -0
- package/dist/foundations/role/services/role.service.js.map +1 -0
- package/dist/foundations/s3/controllers/s3.controller.d.ts +9 -0
- package/dist/foundations/s3/controllers/s3.controller.d.ts.map +1 -0
- package/dist/foundations/s3/controllers/s3.controller.js +74 -0
- package/dist/foundations/s3/controllers/s3.controller.js.map +1 -0
- package/dist/foundations/s3/entities/s3.entity.d.ts +9 -0
- package/dist/foundations/s3/entities/s3.entity.d.ts.map +1 -0
- package/dist/foundations/s3/entities/s3.entity.js +3 -0
- package/dist/foundations/s3/entities/s3.entity.js.map +1 -0
- package/dist/foundations/s3/entities/s3.map.d.ts +8 -0
- package/dist/foundations/s3/entities/s3.map.d.ts.map +1 -0
- package/dist/foundations/s3/entities/s3.map.js +16 -0
- package/dist/foundations/s3/entities/s3.map.js.map +1 -0
- package/dist/foundations/s3/entities/s3.meta.d.ts +3 -0
- package/dist/foundations/s3/entities/s3.meta.d.ts.map +1 -0
- package/dist/foundations/s3/entities/s3.meta.js +10 -0
- package/dist/foundations/s3/entities/s3.meta.js.map +1 -0
- package/dist/foundations/s3/entities/s3.model.d.ts +4 -0
- package/dist/foundations/s3/entities/s3.model.d.ts.map +1 -0
- package/dist/foundations/s3/entities/s3.model.js +13 -0
- package/dist/foundations/s3/entities/s3.model.js.map +1 -0
- package/dist/foundations/s3/index.d.ts +3 -0
- package/dist/foundations/s3/index.d.ts.map +1 -0
- package/dist/foundations/s3/index.js +8 -0
- package/dist/foundations/s3/index.js.map +1 -0
- package/dist/foundations/s3/s3.module.d.ts +5 -0
- package/dist/foundations/s3/s3.module.d.ts.map +1 -0
- package/dist/foundations/s3/s3.module.js +29 -0
- package/dist/foundations/s3/s3.module.js.map +1 -0
- package/dist/foundations/s3/serialisers/s3.serialiser.d.ts +12 -0
- package/dist/foundations/s3/serialisers/s3.serialiser.d.ts.map +1 -0
- package/dist/foundations/s3/serialisers/s3.serialiser.js +41 -0
- package/dist/foundations/s3/serialisers/s3.serialiser.js.map +1 -0
- package/dist/foundations/s3/services/s3.service.d.ts +72 -0
- package/dist/foundations/s3/services/s3.service.d.ts.map +1 -0
- package/dist/foundations/s3/services/s3.service.js +468 -0
- package/dist/foundations/s3/services/s3.service.js.map +1 -0
- package/dist/foundations/tokenusage/entities/tokenusage.entity.d.ts +10 -0
- package/dist/foundations/tokenusage/entities/tokenusage.entity.d.ts.map +1 -0
- package/dist/foundations/tokenusage/entities/tokenusage.entity.js +3 -0
- package/dist/foundations/tokenusage/entities/tokenusage.entity.js.map +1 -0
- package/dist/foundations/tokenusage/entities/tokenusage.map.d.ts +8 -0
- package/dist/foundations/tokenusage/entities/tokenusage.map.d.ts.map +1 -0
- package/dist/foundations/tokenusage/entities/tokenusage.map.js +16 -0
- package/dist/foundations/tokenusage/entities/tokenusage.map.js.map +1 -0
- package/dist/foundations/tokenusage/entities/tokenusage.meta.d.ts +3 -0
- package/dist/foundations/tokenusage/entities/tokenusage.meta.d.ts.map +1 -0
- package/dist/foundations/tokenusage/entities/tokenusage.meta.js +10 -0
- package/dist/foundations/tokenusage/entities/tokenusage.meta.js.map +1 -0
- package/dist/foundations/tokenusage/entities/tokenusage.model.d.ts +4 -0
- package/dist/foundations/tokenusage/entities/tokenusage.model.d.ts.map +1 -0
- package/dist/foundations/tokenusage/entities/tokenusage.model.js +15 -0
- package/dist/foundations/tokenusage/entities/tokenusage.model.js.map +1 -0
- package/dist/foundations/tokenusage/enums/tokenusage.type.d.ts +10 -0
- package/dist/foundations/tokenusage/enums/tokenusage.type.d.ts.map +1 -0
- package/dist/foundations/tokenusage/enums/tokenusage.type.js +14 -0
- package/dist/foundations/tokenusage/enums/tokenusage.type.js.map +1 -0
- package/dist/foundations/tokenusage/index.d.ts +8 -0
- package/dist/foundations/tokenusage/index.d.ts.map +1 -0
- package/dist/foundations/tokenusage/index.js +16 -0
- package/dist/foundations/tokenusage/index.js.map +1 -0
- package/dist/foundations/tokenusage/repositories/tokenusage.repository.d.ts +18 -0
- package/dist/foundations/tokenusage/repositories/tokenusage.repository.d.ts.map +1 -0
- package/dist/foundations/tokenusage/repositories/tokenusage.repository.js +60 -0
- package/dist/foundations/tokenusage/repositories/tokenusage.repository.js.map +1 -0
- package/dist/foundations/tokenusage/services/tokenusage.service.d.ts +18 -0
- package/dist/foundations/tokenusage/services/tokenusage.service.d.ts.map +1 -0
- package/dist/foundations/tokenusage/services/tokenusage.service.js +49 -0
- package/dist/foundations/tokenusage/services/tokenusage.service.js.map +1 -0
- package/dist/foundations/tokenusage/tokenusage.module.d.ts +5 -0
- package/dist/foundations/tokenusage/tokenusage.module.d.ts.map +1 -0
- package/dist/foundations/tokenusage/tokenusage.module.js +29 -0
- package/dist/foundations/tokenusage/tokenusage.module.js.map +1 -0
- package/dist/foundations/user/controllers/user.controller.d.ts +39 -0
- package/dist/foundations/user/controllers/user.controller.d.ts.map +1 -0
- package/dist/foundations/user/controllers/user.controller.js +374 -0
- package/dist/foundations/user/controllers/user.controller.js.map +1 -0
- package/dist/foundations/user/dtos/user.dto.d.ts +11 -0
- package/dist/foundations/user/dtos/user.dto.d.ts.map +1 -0
- package/dist/foundations/user/dtos/user.dto.js +45 -0
- package/dist/foundations/user/dtos/user.dto.js.map +1 -0
- package/dist/foundations/user/dtos/user.patch.rate.dto.d.ts +13 -0
- package/dist/foundations/user/dtos/user.patch.rate.dto.d.ts.map +1 -0
- package/dist/foundations/user/dtos/user.patch.rate.dto.js +54 -0
- package/dist/foundations/user/dtos/user.patch.rate.dto.js.map +1 -0
- package/dist/foundations/user/dtos/user.post.dto.d.ts +29 -0
- package/dist/foundations/user/dtos/user.post.dto.d.ts.map +1 -0
- package/dist/foundations/user/dtos/user.post.dto.js +117 -0
- package/dist/foundations/user/dtos/user.post.dto.js.map +1 -0
- package/dist/foundations/user/dtos/user.put.dto.d.ts +24 -0
- package/dist/foundations/user/dtos/user.put.dto.d.ts.map +1 -0
- package/dist/foundations/user/dtos/user.put.dto.js +100 -0
- package/dist/foundations/user/dtos/user.put.dto.js.map +1 -0
- package/dist/foundations/user/entities/user.entity.d.ts +23 -0
- package/dist/foundations/user/entities/user.entity.d.ts.map +1 -0
- package/dist/foundations/user/entities/user.entity.js +3 -0
- package/dist/foundations/user/entities/user.entity.js.map +1 -0
- package/dist/foundations/user/entities/user.map.d.ts +8 -0
- package/dist/foundations/user/entities/user.map.d.ts.map +1 -0
- package/dist/foundations/user/entities/user.map.js +27 -0
- package/dist/foundations/user/entities/user.map.js.map +1 -0
- package/dist/foundations/user/entities/user.meta.d.ts +6 -0
- package/dist/foundations/user/entities/user.meta.d.ts.map +1 -0
- package/dist/foundations/user/entities/user.meta.js +25 -0
- package/dist/foundations/user/entities/user.meta.js.map +1 -0
- package/dist/foundations/user/entities/user.model.d.ts +7 -0
- package/dist/foundations/user/entities/user.model.d.ts.map +1 -0
- package/dist/foundations/user/entities/user.model.js +30 -0
- package/dist/foundations/user/entities/user.model.js.map +1 -0
- package/dist/foundations/user/index.d.ts +11 -0
- package/dist/foundations/user/index.d.ts.map +1 -0
- package/dist/foundations/user/index.js +41 -0
- package/dist/foundations/user/index.js.map +1 -0
- package/dist/foundations/user/repositories/user.repository.d.ts +109 -0
- package/dist/foundations/user/repositories/user.repository.d.ts.map +1 -0
- package/dist/foundations/user/repositories/user.repository.js +491 -0
- package/dist/foundations/user/repositories/user.repository.js.map +1 -0
- package/dist/foundations/user/serialisers/user.serialiser.d.ts +14 -0
- package/dist/foundations/user/serialisers/user.serialiser.d.ts.map +1 -0
- package/dist/foundations/user/serialisers/user.serialiser.js +80 -0
- package/dist/foundations/user/serialisers/user.serialiser.js.map +1 -0
- package/dist/foundations/user/services/user.cypher.service.d.ts +13 -0
- package/dist/foundations/user/services/user.cypher.service.d.ts.map +1 -0
- package/dist/foundations/user/services/user.cypher.service.js +46 -0
- package/dist/foundations/user/services/user.cypher.service.js.map +1 -0
- package/dist/foundations/user/services/user.service.d.ts +107 -0
- package/dist/foundations/user/services/user.service.d.ts.map +1 -0
- package/dist/foundations/user/services/user.service.js +231 -0
- package/dist/foundations/user/services/user.service.js.map +1 -0
- package/dist/foundations/user/user.module.d.ts +5 -0
- package/dist/foundations/user/user.module.d.ts.map +1 -0
- package/dist/foundations/user/user.module.js +38 -0
- package/dist/foundations/user/user.module.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/migrate-entity/index.js +65 -0
- package/dist/tools/migrate-entity/lib/ast-parser.js +543 -0
- package/dist/tools/migrate-entity/lib/descriptor-generator.js +385 -0
- package/dist/tools/migrate-entity/lib/entity-migrator.js +300 -0
- package/dist/tools/migrate-entity/lib/file-discovery.js +123 -0
- package/dist/tools/migrate-entity/lib/module-updater.js +131 -0
- package/dist/tools/migrate-entity/lib/reference-updater.js +304 -0
- package/dist/tools/migrate-entity/lib/types.js +7 -0
- package/package.json +181 -0
package/README.md
ADDED
|
@@ -0,0 +1,1139 @@
|
|
|
1
|
+
# @carlonicora/nestjs-neo4jsonapi
|
|
2
|
+
|
|
3
|
+
A comprehensive NestJS foundation package providing JSON:API compliant APIs, Neo4j graph database integration, Redis caching, LangChain-based AI agents (including GraphRAG), and common utilities for building modern multi-tenant applications.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Features](#features)
|
|
8
|
+
- [Architecture](#architecture)
|
|
9
|
+
- [Installation](#installation)
|
|
10
|
+
- [Environment Variables](#environment-variables)
|
|
11
|
+
- [Quick Start](#quick-start)
|
|
12
|
+
- [Advanced Setup (Custom Bootstrap)](#advanced-setup-custom-bootstrap)
|
|
13
|
+
- [Company-User Model (B2B & B2C)](#company-user-model-b2b--b2c)
|
|
14
|
+
- [Required Configuration Files](#required-configuration-files)
|
|
15
|
+
- [Core Modules](#core-modules)
|
|
16
|
+
- [Foundation Modules](#foundation-modules)
|
|
17
|
+
- [AI Agents](#ai-agents)
|
|
18
|
+
- [Security & Authentication](#security--authentication)
|
|
19
|
+
- [Customizing Agent Prompts](#customizing-agent-prompts-optional)
|
|
20
|
+
- [License](#license)
|
|
21
|
+
|
|
22
|
+
## Features
|
|
23
|
+
|
|
24
|
+
- **Dual-Mode Architecture**: Run as **API server** (HTTP endpoints) or **Worker** (background job processing) from the same codebase
|
|
25
|
+
- **JSON:API Compliance**: Full JSON:API specification support with serializers, pagination, and cursor-based navigation
|
|
26
|
+
- **Neo4j Integration**: Graph database operations with Cypher query builder
|
|
27
|
+
- **Redis Caching**: Built-in caching layer with configurable TTLs
|
|
28
|
+
- **Multi-Tenant Architecture**: Support for both B2B (multi-company) and B2C (single invisible company) scenarios
|
|
29
|
+
- **AI Agents**: LangChain-powered agents including GraphRAG for knowledge extraction, summarization, and intelligent responses
|
|
30
|
+
- **Authentication**: JWT-based authentication with role-based access control
|
|
31
|
+
- **Background Jobs**: BullMQ integration for async job processing
|
|
32
|
+
- **WebSockets**: Real-time communication support
|
|
33
|
+
- **Tracing**: OpenTelemetry integration for distributed tracing
|
|
34
|
+
- **Logging**: Structured logging with Loki integration
|
|
35
|
+
|
|
36
|
+
## API & Worker Modes
|
|
37
|
+
|
|
38
|
+
The library is designed to run in two modes from the same codebase:
|
|
39
|
+
|
|
40
|
+
### API Mode (HTTP Server)
|
|
41
|
+
|
|
42
|
+
- Handles HTTP requests via Fastify
|
|
43
|
+
- WebSocket connections for real-time features
|
|
44
|
+
- Uses `JwtAuthGuard` for authentication
|
|
45
|
+
- Adds jobs to BullMQ queues
|
|
46
|
+
|
|
47
|
+
### Worker Mode (Background Processing)
|
|
48
|
+
|
|
49
|
+
- Processes BullMQ jobs asynchronously
|
|
50
|
+
- Runs scheduled tasks (cron jobs)
|
|
51
|
+
- No HTTP server - just job processing
|
|
52
|
+
- Same configuration and modules as API
|
|
53
|
+
|
|
54
|
+
### Running Both Modes
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# Start API server
|
|
58
|
+
node dist/main --mode=api
|
|
59
|
+
|
|
60
|
+
# Start Worker (in separate process)
|
|
61
|
+
node dist/main --mode=worker
|
|
62
|
+
|
|
63
|
+
# Or use the npm scripts
|
|
64
|
+
pnpm start:prod # API mode
|
|
65
|
+
pnpm start:worker:prod # Worker mode
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
The mode is determined by the `--mode` flag and configured via `getAppMode()` and `getAppModeConfig()`:
|
|
69
|
+
|
|
70
|
+
## Architecture
|
|
71
|
+
|
|
72
|
+
The library is organized into four main layers:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
@carlonicora/nestjs-neo4jsonapi
|
|
76
|
+
├── common/ # Shared utilities, abstracts, decorators, guards
|
|
77
|
+
├── config/ # Configuration system and tokens
|
|
78
|
+
├── core/ # Infrastructure modules (18 modules)
|
|
79
|
+
├── foundations/ # Domain/business modules (17 modules)
|
|
80
|
+
├── agents/ # AI agent modules (4 modules)
|
|
81
|
+
└── bootstrap/ # Application bootstrap utilities
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Installation
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
pnpm add @carlonicora/nestjs-neo4jsonapi
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Git Submodule Setup (Alternative)
|
|
91
|
+
|
|
92
|
+
If you want to use the package as a git submodule (for development or before npm release):
|
|
93
|
+
|
|
94
|
+
**1. Add the submodule**
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
cd /path/to/your-project
|
|
98
|
+
git submodule add https://github.com/carlonicora/nestjs-neo4jsonapi packages/nestjs-neo4jsonapi
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**2. Verify it worked**
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
git submodule status
|
|
105
|
+
# Should show: <commit-sha> packages/nestjs-neo4jsonapi (heads/master)
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**3. Commit the submodule**
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
git add .gitmodules packages/nestjs-neo4jsonapi
|
|
112
|
+
git commit -m "Add nestjs-neo4jsonapi as submodule"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**4. Update your `package.json`** (e.g., `apps/api/package.json`)
|
|
116
|
+
|
|
117
|
+
```json
|
|
118
|
+
{
|
|
119
|
+
"dependencies": {
|
|
120
|
+
"@carlonicora/nestjs-neo4jsonapi": "workspace:*"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**5. Ensure `pnpm-workspace.yaml` includes packages**
|
|
126
|
+
|
|
127
|
+
```yaml
|
|
128
|
+
packages:
|
|
129
|
+
- "apps/*"
|
|
130
|
+
- "packages/*"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**6. Install and build**
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
pnpm install
|
|
137
|
+
cd packages/nestjs-neo4jsonapi && pnpm build && cd ../..
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**For CI/CD (GitHub Actions)**, add `submodules: recursive` to your checkout step:
|
|
141
|
+
|
|
142
|
+
```yaml
|
|
143
|
+
- uses: actions/checkout@v4
|
|
144
|
+
with:
|
|
145
|
+
submodules: recursive
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Cloning a project with submodules:**
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
# When cloning fresh
|
|
152
|
+
git clone --recurse-submodules https://github.com/your/repo.git
|
|
153
|
+
|
|
154
|
+
# If already cloned
|
|
155
|
+
git submodule update --init --recursive
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Peer Dependencies
|
|
159
|
+
|
|
160
|
+
The following packages must be installed in your application:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
pnpm add @nestjs/common @nestjs/core @nestjs/config @nestjs/event-emitter @nestjs/jwt @nestjs/passport @nestjs/platform-socket.io @nestjs/throttler @nestjs/websockets nestjs-cls zod
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
| Package | Version | Purpose |
|
|
167
|
+
| ------------ | ------- | ---------------------------- |
|
|
168
|
+
| `nestjs-cls` | ^6.0.1 | Request-scoped context (CLS) |
|
|
169
|
+
| `zod` | ^4.0.0 | Schema validation |
|
|
170
|
+
|
|
171
|
+
**Important**: These are peer dependencies to ensure your application and the library share the same package instances, preventing NestJS dependency injection issues.
|
|
172
|
+
|
|
173
|
+
## Environment Variables
|
|
174
|
+
|
|
175
|
+
Create a `.env` file with the following configuration:
|
|
176
|
+
|
|
177
|
+
```env
|
|
178
|
+
# Environment
|
|
179
|
+
ENV=development
|
|
180
|
+
|
|
181
|
+
# API
|
|
182
|
+
API_URL=http://localhost:3000/
|
|
183
|
+
API_PORT=3000
|
|
184
|
+
|
|
185
|
+
# App (frontend URL)
|
|
186
|
+
APP_URL=http://localhost:3001
|
|
187
|
+
|
|
188
|
+
# Neo4j
|
|
189
|
+
NEO4J_URI=bolt://localhost:7687
|
|
190
|
+
NEO4J_USER=neo4j
|
|
191
|
+
NEO4J_PASSWORD=your-password
|
|
192
|
+
NEO4J_DATABASE=neo4j
|
|
193
|
+
|
|
194
|
+
# Redis
|
|
195
|
+
REDIS_HOST=localhost
|
|
196
|
+
REDIS_PORT=6379
|
|
197
|
+
REDIS_PASSWORD=
|
|
198
|
+
REDIS_USERNAME=
|
|
199
|
+
REDIS_QUEUE=default
|
|
200
|
+
|
|
201
|
+
# Cache
|
|
202
|
+
CACHE_ENABLED=true
|
|
203
|
+
CACHE_DEFAULT_TTL=600
|
|
204
|
+
CACHE_SKIP_PATTERNS=/access,/auth,/notifications,/websocket,/version
|
|
205
|
+
|
|
206
|
+
# JWT Authentication
|
|
207
|
+
JWT_SECRET=your-jwt-secret
|
|
208
|
+
JWT_EXPIRES_IN=1h
|
|
209
|
+
|
|
210
|
+
# CORS
|
|
211
|
+
CORS_ORIGINS=http://localhost:3001
|
|
212
|
+
CORS_CREDENTIALS=true
|
|
213
|
+
|
|
214
|
+
# AI Configuration (optional)
|
|
215
|
+
AI_PROVIDER=openai
|
|
216
|
+
AI_API_KEY=sk-...
|
|
217
|
+
AI_MODEL=gpt-4o-mini
|
|
218
|
+
|
|
219
|
+
# Embedder (optional)
|
|
220
|
+
EMBEDDER_PROVIDER=openrouter
|
|
221
|
+
EMBEDDER_API_KEY=sk-...
|
|
222
|
+
EMBEDDER_MODEL=openai/text-embedding-3-large
|
|
223
|
+
EMBEDDER_DIMENSIONS=3072
|
|
224
|
+
|
|
225
|
+
# Logging - Loki (optional)
|
|
226
|
+
LOKI_ENABLED=false
|
|
227
|
+
LOKI_HOST=http://localhost:3100
|
|
228
|
+
|
|
229
|
+
# Tracing - Tempo (optional)
|
|
230
|
+
TEMPO_ENABLED=false
|
|
231
|
+
TEMPO_ENDPOINT=http://localhost:4318/v1/traces
|
|
232
|
+
|
|
233
|
+
# S3 Storage (optional)
|
|
234
|
+
S3_TYPE=aws
|
|
235
|
+
S3_ENDPOINT=
|
|
236
|
+
S3_BUCKET=
|
|
237
|
+
S3_ACCESS_KEY_ID=
|
|
238
|
+
S3_SECRET_ACCESS_KEY=
|
|
239
|
+
S3_REGION=eu-west-1
|
|
240
|
+
|
|
241
|
+
# Email (optional)
|
|
242
|
+
EMAIL_PROVIDER=sendgrid
|
|
243
|
+
EMAIL_API_KEY=
|
|
244
|
+
EMAIL_FROM=noreply@example.com
|
|
245
|
+
|
|
246
|
+
# Stripe (optional)
|
|
247
|
+
STRIPE_SECRET_KEY=
|
|
248
|
+
STRIPE_PUBLISHABLE_KEY=
|
|
249
|
+
STRIPE_WEBHOOK_SECRET=
|
|
250
|
+
|
|
251
|
+
# Push Notifications (optional)
|
|
252
|
+
VAPID_PUBLIC_KEY=
|
|
253
|
+
VAPID_PRIVATE_KEY=
|
|
254
|
+
VAPID_EMAIL=
|
|
255
|
+
|
|
256
|
+
# Rate Limiting
|
|
257
|
+
RATE_LIMIT_ENABLED=true
|
|
258
|
+
RATE_LIMIT_TTL=60000
|
|
259
|
+
RATE_LIMIT_REQUESTS=100
|
|
260
|
+
|
|
261
|
+
# Encryption
|
|
262
|
+
ENCRYPTION_KEY=your-32-char-encryption-key
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
## Quick Start
|
|
266
|
+
|
|
267
|
+
The library provides a `bootstrap()` function that handles all the complexity of setting up a NestJS application. You only need to provide your app-specific configuration.
|
|
268
|
+
|
|
269
|
+
### 1. Create Your Features Module
|
|
270
|
+
|
|
271
|
+
```typescript
|
|
272
|
+
// src/features/features.modules.ts
|
|
273
|
+
import { Module } from "@nestjs/common";
|
|
274
|
+
// Import your app-specific feature modules
|
|
275
|
+
|
|
276
|
+
@Module({
|
|
277
|
+
imports: [
|
|
278
|
+
// Your feature modules here
|
|
279
|
+
],
|
|
280
|
+
})
|
|
281
|
+
export class FeaturesModules {}
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### 3. Create Configuration File (Optional)
|
|
285
|
+
|
|
286
|
+
If you need custom queues or content types, create a config file:
|
|
287
|
+
|
|
288
|
+
```typescript
|
|
289
|
+
// src/config/config.ts
|
|
290
|
+
import { baseConfig } from "@carlonicora/nestjs-neo4jsonapi";
|
|
291
|
+
import { QueueId } from "./enums/queue.id";
|
|
292
|
+
|
|
293
|
+
export default () => ({
|
|
294
|
+
...baseConfig,
|
|
295
|
+
// Register queue IDs for background job processing
|
|
296
|
+
chunkQueues: {
|
|
297
|
+
queueIds: Object.values(QueueId),
|
|
298
|
+
},
|
|
299
|
+
// Register content type labels for multi-label Neo4j queries
|
|
300
|
+
contentTypes: {
|
|
301
|
+
types: ["Article", "Document", "Hyperlink"],
|
|
302
|
+
},
|
|
303
|
+
});
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
### 4. Bootstrap Your Application
|
|
307
|
+
|
|
308
|
+
```typescript
|
|
309
|
+
// src/main.ts
|
|
310
|
+
import * as dotenv from "dotenv";
|
|
311
|
+
import * as path from "path";
|
|
312
|
+
|
|
313
|
+
// Load environment variables FIRST (before any library imports)
|
|
314
|
+
dotenv.config({ path: path.resolve(__dirname, "../../../.env") });
|
|
315
|
+
|
|
316
|
+
import { bootstrap } from "@carlonicora/nestjs-neo4jsonapi";
|
|
317
|
+
import config from "./config/config"; // Optional: only if you have custom config
|
|
318
|
+
import { FeaturesModules } from "./features/features.modules";
|
|
319
|
+
|
|
320
|
+
bootstrap({
|
|
321
|
+
appModules: [FeaturesModules],
|
|
322
|
+
i18n: {
|
|
323
|
+
fallbackLanguage: "en",
|
|
324
|
+
path: path.join(__dirname, "i18n"),
|
|
325
|
+
},
|
|
326
|
+
config, // Optional: pass custom config to extend baseConfig
|
|
327
|
+
});
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
That's it! The `bootstrap()` function handles:
|
|
331
|
+
|
|
332
|
+
- Tracing initialization
|
|
333
|
+
- API vs Worker mode detection (via `--mode=api` or `--mode=worker` CLI args)
|
|
334
|
+
- Fastify adapter with multipart support
|
|
335
|
+
- Global validation pipes, exception filters, and interceptors
|
|
336
|
+
- Rate limiting, CORS, and caching
|
|
337
|
+
- Graceful shutdown handlers
|
|
338
|
+
|
|
339
|
+
### Bootstrap Options
|
|
340
|
+
|
|
341
|
+
| Option | Type | Required | Description |
|
|
342
|
+
| ------------ | -------------------------------- | -------- | -------------------------------------------------------------------- |
|
|
343
|
+
| `appModules` | `(Type<any> \| DynamicModule)[]` | Yes | Your app-specific feature modules |
|
|
344
|
+
| `i18n` | `I18nOptions` | No | i18n configuration (fallbackLanguage, path) |
|
|
345
|
+
| `config` | `() => Record<string, any>` | No | Custom config that extends baseConfig (merged with library defaults) |
|
|
346
|
+
|
|
347
|
+
### Configuration Options (via `config`)
|
|
348
|
+
|
|
349
|
+
The `config` function returns an object that is merged with `baseConfig`. Available options:
|
|
350
|
+
|
|
351
|
+
| Option | Type | Description |
|
|
352
|
+
| ---------------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
|
353
|
+
| `chunkQueues.queueIds` | `string[]` | Queue IDs for BullMQ registration (for background job processing) |
|
|
354
|
+
| `contentTypes.types` | `string[]` | Neo4j labels for content types (used in multi-label content queries) |
|
|
355
|
+
| `jobNames` | `{ process: Record<string, string>, notifications?: Record<string, string> }` | Job names for BullMQ processors (maps content types to job names) |
|
|
356
|
+
| `prompts.*` | Various | Custom AI agent prompts (see [Customizing Agent Prompts](#customizing-agent-prompts-optional)) |
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## Advanced Setup (Custom Bootstrap)
|
|
361
|
+
|
|
362
|
+
If you need more control over the bootstrap process, you can manually configure the AppModule and main.ts.
|
|
363
|
+
|
|
364
|
+
### 1. Create Configuration File
|
|
365
|
+
|
|
366
|
+
```typescript
|
|
367
|
+
// src/config/config.ts
|
|
368
|
+
import { baseConfig } from "@carlonicora/nestjs-neo4jsonapi";
|
|
369
|
+
import { JobName } from "./enums/job.name";
|
|
370
|
+
import { QueueId } from "./enums/queue.id";
|
|
371
|
+
// Import your content type metas
|
|
372
|
+
import { articleMeta } from "src/features/article/entities/article.meta";
|
|
373
|
+
import { documentMeta } from "src/features/document/entities/document.meta";
|
|
374
|
+
|
|
375
|
+
export default () => ({
|
|
376
|
+
...baseConfig,
|
|
377
|
+
// Register all app queue IDs for background job processing
|
|
378
|
+
chunkQueues: {
|
|
379
|
+
queueIds: Object.values(QueueId),
|
|
380
|
+
},
|
|
381
|
+
// Register content type labels for multi-label Neo4j queries
|
|
382
|
+
contentTypes: {
|
|
383
|
+
types: [
|
|
384
|
+
articleMeta.labelName,
|
|
385
|
+
documentMeta.labelName,
|
|
386
|
+
// Add your content type labels here
|
|
387
|
+
],
|
|
388
|
+
},
|
|
389
|
+
// Register job names for BullMQ processors
|
|
390
|
+
jobNames: JobName,
|
|
391
|
+
});
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
```typescript
|
|
395
|
+
// src/config/enums/queue.id.ts
|
|
396
|
+
export enum QueueId {
|
|
397
|
+
CHUNK = "chunk",
|
|
398
|
+
DOCUMENT = "document",
|
|
399
|
+
ARTICLE = "article",
|
|
400
|
+
// Add your custom queue IDs here (lowercase of content type labelName)
|
|
401
|
+
}
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
```typescript
|
|
405
|
+
// src/config/enums/job.name.ts
|
|
406
|
+
export const JobName = {
|
|
407
|
+
process: {
|
|
408
|
+
chunk: "process_chunk",
|
|
409
|
+
Document: "process_document",
|
|
410
|
+
Article: "process_article",
|
|
411
|
+
// Keys match content type labelName (e.g., "Article", "Document")
|
|
412
|
+
// Values are the job names used by processors
|
|
413
|
+
},
|
|
414
|
+
notifications: {
|
|
415
|
+
// Optional notification job names
|
|
416
|
+
},
|
|
417
|
+
} as const;
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
### 2. Setup App Module
|
|
421
|
+
|
|
422
|
+
```typescript
|
|
423
|
+
// src/app.module.ts
|
|
424
|
+
import { DynamicModule, Module } from "@nestjs/common";
|
|
425
|
+
import { ConfigModule, ConfigService } from "@nestjs/config";
|
|
426
|
+
import { EventEmitterModule } from "@nestjs/event-emitter";
|
|
427
|
+
import { ScheduleModule } from "@nestjs/schedule";
|
|
428
|
+
import { ThrottlerModule } from "@nestjs/throttler";
|
|
429
|
+
import { ClsModule } from "nestjs-cls";
|
|
430
|
+
|
|
431
|
+
import {
|
|
432
|
+
AgentsModule,
|
|
433
|
+
AppModeConfig,
|
|
434
|
+
AppModeModule,
|
|
435
|
+
BaseConfigInterface,
|
|
436
|
+
ConfigRateLimitInterface,
|
|
437
|
+
CoreModule,
|
|
438
|
+
FoundationsModule,
|
|
439
|
+
} from "@carlonicora/nestjs-neo4jsonapi";
|
|
440
|
+
|
|
441
|
+
// App configuration (includes chunkQueues config)
|
|
442
|
+
import config from "./config/config";
|
|
443
|
+
|
|
444
|
+
// App-specific modules
|
|
445
|
+
import { FeaturesModules } from "src/features/features.modules";
|
|
446
|
+
|
|
447
|
+
@Module({})
|
|
448
|
+
export class AppModule {
|
|
449
|
+
static forRoot(modeConfig: AppModeConfig): DynamicModule {
|
|
450
|
+
return {
|
|
451
|
+
module: AppModule,
|
|
452
|
+
imports: [
|
|
453
|
+
// Event emitter for internal events
|
|
454
|
+
EventEmitterModule.forRoot(),
|
|
455
|
+
|
|
456
|
+
// App mode configuration (API vs Worker)
|
|
457
|
+
AppModeModule.forRoot(modeConfig),
|
|
458
|
+
|
|
459
|
+
// Configuration
|
|
460
|
+
ConfigModule.forRoot({
|
|
461
|
+
load: [config],
|
|
462
|
+
isGlobal: true,
|
|
463
|
+
cache: true,
|
|
464
|
+
}),
|
|
465
|
+
|
|
466
|
+
// Rate limiting
|
|
467
|
+
ThrottlerModule.forRootAsync({
|
|
468
|
+
imports: [ConfigModule],
|
|
469
|
+
inject: [ConfigService],
|
|
470
|
+
useFactory: (configService: ConfigService<BaseConfigInterface>) => {
|
|
471
|
+
const rateLimitConfig = configService.get<ConfigRateLimitInterface>("rateLimit");
|
|
472
|
+
return {
|
|
473
|
+
throttlers: [
|
|
474
|
+
{
|
|
475
|
+
name: "default",
|
|
476
|
+
ttl: rateLimitConfig.ttl,
|
|
477
|
+
limit: rateLimitConfig.limit,
|
|
478
|
+
},
|
|
479
|
+
],
|
|
480
|
+
};
|
|
481
|
+
},
|
|
482
|
+
}),
|
|
483
|
+
|
|
484
|
+
// Request-scoped context (CLS) - required for user/company context
|
|
485
|
+
ClsModule.forRoot({
|
|
486
|
+
global: true,
|
|
487
|
+
middleware: { mount: modeConfig.enableControllers },
|
|
488
|
+
}),
|
|
489
|
+
|
|
490
|
+
// Scheduled jobs (only enabled in worker mode)
|
|
491
|
+
...(modeConfig.enableCronJobs ? [ScheduleModule.forRoot()] : []),
|
|
492
|
+
|
|
493
|
+
// ========================================
|
|
494
|
+
// LIBRARY MODULES
|
|
495
|
+
// ========================================
|
|
496
|
+
|
|
497
|
+
// Core infrastructure (Neo4j, Redis, Cache, Security, etc.)
|
|
498
|
+
|
|
499
|
+
// Foundation domain modules (User, Company, Auth, etc.)
|
|
500
|
+
// Queues are configured via baseConfig.chunkQueues in config.ts
|
|
501
|
+
FoundationsModule,
|
|
502
|
+
|
|
503
|
+
// AI Agents (GraphRAG, Summariser, Responder, etc.)
|
|
504
|
+
// Prompts are configured via baseConfig.prompts
|
|
505
|
+
AgentsModule,
|
|
506
|
+
|
|
507
|
+
// ========================================
|
|
508
|
+
// YOUR APP-SPECIFIC MODULES
|
|
509
|
+
// ========================================
|
|
510
|
+
FeaturesModules,
|
|
511
|
+
],
|
|
512
|
+
global: true,
|
|
513
|
+
controllers: [],
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
### 3. Setup main.ts (Bootstrap)
|
|
520
|
+
|
|
521
|
+
```typescript
|
|
522
|
+
// src/main.ts
|
|
523
|
+
import * as dotenv from "dotenv";
|
|
524
|
+
import * as path from "path";
|
|
525
|
+
|
|
526
|
+
// Load environment variables FIRST
|
|
527
|
+
dotenv.config({ path: path.resolve(__dirname, "../../../.env") });
|
|
528
|
+
|
|
529
|
+
// Initialize tracing BEFORE any other imports
|
|
530
|
+
import { tracingSetup } from "@carlonicora/nestjs-neo4jsonapi";
|
|
531
|
+
tracingSetup.initialize();
|
|
532
|
+
|
|
533
|
+
import { ValidationPipe } from "@nestjs/common";
|
|
534
|
+
import { ConfigService } from "@nestjs/config";
|
|
535
|
+
import { NestFactory, Reflector } from "@nestjs/core";
|
|
536
|
+
import { FastifyAdapter, NestFastifyApplication } from "@nestjs/platform-fastify";
|
|
537
|
+
import { EventEmitter } from "stream";
|
|
538
|
+
|
|
539
|
+
import {
|
|
540
|
+
AppLoggingService,
|
|
541
|
+
AppMode,
|
|
542
|
+
AppModeConfig,
|
|
543
|
+
BaseConfigInterface,
|
|
544
|
+
CacheInterceptor,
|
|
545
|
+
CacheService,
|
|
546
|
+
ConfigApiInterface,
|
|
547
|
+
CorsService,
|
|
548
|
+
getAppMode,
|
|
549
|
+
getAppModeConfig,
|
|
550
|
+
HttpExceptionFilter,
|
|
551
|
+
LoggingInterceptor,
|
|
552
|
+
TracingInterceptor,
|
|
553
|
+
} from "@carlonicora/nestjs-neo4jsonapi";
|
|
554
|
+
|
|
555
|
+
import { AppModule } from "./app.module";
|
|
556
|
+
|
|
557
|
+
async function bootstrapAPI(modeConfig: AppModeConfig): Promise<void> {
|
|
558
|
+
const app = await NestFactory.create<NestFastifyApplication>(
|
|
559
|
+
AppModule.forRoot(modeConfig),
|
|
560
|
+
new FastifyAdapter({
|
|
561
|
+
routerOptions: { ignoreTrailingSlash: true },
|
|
562
|
+
bodyLimit: 100 * 1024 * 1024,
|
|
563
|
+
}),
|
|
564
|
+
{ logger: ["error", "warn"] },
|
|
565
|
+
);
|
|
566
|
+
|
|
567
|
+
const configService = app.get(ConfigService<BaseConfigInterface>);
|
|
568
|
+
|
|
569
|
+
// Register multipart support for file uploads
|
|
570
|
+
await app.register(require("@fastify/multipart"), {
|
|
571
|
+
limits: {
|
|
572
|
+
fileSize: 100 * 1024 * 1024,
|
|
573
|
+
fieldSize: 10 * 1024 * 1024,
|
|
574
|
+
files: 10,
|
|
575
|
+
fields: 20,
|
|
576
|
+
},
|
|
577
|
+
attachFieldsToBody: false,
|
|
578
|
+
});
|
|
579
|
+
|
|
580
|
+
// Setup logging
|
|
581
|
+
const loggingService = app.get(AppLoggingService);
|
|
582
|
+
app.useLogger(loggingService);
|
|
583
|
+
|
|
584
|
+
// Add Fastify onSend hook for request logging
|
|
585
|
+
app
|
|
586
|
+
.getHttpAdapter()
|
|
587
|
+
.getInstance()
|
|
588
|
+
.addHook("onSend", async (request, reply, payload) => {
|
|
589
|
+
const startTime = request.raw["requestStartTime"];
|
|
590
|
+
if (startTime) {
|
|
591
|
+
const responseTime = Date.now() - startTime;
|
|
592
|
+
loggingService.logHttpRequest(request.method, request.url, reply.statusCode, responseTime, request.ip);
|
|
593
|
+
loggingService.clearRequestContext();
|
|
594
|
+
}
|
|
595
|
+
return payload;
|
|
596
|
+
});
|
|
597
|
+
|
|
598
|
+
// Global filters and pipes
|
|
599
|
+
app.useGlobalFilters(new HttpExceptionFilter(loggingService));
|
|
600
|
+
app.useGlobalPipes(new ValidationPipe({ whitelist: true, transform: true }));
|
|
601
|
+
|
|
602
|
+
// Apply interceptors in order: Tracing -> Cache -> Logging
|
|
603
|
+
app.useGlobalInterceptors(app.get(TracingInterceptor));
|
|
604
|
+
app.useGlobalInterceptors(new CacheInterceptor(app.get(CacheService), app.get(Reflector), loggingService));
|
|
605
|
+
app.useGlobalInterceptors(app.get(LoggingInterceptor));
|
|
606
|
+
|
|
607
|
+
// Setup CORS
|
|
608
|
+
const corsService = app.get(CorsService);
|
|
609
|
+
corsService.validateConfiguration();
|
|
610
|
+
app.enableCors(corsService.getCorsConfiguration());
|
|
611
|
+
|
|
612
|
+
// Start server
|
|
613
|
+
const port = configService.get<ConfigApiInterface>("api").port;
|
|
614
|
+
await app.listen(port, "0.0.0.0");
|
|
615
|
+
loggingService.log(`API server started on port ${port}`);
|
|
616
|
+
|
|
617
|
+
// Graceful shutdown
|
|
618
|
+
process.on("SIGTERM", async () => {
|
|
619
|
+
await app.close();
|
|
620
|
+
process.exit(0);
|
|
621
|
+
});
|
|
622
|
+
process.on("SIGINT", async () => {
|
|
623
|
+
await app.close();
|
|
624
|
+
process.exit(0);
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
async function bootstrapWorker(modeConfig: AppModeConfig): Promise<void> {
|
|
629
|
+
const app = await NestFactory.createApplicationContext(AppModule.forRoot(modeConfig), {
|
|
630
|
+
logger: ["error", "warn"],
|
|
631
|
+
});
|
|
632
|
+
|
|
633
|
+
const loggingService = app.get(AppLoggingService);
|
|
634
|
+
app.useLogger(loggingService);
|
|
635
|
+
loggingService.log("Worker process started");
|
|
636
|
+
|
|
637
|
+
process.on("SIGTERM", async () => {
|
|
638
|
+
await app.close();
|
|
639
|
+
process.exit(0);
|
|
640
|
+
});
|
|
641
|
+
process.on("SIGINT", async () => {
|
|
642
|
+
await app.close();
|
|
643
|
+
process.exit(0);
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
async function bootstrap(): Promise<void> {
|
|
648
|
+
EventEmitter.defaultMaxListeners = 50;
|
|
649
|
+
|
|
650
|
+
const mode = getAppMode();
|
|
651
|
+
const modeConfig = getAppModeConfig(mode);
|
|
652
|
+
|
|
653
|
+
if (mode === AppMode.WORKER) {
|
|
654
|
+
await bootstrapWorker(modeConfig);
|
|
655
|
+
} else {
|
|
656
|
+
await bootstrapAPI(modeConfig);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
bootstrap();
|
|
661
|
+
```
|
|
662
|
+
|
|
663
|
+
## Company-User Model (B2B & B2C)
|
|
664
|
+
|
|
665
|
+
The library implements a flexible multi-tenant architecture that supports both **B2B** (Business-to-Business) and **B2C** (Business-to-Consumer) scenarios through the Company-User relationship.
|
|
666
|
+
|
|
667
|
+
### The Relationship
|
|
668
|
+
|
|
669
|
+
```
|
|
670
|
+
Company (1) <--[BELONGS_TO]-- (*) User
|
|
671
|
+
|
|
|
672
|
+
+--[HAS_MODULE]--> Module (features available to company)
|
|
673
|
+
+--[HAS_FEATURE]--> Feature (feature flags)
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
### User Entity
|
|
677
|
+
|
|
678
|
+
```typescript
|
|
679
|
+
type User = {
|
|
680
|
+
id: string;
|
|
681
|
+
email: string;
|
|
682
|
+
name?: string;
|
|
683
|
+
password?: string;
|
|
684
|
+
avatar?: string;
|
|
685
|
+
isActive: boolean;
|
|
686
|
+
isDeleted: boolean;
|
|
687
|
+
|
|
688
|
+
role?: Role[]; // User's roles within the company
|
|
689
|
+
company?: Company; // The company this user belongs to
|
|
690
|
+
module?: Module[]; // Modules assigned to this specific user
|
|
691
|
+
};
|
|
692
|
+
```
|
|
693
|
+
|
|
694
|
+
### Company Entity
|
|
695
|
+
|
|
696
|
+
```typescript
|
|
697
|
+
type Company = {
|
|
698
|
+
id: string;
|
|
699
|
+
name: string;
|
|
700
|
+
logo?: string;
|
|
701
|
+
isActiveSubscription: boolean;
|
|
702
|
+
ownerEmail: string;
|
|
703
|
+
availableTokens: number;
|
|
704
|
+
|
|
705
|
+
feature: Feature[]; // Features available to company
|
|
706
|
+
module: Module[]; // Modules available to company
|
|
707
|
+
};
|
|
708
|
+
```
|
|
709
|
+
|
|
710
|
+
### Roles and UUIDs
|
|
711
|
+
|
|
712
|
+
**Important**: All role IDs in the library are UUIDs, not string names. The library provides base system roles that you can extend:
|
|
713
|
+
|
|
714
|
+
```typescript
|
|
715
|
+
// src/config/roles.ts
|
|
716
|
+
import { SystemRoles } from "@carlonicora/nestjs-neo4jsonapi";
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Extend the base SystemRoles with your application-specific roles.
|
|
720
|
+
* All role IDs MUST be UUIDs.
|
|
721
|
+
*/
|
|
722
|
+
export const AppRoles = {
|
|
723
|
+
// Base roles from the library
|
|
724
|
+
...SystemRoles,
|
|
725
|
+
|
|
726
|
+
// Your application-specific roles (UUIDs)
|
|
727
|
+
Manager: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
728
|
+
Editor: "b2c3d4e5-f6a7-8901-bcde-f12345678901",
|
|
729
|
+
Viewer: "c3d4e5f6-a7b8-9012-cdef-123456789012",
|
|
730
|
+
} as const;
|
|
731
|
+
|
|
732
|
+
export type AppRoleId = (typeof AppRoles)[keyof typeof AppRoles];
|
|
733
|
+
```
|
|
734
|
+
|
|
735
|
+
The base `SystemRoles` includes:
|
|
736
|
+
|
|
737
|
+
- `Administrator`: `"53394cb8-1e87-11ef-8b48-bed54b8f8aba"` - System-wide admin
|
|
738
|
+
- `CompanyAdministrator`: `"2e1eee00-6cba-4506-9059-ccd24e4ea5b0"` - Company-level admin
|
|
739
|
+
|
|
740
|
+
### B2B Scenario (Multi-Tenant)
|
|
741
|
+
|
|
742
|
+
In a B2B application, companies are visible and central to the user experience:
|
|
743
|
+
|
|
744
|
+
- Each company has multiple users
|
|
745
|
+
- Users see company branding, shared data, and collaborate within their company
|
|
746
|
+
- Company administrators manage users, modules, and settings
|
|
747
|
+
- Data is segregated by company
|
|
748
|
+
|
|
749
|
+
```typescript
|
|
750
|
+
import { SystemRoles } from "@carlonicora/nestjs-neo4jsonapi";
|
|
751
|
+
import { AppRoles } from "./config/roles";
|
|
752
|
+
|
|
753
|
+
// Example: User registration in B2B
|
|
754
|
+
async function registerB2BUser(email: string, companyId: string) {
|
|
755
|
+
// User explicitly joins an existing company
|
|
756
|
+
// Note: roles must be UUIDs, not string names!
|
|
757
|
+
const user = await userService.create({
|
|
758
|
+
email,
|
|
759
|
+
companyId, // Links to existing company
|
|
760
|
+
roles: [AppRoles.Viewer], // UUID: "c3d4e5f6-a7b8-9012-cdef-123456789012"
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
// Example: Create company admin
|
|
765
|
+
async function createCompanyAdmin(email: string, companyId: string) {
|
|
766
|
+
const user = await userService.create({
|
|
767
|
+
email,
|
|
768
|
+
companyId,
|
|
769
|
+
roles: [SystemRoles.CompanyAdministrator], // UUID from library
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
```
|
|
773
|
+
|
|
774
|
+
### B2C Scenario (Single User)
|
|
775
|
+
|
|
776
|
+
In a B2C application, companies are **invisible** but still exist in the database:
|
|
777
|
+
|
|
778
|
+
- Each user gets their own "personal" company created automatically
|
|
779
|
+
- The company provides data isolation and the same multi-tenant security
|
|
780
|
+
- Users are unaware they have a company - it's an implementation detail
|
|
781
|
+
- This allows future upgrades to B2B (invite team members) without restructuring
|
|
782
|
+
|
|
783
|
+
```typescript
|
|
784
|
+
import { SystemRoles } from "@carlonicora/nestjs-neo4jsonapi";
|
|
785
|
+
|
|
786
|
+
// Example: User registration in B2C
|
|
787
|
+
async function registerB2CUser(email: string) {
|
|
788
|
+
// Create a personal/invisible company for this user
|
|
789
|
+
const company = await companyService.create({
|
|
790
|
+
name: `${email}'s workspace`, // Or generate a UUID
|
|
791
|
+
ownerEmail: email,
|
|
792
|
+
});
|
|
793
|
+
|
|
794
|
+
// Create user linked to their personal company
|
|
795
|
+
// They are the administrator of their own space
|
|
796
|
+
const user = await userService.create({
|
|
797
|
+
email,
|
|
798
|
+
companyId: company.id,
|
|
799
|
+
roles: [SystemRoles.CompanyAdministrator], // UUID - owner of personal space
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
```
|
|
803
|
+
|
|
804
|
+
### How the Library Uses This
|
|
805
|
+
|
|
806
|
+
1. **JWT Token**: Contains `userId`, `companyId`, and `roles`
|
|
807
|
+
2. **JwtAuthGuard**: Validates token and loads company configurations via `COMPANY_CONFIGURATIONS_FACTORY`
|
|
808
|
+
3. **CLS Context**: Stores `companyId` and `userId` for the request lifecycle
|
|
809
|
+
4. **Neo4j Queries**: Automatically scoped to `$companyId` via `initQuery()`
|
|
810
|
+
|
|
811
|
+
```typescript
|
|
812
|
+
// All queries are automatically company-scoped
|
|
813
|
+
const query = neo4jService.initQuery({ serialiser: UserModel });
|
|
814
|
+
query.query = `
|
|
815
|
+
MATCH (company:Company {id: $companyId})
|
|
816
|
+
MATCH (user:User)-[:BELONGS_TO]->(company)
|
|
817
|
+
RETURN user
|
|
818
|
+
`;
|
|
819
|
+
// $companyId is automatically injected from CLS context
|
|
820
|
+
```
|
|
821
|
+
|
|
822
|
+
### Benefits
|
|
823
|
+
|
|
824
|
+
| Benefit | B2B | B2C |
|
|
825
|
+
| ------------------ | ----------------- | -------------------------------- |
|
|
826
|
+
| Data isolation | Per company | Per user (via invisible company) |
|
|
827
|
+
| User collaboration | Yes | No (single user) |
|
|
828
|
+
| Scalability | Multi-tenant | Same architecture |
|
|
829
|
+
| Future B2B upgrade | Already supported | Easy migration path |
|
|
830
|
+
| Billing | Per company | Per user (mapped to company) |
|
|
831
|
+
|
|
832
|
+
## Required Configuration Files
|
|
833
|
+
|
|
834
|
+
### File Structure
|
|
835
|
+
|
|
836
|
+
```
|
|
837
|
+
your-app/
|
|
838
|
+
├── src/
|
|
839
|
+
│ ├── config/
|
|
840
|
+
│ │ ├── config.ts # App configuration
|
|
841
|
+
│ │ ├── company.configurations.ts # Company context loader
|
|
842
|
+
│ │ └── enums/
|
|
843
|
+
│ │ └── queue.id.ts # Queue identifiers
|
|
844
|
+
│ ├── features/ # Your app-specific modules
|
|
845
|
+
│ ├── app.module.ts
|
|
846
|
+
│ └── main.ts
|
|
847
|
+
├── .env
|
|
848
|
+
└── package.json
|
|
849
|
+
```
|
|
850
|
+
|
|
851
|
+
### Queue IDs and Job Names (if using background jobs)
|
|
852
|
+
|
|
853
|
+
Queue IDs must match the lowercase version of your content type `labelName`:
|
|
854
|
+
|
|
855
|
+
```typescript
|
|
856
|
+
// src/config/enums/queue.id.ts
|
|
857
|
+
export enum QueueId {
|
|
858
|
+
CHUNK = "chunk", // Required - used by ChunkProcessor
|
|
859
|
+
ARTICLE = "article", // For Article content type (labelName: "Article")
|
|
860
|
+
DOCUMENT = "document", // For Document content type (labelName: "Document")
|
|
861
|
+
// Add queue IDs for each content type (lowercase of labelName)
|
|
862
|
+
}
|
|
863
|
+
```
|
|
864
|
+
|
|
865
|
+
Job names map content types to processor job names:
|
|
866
|
+
|
|
867
|
+
```typescript
|
|
868
|
+
// src/config/enums/job.name.ts
|
|
869
|
+
export const JobName = {
|
|
870
|
+
process: {
|
|
871
|
+
chunk: "process_chunk", // Required - used by ChunkProcessor
|
|
872
|
+
Article: "process_article", // Key = labelName, value = job name
|
|
873
|
+
Document: "process_document",
|
|
874
|
+
},
|
|
875
|
+
notifications: {},
|
|
876
|
+
} as const;
|
|
877
|
+
```
|
|
878
|
+
|
|
879
|
+
**Convention**: After chunk processing completes, `ChunkService` automatically queues a job to `labelName.toLowerCase()` queue with job name from `jobNames.process[labelName]`.
|
|
880
|
+
|
|
881
|
+
## Core Modules
|
|
882
|
+
|
|
883
|
+
The library includes 18 core infrastructure modules:
|
|
884
|
+
|
|
885
|
+
| Module | Description |
|
|
886
|
+
| ----------------- | ------------------------------------------------ |
|
|
887
|
+
| `Neo4JModule` | Neo4j graph database integration |
|
|
888
|
+
| `RedisModule` | Redis client and messaging |
|
|
889
|
+
| `CacheModule` | Distributed caching layer |
|
|
890
|
+
| `SecurityModule` | JWT authentication and role-based access control |
|
|
891
|
+
| `JsonApiModule` | JSON:API specification compliance |
|
|
892
|
+
| `LoggingModule` | Structured logging with Loki |
|
|
893
|
+
| `TracingModule` | Distributed tracing with OpenTelemetry |
|
|
894
|
+
| `EmailModule` | Email service (SendGrid, SMTP) |
|
|
895
|
+
| `QueueModule` | BullMQ job queue processing |
|
|
896
|
+
| `WebsocketModule` | Real-time WebSocket communication |
|
|
897
|
+
| `CorsModule` | CORS configuration |
|
|
898
|
+
| `VersionModule` | API versioning |
|
|
899
|
+
| `StripeModule` | Stripe payment integration |
|
|
900
|
+
| `LLMModule` | LLM service for AI operations |
|
|
901
|
+
| `BlockNoteModule` | Block editor support |
|
|
902
|
+
| `MigratorModule` | Database migrations |
|
|
903
|
+
| `AppModeModule` | Application mode (API/Worker) |
|
|
904
|
+
| `DebugModule` | Debugging utilities |
|
|
905
|
+
|
|
906
|
+
## Foundation Modules
|
|
907
|
+
|
|
908
|
+
The library includes 17 foundation modules for business domain logic:
|
|
909
|
+
|
|
910
|
+
| Module | Description |
|
|
911
|
+
| -------------------- | ------------------------------------------------ |
|
|
912
|
+
| `UserModule` | User management with CRUD operations |
|
|
913
|
+
| `CompanyModule` | Multi-tenant company management |
|
|
914
|
+
| `AuthModule` | Authentication (login, register, password reset) |
|
|
915
|
+
| `RoleModule` | Role management |
|
|
916
|
+
| `ChunkModule` | Document chunk storage and retrieval |
|
|
917
|
+
| `ChunkerModule` | Document parsing (PDF, DOCX, XLSX, HTML) |
|
|
918
|
+
| `AtomicFactModule` | Atomic facts management for knowledge graphs |
|
|
919
|
+
| `KeyConceptModule` | Key concepts for knowledge graphs |
|
|
920
|
+
| `ContentModule` | Content management |
|
|
921
|
+
| `NotificationModule` | User notifications |
|
|
922
|
+
| `PushModule` | Push notifications (VAPID) |
|
|
923
|
+
| `FeatureModule` | Feature flag management |
|
|
924
|
+
| `ModuleModule` | Module/plugin management |
|
|
925
|
+
| `S3Module` | S3-compatible storage |
|
|
926
|
+
| `TokenUsageModule` | AI token usage tracking |
|
|
927
|
+
| `AuditModule` | Audit logging |
|
|
928
|
+
| `RelevancyModule` | Relevancy scoring |
|
|
929
|
+
|
|
930
|
+
## AI Agents
|
|
931
|
+
|
|
932
|
+
LangChain-powered agents for intelligent document processing.
|
|
933
|
+
|
|
934
|
+
### GraphCreatorModule
|
|
935
|
+
|
|
936
|
+
Extracts knowledge graphs from text, including atomic facts and key concept relationships.
|
|
937
|
+
|
|
938
|
+
```typescript
|
|
939
|
+
import { GraphCreatorService } from "@carlonicora/nestjs-neo4jsonapi";
|
|
940
|
+
|
|
941
|
+
@Injectable()
|
|
942
|
+
export class MyService {
|
|
943
|
+
constructor(private readonly graphCreator: GraphCreatorService) {}
|
|
944
|
+
|
|
945
|
+
async extractKnowledge(text: string) {
|
|
946
|
+
const result = await this.graphCreator.generateGraph({ content: text });
|
|
947
|
+
// result contains: atomicFacts, keyConceptsRelationships, tokens
|
|
948
|
+
return result;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
```
|
|
952
|
+
|
|
953
|
+
### ContextualiserModule (GraphRAG)
|
|
954
|
+
|
|
955
|
+
Implements **GraphRAG** (Graph-based Retrieval Augmented Generation) for intelligent context gathering:
|
|
956
|
+
|
|
957
|
+
- Uses a knowledge graph structure (Neo4j)
|
|
958
|
+
- Traverses atomic facts and key concepts
|
|
959
|
+
- Explores neighbouring nodes for richer context
|
|
960
|
+
|
|
961
|
+
```typescript
|
|
962
|
+
import { ContextualiserService } from "@carlonicora/nestjs-neo4jsonapi";
|
|
963
|
+
|
|
964
|
+
@Injectable()
|
|
965
|
+
export class MyService {
|
|
966
|
+
constructor(private readonly contextualiser: ContextualiserService) {}
|
|
967
|
+
|
|
968
|
+
async gatherContext(question: string) {
|
|
969
|
+
return this.contextualiser.contextualise({ question });
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
```
|
|
973
|
+
|
|
974
|
+
### SummariserModule
|
|
975
|
+
|
|
976
|
+
Generates summaries from document chunks using a map-reduce pattern.
|
|
977
|
+
|
|
978
|
+
```typescript
|
|
979
|
+
import { SummariserService } from "@carlonicora/nestjs-neo4jsonapi";
|
|
980
|
+
|
|
981
|
+
@Injectable()
|
|
982
|
+
export class MyService {
|
|
983
|
+
constructor(private readonly summariser: SummariserService) {}
|
|
984
|
+
|
|
985
|
+
async summarize(chunks: Chunk[]) {
|
|
986
|
+
const result = await this.summariser.summarise({ chunks });
|
|
987
|
+
// result contains: content, tldr, tokens
|
|
988
|
+
return result;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
```
|
|
992
|
+
|
|
993
|
+
### ResponderModule
|
|
994
|
+
|
|
995
|
+
Generates comprehensive answers based on gathered context.
|
|
996
|
+
|
|
997
|
+
```typescript
|
|
998
|
+
import { ResponderService } from "@carlonicora/nestjs-neo4jsonapi";
|
|
999
|
+
|
|
1000
|
+
@Injectable()
|
|
1001
|
+
export class MyService {
|
|
1002
|
+
constructor(private readonly responder: ResponderService) {}
|
|
1003
|
+
|
|
1004
|
+
async generateAnswer(context: any) {
|
|
1005
|
+
return this.responder.respond(context);
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
```
|
|
1009
|
+
|
|
1010
|
+
## Security & Authentication
|
|
1011
|
+
|
|
1012
|
+
### Using Guards
|
|
1013
|
+
|
|
1014
|
+
```typescript
|
|
1015
|
+
import { Controller, Get, UseGuards } from "@nestjs/common";
|
|
1016
|
+
import { JwtAuthGuard, AdminJwtAuthGuard, OptionalJwtAuthGuard, Roles, SystemRoles } from "@carlonicora/nestjs-neo4jsonapi";
|
|
1017
|
+
import { AppRoles } from "./config/roles";
|
|
1018
|
+
|
|
1019
|
+
@Controller("api/resources")
|
|
1020
|
+
export class ResourceController {
|
|
1021
|
+
// Requires valid JWT token
|
|
1022
|
+
@Get()
|
|
1023
|
+
@UseGuards(JwtAuthGuard)
|
|
1024
|
+
async getResources() { ... }
|
|
1025
|
+
|
|
1026
|
+
// Requires Administrator role (uses AdminJwtAuthGuard)
|
|
1027
|
+
@Get("admin")
|
|
1028
|
+
@UseGuards(AdminJwtAuthGuard)
|
|
1029
|
+
async getAdminResources() { ... }
|
|
1030
|
+
|
|
1031
|
+
// JWT is optional - works for both authenticated and anonymous users
|
|
1032
|
+
@Get("public")
|
|
1033
|
+
@UseGuards(OptionalJwtAuthGuard)
|
|
1034
|
+
async getPublicResources() { ... }
|
|
1035
|
+
|
|
1036
|
+
// Requires specific roles (UUIDs)
|
|
1037
|
+
@Get("restricted")
|
|
1038
|
+
@UseGuards(JwtAuthGuard)
|
|
1039
|
+
@Roles(SystemRoles.Administrator, SystemRoles.CompanyAdministrator)
|
|
1040
|
+
async getRestrictedResources() { ... }
|
|
1041
|
+
|
|
1042
|
+
// Using your custom app roles
|
|
1043
|
+
@Get("managers-only")
|
|
1044
|
+
@UseGuards(JwtAuthGuard)
|
|
1045
|
+
@Roles(AppRoles.Manager, SystemRoles.Administrator)
|
|
1046
|
+
async getManagerResources() { ... }
|
|
1047
|
+
}
|
|
1048
|
+
```
|
|
1049
|
+
|
|
1050
|
+
### Accessing User Context
|
|
1051
|
+
|
|
1052
|
+
```typescript
|
|
1053
|
+
import { Injectable } from "@nestjs/common";
|
|
1054
|
+
import { ClsService } from "nestjs-cls";
|
|
1055
|
+
|
|
1056
|
+
@Injectable()
|
|
1057
|
+
export class MyService {
|
|
1058
|
+
constructor(private readonly cls: ClsService) {}
|
|
1059
|
+
|
|
1060
|
+
async doSomething() {
|
|
1061
|
+
// Access current user/company context
|
|
1062
|
+
const userId = this.cls.get("userId");
|
|
1063
|
+
const companyId = this.cls.get("companyId");
|
|
1064
|
+
const roles = this.cls.get("roles");
|
|
1065
|
+
const language = this.cls.get("language");
|
|
1066
|
+
|
|
1067
|
+
if (config?.hasModule("premium-feature")) {
|
|
1068
|
+
// User's company has access to premium feature
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
```
|
|
1073
|
+
|
|
1074
|
+
## Customizing Agent Prompts (Optional)
|
|
1075
|
+
|
|
1076
|
+
The library includes default prompts. Customization is entirely optional.
|
|
1077
|
+
|
|
1078
|
+
### Available Prompts
|
|
1079
|
+
|
|
1080
|
+
| Agent | Config Key | Purpose |
|
|
1081
|
+
| ------------------ | --------------------------------------------- | ------------------------------------- |
|
|
1082
|
+
| **GraphCreator** | `prompts.graphCreator` | Extract atomic facts and key concepts |
|
|
1083
|
+
| **Contextualiser** | `prompts.contextualiser.questionRefiner` | Refine user questions |
|
|
1084
|
+
| **Contextualiser** | `prompts.contextualiser.rationalPlan` | Create rational plans |
|
|
1085
|
+
| **Contextualiser** | `prompts.contextualiser.keyConceptExtractor` | Score key concepts |
|
|
1086
|
+
| **Contextualiser** | `prompts.contextualiser.atomicFactsExtractor` | Evaluate atomic facts |
|
|
1087
|
+
| **Contextualiser** | `prompts.contextualiser.chunk` | Assess text chunks |
|
|
1088
|
+
| **Contextualiser** | `prompts.contextualiser.chunkVector` | Vector-based chunk retrieval |
|
|
1089
|
+
| **Responder** | `prompts.responder` | Generate final answers |
|
|
1090
|
+
| **Summariser** | `prompts.summariser.map` | Summarize individual chunks |
|
|
1091
|
+
| **Summariser** | `prompts.summariser.combine` | Combine summaries |
|
|
1092
|
+
| **Summariser** | `prompts.summariser.tldr` | Create TLDR |
|
|
1093
|
+
|
|
1094
|
+
### Custom Prompts Example
|
|
1095
|
+
|
|
1096
|
+
Prompts are configured via `createBaseConfig()`:
|
|
1097
|
+
|
|
1098
|
+
```typescript
|
|
1099
|
+
// src/config/config.ts
|
|
1100
|
+
import { createBaseConfig } from "@carlonicora/nestjs-neo4jsonapi";
|
|
1101
|
+
|
|
1102
|
+
export const config = createBaseConfig({
|
|
1103
|
+
appName: "my-app",
|
|
1104
|
+
prompts: {
|
|
1105
|
+
graphCreator: "Your custom graph creator prompt...",
|
|
1106
|
+
contextualiser: {
|
|
1107
|
+
questionRefiner: "Your custom question refiner prompt...",
|
|
1108
|
+
rationalPlan: "Your custom rational plan prompt...",
|
|
1109
|
+
},
|
|
1110
|
+
summariser: {
|
|
1111
|
+
map: "Your custom map prompt...",
|
|
1112
|
+
},
|
|
1113
|
+
},
|
|
1114
|
+
});
|
|
1115
|
+
```
|
|
1116
|
+
|
|
1117
|
+
Or extend baseConfig via `BootstrapOptions.config`:
|
|
1118
|
+
|
|
1119
|
+
```typescript
|
|
1120
|
+
// src/main.ts
|
|
1121
|
+
bootstrap({
|
|
1122
|
+
// ... other options
|
|
1123
|
+
config: () => ({
|
|
1124
|
+
prompts: {
|
|
1125
|
+
graphCreator: "Your custom graph creator prompt...",
|
|
1126
|
+
},
|
|
1127
|
+
}),
|
|
1128
|
+
});
|
|
1129
|
+
```
|
|
1130
|
+
|
|
1131
|
+
## License
|
|
1132
|
+
|
|
1133
|
+
This project is licensed under GPL v3 for open source use.
|
|
1134
|
+
|
|
1135
|
+
For commercial/closed-source licensing, contact: [@carlonicora](https://github.com/carlonicora)
|
|
1136
|
+
|
|
1137
|
+
## Author
|
|
1138
|
+
|
|
1139
|
+
Carlo Nicora - [@carlonicora](https://github.com/carlonicora)
|