{
    "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": {
            "projectKey": {
                "viewClass": "TextFieldView",
                "label": "Project Key",
                "required": true,
                "placeholder": "Paste project key"
            },
            "clientId": {
                "viewClass": "TextFieldView",
                "label": "Client Id",
                "required": true,
                "placeholder": "Paste client id"
            },
            "clientSecret": {
                "viewClass": "TextFieldView",
                "label": "Client Secret",
                "required": true,
                "placeholder": "Paste client secret"
            }
        }
    },
    "actions": {
        "services": {
            "main": "elasticio.js",
            "title": "Stock XML Import"
        }
    }
}

{
    "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": {
            "projectKey": {
                "viewClass": "TextFieldView",
                "label": "Project Key",
                "required": true,
                "placeholder": "Paste project key"
            },
            "clientId": {
                "viewClass": "TextFieldView",
                "label": "Client Id",
                "required": true,
                "placeholder": "Paste client id"
            },
            "clientSecret": {
                "viewClass": "TextFieldView",
                "label": "Client Secret",
                "required": true,
                "placeholder": "Paste client secret"
            }
        }
    },
    "actions": {
        "services": {
            "main": "elasticio.js",
            "title": "Stock XML Import",
            "metadata": {
                "in": {
                    "type" : "object",
                    "properties" : {
                        "SKU" : {
                            "title" : "SKU of product",
                            "type" : "string",
                            "required": true
                        },
                        "QUANTITY" : {
                            "title" : "Quantity of product",
                            "type" : "number",
                            "required": true
                        }
                    }
                }
            }
        }
    }
}

Add metadata for CSV import.
Add metadata for CSV import.
