forked from elasticio/csv-component
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomponent.json
91 lines (91 loc) · 3.39 KB
/
component.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
{
"title": "CSV",
"description": "A comma-separated values (CSV) file stores tabular data (numbers and text) in plain-text form",
"docsUrl": "https://github.com/elasticio/csv-component",
"buildType": "docker",
"version": "3.0.0",
"actions": {
"read_action": {
"main": "./lib/actions/read.js",
"title": "Read CSV attachment",
"help": {
"description": "This action will read the CSV attachment of the incoming message or from the specified URL and output a JSON object.",
"link": "/components/csv/actions#read-csv-attachment"
},
"fields": {
"emitAll": {
"label": "Emit Behavior",
"required": true,
"viewClass": "SelectView",
"model": {
"true": "Fetch All",
"false": "Emit Individually"
},
"prompt": "Select Emit Behavior"
}
},
"metadata": {
"in": "./lib/schemas/read.in.json",
"out": {}
}
},
"write_from_stream": {
"main": "./lib/actions/writeStream.js",
"title": "Create CSV From Message Stream",
"help": {
"description": "Multiple incoming events can be combined into one CSV file with the write CSV action.",
"link": "/components/csv/actions#write-csv-attachment"
},
"fields": {
"uploadToAttachment": {
"label": "Upload CSV as file to attachments",
"viewClass": "CheckBoxView",
"description": "If checked store the generated CSV data as an attachment",
"prompt": "Include headers? Default Yes."
},
"separator": {
"viewClass": "TextFieldView",
"required": false,
"label": "Separator",
"note": "A single char used to delimit the CSV file. Default to ','"
},
"order": {
"viewClass": "TextFieldView",
"required": false,
"label": "Column Order",
"note": "A string delimited with the separator (use same as above) indicating which columns & in what order the columns should appear in the resulting file. If omitted, the column order in the resulting file will not be deterministic."
}
},
"dynamicMetadata": true
},
"write_attachment_from_array": {
"main": "./lib/actions/writeArray.js",
"title": "Create CSV From JSON Array",
"help": {
"description": "Incoming array can be converted into one CSV file",
"link": "/components/csv/actions#write-csv-attachment"
},
"fields": {
"uploadToAttachment": {
"label": "Upload CSV as file to attachments",
"viewClass": "CheckBoxView",
"description": "If checked store the generated CSV data as an attachment",
"prompt": "Include headers? Default Yes."
},
"separator": {
"viewClass": "TextFieldView",
"required": false,
"label": "Separator",
"note": "A single char used to delimit the CSV file. Default to ','"
},
"order": {
"viewClass": "TextFieldView",
"required": false,
"label": "Column Order",
"note": "A string delimited with the separator (use same as above) indicating which columns & in what order the columns should appear in the resulting file. If omitted, the column order in the resulting file will not be deterministic."
}
},
"dynamicMetadata": true
}
}
}