-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcomponent.json
188 lines (188 loc) · 5.33 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
{
"title": "CSV",
"version": "2.2.2",
"deprecated": true,
"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",
"triggers": {
"read": {
"main": "./lib/triggers/read.js",
"title": "Read CSV file from URL",
"help": {
"description": "Fetch a CSV file from a given URL and store it in the attachment storage.",
"link": "/components/csv/triggers#read-csv-file-from-url"
},
"type": "polling",
"fields": {
"url": {
"label": "CSV URL",
"required": true,
"placeholder": "https://my-url.com/foo.csv",
"note": "We will fetch this URL and parse it as CSV file",
"viewClass": "TextFieldWithNoteView"
},
"reader": {
"viewClass": "CSVReadView"
}
},
"metadata": {
"out": {}
}
}
},
"actions": {
"read_action": {
"main": "./lib/triggers/read.js",
"title": "Read CSV attachment",
"help": {
"description": "Read a CSV attachment of an incoming message.",
"link": "/components/csv/actions#read-csv-attachment"
},
"fields": {
"url": {
"label": "CSV URL",
"required": false,
"placeholder": "http://my-url.com/foo.csv",
"note": "We will fetch this URL and parse it as CSV file, leave the field blank if you expect CSV attachment from previous step",
"viewClass": "TextFieldWithNoteView"
},
"emitAll": {
"label": "Emit all messages",
"viewClass": "CheckBoxView"
},
"reader": {
"viewClass": "CSVReadView",
"required": true
}
},
"metadata": {
"out": {}
}
},
"write_attachment": {
"main": "./lib/actions/write.js",
"title": "Write CSV attachment",
"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": {
"includeHeaders": {
"label": "Include Headers",
"required": false,
"viewClass": "SelectView",
"description": "Default Yes",
"model": {
"Yes": "Yes",
"No": "No"
},
"prompt": "Include headers? Default Yes."
},
"writer": {
"viewClass": "CSVWriteView"
}
},
"metadata": {
"in": {
"type": "object",
"properties": {}
},
"out": {}
}
},
"write_attachment_from_json": {
"main": "./lib/actions/writeFromJson.js",
"title": "Write CSV attachment from JSON Object",
"help": {
"description": "Multiple incoming events can be combined into one CSV file with the write CSV action.",
"link": "/components/csv/actions#write-csv-attachment-from-json-object"
},
"fields": {
"includeHeaders": {
"label": "Include Headers",
"required": false,
"viewClass": "SelectView",
"description": "Default Yes",
"model": {
"Yes": "Yes",
"No": "No"
},
"prompt": "Include headers? Default Yes"
},
"separator": {
"label": "Separators",
"required": true,
"viewClass": "SelectView",
"model": {
"comma": "Comma (,)",
"semicolon": "Semicolon (;)",
"space": "Space ( )",
"tab": "Tab (\\t)",
"pipe": "Pipe (\u00A6)"
},
"prompt": "Choose required CSV delimiter"
}
},
"metadata": {
"in": {
"type": "object",
"properties": {
"inputObject": {
"type": "object",
"properties": {}
}
}
},
"out": {}
}
},
"write_attachment_from_array": {
"main": "./lib/actions/writeFromArray.js",
"title": "Write CSV attachment from JSON Array",
"help": {
"description": "Incoming array can be converted into one CSV file with the write CSV action.",
"link": "/components/csv/actions#write-csv-attachment-from-json-array"
},
"fields": {
"includeHeaders": {
"label": "Include Headers",
"required": false,
"viewClass": "SelectView",
"description": "Default Yes",
"model": {
"Yes": "Yes",
"No": "No"
},
"prompt": "Include headers? Default Yes"
},
"separator": {
"label": "Separators",
"required": true,
"viewClass": "SelectView",
"model": {
"comma": "Comma (,)",
"semicolon": "Semicolon (;)",
"space": "Space ( )",
"tab": "Tab (\\t)",
"pipe": "Pipe (\u00A6)"
},
"prompt": "Choose required CSV delimiter"
}
},
"metadata": {
"in": {
"type": "object",
"properties": {
"inputArray": {
"type": "array",
"required": true,
"items": {}
}
}
},
"out": {}
}
}
}
}