-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into production
- Loading branch information
Showing
32 changed files
with
1,777 additions
and
2,711 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
8.11.1 | ||
8.11.3 |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict'; | ||
|
||
const configVars = { | ||
forceHttps: true, | ||
}; | ||
|
||
module.exports = configVars; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict'; | ||
|
||
const configVars = { | ||
forceHttps: true, | ||
}; | ||
|
||
module.exports = configVars; |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
'use strict'; | ||
|
||
/** | ||
* This maps the fields in our Contentful types into broadcast, topic, and defaultTopicTriggers. | ||
* | ||
* Content types with either a templates or postType property set are returned as topics. | ||
* If the type contains a templates array, each array item should correspond to a single value text | ||
* field defined on the content type, which is used as a bot reply template in the topic. | ||
* If the type contains a postType string property instead, its an older content type and its | ||
* templates are configured via config/lib/helpers/topic. Ideally we should consolidate, but it'd | ||
* take a bit of refactoring as the topic helper config contains default values for certain text | ||
* fields to use if the field values are blank. | ||
* | ||
* A broadcastable content type currently requires a text field named "text" and attachments field | ||
* named "attachments" to define content for the outbound broadcast. | ||
* | ||
*/ | ||
module.exports = { | ||
contentTypes: { | ||
askYesNo: { | ||
type: 'askYesNo', | ||
broadcastable: true, | ||
templates: [ | ||
'saidYes', | ||
'saidNo', | ||
'invalidAskYesNoResponse', | ||
'autoReply', | ||
], | ||
}, | ||
autoReply: { | ||
type: 'autoReply', | ||
templates: [ | ||
'autoReply', | ||
], | ||
}, | ||
autoReplyBroadcast: { | ||
type: 'autoReplyBroadcast', | ||
broadcastable: true, | ||
}, | ||
defaultTopicTrigger: { | ||
type: 'defaultTopicTrigger', | ||
}, | ||
message: { | ||
type: 'message', | ||
}, | ||
photoPostConfig: { | ||
type: 'photoPostConfig', | ||
postType: 'photo', | ||
}, | ||
textPostConfig: { | ||
type: 'textPostConfig', | ||
postType: 'text', | ||
}, | ||
// Legacy types: | ||
// Ideally we'd backfill all legacy entries as their new types, but we likely can't change the | ||
// the type of a Contentful entry without changing its id (if that's the case - we'd need to | ||
// bulk update all documents in the Conversations messages DB) | ||
// This externalPostConfig type will deprecated by an autoReply: | ||
externalPostConfig: { | ||
type: 'externalPostConfig', | ||
postType: 'external', | ||
}, | ||
legacyBroadcast: { | ||
type: 'broadcast', | ||
broadcastable: true, | ||
}, | ||
}, | ||
}; |
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 |
---|---|---|
|
@@ -2,7 +2,4 @@ | |
|
||
module.exports = { | ||
allDefaultTopicTriggersCacheKey: 'all', | ||
contentTypes: [ | ||
'defaultTopicTrigger', | ||
], | ||
}; |
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
Oops, something went wrong.