forked from alexa-labs/skill-sample-nodejs-sauce-boss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helpIntent.json
71 lines (71 loc) · 2.58 KB
/
helpIntent.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"type": "APL",
"version": "1.1",
"import": [
{
"name": "alexa-viewport-profiles",
"version": "1.1.0"
},
{
"name": "alexa-layouts",
"version": "1.1.0"
}
],
"resources": [
{
"description": "Background Image for Help Screen on Small Round Hubs",
"when": "${@viewportProfile == @hubRoundSmall}",
"strings": {
"backgroundImg": "https://s3.amazonaws.com/ask-samples-resources/images/sauce-boss/sauceBoss-background-bottom-smHub.png"
}
},
{
"description": "Background Image for Help Screen on Landscape Hubs",
"when": "${@viewportProfile == @hubLandscapeSmall || @viewportProfile == @hubLandscapeMedium || @viewportProfile == @hubLandscapeLarge}",
"strings": {
"backgroundImg": "https://s3.amazonaws.com/ask-samples-resources/images/sauce-boss/sauceBoss-background-bottom-Hub.png"
}
},
{
"description": "Background Image for Help Screen on XLarge Hubs (e.g TV)",
"when": "${@viewportProfile == @tvLandscapeXLarge}",
"strings": {
"backgroundImg": "https://s3.amazonaws.com/ask-samples-resources/images/sauce-boss/sauceBoss-background-bottom-TV.png"
}
},
{
"description": "Skill Icon",
"strings": {
"skillIcon": "https://s3.amazonaws.com/ask-samples-resources/icons/sauce-boss-icon.png"
}
}
],
"mainTemplate": {
"parameters": [
"payload"
],
"items": [
{
"type": "AlexaTextList",
"theme": "${viewport.theme}",
"headerTitle": "${payload.sauceBossData.headerTitle}",
"headerSubtitle": "${payload.sauceBossData.headerSubtitle}",
"headerAttributionImage": "@skillIcon",
"headerDivider": true,
"headerBackButton": "${payload.sauceBossData.headerBackButton}",
"backgroundImageSource": "@backgroundImg",
"backgroundScale": "best-fill",
"backgroundAlign": "center",
"hideOrdinal": true,
"primaryAction": {
"type": "SendEvent",
"arguments": [
"sauceInstructions",
"${data.id}"
]
},
"listItems": "${payload.sauceBossData.items}"
}
]
}
}