Skip to content

Releases: adrien2p/nestjs-dialogflow

v1.1.7

13 May 17:05
Compare
Choose a tag to compare

Update

  • Rename static forRoute by static forRoot

v1.1.6

12 May 20:38
Compare
Choose a tag to compare

Update

  • README

v1.1.5

12 May 20:26
Compare
Choose a tag to compare

Added

  • DialogFlowService in order to handle the controller logic and dispatch intent
  • tests suite
    • Decorators/ tested
    • module/[provider, component, controller] tested

Update

  • DialogFlowController logic now delegated to the DialogFlowService

Fixes

  • Handlers provider stored handler method when no intent or action was found

v1.1.4

08 May 11:46
Compare
Choose a tag to compare

Update

  • Rename DialogController to DialogFlowController in order to keep coherence

v1.1.3

08 May 08:48
Compare
Choose a tag to compare

Fixes

  • Typo in the default config path in the module
  • Remove console.log in the controller

Added

  • Samples directory
    • Add 01-dialogflow-handlers that show how to use the library

v1.1.2

08 May 08:20
Compare
Choose a tag to compare

Fixes

  • Action support with @DialogFlowAction()

v1.1.1

07 May 23:14
Compare
Choose a tag to compare

Fixes

  • Regenerate the lib directory

Added

  • DialogFlowAuthorizationMiddleware the middleware compare the token sent by DialogFlow to the token set in the env variable
    DIALOG_FLOW_AUTHORIZATION_TOKEN

Update

  • DialogFlowModule now apply the DialogFlowAuthorizationMiddleware middleware to validate the token sent by DialogFlow

Changing library name

07 May 21:06
Compare
Choose a tag to compare
1.0.1

Upgrade version

v1.0.0

07 May 20:00
Compare
Choose a tag to compare

Added

  • 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 features
    • DialogFlowController configurable controller through DialogFlowModule.forRoute(webHookConfig)
    • Handlers provider which get the metadata from the components in order to store and return the handlers map
  • Some interfaces to defined the response get from DialogFlow and the expected result await by Dialogflow
    • DialogFlowFulfilmentResponse which defined the expected response await by DialogFlow
    • DialogFlowResponse the response sent from DialogFlow and pass as argument to the handler
    • WebHookConfig which defined the expected parameters in order to configure the controller of DialogFlowModule
  • Base files as README, CHANGELOG, LICENCE