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
| const config = `
| <View>
| <Text name="text" value="Hello"></Text>
|
| <Number name="num" toName="text" min="1" max="10"/>
| <DateTime name="dt" toName="text" showDate="true" showTime="true"/>
| <TextArea name="txt" toName="text" editable="true"/>
|
| <Choices name="choices" toName="text">
| <Choice value="Choice 1" background="#5b5"/>
| <Choice value="Choice 2" background="#55f"/>
| </Choices>
|
| <Taxonomy name="taxonomy" toName="text">
| <Choice value="Choice 1" background="#5b5"/>
| <Choice value="Choice 2" background="#55f">
| <Choice value="Choice 2.1" background="#5b5"/>
| <Choice value="Choice 2.2" background="#55f"/>
| </Choice>
| </Taxonomy>
| </View>
|
| `;
|
| const data = {
| url: "/public/files/barradeen-emotional.mp3",
| };
|
| const result = [
| {
| value: {
| number: 2,
| },
| id: "W7wMwaYoa9",
| from_name: "num",
| to_name: "text",
| type: "number",
| origin: "manual",
| },
| {
| value: {
| datetime: "1991-05-22T09:17",
| },
| id: "xMvgTyP6e4",
| from_name: "dt",
| to_name: "text",
| type: "datetime",
| origin: "manual",
| },
| {
| value: {
| text: ["Hello", "World"],
| },
| meta: {
| lead_time: 0,
| },
| id: "0yMHFegGSK",
| from_name: "txt",
| to_name: "text",
| type: "textarea",
| origin: "manual",
| },
| {
| value: {
| choices: ["Choice 1"],
| },
| id: "dZyZ7Dx3uS",
| from_name: "choices",
| to_name: "text",
| type: "choices",
| origin: "manual",
| },
| {
| value: {
| taxonomy: [["Choice 2", "Choice 2.1"]],
| },
| id: "4IHbGrfa-P",
| from_name: "taxonomy",
| to_name: "text",
| type: "taxonomy",
| origin: "manual",
| },
| ];
|
| const title = "Classification Mixed";
|
| module.exports = { config, data, result, title };
|
|