-
Notifications
You must be signed in to change notification settings - Fork 3
/
logic.json
executable file
·130 lines (130 loc) · 3.68 KB
/
logic.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"fields" : {
"id" : {
"type" : "string",
"label" : "ID",
"placeholder" : "A unique ID"
},
"messageText" : {
"type" : "text",
"label" : "Message",
"placeholder" : "Some message to the user..."
},
"promptText" : {
"type" : "text",
"label" : "Question text",
"placeholder" : "The question to display in the app"
},
"displayLabel" : {
"type" : "string",
"label" : "Prompt label",
"placeholder" : "A short label"
},
"condition" : {
"type" : "string",
"label" : "Condition",
"placeholder" : "For example: age > 12",
"optional" : true,
"tooltip" : "Example condition rules: <br> gender == 1 <br> (type == 3) or (type == 5) <br>(age > 12) and (age < 18)"
},
"skippable" : {
"type" : "bool"
},
"min" : {
"type" : "number",
"label" : "Minimum value",
"property" : true,
"default" : 0
},
"max" : {
"type" : "number",
"label" : "Maximum value",
"property" : true,
"default" : 999
},
"wholeNumber" : {
"type" : "bool",
"label" : "Whole numbers only",
"property" : true,
"default" : "checked"
},
"maxDimension" : {
"type" : "number",
"label" : "Max dimension",
"property" : true,
"default" : 800
},
"jpegQuality" : {
"type" : "number",
"label" : "JPEG quality",
"property" : true,
"optional" : true,
"tooltip" : "number between 1 and 100"
},
"maxFileSize" : {
"type" : "number",
"label" : "Max filesize in bytes",
"property" : true,
"optional" : true
},
"default" : {
"type" : "number",
"label" : "Default",
"placeholder" : "A default value",
"optional" : true
},
"defaultstring" : {
"name" : "default",
"type" : "string",
"label" : "Default",
"placeholder" : "Optional",
"optional" : true
},
"options" : {
"type" : "keyval",
"label" : "Option labels",
"property" : true
},
"max_milliseconds" : {
"type" : "number",
"label" : "Maximum Length (in seconds)",
"property" : true,
"default" : 60,
"transform" : "function(x){return x * 1000;}"
},
"max_seconds" : {
"type" : "number",
"label" : "Maximum Length (in seconds)",
"property" : true,
"default" : 180
}
},
"prompttypes" : {
"message" : ["id", "messageText", "condition"],
"timestamp" : ["id", "displayLabel", "promptText", "condition", "skippable"],
"photo" : ["id", "displayLabel", "promptText", "maxDimension", "jpegQuality", "condition", "skippable"],
"single_choice" : ["id", "displayLabel", "promptText", "options", "default", "condition", "skippable"],
"single_choice_custom" : ["id", "displayLabel", "promptText", "options", "default", "condition", "skippable"],
"multi_choice" : ["id", "displayLabel", "promptText", "options", "defaultstring", "condition", "skippable"],
"multi_choice_custom" : ["id", "displayLabel", "promptText", "options", "defaultstring", "condition", "skippable"],
"number" : ["id", "displayLabel", "promptText", "min", "max", "default", "condition", "wholeNumber", "skippable"],
"text" : ["id", "displayLabel", "promptText", "min", "max", "defaultstring", "condition", "skippable"],
"audio" : ["id", "displayLabel", "promptText", "max_milliseconds", "condition", "skippable"],
"video" : ["id", "displayLabel", "promptText", "max_seconds", "condition", "skippable"],
"file" : ["id", "displayLabel", "promptText", "maxFileSize", "condition", "skippable"]
},
"icons" : {
"message" : "info-sign",
"timestamp" : "time",
"photo" : "picture",
"single_choice" : "menu-hamburger",
"single_choice_custom" : "menu-hamburger",
"multi_choice" : "th",
"multi_choice_custom" : "th",
"number" : "sound-5-1",
"text" : "text-size",
"video" : "facetime-video",
"file" : "file",
"audio" : "music"
}
}