"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PythonPlugin = void 0;
const index_js_1 = require("../../types/index.js");
const constants_js_1 = require("./constants.js");
const PythonPluginVersions = {
    V1: '0.0.1'
};
exports.PythonPlugin = {
    id: index_js_1.LanguagePluginID.Python,
    name: 'Python',
    moduleName: 'PythonPlugin',
    modulePath: 'plugins/python/PythonPlugin',
    iconLocation: `${constants_js_1.PUBLIC_INTEGRATIONS_LOGO_URL}/python.png`,
    type: index_js_1.PluginType.CODE,
    responseType: index_js_1.PluginResponseType.JSON,
    hasRawRequest: true,
    rawRequestName: 'Executed code',
    datasourceTemplate: {
        sections: []
    },
    actionTemplate: {
        sections: [
            {
                name: 'main',
                items: [
                    {
                        name: 'body',
                        label: '',
                        startVersion: PythonPluginVersions.V1,
                        componentType: index_js_1.FormComponentType.CODE_EDITOR,
                        language: index_js_1.EditorLanguage.PYTHON,
                        initialValue: `# Use Python to:
#
# 1. Transform the output of previous Steps by referencing their output (ex. Step1.output)
# 2. Write logic referencing UI components (ex. Table1.selectedRow.id)
# 3. Make http calls using requests (import requests)
#
# More libraries are coming in the future. Superblocks uses Python 3.

return { "value": "Hello Superblocks!" }
`,
                        rules: [{ required: true, message: 'Function body is required' }]
                    }
                ]
            }
        ]
    }
};
//# sourceMappingURL=python.js.map