@xapp/stentor-templates 1.7.2-alpha.0 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/lib/Constants.js +7 -5
- package/lib/Constants.js.map +1 -1
- package/lib/TemplateFactory.js +13 -10
- package/lib/TemplateFactory.js.map +1 -1
- package/lib/Types.js +6 -3
- package/lib/Types.js.map +1 -1
- package/lib/onDemand/Constants.js +10 -8
- package/lib/onDemand/Constants.js.map +1 -1
- package/lib/onDemand/OnDemandTemplate.js +2 -0
- package/lib/onDemand/OnDemandTemplateFactory.js +23 -20
- package/lib/onDemand/OnDemandTemplateFactory.js.map +1 -1
- package/lib/onDemand/index.js +7 -2
- package/lib/onDemand/index.js.map +1 -1
- package/lib/radio/Constants.js +7 -5
- package/lib/radio/Constants.js.map +1 -1
- package/lib/radio/RadioTemplate.js +2 -0
- package/lib/radio/RadioTemplateFactory.js +23 -20
- package/lib/radio/RadioTemplateFactory.js.map +1 -1
- package/lib/radio/index.js +7 -2
- package/lib/radio/index.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [1.7.
|
|
6
|
+
## [1.7.5](https://github.com/XappMedia/stentor-core/compare/v1.7.4...v1.7.5) (2019-09-04)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @xapp/stentor-templates
|
|
9
9
|
|
package/lib/Constants.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CUSTOM_TYPE = "CUSTOM";
|
|
4
|
+
exports.GLOBAL_KEYWORDS = ["XAPP", "XAPPmedia"];
|
|
5
|
+
exports.TEMPLATE_DEFAULTS = {
|
|
6
|
+
templateType: exports.CUSTOM_TYPE,
|
|
7
|
+
keywords: exports.GLOBAL_KEYWORDS.slice()
|
|
6
8
|
};
|
|
7
9
|
//# sourceMappingURL=Constants.js.map
|
package/lib/Constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../src/Constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../src/Constants.ts"],"names":[],"mappings":";;AAGa,QAAA,WAAW,GAAe,QAAQ,CAAC;AAEnC,QAAA,eAAe,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAExC,QAAA,iBAAiB,GAAa;IACvC,YAAY,EAAE,mBAAW;IACzB,QAAQ,EAAE,uBAAe,CAAC,KAAK,EAAE;CACpC,CAAC"}
|
package/lib/TemplateFactory.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
3
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
+
const stentor_app_1 = require("@xapp/stentor-app");
|
|
5
|
+
const stentor_constants_1 = require("@xapp/stentor-constants");
|
|
4
6
|
/**
|
|
5
7
|
* Abstract TemplateFactory for generating Templates of a certain type.
|
|
6
8
|
*/
|
|
7
|
-
|
|
9
|
+
class TemplateFactory {
|
|
8
10
|
/**
|
|
9
11
|
* Overrides template properties with those from the provided app
|
|
10
12
|
*
|
|
@@ -22,7 +24,7 @@ export class TemplateFactory {
|
|
|
22
24
|
// if we do we need to set some parameters from it
|
|
23
25
|
if (app.testingInstructions) {
|
|
24
26
|
// See if we can pull the URL out of the testing instructions
|
|
25
|
-
const matches = app.testingInstructions.match(URL_REGEX) || [];
|
|
27
|
+
const matches = app.testingInstructions.match(stentor_constants_1.URL_REGEX) || [];
|
|
26
28
|
// Only take the first one
|
|
27
29
|
template.collaborationAgreementUrl = matches[0];
|
|
28
30
|
}
|
|
@@ -39,9 +41,9 @@ export class TemplateFactory {
|
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
// Get the icons
|
|
42
|
-
template.smallIcon = app.smallIcon || generateSmallIconUrl(app.icon);
|
|
43
|
-
template.largeIcon = app.largeIcon || generateLargeIconUrl(app.icon);
|
|
44
|
-
template.endPoint = app.endPoint || generateEndpointMap(app);
|
|
44
|
+
template.smallIcon = app.smallIcon || stentor_app_1.generateSmallIconUrl(app.icon);
|
|
45
|
+
template.largeIcon = app.largeIcon || stentor_app_1.generateLargeIconUrl(app.icon);
|
|
46
|
+
template.endPoint = app.endPoint || stentor_app_1.generateEndpointMap(app);
|
|
45
47
|
// Set the platformData
|
|
46
48
|
if (app.platformData && app.platformData.alexa && app.platformData.alexa.privacyAndCompliance) {
|
|
47
49
|
template.platformData.alexa.privacyAndCompliance = app.platformData.alexa.privacyAndCompliance;
|
|
@@ -100,12 +102,13 @@ export class TemplateFactory {
|
|
|
100
102
|
}
|
|
101
103
|
// Icons!
|
|
102
104
|
newApp.icon = template.icon;
|
|
103
|
-
newApp.smallIcon = generateSmallIconUrl(newApp.icon);
|
|
104
|
-
newApp.largeIcon = generateLargeIconUrl(newApp.icon);
|
|
105
|
+
newApp.smallIcon = stentor_app_1.generateSmallIconUrl(newApp.icon);
|
|
106
|
+
newApp.largeIcon = stentor_app_1.generateLargeIconUrl(newApp.icon);
|
|
105
107
|
// And make sure the endpoint is up to date
|
|
106
|
-
newApp.endPoint = newApp.endPoint || generateEndpointMap(newApp);
|
|
108
|
+
newApp.endPoint = newApp.endPoint || stentor_app_1.generateEndpointMap(newApp);
|
|
107
109
|
// Be free new App!
|
|
108
110
|
return newApp;
|
|
109
111
|
}
|
|
110
112
|
}
|
|
113
|
+
exports.TemplateFactory = TemplateFactory;
|
|
111
114
|
//# sourceMappingURL=TemplateFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateFactory.js","sourceRoot":"","sources":["../src/TemplateFactory.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"TemplateFactory.js","sourceRoot":"","sources":["../src/TemplateFactory.ts"],"names":[],"mappings":";;AAAA,oCAAoC;AACpC,mDAAoG;AACpG,+DAAoD;AAEpD;;GAEG;AACH,MAAsB,eAAe;IAkBjC;;;;;;;;OAQG;IACO,oBAAoB,CAAC,QAAW,EAAE,GAAS;QACjD,oDAAoD;QACpD,IAAI,GAAG,EAAE;YACL,gDAAgD;YAChD,QAAQ,CAAC,QAAQ,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAEjF,kDAAkD;YAClD,IAAI,GAAG,CAAC,mBAAmB,EAAE;gBACzB,6DAA6D;gBAC7D,MAAM,OAAO,GAAG,GAAG,CAAC,mBAAmB,CAAC,KAAK,CAAC,6BAAS,CAAC,IAAI,EAAE,CAAC;gBAC/D,0BAA0B;gBAC1B,QAAQ,CAAC,yBAAyB,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;aACnD;YAED,qCAAqC;YACrC,IAAI,GAAG,CAAC,QAAQ,EAAE;gBACd,IAAI,GAAG,CAAC,QAAQ,CAAC,aAAa,IAAI,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE;oBACrE,QAAQ,CAAC,QAAQ,CAAC,aAAa,GAAG,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC;iBAChE;gBAED,IAAI,GAAG,CAAC,QAAQ,CAAC,OAAO,IAAI,OAAO,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE;oBAC3E,QAAQ,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AAoB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACrD,2CAA2C;QAC3C,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,iCAAmB,CAAC,MAAM,CAAC,CAAC;QAEjE,mBAAmB;QACnB,OAAO,MAAM,CAAC;IAClB,CAAC;CAyBJ;AAtKD,0CAsKC"}
|
package/lib/Types.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const onDemand_1 = require("./onDemand");
|
|
4
|
+
exports.ON_DEMAND_TEMPLATE = onDemand_1.ON_DEMAND_TEMPLATE;
|
|
5
|
+
const radio_1 = require("./radio");
|
|
6
|
+
exports.RADIO_TEMPLATE = radio_1.RADIO_TEMPLATE;
|
|
4
7
|
//# sourceMappingURL=Types.js.map
|
package/lib/Types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Types.js","sourceRoot":"","sources":["../src/Types.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"Types.js","sourceRoot":"","sources":["../src/Types.ts"],"names":[],"mappings":";;AAEA,yCAAgD;AAGvB,6BAHhB,6BAAkB,CAGgB;AAF3C,mCAAyC;AAEhC,yBAFA,sBAAc,CAEA"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Constants_1 = require("../Constants");
|
|
4
|
+
exports.ON_DEMAND_TEMPLATE = "PODCAST_TEMPLATE";
|
|
5
|
+
exports.ON_DEMAND_CONTENT_TYPE_STAND_ALONE = "STAND_ALONE";
|
|
6
|
+
exports.ON_DEMAND_CONTENT_TYPE_REPLACED = "REPLACED";
|
|
7
|
+
exports.ON_DEMAND_TEMPLATE_HELP_RESPONSE = [
|
|
6
8
|
{
|
|
7
9
|
outputSpeech: "<speak>During playback, you can either pause or resume.</speak>",
|
|
8
10
|
reprompt: "<speak>During playback, you can either pause or resume.</speak>"
|
|
9
11
|
}
|
|
10
12
|
];
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
exports.ON_DEMAND_DIALOGFLOW_DEFAULT_AGENT_TOKEN = "9c34733274c743b18d9860995d22a1ba";
|
|
14
|
+
exports.ON_DEMAND_TEMPLATE_REQUIRED = [
|
|
13
15
|
"rssFeedUrl",
|
|
14
16
|
"name",
|
|
15
17
|
"invocationName",
|
|
@@ -17,5 +19,5 @@ export const ON_DEMAND_TEMPLATE_REQUIRED = [
|
|
|
17
19
|
"summary",
|
|
18
20
|
"icon"
|
|
19
21
|
];
|
|
20
|
-
|
|
22
|
+
exports.ON_DEMAND_TEMPLATE_KEYWORDS = Constants_1.GLOBAL_KEYWORDS.concat(["PODCAST", "ON DEMAND", "RSS FEED"]);
|
|
21
23
|
//# sourceMappingURL=Constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../src/onDemand/Constants.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../src/onDemand/Constants.ts"],"names":[],"mappings":";;AAEA,4CAA+C;AAGlC,QAAA,kBAAkB,GAAyB,kBAAkB,CAAC;AAE9D,QAAA,kCAAkC,GAAG,aAAa,CAAC;AAEnD,QAAA,+BAA+B,GAAG,UAAU,CAAC;AAE7C,QAAA,gCAAgC,GAAG;IAC5C;QACI,YAAY,EAAE,iEAAiE;QAC/E,QAAQ,EAAE,iEAAiE;KAC9E;CACJ,CAAC;AAEW,QAAA,wCAAwC,GAAG,kCAAkC,CAAC;AAE9E,QAAA,2BAA2B,GAA+B;IACnE,YAAY;IACZ,MAAM;IACN,gBAAgB;IAChB,aAAa;IACb,SAAS;IACT,MAAM;CACT,CAAC;AAEW,QAAA,2BAA2B,GAAG,2BAAe,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
3
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const stentor_alexa_1 = require("@xapp/stentor-alexa");
|
|
5
|
+
const stentor_handler_media_1 = require("@xapp/stentor-handler-media");
|
|
6
|
+
const stentor_interaction_model_1 = require("@xapp/stentor-interaction-model");
|
|
7
|
+
const Constants_1 = require("../Constants");
|
|
8
|
+
const TemplateFactory_1 = require("../TemplateFactory");
|
|
9
|
+
const Constants_2 = require("./Constants");
|
|
10
|
+
class OnDemandTemplateFactory extends TemplateFactory_1.TemplateFactory {
|
|
9
11
|
generateTemplate(app, handlers = []) {
|
|
10
|
-
let template = Object.assign({}, TEMPLATE_DEFAULTS, app, { templateType: ON_DEMAND_TEMPLATE, customIntros: [], alexaCategory: PODCAST,
|
|
12
|
+
let template = Object.assign({}, Constants_1.TEMPLATE_DEFAULTS, app, { templateType: Constants_2.ON_DEMAND_TEMPLATE, customIntros: [], alexaCategory: stentor_alexa_1.PODCAST,
|
|
11
13
|
// on google we use the same Dialogflow client
|
|
12
|
-
dialogflowClientToken: ON_DEMAND_DIALOGFLOW_DEFAULT_AGENT_TOKEN, keywords: ON_DEMAND_TEMPLATE_KEYWORDS.slice() });
|
|
14
|
+
dialogflowClientToken: Constants_2.ON_DEMAND_DIALOGFLOW_DEFAULT_AGENT_TOKEN, keywords: Constants_2.ON_DEMAND_TEMPLATE_KEYWORDS.slice() });
|
|
13
15
|
template = super.overrideWithAppProps(template, app);
|
|
14
16
|
if (handlers) {
|
|
15
17
|
// Try to find the handler and take the data!
|
|
16
18
|
handlers.forEach(handler => {
|
|
17
|
-
if (isPlayPodcastHandlerProps(handler)) {
|
|
19
|
+
if (stentor_handler_media_1.isPlayPodcastHandlerProps(handler)) {
|
|
18
20
|
const data = handler.data;
|
|
19
21
|
if (data) {
|
|
20
22
|
if (data.url) {
|
|
21
23
|
template.rssFeedUrl = handler.data.url;
|
|
22
24
|
}
|
|
23
25
|
if (data.alwaysPlayLatest) {
|
|
24
|
-
template.contentType = ON_DEMAND_CONTENT_TYPE_REPLACED;
|
|
26
|
+
template.contentType = Constants_2.ON_DEMAND_CONTENT_TYPE_REPLACED;
|
|
25
27
|
}
|
|
26
28
|
if (data.offerToPlayLatest) {
|
|
27
|
-
template.contentType = ON_DEMAND_CONTENT_TYPE_STAND_ALONE;
|
|
29
|
+
template.contentType = Constants_2.ON_DEMAND_CONTENT_TYPE_STAND_ALONE;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
template.customIntros = handler.content ? handler.content[handler.intentId] : [];
|
|
@@ -49,14 +51,14 @@ export class OnDemandTemplateFactory extends TemplateFactory {
|
|
|
49
51
|
let oldLaunchRequestIndex = -1;
|
|
50
52
|
let oldHelpIntentIndex = -1;
|
|
51
53
|
handlers.forEach((handler, index) => {
|
|
52
|
-
if (isPlayPodcastHandlerProps(handler)) {
|
|
54
|
+
if (stentor_handler_media_1.isPlayPodcastHandlerProps(handler)) {
|
|
53
55
|
existingPlayPodcastHandlerProps = Object.assign({}, handler);
|
|
54
56
|
existingPlayPodcastData = Object.assign({}, existingPlayPodcastHandlerProps.data);
|
|
55
57
|
}
|
|
56
58
|
if (handler.intentId === "LaunchRequest") {
|
|
57
59
|
oldLaunchRequestIndex = index;
|
|
58
60
|
}
|
|
59
|
-
if (handler.intentId === HELP_INTENT) {
|
|
61
|
+
if (handler.intentId === stentor_interaction_model_1.HELP_INTENT) {
|
|
60
62
|
oldHelpIntentIndex = index;
|
|
61
63
|
}
|
|
62
64
|
});
|
|
@@ -70,7 +72,7 @@ export class OnDemandTemplateFactory extends TemplateFactory {
|
|
|
70
72
|
}
|
|
71
73
|
// We need to also check nextIsOlder on the existing props
|
|
72
74
|
// if they exist.
|
|
73
|
-
let nextIsOlder = template.contentType === ON_DEMAND_CONTENT_TYPE_REPLACED;
|
|
75
|
+
let nextIsOlder = template.contentType === Constants_2.ON_DEMAND_CONTENT_TYPE_REPLACED;
|
|
74
76
|
if (existingPlayPodcastData && existingPlayPodcastData.nextIsOlder !== undefined) {
|
|
75
77
|
// and use the existing one instead of just
|
|
76
78
|
// setting it to whatever replacedContent is
|
|
@@ -79,15 +81,15 @@ export class OnDemandTemplateFactory extends TemplateFactory {
|
|
|
79
81
|
const url = template.rssFeedUrl ? template.rssFeedUrl.trim() : "";
|
|
80
82
|
const newLaunchRequestHandler = Object.assign({}, existingPlayPodcastHandlerProps, {
|
|
81
83
|
// overwrite with what needs to be standard
|
|
82
|
-
organizationId: template.organizationId, appId: template.appId, intentId: "LaunchRequest", name: "Play Podcast", type: PLAY_PODCAST_HANDLER_TYPE, data: {
|
|
84
|
+
organizationId: template.organizationId, appId: template.appId, intentId: "LaunchRequest", name: "Play Podcast", type: stentor_handler_media_1.PLAY_PODCAST_HANDLER_TYPE, data: {
|
|
83
85
|
url,
|
|
84
|
-
alwaysPlayLatest: template.contentType === ON_DEMAND_CONTENT_TYPE_REPLACED,
|
|
86
|
+
alwaysPlayLatest: template.contentType === Constants_2.ON_DEMAND_CONTENT_TYPE_REPLACED,
|
|
85
87
|
nextIsOlder,
|
|
86
|
-
offerToPlayLatest: template.contentType === ON_DEMAND_CONTENT_TYPE_STAND_ALONE
|
|
88
|
+
offerToPlayLatest: template.contentType === Constants_2.ON_DEMAND_CONTENT_TYPE_STAND_ALONE
|
|
87
89
|
}, content: {
|
|
88
90
|
["LaunchRequest"]: template.customIntros,
|
|
89
|
-
[`${HELP_INTENT}|${INPUT_UNKNOWN}`]: ON_DEMAND_TEMPLATE_HELP_RESPONSE,
|
|
90
|
-
[CANCEL_INTENT]: [
|
|
91
|
+
[`${stentor_interaction_model_1.HELP_INTENT}|${stentor_interaction_model_1.INPUT_UNKNOWN}`]: Constants_2.ON_DEMAND_TEMPLATE_HELP_RESPONSE,
|
|
92
|
+
[stentor_interaction_model_1.CANCEL_INTENT]: [
|
|
91
93
|
{
|
|
92
94
|
outputSpeech: "<speak>Goodbye</speak>"
|
|
93
95
|
}
|
|
@@ -97,4 +99,5 @@ export class OnDemandTemplateFactory extends TemplateFactory {
|
|
|
97
99
|
return handlers;
|
|
98
100
|
}
|
|
99
101
|
}
|
|
102
|
+
exports.OnDemandTemplateFactory = OnDemandTemplateFactory;
|
|
100
103
|
//# sourceMappingURL=OnDemandTemplateFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnDemandTemplateFactory.js","sourceRoot":"","sources":["../../src/onDemand/OnDemandTemplateFactory.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"OnDemandTemplateFactory.js","sourceRoot":"","sources":["../../src/onDemand/OnDemandTemplateFactory.ts"],"names":[],"mappings":";;AAAA,oCAAoC;AACpC,uDAA8C;AAC9C,uEAKqC;AACrC,+EAA4F;AAE5F,4CAAiD;AACjD,wDAAqD;AACrD,2CAOqB;AAGrB,MAAa,uBAAwB,SAAQ,iCAAiC;IAC1E,gBAAgB,CAAC,GAAQ,EAAE,WAAiC,EAAE;QAC1D,IAAI,QAAQ,qBACL,6BAAiB,EACjB,GAAG,IACN,YAAY,EAAE,8BAAkB,EAChC,YAAY,EAAE,EAAE,EAChB,aAAa,EAAE,uBAAO;YACtB,8CAA8C;YAC9C,qBAAqB,EAAE,oDAAwC,EAC/D,QAAQ,EAAE,uCAA2B,CAAC,KAAK,EAAE,GAChD,CAAC;QAEF,QAAQ,GAAG,KAAK,CAAC,oBAAoB,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;QAErD,IAAI,QAAQ,EAAE;YACV,6CAA6C;YA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IAAI,EAAE,iDAAyB,EAC/B,IAAI,EAAE;gBACF,GAAG;gBACH,gBAAgB,EAAE,QAAQ,CAAC,WAAW,KAAK,2CAA+B;gBAC1E,WAAW;gBACX,iBAAiB,EAAE,QAAQ,CAAC,WAAW,KAAK,8CAAkC;aACjF,EACD,OAAO,EAAE;gBACL,CAAC,eAAe,CAAC,EAAE,QAAQ,CAAC,YAAY;gBACxC,CAAC,GAAG,uCAAW,IAAI,yCAAa,EAAE,CAAC,EAAE,4CAAgC;gBACrE,CAAC,yCAAa,CAAC,EAAE;oBACb;wBACI,YAAY,EAAE,wBAAwB;qBACzC;iBACJ;aACJ,GACJ,CAAC;QAEF,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC;QAEtD,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AA/HD,0DA+HC"}
|
package/lib/onDemand/index.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function __export(m) {
|
|
3
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
+
}
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
6
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
-
|
|
3
|
-
|
|
7
|
+
__export(require("./Constants"));
|
|
8
|
+
__export(require("./OnDemandTemplateFactory"));
|
|
4
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/onDemand/index.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/onDemand/index.ts"],"names":[],"mappings":";;;;;AAAA,oCAAoC;AACpC,iCAA4B;AAE5B,+CAA0C"}
|
package/lib/radio/Constants.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Constants_1 = require("../Constants");
|
|
4
|
+
exports.RADIO_TEMPLATE = "RADIO_TEMPLATE";
|
|
5
|
+
exports.RADIO_TEMPLATE_HELP_RESPONSE = [
|
|
4
6
|
{
|
|
5
7
|
outputSpeech: "<speak>During playback, you can either pause or resume</speak>",
|
|
6
8
|
reprompt: "<speak>During playback, you can either pause or resume</speak>"
|
|
7
9
|
}
|
|
8
10
|
];
|
|
9
|
-
|
|
11
|
+
exports.RADIO_TEMPLATE_REQUIRED = [
|
|
10
12
|
"liveStreamUrl",
|
|
11
13
|
"name",
|
|
12
14
|
"invocationName",
|
|
13
15
|
"summary",
|
|
14
16
|
"icon"
|
|
15
17
|
];
|
|
16
|
-
|
|
18
|
+
exports.RADIO_TEMPLATE_KEYWORDS = Constants_1.GLOBAL_KEYWORDS.concat(["VOICE RADIO", "RADIO"]);
|
|
17
19
|
//# sourceMappingURL=Constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../src/radio/Constants.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../src/radio/Constants.ts"],"names":[],"mappings":";;AAEA,4CAA+C;AAGlC,QAAA,cAAc,GAAsB,gBAAgB,CAAC;AAErD,QAAA,4BAA4B,GAAG;IACxC;QACI,YAAY,EAAE,gEAAgE;QAC9E,QAAQ,EAAE,gEAAgE;KAC7E;CACJ,CAAC;AAEW,QAAA,uBAAuB,GAA4B;IAC5D,eAAe;IACf,MAAM;IACN,gBAAgB;IAChB,SAAS;IACT,MAAM;CACT,CAAC;AAEW,QAAA,uBAAuB,GAAG,2BAAe,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
3
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
const stentor_alexa_1 = require("@xapp/stentor-alexa");
|
|
5
|
+
const stentor_constants_1 = require("@xapp/stentor-constants");
|
|
6
|
+
const stentor_handler_1 = require("@xapp/stentor-handler");
|
|
7
|
+
const stentor_handler_media_1 = require("@xapp/stentor-handler-media");
|
|
8
|
+
const stentor_interaction_model_1 = require("@xapp/stentor-interaction-model");
|
|
9
|
+
const stentor_request_1 = require("@xapp/stentor-request");
|
|
10
|
+
const Constants_1 = require("../Constants");
|
|
11
|
+
const TemplateFactory_1 = require("../TemplateFactory");
|
|
12
|
+
const Constants_2 = require("./Constants");
|
|
13
|
+
class RadioTemplateFactory extends TemplateFactory_1.TemplateFactory {
|
|
12
14
|
generateTemplate(app, handlers = []) {
|
|
13
|
-
let template = Object.assign({}, TEMPLATE_DEFAULTS, app, {
|
|
15
|
+
let template = Object.assign({}, Constants_1.TEMPLATE_DEFAULTS, app, {
|
|
14
16
|
// Template type
|
|
15
|
-
templateType: RADIO_TEMPLATE,
|
|
17
|
+
templateType: Constants_2.RADIO_TEMPLATE,
|
|
16
18
|
// and template specific default values
|
|
17
|
-
liveStreamUrl: "", customIntros: [], alexaCategory: STREAMING_SERVICE, keywords: RADIO_TEMPLATE_KEYWORDS.slice() });
|
|
19
|
+
liveStreamUrl: "", customIntros: [], alexaCategory: stentor_alexa_1.STREAMING_SERVICE, keywords: Constants_2.RADIO_TEMPLATE_KEYWORDS.slice() });
|
|
18
20
|
template = super.overrideWithAppProps(template, app);
|
|
19
21
|
if (handlers) {
|
|
20
22
|
// Try to find the handler and take the data!
|
|
21
23
|
handlers.forEach(handler => {
|
|
22
|
-
if (isHandler(handler) && handler.type === PLAY_LIVE_STREAM_HANDLER_TYPE) {
|
|
24
|
+
if (stentor_handler_1.isHandler(handler) && handler.type === stentor_handler_media_1.PLAY_LIVE_STREAM_HANDLER_TYPE) {
|
|
23
25
|
if (handler.data.url) {
|
|
24
26
|
template.liveStreamUrl = handler.data.url;
|
|
25
27
|
}
|
|
@@ -44,13 +46,13 @@ export class RadioTemplateFactory extends TemplateFactory {
|
|
|
44
46
|
let oldLaunchRequestIndex = -1;
|
|
45
47
|
let oldHelpIntentIndex = -1;
|
|
46
48
|
handlers.forEach((handler, index) => {
|
|
47
|
-
if (isHandler(handler) && handler.type === PLAY_LIVE_STREAM_HANDLER_TYPE) {
|
|
49
|
+
if (stentor_handler_1.isHandler(handler) && handler.type === stentor_handler_media_1.PLAY_LIVE_STREAM_HANDLER_TYPE) {
|
|
48
50
|
playLiveStreamHandler = Object.assign({}, handler);
|
|
49
51
|
}
|
|
50
52
|
if (handler.intentId === "LaunchRequest") {
|
|
51
53
|
oldLaunchRequestIndex = index;
|
|
52
54
|
}
|
|
53
|
-
if (handler.intentId === HELP_INTENT) {
|
|
55
|
+
if (handler.intentId === stentor_interaction_model_1.HELP_INTENT) {
|
|
54
56
|
oldHelpIntentIndex = index;
|
|
55
57
|
}
|
|
56
58
|
});
|
|
@@ -63,15 +65,16 @@ export class RadioTemplateFactory extends TemplateFactory {
|
|
|
63
65
|
handlers.splice(oldHelpIntentIndex, 1);
|
|
64
66
|
}
|
|
65
67
|
const url = template.liveStreamUrl ? template.liveStreamUrl.trim() : "";
|
|
66
|
-
const newLaunchRequestHandler = Object.assign({}, playLiveStreamHandler, { organizationId: template.organizationId, appId: template.appId, intentId: LAUNCH_REQUEST_ID, name: "Live Stream", type: PLAY_LIVE_STREAM_HANDLER_TYPE, data: {
|
|
68
|
+
const newLaunchRequestHandler = Object.assign({}, playLiveStreamHandler, { organizationId: template.organizationId, appId: template.appId, intentId: stentor_request_1.LAUNCH_REQUEST_ID, name: "Live Stream", type: stentor_handler_media_1.PLAY_LIVE_STREAM_HANDLER_TYPE, data: {
|
|
67
69
|
url
|
|
68
70
|
}, content: {
|
|
69
|
-
[LAUNCH_REQUEST_ID]: template.customIntros,
|
|
70
|
-
[`${HELP_INTENT}|${INPUT_UNKNOWN}`]: RADIO_TEMPLATE_HELP_RESPONSE,
|
|
71
|
-
[CANCEL_INTENT]: [...GOODBYE]
|
|
71
|
+
[stentor_request_1.LAUNCH_REQUEST_ID]: template.customIntros,
|
|
72
|
+
[`${stentor_interaction_model_1.HELP_INTENT}|${stentor_interaction_model_1.INPUT_UNKNOWN}`]: Constants_2.RADIO_TEMPLATE_HELP_RESPONSE,
|
|
73
|
+
[stentor_interaction_model_1.CANCEL_INTENT]: [...stentor_constants_1.GOODBYE]
|
|
72
74
|
} });
|
|
73
75
|
// concat with the old ones and return
|
|
74
76
|
return handlers.concat([newLaunchRequestHandler]);
|
|
75
77
|
}
|
|
76
78
|
}
|
|
79
|
+
exports.RadioTemplateFactory = RadioTemplateFactory;
|
|
77
80
|
//# sourceMappingURL=RadioTemplateFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioTemplateFactory.js","sourceRoot":"","sources":["../../src/radio/RadioTemplateFactory.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"RadioTemplateFactory.js","sourceRoot":"","sources":["../../src/radio/RadioTemplateFactory.ts"],"names":[],"mappings":";;AAAA,oCAAoC;AACpC,uDAAwD;AACxD,+DAAkD;AAClD,2DAAkD;AAClD,uEAAmH;AACnH,+EAA4F;AAE5F,2DAA0D;AAE1D,4CAAiD;AACjD,wDAAqD;AACrD,2CAAoG;AAGpG,MAAa,oBAAqB,SAAQ,iCAA8B;IACpE,gBAAgB,CAAC,GAAQ,EAAE,WAAiC,EAAE;QAC1D,IAAI,QAAQ,qBAEL,6BAAiB,EAEjB,GAAG;YACN,gBAAgB;YAChB,YAAY,EAAE,0BAAc;YAC5B,uCAAuC;YACvC,aAA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AAC,MAAM,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC;IACtD,CAAC;CACJ;AAhGD,oDAgGC"}
|
package/lib/radio/index.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function __export(m) {
|
|
3
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
+
}
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
6
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
-
|
|
3
|
-
|
|
7
|
+
__export(require("./Constants"));
|
|
8
|
+
__export(require("./RadioTemplateFactory"));
|
|
4
9
|
//# sourceMappingURL=index.js.map
|
package/lib/radio/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/radio/index.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/radio/index.ts"],"names":[],"mappings":";;;;;AAAA,oCAAoC;AACpC,iCAA4B;AAE5B,4CAAuC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "restricted"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.7.
|
|
7
|
+
"version": "1.7.5",
|
|
8
8
|
"description": "PLACEHOLDER DESCRIPTION OF PACKAGE",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"typescript": "3.5.3"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@xapp/stentor-alexa": "^1.7.
|
|
27
|
-
"@xapp/stentor-app": "^1.7.
|
|
28
|
-
"@xapp/stentor-constants": "^1.7.
|
|
29
|
-
"@xapp/stentor-handler": "^1.7.
|
|
30
|
-
"@xapp/stentor-handler-media": "^1.7.
|
|
31
|
-
"@xapp/stentor-interaction-model": "^1.7.
|
|
32
|
-
"@xapp/stentor-models": "^1.7.
|
|
33
|
-
"@xapp/stentor-request": "^1.7.
|
|
26
|
+
"@xapp/stentor-alexa": "^1.7.5",
|
|
27
|
+
"@xapp/stentor-app": "^1.7.1",
|
|
28
|
+
"@xapp/stentor-constants": "^1.7.1",
|
|
29
|
+
"@xapp/stentor-handler": "^1.7.5",
|
|
30
|
+
"@xapp/stentor-handler-media": "^1.7.5",
|
|
31
|
+
"@xapp/stentor-interaction-model": "^1.7.5",
|
|
32
|
+
"@xapp/stentor-models": "^1.7.1",
|
|
33
|
+
"@xapp/stentor-request": "^1.7.5"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsc -d true -p .",
|
|
37
37
|
"clean": "rm -rf ./lib/*",
|
|
38
38
|
"test": "mocha --recursive -r ts-node/register \"./src/**/*.test.ts\""
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "76caa8128312b8eed09a63a40e79fddc82685bd1"
|
|
41
41
|
}
|