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 fromDialogFlowResponse
param and apply as new method parametersUtils
internal usageDIALOG_FLOW_PARAMS
constant for the new metadata key of@DialogFlowParam()
decorator
- Improve and add tests, better coverage
- Constants has been updated to avoid any collision
OutputContexts
andQueryResult
interfaces are now exposed
- Rename
static forRoute
bystatic forRoot
- README
DialogFlowProvider
in order to handle the controller logic and dispatch intent- tests in order to have well test suite
Decorators/
testedmodule/[provider, provider, controller]
tested
DialogFlowController
logic now delegated to theDialogFlowProvider
Handlers
provider stored handler method when no intent or action was found
- Rename
DialogController
toDialogFlowController
in order to keep coherence
- Typo in the default config path in the module
- Remove console.log in the controller
- Samples directory
- Add
01-dialogflow-handlers
that show how to use the library
- Add
- Action support with
@DialogFlowAction()
- Regenerate the lib directory
DialogFlowModule
now apply theDialogFlowAuthorizationMiddleware
middleware to validate the token sent byDialogFlow
DialogFlowAuthorizationMiddleware
the middleware compare the token sent byDialogFlow
to 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
DialogFlowModule
Which provide the featuresDialogFlowController
configurable controller throughDialogFlowModule.forRoute(webHookConfig)
Handlers
provider which get the metadata from the providers in order to store and return the handlers map
- Some interfaces to defined the response get from
DialogFlow
and the expected result await byDialogflow
DialogFlowFulfilmentResponse
which defined the expected response await byDialogFlow
DialogFlowResponse
the response sent fromDialogFlow
and pass as argument to the handlerWebHookConfig
which defined the expected parameters in order to configure the controller ofDialogFlowModule
- Base files as
README
,CHANGELOG
,LICENCE