-
Notifications
You must be signed in to change notification settings - Fork 5
/
component.json
114 lines (114 loc) · 3.3 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
{
"title": "XML",
"version": "1.4.0",
"description": "Component to convert between XML and JSON data",
"actions": {
"xmlToJson": {
"title": "XML to JSON",
"main": "./lib/actions/xmlToJson.js",
"help": {
"description": "Takes XML string and converts it to generic JSON object",
"link": "/components/xml/index.html#xml-to-json"
},
"metadata": {
"in": "./lib/schemas/xmlToJson.in.json",
"out": "./lib/schemas/xmlToJson.out.json"
}
},
"jsonToXml": {
"title": "JSON to XML",
"main": "./lib/actions/jsonToXmlOld.js",
"deprecated": true,
"help": {
"description": "Takes the body of message passed into the component and converts to generic XML string"
},
"metadata": {
"in": {},
"out": "./lib/schemas/jsonToXmlOld.out.json"
}
},
"jsonToXmlV2": {
"title": "JSON to XML",
"main": "./lib/actions/jsonToXml.js",
"help": {
"link": "/components/xml/index.html#json-to-xml",
"description": "Takes the result of a JSONata expression and creates corresponding XML as either a string or an attachment"
},
"fields": {
"uploadToAttachment": {
"order": 3,
"label": "Upload XML as file to attachments",
"viewClass": "CheckBoxView"
},
"excludeXmlHeader": {
"order": 2,
"label": "Exclude XML Header/Description",
"viewClass": "CheckBoxView"
},
"headerStandalone": {
"order": 1,
"label": "Is the XML file standalone",
"viewClass": "CheckBoxView"
}
},
"metadata": {
"in": {
"type": "object",
"properties": {
"input": {
"title": "JSON to convert",
"type": "object",
"required": true
}
}
},
"out": {
"type": "object",
"properties": {
"xmlString": {
"type": "string",
"required": false,
"title": "XML String"
},
"attachmentUrl": {
"title": "Attachment URL",
"type": "string",
"required": false
},
"attachmentSize": {
"title": "Attachment Size (in bytes)",
"type": "number",
"required": false
}
}
}
}
},
"attachmentToJson": {
"title": "XML Attachment to JSON",
"main": "./lib/actions/attachmentToJson.js",
"help": {
"link": "/components/xml/index.html#xml-attachment-to-json",
"description": "Looks at the JSON array of attachments passed in to component and converts all XML found to generic JSON object"
},
"fields": {
"pattern": {
"label": "Pattern to Match Files",
"required": false,
"viewClass": "TextFieldView",
"placeholder": "Pattern"
},
"uploadSingleFile": {
"label": "Upload single file",
"viewClass": "CheckBoxView",
"required": false,
"order": 70,
"help": {
"description": "Use this option if you want to upload a single file"
}
}
},
"dynamicMetadata": true
}
}
}