-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0420dcf
commit 30521e8
Showing
9 changed files
with
25 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
{-# LANGUAGE RecordWildCards #-} | ||
{-# LANGUAGE NamedFieldPuns #-} | ||
|
||
{-| | ||
Module : Dialogflow.V2.Request | ||
|
@@ -12,7 +11,7 @@ Maintainer : Mauricio Fierro <[email protected]> | |
This module contains types for Dialogflow webhook requests. See the Dialogflow <https://cloud.google.com/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#webhookrequest documentation>. | ||
-} | ||
|
||
module Dialogflow.V2.Request where | ||
module Dialogflow.V2.Fulfillment.Webhook.Request where | ||
|
||
import Data.Aeson ( FromJSON | ||
, parseJSON | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ Maintainer : Mauricio Fierro <[email protected]> | |
This module contains types for Dialogflow webhook response. See the Dialogflow <https://cloud.google.com/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#webhookresponse documentation>. | ||
-} | ||
|
||
module Dialogflow.V2.Response where | ||
module Dialogflow.V2.Fulfillment.Webhook.Response where | ||
|
||
import Data.Aeson ( parseJSON | ||
, toJSON | ||
|
@@ -24,10 +24,10 @@ import Dialogflow.Util (noNullObjects) | |
|
||
import qualified Data.Map as M | ||
|
||
import Dialogflow.V2.Request (Context) | ||
import Dialogflow.V2.Message | ||
import Dialogflow.V2.Fulfillment.Webhook.Request (Context) | ||
import Dialogflow.V2.Fulfillment.Message | ||
|
||
import qualified Dialogflow.V2.Payload.Google as G | ||
import qualified Dialogflow.V2.Fulfillment.Payload.Google as G | ||
|
||
-- TODO: When this is included, no messages or payload is taken into account. | ||
-- We gotta cover this. | ||
|
4 changes: 2 additions & 2 deletions
4
test/Dialogflow/V2/MessageSpec.hs → .../Dialogflow/V2/Fulfillment/MessageSpec.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
test/Dialogflow/V2/Payload/GoogleSpec.hs → ...flow/V2/Fulfillment/Payload/GoogleSpec.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/Dialogflow/V2/RequestSpec.hs → ...low/V2/Fulfillment/Webhook/RequestSpec.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/Dialogflow/V2/ResponseSpec.hs → ...ow/V2/Fulfillment/Webhook/ResponseSpec.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters