forked from commercetools/sphere-stock-import
-
Notifications
You must be signed in to change notification settings - Fork 0
/
component.json
54 lines (54 loc) · 1.76 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
{
"title": "sphere-stock-xml-import",
"description": "Import your stock information from XML or CSV into your SPHERE.IO project.",
"url" : "http://www.commercetools.com",
"credentials": {
"fields": {
"sphereProjectKey": {
"viewClass": "TextFieldView",
"label": "Project Key",
"required": true,
"placeholder": "Paste your SPHERE.IO project key here"
},
"sphereClientId": {
"viewClass": "TextFieldView",
"label": "Client Id",
"required": true,
"placeholder": "Paste your SPHERE.IO client id here"
},
"sphereClientSecret": {
"viewClass": "TextFieldView",
"label": "Client Secret",
"required": true,
"placeholder": "Paste your your SPHERE.IO client secret here"
}
}
},
"actions": {
"csvImport": {
"main": "elasticio.js",
"title": "CSV Import",
"metadata": {
"in": {
"type" : "object",
"properties" : {
"SKU" : {
"title" : "SKU of product",
"type" : "string",
"required": true
},
"QUANTITY" : {
"title" : "Quantity of product",
"type" : "number",
"required": true
}
}
}
}
},
"xmlImport": {
"main": "elasticio.js",
"title": "XML Import"
}
}
}