All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Update packages to NestJs V8 - #63 Thanks to @vincent-benbria
Update package according to the new api of nestjs V6 Take advantage of discovery module provided by nestjs-plus
Setup DiscoveryModule and cleanup the lib
Refactor module Remove provider Add core directory (handler/scanner)
Update library to be used with nestjs V5
@DialogFlowParam()decorator in order to pick properties fromDialogFlowResponseparam and apply as new method parametersUtilsinternal usageDIALOG_FLOW_PARAMSconstant for the new metadata key of@DialogFlowParam()decorator
- Improve and add tests, better coverage
- Constants has been updated to avoid any collision
OutputContextsandQueryResultinterfaces are now exposed
- Rename
static forRoutebystatic forRoot
- README
DialogFlowProviderin order to handle the controller logic and dispatch intent- tests in order to have well test suite
Decorators/testedmodule/[provider, provider, controller]tested
DialogFlowControllerlogic now delegated to theDialogFlowProvider
Handlersprovider stored handler method when no intent or action was found
- Rename
DialogControllertoDialogFlowControllerin order to keep coherence
- Typo in the default config path in the module
- Remove console.log in the controller
- Samples directory
- Add
01-dialogflow-handlersthat show how to use the library
- Add
- Action support with
@DialogFlowAction()
- Regenerate the lib directory
DialogFlowModulenow apply theDialogFlowAuthorizationMiddlewaremiddleware to validate the token sent byDialogFlow
DialogFlowAuthorizationMiddlewarethe middleware compare the token sent byDialogFlowto the token set in the env variableDIALOG_FLOW_AUTHORIZATION_TOKEN
Change project name.
- Decorators to handle the intent/action sent from
DialogFlow@DialogFlowIntent()decorator to define the concerned intent instead of the action@DialogFlowAction()decorator to define the concerned action instead of the intent
DialogFlowModuleWhich provide the featuresDialogFlowControllerconfigurable controller throughDialogFlowModule.forRoute(webHookConfig)Handlersprovider which get the metadata from the providers in order to store and return the handlers map
- Some interfaces to defined the response get from
DialogFlowand the expected result await byDialogflowDialogFlowFulfilmentResponsewhich defined the expected response await byDialogFlowDialogFlowResponsethe response sent fromDialogFlowand pass as argument to the handlerWebHookConfigwhich defined the expected parameters in order to configure the controller ofDialogFlowModule
- Base files as
README,CHANGELOG,LICENCE