-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathfields.js
47 lines (43 loc) · 924 Bytes
/
fields.js
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
export const FIELDS = {
Url: (label) => ({
type: 'textinput',
label: label,
id: 'url',
default: '',
useVariables: true,
}),
Body: {
type: 'textinput',
label: 'Body',
id: 'body',
default: '{}',
useVariables: true,
},
Header: {
type: 'textinput',
label: 'header input(JSON)',
id: 'header',
default: '',
useVariables: true,
},
ContentType: {
type: 'dropdown',
label: 'Content Type',
id: 'contenttype',
default: 'application/json',
choices: [
{ id: 'application/json', label: 'application/json' },
{ id: 'application/x-www-form-urlencoded', label: 'application/x-www-form-urlencoded' },
{ id: 'application/xml', label: 'application/xml' },
{ id: 'text/html', label: 'text/html' },
{ id: 'text/plain', label: 'text/plain' },
],
},
PollInterval: {
type: 'number',
label: 'Poll Interval (ms) (0 to disable)',
id: 'interval',
default: 0,
min: 0,
},
}